Version Description
- 17. October 2018. =
- Fix: Thumbnail alignment and group
- Fix: Text layer bold and italic text font colors are now harder to override by theme's codes
- Fix: NextGen Gallery and Divi live editor bug
Download this release
Release Info
Developer | nextendweb |
Plugin | Smart Slider 3 |
Version | 3.3.9 |
Comparing to | |
See all releases |
Code changes from version 3.3.8 to 3.3.9
- includes/smartslider3.php +10 -0
- library/media/admin/dist/smartslider-backend.css +6 -22
- library/media/admin/dist/smartslider-backend.min.css +1 -1
- library/media/dist/smartslider-backend.js +10 -5
- library/media/dist/smartslider-backend.min.js +2 -2
- library/media/dist/smartslider-frontend.js +1 -1
- library/media/dist/smartslider-frontend.min.js +1 -1
- library/media/smartslider.css +10 -0
- library/media/smartslider.min.css +1 -1
- library/smartslider/backend/SmartSliderController.php +0 -1
- library/smartslider/backend/controllers/slides/views/_canvas.php +1 -1
- library/smartslider/backend/controllers/slides/views/edit.phtml +13 -19
- library/smartslider/backend/fragments/tutorial-free.phtml +13 -18
- library/smartslider/backend/layouts/_mainmenu.php +1 -1
- library/smartslider/models/License.php +5 -6
- library/smartslider/smartslider3.php +24 -2
- nextend/library/libraries/html/fragments/banner.phtml +29 -0
- nextend/library/libraries/html/html.php +17 -0
- nextend/media/dist/nextend-backend.css +2 -1
- nextend/media/dist/nextend-backend.min.css +1 -1
- readme.txt +6 -1
- smart-slider-3.php +1 -1
includes/smartslider3.php
CHANGED
@@ -80,6 +80,16 @@ class SmartSlider3 {
|
|
80 |
require_once dirname(__FILE__) . '/integrations/tablepress.php';
|
81 |
}
|
82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
|
84 |
/**
|
85 |
* For ajax based page loaders
|
80 |
require_once dirname(__FILE__) . '/integrations/tablepress.php';
|
81 |
}
|
82 |
|
83 |
+
/**
|
84 |
+
* Fix for NextGenGallery and Divi live editor bug
|
85 |
+
*/
|
86 |
+
add_filter('run_ngg_resource_manager', function ($ret) {
|
87 |
+
if (isset($_GET['n2prerender']) && isset($_GET['n2app'])) {
|
88 |
+
$ret = false;
|
89 |
+
}
|
90 |
+
return $ret;
|
91 |
+
}, 1000000);
|
92 |
+
|
93 |
|
94 |
/**
|
95 |
* For ajax based page loaders
|
library/media/admin/dist/smartslider-backend.css
CHANGED
@@ -363,8 +363,7 @@ Layout
|
|
363 |
border-radius: 0;
|
364 |
}
|
365 |
|
366 |
-
|
367 |
-
.n2-box-license-activated.n2-ss-license-no-active-key {
|
368 |
display: none;
|
369 |
}
|
370 |
|
@@ -644,21 +643,6 @@ body:not([data-slides='0']) #n2-ss-slides .n2-box-dummy {
|
|
644 |
margin-top: 20px;
|
645 |
}
|
646 |
|
647 |
-
.n2-box-add-sample-slide > a {
|
648 |
-
width: 100%;
|
649 |
-
height: 135px;
|
650 |
-
padding: 0;
|
651 |
-
}
|
652 |
-
|
653 |
-
.n2-box-add-sample-slide > a:before {
|
654 |
-
display: block;
|
655 |
-
font-family: 'Nextend' !important;
|
656 |
-
font-size: 48px;
|
657 |
-
line-height: 68px;
|
658 |
-
content: "\e97d";
|
659 |
-
margin-top: 20px;
|
660 |
-
}
|
661 |
-
|
662 |
.n2-ss-slides-header > * {
|
663 |
vertical-align: top;
|
664 |
display: inline-block;
|
@@ -3453,7 +3437,7 @@ div#n2-ss-0 .n2-ss-layer-content .n2-ss-layer.n2-active:HOVER {
|
|
3453 |
font-size: 16px;
|
3454 |
}
|
3455 |
|
3456 |
-
|
3457 |
background-color: #212d3a;
|
3458 |
margin: 0 -1px;
|
3459 |
z-index: 2;
|
@@ -3461,21 +3445,21 @@ div#n2-ss-0 .n2-ss-layer-content .n2-ss-layer.n2-active:HOVER {
|
|
3461 |
color: #fff;
|
3462 |
}
|
3463 |
|
3464 |
-
|
3465 |
display: flex;
|
3466 |
align-items: center;
|
3467 |
max-width: 960px;
|
3468 |
}
|
3469 |
|
3470 |
-
|
3471 |
margin: 20px;
|
3472 |
}
|
3473 |
|
3474 |
-
|
3475 |
margin: 0 20px;
|
3476 |
}
|
3477 |
|
3478 |
-
|
3479 |
color: #b2bfc9;
|
3480 |
font-size: 14px;
|
3481 |
margin: 20px 0;
|
363 |
border-radius: 0;
|
364 |
}
|
365 |
|
366 |
+
body[data-ss3-activated="0"] [data-ss3-when-activated="1"] {
|
|
|
367 |
display: none;
|
368 |
}
|
369 |
|
643 |
margin-top: 20px;
|
644 |
}
|
645 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
646 |
.n2-ss-slides-header > * {
|
647 |
vertical-align: top;
|
648 |
display: inline-block;
|
3437 |
font-size: 16px;
|
3438 |
}
|
3439 |
|
3440 |
+
.n2-ss-banner {
|
3441 |
background-color: #212d3a;
|
3442 |
margin: 0 -1px;
|
3443 |
z-index: 2;
|
3445 |
color: #fff;
|
3446 |
}
|
3447 |
|
3448 |
+
.n2-ss-banner .n2-ss-banner-inner {
|
3449 |
display: flex;
|
3450 |
align-items: center;
|
3451 |
max-width: 960px;
|
3452 |
}
|
3453 |
|
3454 |
+
.n2-ss-banner .n2-ss-banner-inner > div {
|
3455 |
margin: 20px;
|
3456 |
}
|
3457 |
|
3458 |
+
.n2-ss-banner .n2-ss-banner-inner a + a {
|
3459 |
margin: 0 20px;
|
3460 |
}
|
3461 |
|
3462 |
+
.n2-ss-banner .n2-ss-banner-inner p {
|
3463 |
color: #b2bfc9;
|
3464 |
font-size: 14px;
|
3465 |
margin: 20px 0;
|
library/media/admin/dist/smartslider-backend.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#html-body header,.adminhtml-smartslider3-index #footer,.adminhtml-smartslider3-index .footer,.n2-ss-live-preview.n2-active .n2-button,.smartslider3-index-index footer{display:none}#html-body #anchor-content #n2-admin{mragin-top:30px}#html-body .header{position:relative;z-index:1100}.unselectable{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;user-select:none}.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-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;direction:ltr}.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-autoplay='0'] #n2-form-matrix-sliderwidgets .n2-fm-autoplay,#n2-admin[data-autoplay='0'] #n2-form-matrix-sliderwidgets .n2-fm-indicator,#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-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;vertical-align:top}.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;border-top-right-radius:0;border-bottom-right-radius:0;overflow:hidden;padding:0 10px;line-height:36px;box-shadow:none;color:#7b8898;font-size:12px;background:#fff;box-sizing:border-box}.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-edit-group-form>.n2-form>.n2-form-tab,#n2-ss-edit-slider-form>.n2-form>.n2-form-tab{margin:20px 0 0;border-radius:0;border:0}#n2-ss-edit-group-form>.n2-form>.n2-form-tab .n2-form-matrix-views,#n2-ss-edit-slider-form>.n2-form>.n2-form-tab .n2-form-matrix-views{border-radius:0}#n2-ss-slider-container[data-groupid="0"] .n2-ss-remove-from-group,.n2-box-add-license.n2-ss-license-has-active-key,.n2-box-license-activated.n2-ss-license-no-active-key,.n2-ss-box-slider-group .n2-ss-add-to-group,.n2-ss-box-slider-group .n2-ss-remove-from-group,body[data-slides='0'] #n2-ss-edit-slider-form{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;vertical-align:top}html[data-sliders='0'] .n2-ss-sliders-header{visibility:hidden}.n2-ss-box-slider{cursor:pointer}.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-drag-images,#n2-ss-slides .n2-box-slide-dummy{text-align:center;color:#7b8898;box-sizing:border-box;border:2px dashed #b2bfc9}#n2-ss-slides .n2-box-slide-dummy{background:#e9edf0;background-image:url(../images/dummy-slide.png);background-repeat:no-repeat;background-position:center 36px;font-size:14px;line-height:200px}#n2-ss-slides .n2-box-slide-drag-images{background:url(../images/drag.png) no-repeat center 4px;padding:90px 60px 0;line-height:12px;box-shadow:none}body:not([data-slides='0']) #n2-ss-slides .n2-box-dummy,body:not([data-slides='0']) #n2-ss-slides-container .n2-box-slide-drag-images,body: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 [data-action=setFirst],.n2-slide-state-published [data-action=publish],[data-action=generator],[data-action=unpublish]{display:none}.n2-slide-state-has-generator [data-action=generator],.n2-slide-state-published [data-action=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:14px 0 4px}.n2-ss-bulk-controls{visibility:hidden}.n2-ss-has-box-selection .n2-ss-bulk-controls{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-ss-add-slide-button,.n2-box-add-sample-slide>a{width:100%;height:135px;padding:0}#n2-ss-slides .n2-box-slide-add>.n2-ss-add-slide-button:before,.n2-box-add-sample-slide>a:before{display:block;font-family:'Nextend'!important;font-size:48px;line-height:68px;content:"\e981";margin-top:20px}.n2-box-add-sample-slide>a:before{content:"\e97d"}.n2-ss-slides-header>*{vertical-align:top;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:#606d7b;background:#fff;margin-top:25px;padding:10px 15px;border-radius:5px}.n2-ss-block-slides-notice p{margin:0 0 10px}body:not([data-slides='0']):not([data-slides='1']) #n2-admin[data-slider-type=block] .n2-ss-block-slides-notice{display:inline-block}#n2-ss-slides .n2-box-slide-add .n2-ss-add-slide-button:before{transition:transform .4s}#n2-ss-slides .n2-box-slide-add .n2-ss-add-slide-button{transition:background .4s}#n2-ss-slides[data-showcreateslide="1"] .n2-box-slide-add .n2-ss-add-slide-button{background:#6b7986}#n2-ss-slides[data-showcreateslide="1"] .n2-box-slide-add .n2-ss-add-slide-button:before{transform:rotateZ(45deg)}#n2-ss-slides .n2-ss-slides-create{position:relative;background:#202934;margin:-25px -26px 0;height:0;overflow:hidden;transition:height .4s}#n2-ss-slides .n2-ss-slides-create>div{padding:15px 16px}#n2-ss-slides[data-showcreateslide="1"] .n2-ss-slides-create{height:198px}#n2-ss-slides .n2-ss-slides-create-heading{font-size:22px;line-height:38px;color:#fff;margin:0 10px}#n2-ss-slides .n2-ss-slides-create-inner{display:flex}#n2-ss-slides .n2-ss-slides-create .n2-ss-slides-create-action-box{display:flex;flex-flow:column;justify-content:center;max-width:140px;width:140px;height:110px;text-align:center;color:#80a3b5;cursor:pointer;border-radius:5px;margin:10px}#n2-ss-slides .n2-ss-slides-create .n2-ss-slides-create-action-box-label{font-size:14px;margin-top:3px}#n2-ss-slides .n2-ss-slides-create .n2-ss-slides-create-action-box[data-action=image]{background:#51b82d;color:#fff}#n2-ss-slides .n2-ss-slides-create .n2-ss-slides-create-action-box[data-action=library]{background:#5f39c2;color:#fff}.n2-ss-slides-create-action-box-icon{font-size:48px}div#n2-ss-0:HOVER .n2-ss-static-slide{display:none}div#n2-ss-0:HOVER .n2-ss-static-slide.n2-ss-currently-edited-slide{display:flex}.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 .nui-normal-sizing-handle,.n2-ss-select-layer-mode #n2-ss-0 .n2-ss-layer-selected .nui-resizable-handle{display:none!important}.n2-ss-select-layer-mode-group .n2-list li.n2-ss-layerlist-row.n2-active.n2-selected{color:#b2bfc9}#n2-ss-0 .n2-ss-layer{cursor:not-allowed}#n2-ss-0 .n2-ss-currently-edited-slide .n2-ss-layer{cursor:move}.n2-ss-currently-edited-slide .n2-ss-layer{background:RGBA(0,0,0,0)}#n2-ss-0 .n2-ss-currently-edited-slide .n2-ss-layer[data-sstype=col],#n2-ss-0 .n2-ss-currently-edited-slide .n2-ss-layer[data-sstype=col] .n2-ss-layer{cursor:pointer}#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-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer .n2-ss-layer-cc,.n2-ss-preview-mode #n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer .n2-ss-layer-chain-parent,.n2-ss-preview-mode #n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer .nui-normal-sizing-handle,.n2-ss-preview-mode #n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer .nui-resizable-handle,.n2-ss-preview-mode #n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer-highlight,.n2-ss-preview-mode #n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer-selected .n2-ss-item-overlay{display:none!important}.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}.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-slider-name .n2-h1,.n2-ss-edit-slide-top-details .n2-h1{color:#606d7b;margin-bottom:15px;cursor:pointer;line-height:30px}[dir=ltr] .n2-slider-name .n2-h1:HOVER:after,[dir=ltr] .n2-ss-edit-slide-top-details .n2-h1:HOVER:after,[dir=rtl] .n2-slider-name .n2-h1:HOVER:before,[dir=rtl] .n2-ss-edit-slide-top-details .n2-h1:HOVER:before{font-family:'Nextend'!important;content:"\e94f";font-size:22px;vertical-align:top;margin:0 5px;color:#b0b9bf}body[data-slides="0"] .n2-slider-name .n2-h1{cursor:default}body[data-slides="0"] .n2-slider-name .n2-h1:HOVER:after{display:none}.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}[dir=rtl] .n2-ss-edit-slide-top-tabs .n2-button.n2-first{border-top-left-radius:0;border-bottom-left-radius:0;border-left:0;border-right:2px solid #e0e6ed}.n2-ss-edit-slide-top-tabs .n2-button.n2-last,[dir=rtl] .n2-ss-edit-slide-top-tabs .n2-button.n2-first{border-top-right-radius:3px;border-bottom-right-radius:3px}[dir=rtl] .n2-ss-edit-slide-top-tabs .n2-button.n2-last{border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:3px;border-bottom-left-radius:3px;border-left:2px solid #e0e6ed}.n2-ss-edit-slide-top-tabs .n2-button.n2-active{background:#0c92df;color:#fff;border-color:#0c92df!important}.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-slider-real-container{position:relative}.n2-ss-slider-outer-container{position:relative;padding:40px 0 0 40px}.n2-ss-canvas-slider-container{padding-bottom:99px;margin:10px}.n2-ss-has-ruler .n2-ss-canvas-slider-container{margin:0}#n2-ss-0-align{margin:0!important}.n2-i-desktopPortrait:before{content:'\e925'}.n2-i-desktopLandscape:before{content:'\e95a'}.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-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-choose,.n2-editor-header .n2-ss-button-container>.n2-basiccss-back{display:none}.n2-basiccss-show-preset-list .n2-editor-header .n2-ss-button-container>.n2-basiccss-back{display:inline-block}.n2-ss-preview-modal .n2-modal-window{background-color:#e9edf0}#n2-admin.n2-ss-mode-desktopPortrait .n2-ss-responsive-helper,.n2-ss-background-type-color .n2-ss-background-video-param,.n2-ss-background-type-color .n2-ss-slide-background-image-param,.n2-ss-background-type-gradient .n2-ss-background-video-param,.n2-ss-background-type-gradient .n2-ss-slide-background-image-param,.n2-ss-background-type-image .n2-ss-background-video-param:not(.n2-ss-slide-background-image-param),body[data-editormode=content] #n2-admin .n2-ss-responsive-helper{display:none}#n2-tab-animations-events td.n2-label{padding:0}#n2-tab-animations-events td.n2-element{padding:6px 0}.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 #n2-ss-slide-edit-slides{display:block}.n2-ss-show-slides a.n2-ss-back-slides,.n2-ss-show-slides a.n2-ss-back-slides:before{color:#fff}.n2-ss-columns-element{background:#28313a}.n2-ss-columns-element-add-col{vertical-align:top;display:inline-block;background:#51b82d;width:28px;height:28px;border-radius:3px;margin:8px 0;cursor:pointer;text-align:center;color:#fff;font-size:16px}.n2-ss-columns-element-add-col .n2-i,.n2-ss-columns-element-container .n2-ss-columns-element-handle .n2-i{line-height:28px}.n2-ss-columns-element-container{vertical-align:top;position:relative;width:300px;display:inline-flex;padding:8px;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;overflow:hidden}.n2-ss-columns-element-container>.n2-ss-columns-element-column{position:relative;flex:0 0 auto;background:#51b82d;height:28px;line-height:28px;width:25%;color:#fff;text-align:center;overflow:hidden;cursor:move;border-radius:3px;min-width:5px}.n2-ss-columns-element-container .n2-ss-columns-element-handle{display:block;width:11px;height:28px;background:#202934;flex:0 0 11px;border-radius:3px;margin:0 2px;cursor:ew-resize;color:#9aa7b2;text-align:center}.n2-ss-columns-element-container.n2-sortable-currently-sorted .n2-ss-columns-element-handle{display:none}.n2-ss-columns-element-container.n2-sortable-currently-sorted .n2-ss-columns-element-column{margin-right:15px}.n2-ss-columns-element-container.n2-sortable-currently-sorted .n2-ss-columns-element-column:last-child{margin-right:0}.n2-ss-section-main-content{min-height:20px}#n2-ss-0 .n2-ss-slide{opacity:.3}#n2-ss-0 .n2-ss-slide.n2-ss-currently-edited-slide{opacity:1}.n2-form-element-style-mode{display:flex;background:#28313a;padding:10px;border:1px solid #20282f;border-width:1px 0;margin-bottom:-1px;align-items:center}.n2-form-element-style-mode-reset{margin:0 10px 0 auto}.n2-form-element-style-mode .n2-form-element-radio-tab{height:24px;line-height:24px;margin:0}.n2-form-element-style-mode .n2-form-element-radio-tab .n2-radio-option{background:#6b7986;color:#fff;font-size:11px}.n2-form-element-style-mode .n2-form-element-radio-tab .n2-radio-option.n2-active{background:#0c92df}.n2-form-element-style-mode-label{display:inline-block;font-size:11px;color:#b2bfc9}#n2-ss-layer-window{z-index:100000;position:fixed;left:100px;top:100px;width:355px}#n2-ss-layer-window.n2-ss-layer-window-minized .n2-ss-layer-window-resizer,.n2-ss-has-layers.n2-ss-layer-edit-visible.n2-ss-preview-mode #n2-ss-layer-window,.n2-ss-layer-edit-visible.n2-ss-move-layer #n2-ss-layer-window,.n2-ss-layer-edit-visible.n2-ss-resize-layer #n2-ss-layer-window,body:not(.n2-ss-has-layers) #n2-ss-layer-window,body:not(.n2-ss-layer-edit-visible) #n2-ss-layer-window{display:none}#n2-ss-layer-window.n2-ss-layer-window-minized{height:30px!important}#n2-ss-layer-window.n2-ss-layer-window-minized .n2-i-minimize:before{content:'\e915'}#n2-ss-layer-window .n2-ss-layer-window-actions{display:none;position:absolute;top:0;left:-35px;width:32px;background-color:#202934;border-radius:3px}#n2-ss-layer-window .n2-ss-layer-window-actions>.n2-button{width:32px;height:32px;line-height:32px;color:#b0bdc7}#n2-ss-layer-window .n2-ss-layer-window-resizer{height:7px;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-layer-window .n2-ss-layer-window-crop{position:relative;width:100%;height:100%;border-radius:3px;box-shadow:0 1px 10px RGBA(0,0,0,.5);overflow:hidden;background:#3c4958;z-index:2}.n2-ss-layer-window-title{position:relative;line-height:60px;height:60px;overflow:hidden;background:#202934;font-size:12px;color:#cbd6df;text-align:left}.n2-ss-layer-window-title .n2-ss-layer-window-title-nav{position:absolute;top:0;line-height:30px;height:30px;margin:0 5px}.n2-ss-layer-window-title .n2-ss-layer-window-title-nav-left{left:0}.n2-ss-layer-window-title .n2-ss-layer-window-title-nav-right{right:0}.n2-ss-layer-window-title .n2-ss-layer-window-title-nav>*{display:inline-block;width:20px;height:30px;line-height:30px;font-size:16px;color:#fff;padding:0;vertical-align:top;text-align:center}.n2-ss-layer-window-title .n2-ss-layer-window-title-nav .n2-i{vertical-align:middle}.n2-ss-layer-window-title .n2-ss-layer-window-title span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 60px;text-align:center}.n2-ss-layer-window-breadcrumb{display:none;height:22px;font-size:11px;color:#b2bfc9;background-color:#202934;border-bottom:1px solid #1a2028;text-transform:uppercase;padding:0 5px}.n2-ss-layer-window-breadcrumb.n2-has-breadcrumb{display:block}.n2-ss-layer-window-breadcrumb *{display:inline-block;height:22px;vertical-align:top;line-height:22px}.n2-window-title-structure-nav span{padding:0 5px;cursor:pointer}.n2-window-title-structure-nav .n2-i-mini-arrow-thin{font-size:16px;padding:0}.n2-window-title-structure-nav:last-child{color:#fff}.n2-window-title-structure-nav:last-child .n2-i-mini-arrow-thin{display:none}#n2-tabbed-slide-editor-settings .n2-tabs{position:relative;overflow-y:auto;overflow-x:hidden}#n2-ss-layer-window table,#n2-ss-layer-window tbody,#n2-ss-layer-window tr{display:block}#n2-ss-layer-window td{display:block;width:auto}#n2-ss-layer-window .n2-label{background:#3c4958;border-top:1px solid #303b47;padding:3px 10px 0}#n2-ss-layer-window .n2-empty-label{padding:0;height:4px}#n2-ss-layer-window .n2-empty-group-label{padding:0;height:0}#n2-ss-layer-window .n2-label label{color:#b2bfc9;font-size:10px}#n2-ss-layer-window .n2-element{background:#3c4958;border-top:0;padding:0}#n2-ss-layer-window textarea{max-width:290px!important;width:290px!important}#n2-ss-layer-window .n2-form-element-button{max-width:38px;overflow:hidden}#n2-ss-layer-window .n2-sidebar-row{line-height:34px;background:#28313a}#n2-ss-layer-window .n2-list li,#n2-ss-layer-window .n2-sidebar-row{border-bottom:1px solid RGBA(0,0,0,.2)}#n2-ss-layer-window .n2-button-m{height:24px;line-height:24px}#n2-ss-layer-window .n2-sidebar-tab-switcher{border:0;border-collapse:separate}#n2-ss-layer-window .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-layer-window .n2-sidebar-tab-switcher .n2-td .n2-i{font-size:32px;line-height:47px}#n2-ss-layer-window .n2-sidebar-tab-switcher .n2-td.n2-active{background:#0c92df;color:#fff}#n2-ss-layer-window .n2-has-underline>.n2-underline::after,#n2-ss-layer-window .n2-sidebar-tab-switcher .n2-td[data-tab=style]{display:none}#n2-ss-layer-window.n2-ss-has-design-option .n2-sidebar-tab-switcher .n2-td[data-tab=style]{display:table-cell}#n2-ss-layer-window .n2-ss-layer-window-title{line-height:30px;height:30px;cursor:move;border-top-left-radius:5px;border-top-right-radius:5px}#n2-ss-layer-window .n2-ss-layer-window-title .n2-ss-layer-window-title-inner{white-space:nowrap;margin:0 10px;text-align:center}#n2-ss-layer-window .ui-autocomplete{padding:0;max-height:200px;overflow-y:auto;overflow-x:hidden}#n2-ss-layer-window .n2-form-element-autocomplete .nui-autocomplete .nui-menu-item{padding-right:20px}#n2-ss-add-sidebar.n2-active .n2-ss-add-sidebar-inner>a,#n2-ss-layer-window .n2-ss-generator-param{display:none}.n2-ss-dynamic-slide #n2-ss-layer-window .n2-ss-generator-param{display:block}#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'}#n2-ss-add-sidebar{background:#212d3a;position:absolute;left:-1px;top:54px;bottom:-1px;width:50px;text-align:center}[dir=rtl] #n2-ss-add-sidebar{right:-1px;left:auto}#n2-ss-add-sidebar .n2-ss-add-sidebar-inner{position:relative;padding-top:.1px}#n2-ss-add-sidebar .n2-ss-add-sidebar-inner>*{margin-top:10px;color:#80a3b5}#n2-ss-add-sidebar .n2-ss-add-sidebar-inner>.n2-button-blue,.n2-ss-theme-dark .n2-ruler>span span{color:#fff}#n2-ss-add-sidebar.n2-active .n2-ss-add-sidebar-inner>*{margin-top:0}#n2-ss-add-sidebar.n2-active{width:341px;z-index:1010}#n2-ss-add-sidebar.n2-active .n2-ss-add-layer-button{margin:0;background:0 0;position:absolute;top:16px;right:5px}#n2-ss-add-sidebar.n2-active .n2-ss-add-layer-button .n2-i:before{content:"\e90a";color:#b2bfc9}#n2-ss-add-sidebar.n2-active .n2-ss-add-sidebar-inner{width:341px!important}#n2-ss-add-sidebar.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 90px}.n2-ss-slide-item-group{color:#b2bfc9;padding:4px 5px 1px}.n2-ss-addlayer .n2-ss-available-layers{display:none;box-sizing:border-box;white-space:normal;text-align:left}.n2-ss-core-item{display:inline-block;margin:5px;background-color:#6b7986;color:#fff;line-height:15px;cursor:pointer;text-align:center;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;width:90px;min-height:73px;z-index:1000;vertical-align:top}.n2-ss-core-item-title{display:flex;align-items:center;justify-content:center;height:34px}.n2-ss-core-item:before{font-family:'Nextend';font-size:32px;content:"\e943";display:block;line-height:32px;margin-top:14px}.n2-ss-core-item[data-item=heading]:before{content:"\e945"}.n2-ss-core-item[data-item=highlightedHeading]:before{content:"\e990"}.n2-ss-core-item[data-item=animatedHeading]:before{content:"\e991"}.n2-ss-core-item[data-item=text]:before{content:"\e944"}.n2-ss-core-item[data-item=button]:before{content:"\e942"}.n2-ss-core-item[data-item=imagearea]:before{content:"\e950"}.n2-ss-core-item[data-item=icon2]:before,.n2-ss-core-item[data-item=icon]:before{content:"\e941"}.n2-ss-core-item[data-item=input]:before{content:"\e939"}.n2-ss-core-item[data-item=iframe]:before{content:"\e938"}.n2-ss-core-item[data-item=area]:before{content:"\e937"}.n2-ss-core-item[data-item=list]:before{content:"\e93e"}.n2-ss-core-item[data-item=caption]:before{content:"\e940"}.n2-ss-core-item[data-item=transition]:before{content:"\e93f"}.n2-ss-core-item[data-item=youtube]:before{content:"\e93d"}.n2-ss-core-item[data-item=vimeo]:before{content:"\e93c"}.n2-ss-core-item[data-item=video]:before{content:"\e93b"}.n2-ss-core-item[data-item=html]:before{content:"\e93a"}.n2-ss-core-item[data-item=progressbar]:before{content:"\e982"}.n2-ss-core-item[data-item=imagebox]:before{content:"\e983"}.n2-ss-core-item[data-item=counter]:before{content:"\e984"}.n2-ss-core-item[data-item=circlecounter]:before{content:"\e985"}.n2-ss-core-item[data-item=audio]:before{content:"\e986"}.n2-ss-core-item[data-item=structure]:before{font-size:74px;margin-top:24px}.n2-ss-core-item[data-item=structure][data-sstype="1col"]:before{content:"\e967"}.n2-ss-core-item[data-item=structure][data-sstype="2col"]:before{content:"\e966"}.n2-ss-core-item[data-item=structure][data-sstype="3col"]:before{content:"\e961"}.n2-ss-core-item[data-item=structure][data-sstype="4col"]:before{content:"\e95f"}.n2-ss-core-item[data-item=structure][data-sstype="2col-60-40"]:before{content:"\e965"}.n2-ss-core-item[data-item=structure][data-sstype="2col-40-60"]:before{content:"\e964"}.n2-ss-core-item[data-item=structure][data-sstype="2col-80-20"]:before{content:"\e963"}.n2-ss-core-item[data-item=structure][data-sstype="2col-20-80"]:before{content:"\e962"}.n2-ss-core-item[data-item=structure][data-sstype="3col-20-60-20"]:before{content:"\e960"}.n2-ss-core-item[data-item=structure][data-sstype=special]:before{content:"\e95d"}#n2-ss-toolbar{z-index:9;position:relative;height:28px;line-height:28px;background:#f2f5fa;white-space:nowrap;padding:13px 10px}.n2-ss-slider-visible #n2-ss-slide-canvas-container #n2-ss-toolbar{height:auto}#n2-ss-slide-canvas-container.n2-scroll-disable #n2-ss-toolbar{height:28px;border-bottom:0}#n2-ss-toolbar>*{line-height:28px;height:28px;vertical-align:top;display:inline-block}#n2-ss-toolbar .n2-ss-tool{margin:0 5px;display:inline-block;vertical-align:top!important}#n2-ss-toolbar .n2-ss-tool.n2-form-element-text{height:24px;line-height:24px;position:relative}#n2-ss-toolbar .n2-text-sub-label{font-size:16px}#n2-ss-layer-list>.n2-list>li li,.n2-ss-theme-dark #n2-ss-slide-canvas-container-inner,.n2-ss-theme-dark .n2-ruler-vertical{background-color:#28313a}.n2-ss-preview-mode .n2-main-top-bar{opacity:0}#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{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-toolbar .n2-button-grey{background-color:#a1aeb5}#n2-ss-toolbar .n2-radio-option{background-color:#a1aeb5;border-left:1px solid #8c99a1}#n2-ss-toolbar .n2-radio-option.n2-first{border-left-width:0}#n2-ss-toolbar .n2-radio-option.n2-active{background-color:#0c92df;border-color:#0c92df}#n2-ss-toolbar .n2-radio-option.n2-active[data-mode=canvas]{background-color:#5f39c2;border-color:#5f39c2}#n2-ss-toolbar .n2-radio-option.n2-sub-active{background-color:#51b82d;border-color:#51b82d}#n2-ss-toolbar .n2-ss-tool.n2-button{height:28px;line-height:28px;background-color:#a1aeb5}#n2-ss-toolbar .n2-ss-tool.n2-button-icon{padding:0;width:28px}#n2-ss-toolbar .n2-ss-tool.n2-button.n2-active{background-color:#0c92df}#n2-ss-toolbar .n2-ss-tool.n2-button.n2-sub-active{background-color:#51b82d}#n2-ss-toolbar .ui-autocomplete{max-width:100%}#n2-ss-layer-parent-linker,#n2-ss-theme,#n2-ss-toolbar #n2-ss-theme.n2-active{width:28px;height:28px;line-height:28px;padding:0;background-color:#a1aeb5}#n2-ss-theme.n2-active .n2-i:before{content:"\e64c"}#n2-ss-layer-list .n2-list .n2-ss-layerlist-row.n2-ss-ll-dragging-parent{background:#000}#n2-ss-layer-list>.n2-list>li{background-color:#303b47}#n2-ss-layer-list .n2-list>li{line-height:31px}#n2-ss-layer-list .n2-list .n2-ss-layerlist-row.n2-active,#n2-ss-layer-list .n2-list .n2-ss-layerlist-row.n2-selected,.n2-list .n2-ss-layerlist-row.n2-active,.n2-list .n2-ss-layerlist-row.n2-selected{background:#1681c1}#n2-ss-layer-list .n2-ss-layer-content-row .n2-list>li .n2-actions-left,#n2-ss-layer-list .n2-ss-layerlist-row-row .n2-list>li .n2-actions-left,#n2-ss-layer-list .n2-ss-layerlist-row.n2-ss-ll-dragging .n2-actions,#n2-ss-layer-list .n2-ss-layerlist-row.n2-ss-ll-dragging .n2-actions-left{display:none}#n2-ss-layer-list .n2-ss-layerlist-row.n2-ss-ll-dragging{position:absolute;left:0;width:100%;height:32px;overflow:hidden;opacity:.5}#n2-ss-layers .nextend-sortable-placeholder{border:0;position:relative;height:0;overflow:visible;z-index:1001}#n2-ss-layers .nextend-sortable-placeholder div{position:absolute;left:0;top:-1px;width:100%;height:0;box-shadow:0 0 0 2px #0c92df}#n2-ss-layers ul .nextend-sortable-placeholder div{margin-left:30px}#n2-ss-layers ul ul .nextend-sortable-placeholder div{margin-left:50px}#n2-ss-layers ul ul ul .nextend-sortable-placeholder div{margin-left:70px}#n2-ss-layers ul ul ul ul .nextend-sortable-placeholder div{margin-left:90px}#n2-ss-layers ul ul ul ul ul .nextend-sortable-placeholder div{margin-left:110px}#n2-ss-layers ul ul ul ul ul ul .nextend-sortable-placeholder div{margin-left:130px}#n2-ss-layers .n2-ui-sortable-helper{opacity:.5}#n2-ss-layers-table .n2-list li,.n2-list .n2-ss-layer-group-row{border-bottom:0}#n2-ss-layers-table .n2-ss-layer-title{border-bottom:1px solid RGBA(0,0,0,.2)}#n2-ss-layers-table .n2-active>.n2-ss-layer-title,#n2-ss-layers-table .n2-selected>.n2-ss-layer-title{border-color:#1681c1}.n2-ss-layer-group-row ul.n2-list{margin-top:-10px;padding-top:10px}.n2-ss-layer-title{display:block;line-height:31px;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,ul>li>.n2-ss-layer-title span{margin:0 30px}.n2-ss-layer-icon{position:absolute;top:2px}ul>li>.n2-ss-layer-title .n2-ss-layer-icon{left:3px}#n2-ss-layer-list>ul>li.n2-ss-layer-content-row>.n2-ss-layer-title span,#n2-ss-layer-list>ul>li.n2-ss-layer-row-row>.n2-ss-layer-title span,ul>li .n2-inline-form,ul>li>ul>li>.n2-ss-layer-title span{margin:0 50px}#n2-ss-layer-list>ul>li.n2-ss-layer-content-row>.n2-ss-layer-title .n2-ss-layer-icon,#n2-ss-layer-list>ul>li.n2-ss-layer-row-row>.n2-ss-layer-title .n2-ss-layer-icon,ul>li>ul>li>.n2-ss-layer-title .n2-ss-layer-icon{left:23px}ul>li>ul>li>ul>li .n2-inline-form,ul>li>ul>li>ul>li>.n2-ss-layer-title span{margin:0 70px}ul>li>ul>li>ul>li>.n2-ss-layer-title .n2-ss-layer-icon{left:43px}ul>li>ul>li>ul>li>ul>li>.n2-ss-layer-title span,ul>li>ul>li>ul>li>ul>li>ul>li .n2-inline-form{margin:0 90px}ul>li>ul>li>ul>li>ul>li>.n2-ss-layer-title .n2-ss-layer-icon{left:63px}ul>li>ul>li>ul>li>ul>li>ul>li>.n2-ss-layer-title span{margin:0 110px}ul>li>ul>li>ul>li>ul>li>ul>li>.n2-ss-layer-title .n2-ss-layer-icon{left:83px}ul>li>ul>li>ul>li>ul>li>ul>li>ul>li .n2-ss-layer-title span{margin:0 130px}ul>li>ul>li>ul>li>ul>li>ul>li>ul>li .n2-ss-layer-title .n2-ss-layer-icon{left:103px}[dir=rtl] ul>li>.n2-ss-layer-title .n2-ss-layer-icon{right:3px;left:auto}[dir=rtl] #n2-ss-layer-list>ul>li.n2-ss-layer-content-row>.n2-ss-layer-title .n2-ss-layer-icon,[dir=rtl] #n2-ss-layer-list>ul>li.n2-ss-layer-row-row>.n2-ss-layer-title .n2-ss-layer-icon,[dir=rtl] ul>li>ul>li>.n2-ss-layer-title .n2-ss-layer-icon{right:23px;left:auto}[dir=rtl] ul>li>ul>li>ul>li>.n2-ss-layer-title .n2-ss-layer-icon{right:43px;left:auto}[dir=rtl] ul>li>ul>li>ul>li>ul>li>.n2-ss-layer-title .n2-ss-layer-icon{right:63px;left:auto}[dir=rtl] ul>li>ul>li>ul>li>ul>li>ul>li>.n2-ss-layer-title .n2-ss-layer-icon{right:83px;left:auto}[dir=rtl] ul>li>ul>li>ul>li>ul>li>ul>li>ul>li .n2-ss-layer-title .n2-ss-layer-icon{right:103px;left:auto}.n2-ss-layerlist-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;margin:0}.n2-ss-layerlist-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-active>.n2-ss-layer-title .n2-actions{opacity:1}.n2-ss-layer-title .n2-actions-left{position:absolute;top:0;left:0;padding:2px 0;cursor:default;line-height:24px}html[dir=rtl] .n2-ss-layer-title .n2-actions-left{right:0;left:auto}#n2-ss-layer-list .n2-ss-layerlist-row.n2-active>.n2-ss-layer-title,#n2-ss-layer-list .n2-ss-layerlist-row.n2-active>.n2-ss-layer-title .n2-i,#n2-ss-layer-list .n2-ss-layerlist-row.n2-selected .n2-ss-layer-title,#n2-ss-layer-list .n2-ss-layerlist-row.n2-selected .n2-ss-layer-title .n2-i{color:#fff}.n2-ss-layer-title .n2-actions a,.n2-ss-layer-title .n2-actions-left a{display:inline-block;padding:0}.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-layer-status{display:inline-block;position:relative;margin:0 3px}#n2-ss-layer-list a .n2-i,#n2-ss-layer-list 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-closed .n2-i-col:before,.n2-closed .n2-i-row:before,.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:1019}#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-ss-layer-list-bulk-top-bar,[data-component=layer] .n2-ss-select-layer-mode #n2-ss-layers.n2-active .n2-ss-layer-list-layers-top-bar{display:none}[data-component=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-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-slide-canvas-container{background-color:#fff;border-width:1px 0 0;padding-bottom:400px;padding-bottom:40vh;position:relative;z-index:1;border-top:1px solid #ccd1d6}#smartslider-form>div{margin-bottom:-1px}#n2-ss-slide-canvas-container-inner{position:relative;z-index:1;overflow:hidden;border-bottom:1px solid #ccd1d6;background-color:#e9edf0;margin-left:49px;border-top:1px solid #ccd1d6}[dir=rtl] #n2-ss-slide-canvas-container-inner{margin-right:49px;margin-left:0}.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-0 .n2-ss-slide-border{display:none;position:absolute;background:#a1aeb5;width:1px;height:1px}#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:HOVER .n2-ss-slide-border{display:block}.n2-ss-layer-placeholder{position:relative;height:0;width:100%;box-shadow:0 0 0 2px #0c92df;display:block;z-index:100000}.n2-ss-layer-inline>.n2-ss-layer-placeholder,.n2-ss-layer-row>.n2-ss-layer-placeholder{height:auto;width:0;align-self:stretch;flex:0 0 auto}.n2-ss-core-item.n2-canvas-item-drag{opacity:.5;z-index:9999;margin:0}.n2-canvas-item-drag{opacity:.5!important}#n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer.n2-ss-mouse-over,.n2-ss-move-layer div#n2-ss-0 .n2-ss-layer.nui-resizable,.n2-ss-resize-layer div#n2-ss-0 .n2-ss-layer.nui-resizable{box-shadow:inset 0 0 0 1px #0c92df}#n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer.n2-ss-mouse-over[data-pm=absolute],#n2-ss-slide-canvas-container #n2-ss-0 [data-pm=absolute] .n2-ss-layer.n2-ss-mouse-over,.n2-ss-move-layer div#n2-ss-0 .n2-ss-layer.nui-resizable[data-pm=absolute],.n2-ss-move-layer div#n2-ss-0 [data-pm=absolute] .n2-ss-layer.nui-resizable,.n2-ss-resize-layer div#n2-ss-0 .n2-ss-layer.nui-resizable[data-pm=absolute],.n2-ss-resize-layer div#n2-ss-0 [data-pm=absolute] .n2-ss-layer.nui-resizable{box-shadow:inset 0 0 0 1px #5f39c2}div#n2-ss-0 .n2-ss-layer-ui-label-container{display:none;position:absolute;left:0;top:0;text-align:left;line-height:16px;z-index:91;white-space:nowrap;border-bottom-right-radius:2px;overflow:hidden;background:#0c92df;max-width:100%;max-height:100%}div#n2-ss-0 [data-pm=absolute] .n2-ss-layer-ui-label-container{background:#5f39c2}div#n2-ss-0 .n2-ss-layer-ui-label-container:HOVER{max-width:none;max-height:none}.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER div#n2-ss-0 .n2-ss-layer.n2-active>.n2-ss-layer-ui-label-container,div#n2-ss-0 .n2-ss-layer.n2-ss-mouse-over-delayed>.n2-ss-layer-ui-label-container{display:block}#n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer .n2-ss-layer-ui-label{display:inline-block;height:16px;font-size:10px;line-height:16px;color:#fff;padding:0 5px;vertical-align:top;text-transform:uppercase;border-left:1px solid #0b7dbe}#n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer[data-pm=absolute] .n2-ss-layer-ui-label{border-left:1px solid #422887}#n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer>.n2-ss-layer-ui-label-container .n2-ss-layer-ui-label-action{padding:0;cursor:pointer;font-size:16px;display:none}#n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer.n2-active>.n2-ss-layer-ui-label-container .n2-ss-layer-ui-label-action,#n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer>.n2-ss-layer-ui-label-container:HOVER .n2-ss-layer-ui-label-action{display:inline-block}#n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer>.n2-ss-layer-ui-label-container .n2-ss-layer-ui-label:first-child{border-left:0}#n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer>.n2-ss-layer-ui-label-container .n2-ss-layer-ui-layer-move{cursor:move}div#n2-ss-0 .n2-ss-layer-ui-label-container.invisible{visibility:hidden}.n2-ss-layer[data-sstype=col].n2-highlight{box-shadow:inset 0 0 0 1px #0c92df}div#n2-ss-0 .n2-ss-layer.n2-ss-mouse-hover[data-sstype=col]{z-index:2}.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER div#n2-ss-0 .n2-ss-layer.n2-active{box-shadow:inset 0 0 0 1px #0c92df}.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER div#n2-ss-0 .n2-ss-layer[data-pm=absolute] .n2-ss-layer[data-sstype=col].n2-active,.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER div#n2-ss-0 .n2-ss-layer[data-pm=absolute].n2-active,.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER div#n2-ss-0 [data-pm=absolute] .n2-ss-layer.n2-active{box-shadow:inset 0 0 0 1px #5f39c2}.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER #n2-ss-0 .n2-ss-layer[data-sstype=row].n2-active,.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER div#n2-ss-0 .n2-ss-layer .n2-ss-layer[data-sstype=col].n2-active{box-shadow:inset 0 0 0 1px RGBA(12,146,223,1)}.n2-ss-move-layer .n2-ss-layer[data-sstype=col]{box-shadow:inset 0 0 0 1px RGBA(12,146,223,1)}.n2-ss-move-layer #n2-ss-0 .n2-ss-layer:HOVER{box-shadow:none}div#n2-ss-0 .n2-ss-layer[data-sstype=col] .n2-ss-layer.nui-draggable-dragging,div#n2-ss-0 .n2-ss-layer[data-sstype=content] .n2-ss-layer.nui-draggable-dragging{z-index:100000;outline:0!important}.n2-ss-item-overlay{display:none;position:absolute;top:0;left:0;width:100%;height:100%}.n2-ss-select-layer-mode .n2-ss-layer-selected .n2-ss-item-overlay{display:block;background-color:RGBA(0,132,255,.4)}.n2-ss-item-html .n2-ss-item-overlay,.n2-ss-item-iframe .ui-item-overlay{display:block}.n2-ss-layer .n2-ss-layer-cc{opacity:0}.n2-ss-layer-cc:HOVER,.nui-resizable-e:HOVER,.nui-resizable-n:HOVER,.nui-resizable-ne:HOVER,.nui-resizable-nw:HOVER,.nui-resizable-s:HOVER,.nui-resizable-se:HOVER,.nui-resizable-sw:HOVER,.nui-resizable-w:HOVER{opacity:1}.n2-ss-layer[data-align=center][data-valign=bottom] .nui-resizable-s,.n2-ss-layer[data-align=center][data-valign=middle] .n2-ss-layer-cc,.n2-ss-layer[data-align=center][data-valign=top] .nui-resizable-n,.n2-ss-layer[data-align=left][data-valign=bottom] .nui-resizable-sw,.n2-ss-layer[data-align=left][data-valign=middle] .nui-resizable-w,.n2-ss-layer[data-align=left][data-valign=top] .nui-resizable-nw,.n2-ss-layer[data-align=right][data-valign=bottom] .nui-resizable-se,.n2-ss-layer[data-align=right][data-valign=middle] .nui-resizable-e,.n2-ss-layer[data-align=right][data-valign=top] .nui-resizable-ne{background:#0c92df;opacity:1;border:1px solid #fff}.n2-ss-layer[data-align=center][data-valign=bottom][data-pm=absolute] .nui-resizable-s,.n2-ss-layer[data-align=center][data-valign=middle][data-pm=absolute] .n2-ss-layer-cc,.n2-ss-layer[data-align=center][data-valign=top][data-pm=absolute] .nui-resizable-n,.n2-ss-layer[data-align=left][data-valign=bottom][data-pm=absolute] .nui-resizable-sw,.n2-ss-layer[data-align=left][data-valign=middle][data-pm=absolute] .nui-resizable-w,.n2-ss-layer[data-align=left][data-valign=top][data-pm=absolute] .nui-resizable-nw,.n2-ss-layer[data-align=right][data-valign=bottom][data-pm=absolute] .nui-resizable-se,.n2-ss-layer[data-align=right][data-valign=middle][data-pm=absolute] .nui-resizable-e,.n2-ss-layer[data-align=right][data-valign=top][data-pm=absolute] .nui-resizable-ne{background:#5f39c2}.n2-ss-layer-cc{position:absolute;font-size:.1px;display:block;z-index:92}.n2-ss-layer .nui-normal-sizing-handle,.n2-ss-layer .nui-resizable-handle{border-radius:50px}.n2-ss-layer .n2-ss-layer-cc,.n2-ss-layer .nui-normal-sizing-handle,.n2-ss-layer .nui-resizable-handle{display:none!important;background-image:none;border:1px solid #0c92df;height:7px;width:7px;background:#fff}.n2-ss-layer[data-pm=absolute] .n2-ss-layer-cc,.n2-ss-layer[data-pm=absolute] .nui-normal-sizing-handle,.n2-ss-layer[data-pm=absolute] .nui-resizable-handle{border:1px solid #5f39c2}.n2-ss-layer .ui-column-width-handle{display:none!important;position:absolute;top:25%;height:50%;cursor:ew-resize;width:5px;background:RGBA(12,146,223,.5);z-index:88;opacity:1;box-sizing:border-box!important;border-radius:5px}.n2-ss-layer .ui-column-width-handle:HOVER{background:RGBA(12,146,223,1)}.n2-ss-layer[data-pm=absolute] .ui-column-width-handle{background:RGBA(95,57,194,.5)}.n2-ss-layer[data-pm=absolute] .ui-column-width-handle:HOVER{background:RGBA(95,57,194,1)}.n2-ss-layer .nui-spacing-handle{display:none!important;z-index:89;background:#0c92df;opacity:.5;overflow:hidden}.n2-ss-layer[data-pm=absolute] .nui-spacing-handle{background:#5f39c2}.n2-ss-layer .nui-spacing-handle.nui-spacing-under-spacing,.n2-ss-layer .nui-spacing-handle:HOVER{opacity:.8}.n2-ss-layer .nui-resizable-n{left:50%;top:-4px;margin-left:-4px}.n2-ss-layer .nui-spacing-handle.nui-spacing-n{min-height:5px;cursor:s-resize}.n2-ss-layer .nui-spacing-handle-padding.nui-spacing-n{top:0;margin-left:0;left:25%;width:50%}.n2-ss-layer .nui-spacing-handle-margin.nui-spacing-n{left:0;bottom:100%;width:100%}.n2-ss-layer .nui-normal-sizing-e,.n2-ss-layer .nui-resizable-e{right:-4px;top:50%;margin-top:-4px}.n2-ss-layer .nui-spacing-handle.nui-spacing-e{min-width:5px;cursor:w-resize}.n2-ss-layer .nui-spacing-handle-padding.nui-spacing-e{top:25%;margin-top:0;right:0;height:50%}.n2-ss-layer .nui-spacing-handle-margin.nui-spacing-e{top:0;left:100%;height:100%}.n2-ss-layer .nui-normal-sizing-s,.n2-ss-layer .nui-resizable-s{bottom:-4px;left:50%;margin-left:-4px}.n2-ss-layer .nui-spacing-handle.nui-spacing-s{min-height:5px;cursor:n-resize}.n2-ss-layer .nui-spacing-handle-padding.nui-spacing-s{bottom:0;margin-left:0;left:25%;width:50%}.n2-ss-layer .nui-spacing-handle-margin.nui-spacing-s{bottom:auto;top:100%;left:0;width:100%}.n2-ss-layer .nui-normal-sizing-w,.n2-ss-layer .nui-resizable-w{left:-4px;top:50%;margin-top:-4px}.n2-ss-layer .nui-spacing-handle.nui-spacing-w{min-width:5px;cursor:e-resize}.n2-ss-layer .nui-spacing-handle-padding.nui-spacing-w{top:25%;margin-top:0;left:0;height:50%}.n2-ss-layer .nui-spacing-handle-margin.nui-spacing-w{left:auto;right:100%;top:0;height:100%}.n2-ss-layer .nui-resizable-ne{right:-4px;top:-4px}.n2-ss-layer .nui-resizable-se{right:-4px;bottom:-4px}.n2-ss-layer .nui-resizable-sw{left:-4px;bottom:-4px}.n2-ss-layer .nui-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.n2-active:HOVER{box-shadow:inset 0 0 0 1px #0c92df}.n2-ss-layer.n2-active[data-pm=absolute]:HOVER,[data-pm=absolute] .n2-ss-layer.n2-active:HOVER{box-shadow:inset 0 0 0 1px #5f39c2}.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER .n2-ss-layer.n2-active>.n2-ss-layer-cc,.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER .n2-ss-layer.n2-active>.nui-normal-sizing-handle,.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER .n2-ss-layer.n2-active>.nui-resizable-handle,.n2-ss-layer.n2-active:HOVER>.n2-ss-layer-cc,.n2-ss-layer.n2-active:HOVER>.n2-ss-layer-row>.nui-spacing-handle,.n2-ss-layer.n2-active:HOVER>.n2-ss-layer-row>.ui-column-width-handle,.n2-ss-layer.n2-active:HOVER>.nui-normal-sizing-handle,.n2-ss-layer.n2-active:HOVER>.nui-resizable-handle,.n2-ss-resize-layer .n2-ss-layer.n2-active>.n2-ss-layer-row>.nui-spacing-handle,.n2-ss-resize-layer .n2-ss-layer.n2-active>.n2-ss-layer-row>.ui-column-width-handle,.n2-ss-resize-layer .n2-ss-layer.n2-active>.nui-normal-sizing-handle,.n2-ss-resize-layer .n2-ss-layer.n2-active>.nui-resizable-handle{display:block!important}.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER .n2-ss-layer.n2-active>.nui-spacing-handle{display:none!important}.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container .n2-ss-layer.n2-active:HOVER>.n2-ss-layer-content>.nui-spacing-handle,.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container .n2-ss-layer.n2-active:HOVER>.n2-ss-layer-mask>.n2-ss-layer-content>.nui-spacing-handle,.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container .n2-ss-layer.n2-active:HOVER>.n2-ss-layer-mask>.n2-ss-layer-row>.nui-spacing-handle,.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container .n2-ss-layer.n2-active:HOVER>.n2-ss-layer-row>.nui-spacing-handle,.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container .n2-ss-layer.n2-active:HOVER>.nui-spacing-handle,.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER .n2-ss-layer.nui-resizable-resizing>div>.nui-spacing-handle,.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER .n2-ss-layer.nui-spacing-resizing>.nui-spacing-handle,.nui-resizable-resizing>.nui-spacing-handle,.nui-spacing-resizing>.nui-spacing-handle{display:block!important}.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER .n2-ss-layer.nui-spacing-resizing>.nui-spacing-handle.nui-spacing-under-spacing{opacity:1}#n2-ss-0 .n2-ss-layer-row[row-wrapped="1"] .ui-column-width-handle,#n2-ss-0 .nui-spacing-resizing .ui-column-width-handle,#n2-ss-0 [data-frontend-fullwidth="0"]>.n2-ss-layer-row .ui-column-width-handle{display:none!important}.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 .nui-normal-sizing-handle,.n2-ss-animation-play-single #n2-ss-0 .n2-ss-layer .nui-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 .nui-normal-sizing-handle,.n2-ss-move-layer .n2-ss-layer.n2-active:HOVER .nui-resizable-handle{display:none!important}.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER .n2-ss-layer.n2-active{overflow:visible!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%}.n2-ss-editor-group-mode-only,.n2-ss-editor-layer-mode-only,[data-placement=""] [data-placement],[data-placement=absolute] [data-placement]:not([data-placement=absolute]):not([data-placement=all]),[data-placement=content] [data-placement]:not([data-placement=content]):not([data-placement=all]),[data-placement=default] [data-placement]:not([data-placement=default]):not([data-placement=all]),[data-placement=group] [data-placement]:not([data-placement=group]):not([data-placement=all]),[data-placement=normal] [data-placement]:not([data-placement=normal]):not([data-placement=all]){display:none!important}.n2-ss-has-layers[data-component=group] .n2-ss-editor-group-mode-only,.n2-ss-has-layers[data-component=layer] .n2-ss-editor-layer-mode-only{display:inline-block!important}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-ss-slide-canvas-container:HOVER .n2-ss-layer.n2-active.n2-ss-layer-has-parent .n2-ss-layer-chain-parent,.n2-ss-mode-desktopPortrait #n2-ss-slide-canvas-container:HOVER .n2-ss-layer.n2-active.n2-ss-layer-has-parent:HOVER .n2-ss-layer-chain-parent{display:inline-block}.n2-ss-layer-highlight{position:absolute;background:#0c92df;z-index:91;opacity:1}.n2-ss-layer-highlight-n{top:0;left:0;width:100%;height:1px}.n2-ss-layer-highlight-e{top:0;right:0;width:1px;height:100%}.n2-ss-layer-highlight-s{bottom:0;left:0;width:100%;height:1px}.n2-ss-layer-highlight-w{top:0;left:0;width:1px;height:100%}#n2-ss-0 .n2-ss-layer-row .n2-ss-layer-content{min-height:20px}[data-devicespecific]{position:relative}#n2-ss-devicespecific-settings{position:absolute;bottom:40px;left:0;padding:0 10px;white-space:nowrap;z-index:2}#n2-ss-devicespecific-settings *{cursor:pointer;background:#a1aeb5;display:inline-block;width:20px;height:20px;line-height:20px;text-align:center;font-size:16px;color:#fff;border-left:1px solid #5b6874}#n2-ss-devicespecific-settings>:first-child{border-top-left-radius:3px;border-bottom-left-radius:3px;border-left:0}#n2-ss-devicespecific-settings>:last-child{border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-ss-mode-desktopLandscape #n2-ss-devicespecific-settings .n2-i-mini-desktop-landscape,.n2-ss-mode-desktopPortrait #n2-ss-devicespecific-settings .n2-i-mini-desktop-portrait,.n2-ss-mode-mobileLandscape #n2-ss-devicespecific-settings .n2-i-mini-mobile-landscape,.n2-ss-mode-mobilePortrait #n2-ss-devicespecific-settings .n2-i-mini-mobile-portrait,.n2-ss-mode-tabletLandscape #n2-ss-devicespecific-settings .n2-i-mini-tablet-landscape,.n2-ss-mode-tabletPortrait #n2-ss-devicespecific-settings .n2-i-mini-tablet-portrait{background:#0c92df;border-color:#0b7dbe}.n2-ss-layer[data-sstype=col]>.n2-ss-layer-ui-label-container>.n2-ss-layer-ui-label-self{cursor:move}.n2-highlight-structure .n2-ss-layer[data-sstype=col]{box-shadow:0 0 0 2px #0c92df}.n2-highlight-structure[data-pm=absolute] .n2-ss-layer[data-sstype=col]{box-shadow:0 0 0 2px #5f39c2}.n2-ss-layer-under-creation{visibility:hidden!important}#n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layers-container>.n2-ss-layer>.n2-ss-layer-ui-label-container>.n2-ss-layer-ui-label-up,[data-editormode=canvas] div#n2-ss-0 .n2-ss-layer[data-sstype=content].n2-ss-content-empty{display:none}[data-editormode=content] div#n2-ss-0 .n2-ss-layer[data-sstype=content].n2-ss-content-empty{height:100%}div#n2-ss-0 .n2-ss-layer-content .n2-ss-layer.n2-active:HOVER{z-index:10}#n2-ss-editor-mode .n2-i{font-size:16px;vertical-align:middle}.n2-context-menu{display:none;position:absolute;left:0;top:0;font-family:"Montserrat",Arial,sans-serif;font-size:13px;background-color:#202934;color:#cedae2;z-index:1000000;border-radius:3px;line-height:25px}.n2-context-menu.n2-active{display:block}.n2-context-menu>div{padding:3px 10px;cursor:pointer}.n2-context-menu>div:HOVER{background-color:RGBA(255,255,255,.2)}.n2-context-menu>div *{margin:0 3px;vertical-align:middle}.n2-context-menu>div .n2-i{font-size:16px}#n2-ss32-content-mode-tutorial{background-color:#212d3a;margin:0 -1px;z-index:2;position:relative;color:#fff}#n2-ss32-content-mode-tutorial .n2-ss-tutorial-container{display:flex;align-items:center;max-width:960px}#n2-ss32-content-mode-tutorial .n2-ss-tutorial-container>div{margin:20px}#n2-ss32-content-mode-tutorial .n2-ss-tutorial-container a+a{margin:0 20px}#n2-ss32-content-mode-tutorial .n2-ss-tutorial-container p{color:#b2bfc9;font-size:14px;margin:20px 0}[data-visibility=hidden],[data-visibility=hidden] *{visibility:hidden!important}div div#n2-ss-0 .n2-ss-static-slide div[data-sstype=content],div div#n2-ss-0 .n2-ss-static-slide div[data-sstype=content] div.n2-ss-section-main-content{visibility:visible}.n2-ss-sample-slides-container{display:none;position:relative;margin:0 -1px -1px;background-color:#202934;z-index:2}.n2-ss-add-slide-with-sample .n2-main-top-bar{display:none}.n2-ss-add-slide-with-sample .n2-ss-sample-slides-container{display:block}.n2-ss-add-slide-with-sample #n2-ss-devices,.n2-ss-add-slide-with-sample #n2-ss-toolbar,.n2-ss-add-slide-with-sample #smartslider-form,.n2-ss-add-slide-with-sample .n2-ss-edit-slide-top{display:none}.n2-ss-add-slide-with-sample #n2-ss-add-sidebar{top:0}.n2-ss-add-slide-with-sample #n2-ss-slide-canvas-container-inner{border-top:0}.n2-ss-sample-slides-container iframe{width:100%;height:240px;border:0}.n2-ss-sample-slide-settings{padding:20px;background:#212d3a;height:68px;display:flex}.n2-ss-sample-slide-settings .n2-ss-sample-slide-settings-col{flex:0 0 auto;margin:0 10px;display:flex;flex-direction:column;justify-content:space-around}.n2-ss-sample-slide-settings-col .n2-ss-sample-slide-setting{flex:0 0 auto;display:flex;align-items:center}.n2-ss-sample-slide-setting-label{color:#b2bfc9;font-size:10px;text-transform:uppercase;padding-right:20px}#n2-ss-sample-slide-setting-background-image{position:relative;width:100px;height:68px;background-size:cover;border-radius:5px;overflow:hidden;cursor:pointer}#n2-ss-sample-slide-setting-background-image .n2-i-close{position:absolute;right:0;top:0;display:block;width:16px;height:16px;border-bottom-left-radius:5px;background-color:#526377;color:#fff;font-size:14px;text-align:center;line-height:16px;cursor:pointer}.n2-ss-sample-slide-setting-field{margin-left:auto}.n2-ss-sample-slide-setting-field .nui-slider{width:100px;position:relative;background:#374d64;height:6px;margin:10px;border-radius:10px}.n2-ss-sample-slide-setting-field .nui-slider .nui-slider-handle{position:absolute;top:0;z-index:2;width:14px;height:14px;-ms-touch-action:none;touch-action:none;background:#fff;margin:-4px -7px 0;border-radius:50px;cursor:ew-resize}.n2-ss-sample-slide-settings .n2-ss-sample-slide-settings-col.n2-ss-sample-slide-settings-image-specific,.n2-ss-sample-slide-settings-col .n2-ss-sample-slide-setting.n2-ss-sample-slide-setting-gradient-specific{display:none}.n2-ss-sample-slide-settings.n2-ss-has-gradient .n2-ss-sample-slide-settings-col .n2-ss-sample-slide-setting.n2-ss-sample-slide-setting-gradient-specific,.n2-ss-sample-slide-settings.n2-ss-has-image .n2-ss-sample-slide-settings-col.n2-ss-sample-slide-settings-image-specific{display:flex}.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}#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 .nui-slider-range{display:none}#n2-ss-slider-zoom .nui-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-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-slider-zoom-container>.n2-i{color:#4e667f}.n2-ss-device-zoomer #n2-ss-slider-zoom .nui-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}#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-toolbar #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-toolbar #n2-ss-layer-parent-linker{display:none}.n2-ss-has-layers .n2-ss-mode-desktopPortrait #n2-ss-toolbar #n2-ss-layer-parent-linker,.n2-ss-has-ruler .n2-ruler>span{display:inline-block}.n2-ss-layer.n2-ss-picking-on-layer{z-index:1000000!important}.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;direction:ltr}.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:3000px}.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,.n2-ss-live-preview.n2-active .n2-button,.smartslider3-index-index footer{display:none}#html-body #anchor-content #n2-admin{mragin-top:30px}#html-body .header{position:relative;z-index:1100}.unselectable{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;user-select:none}.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-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;direction:ltr}.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-autoplay='0'] #n2-form-matrix-sliderwidgets .n2-fm-autoplay,#n2-admin[data-autoplay='0'] #n2-form-matrix-sliderwidgets .n2-fm-indicator,#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-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;vertical-align:top}.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;border-top-right-radius:0;border-bottom-right-radius:0;overflow:hidden;padding:0 10px;line-height:36px;box-shadow:none;color:#7b8898;font-size:12px;background:#fff;box-sizing:border-box}.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-edit-group-form>.n2-form>.n2-form-tab,#n2-ss-edit-slider-form>.n2-form>.n2-form-tab{margin:20px 0 0;border-radius:0;border:0}#n2-ss-edit-group-form>.n2-form>.n2-form-tab .n2-form-matrix-views,#n2-ss-edit-slider-form>.n2-form>.n2-form-tab .n2-form-matrix-views{border-radius:0}#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,body[data-slides='0'] #n2-ss-edit-slider-form,body[data-ss3-activated="0"] [data-ss3-when-activated="1"]{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;vertical-align:top}html[data-sliders='0'] .n2-ss-sliders-header{visibility:hidden}.n2-ss-box-slider{cursor:pointer}.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-drag-images,#n2-ss-slides .n2-box-slide-dummy{text-align:center;color:#7b8898;box-sizing:border-box;border:2px dashed #b2bfc9}#n2-ss-slides .n2-box-slide-dummy{background:#e9edf0;background-image:url(../images/dummy-slide.png);background-repeat:no-repeat;background-position:center 36px;font-size:14px;line-height:200px}#n2-ss-slides .n2-box-slide-drag-images{background:url(../images/drag.png) no-repeat center 4px;padding:90px 60px 0;line-height:12px;box-shadow:none}body:not([data-slides='0']) #n2-ss-slides .n2-box-dummy,body:not([data-slides='0']) #n2-ss-slides-container .n2-box-slide-drag-images,body: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 [data-action=setFirst],.n2-slide-state-published [data-action=publish],[data-action=generator],[data-action=unpublish]{display:none}.n2-slide-state-has-generator [data-action=generator],.n2-slide-state-published [data-action=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:14px 0 4px}.n2-ss-bulk-controls{visibility:hidden}.n2-ss-has-box-selection .n2-ss-bulk-controls{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-ss-add-slide-button{width:100%;height:135px;padding:0}#n2-ss-slides .n2-box-slide-add>.n2-ss-add-slide-button:before{display:block;font-family:'Nextend'!important;font-size:48px;line-height:68px;content:"\e981";margin-top:20px}.n2-ss-slides-header>*{vertical-align:top;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:#606d7b;background:#fff;margin-top:25px;padding:10px 15px;border-radius:5px}.n2-ss-block-slides-notice p{margin:0 0 10px}body:not([data-slides='0']):not([data-slides='1']) #n2-admin[data-slider-type=block] .n2-ss-block-slides-notice{display:inline-block}#n2-ss-slides .n2-box-slide-add .n2-ss-add-slide-button:before{transition:transform .4s}#n2-ss-slides .n2-box-slide-add .n2-ss-add-slide-button{transition:background .4s}#n2-ss-slides[data-showcreateslide="1"] .n2-box-slide-add .n2-ss-add-slide-button{background:#6b7986}#n2-ss-slides[data-showcreateslide="1"] .n2-box-slide-add .n2-ss-add-slide-button:before{transform:rotateZ(45deg)}#n2-ss-slides .n2-ss-slides-create{position:relative;background:#202934;margin:-25px -26px 0;height:0;overflow:hidden;transition:height .4s}#n2-ss-slides .n2-ss-slides-create>div{padding:15px 16px}#n2-ss-slides[data-showcreateslide="1"] .n2-ss-slides-create{height:198px}#n2-ss-slides .n2-ss-slides-create-heading{font-size:22px;line-height:38px;color:#fff;margin:0 10px}#n2-ss-slides .n2-ss-slides-create-inner{display:flex}#n2-ss-slides .n2-ss-slides-create .n2-ss-slides-create-action-box{display:flex;flex-flow:column;justify-content:center;max-width:140px;width:140px;height:110px;text-align:center;color:#80a3b5;cursor:pointer;border-radius:5px;margin:10px}#n2-ss-slides .n2-ss-slides-create .n2-ss-slides-create-action-box-label{font-size:14px;margin-top:3px}#n2-ss-slides .n2-ss-slides-create .n2-ss-slides-create-action-box[data-action=image]{background:#51b82d;color:#fff}#n2-ss-slides .n2-ss-slides-create .n2-ss-slides-create-action-box[data-action=library]{background:#5f39c2;color:#fff}.n2-ss-slides-create-action-box-icon{font-size:48px}div#n2-ss-0:HOVER .n2-ss-static-slide{display:none}div#n2-ss-0:HOVER .n2-ss-static-slide.n2-ss-currently-edited-slide{display:flex}.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 .nui-normal-sizing-handle,.n2-ss-select-layer-mode #n2-ss-0 .n2-ss-layer-selected .nui-resizable-handle{display:none!important}.n2-ss-select-layer-mode-group .n2-list li.n2-ss-layerlist-row.n2-active.n2-selected{color:#b2bfc9}#n2-ss-0 .n2-ss-layer{cursor:not-allowed}#n2-ss-0 .n2-ss-currently-edited-slide .n2-ss-layer{cursor:move}.n2-ss-currently-edited-slide .n2-ss-layer{background:RGBA(0,0,0,0)}#n2-ss-0 .n2-ss-currently-edited-slide .n2-ss-layer[data-sstype=col],#n2-ss-0 .n2-ss-currently-edited-slide .n2-ss-layer[data-sstype=col] .n2-ss-layer{cursor:pointer}#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-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer .n2-ss-layer-cc,.n2-ss-preview-mode #n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer .n2-ss-layer-chain-parent,.n2-ss-preview-mode #n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer .nui-normal-sizing-handle,.n2-ss-preview-mode #n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer .nui-resizable-handle,.n2-ss-preview-mode #n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer-highlight,.n2-ss-preview-mode #n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer-selected .n2-ss-item-overlay{display:none!important}.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}.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-slider-name .n2-h1,.n2-ss-edit-slide-top-details .n2-h1{color:#606d7b;margin-bottom:15px;cursor:pointer;line-height:30px}[dir=ltr] .n2-slider-name .n2-h1:HOVER:after,[dir=ltr] .n2-ss-edit-slide-top-details .n2-h1:HOVER:after,[dir=rtl] .n2-slider-name .n2-h1:HOVER:before,[dir=rtl] .n2-ss-edit-slide-top-details .n2-h1:HOVER:before{font-family:'Nextend'!important;content:"\e94f";font-size:22px;vertical-align:top;margin:0 5px;color:#b0b9bf}body[data-slides="0"] .n2-slider-name .n2-h1{cursor:default}body[data-slides="0"] .n2-slider-name .n2-h1:HOVER:after{display:none}.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}[dir=rtl] .n2-ss-edit-slide-top-tabs .n2-button.n2-first{border-top-left-radius:0;border-bottom-left-radius:0;border-left:0;border-right:2px solid #e0e6ed}.n2-ss-edit-slide-top-tabs .n2-button.n2-last,[dir=rtl] .n2-ss-edit-slide-top-tabs .n2-button.n2-first{border-top-right-radius:3px;border-bottom-right-radius:3px}[dir=rtl] .n2-ss-edit-slide-top-tabs .n2-button.n2-last{border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:3px;border-bottom-left-radius:3px;border-left:2px solid #e0e6ed}.n2-ss-edit-slide-top-tabs .n2-button.n2-active{background:#0c92df;color:#fff;border-color:#0c92df!important}.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-slider-real-container{position:relative}.n2-ss-slider-outer-container{position:relative;padding:40px 0 0 40px}.n2-ss-canvas-slider-container{padding-bottom:99px;margin:10px}.n2-ss-has-ruler .n2-ss-canvas-slider-container{margin:0}#n2-ss-0-align{margin:0!important}.n2-i-desktopPortrait:before{content:'\e925'}.n2-i-desktopLandscape:before{content:'\e95a'}.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-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-choose,.n2-editor-header .n2-ss-button-container>.n2-basiccss-back{display:none}.n2-basiccss-show-preset-list .n2-editor-header .n2-ss-button-container>.n2-basiccss-back{display:inline-block}.n2-ss-preview-modal .n2-modal-window{background-color:#e9edf0}#n2-admin.n2-ss-mode-desktopPortrait .n2-ss-responsive-helper,.n2-ss-background-type-color .n2-ss-background-video-param,.n2-ss-background-type-color .n2-ss-slide-background-image-param,.n2-ss-background-type-gradient .n2-ss-background-video-param,.n2-ss-background-type-gradient .n2-ss-slide-background-image-param,.n2-ss-background-type-image .n2-ss-background-video-param:not(.n2-ss-slide-background-image-param),body[data-editormode=content] #n2-admin .n2-ss-responsive-helper{display:none}#n2-tab-animations-events td.n2-label{padding:0}#n2-tab-animations-events td.n2-element{padding:6px 0}.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 #n2-ss-slide-edit-slides{display:block}.n2-ss-show-slides a.n2-ss-back-slides,.n2-ss-show-slides a.n2-ss-back-slides:before{color:#fff}.n2-ss-columns-element{background:#28313a}.n2-ss-columns-element-add-col{vertical-align:top;display:inline-block;background:#51b82d;width:28px;height:28px;border-radius:3px;margin:8px 0;cursor:pointer;text-align:center;color:#fff;font-size:16px}.n2-ss-columns-element-add-col .n2-i,.n2-ss-columns-element-container .n2-ss-columns-element-handle .n2-i{line-height:28px}.n2-ss-columns-element-container{vertical-align:top;position:relative;width:300px;display:inline-flex;padding:8px;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;overflow:hidden}.n2-ss-columns-element-container>.n2-ss-columns-element-column{position:relative;flex:0 0 auto;background:#51b82d;height:28px;line-height:28px;width:25%;color:#fff;text-align:center;overflow:hidden;cursor:move;border-radius:3px;min-width:5px}.n2-ss-columns-element-container .n2-ss-columns-element-handle{display:block;width:11px;height:28px;background:#202934;flex:0 0 11px;border-radius:3px;margin:0 2px;cursor:ew-resize;color:#9aa7b2;text-align:center}.n2-ss-columns-element-container.n2-sortable-currently-sorted .n2-ss-columns-element-handle{display:none}.n2-ss-columns-element-container.n2-sortable-currently-sorted .n2-ss-columns-element-column{margin-right:15px}.n2-ss-columns-element-container.n2-sortable-currently-sorted .n2-ss-columns-element-column:last-child{margin-right:0}.n2-ss-section-main-content{min-height:20px}#n2-ss-0 .n2-ss-slide{opacity:.3}#n2-ss-0 .n2-ss-slide.n2-ss-currently-edited-slide{opacity:1}.n2-form-element-style-mode{display:flex;background:#28313a;padding:10px;border:1px solid #20282f;border-width:1px 0;margin-bottom:-1px;align-items:center}.n2-form-element-style-mode-reset{margin:0 10px 0 auto}.n2-form-element-style-mode .n2-form-element-radio-tab{height:24px;line-height:24px;margin:0}.n2-form-element-style-mode .n2-form-element-radio-tab .n2-radio-option{background:#6b7986;color:#fff;font-size:11px}.n2-form-element-style-mode .n2-form-element-radio-tab .n2-radio-option.n2-active{background:#0c92df}.n2-form-element-style-mode-label{display:inline-block;font-size:11px;color:#b2bfc9}#n2-ss-layer-window{z-index:100000;position:fixed;left:100px;top:100px;width:355px}#n2-ss-layer-window.n2-ss-layer-window-minized .n2-ss-layer-window-resizer,.n2-ss-has-layers.n2-ss-layer-edit-visible.n2-ss-preview-mode #n2-ss-layer-window,.n2-ss-layer-edit-visible.n2-ss-move-layer #n2-ss-layer-window,.n2-ss-layer-edit-visible.n2-ss-resize-layer #n2-ss-layer-window,body:not(.n2-ss-has-layers) #n2-ss-layer-window,body:not(.n2-ss-layer-edit-visible) #n2-ss-layer-window{display:none}#n2-ss-layer-window.n2-ss-layer-window-minized{height:30px!important}#n2-ss-layer-window.n2-ss-layer-window-minized .n2-i-minimize:before{content:'\e915'}#n2-ss-layer-window .n2-ss-layer-window-actions{display:none;position:absolute;top:0;left:-35px;width:32px;background-color:#202934;border-radius:3px}#n2-ss-layer-window .n2-ss-layer-window-actions>.n2-button{width:32px;height:32px;line-height:32px;color:#b0bdc7}#n2-ss-layer-window .n2-ss-layer-window-resizer{height:7px;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-layer-window .n2-ss-layer-window-crop{position:relative;width:100%;height:100%;border-radius:3px;box-shadow:0 1px 10px RGBA(0,0,0,.5);overflow:hidden;background:#3c4958;z-index:2}.n2-ss-layer-window-title{position:relative;line-height:60px;height:60px;overflow:hidden;background:#202934;font-size:12px;color:#cbd6df;text-align:left}.n2-ss-layer-window-title .n2-ss-layer-window-title-nav{position:absolute;top:0;line-height:30px;height:30px;margin:0 5px}.n2-ss-layer-window-title .n2-ss-layer-window-title-nav-left{left:0}.n2-ss-layer-window-title .n2-ss-layer-window-title-nav-right{right:0}.n2-ss-layer-window-title .n2-ss-layer-window-title-nav>*{display:inline-block;width:20px;height:30px;line-height:30px;font-size:16px;color:#fff;padding:0;vertical-align:top;text-align:center}.n2-ss-layer-window-title .n2-ss-layer-window-title-nav .n2-i{vertical-align:middle}.n2-ss-layer-window-title .n2-ss-layer-window-title span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 60px;text-align:center}.n2-ss-layer-window-breadcrumb{display:none;height:22px;font-size:11px;color:#b2bfc9;background-color:#202934;border-bottom:1px solid #1a2028;text-transform:uppercase;padding:0 5px}.n2-ss-layer-window-breadcrumb.n2-has-breadcrumb{display:block}.n2-ss-layer-window-breadcrumb *{display:inline-block;height:22px;vertical-align:top;line-height:22px}.n2-window-title-structure-nav span{padding:0 5px;cursor:pointer}.n2-window-title-structure-nav .n2-i-mini-arrow-thin{font-size:16px;padding:0}.n2-window-title-structure-nav:last-child{color:#fff}.n2-window-title-structure-nav:last-child .n2-i-mini-arrow-thin{display:none}#n2-tabbed-slide-editor-settings .n2-tabs{position:relative;overflow-y:auto;overflow-x:hidden}#n2-ss-layer-window table,#n2-ss-layer-window tbody,#n2-ss-layer-window tr{display:block}#n2-ss-layer-window td{display:block;width:auto}#n2-ss-layer-window .n2-label{background:#3c4958;border-top:1px solid #303b47;padding:3px 10px 0}#n2-ss-layer-window .n2-empty-label{padding:0;height:4px}#n2-ss-layer-window .n2-empty-group-label{padding:0;height:0}#n2-ss-layer-window .n2-label label{color:#b2bfc9;font-size:10px}#n2-ss-layer-window .n2-element{background:#3c4958;border-top:0;padding:0}#n2-ss-layer-window textarea{max-width:290px!important;width:290px!important}#n2-ss-layer-window .n2-form-element-button{max-width:38px;overflow:hidden}#n2-ss-layer-window .n2-sidebar-row{line-height:34px;background:#28313a}#n2-ss-layer-window .n2-list li,#n2-ss-layer-window .n2-sidebar-row{border-bottom:1px solid RGBA(0,0,0,.2)}#n2-ss-layer-window .n2-button-m{height:24px;line-height:24px}#n2-ss-layer-window .n2-sidebar-tab-switcher{border:0;border-collapse:separate}#n2-ss-layer-window .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-layer-window .n2-sidebar-tab-switcher .n2-td .n2-i{font-size:32px;line-height:47px}#n2-ss-layer-window .n2-sidebar-tab-switcher .n2-td.n2-active{background:#0c92df;color:#fff}#n2-ss-layer-window .n2-has-underline>.n2-underline::after,#n2-ss-layer-window .n2-sidebar-tab-switcher .n2-td[data-tab=style]{display:none}#n2-ss-layer-window.n2-ss-has-design-option .n2-sidebar-tab-switcher .n2-td[data-tab=style]{display:table-cell}#n2-ss-layer-window .n2-ss-layer-window-title{line-height:30px;height:30px;cursor:move;border-top-left-radius:5px;border-top-right-radius:5px}#n2-ss-layer-window .n2-ss-layer-window-title .n2-ss-layer-window-title-inner{white-space:nowrap;margin:0 10px;text-align:center}#n2-ss-layer-window .ui-autocomplete{padding:0;max-height:200px;overflow-y:auto;overflow-x:hidden}#n2-ss-layer-window .n2-form-element-autocomplete .nui-autocomplete .nui-menu-item{padding-right:20px}#n2-ss-add-sidebar.n2-active .n2-ss-add-sidebar-inner>a,#n2-ss-layer-window .n2-ss-generator-param{display:none}.n2-ss-dynamic-slide #n2-ss-layer-window .n2-ss-generator-param{display:block}#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'}#n2-ss-add-sidebar{background:#212d3a;position:absolute;left:-1px;top:54px;bottom:-1px;width:50px;text-align:center}[dir=rtl] #n2-ss-add-sidebar{right:-1px;left:auto}#n2-ss-add-sidebar .n2-ss-add-sidebar-inner{position:relative;padding-top:.1px}#n2-ss-add-sidebar .n2-ss-add-sidebar-inner>*{margin-top:10px;color:#80a3b5}#n2-ss-add-sidebar .n2-ss-add-sidebar-inner>.n2-button-blue,.n2-ss-theme-dark .n2-ruler>span span{color:#fff}#n2-ss-add-sidebar.n2-active .n2-ss-add-sidebar-inner>*{margin-top:0}#n2-ss-add-sidebar.n2-active{width:341px;z-index:1010}#n2-ss-add-sidebar.n2-active .n2-ss-add-layer-button{margin:0;background:0 0;position:absolute;top:16px;right:5px}#n2-ss-add-sidebar.n2-active .n2-ss-add-layer-button .n2-i:before{content:"\e90a";color:#b2bfc9}#n2-ss-add-sidebar.n2-active .n2-ss-add-sidebar-inner{width:341px!important}#n2-ss-add-sidebar.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 90px}.n2-ss-slide-item-group{color:#b2bfc9;padding:4px 5px 1px}.n2-ss-addlayer .n2-ss-available-layers{display:none;box-sizing:border-box;white-space:normal;text-align:left}.n2-ss-core-item{display:inline-block;margin:5px;background-color:#6b7986;color:#fff;line-height:15px;cursor:pointer;text-align:center;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;width:90px;min-height:73px;z-index:1000;vertical-align:top}.n2-ss-core-item-title{display:flex;align-items:center;justify-content:center;height:34px}.n2-ss-core-item:before{font-family:'Nextend';font-size:32px;content:"\e943";display:block;line-height:32px;margin-top:14px}.n2-ss-core-item[data-item=heading]:before{content:"\e945"}.n2-ss-core-item[data-item=highlightedHeading]:before{content:"\e990"}.n2-ss-core-item[data-item=animatedHeading]:before{content:"\e991"}.n2-ss-core-item[data-item=text]:before{content:"\e944"}.n2-ss-core-item[data-item=button]:before{content:"\e942"}.n2-ss-core-item[data-item=imagearea]:before{content:"\e950"}.n2-ss-core-item[data-item=icon2]:before,.n2-ss-core-item[data-item=icon]:before{content:"\e941"}.n2-ss-core-item[data-item=input]:before{content:"\e939"}.n2-ss-core-item[data-item=iframe]:before{content:"\e938"}.n2-ss-core-item[data-item=area]:before{content:"\e937"}.n2-ss-core-item[data-item=list]:before{content:"\e93e"}.n2-ss-core-item[data-item=caption]:before{content:"\e940"}.n2-ss-core-item[data-item=transition]:before{content:"\e93f"}.n2-ss-core-item[data-item=youtube]:before{content:"\e93d"}.n2-ss-core-item[data-item=vimeo]:before{content:"\e93c"}.n2-ss-core-item[data-item=video]:before{content:"\e93b"}.n2-ss-core-item[data-item=html]:before{content:"\e93a"}.n2-ss-core-item[data-item=progressbar]:before{content:"\e982"}.n2-ss-core-item[data-item=imagebox]:before{content:"\e983"}.n2-ss-core-item[data-item=counter]:before{content:"\e984"}.n2-ss-core-item[data-item=circlecounter]:before{content:"\e985"}.n2-ss-core-item[data-item=audio]:before{content:"\e986"}.n2-ss-core-item[data-item=structure]:before{font-size:74px;margin-top:24px}.n2-ss-core-item[data-item=structure][data-sstype="1col"]:before{content:"\e967"}.n2-ss-core-item[data-item=structure][data-sstype="2col"]:before{content:"\e966"}.n2-ss-core-item[data-item=structure][data-sstype="3col"]:before{content:"\e961"}.n2-ss-core-item[data-item=structure][data-sstype="4col"]:before{content:"\e95f"}.n2-ss-core-item[data-item=structure][data-sstype="2col-60-40"]:before{content:"\e965"}.n2-ss-core-item[data-item=structure][data-sstype="2col-40-60"]:before{content:"\e964"}.n2-ss-core-item[data-item=structure][data-sstype="2col-80-20"]:before{content:"\e963"}.n2-ss-core-item[data-item=structure][data-sstype="2col-20-80"]:before{content:"\e962"}.n2-ss-core-item[data-item=structure][data-sstype="3col-20-60-20"]:before{content:"\e960"}.n2-ss-core-item[data-item=structure][data-sstype=special]:before{content:"\e95d"}#n2-ss-toolbar{z-index:9;position:relative;height:28px;line-height:28px;background:#f2f5fa;white-space:nowrap;padding:13px 10px}.n2-ss-slider-visible #n2-ss-slide-canvas-container #n2-ss-toolbar{height:auto}#n2-ss-slide-canvas-container.n2-scroll-disable #n2-ss-toolbar{height:28px;border-bottom:0}#n2-ss-toolbar>*{line-height:28px;height:28px;vertical-align:top;display:inline-block}#n2-ss-toolbar .n2-ss-tool{margin:0 5px;display:inline-block;vertical-align:top!important}#n2-ss-toolbar .n2-ss-tool.n2-form-element-text{height:24px;line-height:24px;position:relative}#n2-ss-toolbar .n2-text-sub-label{font-size:16px}#n2-ss-layer-list>.n2-list>li li,.n2-ss-theme-dark #n2-ss-slide-canvas-container-inner,.n2-ss-theme-dark .n2-ruler-vertical{background-color:#28313a}.n2-ss-preview-mode .n2-main-top-bar{opacity:0}#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{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-toolbar .n2-button-grey{background-color:#a1aeb5}#n2-ss-toolbar .n2-radio-option{background-color:#a1aeb5;border-left:1px solid #8c99a1}#n2-ss-toolbar .n2-radio-option.n2-first{border-left-width:0}#n2-ss-toolbar .n2-radio-option.n2-active{background-color:#0c92df;border-color:#0c92df}#n2-ss-toolbar .n2-radio-option.n2-active[data-mode=canvas]{background-color:#5f39c2;border-color:#5f39c2}#n2-ss-toolbar .n2-radio-option.n2-sub-active{background-color:#51b82d;border-color:#51b82d}#n2-ss-toolbar .n2-ss-tool.n2-button{height:28px;line-height:28px;background-color:#a1aeb5}#n2-ss-toolbar .n2-ss-tool.n2-button-icon{padding:0;width:28px}#n2-ss-toolbar .n2-ss-tool.n2-button.n2-active{background-color:#0c92df}#n2-ss-toolbar .n2-ss-tool.n2-button.n2-sub-active{background-color:#51b82d}#n2-ss-toolbar .ui-autocomplete{max-width:100%}#n2-ss-layer-parent-linker,#n2-ss-theme,#n2-ss-toolbar #n2-ss-theme.n2-active{width:28px;height:28px;line-height:28px;padding:0;background-color:#a1aeb5}#n2-ss-theme.n2-active .n2-i:before{content:"\e64c"}#n2-ss-layer-list .n2-list .n2-ss-layerlist-row.n2-ss-ll-dragging-parent{background:#000}#n2-ss-layer-list>.n2-list>li{background-color:#303b47}#n2-ss-layer-list .n2-list>li{line-height:31px}#n2-ss-layer-list .n2-list .n2-ss-layerlist-row.n2-active,#n2-ss-layer-list .n2-list .n2-ss-layerlist-row.n2-selected,.n2-list .n2-ss-layerlist-row.n2-active,.n2-list .n2-ss-layerlist-row.n2-selected{background:#1681c1}#n2-ss-layer-list .n2-ss-layer-content-row .n2-list>li .n2-actions-left,#n2-ss-layer-list .n2-ss-layerlist-row-row .n2-list>li .n2-actions-left,#n2-ss-layer-list .n2-ss-layerlist-row.n2-ss-ll-dragging .n2-actions,#n2-ss-layer-list .n2-ss-layerlist-row.n2-ss-ll-dragging .n2-actions-left{display:none}#n2-ss-layer-list .n2-ss-layerlist-row.n2-ss-ll-dragging{position:absolute;left:0;width:100%;height:32px;overflow:hidden;opacity:.5}#n2-ss-layers .nextend-sortable-placeholder{border:0;position:relative;height:0;overflow:visible;z-index:1001}#n2-ss-layers .nextend-sortable-placeholder div{position:absolute;left:0;top:-1px;width:100%;height:0;box-shadow:0 0 0 2px #0c92df}#n2-ss-layers ul .nextend-sortable-placeholder div{margin-left:30px}#n2-ss-layers ul ul .nextend-sortable-placeholder div{margin-left:50px}#n2-ss-layers ul ul ul .nextend-sortable-placeholder div{margin-left:70px}#n2-ss-layers ul ul ul ul .nextend-sortable-placeholder div{margin-left:90px}#n2-ss-layers ul ul ul ul ul .nextend-sortable-placeholder div{margin-left:110px}#n2-ss-layers ul ul ul ul ul ul .nextend-sortable-placeholder div{margin-left:130px}#n2-ss-layers .n2-ui-sortable-helper{opacity:.5}#n2-ss-layers-table .n2-list li,.n2-list .n2-ss-layer-group-row{border-bottom:0}#n2-ss-layers-table .n2-ss-layer-title{border-bottom:1px solid RGBA(0,0,0,.2)}#n2-ss-layers-table .n2-active>.n2-ss-layer-title,#n2-ss-layers-table .n2-selected>.n2-ss-layer-title{border-color:#1681c1}.n2-ss-layer-group-row ul.n2-list{margin-top:-10px;padding-top:10px}.n2-ss-layer-title{display:block;line-height:31px;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,ul>li>.n2-ss-layer-title span{margin:0 30px}.n2-ss-layer-icon{position:absolute;top:2px}ul>li>.n2-ss-layer-title .n2-ss-layer-icon{left:3px}#n2-ss-layer-list>ul>li.n2-ss-layer-content-row>.n2-ss-layer-title span,#n2-ss-layer-list>ul>li.n2-ss-layer-row-row>.n2-ss-layer-title span,ul>li .n2-inline-form,ul>li>ul>li>.n2-ss-layer-title span{margin:0 50px}#n2-ss-layer-list>ul>li.n2-ss-layer-content-row>.n2-ss-layer-title .n2-ss-layer-icon,#n2-ss-layer-list>ul>li.n2-ss-layer-row-row>.n2-ss-layer-title .n2-ss-layer-icon,ul>li>ul>li>.n2-ss-layer-title .n2-ss-layer-icon{left:23px}ul>li>ul>li>ul>li .n2-inline-form,ul>li>ul>li>ul>li>.n2-ss-layer-title span{margin:0 70px}ul>li>ul>li>ul>li>.n2-ss-layer-title .n2-ss-layer-icon{left:43px}ul>li>ul>li>ul>li>ul>li>.n2-ss-layer-title span,ul>li>ul>li>ul>li>ul>li>ul>li .n2-inline-form{margin:0 90px}ul>li>ul>li>ul>li>ul>li>.n2-ss-layer-title .n2-ss-layer-icon{left:63px}ul>li>ul>li>ul>li>ul>li>ul>li>.n2-ss-layer-title span{margin:0 110px}ul>li>ul>li>ul>li>ul>li>ul>li>.n2-ss-layer-title .n2-ss-layer-icon{left:83px}ul>li>ul>li>ul>li>ul>li>ul>li>ul>li .n2-ss-layer-title span{margin:0 130px}ul>li>ul>li>ul>li>ul>li>ul>li>ul>li .n2-ss-layer-title .n2-ss-layer-icon{left:103px}[dir=rtl] ul>li>.n2-ss-layer-title .n2-ss-layer-icon{right:3px;left:auto}[dir=rtl] #n2-ss-layer-list>ul>li.n2-ss-layer-content-row>.n2-ss-layer-title .n2-ss-layer-icon,[dir=rtl] #n2-ss-layer-list>ul>li.n2-ss-layer-row-row>.n2-ss-layer-title .n2-ss-layer-icon,[dir=rtl] ul>li>ul>li>.n2-ss-layer-title .n2-ss-layer-icon{right:23px;left:auto}[dir=rtl] ul>li>ul>li>ul>li>.n2-ss-layer-title .n2-ss-layer-icon{right:43px;left:auto}[dir=rtl] ul>li>ul>li>ul>li>ul>li>.n2-ss-layer-title .n2-ss-layer-icon{right:63px;left:auto}[dir=rtl] ul>li>ul>li>ul>li>ul>li>ul>li>.n2-ss-layer-title .n2-ss-layer-icon{right:83px;left:auto}[dir=rtl] ul>li>ul>li>ul>li>ul>li>ul>li>ul>li .n2-ss-layer-title .n2-ss-layer-icon{right:103px;left:auto}.n2-ss-layerlist-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;margin:0}.n2-ss-layerlist-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-active>.n2-ss-layer-title .n2-actions{opacity:1}.n2-ss-layer-title .n2-actions-left{position:absolute;top:0;left:0;padding:2px 0;cursor:default;line-height:24px}html[dir=rtl] .n2-ss-layer-title .n2-actions-left{right:0;left:auto}#n2-ss-layer-list .n2-ss-layerlist-row.n2-active>.n2-ss-layer-title,#n2-ss-layer-list .n2-ss-layerlist-row.n2-active>.n2-ss-layer-title .n2-i,#n2-ss-layer-list .n2-ss-layerlist-row.n2-selected .n2-ss-layer-title,#n2-ss-layer-list .n2-ss-layerlist-row.n2-selected .n2-ss-layer-title .n2-i{color:#fff}.n2-ss-layer-title .n2-actions a,.n2-ss-layer-title .n2-actions-left a{display:inline-block;padding:0}.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-layer-status{display:inline-block;position:relative;margin:0 3px}#n2-ss-layer-list a .n2-i,#n2-ss-layer-list 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-closed .n2-i-col:before,.n2-closed .n2-i-row:before,.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:1019}#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-ss-layer-list-bulk-top-bar,[data-component=layer] .n2-ss-select-layer-mode #n2-ss-layers.n2-active .n2-ss-layer-list-layers-top-bar{display:none}[data-component=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-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-slide-canvas-container{background-color:#fff;border-width:1px 0 0;padding-bottom:400px;padding-bottom:40vh;position:relative;z-index:1;border-top:1px solid #ccd1d6}#smartslider-form>div{margin-bottom:-1px}#n2-ss-slide-canvas-container-inner{position:relative;z-index:1;overflow:hidden;border-bottom:1px solid #ccd1d6;background-color:#e9edf0;margin-left:49px;border-top:1px solid #ccd1d6}[dir=rtl] #n2-ss-slide-canvas-container-inner{margin-right:49px;margin-left:0}.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-0 .n2-ss-slide-border{display:none;position:absolute;background:#a1aeb5;width:1px;height:1px}#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:HOVER .n2-ss-slide-border{display:block}.n2-ss-layer-placeholder{position:relative;height:0;width:100%;box-shadow:0 0 0 2px #0c92df;display:block;z-index:100000}.n2-ss-layer-inline>.n2-ss-layer-placeholder,.n2-ss-layer-row>.n2-ss-layer-placeholder{height:auto;width:0;align-self:stretch;flex:0 0 auto}.n2-ss-core-item.n2-canvas-item-drag{opacity:.5;z-index:9999;margin:0}.n2-canvas-item-drag{opacity:.5!important}#n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer.n2-ss-mouse-over,.n2-ss-move-layer div#n2-ss-0 .n2-ss-layer.nui-resizable,.n2-ss-resize-layer div#n2-ss-0 .n2-ss-layer.nui-resizable{box-shadow:inset 0 0 0 1px #0c92df}#n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer.n2-ss-mouse-over[data-pm=absolute],#n2-ss-slide-canvas-container #n2-ss-0 [data-pm=absolute] .n2-ss-layer.n2-ss-mouse-over,.n2-ss-move-layer div#n2-ss-0 .n2-ss-layer.nui-resizable[data-pm=absolute],.n2-ss-move-layer div#n2-ss-0 [data-pm=absolute] .n2-ss-layer.nui-resizable,.n2-ss-resize-layer div#n2-ss-0 .n2-ss-layer.nui-resizable[data-pm=absolute],.n2-ss-resize-layer div#n2-ss-0 [data-pm=absolute] .n2-ss-layer.nui-resizable{box-shadow:inset 0 0 0 1px #5f39c2}div#n2-ss-0 .n2-ss-layer-ui-label-container{display:none;position:absolute;left:0;top:0;text-align:left;line-height:16px;z-index:91;white-space:nowrap;border-bottom-right-radius:2px;overflow:hidden;background:#0c92df;max-width:100%;max-height:100%}div#n2-ss-0 [data-pm=absolute] .n2-ss-layer-ui-label-container{background:#5f39c2}div#n2-ss-0 .n2-ss-layer-ui-label-container:HOVER{max-width:none;max-height:none}.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER div#n2-ss-0 .n2-ss-layer.n2-active>.n2-ss-layer-ui-label-container,div#n2-ss-0 .n2-ss-layer.n2-ss-mouse-over-delayed>.n2-ss-layer-ui-label-container{display:block}#n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer .n2-ss-layer-ui-label{display:inline-block;height:16px;font-size:10px;line-height:16px;color:#fff;padding:0 5px;vertical-align:top;text-transform:uppercase;border-left:1px solid #0b7dbe}#n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer[data-pm=absolute] .n2-ss-layer-ui-label{border-left:1px solid #422887}#n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer>.n2-ss-layer-ui-label-container .n2-ss-layer-ui-label-action{padding:0;cursor:pointer;font-size:16px;display:none}#n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer.n2-active>.n2-ss-layer-ui-label-container .n2-ss-layer-ui-label-action,#n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer>.n2-ss-layer-ui-label-container:HOVER .n2-ss-layer-ui-label-action{display:inline-block}#n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer>.n2-ss-layer-ui-label-container .n2-ss-layer-ui-label:first-child{border-left:0}#n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layer>.n2-ss-layer-ui-label-container .n2-ss-layer-ui-layer-move{cursor:move}div#n2-ss-0 .n2-ss-layer-ui-label-container.invisible{visibility:hidden}.n2-ss-layer[data-sstype=col].n2-highlight{box-shadow:inset 0 0 0 1px #0c92df}div#n2-ss-0 .n2-ss-layer.n2-ss-mouse-hover[data-sstype=col]{z-index:2}.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER div#n2-ss-0 .n2-ss-layer.n2-active{box-shadow:inset 0 0 0 1px #0c92df}.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER div#n2-ss-0 .n2-ss-layer[data-pm=absolute] .n2-ss-layer[data-sstype=col].n2-active,.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER div#n2-ss-0 .n2-ss-layer[data-pm=absolute].n2-active,.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER div#n2-ss-0 [data-pm=absolute] .n2-ss-layer.n2-active{box-shadow:inset 0 0 0 1px #5f39c2}.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER #n2-ss-0 .n2-ss-layer[data-sstype=row].n2-active,.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER div#n2-ss-0 .n2-ss-layer .n2-ss-layer[data-sstype=col].n2-active{box-shadow:inset 0 0 0 1px RGBA(12,146,223,1)}.n2-ss-move-layer .n2-ss-layer[data-sstype=col]{box-shadow:inset 0 0 0 1px RGBA(12,146,223,1)}.n2-ss-move-layer #n2-ss-0 .n2-ss-layer:HOVER{box-shadow:none}div#n2-ss-0 .n2-ss-layer[data-sstype=col] .n2-ss-layer.nui-draggable-dragging,div#n2-ss-0 .n2-ss-layer[data-sstype=content] .n2-ss-layer.nui-draggable-dragging{z-index:100000;outline:0!important}.n2-ss-item-overlay{display:none;position:absolute;top:0;left:0;width:100%;height:100%}.n2-ss-select-layer-mode .n2-ss-layer-selected .n2-ss-item-overlay{display:block;background-color:RGBA(0,132,255,.4)}.n2-ss-item-html .n2-ss-item-overlay,.n2-ss-item-iframe .ui-item-overlay{display:block}.n2-ss-layer .n2-ss-layer-cc{opacity:0}.n2-ss-layer-cc:HOVER,.nui-resizable-e:HOVER,.nui-resizable-n:HOVER,.nui-resizable-ne:HOVER,.nui-resizable-nw:HOVER,.nui-resizable-s:HOVER,.nui-resizable-se:HOVER,.nui-resizable-sw:HOVER,.nui-resizable-w:HOVER{opacity:1}.n2-ss-layer[data-align=center][data-valign=bottom] .nui-resizable-s,.n2-ss-layer[data-align=center][data-valign=middle] .n2-ss-layer-cc,.n2-ss-layer[data-align=center][data-valign=top] .nui-resizable-n,.n2-ss-layer[data-align=left][data-valign=bottom] .nui-resizable-sw,.n2-ss-layer[data-align=left][data-valign=middle] .nui-resizable-w,.n2-ss-layer[data-align=left][data-valign=top] .nui-resizable-nw,.n2-ss-layer[data-align=right][data-valign=bottom] .nui-resizable-se,.n2-ss-layer[data-align=right][data-valign=middle] .nui-resizable-e,.n2-ss-layer[data-align=right][data-valign=top] .nui-resizable-ne{background:#0c92df;opacity:1;border:1px solid #fff}.n2-ss-layer[data-align=center][data-valign=bottom][data-pm=absolute] .nui-resizable-s,.n2-ss-layer[data-align=center][data-valign=middle][data-pm=absolute] .n2-ss-layer-cc,.n2-ss-layer[data-align=center][data-valign=top][data-pm=absolute] .nui-resizable-n,.n2-ss-layer[data-align=left][data-valign=bottom][data-pm=absolute] .nui-resizable-sw,.n2-ss-layer[data-align=left][data-valign=middle][data-pm=absolute] .nui-resizable-w,.n2-ss-layer[data-align=left][data-valign=top][data-pm=absolute] .nui-resizable-nw,.n2-ss-layer[data-align=right][data-valign=bottom][data-pm=absolute] .nui-resizable-se,.n2-ss-layer[data-align=right][data-valign=middle][data-pm=absolute] .nui-resizable-e,.n2-ss-layer[data-align=right][data-valign=top][data-pm=absolute] .nui-resizable-ne{background:#5f39c2}.n2-ss-layer-cc{position:absolute;font-size:.1px;display:block;z-index:92}.n2-ss-layer .nui-normal-sizing-handle,.n2-ss-layer .nui-resizable-handle{border-radius:50px}.n2-ss-layer .n2-ss-layer-cc,.n2-ss-layer .nui-normal-sizing-handle,.n2-ss-layer .nui-resizable-handle{display:none!important;background-image:none;border:1px solid #0c92df;height:7px;width:7px;background:#fff}.n2-ss-layer[data-pm=absolute] .n2-ss-layer-cc,.n2-ss-layer[data-pm=absolute] .nui-normal-sizing-handle,.n2-ss-layer[data-pm=absolute] .nui-resizable-handle{border:1px solid #5f39c2}.n2-ss-layer .ui-column-width-handle{display:none!important;position:absolute;top:25%;height:50%;cursor:ew-resize;width:5px;background:RGBA(12,146,223,.5);z-index:88;opacity:1;box-sizing:border-box!important;border-radius:5px}.n2-ss-layer .ui-column-width-handle:HOVER{background:RGBA(12,146,223,1)}.n2-ss-layer[data-pm=absolute] .ui-column-width-handle{background:RGBA(95,57,194,.5)}.n2-ss-layer[data-pm=absolute] .ui-column-width-handle:HOVER{background:RGBA(95,57,194,1)}.n2-ss-layer .nui-spacing-handle{display:none!important;z-index:89;background:#0c92df;opacity:.5;overflow:hidden}.n2-ss-layer[data-pm=absolute] .nui-spacing-handle{background:#5f39c2}.n2-ss-layer .nui-spacing-handle.nui-spacing-under-spacing,.n2-ss-layer .nui-spacing-handle:HOVER{opacity:.8}.n2-ss-layer .nui-resizable-n{left:50%;top:-4px;margin-left:-4px}.n2-ss-layer .nui-spacing-handle.nui-spacing-n{min-height:5px;cursor:s-resize}.n2-ss-layer .nui-spacing-handle-padding.nui-spacing-n{top:0;margin-left:0;left:25%;width:50%}.n2-ss-layer .nui-spacing-handle-margin.nui-spacing-n{left:0;bottom:100%;width:100%}.n2-ss-layer .nui-normal-sizing-e,.n2-ss-layer .nui-resizable-e{right:-4px;top:50%;margin-top:-4px}.n2-ss-layer .nui-spacing-handle.nui-spacing-e{min-width:5px;cursor:w-resize}.n2-ss-layer .nui-spacing-handle-padding.nui-spacing-e{top:25%;margin-top:0;right:0;height:50%}.n2-ss-layer .nui-spacing-handle-margin.nui-spacing-e{top:0;left:100%;height:100%}.n2-ss-layer .nui-normal-sizing-s,.n2-ss-layer .nui-resizable-s{bottom:-4px;left:50%;margin-left:-4px}.n2-ss-layer .nui-spacing-handle.nui-spacing-s{min-height:5px;cursor:n-resize}.n2-ss-layer .nui-spacing-handle-padding.nui-spacing-s{bottom:0;margin-left:0;left:25%;width:50%}.n2-ss-layer .nui-spacing-handle-margin.nui-spacing-s{bottom:auto;top:100%;left:0;width:100%}.n2-ss-layer .nui-normal-sizing-w,.n2-ss-layer .nui-resizable-w{left:-4px;top:50%;margin-top:-4px}.n2-ss-layer .nui-spacing-handle.nui-spacing-w{min-width:5px;cursor:e-resize}.n2-ss-layer .nui-spacing-handle-padding.nui-spacing-w{top:25%;margin-top:0;left:0;height:50%}.n2-ss-layer .nui-spacing-handle-margin.nui-spacing-w{left:auto;right:100%;top:0;height:100%}.n2-ss-layer .nui-resizable-ne{right:-4px;top:-4px}.n2-ss-layer .nui-resizable-se{right:-4px;bottom:-4px}.n2-ss-layer .nui-resizable-sw{left:-4px;bottom:-4px}.n2-ss-layer .nui-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.n2-active:HOVER{box-shadow:inset 0 0 0 1px #0c92df}.n2-ss-layer.n2-active[data-pm=absolute]:HOVER,[data-pm=absolute] .n2-ss-layer.n2-active:HOVER{box-shadow:inset 0 0 0 1px #5f39c2}.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER .n2-ss-layer.n2-active>.n2-ss-layer-cc,.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER .n2-ss-layer.n2-active>.nui-normal-sizing-handle,.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER .n2-ss-layer.n2-active>.nui-resizable-handle,.n2-ss-layer.n2-active:HOVER>.n2-ss-layer-cc,.n2-ss-layer.n2-active:HOVER>.n2-ss-layer-row>.nui-spacing-handle,.n2-ss-layer.n2-active:HOVER>.n2-ss-layer-row>.ui-column-width-handle,.n2-ss-layer.n2-active:HOVER>.nui-normal-sizing-handle,.n2-ss-layer.n2-active:HOVER>.nui-resizable-handle,.n2-ss-resize-layer .n2-ss-layer.n2-active>.n2-ss-layer-row>.nui-spacing-handle,.n2-ss-resize-layer .n2-ss-layer.n2-active>.n2-ss-layer-row>.ui-column-width-handle,.n2-ss-resize-layer .n2-ss-layer.n2-active>.nui-normal-sizing-handle,.n2-ss-resize-layer .n2-ss-layer.n2-active>.nui-resizable-handle{display:block!important}.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER .n2-ss-layer.n2-active>.nui-spacing-handle{display:none!important}.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container .n2-ss-layer.n2-active:HOVER>.n2-ss-layer-content>.nui-spacing-handle,.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container .n2-ss-layer.n2-active:HOVER>.n2-ss-layer-mask>.n2-ss-layer-content>.nui-spacing-handle,.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container .n2-ss-layer.n2-active:HOVER>.n2-ss-layer-mask>.n2-ss-layer-row>.nui-spacing-handle,.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container .n2-ss-layer.n2-active:HOVER>.n2-ss-layer-row>.nui-spacing-handle,.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container .n2-ss-layer.n2-active:HOVER>.nui-spacing-handle,.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER .n2-ss-layer.nui-resizable-resizing>div>.nui-spacing-handle,.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER .n2-ss-layer.nui-spacing-resizing>.nui-spacing-handle,.nui-resizable-resizing>.nui-spacing-handle,.nui-spacing-resizing>.nui-spacing-handle{display:block!important}.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER .n2-ss-layer.nui-spacing-resizing>.nui-spacing-handle.nui-spacing-under-spacing{opacity:1}#n2-ss-0 .n2-ss-layer-row[row-wrapped="1"] .ui-column-width-handle,#n2-ss-0 .nui-spacing-resizing .ui-column-width-handle,#n2-ss-0 [data-frontend-fullwidth="0"]>.n2-ss-layer-row .ui-column-width-handle{display:none!important}.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 .nui-normal-sizing-handle,.n2-ss-animation-play-single #n2-ss-0 .n2-ss-layer .nui-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 .nui-normal-sizing-handle,.n2-ss-move-layer .n2-ss-layer.n2-active:HOVER .nui-resizable-handle{display:none!important}.n2-ss-layer-edit-visible #n2-ss-slide-canvas-container:HOVER .n2-ss-layer.n2-active{overflow:visible!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%}.n2-ss-editor-group-mode-only,.n2-ss-editor-layer-mode-only,[data-placement=""] [data-placement],[data-placement=absolute] [data-placement]:not([data-placement=absolute]):not([data-placement=all]),[data-placement=content] [data-placement]:not([data-placement=content]):not([data-placement=all]),[data-placement=default] [data-placement]:not([data-placement=default]):not([data-placement=all]),[data-placement=group] [data-placement]:not([data-placement=group]):not([data-placement=all]),[data-placement=normal] [data-placement]:not([data-placement=normal]):not([data-placement=all]){display:none!important}.n2-ss-has-layers[data-component=group] .n2-ss-editor-group-mode-only,.n2-ss-has-layers[data-component=layer] .n2-ss-editor-layer-mode-only{display:inline-block!important}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-ss-slide-canvas-container:HOVER .n2-ss-layer.n2-active.n2-ss-layer-has-parent .n2-ss-layer-chain-parent,.n2-ss-mode-desktopPortrait #n2-ss-slide-canvas-container:HOVER .n2-ss-layer.n2-active.n2-ss-layer-has-parent:HOVER .n2-ss-layer-chain-parent{display:inline-block}.n2-ss-layer-highlight{position:absolute;background:#0c92df;z-index:91;opacity:1}.n2-ss-layer-highlight-n{top:0;left:0;width:100%;height:1px}.n2-ss-layer-highlight-e{top:0;right:0;width:1px;height:100%}.n2-ss-layer-highlight-s{bottom:0;left:0;width:100%;height:1px}.n2-ss-layer-highlight-w{top:0;left:0;width:1px;height:100%}#n2-ss-0 .n2-ss-layer-row .n2-ss-layer-content{min-height:20px}[data-devicespecific]{position:relative}#n2-ss-devicespecific-settings{position:absolute;bottom:40px;left:0;padding:0 10px;white-space:nowrap;z-index:2}#n2-ss-devicespecific-settings *{cursor:pointer;background:#a1aeb5;display:inline-block;width:20px;height:20px;line-height:20px;text-align:center;font-size:16px;color:#fff;border-left:1px solid #5b6874}#n2-ss-devicespecific-settings>:first-child{border-top-left-radius:3px;border-bottom-left-radius:3px;border-left:0}#n2-ss-devicespecific-settings>:last-child{border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-ss-mode-desktopLandscape #n2-ss-devicespecific-settings .n2-i-mini-desktop-landscape,.n2-ss-mode-desktopPortrait #n2-ss-devicespecific-settings .n2-i-mini-desktop-portrait,.n2-ss-mode-mobileLandscape #n2-ss-devicespecific-settings .n2-i-mini-mobile-landscape,.n2-ss-mode-mobilePortrait #n2-ss-devicespecific-settings .n2-i-mini-mobile-portrait,.n2-ss-mode-tabletLandscape #n2-ss-devicespecific-settings .n2-i-mini-tablet-landscape,.n2-ss-mode-tabletPortrait #n2-ss-devicespecific-settings .n2-i-mini-tablet-portrait{background:#0c92df;border-color:#0b7dbe}.n2-ss-layer[data-sstype=col]>.n2-ss-layer-ui-label-container>.n2-ss-layer-ui-label-self{cursor:move}.n2-highlight-structure .n2-ss-layer[data-sstype=col]{box-shadow:0 0 0 2px #0c92df}.n2-highlight-structure[data-pm=absolute] .n2-ss-layer[data-sstype=col]{box-shadow:0 0 0 2px #5f39c2}.n2-ss-layer-under-creation{visibility:hidden!important}#n2-ss-slide-canvas-container #n2-ss-0 .n2-ss-layers-container>.n2-ss-layer>.n2-ss-layer-ui-label-container>.n2-ss-layer-ui-label-up,[data-editormode=canvas] div#n2-ss-0 .n2-ss-layer[data-sstype=content].n2-ss-content-empty{display:none}[data-editormode=content] div#n2-ss-0 .n2-ss-layer[data-sstype=content].n2-ss-content-empty{height:100%}div#n2-ss-0 .n2-ss-layer-content .n2-ss-layer.n2-active:HOVER{z-index:10}#n2-ss-editor-mode .n2-i{font-size:16px;vertical-align:middle}.n2-context-menu{display:none;position:absolute;left:0;top:0;font-family:"Montserrat",Arial,sans-serif;font-size:13px;background-color:#202934;color:#cedae2;z-index:1000000;border-radius:3px;line-height:25px}.n2-context-menu.n2-active{display:block}.n2-context-menu>div{padding:3px 10px;cursor:pointer}.n2-context-menu>div:HOVER{background-color:RGBA(255,255,255,.2)}.n2-context-menu>div *{margin:0 3px;vertical-align:middle}.n2-context-menu>div .n2-i{font-size:16px}.n2-ss-banner{background-color:#212d3a;margin:0 -1px;z-index:2;position:relative;color:#fff}.n2-ss-banner .n2-ss-banner-inner{display:flex;align-items:center;max-width:960px}.n2-ss-banner .n2-ss-banner-inner>div{margin:20px}.n2-ss-banner .n2-ss-banner-inner a+a{margin:0 20px}.n2-ss-banner .n2-ss-banner-inner p{color:#b2bfc9;font-size:14px;margin:20px 0}[data-visibility=hidden],[data-visibility=hidden] *{visibility:hidden!important}div div#n2-ss-0 .n2-ss-static-slide div[data-sstype=content],div div#n2-ss-0 .n2-ss-static-slide div[data-sstype=content] div.n2-ss-section-main-content{visibility:visible}.n2-ss-sample-slides-container{display:none;position:relative;margin:0 -1px -1px;background-color:#202934;z-index:2}.n2-ss-add-slide-with-sample .n2-main-top-bar{display:none}.n2-ss-add-slide-with-sample .n2-ss-sample-slides-container{display:block}.n2-ss-add-slide-with-sample #n2-ss-devices,.n2-ss-add-slide-with-sample #n2-ss-toolbar,.n2-ss-add-slide-with-sample #smartslider-form,.n2-ss-add-slide-with-sample .n2-ss-edit-slide-top{display:none}.n2-ss-add-slide-with-sample #n2-ss-add-sidebar{top:0}.n2-ss-add-slide-with-sample #n2-ss-slide-canvas-container-inner{border-top:0}.n2-ss-sample-slides-container iframe{width:100%;height:240px;border:0}.n2-ss-sample-slide-settings{padding:20px;background:#212d3a;height:68px;display:flex}.n2-ss-sample-slide-settings .n2-ss-sample-slide-settings-col{flex:0 0 auto;margin:0 10px;display:flex;flex-direction:column;justify-content:space-around}.n2-ss-sample-slide-settings-col .n2-ss-sample-slide-setting{flex:0 0 auto;display:flex;align-items:center}.n2-ss-sample-slide-setting-label{color:#b2bfc9;font-size:10px;text-transform:uppercase;padding-right:20px}#n2-ss-sample-slide-setting-background-image{position:relative;width:100px;height:68px;background-size:cover;border-radius:5px;overflow:hidden;cursor:pointer}#n2-ss-sample-slide-setting-background-image .n2-i-close{position:absolute;right:0;top:0;display:block;width:16px;height:16px;border-bottom-left-radius:5px;background-color:#526377;color:#fff;font-size:14px;text-align:center;line-height:16px;cursor:pointer}.n2-ss-sample-slide-setting-field{margin-left:auto}.n2-ss-sample-slide-setting-field .nui-slider{width:100px;position:relative;background:#374d64;height:6px;margin:10px;border-radius:10px}.n2-ss-sample-slide-setting-field .nui-slider .nui-slider-handle{position:absolute;top:0;z-index:2;width:14px;height:14px;-ms-touch-action:none;touch-action:none;background:#fff;margin:-4px -7px 0;border-radius:50px;cursor:ew-resize}.n2-ss-sample-slide-settings .n2-ss-sample-slide-settings-col.n2-ss-sample-slide-settings-image-specific,.n2-ss-sample-slide-settings-col .n2-ss-sample-slide-setting.n2-ss-sample-slide-setting-gradient-specific{display:none}.n2-ss-sample-slide-settings.n2-ss-has-gradient .n2-ss-sample-slide-settings-col .n2-ss-sample-slide-setting.n2-ss-sample-slide-setting-gradient-specific,.n2-ss-sample-slide-settings.n2-ss-has-image .n2-ss-sample-slide-settings-col.n2-ss-sample-slide-settings-image-specific{display:flex}.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}#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 .nui-slider-range{display:none}#n2-ss-slider-zoom .nui-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-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-slider-zoom-container>.n2-i{color:#4e667f}.n2-ss-device-zoomer #n2-ss-slider-zoom .nui-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}#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-toolbar #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-toolbar #n2-ss-layer-parent-linker{display:none}.n2-ss-has-layers .n2-ss-mode-desktopPortrait #n2-ss-toolbar #n2-ss-layer-parent-linker,.n2-ss-has-ruler .n2-ruler>span{display:inline-block}.n2-ss-layer.n2-ss-picking-on-layer{z-index:1000000!important}.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;direction:ltr}.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:3000px}.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
@@ -324,7 +324,7 @@ N2D('CreateSlider', function ($, undefined) {
|
|
324 |
|
325 |
}, this));
|
326 |
|
327 |
-
if (window.location.hash.substring(1)
|
328 |
this.showModal();
|
329 |
}
|
330 |
}
|
@@ -350,7 +350,7 @@ N2D('CreateSlider', function ($, undefined) {
|
|
350 |
name: n2_('Thumbnail - horizontal'),
|
351 |
image: '$ss$/admin/images/sliderpresets/thumbnailhorizontal.png'
|
352 |
});
|
353 |
-
var size = [550,
|
354 |
|
355 |
|
356 |
this.createSliderModal = new N2Classes.NextendModal({
|
@@ -387,10 +387,14 @@ N2D('CreateSlider', function ($, undefined) {
|
|
387 |
sliderHeight.parent().addClass('n2-form-element-autocomplete');
|
388 |
|
389 |
this.createHeading(n2_('Preset')).appendTo(this.content);
|
390 |
-
var imageRadioHeight =
|
391 |
|
392 |
var imageRadio = this.createImageRadio(presets)
|
393 |
-
.css(
|
|
|
|
|
|
|
|
|
394 |
.appendTo(this.content),
|
395 |
sliderPreset = imageRadio.find('input');
|
396 |
imageRadio.css('overflow', 'hidden');
|
@@ -2578,7 +2582,6 @@ N2D('SlidesManager', function ($, undefined) {
|
|
2578 |
case 'post':
|
2579 |
this.addQuickPost(e);
|
2580 |
break;
|
2581 |
-
case 'library':
|
2582 |
case 'empty':
|
2583 |
case 'static':
|
2584 |
case 'dynamic':
|
@@ -2588,6 +2591,8 @@ N2D('SlidesManager', function ($, undefined) {
|
|
2588 |
window.location = $(e.currentTarget).data('href');
|
2589 |
}
|
2590 |
break;
|
|
|
|
|
2591 |
}
|
2592 |
}
|
2593 |
}, this));
|
324 |
|
325 |
}, this));
|
326 |
|
327 |
+
if (window.location.hash.substring(1) === 'createslider') {
|
328 |
this.showModal();
|
329 |
}
|
330 |
}
|
350 |
name: n2_('Thumbnail - horizontal'),
|
351 |
image: '$ss$/admin/images/sliderpresets/thumbnailhorizontal.png'
|
352 |
});
|
353 |
+
var size = [550, 540];
|
354 |
|
355 |
|
356 |
this.createSliderModal = new N2Classes.NextendModal({
|
387 |
sliderHeight.parent().addClass('n2-form-element-autocomplete');
|
388 |
|
389 |
this.createHeading(n2_('Preset')).appendTo(this.content);
|
390 |
+
var imageRadioHeight = 120
|
391 |
|
392 |
var imageRadio = this.createImageRadio(presets)
|
393 |
+
.css({
|
394 |
+
height: imageRadioHeight,
|
395 |
+
display: 'flex',
|
396 |
+
flexWrap: 'wrap'
|
397 |
+
})
|
398 |
.appendTo(this.content),
|
399 |
sliderPreset = imageRadio.find('input');
|
400 |
imageRadio.css('overflow', 'hidden');
|
2582 |
case 'post':
|
2583 |
this.addQuickPost(e);
|
2584 |
break;
|
|
|
2585 |
case 'empty':
|
2586 |
case 'static':
|
2587 |
case 'dynamic':
|
2591 |
window.location = $(e.currentTarget).data('href');
|
2592 |
}
|
2593 |
break;
|
2594 |
+
case 'library':
|
2595 |
+
break;
|
2596 |
}
|
2597 |
}
|
2598 |
}, this));
|
library/media/dist/smartslider-backend.min.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
(function(){var t=this;t.N2_=t.N2_||{r:[],d:[]},t.N2R=t.N2R||function(){t.N2_.r.push(arguments)},t.N2D=t.N2D||function(){t.N2_.d.push(arguments)}}).call(window),N2D("ContextMenu",function(t,e){function i(e,i){this.isActive=!1,this.$el=e.data("nextendcontextmenu",this),this.parameters=t.extend({selector:!1,onShow:function(){}},i),this.$menu=t('<div class="n2-context-menu"></div>').on("mousedown",function(){N2Classes.WindowManager.get().setMouseDownArea("context-menu")}).appendTo("body"),this.parameters.selector?this.$el.on("contextmenu",this.parameters.selector,t.proxy(this.onShowContextMenu,this)):this.$el.on("contextmenu",t.proxy(this.onShowContextMenu,this))}return i.prototype.onShowContextMenu=function(e){e.preventDefault(),this.clearItems(),this.parameters.onShow.call(this,e,this),this.hasItems&&(e.stopPropagation(),this.isActive=!0,this.$menu.css({left:e.pageX,top:e.pageY}),t("html").on("mouseleave.nextendcontextmenu, click.nextendcontextmenu",t.proxy(this.onHide,this))),this.$menu.toggleClass("n2-active",this.hasItems)},i.prototype.onHide=function(){t("html").off(".nextendcontextmenu"),this.$menu.removeClass("n2-active"),this.isActive=!1},i.prototype.clearItems=function(){this.isActive&&this.onHide(),this.hasItems=!1,this.$menu.html("")},i.prototype.addItem=function(e,i,s){this.hasItems=!0,this.$menu.append(t('<div><i class="n2-i '+i+'"></i><span>'+e+"</span></div>").on("click",s))},t.fn.nextendContextMenu=function(e){return this.each(function(){new i(t(this),e)})},i}),N2D("Zoom",function(t,e){function i(e){this.currentContainerWidth=0,this.devices={unknownUnknown:t("<div />")},this.responsives=[],this.add(e);var i=e.parameters.sliderWidthToDevice.desktopPortrait;this.container=e.containerElement.closest(".n2-ss-container-device,.n2-ss-canvas-slider-container").add(e.containerElement.closest(".n2-ss-slider-outer-container")),this.container.width(i),this.containerWidth=i,this.initZoom();var s=t("#n2-ss-devices .n2-tr"),r=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),r.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,r.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,r.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,r.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,r.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(N2Classes.WindowManager.setMouseDownArea,null,"zoomDeviceClicked"),click:t.proxy(this.setDeviceMode,this)})},this)),e.sliderElement.on("SliderDeviceOrientation",t.proxy(this.onDeviceOrientationChange,this))}var s=null;return i.add=function(t){s=new i(t),i.add=function(t){s.add(t)}},i.prototype.add=function(t){this.responsives.push(t),this.setOrientation("portrait"),t.parameters.onResizeEnabled=0,t.parameters.forceFull=0,t._getDevice=t._getDeviceZoom},i.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")},i.prototype.initZoom=function(){var e=t("#n2-ss-slider-zoom");e.length>0&&("undefined"!=typeof e[0].slide&&(e[0].slide=null),this.zoom=e.removeAttr("slide").prop("slide",!1).nUISlider({step:1,value:1,min:0,max:102}),this.$handle=e.data("nUISlider").handle,this.responsives[0].sliderElement.one("SliderResize",t.proxy(function(t){var e=this.responsives[0].containerElement.width();this.setContainerWidth(t,e,!0)},this)),this.zoom.on({"slide.n2-ss-zoom":t.proxy(this.zoomChange,this),"slidechange.n2-ss-zoom":t.proxy(this.zoomChange,this)}))},i.prototype.zoomChange=function(t,i){if(t.originalEvent!==e){var s,r=i.value,n=1;50>r?n=nextend.smallestZoom/this.containerWidth+Math.max(r/50,0)*(1-nextend.smallestZoom/this.containerWidth):r>52&&(n=1+(r-52)/50),s=parseInt(n*this.containerWidth),this.setContainerWidth(t,s)}},i.prototype.setContainerWidth=function(t,e,i){if(this.currentContainerWidth!=e){this.currentContainerWidth=e,this.$handle.html(e+"px"),this.container.width(e);for(var s=0;s<this.responsives.length;s++)this.responsives[s].doResize(t);if(i){var r=e/this.containerWidth,n=50;1>r?n=(r-nextend.smallestZoom/this.containerWidth)/(1-nextend.smallestZoom/this.containerWidth)*50:r>1&&(n=50*(r-1)+52),this.zoom.nUISlider("option","value",n)}}},i.prototype.setDeviceMode=function(e){var i=t(e.currentTarget);if((e.ctrlKey||e.metaKey)&&this.responsives[0].slider.editor.fragmentEditor){var s=i.data("orientation");this.responsives[0].slider.editor.fragmentEditor.copyOrResetMode(i.data("device")+s[0].toUpperCase()+s.substr(1))}else this.setOrientation(i.data("orientation")),this.setContainerWidth(e,this.getModeWidth(i.data("device")),!0)},i.prototype.getModeWidth=function(t){var e,i=this.responsives[0];e=i.orientationMode==N2Classes.SmartSliderResponsive.OrientationMode.ADMIN_PORTRAIT?N2Classes.SmartSliderResponsive.DeviceOrientation.PORTRAIT:N2Classes.SmartSliderResponsive.DeviceOrientation.LANDSCAPE;var s=i.parameters.sliderWidthToDevice[t+N2Classes.SmartSliderResponsive._DeviceOrientation[e]];if("mobile"==t)switch(N2Classes.SmartSliderResponsive._DeviceOrientation[e]){case"Portrait":s=Math.max(nextend.smallestZoom,320)}return s},i.prototype.setOrientation=function(t){if("portrait"==t)for(var e=0;e<this.responsives.length;e++)this.responsives[e].orientationMode=N2Classes.SmartSliderResponsive.OrientationMode.ADMIN_PORTRAIT;else for(var e=0;e<this.responsives.length;e++)this.responsives[e].orientationMode=N2Classes.SmartSliderResponsive.OrientationMode.ADMIN_LANDSCAPE},i}),N2D("CreateSlider",function(t,e){function i(e,i,s){this.addToGroupModal=null,this.groupID=e,this.ajaxUrl=i,this.shouldSkipLicenseModal=s,t(".n2-ss-create-slider").click(t.proxy(function(t){t.preventDefault(),t.stopImmediatePropagation(),this.showModal()},this)),this.notificationStack=new N2Classes.NotificationStackModal(t("body")),t(".n2-ss-add-sample-slider").click(t.proxy(function(t){t.preventDefault(),t.stopImmediatePropagation(),this.showDemoSliders()},this)),"createslider"==window.location.hash.substring(1)&&this.showModal()}return i.prototype.showModal=function(){if(!this.createSliderModal){var e=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"});var r=[550,520];this.createSliderModal=new N2Classes.NextendModal({zero:{size:r,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 r=this.controls.find(".n2-button-green"),n=this.content.find(".n2-form").on("submit",function(t){t.preventDefault(),r.trigger("click")});n.append(this.createInput(n2_("Slider name"),"createslidertitle","width: 240px;")),n.append(this.createInputUnit(n2_("Width"),"createsliderwidth","px","width: 30px;")),n.append(this.createInputUnit(n2_("Height"),"createsliderheight","px","width: 30px;")),new N2Classes.FormElementAutocompleteSimple("createsliderwidth",["1920","1200","1000","800","600","400"]),new N2Classes.FormElementAutocompleteSimple("createsliderheight",["800","600","500","400","300","200"]);var o=t("#createslidertitle").val(n2_("Slider")).focus(),a=t("#createsliderwidth").val(1200),l=t("#createsliderheight").val(500);a.parent().addClass("n2-form-element-autocomplete"),l.parent().addClass("n2-form-element-autocomplete"),this.createHeading(n2_("Preset")).appendTo(this.content);var h=100,d=this.createImageRadio(s).css("height",h).appendTo(this.content),p=d.find("input");d.css("overflow","hidden"),this.createHeading(n2_("Import Sample Sliders")).appendTo(this.content),t('<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",t.proxy(function(){this.hide(),e.showDemoSliders()},this)).appendTo(this.content),r.on("click",t.proxy(function(){N2Classes.AjaxHelper.ajax({type:"POST",url:N2Classes.AjaxHelper.makeAjaxUrl(i,{nextendaction:"create"}),data:{groupID:e.groupID,sliderTitle:o.val(),sliderSizeWidth:a.val(),sliderSizeHeight:l.val(),preset:p.val()},dataType:"json"}).done(t.proxy(function(t){N2Classes.AjaxHelper.startLoading()},this))},this))}}}})}this.createSliderModal.show()},i.prototype.showDemoSliders=function(){var e=this;t("body").css("overflow","hidden");var i=0,s=t('<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"),r=function(){t("body").css("overflow",""),s.remove(),window.removeEventListener("message",o,!1),e.notificationStack.popStack()},n=function(t){N2Classes.AjaxHelper.ajax({type:"POST",url:N2Classes.AjaxHelper.makeAjaxUrl(e.ajaxUrl,{nextendaction:"importDemo"}),data:{groupID:e.groupID,key:N2Classes.Base64.encode(t.replace(/^(http(s)?:)?\/\//,"//"))},dataType:"json"}).fail(function(){})},o=function(t){if("http://smartslider3.com"===t.origin||"https://smartslider3.com"===t.origin){var e=t.data;switch(e.key){case"importSlider":return void("function"==typeof nextend.joinCommunity?nextend.joinCommunity(function(){n(e.data.href)}):n(e.data.href));case"closeWindow":r()}}};this.notificationStack.enableStack(),N2Classes.Esc.add(t.proxy(function(){return r(),!0},this)),window.addEventListener("message",o,!1)},i}),N2D("ManageSliders",function(t,e){function i(e,i,s){this.groupID=e,this.ajaxUrl=i,this.sliders=[],this.sliderPanel=t("#n2-ss-slider-container"),this.orderBy="ordering"==this.sliderPanel.data("orderby"),this.slidersContainer=this.sliderPanel.find(".n2-ss-sliders-container");for(var r=this.slidersContainer.find(".n2-ss-box-slider"),n=0;n<r.length;n++)this.sliders.push(new N2Classes.Slider(this,r.eq(n)));this.changed(),this.initMenu(),this.initOrderable(),this.create=new N2Classes.CreateSlider(e,i,s),this.initBulk()}return i.prototype.changed=function(){t("html").attr("data-sliders",this.sliders.length)},i.prototype.initSliders=function(){for(var e=this.slidersContainer.find(".n2-ss-box-slider"),i=[],s=0;s<e.length;s++){var r=e.eq(s).data("slider");i.push(r)}this.sliders=i,this.changed(),t(window).triggerHandler("SmartSliderSidebarSlidersChanged")},i.prototype.initOrderable=function(){if(this.orderBy){var e={helper:"clone",items:"> .n2-ss-box-slider",stop:t.proxy(this.saveOrder,this),placeholder:"n2-box-sortable-placeholder",distance:10};this.slidersContainer.nUISortable(e)}},i.prototype.saveOrder=function(e,i){for(var s=this.slidersContainer.find(".n2-ss-box-slider"),r=[],n=[],o=[],a=0;a<s.length;a++){var l=s.eq(a).data("slider");r.push(l),n.push(l.getId())}for(var a=0;a<this.sliders.length;a++)o.push(this.sliders[a].getId());if(JSON.stringify(o)!=JSON.stringify(n)){t(window).triggerHandler("SmartSliderSidebarSlidersOrderChanged");var h={nextendcontroller:"sliders",nextendaction:"order"};N2Classes.AjaxHelper.ajax({type:"POST",url:N2Classes.AjaxHelper.makeAjaxUrl(this.ajaxUrl,h),data:{groupID:this.groupID,sliderorder:n,isReversed:"DESC"==this.sliderPanel.data("orderbydirection")?1:0}}),this.sliders=r}},i.prototype.initMenu=function(){this.slider=null,this.menu=t("#n2-ss-slider-menu").detach().addClass("n2-inited"),this.menuActions={duplicate:this.menu.find(".n2-ss-duplicate").on("click",t.proxy(function(t){this.slider.duplicate(t)},this)),"delete":this.menu.find(".n2-ss-delete").on("click",t.proxy(function(t){this.slider["delete"](t)},this)),preview:this.menu.find(".n2-ss-preview").on("click",t.proxy(function(t){this.slider.preview(t)},this))},this.menu.find(".n2-button").on("click",t.proxy(function(e){e.preventDefault(),e.stopPropagation(),this.menu.hasClass("n2-active")?this.menu.removeClass("n2-active").off("mouseleave"):this.menu.addClass("n2-active").on("mouseleave",function(){t(this).removeClass("n2-active")})},this))},i.prototype.showMenu=function(t){this.slider=t,this.menu.appendTo(t.box)},i.prototype.hideMenu=function(){this.menu.hasClass("n2-active")&&this.menu.removeClass("n2-active").off("mouseleave"),this.menu.detach()},i.prototype.deleteSliders=function(e,i){this.hideMenu();var s=i[0].box.find(".n2-box-placeholder-title a").text();i.length>1&&(s+=" and "+(i.length-1)+" more"),N2Classes.NextendModal.deleteModal("slider-delete",s,t.proxy(function(){N2Classes.AjaxHelper.ajax({url:N2Classes.AjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendcontroller:"sliders",nextendaction:"delete"}),type:"POST",data:{sliders:e}}).done(t.proxy(function(){for(var t=0;t<i.length;t++)i[t].deleted();this.initSliders(),this.leaveBulk()},this))},this))},i.prototype.duplicateSliders=function(e,i){for(var s=0;s<this.sliders.length;s++)this.sliders[s].selected&&this.sliders[s].duplicate(t.Event("click",{currentTarget:null}))},i.prototype.exportSliders=function(e,i){window.location.href=N2Classes.AjaxHelper.makeFallbackUrl(this.ajaxUrl,{nextendcontroller:"sliders",nextendaction:"exportAll"})+"&"+t.param({sliders:e,currentGroupID:this.groupID})},i.prototype.initBulk=function(){this.selection=[],this.isBulkSelection=!1;var e=t(".n2-bulk-select").find("a");e.eq(0).on("click",t.proxy(function(t){t.preventDefault(),this.bulkSelect(function(t){t.select()})},this)),e.eq(1).on("click",t.proxy(function(t){t.preventDefault(),this.bulkSelect(function(t){t.deSelect()})},this));t(".n2-bulk-actions").find("a").on("click",t.proxy(function(e){switch(e.preventDefault(),t(e.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(t){0==this.selection.length&&this.enterBulk(),this.selection.push(t)},i.prototype.removeSelection=function(e){this.selection.splice(t.inArray(e,this.selection),1),0==this.selection.length&&this.leaveBulk()},i.prototype.bulkSelect=function(t){for(var e=0;e<this.sliders.length;e++)t(this.sliders[e])},i.prototype.bulkAction=function(t,e){var i=[],s=[];this.bulkSelect(function(t){!t.selected||e&&t.isGroup||(i.push(t),s.push(t.getId()))}),s.length?(this[t](s,i),this.leaveBulk()):e?N2Classes.Notification.notice("Please select one or more sliders for the action!"):N2Classes.Notification.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.nUISortable("option","disabled",!0),t("#n2-admin").addClass("n2-ss-has-box-selection"))},i.prototype.leaveBulk=function(){if(this.isBulkSelection){this.orderBy&&this.slidersContainer.nUISortable("option","disabled",!1),t("#n2-admin").removeClass("n2-ss-has-box-selection");for(var e=0;e<this.sliders.length;e++)this.sliders[e].deSelect();this.selection=[],this.isBulkSelection=!1}},i}),N2D("Slider",function(t,e){function i(e,i){this.selected=!1,this.manager=e,this.box=i.data("slider",this).addClass("n2-clickable"),this.isGroup=this.box.hasClass("n2-ss-box-slider-group"),this.box.on("mouseenter",t.proxy(function(){this.manager.showMenu(this)},this)).on("mouseleave",t.proxy(function(){this.manager.hideMenu()},this)).on("click.n2-slider",t.proxy(this.goToEdit,this)),this.box.find(".n2-ss-box-select").on("click",t.proxy(function(t){t.stopPropagation(),t.preventDefault(),this.invertSelection()},this))}return i.prototype.getId=function(){return this.box.data("sliderid")},i.prototype.goToEdit=function(t,e){if("A"!==t.target.tagName){var i=this.box.data("editurl");"undefined"!=typeof e&&e?window.open(i,"_blank"):window.location=i}},i.prototype.preview=function(t){t.stopPropagation(),t.preventDefault(),window.open(N2Classes.AjaxHelper.makeFallbackUrl(this.box.data("editurl"),{nextendcontroller:"preview",nextendaction:"index"}),"_blank")},i.prototype.duplicate=function(e){e.stopPropagation(),e.preventDefault();var s=t.Deferred();return N2Classes.AjaxHelper.ajax({url:N2Classes.AjaxHelper.makeAjaxUrl(this.box.data("editurl"),{nextendcontroller:"slider",nextendaction:"duplicate"})}).done(t.proxy(function(e){var r=t(e.data).insertAfter(this.box),n=new i(this.manager,r);this.manager.initSliders(),s.resolve(n)},this)),s},i.prototype["delete"]=function(t){t.stopPropagation(),t.preventDefault(),this.manager.deleteSliders([this.getId()],[this])},i.prototype.deleted=function(){this.box.remove()},i.prototype.invertSelection=function(t){t&&t.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))},i}),N2D("FormElementAnimationManager",["FormElement"],function(t,e){function i(e,i){this.element=t("#"+e),this.managerIdentifier=i,this.element.parent().on("click",t.proxy(this.show,this)),this.element.siblings(".n2-form-element-clear").on("click",t.proxy(this.clear,this)),this.name=this.element.siblings("input"),this.updateName(this.element.val()),N2Classes.FormElement.prototype.constructor.apply(this,arguments)}return i.prototype=Object.create(N2Classes.FormElement.prototype),i.prototype.constructor=i,i.prototype.show=function(e){e.preventDefault(),nextend[this.managerIdentifier].show(this.element.val(),t.proxy(this.save,this))},i.prototype.clear=function(t){t.preventDefault(),t.stopPropagation(),this.val("")},i.prototype.save=function(t,e){this.val(e)},i.prototype.val=function(t){this.element.val(t),this.updateName(t),this.triggerOutsideChange()},i.prototype.insideChange=function(t){this.element.val(t),this.updateName(t),this.triggerInsideChange()},i.prototype.updateName=function(t){t=""==t?n2_("Disabled"):t.split("||").length>1?n2_("Multiple animations"):n2_("Single animation"),this.name.val(t)},i}),N2D("FormElementBackground",["FormElement"],function(t,e){function i(e,i){this.value="",this.element=t("#"+e),this.$container=this.element.closest(".n2-form-tab"),this.panel=t("#"+e+"-panel"),this.setValue(i),this.options=this.panel.find(".n2-subform-image-option").on("click",t.proxy(this.selectOption,this)),this.active=this.getIndex(this.options.filter(".n2-active").get(0)),this.element.on("change",t.proxy(function(){this.insideChange(this.element.val())},this)),N2Classes.FormElement.prototype.constructor.apply(this,arguments)}return i.prototype=Object.create(N2Classes.FormElement.prototype),i.prototype.constructor=i,i.prototype.selectOption=function(e){var i=this.getIndex(e.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=t(e.currentTarget).data("value");this.insideChange(s)}},i.prototype.setValue=function(t){this.$container.removeClass("n2-ss-background-type-"+this.value),this.value=t,this.$container.addClass("n2-ss-background-type-"+this.value)},i.prototype.insideChange=function(t){this.setValue(t),this.element.val(t),this.options.removeClass("n2-active"),this.options.filter('[data-value="'+t+'"]').addClass("n2-active"),this.triggerInsideChange()},i.prototype.getIndex=function(e){return t.inArray(e,this.options)},i}),N2D("FormElementColumns",["FormElement"],function(t,e){function i(e){this.denominators={1:100,2:100,3:144,4:100,5:100,6:144},this.element=t("#"+e),N2Classes.FormElement.prototype.constructor.apply(this,arguments),this.$c=t("#"+e).parent(),this.$container=this.$c.find(".n2-ss-columns-element-container"),this.containerWidth=284,this.maxWidth=0,this.$container.nUISortable({axis:"x",items:".n2-ss-columns-element-column",helper:"clone_hide",start:t.proxy(function(t,e){this.$container.addClass("n2-sortable-currently-sorted"),e.placeholder.css({width:e.item.width(),visibility:"hidden"});var i=this.$container.find(".n2-ss-columns-element-column");e.item.data("index",i.index(e.item))},this),stop:t.proxy(function(t,e){var i=this.$container.find(".n2-ss-columns-element-column"),s=e.item.data("index"),r=i.index(e.item);s!=r&&(this.currentRow.moveCol(s,r),e.item.data("index",null)),this.makeResizable(),this.$container.removeClass("n2-sortable-currently-sorted")},this)}),this.$c.find(".n2-ss-columns-element-add-col").on({click:t.proxy(function(){this.currentRow.createCol()},this)})}return i.prototype=Object.create(N2Classes.FormElement.prototype),i.prototype.constructor=i,i.prototype.getDenominator=function(t){return this.denominators[t]===e&&(this.denominators[t]=15*t),this.denominators[t]},i.prototype.setRow=function(t){this.currentRow=t,this.insideChange(t.getColumnsOrdered())},i.prototype.setValue=function(t){},i.prototype.insideChange=function(t){this.start(t)},i.prototype.activateColumn=function(t){var e=this.$container.find(".n2-ss-columns-element-column").index(t.currentTarget);this.currentRow.activateColumn(e,t)},i.prototype.start=function(e){this.percentages=[];for(var i=e.split("+"),s=0;s<i.length;s++)this.percentages.push(new Fraction(i[s]));this.refreshMaxWidth(),this.$container.empty();for(var s=0;s<this.percentages.length;s++)this.updateColumn(t('<div class="n2-ss-columns-element-column">').on("click",t.proxy(this.activateColumn,this)).appendTo(this.$container),this.percentages[s]);this.makeResizable()},i.prototype.refreshMaxWidth=function(){this.maxWidth=this.containerWidth-15*(this.percentages.length-1)},i.prototype.updateColumn=function(t,e){t.css("width",this.maxWidth*e.valueOf()+"px").html(Math.round(100*e.valueOf()*10)/10+"%")},i.prototype.makeResizable=function(){this.handles&&this.handles.remove(),this.$columns=this.$container.find(".n2-ss-columns-element-column"),t('<div class="n2-ss-columns-element-handle"><div class="n2-i n2-i-more"></div></div>').insertAfter(this.$columns.not(this.$columns.last())),this.handles=this.$container.find(".n2-ss-columns-element-handle").on("mousedown",t.proxy(this._resizeStart,this))},i.prototype._resizeStart=function(e){var i=this.handles.index(e.currentTarget),s=this.$container.offset().left+8;this.resizeContext={index:i,cLeft:s,$currentCol:this.$columns.eq(i),$nextCol:this.$columns.eq(i+1),startX:Math.max(0,Math.min(e.clientX-s,this.containerWidth))},this._resizeMove(e),t("html").off(".resizecol").on({"mousemove.resizecol":t.proxy(this._resizeMove,this),"mouseup.resizecol mouseleave.resizecol":t.proxy(this._resizeStop,this)})},i.prototype._resizeMove=function(e){e.preventDefault();var i=Math.max(0,Math.min(e.clientX-this.resizeContext.cLeft,this.containerWidth)),s=this.getDenominator(this.percentages.length),r=new Fraction(Math.round((i-this.resizeContext.startX)/(this.maxWidth/s)),s);r.compare(this.percentages[this.resizeContext.index].clone().mul(-1))<0&&(r=this.percentages[this.resizeContext.index].clone().mul(-1)),r.compare(this.percentages[this.resizeContext.index+1])>0&&(r=this.percentages[this.resizeContext.index+1].clone());var n=this.percentages[this.resizeContext.index].add(r),o=this.percentages[this.resizeContext.index+1].sub(r);this.updateColumn(this.resizeContext.$currentCol,n),this.updateColumn(this.resizeContext.$nextCol,o);var a=t.extend([],this.percentages);return a[this.resizeContext.index]=n,a[this.resizeContext.index+1]=o,this.onColumnWidthChange(a),[n,o]},i.prototype._resizeStop=function(e){var i=this._resizeMove(e);this.percentages[this.resizeContext.index]=i[0],this.percentages[this.resizeContext.index+1]=i[1],t("html").off(".resizecol"),delete this.resizeContext,this.currentRow.setRealColsWidth(this.percentages)},i.prototype.onColumnWidthChange=function(t){for(var e=[],i=0;i<t.length;i++)e.push(t[i].valueOf());this.currentRow.updateColumnWidth(e)},i}),function(t){"use strict";function e(t,e){return isNaN(t=parseInt(t,10))&&i(),t*e}function i(){throw"Invalid Param"}function s(t,e){return this instanceof s?(o(t,e),t=s.REDUCE?d(n.d,n.n):1,this.s=n.s,this.n=n.n/t,void(this.d=n.d/t)):new s(t,e)}var r=2e3,n={s:1,n:0,d:1},o=function(t,s){var r,o=0,a=1,l=1,h=0,d=0,p=0,c=1,u=1,y=0,g=1,f=1,m=1,v=1e7;if(void 0===t||null===t);else if(void 0!==s)o=t,a=s,l=o*a;else switch(typeof t){case"object":"d"in t&&"n"in t?(o=t.n,a=t.d,"s"in t&&(o*=t.s)):0 in t?(o=t[0],1 in t&&(a=t[1])):i(),l=o*a;break;case"number":if(0>t&&(l=t,t=-t),t%1===0)o=t;else if(t>0){for(t>=1&&(u=Math.pow(10,Math.floor(1+Math.log(t)/Math.LN10)),t/=u);v>=g&&v>=m;){if(r=(y+f)/(g+m),t===r){v>=g+m?(o=y+f,a=g+m):m>g?(o=f,a=m):(o=y,a=g);break}t>r?(y+=f,g+=m):(f+=y,m+=g),g>v?(o=f,a=m):(o=y,a=g)}o*=u}else(isNaN(t)||isNaN(s))&&(a=o=NaN);break;case"string":if(g=t.match(/\d+|./g),"-"===g[y]?(l=-1,y++):"+"===g[y]&&y++,g.length===y+1?d=e(g[y++],l):"."===g[y+1]||"."===g[y]?("."!==g[y]&&(h=e(g[y++],l)),y++,(y+1===g.length||"("===g[y+1]&&")"===g[y+3]||"'"===g[y+1]&&"'"===g[y+3])&&(d=e(g[y],l),c=Math.pow(10,g[y].length),y++),("("===g[y]&&")"===g[y+2]||"'"===g[y]&&"'"===g[y+2])&&(p=e(g[y+1],l),u=Math.pow(10,g[y+1].length)-1,y+=3)):"/"===g[y+1]||":"===g[y+1]?(d=e(g[y],l),c=e(g[y+2],1),y+=3):"/"===g[y+3]&&" "===g[y+1]&&(h=e(g[y],l),d=e(g[y+2],l),c=e(g[y+4],1),y+=5),g.length<=y){a=c*u,l=o=p+a*h+u*d;break}default:i()}if(0===a)throw"DIV/0";n.s=0>l?-1:1,n.n=Math.abs(o),n.d=Math.abs(a)},a=function(t,e,i){for(var s=1;e>0;t=t*t%i,e>>=1)1&e&&(s=s*t%i);return s},l=function(t,e){for(;e%2===0;e/=2);for(;e%5===0;e/=5);if(1===e)return 0;for(var i=10%e,s=1;1!==i;s++)if(i=10*i%e,s>r)return 0;return s},h=function(t,e,i){for(var s=1,r=a(10,i,e),n=0;300>n;n++){if(s===r)return n;s=10*s%e,r=10*r%e}return 0},d=function(t,e){if(!t)return e;if(!e)return t;for(;;){if(t%=e,!t)return e;if(e%=t,!e)return t}};s.REDUCE=1,s.prototype={s:1,n:0,d:1,abs:function(){return new s(this.n,this.d)},neg:function(){return new s(-this.s*this.n,this.d)},add:function(t,e){return o(t,e),new s(this.s*this.n*n.d+n.s*this.d*n.n,this.d*n.d)},sub:function(t,e){return o(t,e),new s(this.s*this.n*n.d-n.s*this.d*n.n,this.d*n.d)},mul:function(t,e){return o(t,e),new s(this.s*n.s*this.n*n.n,this.d*n.d)},div:function(t,e){return o(t,e),new s(this.s*n.s*this.n*n.d,this.d*n.n)},clone:function(){return new s(this)},mod:function(t,e){return isNaN(this.n)||isNaN(this.d)?new s(NaN):void 0===t?new s(this.s*this.n%this.d,1):(o(t,e),0===n.n&&0===this.d&&s(0,0),new s(this.s*n.d*this.n%(n.n*this.d),n.d*this.d))},gcd:function(t,e){return o(t,e),new s(d(n.n,this.n),n.d*this.d/d(n.d,this.d))},lcm:function(t,e){return o(t,e),0===n.n&&0===this.n?new s:new s(n.n*this.n/d(n.n,this.n),d(n.d,this.d))},ceil:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new s(NaN):new s(Math.ceil(t*this.s*this.n/this.d),t)},floor:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new s(NaN):new s(Math.floor(t*this.s*this.n/this.d),t)},round:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new s(NaN):new s(Math.round(t*this.s*this.n/this.d),t)},inverse:function(){return new s(this.s*this.d,this.n)},pow:function(t){return 0>t?new s(Math.pow(this.s*this.d,-t),Math.pow(this.n,-t)):new s(Math.pow(this.s*this.n,t),Math.pow(this.d,t))},equals:function(t,e){return o(t,e),this.s*this.n*n.d===n.s*n.n*this.d},compare:function(t,e){o(t,e);var i=this.s*this.n*n.d-n.s*n.n*this.d;return(i>0)-(0>i)},divisible:function(t,e){return o(t,e),!(!(n.n*this.d)||this.n*n.d%(n.n*this.d))},valueOf:function(){return this.s*this.n/this.d},toFraction:function(t){var e,i="",s=this.n,r=this.d;return this.s<0&&(i+="-"),1===r?i+=s:(t&&(e=Math.floor(s/r))>0&&(i+=e,i+=" ",s%=r),i+=s,i+="/",i+=r),i},toLatex:function(t){var e,i="",s=this.n,r=this.d;return this.s<0&&(i+="-"),1===r?i+=s:(t&&(e=Math.floor(s/r))>0&&(i+=e,s%=r),i+="\\frac{",i+=s,i+="}{",i+=r,i+="}"),i},toContinued:function(){var t,e=this.n,i=this.d,s=[];do s.push(Math.floor(e/i)),t=e%i,e=i,i=t;while(1!==e);return s},toString:function(){var t,e=this.n,i=this.d;if(isNaN(e)||isNaN(i))return"NaN";s.REDUCE||(t=d(e,i),e/=t,i/=t);for(var r=String(e).split(""),n=0,o=[~this.s?"":"-","",""],a="",p=l(e,i),c=h(e,i,p),u=-1,y=1,g=15+p+c+r.length,f=0;g>f;f++,n*=10){if(f<r.length?n+=Number(r[f]):(y=2,u++),p>0)if(u===c)o[y]+=a+"(",a="";else if(u===p+c){o[y]+=a+")";break}n>=i?(o[y]+=a+(n/i|0),a="",n%=i):y>1?a+="0":o[y]&&(o[y]+="0")}return o[0]+=o[1]||"0",o[2]?o[0]+"."+o[2]:o[0]}},t.Fraction=s}(window),N2D("FormElementSliderType",function(t,e){function i(e){this.element=t("#"+e),this.setAttribute(),this.element.on("nextendChange",t.proxy(this.setAttribute,this))}return i.prototype.setAttribute=function(){var e=this.element.val();t("#n2-admin").data("slider-type",e).attr("data-slider-type",e),"block"===this.element.val()&&t(".n2-fm-shadow").trigger("click")},i}),N2D("FormElementSliderWidgetArea",["FormElement"],function(t,e){function i(e){this.element=t("#"+e),this.area=t("#"+e+"_area"),this.areas=this.area.find(".n2-area"),this.areas.on("click",t.proxy(this.chooseArea,this)),N2Classes.FormElement.prototype.constructor.apply(this,arguments)}return i.prototype=Object.create(N2Classes.FormElement.prototype),i.prototype.constructor=i,i.prototype.chooseArea=function(e){var i=parseInt(t(e.target).data("area"));this.element.val(i),this.setSelected(i),this.triggerOutsideChange()},i.prototype.insideChange=function(t){t=parseInt(t),this.element.val(t),this.setSelected(t),this.triggerInsideChange()},i.prototype.setSelected=function(t){this.areas.removeClass("n2-active"),this.areas.eq(t-1).addClass("n2-active")},i}),N2D("FormElementWidgetPosition",function(t,e){function i(e){this.element=t("#"+e+"-mode"),this.container=this.element.closest(".n2-form-element-mixed"),this.tabs=this.container.find("> .n2-mixed-group"),this.element.on("nextendChange",t.proxy(this.onChange,this)),this.onChange()}return i.prototype.onChange=function(){var t=this.element.val();"advanced"===t?(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"))},i}),N2D("SmartSliderGeneratorRecords",function(t,e){function i(e){this.ajaxUrl=e,t("#generatorrecord-viewer").on("click",t.proxy(this.showRecords,this))}return i.prototype.showRecords=function(e){e.preventDefault(),N2Classes.AjaxHelper.ajax({
|
2 |
-
type:"POST",url:this.ajaxUrl,data:t("#smartslider-form").serialize(),dataType:"json"}).done(function(t){var e=new N2Classes.NextendModal({zero:{size:[1300,700],title:"Records",content:t.data.html}},!0);e.content.css("overflow","auto")}).error(function(t){if(200==t.status){var e=new N2Classes.NextendModal({zero:{size:[1300,700],title:"Response",content:t.responseText}},!0);e.content.css("overflow","auto")}})},i}),N2D("QuickSlides",function(t,e){function i(e){var i=t("#n2-quick-slides-edit");i.length<1||(this.ajaxUrl=e,i.on("click",t.proxy(this.openEdit,this)))}return i.prototype.openEdit=function(e){e.preventDefault();var i=t("#n2-ss-slides .n2-box-slide"),s=this;this.modal=new N2Classes.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 e=this.controls.find(".n2-button-green"),r=this.content.find(".n2-form").on("submit",function(t){t.preventDefault(),e.trigger("click")}),n=r.find("table");i.each(t.proxy(function(e,i){var r=t(i),o=t("<tr />").appendTo(n),a=r.data("slideid");o.append(t("<td />").append('<img src="'+r.data("image")+'" style="width:100px;"/>')),o.append(t("<td />").append(s.createInput(n2_("Name"),"title-"+a,r.data("title"),"width: 240px;"))),o.append(t("<td />").append(s.createTextarea(n2_("Description"),"description-"+a,r.data("description"),"width: 330px;height:24px;")));var l=r.data("link").split("|*|");o.append(t("<td />").append(s.createLink(n2_("Link"),"link-"+a,l[0],"width: 180px;"))),o.append(t("<td />").append(s.createTarget(n2_("Target window"),"target-"+a,l.length>1?l[1]:"_self",""))),new N2Classes.FormElementUrl("link-"+a,nextend.NextendElementUrlParams)},this)),e.on("click",t.proxy(function(e){var r={};i.each(t.proxy(function(e,i){var s=t(i),n=s.data("slideid"),o=t("#title-"+n).val(),a=t("#description-"+n).val(),l=t("#link-"+n).val()+"|*|"+t("#target-"+n).val();o==s.data("title")&&a==s.data("description")&&l==s.data("link")||(r[n]={name:o,description:a,link:l})},this)),jQuery.isEmptyObject(r)?this.hide(e):(this.hide(e),N2Classes.AjaxHelper.ajax({type:"POST",url:N2Classes.AjaxHelper.makeAjaxUrl(s.ajaxUrl),data:{changed:N2Classes.Base64.encode(JSON.stringify(r))},dataType:"json"}).done(t.proxy(function(e){var i=e.data;for(var s in i){var r=t('.n2-box-slide[data-slideid="'+s+'"]');r.find(".n2-box-placeholder a.n2-h4").html(i[s].title),r.attr("data-title",i[s].rawTitle),r.data("title",i[s].rawTitle),r.attr("data-description",i[s].rawDescription),r.data("description",i[s].rawDescription),r.attr("data-link",i[s].rawLink),r.data("link",i[s].rawLink)}},this)))},this))}}}}),this.modal.setCustomClass("n2-ss-quick-slides-edit-modal"),this.modal.show()},i.prototype.createInput=function(e,i,s){var r="";4==arguments.length&&(r=arguments[3]);var n=t('<div class="n2-form-element-mixed"><div class="n2-mixed-group"><div class="n2-mixed-label"><label for="'+i+'">'+e+'</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="'+r+'"></div></div></div></div>');return n.find("input").val(s),n},i.prototype.createTextarea=function(e,i,s){var r="";4==arguments.length&&(r=arguments[3]);var n=t('<div class="n2-form-element-mixed"><div class="n2-mixed-group"><div class="n2-mixed-label"><label for="'+i+'">'+e+'</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;'+r+'"></textarea></div></div></div></div>');return n.find("textarea").val(s),n},i.prototype.createLink=function(e,i,s){var r="";4==arguments.length&&(r=arguments[3]);var n=t('<div class="n2-form-element-mixed"><div class="n2-mixed-group"><div class="n2-mixed-label"><label for="'+i+'">'+e+'</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="'+r+'"><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 n.find("input").val(s),n},i.prototype.createTarget=function(e,i,s){var r="";4==arguments.length&&(r=arguments[3]);var n=t('<div class="n2-form-element-mixed"><div class="n2-mixed-group"><div class="n2-mixed-label"><label for="'+i+'">'+e+'</label></div><div class="n2-mixed-element"><div class="n2-form-element-list"><select id="'+i+'" autocomplete="off" style="'+r+'"><option value="_self">Self</option><option value="_blank">Blank</option></select></div></div></div></div>');return n.find("select").val(s),n},i}),N2D("Slide",function(t,e){function i(e,i){this.selected=!1,this.manager=e,this.box=i.data("slide",this).addClass("n2-clickable"),this.box.on("mouseenter",t.proxy(function(){this.manager.showMenu(this)},this)).on("mouseleave",t.proxy(function(){this.manager.hideMenu()},this)).on("click.n2-slide",t.proxy(this.goToEdit,this)),this.publishElement=this.box.find(".n2-slide-published").on("click",t.proxy(this.switchPublished,this)),this.box.find(".n2-ss-box-select").on("click",t.proxy(function(t){t.stopPropagation(),t.preventDefault(),this.invertSelection()},this))}return i.prototype.getId=function(){return this.box.data("slideid")},i.prototype.setFirst=function(e){e.stopPropagation(),e.preventDefault(),N2Classes.AjaxHelper.ajax({url:N2Classes.AjaxHelper.makeAjaxUrl(this.manager.ajaxUrl,{nextendaction:"first"}),type:"POST",data:{id:this.getId()}}).done(t.proxy(function(){this.manager.unsetFirst(),this.box.addClass("n2-slide-state-first")},this))},i.prototype.unsetFirst=function(){this.box.removeClass("n2-slide-state-first")},i.prototype.switchPublished=function(t){t.stopPropagation(),t.preventDefault(),this.isPublished()?this.manager.unPublishSlides([this.getId()],[this]):this.manager.publishSlides([this.getId()],[this])},i.prototype.isPublished=function(){return this.box.hasClass("n2-slide-state-published")},i.prototype.published=function(){this.box.addClass("n2-slide-state-published")},i.prototype.unPublished=function(){this.box.removeClass("n2-slide-state-published")},i.prototype.goToEdit=function(e,i){if(this.manager.isBulkSelection)this.invertSelection(),e.preventDefault();else if("A"!==e.target.tagName){var s=this.box.data("editurl");"undefined"!=typeof i&&i?window.open(s,"_blank"):s===location.href?t("#n2-admin").toggleClass("n2-ss-slides-outer-container-visible"):window.location=s}},i.prototype.duplicate=function(e){e.stopPropagation(),e.preventDefault();var s=t.Deferred();return N2Classes.AjaxHelper.ajax({url:N2Classes.AjaxHelper.makeAjaxUrl(this.box.data("editurl"),{nextendaction:"duplicate"})}).done(t.proxy(function(e){var r=t(e.data).insertAfter(this.box),n=new i(this.manager,r);this.manager.initSlides(),s.resolve(n)},this)),s},i.prototype["delete"]=function(t){t.stopPropagation(),t.preventDefault(),this.manager.deleteSlides([this.getId()],[this])},i.prototype.deleted=function(){this.box.remove()},i.prototype.invertSelection=function(t){t&&t.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))},i.prototype.publish=function(t){this.switchPublished(t)},i.prototype.unpublish=function(t){this.switchPublished(t)},i.prototype.generator=function(t){window.location=this.box.data("generator")},i.prototype.copy=function(e){this.manager.showSliderSelector(n2_("Copy slide to ..."),t.proxy(function(t){N2Classes.AjaxHelper.ajax({url:N2Classes.AjaxHelper.makeAjaxUrl(this.box.data("editurl"),{nextendaction:"copy",targetSliderID:t.sliderID})})},this))},i}),N2D("SlidesManager",function(t,e){function i(i,s,r,n,o,a){this.quickPostModal=null,this.quickVideoModal=null,this.parameters=r,this.slides=[],this.ajaxUrl=i,this.contentAjaxUrl=s,this.slidesPanel=t("#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"),h=0;h<l.length;h++)this.slides.push(new N2Classes.Slide(this,l.eq(h)));if(t("body").attr("data-slides",this.slides.length),t("#n2-ss-slides").find(".n2-ss-slides-create-action-box").on("mouseup",t.proxy(function(i){i.preventDefault();var s=0;if(i.which!==e&&(s=i.which),2>=s)switch(t(i.currentTarget).data("action")){case"image":this.addQuickImage(i);break;case"video":this.addQuickVideo(i);break;case"post":this.addQuickPost(i);break;case"library":case"empty":case"static":case"dynamic":2===s?window.open(t(i.currentTarget).data("href"),"_blank").focus():window.location=t(i.currentTarget).data("href")}},this)),t(".n2-box-slide-dummy").on("click",t.proxy(this.addQuickImage,this)),this.initBulk(),!n){var d=[];this.slidesContainer.nUIFileUpload({url:o,pasteZone:!1,dataType:"json",paramName:"image",dropZone:t(".n2-ss-slides-outer-container"),add:t.proxy(function(t,e){e.formData={path:"/"+a},e.submit()},this),done:t.proxy(function(t,e){var i=e.result;i.data&&i.data.name?d.push({title:i.data.name.replace(/\.[^\/.]+$/,""),description:"",image:i.data.url}):N2Classes.AjaxHelper.notification(i)},this),fail:t.proxy(function(t,e){N2Classes.AjaxHelper.notification(e.jqXHR.responseJSON)},this),start:function(){N2Classes.AjaxHelper.startLoading()},stop:t.proxy(function(){d.length?this._addQuickImages(d):setTimeout(function(){N2Classes.AjaxHelper.stopLoading()},100),d=[]},this)});var p=null;this.slidesContainer.on("dragover",t.proxy(function(e){null!==p?(clearTimeout(p),p=null):this.slidesContainer.addClass("n2-drag-over"),p=setTimeout(t.proxy(function(){this.slidesContainer.removeClass("n2-drag-over"),p=null},this),400)},this))}}return i.prototype.changed=function(){},i.prototype.initSlidesOrderable=function(){this.slidesContainer.nUISortable({items:".n2-box-slide",stop:t.proxy(this.saveSlideOrder,this),placeholder:"n2-box-sortable-placeholder n2-box-sortable-placeholder-small",distance:10,helper:"clone"})},i.prototype.saveSlideOrder=function(e){for(var i=this.slidesContainer.find(".n2-box-slide"),s=[],r=[],n=[],o=0;o<i.length;o++){var a=i.eq(o).data("slide");s.push(a),r.push(a.getId())}for(var o=0;o<this.slides.length;o++)n.push(this.slides[o].getId());if(JSON.stringify(n)!=JSON.stringify(r)){t(window).triggerHandler("SmartSliderSidebarSlidesOrderChanged");var l={nextendcontroller:"slides",nextendaction:"order"};N2Classes.AjaxHelper.ajax({type:"POST",url:N2Classes.AjaxHelper.makeAjaxUrl(this.ajaxUrl,l),data:{slideorder:r}}),this.slides=s,this.changed()}},i.prototype.initSlides=function(){for(var e=this.slidesContainer.find(".n2-box-slide"),i=[],s=0;s<e.length;s++){var r=e.eq(s).data("slide");i.push(r)}this.slides=i,this.changed(),t(window).triggerHandler("SmartSliderSidebarSlidesChanged"),t("body").attr("data-slides",this.slides.length)},i.prototype.unsetFirst=function(){for(var t=0;t<this.slides.length;t++)this.slides[t].unsetFirst();this.changed()},i.prototype.addQuickImage=function(e){e.preventDefault(),nextend.imageHelper.openMultipleLightbox(t.proxy(this._addQuickImages,this))},i.prototype.addBoxes=function(e){e.insertBefore(this.slidesContainer.find(".n2-clear")),e.addClass("n2-ss-box-just-added").each(t.proxy(function(e,i){new N2Classes.Slide(this,t(i))},this)),this.initSlides(),setTimeout(function(){e.removeClass("n2-ss-box-just-added")},200)},i.prototype._addQuickImages=function(e){for(var i=[],s=0;s<e.length;s++)e[s].image.match(/\.(mp4)/i)?N2Classes.Notification.error("Video is not supported!"):i.push(e[s]);i.length&&N2Classes.AjaxHelper.ajax({type:"POST",url:N2Classes.AjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"quickImages"}),data:{images:N2Classes.Base64.encode(JSON.stringify(i))}}).done(t.proxy(function(e){this.addBoxes(t(e.data))},this))},i.prototype.addQuickVideo=function(e){e.preventDefault();var i=this;this.quickVideoModal||(this.quickVideoModal=new N2Classes.NextendModal({zero:{size:[500,360],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 e=this.controls.find(".n2-button"),s=(this.content.find(".n2-form").on("submit",function(t){t.preventDefault(),e.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=lsq09izc1H4"],["Vimeo","https://vimeo.com/144598279"]],["",""])),e.on("click",t.proxy(t.proxy(function(e){e.preventDefault();var r=s.val(),n=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,o=r.match(n),a=/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/,l=r.match(a),h=r.match(/\.(mp4)/i);o?N2Classes.AjaxHelper.getJSON("https://www.googleapis.com/youtube/v3/videos?id="+encodeURI(o[2])+"&part=snippet&key=AIzaSyC3AolfvPAPlJs-2FgyPJdEEKS6nbPHdSM").done(t.proxy(function(t){if(t.items.length){var e=t.items[0].snippet,s=t.items[0].snippet.thumbnails,n=s.maxres||s.standard||s.high||s.medium||s["default"];i._addQuickVideo(this,{type:"youtube",title:e.title,description:e.description,image:n.url,video:r})}},this)).fail(function(t){N2Classes.Notification.error(t.error.errors[0].message)}):l?N2Classes.AjaxHelper.getJSON("https://vimeo.com/api/v2/video/"+l[3]+".json").done(t.proxy(function(t){i._addQuickVideo(this,{type:"vimeo",title:t[0].title,description:t[0].description,video:l[3],image:t[0].thumbnail_large})},this)).fail(function(t){N2Classes.Notification.error(t.responseText)}):h?N2Classes.Notification.error(n2_("This video url is not supported!")):N2Classes.Notification.error(n2_("This video url is not supported!"))},this)))}}}})),this.quickVideoModal.show()},i.prototype._addQuickVideo=function(e,i){N2Classes.AjaxHelper.ajax({type:"POST",url:N2Classes.AjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"quickVideo"}),data:{video:N2Classes.Base64.encode(encodeURIComponent(JSON.stringify(i)))}}).done(t.proxy(function(e){this.addBoxes(t(e.data)),this.initSlides()},this)),e&&e.hide()},i.prototype.addQuickPost=function(e){if(e.preventDefault(),!this.quickPostModal){var i=this,s={},r=t.proxy(function(t){return"undefined"==typeof s[t]&&(s[t]=N2Classes.AjaxHelper.ajax({type:"POST",url:N2Classes.AjaxHelper.makeAjaxUrl(this.contentAjaxUrl),data:{keyword:t},dataType:"json"})),s[t]},this);this.quickPostModal=new N2Classes.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 e=t("#n2-ss-keyword"),s=this.createHeading("").appendTo(this.content),n=this.createResult().appendTo(this.content),o="";e.on("keyup",t.proxy(function(){o=e.val(),r(o).done(t.proxy(function(r){if(e.val()==o){""==o?s.html(n2_("No search term specified. Showing recent items.")):s.html(n2_printf(n2_('Showing items match for "%s"'),o));for(var a=r.data,l=[],h=this,d=0;d<a.length;d++)l.push([a[d].title,a[d].info,t('<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:a[d]},function(t){i._addQuickPost(h,t.data.post)})]);n.html(""),this.createTable(l,["width:100%;","",""]).appendTo(this.createTableWrap().appendTo(n))}},this))},this)).trigger("keyup").focus()}}}})}this.quickPostModal.show()},i.prototype._addQuickPost=function(e,i){i.image||(i.image=""),N2Classes.AjaxHelper.ajax({type:"POST",url:N2Classes.AjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"quickPost"}),data:{post:i}}).done(t.proxy(function(e){this.addBoxes(t(e.data)),this.initSlides()},this)),e.hide()},i.prototype.initBulk=function(){this.selection=[],this.isBulkSelection=!1;var e=t(".n2-bulk-select").find("a");e.eq(0).on("click",t.proxy(function(t){t.preventDefault(),this.bulkSelect(function(t){t.select()})},this)),e.eq(1).on("click",t.proxy(function(t){t.preventDefault(),this.bulkSelect(function(t){t.deSelect()})},this)),e.eq(2).on("click",t.proxy(function(t){t.preventDefault(),this.bulkSelect(function(t){t.box.hasClass("n2-slide-state-published")?t.select():t.deSelect()})},this)),e.eq(3).on("click",t.proxy(function(t){t.preventDefault(),this.bulkSelect(function(t){t.box.hasClass("n2-slide-state-published")?t.deSelect():t.select()})},this)),t(".n2-bulk-actions a").on("click",t.proxy(function(e){var i=t(e.currentTarget).data("action");i&&(e.preventDefault(),this.bulkAction(i))},this))},i.prototype.addSelection=function(t){0==this.selection.length&&this.enterBulk(),this.selection.push(t)},i.prototype.removeSelection=function(e){this.selection.splice(t.inArray(e,this.selection),1),0==this.selection.length&&this.leaveBulk()},i.prototype.bulkSelect=function(t){for(var e=0;e<this.slides.length;e++)t(this.slides[e])},i.prototype.bulkAction=function(t){var e=[],i=[];this.bulkSelect(function(t){t.selected&&(e.push(t),i.push(t.getId()))}),i.length?this[t](i,e):N2Classes.Notification.notice("Please select one or more slides for the action!")},i.prototype.enterBulk=function(){this.isBulkSelection||(this.isBulkSelection=!0,this.slidesContainer.nUISortable("option","disabled",!0),t("#n2-admin").addClass("n2-ss-has-box-selection"))},i.prototype.leaveBulk=function(){if(this.isBulkSelection){this.slidesContainer.nUISortable("option","disabled",!1),t("#n2-admin").removeClass("n2-ss-has-box-selection");for(var e=0;e<this.slides.length;e++)this.slides[e].deSelect();this.selection=[],this.isBulkSelection=!1}},i.prototype.deleteSlides=function(e,i){this.hideMenu();var s=i[0].box.find(".n2-box-placeholder-title a").text();i.length>1&&(s+=" and "+(i.length-1)+" more"),N2Classes.NextendModal.deleteModal("slide-delete",s,t.proxy(function(){N2Classes.AjaxHelper.ajax({url:N2Classes.AjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"delete"}),type:"POST",data:{slides:e}}).done(t.proxy(function(){for(var t=0;t<i.length;t++)i[t].deleted();this.initSlides(),this.leaveBulk()},this))},this))},i.prototype.duplicateSlides=function(e,i){for(var s=0;s<this.slides.length;s++)this.slides[s].selected&&this.slides[s].duplicate(t.Event("click",{currentTarget:null}))},i.prototype.copySlides=function(e,i){this.showSliderSelector(n2_("Copy slide to ..."),t.proxy(function(t){N2Classes.AjaxHelper.ajax({url:N2Classes.AjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"copySlides",targetSliderID:t.sliderID}),type:"POST",data:{slides:e}})},this))},i.prototype.publishSlides=function(e,i){N2Classes.AjaxHelper.ajax({url:N2Classes.AjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"publish"}),type:"POST",data:{slides:e}}).done(t.proxy(function(){for(var t=0;t<i.length;t++)i[t].published();this.changed()},this))},i.prototype.unPublishSlides=function(e,i){N2Classes.AjaxHelper.ajax({url:N2Classes.AjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"unpublish"}),type:"POST",data:{slides:e}}).done(t.proxy(function(){for(var t=0;t<i.length;t++)i[t].unPublished();this.changed()},this))},i.prototype.initMenu=function(){this.slide=null,this.menu=t("#n2-ss-slide-menu").detach().addClass("n2-inited"),this.menu.find("li").on("click",t.proxy(function(e){e.stopPropagation();var i=t(e.currentTarget).data("action");i&&"function"==typeof this.slide[i]&&this.slide[i](e),this.menu.removeClass("n2-active").off("mouseleave")},this)),this.menu.find(".n2-button").on("click",t.proxy(function(e){e.preventDefault(),e.stopPropagation(),this.menu.hasClass("n2-active")?this.menu.removeClass("n2-active").off("mouseleave"):this.menu.addClass("n2-active").on("mouseleave",function(){t(this).removeClass("n2-active")})},this))},i.prototype.showMenu=function(t){this.slide=t,this.menu.appendTo(t.box)},i.prototype.hideMenu=function(){this.menu.detach()},i.prototype.showSliderSelector=function(e,i){var s=N2Classes.AjaxHelper.makeFallbackUrl(this.ajaxUrl,{nextendcontroller:"sliders",nextendaction:"choose"});this.sliderSelectorModal=new N2Classes.NextendModal({zero:{size:[970,600],title:e,back:!1,close:!0,content:"",fn:{show:function(){var e=t('<iframe src="'+s+'" width="970" height="540" style="margin: 0 -20px 0 -20px;"></iframe>').appendTo(this.content),r=window.addEventListener?"addEventListener":"attachEvent";window[r]("attachEvent"==r?"onmessage":"message",t.proxy(function(t){if(t.source==(e[0].contentWindow||e[0].contentDocument)){var s=t[t.message?"message":"data"];try{s=JSON.parse(s),s.action&&"ss3embed"===s.action&&i(s)}catch(r){}this.hide()}},this),!1)},destroy:function(){this.destroy()}}}},!0)},i}),N2D("SmartSliderSlideBackgroundAdmin",["SmartSliderSlideBackground"],function(t,e){function i(t,e,i){this.types={color:"SmartSliderAdminSlideBackgroundColor",image:"SmartSliderAdminSlideBackgroundImage",video:"SmartSliderAdminSlideBackgroundVideo"},this.allowVisualLoad=!0,this.slider=t.slider,this.editor=nextend.currentEditor,N2Classes.SmartSliderSlideBackground.prototype.constructor.call(this,t,e,i)}return i.prototype=Object.create(N2Classes.SmartSliderSlideBackground.prototype),i.prototype.constructor=i,i.prototype.setVisualLoad=function(t){this.allowVisualLoad=t},i.prototype.setType=function(t){"color"===t?(this.elements.color||this.createColorElement(!0),this.elements.image&&(this.elements.image.kill(),this.elements.image=!1)):"image"===t&&(this.elements.color||this.createColorElement(!0),this.elements.image||this.createImageElement())},i.prototype.setMode=function(t){"default"===t&&(t=this.slider.editor.options.slideBackgroundMode),this.element.attr("data-mode",t),this.elements.image&&this.elements.image.updateMode(t,this.mode),this.mode=t},i.prototype.setFocus=function(t,e){this.elements.image&&this.elements.image.updateFocus(t,e)},i.prototype.setImageOpacity=function(t){this.elements.image&&this.elements.image.updateOpacity(t)},i.prototype.setBlur=function(t){this.elements.image&&this.elements.image.updateBlur(t)},i.prototype.createColorElement=function(e){e=e||!1,this.elements.color=new N2Classes[this.types.color](this,t('<div class="n2-ss-slide-background-color"></div>').appendTo(this.$wrapElement)),e&&this.elements.color.update(this.editor.settings.getBackgroundColor(),this.editor.settings.getBackgroundGradient(),this.editor.settings.getBackgroundColorEnd())},i.prototype.updateColor=function(t,e,i){this.elements.color||this.createColorElement(),this.elements.color.update(t,e,i)},i.prototype.createImageElement=function(){var e=this.editor.settings,i=e.getBackgroundImage();if(""!==i){var s=nextend.imageHelper.fixed(i),r=t('<img src="'+s+'" alt="" />').attr({"data-hash":md5(i),"data-desktop":s,"data-opacity":e.getBackgroundImageOpacity(),"data-blur":e.getBackgroundImageBlur(),"data-x":e.getBackgroundFocusX(),"data-y":e.getBackgroundFocusY()}).appendTo(this.$wrapElement);this.elements.image=new N2Classes[this.types.image](this.slide,this.manager,this,r),this.elements.image.preLoadAdmin(i)}},i.prototype.setImage=function(t){this.elements.image?this.elements.image.setDesktopSrc(t):""!==t&&"image"===this.editor.settings.getType()&&this.createImageElement(t)},i}),N2D("EditorAbstract",function(t,e){function i(e,i,r){s(),this.readyDeferred=t.Deferred(),this.sliderElementID=e,this.slideContentElementID=i,this.readyDeferred.done(t.proxy(function(){N2D("SSEditor",t.proxy(function(){return this},this))},this)),this.options=t.extend({slideAsFile:0,isUploadDisabled:!0,uploadUrl:"",uploadDir:""},r),nextend.currentEditor=this,this.frontend=null,this.generator=null,this.fragmentEditor=null,this.$editedElement=null,this.editedInstance=null,N2R("documentReady",t.proxy(function(t){"undefined"!=typeof nextend.fontsDeferred?nextend.fontsDeferred.done(t.proxy(this.startEditor,this)):this.startEditor()},this))}function s(){var t=r();t&&10>t&&alert(window.ss2lang.The_editor_was_tested_under_Internet_Explorer_10_Firefox_and_Chrome_Please_use_one_of_the_tested_browser)}function r(){var t=navigator.userAgent.toLowerCase();return-1!=t.indexOf("msie")?parseInt(t.split("msie")[1]):!1}return i.prototype.startEditor=function(){},i.prototype.ready=function(t){this.readyDeferred.done(t)},i.prototype.getSelf=function(){return this},i.prototype.getAvailableDeviceModes=function(){return{desktopPortrait:1,desktopLandscape:0,tabletPortrait:1,tabletLandscape:1,mobilePortrait:1,mobileLandscape:1}},i.prototype.getGeneratorVariables=function(){return this.$editedElement.data("variables")},i.prototype.getMainContainerElement=function(){return this.$editedElement.find(".n2-ss-layers-container").addBack().last()},i}),N2D("EditorSlide",["EditorAbstract"],function(t,e){function i(e,i,s){N2Classes.EditorAbstract.prototype.constructor.call(this,e,i,t.extend({isAddSample:!1,sampleSlidesUrl:"",slideBackgroundMode:"fill"},s))}return i.prototype=Object.create(N2Classes.EditorAbstract.prototype),i.prototype.constructor=i,i.prototype.startEditor=function(){this.$slideContentElement=t("#"+this.slideContentElementID),this.slideStartValue=this.$slideContentElement.val(),N2R("#"+this.sliderElementID,t.proxy(function(t,e){this.frontend=e,this.frontend.editor=this,nextend.pre="div#"+this.frontend.elementID+" ",this.frontend.visible(t.proxy(this.sliderStarted,this))},this))},i.prototype.sliderStarted=function(){t("body").addClass("n2-ss-slider-visible");var e=t("#n2-ss-slide-canvas-container"),i=e.tinyscrollbar({axis:"x",wheel:!1,wheelLock:!1}).data("plugin_tinyscrollbar");"function"==typeof e.get(0).move&&(e.get(0).move=null),this.frontend.sliderElement.on("SliderResize",function(){i.update("relative")}),this.$editedElement=this.frontend.sliderElement.find(".n2-ss-currently-edited-slide"),this.editedInstance=this.$editedElement.data("slide");var s=this.$editedElement.hasClass("n2-ss-static-slide");this.generator=new N2Classes.Generator(this),this.generator.registerFields(["#slidetitle","#sldedescription","#slidethumbnail","#slidebackgroundImage","#slidebackgroundAlt","#slidebackgroundTitle","#slidebackgroundVideoMp4","#slidebackgroundColor","#slidebackgroundColorEnd","#linkslidelink-1","#layergenerator-visible","#layergroup-generator-visible"]),this.generator.registerGlobalField("slide","name","#slidetitle"),this.generator.registerGlobalField("slide","description","#slidedescription"),this.getMainContainerElement().on("updateSize",t.proxy(this.updateSize,this)),this.settings=new N2Classes.SlideSettings(this,s);var r={};s?r.snapSelector=".n2-ss-static-slide .n2-ss-layer.nui-resizable:not(.n2-ss-layer-locked):not(.n2-ss-layer-parent):not(.n2-ss-layer-selected):visible, .n2-ruler-user-guide":r.snapSelector=".n2-ss-slide.n2-ss-slide-active .n2-ss-layer.nui-resizable:not(.n2-ss-layer-locked):not(.n2-ss-layer-parent):not(.n2-ss-layer-selected):visible, .n2-ruler-user-guide",this.fragmentEditor=new N2Classes.FragmentEditor(this,this.getFrontendSlide().$element,r,this.options),this.getFrontendElement().on({SliderResize:t.proxy(this.fragmentEditor.onResize,this.fragmentEditor),SliderDeviceOrientation:t.proxy(this.fragmentEditor.onChangeDeviceOrientation,this.fragmentEditor)}),this.readyDeferred.resolve(),t("#smartslider-form").on({checkChanged:t.proxy(this.prepareFormForCheck,this),submit:t.proxy(this.onSlideSubmit,this)}),this.options.isAddSample&&this.startSampleSlides()},i.prototype.prepareFormForCheck=function(){var t=JSON.stringify(this.fragmentEditor.getData()),e=JSON.stringify(JSON.parse(N2Classes.Base64.decode(this.slideStartValue)));this.$slideContentElement.val(e==t?this.slideStartValue:N2Classes.Base64.encode(t))},i.prototype.onSlideSubmit=function(i){if(!nextend.isPreview)if(this.prepareForm(),i.preventDefault(),nextend.askToSave=!1,this.options.slideAsFile&&typeof window.FormData!==e&&"undefined"!=typeof window.File){var s=new FormData,r=t("#smartslider-form").serializeArray();t.each(r,function(t,e){if("slide[slide]"==e.name)try{s.append("slide",new Blob([e.value]),"slide.txt")}catch(i){try{s.append("slide",new Blob([e.value]))}catch(i){try{s.append("slide",new File([e.value],"slide.txt"))}catch(i){N2Classes.Notification.notice('Your browser does not support File api, please disable "Send slide as file" option in the global settings.')}}}else s.append(e.name,e.value)}),N2Classes.AjaxHelper.ajax({url:N2Classes.AjaxHelper.makeAjaxUrl(window.location.href),type:"POST",data:s,contentType:!1,processData:!1}).done(t.proxy(this.afterSave,this))}else N2Classes.AjaxHelper.ajax({type:"POST",url:N2Classes.AjaxHelper.makeAjaxUrl(window.location.href),data:t("#smartslider-form").serialize(),dataType:"json"}).done(t.proxy(this.afterSave,this))},i.prototype.afterSave=function(){nextend.askToSave=!0,t("#smartslider-form").trigger("saved"),t(".n2-ss-edit-slide-top-details .n2-h1").html(t("#slidetitle").val())},i.prototype.prepareForm=function(){this.fragmentEditor.canvasSettings.ruler&&t("#slideguides").val(N2Classes.Base64.encode(JSON.stringify(this.fragmentEditor.canvasSettings.ruler.toArray()))),this.$slideContentElement.val(N2Classes.Base64.encode(nextend.UnicodeToHTMLEntity(JSON.stringify(this.fragmentEditor.getData()))))},i.prototype.getLayout=function(){for(var e=t("#smartslider-form").serializeArray(),i={},s=0;s<e.length;s++){var r=e[s].name.match(/slide\[(.*?)\]/);r&&(i[r[1]]=e[s].value)}return delete i.generator,delete i.published,delete i.publishdates,delete i["record-start"],delete i["record-slides"],delete i.slide,i.slide=this.fragmentEditor.getData(),i},i.prototype.loadLayout=function(e,i,s){var r=e.slide;if(delete e.slide,s?this.fragmentEditor.importLayers(r,!0):this.fragmentEditor.importLayers(r,!1),i)for(var n in e)t("#slide"+n).val(e[n]).trigger("change");e.slide=r},i.prototype.copy=function(){var e={data:this.settings.getBackgroundData(),layers:this.fragmentEditor.getData()};t.jStorage.set("copiedSlide",JSON.stringify(e))},i.prototype.paste=function(){var e=t.jStorage.get("copiedSlide");e&&(e=JSON.parse(e),this.settings.setData(e.data),this.fragmentEditor.mainContainer.replaceLayers(e.layers))},i.prototype.hasClipboard=function(){var e=t.jStorage.get("copiedSlide");return!!e},i.prototype.startSampleSlides=function(){var i=this,s=window.addEventListener?"addEventListener":"attachEvent",r=t('<iframe src="'+this.options.sampleSlidesUrl+'"></iframe>').prependTo(".n2-ss-sample-slides-container"),n=r[0];t("html, body").scrollTop(r.offset().top-t("#wpadminbar").height());var o=t(".n2-ss-sample-slide-settings"),a=t("#slidebackground-type"),l=t("#slidebackgroundImage"),h=t("#n2-ss-sample-slide-setting-background-image").on("click",function(){l.parent().find(".n2-form-element-button").trigger("click")}),d=function(){var t=l.val();""===t?(o.removeClass("n2-ss-has-image"),h.css("background-image","url("+nextend.imageHelper.fixed("$system$/images/placeholder/image.png")+")"),"color"!==a.val()&&a.val("color").trigger("change")):(o.addClass("n2-ss-has-image"),"image"!==a.val()&&a.val("image").trigger("change"),h.css("background-image","url("+nextend.imageHelper.fixed(t)+")"))};h.find(".n2-i-close").on("click",function(t){t.stopPropagation(),l.parent().find(".n2-form-element-clear").trigger("click")}),l.on("nextendChange",d),d();var p=t("#slidebackgroundImageOpacity"),c=t("#n2-ss-sample-slide-setting-opacity-slider").removeAttr("slide").prop("slide",!1).nUISlider({min:0,max:100,step:1,slide:function(t,e){p.data("field").insideChange(e.value)}}),u=function(t){c.nUISlider("option","value",p.val())};p.on("nextendChange",u),u();var y=t("#slidebackgroundImageBlur"),g=t("#n2-ss-sample-slide-setting-blur-slider").removeAttr("slide").prop("slide",!1).nUISlider({
|
3 |
min:0,max:40,step:1,slide:function(t,e){y.data("field").insideChange(e.value)}}),f=function(t){g.nUISlider("option","value",y.val())};y.on("nextendChange",f),f();var m=t("#slidebackgroundColor"),v=t("#n2-ss-sample-slide-setting-color").n2spectrum({showAlpha:1,preferredFormat:"hex8",showInput:!1,showButtons:!1,move:function(){var t=v.n2spectrum("get").toHexString8();v.val(t),m.data("field").insideChange(t)},showSelectionPalette:!0,showPalette:!0,maxSelectionSize:6,localStorageKey:"color",palette:[["000000","55aa39","357cbd","bb4a28","8757b2","000000CC"],["81898d","5cba3c","4594e1","d85935","9e74c2","00000080"],["ced3d5","27ae60","01add3","e79d19","e264af","FFFFFFCC"],["ffffff","2ecc71","00c1c4","ecc31f","ec87c0","FFFFFF80"]]}),b=function(t){var e=m.val();e!=v.val()&&v.n2spectrum("set",e)};m.on("nextendChange",b),b();var C=t("#slidebackgroundGradient"),x=function(){"off"==C.val()?o.removeClass("n2-ss-has-gradient"):o.addClass("n2-ss-has-gradient")};C.on("nextendChange",x),x();var w=t("#slidebackgroundColorEnd"),S=t("#n2-ss-sample-slide-setting-gradient").n2spectrum({showAlpha:1,preferredFormat:"hex8",showInput:!1,showButtons:!1,move:function(){var t=S.n2spectrum("get").toHexString8();w.data("field").insideChange(t)},showSelectionPalette:!0,showPalette:!0,maxSelectionSize:6,localStorageKey:"color",palette:[["000000","55aa39","357cbd","bb4a28","8757b2","000000CC"],["81898d","5cba3c","4594e1","d85935","9e74c2","00000080"],["ced3d5","27ae60","01add3","e79d19","e264af","FFFFFFCC"],["ffffff","2ecc71","00c1c4","ecc31f","ec87c0","FFFFFF80"]]}),k=function(t){S.n2spectrum("set",w.val())};w.on("outsideChange",k),k(),window[s]("attachEvent"==s?"onmessage":"message",function(t){if(t.source==(n.contentWindow||n.contentDocument)){var s=t[t.message?"message":"data"];if(s.key)switch(s.key){case"sampleSlide":var r=JSON.parse(s.data);i.settings.setData(r.data,!0),i.fragmentEditor.mainContainer.replaceLayers(r.layers),"content"!=i.fragmentEditor.currentEditorMode&&i.fragmentEditor.mainContent!=e&&i.fragmentEditor.updateEditorMode("content");break;case"ready":(n.contentWindow||n.contentDocument).postMessage({key:"ackReady"},"*"),i.options.isAddSample&&((n.contentWindow||n.contentDocument).postMessage({key:"create"},"*"),i.options.isAddSample=!1)}}},!1)},i.prototype.getAvailableDeviceModes=function(){return this.frontend.responsive.parameters.deviceModes},i.prototype.getSlideBackground=function(){return this.$editedElement.data("slideBackground")},i.prototype.getFrontendElement=function(){return this.frontend.sliderElement},i.prototype.getFrontendSlide=function(){return this.editedInstance},i.prototype.getHorizontalRatio=function(){return this.frontend.responsive.lastRatios.slideW},i.prototype.getVerticalRatio=function(){return this.frontend.responsive.lastRatios.slideH},i.prototype.updateSize=function(){return this.frontend.responsive.doVerticalResize()},i.prototype.getDeviceMode=function(){return this.frontend.responsive.getNormalizedModeString()},i}),N2D("Generator",["EditorAbstract"],function(t,e){"use strict";function i(e){this.editor=e,this._refreshTimeout=null,this.modal=!1,this.group=0,this.editor.generator=this;var i=this.editor.getGeneratorVariables();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(t){t.preventDefault(),this.showModal()},this)),t("body").addClass("n2-ss-dynamic-slide"))}else this.variables=null}return i.prototype.isDynamicSlide=function(){return this.group>0},i.prototype.splitTokens=function(t){for(var e=[],i="",s=0,r=0;r<t.length;r++){var n=t[r];","===n&&0===s?(e.push(i),i=""):(i+=n,"("===n?s++:")"===n&&s--)}return i.length&&e.push(i),e},i.prototype.fill=function(t){return t},i.prototype.generatorFill=function(e){return e.replace(/{((([a-z]+)\(([^}]+)\))|([a-zA-Z0-9][a-zA-Z0-9_\/]*))}/g,t.proxy(this.parseFunction,this))},i.prototype.parseFunction=function(t,e,i,s,r,n){if("undefined"==typeof n){for(var o=this.splitTokens(r),a=0;a<o.length;a++)o[a]=this.parseVariable(o[a]);return"function"==typeof this[s]?this[s].apply(this,o):t}return this.parseVariable(n)},i.prototype.parseVariable=function(t){var e=t.match(/^("|')(.*)("|')$/);if(e)return e[2];var i=t.match(/((([a-z]+)\(([^}]+)\)))/);if(i)return this.parseFunction.apply(this,i);var s=t.match(/([a-zA-Z][0-9a-zA-Z_]*)(\/([0-9a-z]+))?/);if(s){var r=s[3];if("undefined"==typeof r)r=0;else{var n=parseInt(r);isNaN(n)||(r=Math.max(r,1)-1)}return"undefined"!=typeof this.variables[r]&&"undefined"!=typeof this.variables[r][s[1]]?this.variables[r][s[1]]:""}return t},i.prototype.fallback=function(t,e){return""==t?e:t},i.prototype.cleanhtml=function(t){return this.stripTags(t,"<p><a><b><br /><br/><i>")},i.prototype.stripTags=function(t,e){e=(((e||"")+"").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 t.replace(s,"").replace(i,function(t,i){return e.indexOf("<"+i.toLowerCase()+">")>-1?t:""})},i.prototype.removehtml=function(e){return t("<div>"+e+"</div>").text()},i.prototype.splitbychars=function(t,e,i){return t.substr(e,i)},i.prototype.splitbywords=function(t,e,i){var s=t,r=s.length,n=Math.max(0,0==e?0:s.indexOf(" ",e)),o=Math.max(0,i>r?r:s.indexOf(" ",i));return 0==o&&r>=i&&(o=r),s.substr(n,o)},i.prototype.findimage=function(t,e){var i=t,s=/(<img.*?src=[\'"](.*?)[\'"][^>]*>)|(background(-image)??\s*?:.*?url\((["|\']?)?(.+?)(["|\']?)?\))/gi,r=[],n=null;for(e="undefined"!=typeof e?parseInt(e)-1:0;n=s.exec(i);)"undefined"!=typeof n[2]?r.push(n[2]):"undefined"!=typeof n[6]&&r.push(n[6]);return r.length?r.length>e?r[e]:r[r.length-1]:""},i.prototype.findlink=function(t,e){var i=t,s=/href=["\']?([^"\'>]+)["\']?/gi,r=[],n=null;for(e="undefined"!=typeof e?parseInt(e)-1:0;n=s.exec(i);)"undefined"!=typeof n[1]&&r.push(n[1]);return r.length?r.length>e?r[e]:r[r.length-1]:""},i.prototype.removevarlink=function(t){var e=String(t),i=/<a href=\"(.*?)\">(.*?)<\/a>/g;return e.replace(i,"")},i.prototype.removelinebreaks=function(t){var e=String(t),i=/\r?\n|\r/g;return e.replace(i,"")},i.prototype.registerFields=function(t){for(var e=0;e<t.length;e++)this.registerField(t[e])},i.prototype.registerGlobalField=function(e,i,s){null!==this.variables&&(s=t(s).on("nextendChange",t.proxy(function(){this.variables[e][i]=s.val(),this.refresh()},this)))},i.prototype.registerField=function(t){},i.prototype.generatorRegisterField=function(e){e=t(e);var i=e.parent();i.on({mouseenter:t.proxy(function(){this.activeField=e,this.button.prependTo(i)},this)})},i.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,removelinebreaks:0},s=function(){var t=i.key+"/"+i.group;return i.findImage&&(t="findimage("+t+","+Math.max(1,i.findImageIndex)+")"),i.findLink&&(t="findlink("+t+","+Math.max(1,i.findLinkIndex)+")"),i.removeVarLink&&(t="removevarlink("+t+")"),i.removelinebreaks&&(t="removelinebreaks("+t+")"),"no"!=i.filter&&(t=i.filter+"("+t+")"),"no"!=i.split&&i.splitStart>=0&&i.splitLength>0&&(t=i.split+"("+t+","+i.splitStart+","+i.splitLength+")"),"{"+t+"}"},r=t('<div class="n2-generator-result-container" />'),n=function(){r.html(t("<div/>").text(e.fill(s())).html())},o=e.group,a=null,l=null,h=t('<div class="n2-generator-insert-variable"/>'),d=N2Classes.NextendModal.prototype.createHeading(n2_("Choose the group")).appendTo(h),p=t('<div class="n2-group-container" />').appendTo(h);h.append(N2Classes.NextendModal.prototype.createHeading(n2_("Choose the variable")));var c=t('<div class="n2-variable-container webkit-scroll-fix" />').appendTo(h),u=t('<div class="n2-generator-functions-container n2-form-element-mixed" />').appendTo(t('<div class="n2-form" />').appendTo(h));h.append(N2Classes.NextendModal.prototype.createHeading(n2_("Result"))),r.appendTo(h),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(),n()},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 g=u.find("#n2-generator-function-split");g.on("change",t.proxy(function(){i.split=g.val(),n()},this));var f=u.find("#n2-generator-function-split-start");f.on("change",t.proxy(function(){i.splitStart=parseInt(f.val()),n()},this));var m=u.find("#n2-generator-function-split-length");m.on("change",t.proxy(function(){i.splitLength=parseInt(m.val()),n()},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-yes"><i class="n2-i n2-i-tick"></i></div><div class="n2-onoff-round"></div><div class="n2-onoff-no"><i class="n2-i n2-i-close"></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()),n()},this));var b=u.find("#n2-generator-function-findimage-index");b.on("change",t.proxy(function(){i.findImageIndex=parseInt(b.val()),n()},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-yes"><i class="n2-i n2-i-tick"></i></div><div class="n2-onoff-round"></div><div class="n2-onoff-no"><i class="n2-i n2-i-close"></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 C=u.find("#n2-generator-function-findlink");C.on("nextendChange",t.proxy(function(){i.findLink=parseInt(C.val()),n()},this));var x=u.find("#n2-generator-function-findlink-index");x.on("change",t.proxy(function(){i.findLinkIndex=parseInt(x.val()),n()},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-yes"><i class="n2-i n2-i-tick"></i></div><div class="n2-onoff-round"></div><div class="n2-onoff-no"><i class="n2-i n2-i-close"></i></div></div><input type="hidden" autocomplete="off" value="0" id="n2-generator-function-removevarlink"></div></div></div>').appendTo(u);var w=u.find("#n2-generator-function-removevarlink");w.on("nextendChange",t.proxy(function(){i.removeVarLink=parseInt(w.val()),n()},this));var S=u.find("#n2-generator-function-removevarlink-index");S.on("change",t.proxy(function(){i.removeVarLinkIndex=parseInt(S.val()),n()},this)),t('<div class="n2-mixed-group"><div class="n2-mixed-label"><label>'+n2_("Remove line breaks")+'</label></div><div class="n2-mixed-element"><div class="n2-form-element-onoff"><div class="n2-onoff-slider"><div class="n2-onoff-yes"><i class="n2-i n2-i-tick"></i></div><div class="n2-onoff-round"></div><div class="n2-onoff-no"><i class="n2-i n2-i-close"></i></div></div><input type="hidden" autocomplete="off" value="0" id="n2-generator-function-removelinebreaks"></div></div></div>').appendTo(u);var k=u.find("#n2-generator-function-removelinebreaks");k.on("nextendChange",t.proxy(function(){i.removelinebreaks=parseInt(k.val()),n()},this));var P=u.find("#n2-generator-function-removelinebreaks-index");P.on("change",t.proxy(function(){i.removelinebreaksIndex=parseInt(P.val()),n()},this));for(var N in this.variables[0])t('<a href="#" class="n2-button n2-button-normal n2-button-s n2-button-grey n2-radius-s">'+N+"</a>").on("click",t.proxy(function(e,s){s.preventDefault(),a.removeClass("n2-active"),t(s.currentTarget).addClass("n2-active"),i.key=e,n()},this,N)).appendTo(c);a=c.find("a"),a.eq(0).trigger("click"),1==o&&(d.css("display","none"),p.css("display","none"));for(var L=0;o>L;L++)t('<a href="#" class="n2-button n2-button-normal n2-button-s n2-button-grey n2-radius-s">'+(L+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,n()},this,L)).appendTo(p);l=p.find("a"),l.eq(0).trigger("click");var _=!1;this.modal=new N2Classes.NextendModal({zero:{size:[1e3,o>1?670:600],title:n2_("Insert variable"),back:!1,close:!0,content:h,controls:['<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green">'+n2_("Insert")+"</a>"],fn:{show:function(){_||(new N2Classes.FormElementOnoff("n2-generator-function-findimage"),new N2Classes.FormElementOnoff("n2-generator-function-findlink"),new N2Classes.FormElementOnoff("n2-generator-function-removevarlink"),new N2Classes.FormElementOnoff("n2-generator-function-removelinebreaks"),_=!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},i.prototype.showModal=function(){this.getModal().show()},i.prototype.insert=function(t){this.activeField.val(t).trigger("change")},i.prototype.refresh=function(){this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),this._refreshTimeout=setTimeout(t.proxy(this._refresh,this),100)},i.prototype._refresh=function(){for(var t=this.editor.fragmentEditor.mainContainer.container.getAllLayers(),e=0;e<t.length;e++)"layer"==t[e].type&&t[e].item.reRender()},i}),N2D("History",function(t,e){"use strict";function i(){this.historyStates=50,this.enabled=0!=this.historyStates,this.historyAddAllowed=!0,this.isBatched=!1,this.currentBatch=this,this.index=-1,this.stackedOff=[],this.tasks=[],this.preventUndoRedo=!1,this.undoBTN=t("#n2-ss-undo").on({click:t.proxy(this.undo,this),mousedown:function(t){N2Classes.WindowManager.get().setMouseDownArea("undo",t)}}),this.redoBTN=t("#n2-ss-redo").on({click:t.proxy(this.redo,this),mousedown:function(t){N2Classes.WindowManager.get().setMouseDownArea("redo",t)}}),this.updateUI()}function s(t){this.parent=t,this.tasks=[]}function r(t){switch(t){case"skipForwardUndos":this.undo=function(){return!1}}}function n(t,e,i,s){this.that=t,this.undoAction=e,this.redoAction=i,this.context=s||[]}function o(){n.prototype.constructor.apply(this,arguments)}return i.get=function(){var t=new i;return i.get=function(){return t},t},i.prototype.updateUI=function(){0==this.index||0==this.tasks.length?this.undoBTN.removeClass("n2-active"):this.undoBTN.addClass("n2-active"),-1==this.index||this.index>=this.tasks.length?this.redoBTN.removeClass("n2-active"):this.redoBTN.addClass("n2-active")},i.prototype.throttleUndoRedo=function(){return this.preventUndoRedo?!0:(this.preventUndoRedo=!0,setTimeout(t.proxy(function(){this.preventUndoRedo=!1},this),100),!1)},i.prototype.isEnabled=function(){return this.enabled&&this.historyAddAllowed},i.prototype.startBatch=function(){if(this.isEnabled()){var t=new s(this.currentBatch);return this.currentBatch._add(t),this.currentBatch=t,t}return!1},i.prototype.endBatch=function(){this.isEnabled()&&(this.currentBatch.parent==e,this.currentBatch=this.currentBatch.parent)},i.prototype.addControl=function(t){return this.currentBatch._add(new r(t))},i.prototype.addSimple=function(t,e,i,s){return this.isEnabled()?this.currentBatch._add(new n(t,e,i,s)):!1},i.prototype.addValue=function(t,e,i){if(this.isEnabled()){if(this.isBatched||this.currentBatch!=this)for(var s=this.getCurrentBatchStack(),r=0;r<s.length;r++)if(s[r].isEqual(t,e,i))return s.push(s.splice(r,1)[0]),s[s.length-1];return this.currentBatch._add(new o(t,e,e,i))}return!1},i.prototype.getCurrentBatchStack=function(){return this.currentBatch!=this?this.currentBatch.tasks:this.tasks[this.tasks.length-1]},i.prototype._add=function(e){return-1!=this.index&&this.tasks.splice(this.index,this.tasks.length),this.index=-1,this.isBatched?this.tasks[this.tasks.length-1].push(e):(this.tasks.push([e]),this.isBatched=!0,setTimeout(t.proxy(function(){this.isBatched=!1},this),100)),this.tasks.length>this.historyStates&&this.tasks.unshift(),this.updateUI(),e},i.prototype.off=function(){this.historyAddAllowed=!1,this.stackedOff.push(1)},i.prototype.on=function(){this.stackedOff.pop(),0==this.stackedOff.length&&(this.historyAddAllowed=!0)},i.prototype.undo=function(t){if(t&&t.preventDefault(),this.throttleUndoRedo())return!1;if(this.off(),-1==this.index?this.index=this.tasks.length-1:this.index--,this.index>=0)for(var e=this.tasks[this.index],i=e.length-1;i>=0&&e[i].undo();i--);else this.index=0;return this.on(),this.updateUI(),!0},i.prototype.redo=function(t){if(t&&t.preventDefault(),this.throttleUndoRedo())return!1;if(this.off(),-1!=this.index&&this.index<this.tasks.length){var e=this.tasks[this.index];this.index++;for(var i=0;i<e.length&&e[i].redo();i++);}return this.on(),this.updateUI(),!0},s.prototype._add=function(t){return this.tasks.push(t),t},s.prototype.invertUndo=function(){return this.undo=function(){for(var t=this.tasks.length-1;t>=0&&this.tasks[t].undo();t--);return!0},this},s.prototype.undo=function(){for(var t=0;t<this.tasks.length&&this.tasks[t].undo();t++);return!0},s.prototype.redo=function(){for(var t=0;t<this.tasks.length&&this.tasks[t].redo();t++);return!0},s.prototype.isEqual=function(){return!1},r.prototype.undo=function(){return!0},r.prototype.redo=function(){return!0},r.prototype.isEqual=function(){return!1},n.prototype.undo=function(){return this.undoAction.apply(this.that.getSelf(),this.context),!0},n.prototype.redo=function(){return this.redoAction.apply(this.that.getSelf(),this.context),!0},n.prototype.isEqual=function(){return!1},o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.prototype.setValues=function(t,e){this.undoValue=t,this.redoValue=e},o.prototype.undo=function(){return this.context.unshift(this.undoValue),this.undoAction.apply(this.that.getSelf(),this.context),this.context.shift(),!0},o.prototype.redo=function(){return this.context.unshift(this.redoValue),this.redoAction.apply(this.that.getSelf(),this.context),this.context.shift(),!0},o.prototype.isEqual=function(t,e,i){if(t==this.that&&e==this.undoAction){for(var s=0;s<i.length;s++)if(i[s]!=this.context[s])return!1;return this.setValues=function(t,e){this.redoValue=e},!0}return!1},i}),N2D("InlineField",function(t,e){function i(){this.$input=t('<input type="text" name="name" />').on({mouseup:function(t){t.stopPropagation()},keyup:t.proxy(function(t){27==t.keyCode&&this.cancel()},this),blur:t.proxy(this.save,this)}),this.$form=t('<form class="n2-inline-form"></form>').append(this.$input).on("submit",t.proxy(this.save,this))}return i.prototype.injectNode=function(t,e){this.$input.val(e),t.append(this.$form),this.$input.focus()},i.prototype.save=function(t){t.preventDefault(),this.$input.trigger("valueChanged",[this.$input.val()]),this.$input.off("blur"),this.destroy()},i.prototype.cancel=function(){this.$input.trigger("cancel"),this.destroy()},i.prototype.destroy=function(){this.$input.off("blur"),this.$form.remove()},i}),N2D("SlideSettings",function(t,e){"use strict";function i(e,i){this.editor=e,this.isStatic=i;var s=t("#smartslider-form").find('input[id][name^="slide"], textarea[id][name^="slide"]'),r={};if(s.each(t.proxy(function(e,i){var s=t(i),n=s.attr("name").match(/slide\[(.*)\]/)[1];r[n]=s.on("nextendChange",t.proxy(this.onChange,this,n))},this)),this.fields=r,this.slideBackground=this.editor.getSlideBackground(),!i){var n=t("#slidethumbnail").on("change, nextendChange",function(){var e=n.val();""===e&&(e="$system$/images/placeholder/image.png"),t(".n2-ss-edit-slide-top-thumbnail img").attr("src",nextend.imageHelper.fixed(e))}),o=null,a=this.fields.backgroundImage.val(),l=t.proxy(function(t){""===t||"$system$/images/placeholder/image.png"===t||""!==n.val()&&n.val()!==a||(n.val(t).trigger("change"),o&&(o.off(".slidethumbnail"),o=null))},this);this.fields.backgroundImage.on("nextendChange.slidethumbnail",t.proxy(function(){var t=this.fields.backgroundImage.val();l(t),a=t},this)),""===n.val()&&(o=t("#item_imageimage").on("nextendChange.slidethumbnail",t.proxy(function(){l(o.val())},this)))}this.createHistory()}i.prototype.createHistory=function(){this.values={},t("#smartslider-form").find('input[id][name^="slide"], textarea[id][name^="slide"]').not("#slideslide").each(t.proxy(function(e,i){var s=t(i),r=s.data("field"),n=s.attr("id");this.values[n]=s.val(),s.on("nextendChange",t.proxy(function(){var t=s.val(),e=N2Classes.History.get().addValue(this,this.historyUpdateSlideValue,[r]);e&&e.setValues(this.values[n],t),this.values[n]=t},this))},this))},i.prototype.getSelf=function(){return this},i.prototype.historyUpdateSlideValue=function(t,e){e.insideChange(t)},i.prototype.getAllData=function(){var t={};for(var e in this.fields)t[e]=this.fields[e].val();return t};var s=["thumbnail","background-type","backgroundColor","backgroundGradient","backgroundColorEnd","backgroundImage","backgroundImageOpacity","backgroundImageBlur","backgroundFocusX","backgroundFocusY","backgroundMode"];return i.prototype.getBackgroundData=function(){for(var t={},e=0;e<s.length;e++)t[s[e]]=this.fields[s[e]].val();return t},i.prototype.setData=function(t,e){e&&this.slideBackground.setVisualLoad(!1);for(var i in t)this.fields[i].val(t[i]).trigger("change");e&&this.slideBackground.setVisualLoad(!1)},i.prototype.onChange=function(t,e){t=t.replace(/-/g,"_"),"function"==typeof this["sync_"+t]&&this["sync_"+t].call(this)},i.prototype.sync_backgroundColor=i.prototype.sync_backgroundGradient=i.prototype.sync_backgroundColorEnd=function(){this.updateBackgroundColor()},i.prototype.updateBackgroundColor=function(){var t,e=this.getBackgroundColor(),i=this.getBackgroundGradient();"off"!==i&&(t=this.getBackgroundColorEnd()),this.slideBackground.updateColor(e,i,t)},i.prototype.sync_backgroundImage=function(){this.slideBackground.setImage(this.getBackgroundImage())},i.prototype.sync_background_type=function(){this.slideBackground.setType(this.fields["background-type"].val())},i.prototype.getType=function(){return this.fields["background-type"].val()},i.prototype.sync_backgroundMode=function(){this.slideBackground.setMode(this.fields.backgroundMode.val())},i.prototype.sync_backgroundFocusY=i.prototype.sync_backgroundFocusX=function(){this.slideBackground.setFocus(this.getBackgroundFocusX(),this.getBackgroundFocusY())},i.prototype.sync_backgroundImageOpacity=function(){this.slideBackground.setImageOpacity(this.getBackgroundImageOpacity())},i.prototype.getBackgroundImageOpacity=function(){return this.fields.backgroundImageOpacity.val()},i.prototype.sync_backgroundImageBlur=function(){this.slideBackground.setBlur(this.getBackgroundImageBlur())},i.prototype.getBackgroundColor=function(){return this.editor.generator.fill(this.fields.backgroundColor.val())},i.prototype.getBackgroundGradient=function(){return this.fields.backgroundGradient.val()},i.prototype.getBackgroundColorEnd=function(){return this.editor.generator.fill(this.fields.backgroundColorEnd.val())},i.prototype.getBackgroundImage=function(){return this.editor.generator.fill(this.fields.backgroundImage.val())},i.prototype.getBackgroundImageBlur=function(){return this.fields.backgroundImageBlur.val()},i.prototype.getBackgroundFocusX=function(){return this.fields.backgroundFocusX.val()},i.prototype.getBackgroundFocusY=function(){return this.fields.backgroundFocusY.val()},i}),N2D("FormElementStyleMode",function(t,e){function i(e){this.$element=t("#"+e).on("nextendChange",t.proxy(function(){""==this.$element.val()?this.$reset.css("visibility","hidden"):this.$reset.css("visibility","")},this)),this.$container=this.$element.parent(),this.$reset=this.$container.find(".n2-form-element-style-mode-reset").on("click",t.proxy(function(){this.$element.triggerHandler("n2resetmode")},this))}return i}),N2D("SmartSliderAdminSlideBackgroundColor",["SmartSliderSlideBackgroundColor"],function(t,e){function i(t,e){N2Classes.SmartSliderSlideBackgroundColor.prototype.constructor.apply(this,arguments)}return i.prototype=Object.create(N2Classes.SmartSliderSlideBackgroundColor.prototype),i.prototype.constructor=i,i.prototype.update=function(t,e,i){t=this.fixColor(t),this.$el.css({background:"",filter:""}),"off"!==e?this.updateGradient(t,e,i):this.updateColor(t)},i.prototype.updateColor=function(t){"00"!==t.substr(6,8)&&this.$el.css("background","#"+t.substr(0,6)).css("background",N2Color.hex2rgbaCSS(t))},i.prototype.updateGradient=function(t,e,i){switch(this.$el.css({background:"",filter:""}),i=this.fixColor(i),e){case"horizontal":this.$el.css("background","#"+t.substr(0,6)).css("background","-moz-linear-gradient(left, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background"," -webkit-linear-gradient(left, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","linear-gradient(to right, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#"+t.substr(0,6)+"', endColorstr='#"+i.substr(0,6)+"',GradientType=1)");break;case"vertical":this.$el.css("background","#"+t.substr(0,6)).css("background","-moz-linear-gradient(top, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background"," -webkit-linear-gradient(top, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","linear-gradient(to bottom, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#"+t.substr(0,6)+"', endColorstr='#"+i.substr(0,6)+"',GradientType=0)");break;case"diagonal1":this.$el.css("background","#"+t.substr(0,6)).css("background","-moz-linear-gradient(45deg, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background"," -webkit-linear-gradient(45deg, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","linear-gradient(45deg, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#"+t.substr(0,6)+"', endColorstr='#"+i.substr(0,6)+"',GradientType=1)");break;case"diagonal2":this.$el.css("background","#"+t.substr(0,6)).css("background","-moz-linear-gradient(-45deg, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background"," -webkit-linear-gradient(-45deg, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","linear-gradient(135deg, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#"+t.substr(0,6)+"', endColorstr='#"+i.substr(0,6)+"',GradientType=1)")}},i.prototype.fixColor=function(t){return t.length&&"#"===t.charAt(0)&&(t=t.substring(1),6===t.length&&(t+="ff")),t},i}),N2D("SmartSliderAdminSlideBackgroundImage",["SmartSliderSlideBackgroundImage"],function(t,e){function i(t,e,i,s){this.hash=s.data("hash"),N2Classes.SmartSliderSlideBackgroundImage.prototype.constructor.apply(this,arguments),this.loadAllowed=!0,this.listenImageManager()}return i.prototype=Object.create(N2Classes.SmartSliderSlideBackgroundImage.prototype),i.prototype.constructor=i,i.prototype.listenImageManager=function(){""!==this.hash&&t(window).on(this.hash,t.proxy(this.onImageManagerChanged,this))},i.prototype.notListenImageManager=function(){""!==this.hash&&t(window).off(this.hash,null,t.proxy(this.onImageManagerChanged,this))},i.prototype.onImageManagerChanged=function(t,e){this.tabletSrc=e.tablet.image,this.mobileSrc=e.mobile.image,this.updateBackgroundToDevice(this.manager.device)},i.prototype.preLoadAdmin=function(e){this.preLoad(),""!==e&&this.background.allowVisualLoad&&(this.notListenImageManager(),this.deferred.done(t.proxy(function(){t.when(nextend.imageManager.getVisual(e)).done(t.proxy(function(t){this.onImageManagerChanged(null,t.value),this.listenImageManager()},this))},this)))},i.prototype.setDesktopSrc=function(e){if(this.notListenImageManager(),this.desktopSrc=e,this.hash=md5(e),""!==e&&this.background.allowVisualLoad){var i=new Image;i.addEventListener("load",t.proxy(function(){t.when(nextend.imageManager.getVisual(e)).done(t.proxy(function(t){this.onImageManagerChanged(null,t.value),this.listenImageManager()},this))},this),!1),i.src=nextend.imageHelper.fixed(e)}else this.tabletSrc="",this.mobileSrc="",this.setSrc(nextend.imageHelper.fixed(e))},i.prototype.setSrc=function(t){N2Classes.SmartSliderSlideBackgroundImage.prototype.setSrc.call(this,nextend.imageHelper.fixed(t))},i.prototype.startFixed=function(){},i.prototype.updateMode=function(t,e){if("blurfit"===t&&1===this.$background.length){this.$background=this.$background.add(this.$background.clone().insertAfter(this.$background));var i=7;this.$background.first().css({margin:"-"+2*i+"px",padding:2*i+"px"}).css(window.n2FilterProperty,"blur("+i+"px)")}"blurfit"===e&&"blurfit"!==t&&(this.$background.eq(1).remove(),this.$background=this.$background.eq(0),this.updateBlur(this.blur))},i.prototype.updateFocus=function(t,e){this.$background.css("background-position",t+"% "+e+"%")},i.prototype.updateOpacity=function(t){this.$background.css("opacity",t/100)},i.prototype.updateBlur=function(t){window.n2FilterProperty&&(t>0?this.$background.last().css({margin:"-"+2*t+"px",padding:2*t+"px"}).css(window.n2FilterProperty,"blur("+t+"px)"):this.$background.last().css({margin:"",padding:""}).css(window.n2FilterProperty,"")),this.blur=t},i.prototype.kill=function(){this.notListenImageManager(),this.$el.remove(),this.$background.remove()},i}),N2D("LayerContainer",function(t,e){"use strict";function i(t,e,i,s,r){this.component=t,this.$ul=e.data("container",this),this.allowedPlacementMode=i,this.childrenSelector=s,this.allowedChildren=r,this.layerContainerElement=t.layer;
|
4 |
}return i.prototype.setLayerContainerElement=function(t){this.layerContainerElement=t},i.prototype.startWithExistingNodes=function(t){for(var e=this.layerContainerElement.find(this.childrenSelector),i=0;i<e.length;i++)this._loadNode(e.eq(i),t);this.component.onChildCountChange()},i.prototype.isChildAllowed=function(e){return-1!==t.inArray(e,this.allowedChildren)},i.prototype._loadNode=function(t,i){var s=t.data("sstype");if(this.isChildAllowed(s)){var r=t.data("lastplacement"),n={};if(r!==e&&r!=this.allowedPlacementMode)switch(r){case"absolute":n=N2Classes.PlacementAbsolute.cleanLayer(t);break;case"normal":n=N2Classes.PlacementNormal.cleanLayer(t)}var o;switch(s){case"layer":o=new N2Classes.Layer(this.component.fragmentEditor,this.component);var a=o.itemEditor.getItemClass(t.find(".n2-ss-item").data("item"));a&&N2Classes[a].needSize&&n.desktopportraitheight!==e&&t.data("desktopportraitheight",n.desktopportraitheight);break;case"content":o=new N2Classes.Content(this.component.fragmentEditor,this.component);break;case"row":o=new N2Classes.Row(this.component.fragmentEditor,this.component);break;case"col":o=new N2Classes.Col(this.component.fragmentEditor,this.component);break;case"group":}if(o)return o.load(t,i),i||o.sync(),o}else console.error(s+" is not allowed in "+this.component.label);return!1},i.prototype.getLayerCount=function(){return this.layerContainerElement.find(this.childrenSelector).length},i.prototype.getLayerIndex=function(t){return this.layerContainerElement.find(this.childrenSelector).index(t)},i.prototype.getSortedLayers=function(){var i=[];return this.layerContainerElement.find(this.childrenSelector).each(function(s,r){var n=t(r).data("layerObject");n!==e&&i.push(n)}),i},i.prototype.append=function(t){t.appendTo(this.layerContainerElement);var e=this._loadNode(t,!1);return this.component.onChildCountChange(),e},i.prototype.insertAt=function(t,e){var i=this.getSortedLayers();e>=i.length?t.appendTo(this.layerContainerElement):t.insertBefore(i[e].layer);var s=this._loadNode(t,!1);return this.component.onChildCountChange(),s},i.prototype.insert=function(t){t.getRootElement().appendTo(this.layerContainerElement)},i.prototype.insertLayerAt=function(e,i){var s=this.getSortedLayers(),r=t.inArray(e,s);r>-1&&i>r&&i++,i>=s.length?e.getRootElement().appendTo(this.layerContainerElement):e.getRootElement().insertBefore(s[i].getRootElement()),this.syncLayerRow(e)},i.prototype.syncLayerRow=function(t){var i,s="absolute"===this.allowedPlacementMode;i=s?t.getRootElement().prevAll(".n2-ss-layer, .n2-ss-layer-group").first().data("layerObject"):t.getRootElement().nextAll(".n2-ss-layer, .n2-ss-layer-group").first().data("layerObject"),i!==e?t.layerRow.insertBefore(i.layerRow):this.$ul.append(t.layerRow),t.animations&&t.animations.syncRow(i,s)},i.prototype.getChildLayersRecursive=function(t){for(var e=this.getSortedLayers(),i=[],s=0;s<e.length;s++)t?i.push(e[s].layer[0]):i.push(e[s]),e[s].container&&i.push.apply(i,e[s].container.getChildLayersRecursive(t));return i},i.prototype.moveLayerToGroup=function(t,e){this.moveLayersToGroup([t],[e])},i.prototype.moveLayersToGroup=function(e,i){i=i||[];for(var s=[],r=0;r<e.length;r++){var n=e[r],o=n.group,a=n.getIndex();"undefined"!=typeof i[r]?this.insertLayerAt(n,i[r]):this.insert(n),n.changeGroup(a,this.component),this!=o&&-1==t.inArray(o,s)&&s.push(o)}for(var r=0;r<s.length;r++)s[r].update()},i.prototype.activateFirst=function(){var t=this.getSortedLayers();t.length>0&&t[t.length-1].activate()},i.prototype.resetModes=function(t){for(var i=this.getSortedLayers(),s=0;s<i.length;s++)i[s].resetMode(t),i[s].container!=e&&i[s].container.resetModes(t)},i.prototype.copyModes=function(t,i){for(var s=this.getSortedLayers(),r=0;r<s.length;r++)s[r].copyMode(t,i),s[r].container!=e&&s[r].container.copyModes(t,i)},i.prototype.changeEditorModes=function(t){for(var i=this.getSortedLayers(),s=0;s<i.length;s++)i[s].changeEditorMode(t),i[s].container!=e&&i[s].container.changeEditorModes(t)},i.prototype.renderModeProperties=function(){for(var t=this.getSortedLayers(),i=0;i<t.length;i++)t[i].renderModeProperties(),t[i].container!=e&&t[i].container.renderModeProperties()},i.prototype.getAllLayers=function(t){t=t||[];for(var i=this.getSortedLayers(),s=0;s<i.length;s++)t.push(i[s]),i[s].container!=e&&i[s].container.getAllLayers(t);return t},i.prototype.getData=function(e){e=t.extend({layersIncluded:!0,itemsIncluded:!0},e);var i=[],s=this.getSortedLayers();if("absolute"==this.allowedPlacementMode)for(var r=s.length-1;r>=0;r--)i.push(s[r].getData(e));else for(var r=0;r<s.length;r++)i.push(s[r].getData(e));return i},i.prototype.getHTML=function(t){for(var e=this.getSortedLayers(),i=[],s=0;s<e.length;s++)i.push(e[s].getHTML(t));return i},i.prototype.getDroppables=function(t){for(var e=[],i=this.getSortedLayers(),s=0;s<i.length;s++)if(i[s]!=t){var r=i[s].getDroppable();"object"==typeof r&&e.push(r),"hidden"!=r&&i[s].container&&e.push.apply(e,i[s].container.getDroppables(t))}return e},i.prototype.getLLDroppables=function(t){var e=[],i=this.component.getLLDroppable(t);i&&e.push(i);for(var s=this.getSortedLayers(),r=0;r<s.length;r++)s[r].container&&s[r]!=t&&e.push.apply(e,s[r].container.getLLDroppables(t));return e},i}),N2D("LayerDataStorage",function(t,e){"use strict";function i(){this.isDeviceProp={},this.propertyScope={},this.property={},this.deviceProperty={desktopPortrait:{},desktopLandscape:{},tabletPortrait:{},tabletLandscape:{},mobilePortrait:{},mobileLandscape:{}},this.advancedProperties={}}return i.prototype.getMode=function(){return this.fragmentEditor.getMode()},i.prototype.getProperties=function(){var t={};for(var i in this.property)if(this.advancedProperties[i]!==e){if(i==this.advancedProperties[i].getName()){var s=this.property[i],r=this.advancedProperties[i].getBaseName();this.property[i]===e&&(s=this.property[r]),t[r]=s}}else t[i]=this.property[i];return t},i.prototype.getRawProperty=function(t){if(this.isDeviceProp[t]){var i=this.getMode(),s=this.deviceProperty[i];return s[t]!==e?s[t]:e}return this.property[t]},i.prototype.getProperty=function(t){if(this.isDeviceProp[t]){var e=this.getMode(),i=this.deviceProperty[e],s=this.deviceProperty.desktopPortrait;if("undefined"!=typeof i[t])return i[t];if("undefined"!=typeof s[t])return s[t]}return this.property[t]},i.prototype.historyStore=function(t,e,i){if(!this.isDeleteStarted){var s=this.getMode();this.isDeviceProp[e]&&i!=s?(this.deviceProperty[i][e]=t,this.render(e)):(this.store(e,t,!0,"history"),this.$.trigger("propertyChanged",[e,this.getProperty(e)]))}},i.prototype.store=function(t,e,i,s){var r,n,o=this.getMode();this.isDeviceProp[t]?(r=this.deviceProperty[o][t],n=this.getProperty(t)):n=r=this.property[t];var a=N2Classes.History.get().addValue(this,this.historyStore,[t,o]);a&&a.setValues(r,e),this.property[t]=e,this.isDeviceProp[t]&&(this.deviceProperty[o][t]=e),i&&this.render(t,n,s)},i.prototype.render=function(t,e,i){this.propertyScope[t]["_sync"+t](e,i)},i.prototype.isDimensionPropertyAccepted=function(t){return(t+"").match(/[0-9]+%/)||"auto"==t},i.prototype.changeEditorMode=function(t){var e=parseInt(this.property[t]);e?this._show():this._hide(),this.layer.triggerHandler("LayerShowChange",[t,e]),this.renderModeProperties(!1)},i.prototype.renderModeProperties=function(t){for(var e in this.isDeviceProp)this.isDeviceProp[e]&&(this.property[e]=this.getProperty(e),this.$.trigger("propertyChanged",[e,this.property[e]]))},i.prototype.historyResetMode=function(e,i){this.deviceProperty[i]=t.extend({},e),i==this.fragmentEditor.getMode()&&this.renderModeProperties(!0)},i.prototype.resetMode=function(e){if("desktopPortrait"!=e){var i,s=N2Classes.History.get().addValue(this,this.historyResetMode,[e]);s&&s.setValues(t.extend({},this.deviceProperty[e]),{});for(var r in this.deviceProperty[e])this.deviceProperty[e][r]=i;e==this.fragmentEditor.getMode()&&this.renderModeProperties(!0)}},i.prototype.copyMode=function(e,i){if(e!=i){var s=this.deviceProperty[i];this.deviceProperty[i]=t.extend({},this.deviceProperty[i],this.deviceProperty[e]);var r=N2Classes.History.get().addValue(this,this.historyResetMode,[i]);r&&r.setValues(s,this.deviceProperty[i])}},i.prototype._getDefault=function(t,i){return this.originalProperties[t]!==e?this.originalProperties[t]:i},i.prototype.createProperty=function(t,i,s,r){this.isDeviceProp[t]=!1,this.propertyScope[t]=r||this,s?(this.property[t]=s.data(t.toLowerCase()),this.property[t]===e&&(this.property[t]=this._getDefault(t,i))):this.property[t]=this._getDefault(t,i)},i.prototype.createAdvancedProperty=function(t,e,i){var s=t.getNames();for(var r in s)this.advancedProperties[r]=t,this.createProperty(r,s[r],e,i)},i.prototype.syncAdvancedField=function(t){var i=this.advancedProperties[t].getName(),s=this.property[i];this.property[i]===e&&(s=this.property[t]),this.fragmentEditor.layerOptions.updateField(t,s)},i.prototype.createDeviceProperty=function(t,i,s,r){var n,o;if(this.isDeviceProp[t]=!0,this.propertyScope[t]=r||this,s){for(n in this.deviceProperty)this.deviceProperty[n][t]=s.data(n.toLowerCase()+t.toLowerCase()),""===this.deviceProperty[n][t]&&(this.deviceProperty[n][t]=e);for(n in this.deviceProperty)this.deviceProperty[n][t]!==e&&""!==this.deviceProperty[n][t]||(o=this._getDefault(n.toLowerCase()+t.toLowerCase()),o!==e&&(this.deviceProperty[n][t]=o));for(n in i)this.deviceProperty[n][t]!==e&&""!==this.deviceProperty[n][t]||(this.deviceProperty[n][t]=i[n])}else{for(n in i)this.deviceProperty[n][t]=i[n];for(n in this.deviceProperty)o=this._getDefault(n.toLowerCase()+t.toLowerCase()),o!==e&&(this.deviceProperty[n][t]=o)}this.property[t]=this.deviceProperty.desktopPortrait[t]},i.prototype.removeProperty=function(t){if(delete this.property[t],this.layer.removeData(t.toLowerCase()).removeAttr("data-"+t.toLowerCase()),this.isDeviceProp[t])for(var e in this.deviceProperty)delete this.deviceProperty[e][t],this.layer.removeData(e.toLowerCase()+t.toLowerCase()).removeAttr("data-"+e.toLowerCase()+t.toLowerCase());delete this.isDeviceProp[t],delete this.propertyScope[t]},i.prototype.removeProperties=function(t){for(var e=0;e<t.length;e++)this.removeProperty(t[e])},i.prototype.getPropertiesData=function(t){for(var i={},s=0;s<t.length;s++){var r=t[s];if(this.property[r]!==e&&(i[r]=this.property[r]),this.isDeviceProp[r])for(var n in this.deviceProperty)this.deviceProperty[n][r]!==e&&(i[n.toLowerCase()+r]=this.deviceProperty[n][r])}return i},i.prototype.setProperty=function(t,i,s){this.advancedProperties[t]!==e&&(t=this.advancedProperties[t].getName()),this.propertyScope[t]!==e?"function"==typeof this.propertyScope[t]["setProperty"+t]?this.propertyScope[t]["setProperty"+t](t,i,s):this._setProperty(t,i,s):"function"==typeof this["setProperty"+t]&&this["setProperty"+t](t,i,s)},i.prototype._setProperty=function(t,e,i){this.store(t,e,!0,i),"manager"!=i&&this.$.trigger("propertyChanged",[t,this.getProperty(t)])},i.prototype.onSyncFields=function(){},i.prototype.resetStyleMode=function(t){for(var e in this.advancedProperties)this.advancedProperties[e].resetMode(t)},i}),N2D("FragmentEditor",function(t,e){"use strict";function i(e,i,s,r){this.mode="desktopPortrait",this.editor=e,this.$editedElement=i,this.configuration=s,this.ready=t.Deferred(),this.shouldPreventActivationBubble=!1,this.$=t(this),e.fragmentEditor=this,this.$highlight=t('<div class="n2-ss-layer-highlight n2-ss-layer-highlight-n" /><div class="n2-ss-layer-highlight n2-ss-layer-highlight-e" /><div class="n2-ss-layer-highlight n2-ss-layer-highlight-s" /><div class="n2-ss-layer-highlight n2-ss-layer-highlight-w" />'),this.initSelectMode(),this.layerWindow=new N2Classes.LayerWindow(this),this.layerOptions=new N2Classes.ComponentSettings(this),this.ui=new N2Classes.CanvasUserInterface(this),this.mainContainer=new N2Classes.MainContainer(this),this.itemEditor=new N2Classes.ItemManager(this,r),this.mainContainer.lateInit(),this._initDeviceModeChange(),this.canvasSettings=new N2Classes.CanvasSettings(this),this.layerOptions.startFeatures(),this.hotkeys(),this.addContextMenu(),this.mainContainer.refreshHasLayers();var n=t("#n2-ss-editor-mode .n2-radio-option"),o=t.proxy(function(t){switch(this.updateEditorMode(t),t){case"content":n.eq(0).addClass("n2-active"),n.eq(1).removeClass("n2-active");break;case"canvas":n.eq(0).removeClass("n2-active"),n.eq(1).addClass("n2-active")}},this);if(this.mainContent&&this.mainContent.container.getLayerCount())o("content");else{var a=this.mainContainer.container.getSortedLayers();if(this.mainContent&&a.length>1||!this.mainContent&&a.length>0)o("canvas");else{var l=t.jStorage.get("editormode");l||(l="content",t.jStorage.set("editormode",l)),o(l)}}n.on("click",t.proxy(function(e){n.removeClass("n2-active");var i=t(e.currentTarget),s=i.data("mode");i.addClass("n2-active"),s!=this.currentEditorMode&&(this.updateEditorMode(s),t.jStorage.set("editormode",s))},this)),this.isMultiDrag=!1}var s={16:0,38:0,40:0,37:0,39:0},r={97:"left",98:"center",99:"right",100:"left",101:"center",102:"right",103:"left",104:"center",105:"right"},n={97:"bottom",98:"bottom",99:"bottom",100:"middle",101:"middle",102:"middle",103:"top",104:"top",105:"top"},o={OFF:0,ON:1,GROUP:2};return i.prototype.updateEditorMode=function(e){this.currentEditorMode=e,t("body").attr("data-editormode",this.currentEditorMode)},i.prototype.getMode=function(){return this.mode},i.prototype.getResponsiveRatioHorizontal=function(){return this.editor.getHorizontalRatio()},i.prototype.getResponsiveRatioVertical=function(){return this.editor.getVerticalRatio()},i.prototype.setMainContent=function(t){this.mainContent=t},i.prototype.isGroup=function(t){return!1},i.prototype.isRow=function(t){return t instanceof N2Classes.Row},i.prototype.isCol=function(t){return t instanceof N2Classes.Col},i.prototype.isLayer=function(t){return t instanceof N2Classes.Layer},i.prototype.isContent=function(t){return t instanceof N2Classes.Content},i.prototype._initDeviceModeChange=function(){var e=t("#layerresettodesktop").on("click",t.proxy(this.__onResetToDesktopClick,this));this.resetToDesktopTRElement=e.closest("tr"),this.resetToDesktopGlobalElement=t("#n2-ss-layer-reset-to-desktop").on("click",t.proxy(function(){"block"==this.resetToDesktopTRElement.css("display")&&e.trigger("click")},this));var i=t("#n2-ss-layer-show-on"),s={},r=this.editor.getAvailableDeviceModes();for(var n in r)r[n]&&(s[n]=t('<div class="n2-radio-option"><i class="n2-i n2-it n2-i-'+n+'"></i></div>').on("click",t.proxy(function(t){this.layerOptions.currentForm[t].data("field").onoff.trigger("click")},this,n)).appendTo(i));i.children().first().addClass("n2-first"),i.children().last().addClass("n2-last"),this.globalShowOnDeviceCB=function(t){"undefined"!=typeof s[t]&&s[t].toggleClass("n2-active",1==this.layerOptions.currentForm[t].val())},this.layerOptions.forms.global.desktopPortrait.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"desktopPortrait")),this.layerOptions.forms.global.desktopLandscape.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"desktopLandscape")),this.layerOptions.forms.global.tabletPortrait.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"tabletPortrait")),this.layerOptions.forms.global.tabletLandscape.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"tabletLandscape")),this.layerOptions.forms.global.mobilePortrait.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"mobilePortrait")),this.layerOptions.forms.global.mobileLandscape.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"mobileLandscape")),t("#layershow").data("field").setAvailableDevices(r),this.refreshMode(),this.ready.resolve()},i.prototype.refreshMode=function(){this.mode=this.editor.getDeviceMode(),this.resetToDesktopTRElement.css("display","desktopPortrait"==this.mode?"none":""),this.resetToDesktopGlobalElement.css("display","desktopPortrait"==this.mode?"none":""),this.mainContainer.container.changeEditorModes(this.mode)},i.prototype.onChangeDeviceOrientation=function(){this.refreshMode()},i.prototype.onResize=function(t){this.mainContainer.onResize(t),this.canvasSettings.ruler&&this.canvasSettings.ruler.onResize()},i.prototype.__onResetToDesktopClick=function(){if(this.mainContainer.getSelectedLayer()){var t=this.getMode();this.mainContainer.getSelectedLayer().resetMode(t)}},i.prototype.copyOrResetMode=function(t){var e=this.getMode();"desktopPortrait"==e?"desktopPortrait"!=t&&this.mainContainer.container.resetModes(t):t==e?this.mainContainer.container.resetModes(t):this.mainContainer.container.copyModes(e,t)},i.prototype.getSnap=function(){return this.canvasSettings.get("n2-ss-snap-to-enabled")?t(this.configuration.snapSelector):!1},i.prototype.getHTML=function(){for(var e=t("<div></div>"),i=this.mainContainer.container.getAllLayers(),s=0;s<i.length;s++)e.append(i[s].getHTML(!0));return e.html()},i.prototype.getData=function(){return this.mainContainer.container.getData()},i.prototype.importLayers=function(e,i){var s=(this.mainContainer,t.extend(!0,[],e));i&&this.mainContainer.deleteLayers(),this._idTranslation={};for(var r=this.dataToLayers(s),n=0;n<r.length;n++)this.mainContainer.container.append(r[n]);if(this.refreshMode(),!this.mainContainer.getSelectedLayer()){var s=this.mainContainer.container.getSortedLayers();s.length>0&&s[0].activate()}},i.prototype.loadComponentWithNode=function(t,e,i,s){var r=t.container.append(e);return s&&this.refreshMode(),r},i.prototype.insertComponentWithNode=function(t,e,i,s,r){var n=t.container.insertAt(e,i);return r&&this.refreshMode(),n},i.prototype.fixActiveLayer=function(){var t=this.mainContainer.getSelectedLayer();(0==t||t.isDeleted)&&this.resetActiveLayer()},i.prototype.resetActiveLayer=function(){var t=this.mainContainer.container.getSortedLayers();t.length?t[t.length-1].activate():this.changeActiveLayer(null)},i.prototype.changeActiveLayer=function(e,i){var s=this.mainContainer.getSelectedLayer();s&&!s.isDeleted&&(s.$.off("propertyChanged.editor").off(".active"),s.deActivate()),this.mainContainer.activeLayer=e,i||this.exitSelectMode(),e&&(this.layerOptions.changeActiveComponent(e,e.type,e.placement.getType(),e.getProperties()),e.$.on({"propertyChanged.editor":t.proxy(this.layerOptions.onUpdateField,this.layerOptions),"placementChanged.active":t.proxy(function(t,i,s){this.layerOptions.changeActiveComponentPlacement(i,e.property)},this)})),this.$.trigger("activeLayerChanged")},i.prototype.highlight=function(t){this.$highlight.appendTo(t.layer)},i.prototype.deHighlight=function(t){this.$highlight.detach()},i.prototype["delete"]=function(){this.mainContainer.getSelectedLayer()&&this.doActionOnActiveLayer("delete")},i.prototype.duplicate=function(){this.mainContainer.getSelectedLayer()&&this.doActionOnActiveLayer("duplicate",[this.selectMode!=o.ON,!1])},i.prototype.copy=function(i){var s;if(i==e)if(1==this.selectMode)s=this.selectedLayers;else{var r=this.mainContainer.getSelectedLayer();r&&(s=this.isCol(r)||this.isContent(r)?r.container.getSortedLayers():[r])}else s=this.isCol(i)||this.isContent(i)?i.container.getSortedLayers():[i];var n=this.mainContainer.getLayerData(s);n.length&&t.jStorage.set("ss3layersclipboard",JSON.stringify(n))},i.prototype.paste=function(i){var s=t.jStorage.get("ss3layersclipboard");if(s){var r=JSON.parse(s);if(r.length){var n;n=i!==e&&i?this.isCol(i)||this.isContent(i)?i:i.group:this.mainContainer.getActiveGroup(),this.mainContainer.addLayers(r,n)}}},i.prototype.hasLayersOnClipboard=function(){return!!t.jStorage.get("ss3layersclipboard")},i.prototype.addContextMenu=function(){this.$editedElement.nextendContextMenu({onShow:t.proxy(function(e,i){var s=t(e.target),r=s.closest(".n2-ss-layer"),n=r.data("layerObject");n||(n=this.mainContainer.getSelectedLayer()),n&&(this.isCol(n)||this.isContent(n)?i.addItem("Copy child layers","n2-i-copy",t.proxy(function(){this.copy(n)},this)):i.addItem("Copy layer","n2-i-copy",t.proxy(function(){this.selectMode==o.ON?this.copy():this.copy(n)},this))),this.hasLayersOnClipboard()&&i.addItem("Paste layer(s)","n2-i-paste",t.proxy(function(){this.paste(n)},this)),i.addItem("Copy slide","n2-i-copy",t.proxy(function(){this.editor.copy()},this)),this.editor.hasClipboard()&&i.addItem("Paste slide","n2-i-paste",t.proxy(function(){this.editor.paste()},this))},this)})},i.prototype.initSelectMode=function(){this.selectMode=o.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))},i.prototype.startSelection=function(t){t?(this.selectMode==o.ON&&this.exitSelectMode(),this.changeSelectMode(o.GROUP)):this.changeSelectMode(o.ON)},i.prototype.changeSelectMode=function(e){var i=this.selectMode;i!=e&&(i==o.ON?t("#n2-admin").removeClass("n2-ss-select-layer-mode-on"):i==o.GROUP&&t("#n2-admin").removeClass("n2-ss-select-layer-mode-group"),this.selectMode=e,i==o.GROUP&&e==o.ON&&this.selectedLayers[0].activate(null,null,!0),e==o.OFF?t("#n2-admin").removeClass("n2-ss-select-layer-mode"):(t("#n2-admin").addClass("n2-ss-select-layer-mode"),e==o.ON?t("#n2-admin").addClass("n2-ss-select-layer-mode-on"):e==o.GROUP&&t("#n2-admin").addClass("n2-ss-select-layer-mode-group")),this.selectMode==o.OFF?t("body").off(".n2-ss-selection"):t("body").on("mousedown.n2-ss-selection",t.proxy(function(t){3!=t.which&&"main"==N2Classes.WindowManager.get().getCurrentWindow()&&N2Classes.WindowManager.get().mouseDownArea===!1&&this.exitSelectMode()},this)))},i.prototype.endSelection=function(t){t&&this.selectMode==o.GROUP&&this.exitSelectMode()},i.prototype.selectLayer=function(t,e){if("layer"!=t.type)return!0;if(this.selectMode!=o.ON){var i=this.mainContainer.getSelectedLayer();if("layer"!=i.type)return t.activate(null),!0;this.startSelection(!1),e&&this.selectedLayers.push(i)}return this._selectLayer(t),!0},i.prototype._selectLayer=function(e){var i=t.inArray(e,this.selectedLayers);if(-1!=i){if(this.selectMode==o.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==o.ON&&this.selectedLayers.length<=1)return this.selectedLayers[0].activate(),this.exitSelectMode(),!1;s===this.mainContainer.getSelectedLayer()&&this.selectedLayers[0].activate(!1,null,!0)}else{for(var r=this.selectedLayers.length,n=0;n<this.selectedLayers.length;n++)if(e.layer.add(this.selectedLayers[n].layer).index(this.selectedLayers[n].layer)>0){r=n;break}this.selectedLayers.splice(r,0,e)}for(var n=0;n<this.selectedLayers.length;n++)this.selectedLayers[n].layerRow.addClass("n2-selected"),this.selectedLayers[n].layer.addClass("n2-ss-layer-selected")},i.prototype.addSelection=function(t,e){e||this.changeSelectMode(o.ON);for(var i=0;i<t.length;i++)this._selectLayer(t[i],!1)},i.prototype.exitSelectMode=function(){if(this.selectMode){for(var e=0;e<this.selectedLayers.length;e++)this.selectedLayers[e]!=this.mainContainer.getSelectedLayer()&&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(o.OFF)}},i.prototype.doActionOnActiveLayer=function(e,i){if(this.selectMode==o.ON)for(var s=t.extend([],this.selectedLayers),r=0;r<s.length;r++)s[r][e].apply(s[r],i);else{var n=this.mainContainer.getSelectedLayer();n&&n[e].apply(n,i)}},i.prototype.canvasDragStart=function(t,e){if(this.selectMode&&"canvas"==this.currentEditorMode&&"absolute"==e.mode){for(var i=!1,s=0;s<this.selectedLayers.length;s++){var r=this.selectedLayers[s],n=r.layer;if(n[0]!=e.layer.layer[0]){var o=n.css("display");"none"==o&&n.css("display",""),r._originalPosition=n.position(),"none"==o&&n.css("display","none")}else i=!0}i||this.exitSelectMode(),this.isMultiDrag=!0}},i.prototype.canvasDragMove=function(t,e){if(this.isMultiDrag===!0)for(var i={left:e.position.left+e.canvasOffset.left-e.originalOffset.left,top:e.position.top+e.canvasOffset.top-e.originalOffset.top},s=0;s<this.selectedLayers.length;s++){var r=this.selectedLayers[s];if(!this.isGroup(r)){var n=r.layer;n[0]!=e.layer.layer[0]&&(n.css({left:r._originalPosition.left+i.left,top:r._originalPosition.top+i.top,bottom:"auto",right:"auto"}),r.placement.doAction("triggerLayerResized"))}}},i.prototype.canvasDragStop=function(t,e){if(this.isMultiDrag===!0){for(var i=0;i<this.selectedLayers.length;i++){var s=this.selectedLayers[i];if(!this.isGroup(s)){var r=s.layer;if(r[0]!=e.layer.layer[0]){var n=r.css("display");"none"==n&&r.css("display","block");var o=parseInt(s.layer.css("left")),a=parseInt(s.layer.css("top"));s.placement.current.setPosition(o,a),s.placement.doAction("triggerLayerResized"),"none"==n&&r.css("display","none")}}}return this.isMultiDrag=!1,!0}return!1},i.prototype.historyDeleteGroup=function(t){t.getSelf()["delete"]()},i.prototype.historyCreateGroup=function(t){var e=new N2Classes.Group(this,this.mainContainer,{},null);e.create(),t.setSelf(e)},i.prototype.createGroupFromSelected=function(){var t;switch(this.selectMode){case o.ON:t=new N2Classes.Group(this,this.mainContainer,{},null),t.create(),N2Classes.History.get().addSimple(this,this.historyDeleteGroup,this.historyCreateGroup,[t]),t.addLayers(this.selectedLayers),this.exitSelectMode(),t.activate();break;case o.OFF:var e=this.mainContainer.getSelectedLayer();e.group instanceof N2Classes.Group?e.group.activate():(t=new N2Classes.Group(this,this.mainContainer,{},null),t.create(),N2Classes.History.get().addSimple(this,this.historyDeleteGroup,this.historyCreateGroup,[t]),t.addLayers([e]),t.activate());break;case o.GROUP:}},i.prototype.createRow=function(t){var e=new N2Classes.Row(this,t,{});return e.create(),e.hightlightStructure(),{layer:e}},i.prototype.createCol=function(t){var e=t,i=null;if(this.isCol(e))i=e.group.createCol();else if(this.isRow(e))i=e.createCol();else{if(!this.isCol(e.group))return this.createRow(t);i=e.group.group.createCol()}return i.activate(null),{layer:i}},i.prototype.preventActivationBubbling=function(){return this.shouldPreventActivationBubble?!1:(this.shouldPreventActivationBubble=!0,!0)},i.prototype.allowActivation=function(){this.shouldPreventActivationBubble=!1},i.prototype.hotkeys=function(){t(window).on({keydown:t.proxy(function(e){var i=!1;if("TEXTAREA"!=e.target.tagName&&"INPUT"!=e.target.tagName&&!i){var o=this.mainContainer.getSelectedLayer(),a=e.keyCode;if(a>=49&&57>=a){var l=e.originalEvent.location||e.originalEvent.keyLocation||0;3==l&&(a+=48)}if(o)if(46==a||8==a)this["delete"](),e.preventDefault();else if(35==a)this.duplicate(),e.preventDefault();else if(16==a)s[a]=1;else if(38==a){if(!s[a]){var h=t.proxy(function(){this.doActionOnActiveLayer("moveY",[-1*(s[16]?10:1)])},this);h(),s[a]=setInterval(h,100)}e.preventDefault()}else if(40==a){if(!s[a]){var h=t.proxy(function(){this.doActionOnActiveLayer("moveY",[s[16]?10:1])},this);h(),s[a]=setInterval(h,100)}e.preventDefault()}else if(37==a){if(!s[a]){var h=t.proxy(function(){this.doActionOnActiveLayer("moveX",[-1*(s[16]?10:1)])},this);h(),s[a]=setInterval(h,100)}e.preventDefault()}else if(39==a){if(!s[a]){var h=t.proxy(function(){this.doActionOnActiveLayer("moveX",[s[16]?10:1])},this);h(),s[a]=setInterval(h,100)}e.preventDefault()}else if(a>=97&&105>=a){var d=r[a],p=n[a],c=!1;this.layerOptions.forms.placement.absolute.align.val()==d&&this.layerOptions.forms.placement.absolute.valign.val()==p&&(c=!0),this.layerOptions.layerFeatures.horizontalAlign(d,c),this.layerOptions.layerFeatures.verticalAlign(p,c)}else if(65==a){e.preventDefault();var u=this.mainContainer.getSelectedLayer();u&&"absolute"==u.placement.getType()&&u.placement.current.fit()}(e.ctrlKey||e.metaKey)&&(90==a?e.shiftKey?N2Classes.History.get().redo()&&e.preventDefault():N2Classes.History.get().undo()&&e.preventDefault():71==a?(this.createGroupFromSelected(),e.preventDefault()):68==a?(e.preventDefault(),this.editor.copy()):70==a?(e.preventDefault(),this.editor.paste()):67==a?this.copy():86==a&&this.paste())}},this),keyup:t.proxy(function(t){"undefined"!=typeof s[t.keyCode]&&s[t.keyCode]&&(clearInterval(s[t.keyCode]),s[t.keyCode]=0)},this)})},i.prototype.getSelf=function(){return this},i}),N2D("CanvasUserInterface",function(t,e){"use strict";function i(e){this.fragmentEditor=e,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(t){t.preventDefault(),this.switchLayerList()},this)),t(".n2-ss-slide-show-layers").on("click",t.proxy(function(t){t.preventDefault(),this.switchLayerList()},this)),this.onResize(),t(window).on("resize",t.proxy(this.onResize,this))}return i.prototype.onResize=function(){var t=this.$container.height();this.paneLeft.height(t-48),this.paneRight.height(t-48)},i.prototype.onActivateLayer=function(t){var e=this.paneLeft.scrollTop(),i=0,s=t;do i+=s.layerRow.get(0).offsetTop,s=s.group;while(s!==this.fragmentEditor.mainContainer);(e>i||i>e+this.paneLeft.height()-32)&&(this.paneLeft.scrollTop(i),this.paneRight.scrollTop(i))},i.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(t){var e=this.paneLeft.scrollTop();t.originalEvent.deltaY>0?e+=32:e-=32,e=32*Math.round(e/32),this.paneLeft.scrollTop(e),this.paneRight.scrollTop(e),t.preventDefault()},this);this.paneLeft.on("mousewheel",e),this.paneLeft.on("scroll",t.proxy(function(t){var e=this.paneLeft.scrollTop();this.paneRight.scrollTop(e),t.preventDefault()},this)),this.paneRight.on("mousewheel",e)},i.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)}))},i.prototype.resizeMove=function(t){t.preventDefault(),this.setTLHeight(this._calculateDesiredHeight(t))},i.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")},i.prototype._calculateDesiredHeight=function(t){var e=this.startY-t.clientY+this.height-48;return this.__calculateDesiredHeight(e)},i.prototype.__calculateDesiredHeight=function(t){return 32*Math.round(Math.min(Math.max(32,t),(window.innerHeight||document.documentElement.clientHeight)/2)/32)+48},i.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)},i.prototype.setTLHeight=function(t){t=Math.max(48,t),this.$container.height(t),t=this.$container.height(),this.paneLeft.height(t-48),this.paneRight.height(t-48),nextend.triggerResize()},i.prototype.activateAdd=function(t,e){this.$add.css({left:t,top:e}).appendTo(this.$container)},i}),N2D("LayerFeatures",function(t,e){"use strict";function i(t,e){this.fields=t,this.fragmentEditor=e,this.initParentLinker(),this.initAlign(),this.initEvents()}var s={left:0,center:1,right:2,top:0,middle:1,bottom:2};return i.prototype.initParentLinker=function(){var e=this.fields.parentid.data("field");t("#n2-ss-layer-parent-linker").on({click:function(t){e.click(t)}})},i.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");
|
5 |
e.add(i).on("click",t.proxy(function(s){if(s.ctrlKey||s.metaKey){var r=t(s.currentTarget),n=r.hasClass("n2-sub-active"),o=r.data("align");switch(o){case"left":case"center":case"right":e.removeClass("n2-sub-active"),n?(t.jStorage.set("ss-item-horizontal-align",null),this.layerDefault.align=null):(t.jStorage.set("ss-item-horizontal-align",o),this.layerDefault.align=o,r.addClass("n2-sub-active"));break;case"top":case"middle":case"bottom":i.removeClass("n2-sub-active"),n?(t.jStorage.set("ss-item-vertical-align",null),this.layerDefault.valign=null):(t.jStorage.set("ss-item-vertical-align",o),this.layerDefault.valign=o,r.addClass("n2-sub-active"))}}else if(this.fragmentEditor.mainContainer.getSelectedLayer()){var o=t(s.currentTarget).data("align");switch(o){case"left":case"center":case"right":this.horizontalAlign(o,!0);break;case"top":case"middle":case"bottom":this.verticalAlign(o,!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 r=t.jStorage.get("ss-item-horizontal-align",null),n=t.jStorage.get("ss-item-vertical-align",null);null!=r&&(e.eq(s[r]).addClass("n2-sub-active"),this.layerDefault.align=r),null!=n&&(i.eq(s[n]).addClass("n2-sub-active"),this.layerDefault.valign=n)},i.prototype.horizontalAlign=function(t,e){this.fields.align.val()!=t?this.fields.align.data("field").options.eq(s[t]).trigger("click"):e&&this.fields.left.val(0).trigger("change")},i.prototype.verticalAlign=function(t,e){this.fields.valign.val()!=t?this.fields.valign.data("field").options.eq(s[t]).trigger("click"):e&&this.fields.top.val(0).trigger("change")},i.prototype.initEvents=function(){var e=t("#n2-tab-events"),i=e.find(".n2-h3"),s=i.html(),r=t('<div class="n2-editor-header n2-h2 n2-uc"><span>'+s+"</span></div>");i.replaceWith(r)},i}),N2D("LayerWindow",function(t,e){"use strict";function i(e){this.isMinimized=!1,this.detachedPosition={left:t.jStorage.get("ssPanelLeft")||200,top:t.jStorage.get("ssPanelTop")||100,height:t.jStorage.get("ssPanelHeight")||400},this.hasBreadcrumb=!1,this.lastHeight=this.detachedPosition.height,this.admin=t("#n2-admin"),this.sidebar=t("#n2-ss-layer-window").on("mousedown",t.proxy(N2Classes.WindowManager.setMouseDownArea,null,"sidebarClicked")),this.title=this.sidebar.find(".n2-ss-layer-window-title-inner"),this.fragmentEditor=e,this.viewPanes={layerEdit:t("#n2-tabbed-slide-editor-settings > .n2-tabs").addClass("n2-scrollable")};for(var i in this.viewPanes)this.viewPanes[i].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 s=this.sidebar.find(".n2-ss-layer-window-title-nav-left");t('<a href="#"><i class="n2-i n2-i-minimize n2-i-grey-opacity"></i></a>').on("click",t.proxy(function(t){t.preventDefault(),this.toggleMinimize()},this)).appendTo(s);var r=this.sidebar.find(".n2-ss-layer-window-title-nav-right");t('<a href="#"><i class="n2-i n2-i-closewindow n2-i-grey-opacity"></i></a>').on("click",t.proxy(function(t){t.preventDefault(),this.hide()},this)).appendTo(r),nextend.tooltip.add(r),this.$breadcrumb=t('<div class="n2-ss-layer-window-breadcrumb"></div>').insertAfter("#n2-tabbed-slide-editor-settings > .n2-sidebar-tab-switcher");var n=t("#n2-ss-add-sidebar");t(".n2-ss-add-layer-button").on("click",function(e){e.preventDefault(),t("#n2-ss-layers-switcher > .n2-labels .n2-td").eq(0).trigger("click"),n.toggleClass("n2-active")}),t(".n2-ss-core-item").on("click",function(t){n.removeClass("n2-active")});var o=t("#wpadminbar, .navbar-fixed-top").height()+t(".n2-top-bar").height();this.$verticalBarInner=t(".n2-ss-add-sidebar-inner").each(function(){var e=t(this);e.fixTo(e.parent(),{top:o})}),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)),t(".n2-ss-slide-duplicate-layer").on("click",t.proxy(function(t){t.preventDefault(),this.duplicate()},this.fragmentEditor)),t(".n2-ss-slide-delete-layer").on("click",t.proxy(function(t){t.preventDefault(),this["delete"]()},this.fragmentEditor)),t("body").on("mousedown",t.proxy(function(t){"main"==N2Classes.WindowManager.get().getCurrentWindow()&&N2Classes.WindowManager.get().mouseDownArea===!1&&this.hide()},this));var a=t('<div id="n2-ss-devicespecific-settings"></div>'),l=this.fragmentEditor.editor.getAvailableDeviceModes();for(var i in l)if(l[i]){var h=i.replace(/([A-Z])/g," $1").split(" "),d=h[0],p=h[1].toLowerCase();a.append('<i class="n2-i n2-it n2-i-mini-'+d+"-"+p+'" data-device="'+d+'" data-orientation="'+p+'"></i>')}var c={mouseenter:t.proxy(function(t){a.appendTo(t.currentTarget)},this),mouseleave:t.proxy(function(t){a.detach()},this)};this.sidebar.find("[data-devicespecific] label").prepend('<span class="n2-i n2-i-mini-desktop-portrait"></span>'),this.sidebar.find("[data-devicespecific] label").on(c),a.find(".n2-i").on({click:t.proxy(function(e){e.preventDefault();var i=t(e.currentTarget);t("#n2-ss-devices").find('[data-device="'+i.data("device")+'"][data-orientation="'+i.data("orientation")+'"]').trigger("click")},this)})}return i.prototype.toggleMinimize=function(){this.isMinimized=!this.isMinimized,this.sidebar.toggleClass("n2-ss-layer-window-minized",this.isMinimized),this.isMinimized||this.onResize()},i.prototype.magnetize=function(){if(!this.autoPosition){this.autoPosition=1,t.jStorage.set("ssPanelAutoPosition",1),this.magnet.css("display","none");var e=this.fragmentEditor.mainContainer.getSelectedLayer();e&&e.positionSidebar()}},i.prototype.show=function(e,i){this.setTitle(e),t("body").addClass("n2-ss-layer-edit-visible")},i.prototype._show=function(){t("body").addClass("n2-ss-layer-edit-visible")},i.prototype.hide=function(){t("body").removeClass("n2-ss-layer-edit-visible")},i.prototype.isVisible=function(){return t("body").hasClass("n2-ss-layer-edit-visible")},i.prototype.hideWithDeferred=function(e){t("body").hasClass("n2-ss-layer-edit-visible")&&(this.hide(),e.done(t.proxy(this._show,this)))},i.prototype.setTitle=function(t){this.title.html(t.getName()),this.updateGroupTitle(t)},i.prototype.updateGroupTitle=function(e){var i;for(this.$breadcrumb.html(""),i=0;5>i&&(t('<span class="n2-window-title-structure-nav"><span>'+e.label+'</span><span class="n2-i n2-it n2-i-mini-arrow-thin"></span></span>').on({mouseenter:t.proxy(function(){this.fragmentEditor.highlight(this)},e),mouseleave:t.proxy(function(){this.fragmentEditor.deHighlight(this)},e),click:t.proxy(function(t){this.fragmentEditor.deHighlight(this),this.activate(t)},e)}).prependTo(this.$breadcrumb),e.group&&e.group!==this.fragmentEditor.mainContainer);i++)e=e.group;this.hasBreadcrumb=i>0,this.$breadcrumb.toggleClass("n2-has-breadcrumb",this.hasBreadcrumb),this.onResize()},i.prototype.getLayerEditExcludedHeight=function(){return 85+(this.hasBreadcrumb?23:0)},i.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)},i.prototype.onResize=function(){this.sidebar.css("display","block"),this.resizeVerticalBar();var t=window.innerHeight||document.documentElement.clientHeight,e=this.sidebar.height()-this.getLayerEditExcludedHeight();this.viewPanes.layerEdit.height(e);var i={},s=window.innerWidth||document.documentElement.clientWidth,r=this.sidebar[0].getBoundingClientRect();r.left<0?i.left=0:r.left+r.width>s&&(i.left=Math.max(0,s-r.width)),r.height>t-r.top&&(i.top=t-r.top-r.height+r.top,i.top<0&&(this.lastHeight=i.height=r.height+i.top,i.top=0)),this.sidebar.css(i),this.sidebar.css("display","")},i.prototype.detach=function(){this.sidebar.css(this.detachedPosition),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.nUIDraggable({distance:5,handle:".n2-ss-layer-window-title",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),scroll:!1}).nUIResizable({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(".nui-resizable-handle").addClass("n2-ss-layer-window-resizer")},this)}),this.onResize(),nextend.triggerResize()},i.prototype.switchTab=function(t){this.panelHeading.filter('[data-tab="'+t+'"]').trigger("click")},i}),N2D("PositionDisplay",function(t,e){"use strict";function i(){this.currentSource="",t(window).ready(t.proxy(this._ready,this))}return i.prototype._ready=function(){this.$body=t("body"),this.$el=t('<div class="n2 n2-ss-position-display"/>').appendTo("body")},i.prototype.show=function(t){""==this.currentSource&&(this.currentSource=t,this.$el.addClass("n2-active"),this.$body.addClass("n2-position-display-active"))},i.prototype.update=function(t,e,i){this.currentSource==e&&this.$el.html(i).css({left:t.pageX+10,top:t.pageY+10})},i.prototype.hide=function(t){this.currentSource!=t&&t!==e||(this.$body.removeClass("n2-position-display-active"),this.$el.removeClass("n2-active"),this.currentSource="")},i.get=function(){var t=new i;return i.get=function(){return t},t},i}),N2D("Ruler",function(t,e){"use strict";function i(e,i){this.editor=e,this.showGuides=1,this.guides=[],this.container=t('<div class="n2-ruler-container" />').appendTo("#n2-ss-slide-canvas-container-inner .n2-ss-slider-outer-container"),this.scale=10,this.vertical=t('<div class="n2-ruler n2-ruler-vertical unselectable"></div>').appendTo(".n2-ss-slider-real-container"),this.horizontal=t('<div class="n2-ruler n2-ruler-horizontal unselectable"></div>').appendTo(this.container),this.verticalSpans=t(),this.horizontalSpans=t(),this.onResize(),t(window).on("resize",t.proxy(this.onResize,this)),this.horizontal.on("mousedown",t.proxy(function(t){this.showGuides&&new r(this,this.horizontal,t)},this)),this.vertical.on("mousedown",t.proxy(function(t){this.showGuides&&new n(this,this.vertical,t)},this));try{i=t.extend({vertical:[],horizontal:[]},JSON.parse(N2Classes.Base64.decode(i)));for(var s=0;s<i.horizontal.length;s++){var o=new r(this,this.horizontal);o.setPosition(i.horizontal[s])}for(var s=0;s<i.vertical.length;s++){var o=new n(this,this.vertical);o.setPosition(i.vertical[s])}}catch(a){}this.measureToolVertical(),this.measureToolHorizontal()}function s(e,i,s){this.ruler=e,this.container=i,this.position=0,this.guide=t('<div class="n2-ruler-guide n2-ruler-user-guide"><div class="n2-ruler-guide-border"></div><div class="n2-ruler-guide-handle"></div></div>').appendTo(i).on("mousedown",t.proxy(function(t){t.preventDefault(),t.stopPropagation(),e.editor.fragmentEditor.canvasSettings.settings["n2-ss-lock-guides"]||this["delete"]()},this)),this.ruler.addGuide(this),s&&this.create(s)}function r(){s.prototype.constructor.apply(this,arguments)}function n(){s.prototype.constructor.apply(this,arguments)}return i.prototype.addGuide=function(t){this.guides.push(t)},i.prototype.removeGuide=function(e){this.guides.splice(t.inArray(e,this.guides),1)},i.prototype.clearGuides=function(){for(var t=this.guides.length-1;t>=0;t--)this.guides[t]["delete"]()},i.prototype.onResize=function(){var e=t(".n2-ss-slider-outer-container"),i=e.width(),s=e.height();this.container.css({width:i+40,height:s+40});for(var r=this.horizontalSpans.length-3;r<i/this.scale;r++){var n=t("<span />").appendTo(this.horizontal);r%10==0?n.addClass("n2-ss-ruler-mark-large").append("<span>"+r/10*100+"</span>"):r%2==0&&n.addClass("n2-ss-ruler-mark-medium"),this.horizontalSpans=this.horizontalSpans.add(n)}for(var r=this.verticalSpans.length-3;r<s/this.scale;r++){var n=t("<span />").appendTo(this.vertical);r%10==0?n.addClass("n2-ss-ruler-mark-large").append("<span>"+r/10*100+"</span>"):r%2==0&&n.addClass("n2-ss-ruler-mark-medium"),this.verticalSpans=this.verticalSpans.add(n)}},i.prototype.toArray=function(){for(var t={horizontal:[],vertical:[]},e=0;e<this.guides.length;e++)this.guides[e]instanceof r?t.horizontal.push(this.guides[e].position):this.guides[e]instanceof n&&t.vertical.push(this.guides[e].position);return t},i.prototype.measureToolVertical=function(){var e=t('<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=t.proxy(function(){i||(i=!0,e.css("display",""),N2Classes.PositionDisplay.get().show("Guide"))},this),r=t.proxy(function(){i&&(i=!1,e.css("display","none"),N2Classes.PositionDisplay.get().hide("Guide"))},this);this.vertical.on({mouseenter:t.proxy(function(i){if(this.showGuides){var n=0,o=Math.round(this.vertical.offset().top);s(),this.vertical.on("mousemove.n2-ruler-measure-tool",t.proxy(function(i){if(t(i.target).hasClass("n2-ruler-guide-border")&&t(i.target).parent()[0]!=e[0])r();else if(s(),n!=i.pageY){var a=i.pageY-o;e.css("top",a),N2Classes.PositionDisplay.get().update(i,"Guide",a-40+"px"),n=i.pageY}},this))}},this),mouseleave:t.proxy(function(){this.vertical.off(".n2-ruler-measure-tool"),r()},this)})},i.prototype.measureToolHorizontal=function(){var e=t('<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=t.proxy(function(){i||(i=!0,e.css("display",""),N2Classes.PositionDisplay.get().show("Guide"))},this),r=t.proxy(function(){i&&(i=!1,e.css("display","none"),N2Classes.PositionDisplay.get().hide("Guide"))},this);this.horizontal.on({mouseenter:t.proxy(function(i){if(this.showGuides){var n=0,o=Math.round(this.horizontal.offset().left);s(),this.horizontal.on("mousemove.n2-ruler-measure-tool",t.proxy(function(i){if(t(i.target).hasClass("n2-ruler-guide-border")&&t(i.target).parent()[0]!=e[0])r();else if(s(),n!=i.pageX){var a=Math.max(i.pageX-o,40);e.css("left",a),N2Classes.PositionDisplay.get().update(i,"Guide",a-40+"px"),n=i.pageX}},this))}},this),mouseleave:t.proxy(function(){this.horizontal.off(".n2-ruler-measure-tool"),r()},this)})},s.prototype._position=function(t,e){return Math.max(0,t)},s.prototype.setPosition=function(t){this.position=t,this.refresh()},s.prototype.refresh=function(){this.positionRender(this.position)},s.prototype["delete"]=function(){this.ruler.removeGuide(this),this.guide.remove()},r.prototype=Object.create(s.prototype),r.prototype.constructor=r,r.prototype.create=function(t){var e=Math.round(this.container.offset().left)+40;this.position=this._position(t.pageX-e,t),this.positionRender(this.position)},r.prototype.rawPositionRender=function(t){this.guide.css("left",Math.max(0,t)+40)},r.prototype.positionRender=function(t){this.guide.css("left",Math.max(0,t)+40)},n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.create=function(t){var e=Math.round(this.container.offset().top)+40;this.position=this._position(t.pageY-e,t),this.positionRender(this.position)},n.prototype.rawPositionRender=function(t){this.guide.css("top",Math.max(0,t)+40)},n.prototype.positionRender=function(t){this.guide.css("top",Math.max(0,t)+40)},i}),N2D("CanvasSettings",function(t,e){"use strict";function i(e){this.fragmentEditor=e,this.settings={};var i=t("#n2-ss-slide-canvas-settings").on("mouseleave",t.proxy(function(){i.removeClass("n2-active")},this));i.find("> a").on("click",function(t){t.preventDefault(),i.toggleClass("n2-active")}),this.$settingsPanel=i.find(".n2-ss-settings-panel-inner"),this.snapTo(),this.roundTo(),this.colorScheme(),this.fragmentEditor.editor.options.isAddSample||this.startRuler()}return i.prototype._addSettings=function(e,i,s,r){this.settings[e]=parseInt(t.jStorage.get(e,s));var n=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]),n.toggleClass("n2-setting-enabled",1==this.settings[e]),r(this.settings[e],!1)},this)).appendTo(this.$settingsPanel);n.toggleClass("n2-setting-enabled",1==this.settings[e]),r(this.settings[e],!0)},i.prototype._addAction=function(e,i){t('<a href="#" class="n2-panel-action">'+e+"</a>").on("click",t.proxy(function(t){t.preventDefault(),i()},this)).appendTo(this.$settingsPanel)},i.prototype.get=function(t){return this.settings[t]},i.prototype.snapTo=function(){this._addSettings("n2-ss-snap-to-enabled",n2_("Smart Snap"),1,t.proxy(function(t){for(var e=this.mainContainer.container.getSortedLayers(),i=0;i<e.length;i++)e[i].placement.doAction("snap")},this.fragmentEditor))},i.prototype.roundTo=function(){this._addSettings("n2-ss-round-to-enabled",n2_("Round to 5px"),1,function(t){1==t?nextend.roundTo=5:nextend.roundTo=1})},i.prototype.colorScheme=function(){var e=t("#n2-ss-slide-canvas-container");this._addSettings("n2-ss-theme-dark",n2_("Dark Mode"),0,function(t){e.toggleClass("n2-ss-theme-dark",1==t)})},i.prototype.startRuler=function(){this.ruler=new N2Classes.Ruler(this.fragmentEditor.editor,t("#slideguides").val());var e=t("#n2-ss-slide-canvas-container");this._addSettings("n2-ss-ruler-enabled",n2_("Ruler"),1,t.proxy(function(t){e.toggleClass("n2-ss-has-ruler",1==t),nextend.triggerResize()},this)),this._addSettings("n2-ss-show-guides",n2_("Show Guides"),1,t.proxy(function(t){this.ruler.showGuides=t,e.toggleClass("n2-ss-show-guides",1==t)},this)),this._addSettings("n2-ss-lock-guides",n2_("Lock Guides"),0,t.proxy(function(t){e.toggleClass("n2-ss-lock-guides",1==t)},this)),this._addAction(n2_("Clear Guides"),t.proxy(function(){this.ruler.clearGuides()},this))},i}),N2D("PlacementAbsolute",["PlacementAbstract"],function(t,e){"use strict";function i(t,e,i){this.type="absolute",this.transferredProperties={},N2Classes.PlacementAbstract.prototype.constructor.apply(this,arguments),this.doThrottledTheResize=this.doTheResize,this._triggerLayerResizedThrottled=NextendThrottle(this._triggerLayerResized,30),this.parentIsVisible=!0,this.children=[]}var s=function(){var t=0;return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){var i,s=(new Date).getTime();return i=Math.max(0,16-(s-t)),t=s+i,setTimeout(function(){e(s+i)},i)}}(),r={raf:!1,ratios:null,isThrottled:!1,layers:[]},n=function(){r.raf===!1&&(r.raf=!0,s(function(){for(var t=0;t<r.layers.length;t++)r.layers[t].isDeleted||r.layers[t].doTheResize(r.ratios,!0,r.isThrottled);r={raf:!1,ratios:null,isThrottled:!1,layers:[]}}))};return i.prototype=Object.create(N2Classes.PlacementAbstract.prototype),i.prototype.constructor=i,i.prototype.start=function(){this.$layer=this.layer.layer,this.$layerRow=this.layer.layerRow},i.prototype.preActivation=function(t){if("normal"==t.type){var e=this.layer.getProperty("height");e>0&&(this.transferredProperties.height=e)}},i.prototype.activated=function(e){var i=this.$layer.data("parentid");if(i){var s=t("#"+i);s.length>0?this.activatedAfterParentReady(e):setTimeout(t.proxy(function(){this.activatedAfterParentReady(e)},this),300)}else this._activated(e)},i.prototype.activatedAfterParentReady=function(e){var i=this.$layer.data("parentid");if(i){var s=t("#"+i);if(s.length>0){var r=s.data("layerObject");r?r.readyDeferred.done(t.proxy(this._activated,this,e)):s.on("layerStarted",t.proxy(function(i,s){s.readyDeferred.done(t.proxy(this._activated,this,e))},this))}else this.$layer.data("parentid",""),this._activated(e)}else this._activated(e)},i.prototype._activated=function(e){this.loadProperties(t.extend(e,this.transferredProperties)),this.transferredProperties={},this.$layer.css("zIndex",""),this.___makeLayerAlign(),this.___makeLayerResizeable()},i.cleanLayer=function(t){var e=["desktopPortrait","desktopLandscape","tabletPortrait","tabletLandscape","mobilePortrait","mobileLandscape"];t.removeAttr("data-align").removeAttr("data-valign").css({left:"",top:"",right:"",bottom:"",width:"",height:"","text-align":""});for(var i=["parentid","responsiveposition","responsivesize","parentalign","parentvalign","align","valign","left","top","width","height"],s={},r=0;r<i.length;r++){var n=i[r].toLowerCase();s[n]=t.data(n),t.removeAttr(n),t.removeData(n);for(var o=0;o<e.length;o++){var a=e[o].toLowerCase();s[a+n]=t.data(a+n),t.removeAttr(a+n),t.removeData(a+n)}}return s},i.prototype.deActivated=function(t){var e=this.layer.getProperty("parentid");e&&""!=e&&(this.$layer.removeAttr("data-parentid"),this.unSubscribeParent()),this.$layer.removeAttr("data-align").removeAttr("data-valign").css({left:"",top:"",right:"",bottom:"",width:"",height:"","text-align":""}),this.alignMarker.remove(),this.$layer.nUIResizable("destroy"),this.$layer.off(".n2-ss-absolute"),this.$layer.triggerHandler("LayerUnavailable");var i=["parentid","responsiveposition","responsivesize","parentalign","parentvalign","align","valign","left","top","width","height"],s=this.layer.getPropertiesData(i);return this.layer.removeProperties(i),this.chainParent.remove(),s},i.prototype.loadProperties=function(e){this.layer.createProperty("parentid",null,this.layer.layer,this),this.layer.createProperty("responsiveposition",1,this.layer.layer,this),this.layer.createProperty("responsivesize",1,this.layer.layer,this),this.layer.createDeviceProperty("parentalign",{desktopPortrait:"center"},this.layer.layer,this),this.layer.createDeviceProperty("parentvalign",{desktopPortrait:"middle"},this.layer.layer,this),this.layer.createDeviceProperty("align",{desktopPortrait:e.align||"center"},this.layer.layer,this),this.layer.createDeviceProperty("valign",{desktopPortrait:e.valign||"middle"},this.layer.layer,this),this.layer.createDeviceProperty("left",{desktopPortrait:e.left||0},this.layer.layer,this),this.layer.createDeviceProperty("top",{desktopPortrait:e.top||0},this.layer.layer,this),this.layer.createDeviceProperty("width",{desktopPortrait:e.width||"auto"},this.layer.layer,this),this.layer.createDeviceProperty("height",{desktopPortrait:e.height||"auto"},this.layer.layer,this);var i=this.layer.layer;this.subscribeParentCallbacks={},this.layer.getProperty("parentid")&&this.subscribeParent(),i.attr({"data-align":this.layer.getProperty("align"),"data-valign":this.layer.getProperty("valign")});var s=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(){s=t("#"+this.layer.getProperty("parentid")).addClass("n2-highlight")},this),mouseleave:t.proxy(function(){s&&(s.removeClass("n2-highlight"),s=null)},this)}).appendTo(this.$layer)},i.prototype.triggerLayerResized=function(t,e){t?this._triggerLayerResized(t,e):this._triggerLayerResizedThrottled(!0,e)},i.prototype._triggerLayerResized=function(t,e){this.layer.isDeleted||this.$layer.triggerHandler("LayerResized",[e||{slideW:this.fragmentEditor.getResponsiveRatioHorizontal(),slideH:this.fragmentEditor.getResponsiveRatioVertical()},t||!1])},i.prototype.___makeLayerAlign=function(){this.alignMarker=t('<div class="n2-ss-layer-cc" />').appendTo(this.$layer)},i.prototype.___makeLayerResizeable=function(){this._resizableJustClick=!1,this.$layer.nUIResizable({handles:"n, e, s, w, ne, se, sw, nw",_containment:this.fragmentEditor.mainContainer.layer,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(".nui-resizable-handle, .n2-ss-layer-cc").on({mousedown:t.proxy(function(t){this._resizableJustClick=[t.clientX,t.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){var i=t(e.currentTarget),s=this.fragmentEditor.layerOptions.layerFeatures;i.hasClass("nui-resizable-nw")?(s.horizontalAlign("left",!1),s.verticalAlign("top",!1)):i.hasClass("nui-resizable-w")?(s.horizontalAlign("left",!1),s.verticalAlign("middle",!1)):i.hasClass("nui-resizable-sw")?(s.horizontalAlign("left",!1),s.verticalAlign("bottom",!1)):i.hasClass("nui-resizable-n")?(s.horizontalAlign("center",!1),s.verticalAlign("top",!1)):i.hasClass("n2-ss-layer-cc")?(s.horizontalAlign("center",!1),s.verticalAlign("middle",!1)):i.hasClass("nui-resizable-s")?(s.horizontalAlign("center",!1),s.verticalAlign("bottom",!1)):i.hasClass("nui-resizable-ne")?(s.horizontalAlign("right",!1),s.verticalAlign("top",!1)):i.hasClass("nui-resizable-e")?(s.horizontalAlign("right",!1),s.verticalAlign("middle",!1)):i.hasClass("nui-resizable-se")&&(s.horizontalAlign("right",!1),s.verticalAlign("bottom",!1))}this._resizableJustClick=!1},this)})},this),smartguides:t.proxy(function(){return this.$layer.triggerHandler("LayerParent"),this.fragmentEditor.getSnap()},this),tolerance:5}).on({"mousedown.n2-ss-absolute":t.proxy(function(t){!this.layer.status!=N2Classes.ComponentAbstract.STATUS.LOCKED&&(N2Classes.PositionDisplay.get().show("Canvas"),N2Classes.PositionDisplay.get().update(t,"Canvas","W: "+parseInt(this.$layer.width())+"px<br />H: "+parseInt(this.$layer.height())+"px")),document.activeElement&&document.activeElement.blur()},this),"mouseup.n2-ss-absolute":t.proxy(function(t){N2Classes.PositionDisplay.get().hide("Canvas")},this)})},i.prototype.____makeLayerResizeableStart=function(e,i){this.preventActivation=!0,this.resizableDeferred=t.Deferred(),this.fragmentEditor.layerWindow.hideWithDeferred(this.resizableDeferred),t("body").addClass("n2-ss-resize-layer"),this._resizableJustClick&&(this._resizableJustClick=!1),this.____makeLayerResizeableResize(e,i),N2Classes.PositionDisplay.get().show("Canvas")},i.prototype.____makeLayerResizeableResize=function(t,e){N2Classes.PositionDisplay.get().update(t,"Canvas","W: "+e.size.width+"px<br />H: "+e.size.height+"px"),this.triggerLayerResized()},i.prototype.____makeLayerResizeableStop=function(e,i){t("body").removeClass("n2-ss-resize-layer"),this.resizableDeferred.resolve();var s=!1;if("n"==i.axis||"s"==i.axis||i.originalSize.width==i.size.width){var r=this.layer.getProperty("width");this.layer.isDimensionPropertyAccepted(r)&&(s=!0,this._syncwidth())}var n=!1;if("e"==i.axis||"w"==i.axis||i.originalSize.height==i.size.height){var r=this.layer.getProperty("height");this.layer.isDimensionPropertyAccepted(r)&&(n=!0,this._syncheight())}var o=this.fragmentEditor.getResponsiveRatioHorizontal(),a=this.fragmentEditor.getResponsiveRatioVertical();parseInt(this.layer.getProperty("responsivesize"))||(o=a=1);var l=null;s||(l=Math.round(i.size.width*(1/o)));var h=null;n||(h=Math.round(i.size.height*(1/a))),this._setPosition(null,null,i.position.left,i.position.top,l,h,!0),this.triggerLayerResized(),this.$layer.triggerHandler("LayerUnParent"),N2Classes.PositionDisplay.get().hide("Canvas"),setTimeout(t.proxy(function(){this.preventActivation=!1},this),80)},i.prototype._setPosition=function(t,e,i,s,r,n,o){var a=this.layer.getMode();null===t&&(t=this.layer.getProperty("align")),null===e&&(e=this.layer.getProperty("valign")),null===i?i=this.layer.getProperty("left"):o&&(i=this.calculatePositionLeft(t,i)),null===s?s=this.layer.getProperty("top"):o&&(s=this.calculatePositionTop(e,s)),null===r&&(r=this.layer.getProperty("width")),null===n&&(n=this.layer.getProperty("height"));var l=N2Classes.History.get().addValue(this.layer,this.layer.historyStoreOnPlacement,["historyStorePosition",a]);l&&l.setValues({align:this.layer.getRawProperty("align"),valign:this.layer.getRawProperty("valign"),left:this.layer.getRawProperty("left"),top:this.layer.getRawProperty("top"),width:this.layer.getRawProperty("width"),height:this.layer.getRawProperty("height")},{align:t,valign:e,left:i,top:s,width:r,height:n}),N2Classes.History.get().off(),this.layer.store("width",r,!0,"layer"),this.layer.$.trigger("propertyChanged",["width",r]),this.layer.store("height",n,!0,"layer"),this.layer.$.trigger("propertyChanged",["height",n]),this.layer.store("align",t,!0,"layer"),this.layer.$.trigger("propertyChanged",["align",t]),this.layer.store("valign",e,!0,"layer"),this.layer.$.trigger("propertyChanged",["valign",e]),this.layer.store("left",i,!0,"layer"),this.layer.$.trigger("propertyChanged",["left",i]),this.layer.store("top",s,!0,"layer"),this.layer.$.trigger("propertyChanged",["top",s]),N2Classes.History.get().on()},i.prototype.historyStorePosition=function(t,e){this.layer.historyStore(t.align,"align",e),this.layer.historyStore(t.valign,"valign",e),this.layer.historyStore(t.width,"width",e),this.layer.historyStore(t.height,"height",e),this.layer.historyStore(t.left,"left",e),this.layer.historyStore(t.top,"top",e),this.triggerLayerResized()},i.prototype.calculatePositionLeft=function(t,e){var i=this.fragmentEditor.getResponsiveRatioHorizontal();parseInt(this.layer.getProperty("responsiveposition"))||(i=1);var s=this.parent,r={left:0,leftMultiplier:1};if(s&&s.is(":visible")){var n=s.position();switch(this.layer.getProperty("parentalign")){case"right":r.left=n.left+s.width();break;case"center":r.left=n.left+s.width()/2;break;default:r.left=n.left}}else switch(s=this.$layer.parent(),t){case"center":r.left+=s.width()/2;break;case"right":r.left+=s.width()}var e;switch(t){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))}return e},i.prototype.calculatePositionTop=function(t,e){var i=this.fragmentEditor.getResponsiveRatioVertical();parseInt(this.layer.getProperty("responsiveposition"))||(i=1);var s=this.parent,r={top:0,topMultiplier:1};if(s&&s.is(":visible")){var n=s.position();switch(this.layer.getProperty("parentvalign")){case"bottom":r.top=n.top+s.height();break;case"middle":r.top=n.top+s.height()/2;break;default:r.top=n.top}}else switch(s=this.$layer.parent(),t){case"middle":r.top+=s.height()/2;break;case"bottom":r.top+=s.height()}var e;switch(t){case"top":e=-Math.round((r.top-e)*(1/i));break;case"middle":e=-Math.round((r.top-e-this.$layer.height()/2)*(1/i));break;case"bottom":e=-Math.round((r.top-e-this.$layer.height())*(1/i))}return e},i.prototype.moveX=function(t){this._setPosition(null,null,this.layer.getProperty("left")+t,null,null,null,!1)},i.prototype.moveY=function(t){this._setPosition(null,null,null,this.layer.getProperty("top")+t,null,null,!1)},i.prototype.setPositionLeft=function(t){t=this.calculatePositionLeft(this.layer.getProperty("align"),t),this.layer.store("left",t,!0),this.layer.$.trigger("propertyChanged",["left",t])},i.prototype.setPositionTop=function(t){t=this.calculatePositionTop(this.layer.getProperty("valign"),t),
|
1 |
+
(function(){var t=this;t.N2_=t.N2_||{r:[],d:[]},t.N2R=t.N2R||function(){t.N2_.r.push(arguments)},t.N2D=t.N2D||function(){t.N2_.d.push(arguments)}}).call(window),N2D("ContextMenu",function(t,e){function i(e,i){this.isActive=!1,this.$el=e.data("nextendcontextmenu",this),this.parameters=t.extend({selector:!1,onShow:function(){}},i),this.$menu=t('<div class="n2-context-menu"></div>').on("mousedown",function(){N2Classes.WindowManager.get().setMouseDownArea("context-menu")}).appendTo("body"),this.parameters.selector?this.$el.on("contextmenu",this.parameters.selector,t.proxy(this.onShowContextMenu,this)):this.$el.on("contextmenu",t.proxy(this.onShowContextMenu,this))}return i.prototype.onShowContextMenu=function(e){e.preventDefault(),this.clearItems(),this.parameters.onShow.call(this,e,this),this.hasItems&&(e.stopPropagation(),this.isActive=!0,this.$menu.css({left:e.pageX,top:e.pageY}),t("html").on("mouseleave.nextendcontextmenu, click.nextendcontextmenu",t.proxy(this.onHide,this))),this.$menu.toggleClass("n2-active",this.hasItems)},i.prototype.onHide=function(){t("html").off(".nextendcontextmenu"),this.$menu.removeClass("n2-active"),this.isActive=!1},i.prototype.clearItems=function(){this.isActive&&this.onHide(),this.hasItems=!1,this.$menu.html("")},i.prototype.addItem=function(e,i,s){this.hasItems=!0,this.$menu.append(t('<div><i class="n2-i '+i+'"></i><span>'+e+"</span></div>").on("click",s))},t.fn.nextendContextMenu=function(e){return this.each(function(){new i(t(this),e)})},i}),N2D("Zoom",function(t,e){function i(e){this.currentContainerWidth=0,this.devices={unknownUnknown:t("<div />")},this.responsives=[],this.add(e);var i=e.parameters.sliderWidthToDevice.desktopPortrait;this.container=e.containerElement.closest(".n2-ss-container-device,.n2-ss-canvas-slider-container").add(e.containerElement.closest(".n2-ss-slider-outer-container")),this.container.width(i),this.containerWidth=i,this.initZoom();var s=t("#n2-ss-devices .n2-tr"),r=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),r.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,r.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,r.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,r.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,r.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(N2Classes.WindowManager.setMouseDownArea,null,"zoomDeviceClicked"),click:t.proxy(this.setDeviceMode,this)})},this)),e.sliderElement.on("SliderDeviceOrientation",t.proxy(this.onDeviceOrientationChange,this))}var s=null;return i.add=function(t){s=new i(t),i.add=function(t){s.add(t)}},i.prototype.add=function(t){this.responsives.push(t),this.setOrientation("portrait"),t.parameters.onResizeEnabled=0,t.parameters.forceFull=0,t._getDevice=t._getDeviceZoom},i.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")},i.prototype.initZoom=function(){var e=t("#n2-ss-slider-zoom");e.length>0&&("undefined"!=typeof e[0].slide&&(e[0].slide=null),this.zoom=e.removeAttr("slide").prop("slide",!1).nUISlider({step:1,value:1,min:0,max:102}),this.$handle=e.data("nUISlider").handle,this.responsives[0].sliderElement.one("SliderResize",t.proxy(function(t){var e=this.responsives[0].containerElement.width();this.setContainerWidth(t,e,!0)},this)),this.zoom.on({"slide.n2-ss-zoom":t.proxy(this.zoomChange,this),"slidechange.n2-ss-zoom":t.proxy(this.zoomChange,this)}))},i.prototype.zoomChange=function(t,i){if(t.originalEvent!==e){var s,r=i.value,n=1;50>r?n=nextend.smallestZoom/this.containerWidth+Math.max(r/50,0)*(1-nextend.smallestZoom/this.containerWidth):r>52&&(n=1+(r-52)/50),s=parseInt(n*this.containerWidth),this.setContainerWidth(t,s)}},i.prototype.setContainerWidth=function(t,e,i){if(this.currentContainerWidth!=e){this.currentContainerWidth=e,this.$handle.html(e+"px"),this.container.width(e);for(var s=0;s<this.responsives.length;s++)this.responsives[s].doResize(t);if(i){var r=e/this.containerWidth,n=50;1>r?n=(r-nextend.smallestZoom/this.containerWidth)/(1-nextend.smallestZoom/this.containerWidth)*50:r>1&&(n=50*(r-1)+52),this.zoom.nUISlider("option","value",n)}}},i.prototype.setDeviceMode=function(e){var i=t(e.currentTarget);if((e.ctrlKey||e.metaKey)&&this.responsives[0].slider.editor.fragmentEditor){var s=i.data("orientation");this.responsives[0].slider.editor.fragmentEditor.copyOrResetMode(i.data("device")+s[0].toUpperCase()+s.substr(1))}else this.setOrientation(i.data("orientation")),this.setContainerWidth(e,this.getModeWidth(i.data("device")),!0)},i.prototype.getModeWidth=function(t){var e,i=this.responsives[0];e=i.orientationMode==N2Classes.SmartSliderResponsive.OrientationMode.ADMIN_PORTRAIT?N2Classes.SmartSliderResponsive.DeviceOrientation.PORTRAIT:N2Classes.SmartSliderResponsive.DeviceOrientation.LANDSCAPE;var s=i.parameters.sliderWidthToDevice[t+N2Classes.SmartSliderResponsive._DeviceOrientation[e]];if("mobile"==t)switch(N2Classes.SmartSliderResponsive._DeviceOrientation[e]){case"Portrait":s=Math.max(nextend.smallestZoom,320)}return s},i.prototype.setOrientation=function(t){if("portrait"==t)for(var e=0;e<this.responsives.length;e++)this.responsives[e].orientationMode=N2Classes.SmartSliderResponsive.OrientationMode.ADMIN_PORTRAIT;else for(var e=0;e<this.responsives.length;e++)this.responsives[e].orientationMode=N2Classes.SmartSliderResponsive.OrientationMode.ADMIN_LANDSCAPE},i}),N2D("CreateSlider",function(t,e){function i(e,i,s){this.addToGroupModal=null,this.groupID=e,this.ajaxUrl=i,this.shouldSkipLicenseModal=s,t(".n2-ss-create-slider").click(t.proxy(function(t){t.preventDefault(),t.stopImmediatePropagation(),this.showModal()},this)),this.notificationStack=new N2Classes.NotificationStackModal(t("body")),t(".n2-ss-add-sample-slider").click(t.proxy(function(t){t.preventDefault(),t.stopImmediatePropagation(),this.showDemoSliders()},this)),"createslider"===window.location.hash.substring(1)&&this.showModal()}return i.prototype.showModal=function(){if(!this.createSliderModal){var e=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"});var r=[550,540];this.createSliderModal=new N2Classes.NextendModal({zero:{size:r,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 r=this.controls.find(".n2-button-green"),n=this.content.find(".n2-form").on("submit",function(t){t.preventDefault(),r.trigger("click")});n.append(this.createInput(n2_("Slider name"),"createslidertitle","width: 240px;")),n.append(this.createInputUnit(n2_("Width"),"createsliderwidth","px","width: 30px;")),n.append(this.createInputUnit(n2_("Height"),"createsliderheight","px","width: 30px;")),new N2Classes.FormElementAutocompleteSimple("createsliderwidth",["1920","1200","1000","800","600","400"]),new N2Classes.FormElementAutocompleteSimple("createsliderheight",["800","600","500","400","300","200"]);var o=t("#createslidertitle").val(n2_("Slider")).focus(),a=t("#createsliderwidth").val(1200),l=t("#createsliderheight").val(500);a.parent().addClass("n2-form-element-autocomplete"),l.parent().addClass("n2-form-element-autocomplete"),this.createHeading(n2_("Preset")).appendTo(this.content);var h=120,d=this.createImageRadio(s).css({height:h,display:"flex",flexWrap:"wrap"}).appendTo(this.content),p=d.find("input");d.css("overflow","hidden"),this.createHeading(n2_("Import Sample Sliders")).appendTo(this.content),t('<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",t.proxy(function(){this.hide(),e.showDemoSliders()},this)).appendTo(this.content),r.on("click",t.proxy(function(){N2Classes.AjaxHelper.ajax({type:"POST",url:N2Classes.AjaxHelper.makeAjaxUrl(i,{nextendaction:"create"}),data:{groupID:e.groupID,sliderTitle:o.val(),sliderSizeWidth:a.val(),sliderSizeHeight:l.val(),preset:p.val()},dataType:"json"}).done(t.proxy(function(t){N2Classes.AjaxHelper.startLoading()},this))},this))}}}})}this.createSliderModal.show()},i.prototype.showDemoSliders=function(){var e=this;t("body").css("overflow","hidden");var i=0,s=t('<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"),r=function(){t("body").css("overflow",""),s.remove(),window.removeEventListener("message",o,!1),e.notificationStack.popStack()},n=function(t){N2Classes.AjaxHelper.ajax({type:"POST",url:N2Classes.AjaxHelper.makeAjaxUrl(e.ajaxUrl,{nextendaction:"importDemo"}),data:{groupID:e.groupID,key:N2Classes.Base64.encode(t.replace(/^(http(s)?:)?\/\//,"//"))},dataType:"json"}).fail(function(){})},o=function(t){if("http://smartslider3.com"===t.origin||"https://smartslider3.com"===t.origin){var e=t.data;switch(e.key){case"importSlider":return void("function"==typeof nextend.joinCommunity?nextend.joinCommunity(function(){n(e.data.href)}):n(e.data.href));case"closeWindow":r()}}};this.notificationStack.enableStack(),N2Classes.Esc.add(t.proxy(function(){return r(),!0},this)),window.addEventListener("message",o,!1)},i}),N2D("ManageSliders",function(t,e){function i(e,i,s){this.groupID=e,this.ajaxUrl=i,this.sliders=[],this.sliderPanel=t("#n2-ss-slider-container"),this.orderBy="ordering"==this.sliderPanel.data("orderby"),this.slidersContainer=this.sliderPanel.find(".n2-ss-sliders-container");for(var r=this.slidersContainer.find(".n2-ss-box-slider"),n=0;n<r.length;n++)this.sliders.push(new N2Classes.Slider(this,r.eq(n)));this.changed(),this.initMenu(),this.initOrderable(),this.create=new N2Classes.CreateSlider(e,i,s),this.initBulk()}return i.prototype.changed=function(){t("html").attr("data-sliders",this.sliders.length)},i.prototype.initSliders=function(){for(var e=this.slidersContainer.find(".n2-ss-box-slider"),i=[],s=0;s<e.length;s++){var r=e.eq(s).data("slider");i.push(r)}this.sliders=i,this.changed(),t(window).triggerHandler("SmartSliderSidebarSlidersChanged")},i.prototype.initOrderable=function(){if(this.orderBy){var e={helper:"clone",items:"> .n2-ss-box-slider",stop:t.proxy(this.saveOrder,this),placeholder:"n2-box-sortable-placeholder",distance:10};this.slidersContainer.nUISortable(e)}},i.prototype.saveOrder=function(e,i){for(var s=this.slidersContainer.find(".n2-ss-box-slider"),r=[],n=[],o=[],a=0;a<s.length;a++){var l=s.eq(a).data("slider");r.push(l),n.push(l.getId())}for(var a=0;a<this.sliders.length;a++)o.push(this.sliders[a].getId());if(JSON.stringify(o)!=JSON.stringify(n)){t(window).triggerHandler("SmartSliderSidebarSlidersOrderChanged");var h={nextendcontroller:"sliders",nextendaction:"order"};N2Classes.AjaxHelper.ajax({type:"POST",url:N2Classes.AjaxHelper.makeAjaxUrl(this.ajaxUrl,h),data:{groupID:this.groupID,sliderorder:n,isReversed:"DESC"==this.sliderPanel.data("orderbydirection")?1:0}}),this.sliders=r}},i.prototype.initMenu=function(){this.slider=null,this.menu=t("#n2-ss-slider-menu").detach().addClass("n2-inited"),this.menuActions={duplicate:this.menu.find(".n2-ss-duplicate").on("click",t.proxy(function(t){this.slider.duplicate(t)},this)),"delete":this.menu.find(".n2-ss-delete").on("click",t.proxy(function(t){this.slider["delete"](t)},this)),preview:this.menu.find(".n2-ss-preview").on("click",t.proxy(function(t){this.slider.preview(t)},this))},this.menu.find(".n2-button").on("click",t.proxy(function(e){e.preventDefault(),e.stopPropagation(),this.menu.hasClass("n2-active")?this.menu.removeClass("n2-active").off("mouseleave"):this.menu.addClass("n2-active").on("mouseleave",function(){t(this).removeClass("n2-active")})},this))},i.prototype.showMenu=function(t){this.slider=t,this.menu.appendTo(t.box)},i.prototype.hideMenu=function(){this.menu.hasClass("n2-active")&&this.menu.removeClass("n2-active").off("mouseleave"),this.menu.detach()},i.prototype.deleteSliders=function(e,i){this.hideMenu();var s=i[0].box.find(".n2-box-placeholder-title a").text();i.length>1&&(s+=" and "+(i.length-1)+" more"),N2Classes.NextendModal.deleteModal("slider-delete",s,t.proxy(function(){N2Classes.AjaxHelper.ajax({url:N2Classes.AjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendcontroller:"sliders",nextendaction:"delete"}),type:"POST",data:{sliders:e}}).done(t.proxy(function(){for(var t=0;t<i.length;t++)i[t].deleted();this.initSliders(),this.leaveBulk()},this))},this))},i.prototype.duplicateSliders=function(e,i){for(var s=0;s<this.sliders.length;s++)this.sliders[s].selected&&this.sliders[s].duplicate(t.Event("click",{currentTarget:null}))},i.prototype.exportSliders=function(e,i){window.location.href=N2Classes.AjaxHelper.makeFallbackUrl(this.ajaxUrl,{nextendcontroller:"sliders",nextendaction:"exportAll"})+"&"+t.param({sliders:e,currentGroupID:this.groupID})},i.prototype.initBulk=function(){this.selection=[],this.isBulkSelection=!1;var e=t(".n2-bulk-select").find("a");e.eq(0).on("click",t.proxy(function(t){t.preventDefault(),this.bulkSelect(function(t){t.select()})},this)),e.eq(1).on("click",t.proxy(function(t){t.preventDefault(),this.bulkSelect(function(t){t.deSelect()})},this));t(".n2-bulk-actions").find("a").on("click",t.proxy(function(e){switch(e.preventDefault(),t(e.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(t){0==this.selection.length&&this.enterBulk(),this.selection.push(t)},i.prototype.removeSelection=function(e){this.selection.splice(t.inArray(e,this.selection),1),0==this.selection.length&&this.leaveBulk()},i.prototype.bulkSelect=function(t){for(var e=0;e<this.sliders.length;e++)t(this.sliders[e])},i.prototype.bulkAction=function(t,e){var i=[],s=[];this.bulkSelect(function(t){!t.selected||e&&t.isGroup||(i.push(t),s.push(t.getId()))}),s.length?(this[t](s,i),this.leaveBulk()):e?N2Classes.Notification.notice("Please select one or more sliders for the action!"):N2Classes.Notification.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.nUISortable("option","disabled",!0),t("#n2-admin").addClass("n2-ss-has-box-selection"))},i.prototype.leaveBulk=function(){if(this.isBulkSelection){this.orderBy&&this.slidersContainer.nUISortable("option","disabled",!1),t("#n2-admin").removeClass("n2-ss-has-box-selection");for(var e=0;e<this.sliders.length;e++)this.sliders[e].deSelect();this.selection=[],this.isBulkSelection=!1}},i}),N2D("Slider",function(t,e){function i(e,i){this.selected=!1,this.manager=e,this.box=i.data("slider",this).addClass("n2-clickable"),this.isGroup=this.box.hasClass("n2-ss-box-slider-group"),this.box.on("mouseenter",t.proxy(function(){this.manager.showMenu(this)},this)).on("mouseleave",t.proxy(function(){this.manager.hideMenu()},this)).on("click.n2-slider",t.proxy(this.goToEdit,this)),this.box.find(".n2-ss-box-select").on("click",t.proxy(function(t){t.stopPropagation(),t.preventDefault(),this.invertSelection()},this))}return i.prototype.getId=function(){return this.box.data("sliderid")},i.prototype.goToEdit=function(t,e){if("A"!==t.target.tagName){var i=this.box.data("editurl");"undefined"!=typeof e&&e?window.open(i,"_blank"):window.location=i}},i.prototype.preview=function(t){t.stopPropagation(),t.preventDefault(),window.open(N2Classes.AjaxHelper.makeFallbackUrl(this.box.data("editurl"),{nextendcontroller:"preview",nextendaction:"index"}),"_blank")},i.prototype.duplicate=function(e){e.stopPropagation(),e.preventDefault();var s=t.Deferred();return N2Classes.AjaxHelper.ajax({url:N2Classes.AjaxHelper.makeAjaxUrl(this.box.data("editurl"),{nextendcontroller:"slider",nextendaction:"duplicate"})}).done(t.proxy(function(e){var r=t(e.data).insertAfter(this.box),n=new i(this.manager,r);this.manager.initSliders(),s.resolve(n)},this)),s},i.prototype["delete"]=function(t){t.stopPropagation(),t.preventDefault(),this.manager.deleteSliders([this.getId()],[this])},i.prototype.deleted=function(){this.box.remove()},i.prototype.invertSelection=function(t){t&&t.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))},i}),N2D("FormElementAnimationManager",["FormElement"],function(t,e){function i(e,i){this.element=t("#"+e),this.managerIdentifier=i,this.element.parent().on("click",t.proxy(this.show,this)),this.element.siblings(".n2-form-element-clear").on("click",t.proxy(this.clear,this)),this.name=this.element.siblings("input"),this.updateName(this.element.val()),N2Classes.FormElement.prototype.constructor.apply(this,arguments)}return i.prototype=Object.create(N2Classes.FormElement.prototype),i.prototype.constructor=i,i.prototype.show=function(e){e.preventDefault(),nextend[this.managerIdentifier].show(this.element.val(),t.proxy(this.save,this))},i.prototype.clear=function(t){t.preventDefault(),t.stopPropagation(),this.val("")},i.prototype.save=function(t,e){this.val(e)},i.prototype.val=function(t){this.element.val(t),this.updateName(t),this.triggerOutsideChange()},i.prototype.insideChange=function(t){this.element.val(t),this.updateName(t),this.triggerInsideChange()},i.prototype.updateName=function(t){t=""==t?n2_("Disabled"):t.split("||").length>1?n2_("Multiple animations"):n2_("Single animation"),this.name.val(t)},i}),N2D("FormElementBackground",["FormElement"],function(t,e){function i(e,i){this.value="",this.element=t("#"+e),this.$container=this.element.closest(".n2-form-tab"),this.panel=t("#"+e+"-panel"),this.setValue(i),this.options=this.panel.find(".n2-subform-image-option").on("click",t.proxy(this.selectOption,this)),this.active=this.getIndex(this.options.filter(".n2-active").get(0)),this.element.on("change",t.proxy(function(){this.insideChange(this.element.val())},this)),N2Classes.FormElement.prototype.constructor.apply(this,arguments)}return i.prototype=Object.create(N2Classes.FormElement.prototype),i.prototype.constructor=i,i.prototype.selectOption=function(e){var i=this.getIndex(e.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=t(e.currentTarget).data("value");this.insideChange(s)}},i.prototype.setValue=function(t){this.$container.removeClass("n2-ss-background-type-"+this.value),this.value=t,this.$container.addClass("n2-ss-background-type-"+this.value)},i.prototype.insideChange=function(t){this.setValue(t),this.element.val(t),this.options.removeClass("n2-active"),this.options.filter('[data-value="'+t+'"]').addClass("n2-active"),this.triggerInsideChange()},i.prototype.getIndex=function(e){return t.inArray(e,this.options)},i}),N2D("FormElementColumns",["FormElement"],function(t,e){function i(e){this.denominators={1:100,2:100,3:144,4:100,5:100,6:144},this.element=t("#"+e),N2Classes.FormElement.prototype.constructor.apply(this,arguments),this.$c=t("#"+e).parent(),this.$container=this.$c.find(".n2-ss-columns-element-container"),this.containerWidth=284,this.maxWidth=0,this.$container.nUISortable({axis:"x",items:".n2-ss-columns-element-column",helper:"clone_hide",start:t.proxy(function(t,e){this.$container.addClass("n2-sortable-currently-sorted"),e.placeholder.css({width:e.item.width(),visibility:"hidden"});var i=this.$container.find(".n2-ss-columns-element-column");e.item.data("index",i.index(e.item))},this),stop:t.proxy(function(t,e){var i=this.$container.find(".n2-ss-columns-element-column"),s=e.item.data("index"),r=i.index(e.item);s!=r&&(this.currentRow.moveCol(s,r),e.item.data("index",null)),this.makeResizable(),this.$container.removeClass("n2-sortable-currently-sorted")},this)}),this.$c.find(".n2-ss-columns-element-add-col").on({click:t.proxy(function(){this.currentRow.createCol()},this)})}return i.prototype=Object.create(N2Classes.FormElement.prototype),i.prototype.constructor=i,i.prototype.getDenominator=function(t){return this.denominators[t]===e&&(this.denominators[t]=15*t),this.denominators[t]},i.prototype.setRow=function(t){this.currentRow=t,this.insideChange(t.getColumnsOrdered())},i.prototype.setValue=function(t){},i.prototype.insideChange=function(t){this.start(t)},i.prototype.activateColumn=function(t){var e=this.$container.find(".n2-ss-columns-element-column").index(t.currentTarget);this.currentRow.activateColumn(e,t)},i.prototype.start=function(e){this.percentages=[];for(var i=e.split("+"),s=0;s<i.length;s++)this.percentages.push(new Fraction(i[s]));this.refreshMaxWidth(),this.$container.empty();for(var s=0;s<this.percentages.length;s++)this.updateColumn(t('<div class="n2-ss-columns-element-column">').on("click",t.proxy(this.activateColumn,this)).appendTo(this.$container),this.percentages[s]);this.makeResizable()},i.prototype.refreshMaxWidth=function(){this.maxWidth=this.containerWidth-15*(this.percentages.length-1)},i.prototype.updateColumn=function(t,e){t.css("width",this.maxWidth*e.valueOf()+"px").html(Math.round(100*e.valueOf()*10)/10+"%")},i.prototype.makeResizable=function(){this.handles&&this.handles.remove(),this.$columns=this.$container.find(".n2-ss-columns-element-column"),t('<div class="n2-ss-columns-element-handle"><div class="n2-i n2-i-more"></div></div>').insertAfter(this.$columns.not(this.$columns.last())),this.handles=this.$container.find(".n2-ss-columns-element-handle").on("mousedown",t.proxy(this._resizeStart,this))},i.prototype._resizeStart=function(e){var i=this.handles.index(e.currentTarget),s=this.$container.offset().left+8;this.resizeContext={index:i,cLeft:s,$currentCol:this.$columns.eq(i),$nextCol:this.$columns.eq(i+1),startX:Math.max(0,Math.min(e.clientX-s,this.containerWidth))},this._resizeMove(e),t("html").off(".resizecol").on({"mousemove.resizecol":t.proxy(this._resizeMove,this),"mouseup.resizecol mouseleave.resizecol":t.proxy(this._resizeStop,this)})},i.prototype._resizeMove=function(e){e.preventDefault();var i=Math.max(0,Math.min(e.clientX-this.resizeContext.cLeft,this.containerWidth)),s=this.getDenominator(this.percentages.length),r=new Fraction(Math.round((i-this.resizeContext.startX)/(this.maxWidth/s)),s);r.compare(this.percentages[this.resizeContext.index].clone().mul(-1))<0&&(r=this.percentages[this.resizeContext.index].clone().mul(-1)),r.compare(this.percentages[this.resizeContext.index+1])>0&&(r=this.percentages[this.resizeContext.index+1].clone());var n=this.percentages[this.resizeContext.index].add(r),o=this.percentages[this.resizeContext.index+1].sub(r);this.updateColumn(this.resizeContext.$currentCol,n),this.updateColumn(this.resizeContext.$nextCol,o);var a=t.extend([],this.percentages);return a[this.resizeContext.index]=n,a[this.resizeContext.index+1]=o,this.onColumnWidthChange(a),[n,o]},i.prototype._resizeStop=function(e){var i=this._resizeMove(e);this.percentages[this.resizeContext.index]=i[0],this.percentages[this.resizeContext.index+1]=i[1],t("html").off(".resizecol"),delete this.resizeContext,this.currentRow.setRealColsWidth(this.percentages)},i.prototype.onColumnWidthChange=function(t){for(var e=[],i=0;i<t.length;i++)e.push(t[i].valueOf());this.currentRow.updateColumnWidth(e)},i}),function(t){"use strict";function e(t,e){return isNaN(t=parseInt(t,10))&&i(),t*e}function i(){throw"Invalid Param"}function s(t,e){return this instanceof s?(o(t,e),t=s.REDUCE?d(n.d,n.n):1,this.s=n.s,this.n=n.n/t,void(this.d=n.d/t)):new s(t,e)}var r=2e3,n={s:1,n:0,d:1},o=function(t,s){var r,o=0,a=1,l=1,h=0,d=0,p=0,c=1,u=1,y=0,g=1,f=1,m=1,v=1e7;if(void 0===t||null===t);else if(void 0!==s)o=t,a=s,l=o*a;else switch(typeof t){case"object":"d"in t&&"n"in t?(o=t.n,a=t.d,"s"in t&&(o*=t.s)):0 in t?(o=t[0],1 in t&&(a=t[1])):i(),l=o*a;break;case"number":if(0>t&&(l=t,t=-t),t%1===0)o=t;else if(t>0){for(t>=1&&(u=Math.pow(10,Math.floor(1+Math.log(t)/Math.LN10)),t/=u);v>=g&&v>=m;){if(r=(y+f)/(g+m),t===r){v>=g+m?(o=y+f,a=g+m):m>g?(o=f,a=m):(o=y,a=g);break}t>r?(y+=f,g+=m):(f+=y,m+=g),g>v?(o=f,a=m):(o=y,a=g)}o*=u}else(isNaN(t)||isNaN(s))&&(a=o=NaN);break;case"string":if(g=t.match(/\d+|./g),"-"===g[y]?(l=-1,y++):"+"===g[y]&&y++,g.length===y+1?d=e(g[y++],l):"."===g[y+1]||"."===g[y]?("."!==g[y]&&(h=e(g[y++],l)),y++,(y+1===g.length||"("===g[y+1]&&")"===g[y+3]||"'"===g[y+1]&&"'"===g[y+3])&&(d=e(g[y],l),c=Math.pow(10,g[y].length),y++),("("===g[y]&&")"===g[y+2]||"'"===g[y]&&"'"===g[y+2])&&(p=e(g[y+1],l),u=Math.pow(10,g[y+1].length)-1,y+=3)):"/"===g[y+1]||":"===g[y+1]?(d=e(g[y],l),c=e(g[y+2],1),y+=3):"/"===g[y+3]&&" "===g[y+1]&&(h=e(g[y],l),d=e(g[y+2],l),c=e(g[y+4],1),y+=5),g.length<=y){a=c*u,l=o=p+a*h+u*d;break}default:i()}if(0===a)throw"DIV/0";n.s=0>l?-1:1,n.n=Math.abs(o),n.d=Math.abs(a)},a=function(t,e,i){for(var s=1;e>0;t=t*t%i,e>>=1)1&e&&(s=s*t%i);return s},l=function(t,e){for(;e%2===0;e/=2);for(;e%5===0;e/=5);if(1===e)return 0;for(var i=10%e,s=1;1!==i;s++)if(i=10*i%e,s>r)return 0;return s},h=function(t,e,i){for(var s=1,r=a(10,i,e),n=0;300>n;n++){if(s===r)return n;s=10*s%e,r=10*r%e}return 0},d=function(t,e){if(!t)return e;if(!e)return t;for(;;){if(t%=e,!t)return e;if(e%=t,!e)return t}};s.REDUCE=1,s.prototype={s:1,n:0,d:1,abs:function(){return new s(this.n,this.d)},neg:function(){return new s(-this.s*this.n,this.d)},add:function(t,e){return o(t,e),new s(this.s*this.n*n.d+n.s*this.d*n.n,this.d*n.d)},sub:function(t,e){return o(t,e),new s(this.s*this.n*n.d-n.s*this.d*n.n,this.d*n.d)},mul:function(t,e){return o(t,e),new s(this.s*n.s*this.n*n.n,this.d*n.d)},div:function(t,e){return o(t,e),new s(this.s*n.s*this.n*n.d,this.d*n.n)},clone:function(){return new s(this)},mod:function(t,e){return isNaN(this.n)||isNaN(this.d)?new s(NaN):void 0===t?new s(this.s*this.n%this.d,1):(o(t,e),0===n.n&&0===this.d&&s(0,0),new s(this.s*n.d*this.n%(n.n*this.d),n.d*this.d))},gcd:function(t,e){return o(t,e),new s(d(n.n,this.n),n.d*this.d/d(n.d,this.d))},lcm:function(t,e){return o(t,e),0===n.n&&0===this.n?new s:new s(n.n*this.n/d(n.n,this.n),d(n.d,this.d))},ceil:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new s(NaN):new s(Math.ceil(t*this.s*this.n/this.d),t)},floor:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new s(NaN):new s(Math.floor(t*this.s*this.n/this.d),t)},round:function(t){return t=Math.pow(10,t||0),isNaN(this.n)||isNaN(this.d)?new s(NaN):new s(Math.round(t*this.s*this.n/this.d),t)},inverse:function(){return new s(this.s*this.d,this.n)},pow:function(t){return 0>t?new s(Math.pow(this.s*this.d,-t),Math.pow(this.n,-t)):new s(Math.pow(this.s*this.n,t),Math.pow(this.d,t))},equals:function(t,e){return o(t,e),this.s*this.n*n.d===n.s*n.n*this.d},compare:function(t,e){o(t,e);var i=this.s*this.n*n.d-n.s*n.n*this.d;return(i>0)-(0>i)},divisible:function(t,e){return o(t,e),!(!(n.n*this.d)||this.n*n.d%(n.n*this.d))},valueOf:function(){return this.s*this.n/this.d},toFraction:function(t){var e,i="",s=this.n,r=this.d;return this.s<0&&(i+="-"),1===r?i+=s:(t&&(e=Math.floor(s/r))>0&&(i+=e,i+=" ",s%=r),i+=s,i+="/",i+=r),i},toLatex:function(t){var e,i="",s=this.n,r=this.d;return this.s<0&&(i+="-"),1===r?i+=s:(t&&(e=Math.floor(s/r))>0&&(i+=e,s%=r),i+="\\frac{",i+=s,i+="}{",i+=r,i+="}"),i},toContinued:function(){var t,e=this.n,i=this.d,s=[];do s.push(Math.floor(e/i)),t=e%i,e=i,i=t;while(1!==e);return s},toString:function(){var t,e=this.n,i=this.d;if(isNaN(e)||isNaN(i))return"NaN";s.REDUCE||(t=d(e,i),e/=t,i/=t);for(var r=String(e).split(""),n=0,o=[~this.s?"":"-","",""],a="",p=l(e,i),c=h(e,i,p),u=-1,y=1,g=15+p+c+r.length,f=0;g>f;f++,n*=10){if(f<r.length?n+=Number(r[f]):(y=2,u++),p>0)if(u===c)o[y]+=a+"(",a="";else if(u===p+c){o[y]+=a+")";break}n>=i?(o[y]+=a+(n/i|0),a="",n%=i):y>1?a+="0":o[y]&&(o[y]+="0")}return o[0]+=o[1]||"0",o[2]?o[0]+"."+o[2]:o[0]}},t.Fraction=s}(window),N2D("FormElementSliderType",function(t,e){function i(e){this.element=t("#"+e),this.setAttribute(),this.element.on("nextendChange",t.proxy(this.setAttribute,this))}return i.prototype.setAttribute=function(){var e=this.element.val();t("#n2-admin").data("slider-type",e).attr("data-slider-type",e),"block"===this.element.val()&&t(".n2-fm-shadow").trigger("click")},i}),N2D("FormElementSliderWidgetArea",["FormElement"],function(t,e){function i(e){this.element=t("#"+e),this.area=t("#"+e+"_area"),this.areas=this.area.find(".n2-area"),this.areas.on("click",t.proxy(this.chooseArea,this)),N2Classes.FormElement.prototype.constructor.apply(this,arguments)}return i.prototype=Object.create(N2Classes.FormElement.prototype),i.prototype.constructor=i,i.prototype.chooseArea=function(e){var i=parseInt(t(e.target).data("area"));this.element.val(i),this.setSelected(i),this.triggerOutsideChange()},i.prototype.insideChange=function(t){t=parseInt(t),this.element.val(t),this.setSelected(t),this.triggerInsideChange()},i.prototype.setSelected=function(t){this.areas.removeClass("n2-active"),this.areas.eq(t-1).addClass("n2-active")},i}),N2D("FormElementWidgetPosition",function(t,e){function i(e){this.element=t("#"+e+"-mode"),this.container=this.element.closest(".n2-form-element-mixed"),this.tabs=this.container.find("> .n2-mixed-group"),this.element.on("nextendChange",t.proxy(this.onChange,this)),this.onChange()}return i.prototype.onChange=function(){var t=this.element.val();"advanced"===t?(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"))},i}),N2D("SmartSliderGeneratorRecords",function(t,e){function i(e){this.ajaxUrl=e,t("#generatorrecord-viewer").on("click",t.proxy(this.showRecords,this))}return i.prototype.showRecords=function(e){
|
2 |
+
e.preventDefault(),N2Classes.AjaxHelper.ajax({type:"POST",url:this.ajaxUrl,data:t("#smartslider-form").serialize(),dataType:"json"}).done(function(t){var e=new N2Classes.NextendModal({zero:{size:[1300,700],title:"Records",content:t.data.html}},!0);e.content.css("overflow","auto")}).error(function(t){if(200==t.status){var e=new N2Classes.NextendModal({zero:{size:[1300,700],title:"Response",content:t.responseText}},!0);e.content.css("overflow","auto")}})},i}),N2D("QuickSlides",function(t,e){function i(e){var i=t("#n2-quick-slides-edit");i.length<1||(this.ajaxUrl=e,i.on("click",t.proxy(this.openEdit,this)))}return i.prototype.openEdit=function(e){e.preventDefault();var i=t("#n2-ss-slides .n2-box-slide"),s=this;this.modal=new N2Classes.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 e=this.controls.find(".n2-button-green"),r=this.content.find(".n2-form").on("submit",function(t){t.preventDefault(),e.trigger("click")}),n=r.find("table");i.each(t.proxy(function(e,i){var r=t(i),o=t("<tr />").appendTo(n),a=r.data("slideid");o.append(t("<td />").append('<img src="'+r.data("image")+'" style="width:100px;"/>')),o.append(t("<td />").append(s.createInput(n2_("Name"),"title-"+a,r.data("title"),"width: 240px;"))),o.append(t("<td />").append(s.createTextarea(n2_("Description"),"description-"+a,r.data("description"),"width: 330px;height:24px;")));var l=r.data("link").split("|*|");o.append(t("<td />").append(s.createLink(n2_("Link"),"link-"+a,l[0],"width: 180px;"))),o.append(t("<td />").append(s.createTarget(n2_("Target window"),"target-"+a,l.length>1?l[1]:"_self",""))),new N2Classes.FormElementUrl("link-"+a,nextend.NextendElementUrlParams)},this)),e.on("click",t.proxy(function(e){var r={};i.each(t.proxy(function(e,i){var s=t(i),n=s.data("slideid"),o=t("#title-"+n).val(),a=t("#description-"+n).val(),l=t("#link-"+n).val()+"|*|"+t("#target-"+n).val();o==s.data("title")&&a==s.data("description")&&l==s.data("link")||(r[n]={name:o,description:a,link:l})},this)),jQuery.isEmptyObject(r)?this.hide(e):(this.hide(e),N2Classes.AjaxHelper.ajax({type:"POST",url:N2Classes.AjaxHelper.makeAjaxUrl(s.ajaxUrl),data:{changed:N2Classes.Base64.encode(JSON.stringify(r))},dataType:"json"}).done(t.proxy(function(e){var i=e.data;for(var s in i){var r=t('.n2-box-slide[data-slideid="'+s+'"]');r.find(".n2-box-placeholder a.n2-h4").html(i[s].title),r.attr("data-title",i[s].rawTitle),r.data("title",i[s].rawTitle),r.attr("data-description",i[s].rawDescription),r.data("description",i[s].rawDescription),r.attr("data-link",i[s].rawLink),r.data("link",i[s].rawLink)}},this)))},this))}}}}),this.modal.setCustomClass("n2-ss-quick-slides-edit-modal"),this.modal.show()},i.prototype.createInput=function(e,i,s){var r="";4==arguments.length&&(r=arguments[3]);var n=t('<div class="n2-form-element-mixed"><div class="n2-mixed-group"><div class="n2-mixed-label"><label for="'+i+'">'+e+'</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="'+r+'"></div></div></div></div>');return n.find("input").val(s),n},i.prototype.createTextarea=function(e,i,s){var r="";4==arguments.length&&(r=arguments[3]);var n=t('<div class="n2-form-element-mixed"><div class="n2-mixed-group"><div class="n2-mixed-label"><label for="'+i+'">'+e+'</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;'+r+'"></textarea></div></div></div></div>');return n.find("textarea").val(s),n},i.prototype.createLink=function(e,i,s){var r="";4==arguments.length&&(r=arguments[3]);var n=t('<div class="n2-form-element-mixed"><div class="n2-mixed-group"><div class="n2-mixed-label"><label for="'+i+'">'+e+'</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="'+r+'"><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 n.find("input").val(s),n},i.prototype.createTarget=function(e,i,s){var r="";4==arguments.length&&(r=arguments[3]);var n=t('<div class="n2-form-element-mixed"><div class="n2-mixed-group"><div class="n2-mixed-label"><label for="'+i+'">'+e+'</label></div><div class="n2-mixed-element"><div class="n2-form-element-list"><select id="'+i+'" autocomplete="off" style="'+r+'"><option value="_self">Self</option><option value="_blank">Blank</option></select></div></div></div></div>');return n.find("select").val(s),n},i}),N2D("Slide",function(t,e){function i(e,i){this.selected=!1,this.manager=e,this.box=i.data("slide",this).addClass("n2-clickable"),this.box.on("mouseenter",t.proxy(function(){this.manager.showMenu(this)},this)).on("mouseleave",t.proxy(function(){this.manager.hideMenu()},this)).on("click.n2-slide",t.proxy(this.goToEdit,this)),this.publishElement=this.box.find(".n2-slide-published").on("click",t.proxy(this.switchPublished,this)),this.box.find(".n2-ss-box-select").on("click",t.proxy(function(t){t.stopPropagation(),t.preventDefault(),this.invertSelection()},this))}return i.prototype.getId=function(){return this.box.data("slideid")},i.prototype.setFirst=function(e){e.stopPropagation(),e.preventDefault(),N2Classes.AjaxHelper.ajax({url:N2Classes.AjaxHelper.makeAjaxUrl(this.manager.ajaxUrl,{nextendaction:"first"}),type:"POST",data:{id:this.getId()}}).done(t.proxy(function(){this.manager.unsetFirst(),this.box.addClass("n2-slide-state-first")},this))},i.prototype.unsetFirst=function(){this.box.removeClass("n2-slide-state-first")},i.prototype.switchPublished=function(t){t.stopPropagation(),t.preventDefault(),this.isPublished()?this.manager.unPublishSlides([this.getId()],[this]):this.manager.publishSlides([this.getId()],[this])},i.prototype.isPublished=function(){return this.box.hasClass("n2-slide-state-published")},i.prototype.published=function(){this.box.addClass("n2-slide-state-published")},i.prototype.unPublished=function(){this.box.removeClass("n2-slide-state-published")},i.prototype.goToEdit=function(e,i){if(this.manager.isBulkSelection)this.invertSelection(),e.preventDefault();else if("A"!==e.target.tagName){var s=this.box.data("editurl");"undefined"!=typeof i&&i?window.open(s,"_blank"):s===location.href?t("#n2-admin").toggleClass("n2-ss-slides-outer-container-visible"):window.location=s}},i.prototype.duplicate=function(e){e.stopPropagation(),e.preventDefault();var s=t.Deferred();return N2Classes.AjaxHelper.ajax({url:N2Classes.AjaxHelper.makeAjaxUrl(this.box.data("editurl"),{nextendaction:"duplicate"})}).done(t.proxy(function(e){var r=t(e.data).insertAfter(this.box),n=new i(this.manager,r);this.manager.initSlides(),s.resolve(n)},this)),s},i.prototype["delete"]=function(t){t.stopPropagation(),t.preventDefault(),this.manager.deleteSlides([this.getId()],[this])},i.prototype.deleted=function(){this.box.remove()},i.prototype.invertSelection=function(t){t&&t.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))},i.prototype.publish=function(t){this.switchPublished(t)},i.prototype.unpublish=function(t){this.switchPublished(t)},i.prototype.generator=function(t){window.location=this.box.data("generator")},i.prototype.copy=function(e){this.manager.showSliderSelector(n2_("Copy slide to ..."),t.proxy(function(t){N2Classes.AjaxHelper.ajax({url:N2Classes.AjaxHelper.makeAjaxUrl(this.box.data("editurl"),{nextendaction:"copy",targetSliderID:t.sliderID})})},this))},i}),N2D("SlidesManager",function(t,e){function i(i,s,r,n,o,a){this.quickPostModal=null,this.quickVideoModal=null,this.parameters=r,this.slides=[],this.ajaxUrl=i,this.contentAjaxUrl=s,this.slidesPanel=t("#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"),h=0;h<l.length;h++)this.slides.push(new N2Classes.Slide(this,l.eq(h)));if(t("body").attr("data-slides",this.slides.length),t("#n2-ss-slides").find(".n2-ss-slides-create-action-box").on("mouseup",t.proxy(function(i){i.preventDefault();var s=0;if(i.which!==e&&(s=i.which),2>=s)switch(t(i.currentTarget).data("action")){case"image":this.addQuickImage(i);break;case"video":this.addQuickVideo(i);break;case"post":this.addQuickPost(i);break;case"empty":case"static":case"dynamic":2===s?window.open(t(i.currentTarget).data("href"),"_blank").focus():window.location=t(i.currentTarget).data("href");break;case"library":}},this)),t(".n2-box-slide-dummy").on("click",t.proxy(this.addQuickImage,this)),this.initBulk(),!n){var d=[];this.slidesContainer.nUIFileUpload({url:o,pasteZone:!1,dataType:"json",paramName:"image",dropZone:t(".n2-ss-slides-outer-container"),add:t.proxy(function(t,e){e.formData={path:"/"+a},e.submit()},this),done:t.proxy(function(t,e){var i=e.result;i.data&&i.data.name?d.push({title:i.data.name.replace(/\.[^\/.]+$/,""),description:"",image:i.data.url}):N2Classes.AjaxHelper.notification(i)},this),fail:t.proxy(function(t,e){N2Classes.AjaxHelper.notification(e.jqXHR.responseJSON)},this),start:function(){N2Classes.AjaxHelper.startLoading()},stop:t.proxy(function(){d.length?this._addQuickImages(d):setTimeout(function(){N2Classes.AjaxHelper.stopLoading()},100),d=[]},this)});var p=null;this.slidesContainer.on("dragover",t.proxy(function(e){null!==p?(clearTimeout(p),p=null):this.slidesContainer.addClass("n2-drag-over"),p=setTimeout(t.proxy(function(){this.slidesContainer.removeClass("n2-drag-over"),p=null},this),400)},this))}}return i.prototype.changed=function(){},i.prototype.initSlidesOrderable=function(){this.slidesContainer.nUISortable({items:".n2-box-slide",stop:t.proxy(this.saveSlideOrder,this),placeholder:"n2-box-sortable-placeholder n2-box-sortable-placeholder-small",distance:10,helper:"clone"})},i.prototype.saveSlideOrder=function(e){for(var i=this.slidesContainer.find(".n2-box-slide"),s=[],r=[],n=[],o=0;o<i.length;o++){var a=i.eq(o).data("slide");s.push(a),r.push(a.getId())}for(var o=0;o<this.slides.length;o++)n.push(this.slides[o].getId());if(JSON.stringify(n)!=JSON.stringify(r)){t(window).triggerHandler("SmartSliderSidebarSlidesOrderChanged");var l={nextendcontroller:"slides",nextendaction:"order"};N2Classes.AjaxHelper.ajax({type:"POST",url:N2Classes.AjaxHelper.makeAjaxUrl(this.ajaxUrl,l),data:{slideorder:r}}),this.slides=s,this.changed()}},i.prototype.initSlides=function(){for(var e=this.slidesContainer.find(".n2-box-slide"),i=[],s=0;s<e.length;s++){var r=e.eq(s).data("slide");i.push(r)}this.slides=i,this.changed(),t(window).triggerHandler("SmartSliderSidebarSlidesChanged"),t("body").attr("data-slides",this.slides.length)},i.prototype.unsetFirst=function(){for(var t=0;t<this.slides.length;t++)this.slides[t].unsetFirst();this.changed()},i.prototype.addQuickImage=function(e){e.preventDefault(),nextend.imageHelper.openMultipleLightbox(t.proxy(this._addQuickImages,this))},i.prototype.addBoxes=function(e){e.insertBefore(this.slidesContainer.find(".n2-clear")),e.addClass("n2-ss-box-just-added").each(t.proxy(function(e,i){new N2Classes.Slide(this,t(i))},this)),this.initSlides(),setTimeout(function(){e.removeClass("n2-ss-box-just-added")},200)},i.prototype._addQuickImages=function(e){for(var i=[],s=0;s<e.length;s++)e[s].image.match(/\.(mp4)/i)?N2Classes.Notification.error("Video is not supported!"):i.push(e[s]);i.length&&N2Classes.AjaxHelper.ajax({type:"POST",url:N2Classes.AjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"quickImages"}),data:{images:N2Classes.Base64.encode(JSON.stringify(i))}}).done(t.proxy(function(e){this.addBoxes(t(e.data))},this))},i.prototype.addQuickVideo=function(e){e.preventDefault();var i=this;this.quickVideoModal||(this.quickVideoModal=new N2Classes.NextendModal({zero:{size:[500,360],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 e=this.controls.find(".n2-button"),s=(this.content.find(".n2-form").on("submit",function(t){t.preventDefault(),e.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=lsq09izc1H4"],["Vimeo","https://vimeo.com/144598279"]],["",""])),e.on("click",t.proxy(t.proxy(function(e){e.preventDefault();var r=s.val(),n=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,o=r.match(n),a=/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/,l=r.match(a),h=r.match(/\.(mp4)/i);o?N2Classes.AjaxHelper.getJSON("https://www.googleapis.com/youtube/v3/videos?id="+encodeURI(o[2])+"&part=snippet&key=AIzaSyC3AolfvPAPlJs-2FgyPJdEEKS6nbPHdSM").done(t.proxy(function(t){if(t.items.length){var e=t.items[0].snippet,s=t.items[0].snippet.thumbnails,n=s.maxres||s.standard||s.high||s.medium||s["default"];i._addQuickVideo(this,{type:"youtube",title:e.title,description:e.description,image:n.url,video:r})}},this)).fail(function(t){N2Classes.Notification.error(t.error.errors[0].message)}):l?N2Classes.AjaxHelper.getJSON("https://vimeo.com/api/v2/video/"+l[3]+".json").done(t.proxy(function(t){i._addQuickVideo(this,{type:"vimeo",title:t[0].title,description:t[0].description,video:l[3],image:t[0].thumbnail_large})},this)).fail(function(t){N2Classes.Notification.error(t.responseText)}):h?N2Classes.Notification.error(n2_("This video url is not supported!")):N2Classes.Notification.error(n2_("This video url is not supported!"))},this)))}}}})),this.quickVideoModal.show()},i.prototype._addQuickVideo=function(e,i){N2Classes.AjaxHelper.ajax({type:"POST",url:N2Classes.AjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"quickVideo"}),data:{video:N2Classes.Base64.encode(encodeURIComponent(JSON.stringify(i)))}}).done(t.proxy(function(e){this.addBoxes(t(e.data)),this.initSlides()},this)),e&&e.hide()},i.prototype.addQuickPost=function(e){if(e.preventDefault(),!this.quickPostModal){var i=this,s={},r=t.proxy(function(t){return"undefined"==typeof s[t]&&(s[t]=N2Classes.AjaxHelper.ajax({type:"POST",url:N2Classes.AjaxHelper.makeAjaxUrl(this.contentAjaxUrl),data:{keyword:t},dataType:"json"})),s[t]},this);this.quickPostModal=new N2Classes.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 e=t("#n2-ss-keyword"),s=this.createHeading("").appendTo(this.content),n=this.createResult().appendTo(this.content),o="";e.on("keyup",t.proxy(function(){o=e.val(),r(o).done(t.proxy(function(r){if(e.val()==o){""==o?s.html(n2_("No search term specified. Showing recent items.")):s.html(n2_printf(n2_('Showing items match for "%s"'),o));for(var a=r.data,l=[],h=this,d=0;d<a.length;d++)l.push([a[d].title,a[d].info,t('<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:a[d]},function(t){i._addQuickPost(h,t.data.post)})]);n.html(""),this.createTable(l,["width:100%;","",""]).appendTo(this.createTableWrap().appendTo(n))}},this))},this)).trigger("keyup").focus()}}}})}this.quickPostModal.show()},i.prototype._addQuickPost=function(e,i){i.image||(i.image=""),N2Classes.AjaxHelper.ajax({type:"POST",url:N2Classes.AjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"quickPost"}),data:{post:i}}).done(t.proxy(function(e){this.addBoxes(t(e.data)),this.initSlides()},this)),e.hide()},i.prototype.initBulk=function(){this.selection=[],this.isBulkSelection=!1;var e=t(".n2-bulk-select").find("a");e.eq(0).on("click",t.proxy(function(t){t.preventDefault(),this.bulkSelect(function(t){t.select()})},this)),e.eq(1).on("click",t.proxy(function(t){t.preventDefault(),this.bulkSelect(function(t){t.deSelect()})},this)),e.eq(2).on("click",t.proxy(function(t){t.preventDefault(),this.bulkSelect(function(t){t.box.hasClass("n2-slide-state-published")?t.select():t.deSelect()})},this)),e.eq(3).on("click",t.proxy(function(t){t.preventDefault(),this.bulkSelect(function(t){t.box.hasClass("n2-slide-state-published")?t.deSelect():t.select()})},this)),t(".n2-bulk-actions a").on("click",t.proxy(function(e){var i=t(e.currentTarget).data("action");i&&(e.preventDefault(),this.bulkAction(i))},this))},i.prototype.addSelection=function(t){0==this.selection.length&&this.enterBulk(),this.selection.push(t)},i.prototype.removeSelection=function(e){this.selection.splice(t.inArray(e,this.selection),1),0==this.selection.length&&this.leaveBulk()},i.prototype.bulkSelect=function(t){for(var e=0;e<this.slides.length;e++)t(this.slides[e])},i.prototype.bulkAction=function(t){var e=[],i=[];this.bulkSelect(function(t){t.selected&&(e.push(t),i.push(t.getId()))}),i.length?this[t](i,e):N2Classes.Notification.notice("Please select one or more slides for the action!")},i.prototype.enterBulk=function(){this.isBulkSelection||(this.isBulkSelection=!0,this.slidesContainer.nUISortable("option","disabled",!0),t("#n2-admin").addClass("n2-ss-has-box-selection"))},i.prototype.leaveBulk=function(){if(this.isBulkSelection){this.slidesContainer.nUISortable("option","disabled",!1),t("#n2-admin").removeClass("n2-ss-has-box-selection");for(var e=0;e<this.slides.length;e++)this.slides[e].deSelect();this.selection=[],this.isBulkSelection=!1}},i.prototype.deleteSlides=function(e,i){this.hideMenu();var s=i[0].box.find(".n2-box-placeholder-title a").text();i.length>1&&(s+=" and "+(i.length-1)+" more"),N2Classes.NextendModal.deleteModal("slide-delete",s,t.proxy(function(){N2Classes.AjaxHelper.ajax({url:N2Classes.AjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"delete"}),type:"POST",data:{slides:e}}).done(t.proxy(function(){for(var t=0;t<i.length;t++)i[t].deleted();this.initSlides(),this.leaveBulk()},this))},this))},i.prototype.duplicateSlides=function(e,i){for(var s=0;s<this.slides.length;s++)this.slides[s].selected&&this.slides[s].duplicate(t.Event("click",{currentTarget:null}))},i.prototype.copySlides=function(e,i){this.showSliderSelector(n2_("Copy slide to ..."),t.proxy(function(t){N2Classes.AjaxHelper.ajax({url:N2Classes.AjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"copySlides",targetSliderID:t.sliderID}),type:"POST",data:{slides:e}})},this))},i.prototype.publishSlides=function(e,i){N2Classes.AjaxHelper.ajax({url:N2Classes.AjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"publish"}),type:"POST",data:{slides:e}}).done(t.proxy(function(){for(var t=0;t<i.length;t++)i[t].published();this.changed()},this))},i.prototype.unPublishSlides=function(e,i){N2Classes.AjaxHelper.ajax({url:N2Classes.AjaxHelper.makeAjaxUrl(this.ajaxUrl,{nextendaction:"unpublish"}),type:"POST",data:{slides:e}}).done(t.proxy(function(){for(var t=0;t<i.length;t++)i[t].unPublished();this.changed()},this))},i.prototype.initMenu=function(){this.slide=null,this.menu=t("#n2-ss-slide-menu").detach().addClass("n2-inited"),this.menu.find("li").on("click",t.proxy(function(e){e.stopPropagation();var i=t(e.currentTarget).data("action");i&&"function"==typeof this.slide[i]&&this.slide[i](e),this.menu.removeClass("n2-active").off("mouseleave")},this)),this.menu.find(".n2-button").on("click",t.proxy(function(e){e.preventDefault(),e.stopPropagation(),this.menu.hasClass("n2-active")?this.menu.removeClass("n2-active").off("mouseleave"):this.menu.addClass("n2-active").on("mouseleave",function(){t(this).removeClass("n2-active")})},this))},i.prototype.showMenu=function(t){this.slide=t,this.menu.appendTo(t.box)},i.prototype.hideMenu=function(){this.menu.detach()},i.prototype.showSliderSelector=function(e,i){var s=N2Classes.AjaxHelper.makeFallbackUrl(this.ajaxUrl,{nextendcontroller:"sliders",nextendaction:"choose"});this.sliderSelectorModal=new N2Classes.NextendModal({zero:{size:[970,600],title:e,back:!1,close:!0,content:"",fn:{show:function(){var e=t('<iframe src="'+s+'" width="970" height="540" style="margin: 0 -20px 0 -20px;"></iframe>').appendTo(this.content),r=window.addEventListener?"addEventListener":"attachEvent";window[r]("attachEvent"==r?"onmessage":"message",t.proxy(function(t){if(t.source==(e[0].contentWindow||e[0].contentDocument)){var s=t[t.message?"message":"data"];try{s=JSON.parse(s),s.action&&"ss3embed"===s.action&&i(s)}catch(r){}this.hide()}},this),!1)},destroy:function(){this.destroy()}}}},!0)},i}),N2D("SmartSliderSlideBackgroundAdmin",["SmartSliderSlideBackground"],function(t,e){function i(t,e,i){this.types={color:"SmartSliderAdminSlideBackgroundColor",image:"SmartSliderAdminSlideBackgroundImage",video:"SmartSliderAdminSlideBackgroundVideo"},this.allowVisualLoad=!0,this.slider=t.slider,this.editor=nextend.currentEditor,N2Classes.SmartSliderSlideBackground.prototype.constructor.call(this,t,e,i)}return i.prototype=Object.create(N2Classes.SmartSliderSlideBackground.prototype),i.prototype.constructor=i,i.prototype.setVisualLoad=function(t){this.allowVisualLoad=t},i.prototype.setType=function(t){"color"===t?(this.elements.color||this.createColorElement(!0),this.elements.image&&(this.elements.image.kill(),this.elements.image=!1)):"image"===t&&(this.elements.color||this.createColorElement(!0),this.elements.image||this.createImageElement())},i.prototype.setMode=function(t){"default"===t&&(t=this.slider.editor.options.slideBackgroundMode),this.element.attr("data-mode",t),this.elements.image&&this.elements.image.updateMode(t,this.mode),this.mode=t},i.prototype.setFocus=function(t,e){this.elements.image&&this.elements.image.updateFocus(t,e)},i.prototype.setImageOpacity=function(t){this.elements.image&&this.elements.image.updateOpacity(t)},i.prototype.setBlur=function(t){this.elements.image&&this.elements.image.updateBlur(t)},i.prototype.createColorElement=function(e){e=e||!1,this.elements.color=new N2Classes[this.types.color](this,t('<div class="n2-ss-slide-background-color"></div>').appendTo(this.$wrapElement)),e&&this.elements.color.update(this.editor.settings.getBackgroundColor(),this.editor.settings.getBackgroundGradient(),this.editor.settings.getBackgroundColorEnd())},i.prototype.updateColor=function(t,e,i){this.elements.color||this.createColorElement(),this.elements.color.update(t,e,i)},i.prototype.createImageElement=function(){var e=this.editor.settings,i=e.getBackgroundImage();if(""!==i){var s=nextend.imageHelper.fixed(i),r=t('<img src="'+s+'" alt="" />').attr({"data-hash":md5(i),"data-desktop":s,"data-opacity":e.getBackgroundImageOpacity(),"data-blur":e.getBackgroundImageBlur(),"data-x":e.getBackgroundFocusX(),"data-y":e.getBackgroundFocusY()}).appendTo(this.$wrapElement);this.elements.image=new N2Classes[this.types.image](this.slide,this.manager,this,r),this.elements.image.preLoadAdmin(i)}},i.prototype.setImage=function(t){this.elements.image?this.elements.image.setDesktopSrc(t):""!==t&&"image"===this.editor.settings.getType()&&this.createImageElement(t)},i}),N2D("EditorAbstract",function(t,e){function i(e,i,r){s(),this.readyDeferred=t.Deferred(),this.sliderElementID=e,this.slideContentElementID=i,this.readyDeferred.done(t.proxy(function(){N2D("SSEditor",t.proxy(function(){return this},this))},this)),this.options=t.extend({slideAsFile:0,isUploadDisabled:!0,uploadUrl:"",uploadDir:""},r),nextend.currentEditor=this,this.frontend=null,this.generator=null,this.fragmentEditor=null,this.$editedElement=null,this.editedInstance=null,N2R("documentReady",t.proxy(function(t){"undefined"!=typeof nextend.fontsDeferred?nextend.fontsDeferred.done(t.proxy(this.startEditor,this)):this.startEditor()},this))}function s(){var t=r();t&&10>t&&alert(window.ss2lang.The_editor_was_tested_under_Internet_Explorer_10_Firefox_and_Chrome_Please_use_one_of_the_tested_browser)}function r(){var t=navigator.userAgent.toLowerCase();return-1!=t.indexOf("msie")?parseInt(t.split("msie")[1]):!1}return i.prototype.startEditor=function(){},i.prototype.ready=function(t){this.readyDeferred.done(t)},i.prototype.getSelf=function(){return this},i.prototype.getAvailableDeviceModes=function(){return{desktopPortrait:1,desktopLandscape:0,tabletPortrait:1,tabletLandscape:1,mobilePortrait:1,mobileLandscape:1}},i.prototype.getGeneratorVariables=function(){return this.$editedElement.data("variables")},i.prototype.getMainContainerElement=function(){return this.$editedElement.find(".n2-ss-layers-container").addBack().last()},i}),N2D("EditorSlide",["EditorAbstract"],function(t,e){function i(e,i,s){N2Classes.EditorAbstract.prototype.constructor.call(this,e,i,t.extend({isAddSample:!1,sampleSlidesUrl:"",slideBackgroundMode:"fill"},s))}return i.prototype=Object.create(N2Classes.EditorAbstract.prototype),i.prototype.constructor=i,i.prototype.startEditor=function(){this.$slideContentElement=t("#"+this.slideContentElementID),this.slideStartValue=this.$slideContentElement.val(),N2R("#"+this.sliderElementID,t.proxy(function(t,e){this.frontend=e,this.frontend.editor=this,nextend.pre="div#"+this.frontend.elementID+" ",this.frontend.visible(t.proxy(this.sliderStarted,this))},this))},i.prototype.sliderStarted=function(){t("body").addClass("n2-ss-slider-visible");var e=t("#n2-ss-slide-canvas-container"),i=e.tinyscrollbar({axis:"x",wheel:!1,wheelLock:!1}).data("plugin_tinyscrollbar");"function"==typeof e.get(0).move&&(e.get(0).move=null),this.frontend.sliderElement.on("SliderResize",function(){i.update("relative")}),this.$editedElement=this.frontend.sliderElement.find(".n2-ss-currently-edited-slide"),this.editedInstance=this.$editedElement.data("slide");var s=this.$editedElement.hasClass("n2-ss-static-slide");this.generator=new N2Classes.Generator(this),this.generator.registerFields(["#slidetitle","#sldedescription","#slidethumbnail","#slidebackgroundImage","#slidebackgroundAlt","#slidebackgroundTitle","#slidebackgroundVideoMp4","#slidebackgroundColor","#slidebackgroundColorEnd","#linkslidelink-1","#layergenerator-visible","#layergroup-generator-visible"]),this.generator.registerGlobalField("slide","name","#slidetitle"),this.generator.registerGlobalField("slide","description","#slidedescription"),this.getMainContainerElement().on("updateSize",t.proxy(this.updateSize,this)),this.settings=new N2Classes.SlideSettings(this,s);var r={};s?r.snapSelector=".n2-ss-static-slide .n2-ss-layer.nui-resizable:not(.n2-ss-layer-locked):not(.n2-ss-layer-parent):not(.n2-ss-layer-selected):visible, .n2-ruler-user-guide":r.snapSelector=".n2-ss-slide.n2-ss-slide-active .n2-ss-layer.nui-resizable:not(.n2-ss-layer-locked):not(.n2-ss-layer-parent):not(.n2-ss-layer-selected):visible, .n2-ruler-user-guide",this.fragmentEditor=new N2Classes.FragmentEditor(this,this.getFrontendSlide().$element,r,this.options),this.getFrontendElement().on({SliderResize:t.proxy(this.fragmentEditor.onResize,this.fragmentEditor),SliderDeviceOrientation:t.proxy(this.fragmentEditor.onChangeDeviceOrientation,this.fragmentEditor)}),this.readyDeferred.resolve(),t("#smartslider-form").on({checkChanged:t.proxy(this.prepareFormForCheck,this),submit:t.proxy(this.onSlideSubmit,this)}),this.options.isAddSample&&this.startSampleSlides()},i.prototype.prepareFormForCheck=function(){var t=JSON.stringify(this.fragmentEditor.getData()),e=JSON.stringify(JSON.parse(N2Classes.Base64.decode(this.slideStartValue)));this.$slideContentElement.val(e==t?this.slideStartValue:N2Classes.Base64.encode(t))},i.prototype.onSlideSubmit=function(i){if(!nextend.isPreview)if(this.prepareForm(),i.preventDefault(),nextend.askToSave=!1,this.options.slideAsFile&&typeof window.FormData!==e&&"undefined"!=typeof window.File){var s=new FormData,r=t("#smartslider-form").serializeArray();t.each(r,function(t,e){if("slide[slide]"==e.name)try{s.append("slide",new Blob([e.value]),"slide.txt")}catch(i){try{s.append("slide",new Blob([e.value]))}catch(i){try{s.append("slide",new File([e.value],"slide.txt"))}catch(i){N2Classes.Notification.notice('Your browser does not support File api, please disable "Send slide as file" option in the global settings.')}}}else s.append(e.name,e.value)}),N2Classes.AjaxHelper.ajax({url:N2Classes.AjaxHelper.makeAjaxUrl(window.location.href),type:"POST",data:s,contentType:!1,processData:!1}).done(t.proxy(this.afterSave,this))}else N2Classes.AjaxHelper.ajax({type:"POST",url:N2Classes.AjaxHelper.makeAjaxUrl(window.location.href),data:t("#smartslider-form").serialize(),dataType:"json"}).done(t.proxy(this.afterSave,this))},i.prototype.afterSave=function(){nextend.askToSave=!0,t("#smartslider-form").trigger("saved"),t(".n2-ss-edit-slide-top-details .n2-h1").html(t("#slidetitle").val())},i.prototype.prepareForm=function(){this.fragmentEditor.canvasSettings.ruler&&t("#slideguides").val(N2Classes.Base64.encode(JSON.stringify(this.fragmentEditor.canvasSettings.ruler.toArray()))),this.$slideContentElement.val(N2Classes.Base64.encode(nextend.UnicodeToHTMLEntity(JSON.stringify(this.fragmentEditor.getData()))))},i.prototype.getLayout=function(){for(var e=t("#smartslider-form").serializeArray(),i={},s=0;s<e.length;s++){var r=e[s].name.match(/slide\[(.*?)\]/);r&&(i[r[1]]=e[s].value)}return delete i.generator,delete i.published,delete i.publishdates,delete i["record-start"],delete i["record-slides"],delete i.slide,i.slide=this.fragmentEditor.getData(),i},i.prototype.loadLayout=function(e,i,s){var r=e.slide;if(delete e.slide,s?this.fragmentEditor.importLayers(r,!0):this.fragmentEditor.importLayers(r,!1),i)for(var n in e)t("#slide"+n).val(e[n]).trigger("change");e.slide=r},i.prototype.copy=function(){var e={data:this.settings.getBackgroundData(),layers:this.fragmentEditor.getData()};t.jStorage.set("copiedSlide",JSON.stringify(e))},i.prototype.paste=function(){var e=t.jStorage.get("copiedSlide");e&&(e=JSON.parse(e),this.settings.setData(e.data),this.fragmentEditor.mainContainer.replaceLayers(e.layers))},i.prototype.hasClipboard=function(){var e=t.jStorage.get("copiedSlide");return!!e},i.prototype.startSampleSlides=function(){var i=this,s=window.addEventListener?"addEventListener":"attachEvent",r=t('<iframe src="'+this.options.sampleSlidesUrl+'"></iframe>').prependTo(".n2-ss-sample-slides-container"),n=r[0];t("html, body").scrollTop(r.offset().top-t("#wpadminbar").height());var o=t(".n2-ss-sample-slide-settings"),a=t("#slidebackground-type"),l=t("#slidebackgroundImage"),h=t("#n2-ss-sample-slide-setting-background-image").on("click",function(){l.parent().find(".n2-form-element-button").trigger("click")}),d=function(){var t=l.val();""===t?(o.removeClass("n2-ss-has-image"),h.css("background-image","url("+nextend.imageHelper.fixed("$system$/images/placeholder/image.png")+")"),"color"!==a.val()&&a.val("color").trigger("change")):(o.addClass("n2-ss-has-image"),"image"!==a.val()&&a.val("image").trigger("change"),h.css("background-image","url("+nextend.imageHelper.fixed(t)+")"))};h.find(".n2-i-close").on("click",function(t){t.stopPropagation(),l.parent().find(".n2-form-element-clear").trigger("click")}),l.on("nextendChange",d),d();var p=t("#slidebackgroundImageOpacity"),c=t("#n2-ss-sample-slide-setting-opacity-slider").removeAttr("slide").prop("slide",!1).nUISlider({min:0,max:100,step:1,slide:function(t,e){p.data("field").insideChange(e.value)}}),u=function(t){c.nUISlider("option","value",p.val())};p.on("nextendChange",u),u();var y=t("#slidebackgroundImageBlur"),g=t("#n2-ss-sample-slide-setting-blur-slider").removeAttr("slide").prop("slide",!1).nUISlider({
|
3 |
min:0,max:40,step:1,slide:function(t,e){y.data("field").insideChange(e.value)}}),f=function(t){g.nUISlider("option","value",y.val())};y.on("nextendChange",f),f();var m=t("#slidebackgroundColor"),v=t("#n2-ss-sample-slide-setting-color").n2spectrum({showAlpha:1,preferredFormat:"hex8",showInput:!1,showButtons:!1,move:function(){var t=v.n2spectrum("get").toHexString8();v.val(t),m.data("field").insideChange(t)},showSelectionPalette:!0,showPalette:!0,maxSelectionSize:6,localStorageKey:"color",palette:[["000000","55aa39","357cbd","bb4a28","8757b2","000000CC"],["81898d","5cba3c","4594e1","d85935","9e74c2","00000080"],["ced3d5","27ae60","01add3","e79d19","e264af","FFFFFFCC"],["ffffff","2ecc71","00c1c4","ecc31f","ec87c0","FFFFFF80"]]}),b=function(t){var e=m.val();e!=v.val()&&v.n2spectrum("set",e)};m.on("nextendChange",b),b();var C=t("#slidebackgroundGradient"),x=function(){"off"==C.val()?o.removeClass("n2-ss-has-gradient"):o.addClass("n2-ss-has-gradient")};C.on("nextendChange",x),x();var w=t("#slidebackgroundColorEnd"),S=t("#n2-ss-sample-slide-setting-gradient").n2spectrum({showAlpha:1,preferredFormat:"hex8",showInput:!1,showButtons:!1,move:function(){var t=S.n2spectrum("get").toHexString8();w.data("field").insideChange(t)},showSelectionPalette:!0,showPalette:!0,maxSelectionSize:6,localStorageKey:"color",palette:[["000000","55aa39","357cbd","bb4a28","8757b2","000000CC"],["81898d","5cba3c","4594e1","d85935","9e74c2","00000080"],["ced3d5","27ae60","01add3","e79d19","e264af","FFFFFFCC"],["ffffff","2ecc71","00c1c4","ecc31f","ec87c0","FFFFFF80"]]}),k=function(t){S.n2spectrum("set",w.val())};w.on("outsideChange",k),k(),window[s]("attachEvent"==s?"onmessage":"message",function(t){if(t.source==(n.contentWindow||n.contentDocument)){var s=t[t.message?"message":"data"];if(s.key)switch(s.key){case"sampleSlide":var r=JSON.parse(s.data);i.settings.setData(r.data,!0),i.fragmentEditor.mainContainer.replaceLayers(r.layers),"content"!=i.fragmentEditor.currentEditorMode&&i.fragmentEditor.mainContent!=e&&i.fragmentEditor.updateEditorMode("content");break;case"ready":(n.contentWindow||n.contentDocument).postMessage({key:"ackReady"},"*"),i.options.isAddSample&&((n.contentWindow||n.contentDocument).postMessage({key:"create"},"*"),i.options.isAddSample=!1)}}},!1)},i.prototype.getAvailableDeviceModes=function(){return this.frontend.responsive.parameters.deviceModes},i.prototype.getSlideBackground=function(){return this.$editedElement.data("slideBackground")},i.prototype.getFrontendElement=function(){return this.frontend.sliderElement},i.prototype.getFrontendSlide=function(){return this.editedInstance},i.prototype.getHorizontalRatio=function(){return this.frontend.responsive.lastRatios.slideW},i.prototype.getVerticalRatio=function(){return this.frontend.responsive.lastRatios.slideH},i.prototype.updateSize=function(){return this.frontend.responsive.doVerticalResize()},i.prototype.getDeviceMode=function(){return this.frontend.responsive.getNormalizedModeString()},i}),N2D("Generator",["EditorAbstract"],function(t,e){"use strict";function i(e){this.editor=e,this._refreshTimeout=null,this.modal=!1,this.group=0,this.editor.generator=this;var i=this.editor.getGeneratorVariables();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(t){t.preventDefault(),this.showModal()},this)),t("body").addClass("n2-ss-dynamic-slide"))}else this.variables=null}return i.prototype.isDynamicSlide=function(){return this.group>0},i.prototype.splitTokens=function(t){for(var e=[],i="",s=0,r=0;r<t.length;r++){var n=t[r];","===n&&0===s?(e.push(i),i=""):(i+=n,"("===n?s++:")"===n&&s--)}return i.length&&e.push(i),e},i.prototype.fill=function(t){return t},i.prototype.generatorFill=function(e){return e.replace(/{((([a-z]+)\(([^}]+)\))|([a-zA-Z0-9][a-zA-Z0-9_\/]*))}/g,t.proxy(this.parseFunction,this))},i.prototype.parseFunction=function(t,e,i,s,r,n){if("undefined"==typeof n){for(var o=this.splitTokens(r),a=0;a<o.length;a++)o[a]=this.parseVariable(o[a]);return"function"==typeof this[s]?this[s].apply(this,o):t}return this.parseVariable(n)},i.prototype.parseVariable=function(t){var e=t.match(/^("|')(.*)("|')$/);if(e)return e[2];var i=t.match(/((([a-z]+)\(([^}]+)\)))/);if(i)return this.parseFunction.apply(this,i);var s=t.match(/([a-zA-Z][0-9a-zA-Z_]*)(\/([0-9a-z]+))?/);if(s){var r=s[3];if("undefined"==typeof r)r=0;else{var n=parseInt(r);isNaN(n)||(r=Math.max(r,1)-1)}return"undefined"!=typeof this.variables[r]&&"undefined"!=typeof this.variables[r][s[1]]?this.variables[r][s[1]]:""}return t},i.prototype.fallback=function(t,e){return""==t?e:t},i.prototype.cleanhtml=function(t){return this.stripTags(t,"<p><a><b><br /><br/><i>")},i.prototype.stripTags=function(t,e){e=(((e||"")+"").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 t.replace(s,"").replace(i,function(t,i){return e.indexOf("<"+i.toLowerCase()+">")>-1?t:""})},i.prototype.removehtml=function(e){return t("<div>"+e+"</div>").text()},i.prototype.splitbychars=function(t,e,i){return t.substr(e,i)},i.prototype.splitbywords=function(t,e,i){var s=t,r=s.length,n=Math.max(0,0==e?0:s.indexOf(" ",e)),o=Math.max(0,i>r?r:s.indexOf(" ",i));return 0==o&&r>=i&&(o=r),s.substr(n,o)},i.prototype.findimage=function(t,e){var i=t,s=/(<img.*?src=[\'"](.*?)[\'"][^>]*>)|(background(-image)??\s*?:.*?url\((["|\']?)?(.+?)(["|\']?)?\))/gi,r=[],n=null;for(e="undefined"!=typeof e?parseInt(e)-1:0;n=s.exec(i);)"undefined"!=typeof n[2]?r.push(n[2]):"undefined"!=typeof n[6]&&r.push(n[6]);return r.length?r.length>e?r[e]:r[r.length-1]:""},i.prototype.findlink=function(t,e){var i=t,s=/href=["\']?([^"\'>]+)["\']?/gi,r=[],n=null;for(e="undefined"!=typeof e?parseInt(e)-1:0;n=s.exec(i);)"undefined"!=typeof n[1]&&r.push(n[1]);return r.length?r.length>e?r[e]:r[r.length-1]:""},i.prototype.removevarlink=function(t){var e=String(t),i=/<a href=\"(.*?)\">(.*?)<\/a>/g;return e.replace(i,"")},i.prototype.removelinebreaks=function(t){var e=String(t),i=/\r?\n|\r/g;return e.replace(i,"")},i.prototype.registerFields=function(t){for(var e=0;e<t.length;e++)this.registerField(t[e])},i.prototype.registerGlobalField=function(e,i,s){null!==this.variables&&(s=t(s).on("nextendChange",t.proxy(function(){this.variables[e][i]=s.val(),this.refresh()},this)))},i.prototype.registerField=function(t){},i.prototype.generatorRegisterField=function(e){e=t(e);var i=e.parent();i.on({mouseenter:t.proxy(function(){this.activeField=e,this.button.prependTo(i)},this)})},i.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,removelinebreaks:0},s=function(){var t=i.key+"/"+i.group;return i.findImage&&(t="findimage("+t+","+Math.max(1,i.findImageIndex)+")"),i.findLink&&(t="findlink("+t+","+Math.max(1,i.findLinkIndex)+")"),i.removeVarLink&&(t="removevarlink("+t+")"),i.removelinebreaks&&(t="removelinebreaks("+t+")"),"no"!=i.filter&&(t=i.filter+"("+t+")"),"no"!=i.split&&i.splitStart>=0&&i.splitLength>0&&(t=i.split+"("+t+","+i.splitStart+","+i.splitLength+")"),"{"+t+"}"},r=t('<div class="n2-generator-result-container" />'),n=function(){r.html(t("<div/>").text(e.fill(s())).html())},o=e.group,a=null,l=null,h=t('<div class="n2-generator-insert-variable"/>'),d=N2Classes.NextendModal.prototype.createHeading(n2_("Choose the group")).appendTo(h),p=t('<div class="n2-group-container" />').appendTo(h);h.append(N2Classes.NextendModal.prototype.createHeading(n2_("Choose the variable")));var c=t('<div class="n2-variable-container webkit-scroll-fix" />').appendTo(h),u=t('<div class="n2-generator-functions-container n2-form-element-mixed" />').appendTo(t('<div class="n2-form" />').appendTo(h));h.append(N2Classes.NextendModal.prototype.createHeading(n2_("Result"))),r.appendTo(h),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(),n()},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 g=u.find("#n2-generator-function-split");g.on("change",t.proxy(function(){i.split=g.val(),n()},this));var f=u.find("#n2-generator-function-split-start");f.on("change",t.proxy(function(){i.splitStart=parseInt(f.val()),n()},this));var m=u.find("#n2-generator-function-split-length");m.on("change",t.proxy(function(){i.splitLength=parseInt(m.val()),n()},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-yes"><i class="n2-i n2-i-tick"></i></div><div class="n2-onoff-round"></div><div class="n2-onoff-no"><i class="n2-i n2-i-close"></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()),n()},this));var b=u.find("#n2-generator-function-findimage-index");b.on("change",t.proxy(function(){i.findImageIndex=parseInt(b.val()),n()},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-yes"><i class="n2-i n2-i-tick"></i></div><div class="n2-onoff-round"></div><div class="n2-onoff-no"><i class="n2-i n2-i-close"></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 C=u.find("#n2-generator-function-findlink");C.on("nextendChange",t.proxy(function(){i.findLink=parseInt(C.val()),n()},this));var x=u.find("#n2-generator-function-findlink-index");x.on("change",t.proxy(function(){i.findLinkIndex=parseInt(x.val()),n()},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-yes"><i class="n2-i n2-i-tick"></i></div><div class="n2-onoff-round"></div><div class="n2-onoff-no"><i class="n2-i n2-i-close"></i></div></div><input type="hidden" autocomplete="off" value="0" id="n2-generator-function-removevarlink"></div></div></div>').appendTo(u);var w=u.find("#n2-generator-function-removevarlink");w.on("nextendChange",t.proxy(function(){i.removeVarLink=parseInt(w.val()),n()},this));var S=u.find("#n2-generator-function-removevarlink-index");S.on("change",t.proxy(function(){i.removeVarLinkIndex=parseInt(S.val()),n()},this)),t('<div class="n2-mixed-group"><div class="n2-mixed-label"><label>'+n2_("Remove line breaks")+'</label></div><div class="n2-mixed-element"><div class="n2-form-element-onoff"><div class="n2-onoff-slider"><div class="n2-onoff-yes"><i class="n2-i n2-i-tick"></i></div><div class="n2-onoff-round"></div><div class="n2-onoff-no"><i class="n2-i n2-i-close"></i></div></div><input type="hidden" autocomplete="off" value="0" id="n2-generator-function-removelinebreaks"></div></div></div>').appendTo(u);var k=u.find("#n2-generator-function-removelinebreaks");k.on("nextendChange",t.proxy(function(){i.removelinebreaks=parseInt(k.val()),n()},this));var P=u.find("#n2-generator-function-removelinebreaks-index");P.on("change",t.proxy(function(){i.removelinebreaksIndex=parseInt(P.val()),n()},this));for(var N in this.variables[0])t('<a href="#" class="n2-button n2-button-normal n2-button-s n2-button-grey n2-radius-s">'+N+"</a>").on("click",t.proxy(function(e,s){s.preventDefault(),a.removeClass("n2-active"),t(s.currentTarget).addClass("n2-active"),i.key=e,n()},this,N)).appendTo(c);a=c.find("a"),a.eq(0).trigger("click"),1==o&&(d.css("display","none"),p.css("display","none"));for(var L=0;o>L;L++)t('<a href="#" class="n2-button n2-button-normal n2-button-s n2-button-grey n2-radius-s">'+(L+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,n()},this,L)).appendTo(p);l=p.find("a"),l.eq(0).trigger("click");var _=!1;this.modal=new N2Classes.NextendModal({zero:{size:[1e3,o>1?670:600],title:n2_("Insert variable"),back:!1,close:!0,content:h,controls:['<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green">'+n2_("Insert")+"</a>"],fn:{show:function(){_||(new N2Classes.FormElementOnoff("n2-generator-function-findimage"),new N2Classes.FormElementOnoff("n2-generator-function-findlink"),new N2Classes.FormElementOnoff("n2-generator-function-removevarlink"),new N2Classes.FormElementOnoff("n2-generator-function-removelinebreaks"),_=!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},i.prototype.showModal=function(){this.getModal().show()},i.prototype.insert=function(t){this.activeField.val(t).trigger("change")},i.prototype.refresh=function(){this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),this._refreshTimeout=setTimeout(t.proxy(this._refresh,this),100)},i.prototype._refresh=function(){for(var t=this.editor.fragmentEditor.mainContainer.container.getAllLayers(),e=0;e<t.length;e++)"layer"==t[e].type&&t[e].item.reRender()},i}),N2D("History",function(t,e){"use strict";function i(){this.historyStates=50,this.enabled=0!=this.historyStates,this.historyAddAllowed=!0,this.isBatched=!1,this.currentBatch=this,this.index=-1,this.stackedOff=[],this.tasks=[],this.preventUndoRedo=!1,this.undoBTN=t("#n2-ss-undo").on({click:t.proxy(this.undo,this),mousedown:function(t){N2Classes.WindowManager.get().setMouseDownArea("undo",t)}}),this.redoBTN=t("#n2-ss-redo").on({click:t.proxy(this.redo,this),mousedown:function(t){N2Classes.WindowManager.get().setMouseDownArea("redo",t)}}),this.updateUI()}function s(t){this.parent=t,this.tasks=[]}function r(t){switch(t){case"skipForwardUndos":this.undo=function(){return!1}}}function n(t,e,i,s){this.that=t,this.undoAction=e,this.redoAction=i,this.context=s||[]}function o(){n.prototype.constructor.apply(this,arguments)}return i.get=function(){var t=new i;return i.get=function(){return t},t},i.prototype.updateUI=function(){0==this.index||0==this.tasks.length?this.undoBTN.removeClass("n2-active"):this.undoBTN.addClass("n2-active"),-1==this.index||this.index>=this.tasks.length?this.redoBTN.removeClass("n2-active"):this.redoBTN.addClass("n2-active")},i.prototype.throttleUndoRedo=function(){return this.preventUndoRedo?!0:(this.preventUndoRedo=!0,setTimeout(t.proxy(function(){this.preventUndoRedo=!1},this),100),!1)},i.prototype.isEnabled=function(){return this.enabled&&this.historyAddAllowed},i.prototype.startBatch=function(){if(this.isEnabled()){var t=new s(this.currentBatch);return this.currentBatch._add(t),this.currentBatch=t,t}return!1},i.prototype.endBatch=function(){this.isEnabled()&&(this.currentBatch.parent==e,this.currentBatch=this.currentBatch.parent)},i.prototype.addControl=function(t){return this.currentBatch._add(new r(t))},i.prototype.addSimple=function(t,e,i,s){return this.isEnabled()?this.currentBatch._add(new n(t,e,i,s)):!1},i.prototype.addValue=function(t,e,i){if(this.isEnabled()){if(this.isBatched||this.currentBatch!=this)for(var s=this.getCurrentBatchStack(),r=0;r<s.length;r++)if(s[r].isEqual(t,e,i))return s.push(s.splice(r,1)[0]),s[s.length-1];return this.currentBatch._add(new o(t,e,e,i))}return!1},i.prototype.getCurrentBatchStack=function(){return this.currentBatch!=this?this.currentBatch.tasks:this.tasks[this.tasks.length-1]},i.prototype._add=function(e){return-1!=this.index&&this.tasks.splice(this.index,this.tasks.length),this.index=-1,this.isBatched?this.tasks[this.tasks.length-1].push(e):(this.tasks.push([e]),this.isBatched=!0,setTimeout(t.proxy(function(){this.isBatched=!1},this),100)),this.tasks.length>this.historyStates&&this.tasks.unshift(),this.updateUI(),e},i.prototype.off=function(){this.historyAddAllowed=!1,this.stackedOff.push(1)},i.prototype.on=function(){this.stackedOff.pop(),0==this.stackedOff.length&&(this.historyAddAllowed=!0)},i.prototype.undo=function(t){if(t&&t.preventDefault(),this.throttleUndoRedo())return!1;if(this.off(),-1==this.index?this.index=this.tasks.length-1:this.index--,this.index>=0)for(var e=this.tasks[this.index],i=e.length-1;i>=0&&e[i].undo();i--);else this.index=0;return this.on(),this.updateUI(),!0},i.prototype.redo=function(t){if(t&&t.preventDefault(),this.throttleUndoRedo())return!1;if(this.off(),-1!=this.index&&this.index<this.tasks.length){var e=this.tasks[this.index];this.index++;for(var i=0;i<e.length&&e[i].redo();i++);}return this.on(),this.updateUI(),!0},s.prototype._add=function(t){return this.tasks.push(t),t},s.prototype.invertUndo=function(){return this.undo=function(){for(var t=this.tasks.length-1;t>=0&&this.tasks[t].undo();t--);return!0},this},s.prototype.undo=function(){for(var t=0;t<this.tasks.length&&this.tasks[t].undo();t++);return!0},s.prototype.redo=function(){for(var t=0;t<this.tasks.length&&this.tasks[t].redo();t++);return!0},s.prototype.isEqual=function(){return!1},r.prototype.undo=function(){return!0},r.prototype.redo=function(){return!0},r.prototype.isEqual=function(){return!1},n.prototype.undo=function(){return this.undoAction.apply(this.that.getSelf(),this.context),!0},n.prototype.redo=function(){return this.redoAction.apply(this.that.getSelf(),this.context),!0},n.prototype.isEqual=function(){return!1},o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.prototype.setValues=function(t,e){this.undoValue=t,this.redoValue=e},o.prototype.undo=function(){return this.context.unshift(this.undoValue),this.undoAction.apply(this.that.getSelf(),this.context),this.context.shift(),!0},o.prototype.redo=function(){return this.context.unshift(this.redoValue),this.redoAction.apply(this.that.getSelf(),this.context),this.context.shift(),!0},o.prototype.isEqual=function(t,e,i){if(t==this.that&&e==this.undoAction){for(var s=0;s<i.length;s++)if(i[s]!=this.context[s])return!1;return this.setValues=function(t,e){this.redoValue=e},!0}return!1},i}),N2D("InlineField",function(t,e){function i(){this.$input=t('<input type="text" name="name" />').on({mouseup:function(t){t.stopPropagation()},keyup:t.proxy(function(t){27==t.keyCode&&this.cancel()},this),blur:t.proxy(this.save,this)}),this.$form=t('<form class="n2-inline-form"></form>').append(this.$input).on("submit",t.proxy(this.save,this))}return i.prototype.injectNode=function(t,e){this.$input.val(e),t.append(this.$form),this.$input.focus()},i.prototype.save=function(t){t.preventDefault(),this.$input.trigger("valueChanged",[this.$input.val()]),this.$input.off("blur"),this.destroy()},i.prototype.cancel=function(){this.$input.trigger("cancel"),this.destroy()},i.prototype.destroy=function(){this.$input.off("blur"),this.$form.remove()},i}),N2D("SlideSettings",function(t,e){"use strict";function i(e,i){this.editor=e,this.isStatic=i;var s=t("#smartslider-form").find('input[id][name^="slide"], textarea[id][name^="slide"]'),r={};if(s.each(t.proxy(function(e,i){var s=t(i),n=s.attr("name").match(/slide\[(.*)\]/)[1];r[n]=s.on("nextendChange",t.proxy(this.onChange,this,n))},this)),this.fields=r,this.slideBackground=this.editor.getSlideBackground(),!i){var n=t("#slidethumbnail").on("change, nextendChange",function(){var e=n.val();""===e&&(e="$system$/images/placeholder/image.png"),t(".n2-ss-edit-slide-top-thumbnail img").attr("src",nextend.imageHelper.fixed(e))}),o=null,a=this.fields.backgroundImage.val(),l=t.proxy(function(t){""===t||"$system$/images/placeholder/image.png"===t||""!==n.val()&&n.val()!==a||(n.val(t).trigger("change"),o&&(o.off(".slidethumbnail"),o=null))},this);this.fields.backgroundImage.on("nextendChange.slidethumbnail",t.proxy(function(){var t=this.fields.backgroundImage.val();l(t),a=t},this)),""===n.val()&&(o=t("#item_imageimage").on("nextendChange.slidethumbnail",t.proxy(function(){l(o.val())},this)))}this.createHistory()}i.prototype.createHistory=function(){this.values={},t("#smartslider-form").find('input[id][name^="slide"], textarea[id][name^="slide"]').not("#slideslide").each(t.proxy(function(e,i){var s=t(i),r=s.data("field"),n=s.attr("id");this.values[n]=s.val(),s.on("nextendChange",t.proxy(function(){var t=s.val(),e=N2Classes.History.get().addValue(this,this.historyUpdateSlideValue,[r]);e&&e.setValues(this.values[n],t),this.values[n]=t},this))},this))},i.prototype.getSelf=function(){return this},i.prototype.historyUpdateSlideValue=function(t,e){e.insideChange(t)},i.prototype.getAllData=function(){var t={};for(var e in this.fields)t[e]=this.fields[e].val();return t};var s=["thumbnail","background-type","backgroundColor","backgroundGradient","backgroundColorEnd","backgroundImage","backgroundImageOpacity","backgroundImageBlur","backgroundFocusX","backgroundFocusY","backgroundMode"];return i.prototype.getBackgroundData=function(){for(var t={},e=0;e<s.length;e++)t[s[e]]=this.fields[s[e]].val();return t},i.prototype.setData=function(t,e){e&&this.slideBackground.setVisualLoad(!1);for(var i in t)this.fields[i].val(t[i]).trigger("change");e&&this.slideBackground.setVisualLoad(!1)},i.prototype.onChange=function(t,e){t=t.replace(/-/g,"_"),"function"==typeof this["sync_"+t]&&this["sync_"+t].call(this)},i.prototype.sync_backgroundColor=i.prototype.sync_backgroundGradient=i.prototype.sync_backgroundColorEnd=function(){this.updateBackgroundColor()},i.prototype.updateBackgroundColor=function(){var t,e=this.getBackgroundColor(),i=this.getBackgroundGradient();"off"!==i&&(t=this.getBackgroundColorEnd()),this.slideBackground.updateColor(e,i,t)},i.prototype.sync_backgroundImage=function(){this.slideBackground.setImage(this.getBackgroundImage())},i.prototype.sync_background_type=function(){this.slideBackground.setType(this.fields["background-type"].val())},i.prototype.getType=function(){return this.fields["background-type"].val()},i.prototype.sync_backgroundMode=function(){this.slideBackground.setMode(this.fields.backgroundMode.val())},i.prototype.sync_backgroundFocusY=i.prototype.sync_backgroundFocusX=function(){this.slideBackground.setFocus(this.getBackgroundFocusX(),this.getBackgroundFocusY())},i.prototype.sync_backgroundImageOpacity=function(){this.slideBackground.setImageOpacity(this.getBackgroundImageOpacity())},i.prototype.getBackgroundImageOpacity=function(){return this.fields.backgroundImageOpacity.val()},i.prototype.sync_backgroundImageBlur=function(){this.slideBackground.setBlur(this.getBackgroundImageBlur())},i.prototype.getBackgroundColor=function(){return this.editor.generator.fill(this.fields.backgroundColor.val())},i.prototype.getBackgroundGradient=function(){return this.fields.backgroundGradient.val()},i.prototype.getBackgroundColorEnd=function(){return this.editor.generator.fill(this.fields.backgroundColorEnd.val())},i.prototype.getBackgroundImage=function(){return this.editor.generator.fill(this.fields.backgroundImage.val())},i.prototype.getBackgroundImageBlur=function(){return this.fields.backgroundImageBlur.val()},i.prototype.getBackgroundFocusX=function(){return this.fields.backgroundFocusX.val()},i.prototype.getBackgroundFocusY=function(){return this.fields.backgroundFocusY.val()},i}),N2D("FormElementStyleMode",function(t,e){function i(e){this.$element=t("#"+e).on("nextendChange",t.proxy(function(){""==this.$element.val()?this.$reset.css("visibility","hidden"):this.$reset.css("visibility","")},this)),this.$container=this.$element.parent(),this.$reset=this.$container.find(".n2-form-element-style-mode-reset").on("click",t.proxy(function(){this.$element.triggerHandler("n2resetmode")},this))}return i}),N2D("SmartSliderAdminSlideBackgroundColor",["SmartSliderSlideBackgroundColor"],function(t,e){function i(t,e){N2Classes.SmartSliderSlideBackgroundColor.prototype.constructor.apply(this,arguments)}return i.prototype=Object.create(N2Classes.SmartSliderSlideBackgroundColor.prototype),i.prototype.constructor=i,i.prototype.update=function(t,e,i){t=this.fixColor(t),this.$el.css({background:"",filter:""}),"off"!==e?this.updateGradient(t,e,i):this.updateColor(t)},i.prototype.updateColor=function(t){"00"!==t.substr(6,8)&&this.$el.css("background","#"+t.substr(0,6)).css("background",N2Color.hex2rgbaCSS(t))},i.prototype.updateGradient=function(t,e,i){switch(this.$el.css({background:"",filter:""}),i=this.fixColor(i),e){case"horizontal":this.$el.css("background","#"+t.substr(0,6)).css("background","-moz-linear-gradient(left, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background"," -webkit-linear-gradient(left, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","linear-gradient(to right, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#"+t.substr(0,6)+"', endColorstr='#"+i.substr(0,6)+"',GradientType=1)");break;case"vertical":this.$el.css("background","#"+t.substr(0,6)).css("background","-moz-linear-gradient(top, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background"," -webkit-linear-gradient(top, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","linear-gradient(to bottom, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#"+t.substr(0,6)+"', endColorstr='#"+i.substr(0,6)+"',GradientType=0)");break;case"diagonal1":this.$el.css("background","#"+t.substr(0,6)).css("background","-moz-linear-gradient(45deg, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background"," -webkit-linear-gradient(45deg, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","linear-gradient(45deg, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#"+t.substr(0,6)+"', endColorstr='#"+i.substr(0,6)+"',GradientType=1)");break;case"diagonal2":this.$el.css("background","#"+t.substr(0,6)).css("background","-moz-linear-gradient(-45deg, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background"," -webkit-linear-gradient(-45deg, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","linear-gradient(135deg, "+N2Color.hex2rgbaCSS(t)+" 0%,"+N2Color.hex2rgbaCSS(i)+" 100%)").css("background","filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#"+t.substr(0,6)+"', endColorstr='#"+i.substr(0,6)+"',GradientType=1)")}},i.prototype.fixColor=function(t){return t.length&&"#"===t.charAt(0)&&(t=t.substring(1),6===t.length&&(t+="ff")),t},i}),N2D("SmartSliderAdminSlideBackgroundImage",["SmartSliderSlideBackgroundImage"],function(t,e){function i(t,e,i,s){this.hash=s.data("hash"),N2Classes.SmartSliderSlideBackgroundImage.prototype.constructor.apply(this,arguments),this.loadAllowed=!0,this.listenImageManager()}return i.prototype=Object.create(N2Classes.SmartSliderSlideBackgroundImage.prototype),i.prototype.constructor=i,i.prototype.listenImageManager=function(){""!==this.hash&&t(window).on(this.hash,t.proxy(this.onImageManagerChanged,this))},i.prototype.notListenImageManager=function(){""!==this.hash&&t(window).off(this.hash,null,t.proxy(this.onImageManagerChanged,this))},i.prototype.onImageManagerChanged=function(t,e){this.tabletSrc=e.tablet.image,this.mobileSrc=e.mobile.image,this.updateBackgroundToDevice(this.manager.device)},i.prototype.preLoadAdmin=function(e){this.preLoad(),""!==e&&this.background.allowVisualLoad&&(this.notListenImageManager(),this.deferred.done(t.proxy(function(){t.when(nextend.imageManager.getVisual(e)).done(t.proxy(function(t){this.onImageManagerChanged(null,t.value),this.listenImageManager()},this))},this)))},i.prototype.setDesktopSrc=function(e){if(this.notListenImageManager(),this.desktopSrc=e,this.hash=md5(e),""!==e&&this.background.allowVisualLoad){var i=new Image;i.addEventListener("load",t.proxy(function(){t.when(nextend.imageManager.getVisual(e)).done(t.proxy(function(t){this.onImageManagerChanged(null,t.value),this.listenImageManager()},this))},this),!1),i.src=nextend.imageHelper.fixed(e)}else this.tabletSrc="",this.mobileSrc="",this.setSrc(nextend.imageHelper.fixed(e))},i.prototype.setSrc=function(t){N2Classes.SmartSliderSlideBackgroundImage.prototype.setSrc.call(this,nextend.imageHelper.fixed(t))},i.prototype.startFixed=function(){},i.prototype.updateMode=function(t,e){if("blurfit"===t&&1===this.$background.length){this.$background=this.$background.add(this.$background.clone().insertAfter(this.$background));var i=7;this.$background.first().css({margin:"-"+2*i+"px",padding:2*i+"px"}).css(window.n2FilterProperty,"blur("+i+"px)")}"blurfit"===e&&"blurfit"!==t&&(this.$background.eq(1).remove(),this.$background=this.$background.eq(0),this.updateBlur(this.blur))},i.prototype.updateFocus=function(t,e){this.$background.css("background-position",t+"% "+e+"%")},i.prototype.updateOpacity=function(t){this.$background.css("opacity",t/100)},i.prototype.updateBlur=function(t){window.n2FilterProperty&&(t>0?this.$background.last().css({margin:"-"+2*t+"px",padding:2*t+"px"}).css(window.n2FilterProperty,"blur("+t+"px)"):this.$background.last().css({margin:"",padding:""}).css(window.n2FilterProperty,"")),this.blur=t},i.prototype.kill=function(){this.notListenImageManager(),this.$el.remove(),this.$background.remove()},i}),N2D("LayerContainer",function(t,e){"use strict";function i(t,e,i,s,r){this.component=t,this.$ul=e.data("container",this),this.allowedPlacementMode=i,this.childrenSelector=s,this.allowedChildren=r,this.layerContainerElement=t.layer;
|
4 |
}return i.prototype.setLayerContainerElement=function(t){this.layerContainerElement=t},i.prototype.startWithExistingNodes=function(t){for(var e=this.layerContainerElement.find(this.childrenSelector),i=0;i<e.length;i++)this._loadNode(e.eq(i),t);this.component.onChildCountChange()},i.prototype.isChildAllowed=function(e){return-1!==t.inArray(e,this.allowedChildren)},i.prototype._loadNode=function(t,i){var s=t.data("sstype");if(this.isChildAllowed(s)){var r=t.data("lastplacement"),n={};if(r!==e&&r!=this.allowedPlacementMode)switch(r){case"absolute":n=N2Classes.PlacementAbsolute.cleanLayer(t);break;case"normal":n=N2Classes.PlacementNormal.cleanLayer(t)}var o;switch(s){case"layer":o=new N2Classes.Layer(this.component.fragmentEditor,this.component);var a=o.itemEditor.getItemClass(t.find(".n2-ss-item").data("item"));a&&N2Classes[a].needSize&&n.desktopportraitheight!==e&&t.data("desktopportraitheight",n.desktopportraitheight);break;case"content":o=new N2Classes.Content(this.component.fragmentEditor,this.component);break;case"row":o=new N2Classes.Row(this.component.fragmentEditor,this.component);break;case"col":o=new N2Classes.Col(this.component.fragmentEditor,this.component);break;case"group":}if(o)return o.load(t,i),i||o.sync(),o}else console.error(s+" is not allowed in "+this.component.label);return!1},i.prototype.getLayerCount=function(){return this.layerContainerElement.find(this.childrenSelector).length},i.prototype.getLayerIndex=function(t){return this.layerContainerElement.find(this.childrenSelector).index(t)},i.prototype.getSortedLayers=function(){var i=[];return this.layerContainerElement.find(this.childrenSelector).each(function(s,r){var n=t(r).data("layerObject");n!==e&&i.push(n)}),i},i.prototype.append=function(t){t.appendTo(this.layerContainerElement);var e=this._loadNode(t,!1);return this.component.onChildCountChange(),e},i.prototype.insertAt=function(t,e){var i=this.getSortedLayers();e>=i.length?t.appendTo(this.layerContainerElement):t.insertBefore(i[e].layer);var s=this._loadNode(t,!1);return this.component.onChildCountChange(),s},i.prototype.insert=function(t){t.getRootElement().appendTo(this.layerContainerElement)},i.prototype.insertLayerAt=function(e,i){var s=this.getSortedLayers(),r=t.inArray(e,s);r>-1&&i>r&&i++,i>=s.length?e.getRootElement().appendTo(this.layerContainerElement):e.getRootElement().insertBefore(s[i].getRootElement()),this.syncLayerRow(e)},i.prototype.syncLayerRow=function(t){var i,s="absolute"===this.allowedPlacementMode;i=s?t.getRootElement().prevAll(".n2-ss-layer, .n2-ss-layer-group").first().data("layerObject"):t.getRootElement().nextAll(".n2-ss-layer, .n2-ss-layer-group").first().data("layerObject"),i!==e?t.layerRow.insertBefore(i.layerRow):this.$ul.append(t.layerRow),t.animations&&t.animations.syncRow(i,s)},i.prototype.getChildLayersRecursive=function(t){for(var e=this.getSortedLayers(),i=[],s=0;s<e.length;s++)t?i.push(e[s].layer[0]):i.push(e[s]),e[s].container&&i.push.apply(i,e[s].container.getChildLayersRecursive(t));return i},i.prototype.moveLayerToGroup=function(t,e){this.moveLayersToGroup([t],[e])},i.prototype.moveLayersToGroup=function(e,i){i=i||[];for(var s=[],r=0;r<e.length;r++){var n=e[r],o=n.group,a=n.getIndex();"undefined"!=typeof i[r]?this.insertLayerAt(n,i[r]):this.insert(n),n.changeGroup(a,this.component),this!=o&&-1==t.inArray(o,s)&&s.push(o)}for(var r=0;r<s.length;r++)s[r].update()},i.prototype.activateFirst=function(){var t=this.getSortedLayers();t.length>0&&t[t.length-1].activate()},i.prototype.resetModes=function(t){for(var i=this.getSortedLayers(),s=0;s<i.length;s++)i[s].resetMode(t),i[s].container!=e&&i[s].container.resetModes(t)},i.prototype.copyModes=function(t,i){for(var s=this.getSortedLayers(),r=0;r<s.length;r++)s[r].copyMode(t,i),s[r].container!=e&&s[r].container.copyModes(t,i)},i.prototype.changeEditorModes=function(t){for(var i=this.getSortedLayers(),s=0;s<i.length;s++)i[s].changeEditorMode(t),i[s].container!=e&&i[s].container.changeEditorModes(t)},i.prototype.renderModeProperties=function(){for(var t=this.getSortedLayers(),i=0;i<t.length;i++)t[i].renderModeProperties(),t[i].container!=e&&t[i].container.renderModeProperties()},i.prototype.getAllLayers=function(t){t=t||[];for(var i=this.getSortedLayers(),s=0;s<i.length;s++)t.push(i[s]),i[s].container!=e&&i[s].container.getAllLayers(t);return t},i.prototype.getData=function(e){e=t.extend({layersIncluded:!0,itemsIncluded:!0},e);var i=[],s=this.getSortedLayers();if("absolute"==this.allowedPlacementMode)for(var r=s.length-1;r>=0;r--)i.push(s[r].getData(e));else for(var r=0;r<s.length;r++)i.push(s[r].getData(e));return i},i.prototype.getHTML=function(t){for(var e=this.getSortedLayers(),i=[],s=0;s<e.length;s++)i.push(e[s].getHTML(t));return i},i.prototype.getDroppables=function(t){for(var e=[],i=this.getSortedLayers(),s=0;s<i.length;s++)if(i[s]!=t){var r=i[s].getDroppable();"object"==typeof r&&e.push(r),"hidden"!=r&&i[s].container&&e.push.apply(e,i[s].container.getDroppables(t))}return e},i.prototype.getLLDroppables=function(t){var e=[],i=this.component.getLLDroppable(t);i&&e.push(i);for(var s=this.getSortedLayers(),r=0;r<s.length;r++)s[r].container&&s[r]!=t&&e.push.apply(e,s[r].container.getLLDroppables(t));return e},i}),N2D("LayerDataStorage",function(t,e){"use strict";function i(){this.isDeviceProp={},this.propertyScope={},this.property={},this.deviceProperty={desktopPortrait:{},desktopLandscape:{},tabletPortrait:{},tabletLandscape:{},mobilePortrait:{},mobileLandscape:{}},this.advancedProperties={}}return i.prototype.getMode=function(){return this.fragmentEditor.getMode()},i.prototype.getProperties=function(){var t={};for(var i in this.property)if(this.advancedProperties[i]!==e){if(i==this.advancedProperties[i].getName()){var s=this.property[i],r=this.advancedProperties[i].getBaseName();this.property[i]===e&&(s=this.property[r]),t[r]=s}}else t[i]=this.property[i];return t},i.prototype.getRawProperty=function(t){if(this.isDeviceProp[t]){var i=this.getMode(),s=this.deviceProperty[i];return s[t]!==e?s[t]:e}return this.property[t]},i.prototype.getProperty=function(t){if(this.isDeviceProp[t]){var e=this.getMode(),i=this.deviceProperty[e],s=this.deviceProperty.desktopPortrait;if("undefined"!=typeof i[t])return i[t];if("undefined"!=typeof s[t])return s[t]}return this.property[t]},i.prototype.historyStore=function(t,e,i){if(!this.isDeleteStarted){var s=this.getMode();this.isDeviceProp[e]&&i!=s?(this.deviceProperty[i][e]=t,this.render(e)):(this.store(e,t,!0,"history"),this.$.trigger("propertyChanged",[e,this.getProperty(e)]))}},i.prototype.store=function(t,e,i,s){var r,n,o=this.getMode();this.isDeviceProp[t]?(r=this.deviceProperty[o][t],n=this.getProperty(t)):n=r=this.property[t];var a=N2Classes.History.get().addValue(this,this.historyStore,[t,o]);a&&a.setValues(r,e),this.property[t]=e,this.isDeviceProp[t]&&(this.deviceProperty[o][t]=e),i&&this.render(t,n,s)},i.prototype.render=function(t,e,i){this.propertyScope[t]["_sync"+t](e,i)},i.prototype.isDimensionPropertyAccepted=function(t){return(t+"").match(/[0-9]+%/)||"auto"==t},i.prototype.changeEditorMode=function(t){var e=parseInt(this.property[t]);e?this._show():this._hide(),this.layer.triggerHandler("LayerShowChange",[t,e]),this.renderModeProperties(!1)},i.prototype.renderModeProperties=function(t){for(var e in this.isDeviceProp)this.isDeviceProp[e]&&(this.property[e]=this.getProperty(e),this.$.trigger("propertyChanged",[e,this.property[e]]))},i.prototype.historyResetMode=function(e,i){this.deviceProperty[i]=t.extend({},e),i==this.fragmentEditor.getMode()&&this.renderModeProperties(!0)},i.prototype.resetMode=function(e){if("desktopPortrait"!=e){var i,s=N2Classes.History.get().addValue(this,this.historyResetMode,[e]);s&&s.setValues(t.extend({},this.deviceProperty[e]),{});for(var r in this.deviceProperty[e])this.deviceProperty[e][r]=i;e==this.fragmentEditor.getMode()&&this.renderModeProperties(!0)}},i.prototype.copyMode=function(e,i){if(e!=i){var s=this.deviceProperty[i];this.deviceProperty[i]=t.extend({},this.deviceProperty[i],this.deviceProperty[e]);var r=N2Classes.History.get().addValue(this,this.historyResetMode,[i]);r&&r.setValues(s,this.deviceProperty[i])}},i.prototype._getDefault=function(t,i){return this.originalProperties[t]!==e?this.originalProperties[t]:i},i.prototype.createProperty=function(t,i,s,r){this.isDeviceProp[t]=!1,this.propertyScope[t]=r||this,s?(this.property[t]=s.data(t.toLowerCase()),this.property[t]===e&&(this.property[t]=this._getDefault(t,i))):this.property[t]=this._getDefault(t,i)},i.prototype.createAdvancedProperty=function(t,e,i){var s=t.getNames();for(var r in s)this.advancedProperties[r]=t,this.createProperty(r,s[r],e,i)},i.prototype.syncAdvancedField=function(t){var i=this.advancedProperties[t].getName(),s=this.property[i];this.property[i]===e&&(s=this.property[t]),this.fragmentEditor.layerOptions.updateField(t,s)},i.prototype.createDeviceProperty=function(t,i,s,r){var n,o;if(this.isDeviceProp[t]=!0,this.propertyScope[t]=r||this,s){for(n in this.deviceProperty)this.deviceProperty[n][t]=s.data(n.toLowerCase()+t.toLowerCase()),""===this.deviceProperty[n][t]&&(this.deviceProperty[n][t]=e);for(n in this.deviceProperty)this.deviceProperty[n][t]!==e&&""!==this.deviceProperty[n][t]||(o=this._getDefault(n.toLowerCase()+t.toLowerCase()),o!==e&&(this.deviceProperty[n][t]=o));for(n in i)this.deviceProperty[n][t]!==e&&""!==this.deviceProperty[n][t]||(this.deviceProperty[n][t]=i[n])}else{for(n in i)this.deviceProperty[n][t]=i[n];for(n in this.deviceProperty)o=this._getDefault(n.toLowerCase()+t.toLowerCase()),o!==e&&(this.deviceProperty[n][t]=o)}this.property[t]=this.deviceProperty.desktopPortrait[t]},i.prototype.removeProperty=function(t){if(delete this.property[t],this.layer.removeData(t.toLowerCase()).removeAttr("data-"+t.toLowerCase()),this.isDeviceProp[t])for(var e in this.deviceProperty)delete this.deviceProperty[e][t],this.layer.removeData(e.toLowerCase()+t.toLowerCase()).removeAttr("data-"+e.toLowerCase()+t.toLowerCase());delete this.isDeviceProp[t],delete this.propertyScope[t]},i.prototype.removeProperties=function(t){for(var e=0;e<t.length;e++)this.removeProperty(t[e])},i.prototype.getPropertiesData=function(t){for(var i={},s=0;s<t.length;s++){var r=t[s];if(this.property[r]!==e&&(i[r]=this.property[r]),this.isDeviceProp[r])for(var n in this.deviceProperty)this.deviceProperty[n][r]!==e&&(i[n.toLowerCase()+r]=this.deviceProperty[n][r])}return i},i.prototype.setProperty=function(t,i,s){this.advancedProperties[t]!==e&&(t=this.advancedProperties[t].getName()),this.propertyScope[t]!==e?"function"==typeof this.propertyScope[t]["setProperty"+t]?this.propertyScope[t]["setProperty"+t](t,i,s):this._setProperty(t,i,s):"function"==typeof this["setProperty"+t]&&this["setProperty"+t](t,i,s)},i.prototype._setProperty=function(t,e,i){this.store(t,e,!0,i),"manager"!=i&&this.$.trigger("propertyChanged",[t,this.getProperty(t)])},i.prototype.onSyncFields=function(){},i.prototype.resetStyleMode=function(t){for(var e in this.advancedProperties)this.advancedProperties[e].resetMode(t)},i}),N2D("FragmentEditor",function(t,e){"use strict";function i(e,i,s,r){this.mode="desktopPortrait",this.editor=e,this.$editedElement=i,this.configuration=s,this.ready=t.Deferred(),this.shouldPreventActivationBubble=!1,this.$=t(this),e.fragmentEditor=this,this.$highlight=t('<div class="n2-ss-layer-highlight n2-ss-layer-highlight-n" /><div class="n2-ss-layer-highlight n2-ss-layer-highlight-e" /><div class="n2-ss-layer-highlight n2-ss-layer-highlight-s" /><div class="n2-ss-layer-highlight n2-ss-layer-highlight-w" />'),this.initSelectMode(),this.layerWindow=new N2Classes.LayerWindow(this),this.layerOptions=new N2Classes.ComponentSettings(this),this.ui=new N2Classes.CanvasUserInterface(this),this.mainContainer=new N2Classes.MainContainer(this),this.itemEditor=new N2Classes.ItemManager(this,r),this.mainContainer.lateInit(),this._initDeviceModeChange(),this.canvasSettings=new N2Classes.CanvasSettings(this),this.layerOptions.startFeatures(),this.hotkeys(),this.addContextMenu(),this.mainContainer.refreshHasLayers();var n=t("#n2-ss-editor-mode .n2-radio-option"),o=t.proxy(function(t){switch(this.updateEditorMode(t),t){case"content":n.eq(0).addClass("n2-active"),n.eq(1).removeClass("n2-active");break;case"canvas":n.eq(0).removeClass("n2-active"),n.eq(1).addClass("n2-active")}},this);if(this.mainContent&&this.mainContent.container.getLayerCount())o("content");else{var a=this.mainContainer.container.getSortedLayers();if(this.mainContent&&a.length>1||!this.mainContent&&a.length>0)o("canvas");else{var l=t.jStorage.get("editormode");l||(l="content",t.jStorage.set("editormode",l)),o(l)}}n.on("click",t.proxy(function(e){n.removeClass("n2-active");var i=t(e.currentTarget),s=i.data("mode");i.addClass("n2-active"),s!=this.currentEditorMode&&(this.updateEditorMode(s),t.jStorage.set("editormode",s))},this)),this.isMultiDrag=!1}var s={16:0,38:0,40:0,37:0,39:0},r={97:"left",98:"center",99:"right",100:"left",101:"center",102:"right",103:"left",104:"center",105:"right"},n={97:"bottom",98:"bottom",99:"bottom",100:"middle",101:"middle",102:"middle",103:"top",104:"top",105:"top"},o={OFF:0,ON:1,GROUP:2};return i.prototype.updateEditorMode=function(e){this.currentEditorMode=e,t("body").attr("data-editormode",this.currentEditorMode)},i.prototype.getMode=function(){return this.mode},i.prototype.getResponsiveRatioHorizontal=function(){return this.editor.getHorizontalRatio()},i.prototype.getResponsiveRatioVertical=function(){return this.editor.getVerticalRatio()},i.prototype.setMainContent=function(t){this.mainContent=t},i.prototype.isGroup=function(t){return!1},i.prototype.isRow=function(t){return t instanceof N2Classes.Row},i.prototype.isCol=function(t){return t instanceof N2Classes.Col},i.prototype.isLayer=function(t){return t instanceof N2Classes.Layer},i.prototype.isContent=function(t){return t instanceof N2Classes.Content},i.prototype._initDeviceModeChange=function(){var e=t("#layerresettodesktop").on("click",t.proxy(this.__onResetToDesktopClick,this));this.resetToDesktopTRElement=e.closest("tr"),this.resetToDesktopGlobalElement=t("#n2-ss-layer-reset-to-desktop").on("click",t.proxy(function(){"block"==this.resetToDesktopTRElement.css("display")&&e.trigger("click")},this));var i=t("#n2-ss-layer-show-on"),s={},r=this.editor.getAvailableDeviceModes();for(var n in r)r[n]&&(s[n]=t('<div class="n2-radio-option"><i class="n2-i n2-it n2-i-'+n+'"></i></div>').on("click",t.proxy(function(t){this.layerOptions.currentForm[t].data("field").onoff.trigger("click")},this,n)).appendTo(i));i.children().first().addClass("n2-first"),i.children().last().addClass("n2-last"),this.globalShowOnDeviceCB=function(t){"undefined"!=typeof s[t]&&s[t].toggleClass("n2-active",1==this.layerOptions.currentForm[t].val())},this.layerOptions.forms.global.desktopPortrait.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"desktopPortrait")),this.layerOptions.forms.global.desktopLandscape.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"desktopLandscape")),this.layerOptions.forms.global.tabletPortrait.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"tabletPortrait")),this.layerOptions.forms.global.tabletLandscape.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"tabletLandscape")),this.layerOptions.forms.global.mobilePortrait.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"mobilePortrait")),this.layerOptions.forms.global.mobileLandscape.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"mobileLandscape")),t("#layershow").data("field").setAvailableDevices(r),this.refreshMode(),this.ready.resolve()},i.prototype.refreshMode=function(){this.mode=this.editor.getDeviceMode(),this.resetToDesktopTRElement.css("display","desktopPortrait"==this.mode?"none":""),this.resetToDesktopGlobalElement.css("display","desktopPortrait"==this.mode?"none":""),this.mainContainer.container.changeEditorModes(this.mode)},i.prototype.onChangeDeviceOrientation=function(){this.refreshMode()},i.prototype.onResize=function(t){this.mainContainer.onResize(t),this.canvasSettings.ruler&&this.canvasSettings.ruler.onResize()},i.prototype.__onResetToDesktopClick=function(){if(this.mainContainer.getSelectedLayer()){var t=this.getMode();this.mainContainer.getSelectedLayer().resetMode(t)}},i.prototype.copyOrResetMode=function(t){var e=this.getMode();"desktopPortrait"==e?"desktopPortrait"!=t&&this.mainContainer.container.resetModes(t):t==e?this.mainContainer.container.resetModes(t):this.mainContainer.container.copyModes(e,t)},i.prototype.getSnap=function(){return this.canvasSettings.get("n2-ss-snap-to-enabled")?t(this.configuration.snapSelector):!1},i.prototype.getHTML=function(){for(var e=t("<div></div>"),i=this.mainContainer.container.getAllLayers(),s=0;s<i.length;s++)e.append(i[s].getHTML(!0));return e.html()},i.prototype.getData=function(){return this.mainContainer.container.getData()},i.prototype.importLayers=function(e,i){var s=(this.mainContainer,t.extend(!0,[],e));i&&this.mainContainer.deleteLayers(),this._idTranslation={};for(var r=this.dataToLayers(s),n=0;n<r.length;n++)this.mainContainer.container.append(r[n]);if(this.refreshMode(),!this.mainContainer.getSelectedLayer()){var s=this.mainContainer.container.getSortedLayers();s.length>0&&s[0].activate()}},i.prototype.loadComponentWithNode=function(t,e,i,s){var r=t.container.append(e);return s&&this.refreshMode(),r},i.prototype.insertComponentWithNode=function(t,e,i,s,r){var n=t.container.insertAt(e,i);return r&&this.refreshMode(),n},i.prototype.fixActiveLayer=function(){var t=this.mainContainer.getSelectedLayer();(0==t||t.isDeleted)&&this.resetActiveLayer()},i.prototype.resetActiveLayer=function(){var t=this.mainContainer.container.getSortedLayers();t.length?t[t.length-1].activate():this.changeActiveLayer(null)},i.prototype.changeActiveLayer=function(e,i){var s=this.mainContainer.getSelectedLayer();s&&!s.isDeleted&&(s.$.off("propertyChanged.editor").off(".active"),s.deActivate()),this.mainContainer.activeLayer=e,i||this.exitSelectMode(),e&&(this.layerOptions.changeActiveComponent(e,e.type,e.placement.getType(),e.getProperties()),e.$.on({"propertyChanged.editor":t.proxy(this.layerOptions.onUpdateField,this.layerOptions),"placementChanged.active":t.proxy(function(t,i,s){this.layerOptions.changeActiveComponentPlacement(i,e.property)},this)})),this.$.trigger("activeLayerChanged")},i.prototype.highlight=function(t){this.$highlight.appendTo(t.layer)},i.prototype.deHighlight=function(t){this.$highlight.detach()},i.prototype["delete"]=function(){this.mainContainer.getSelectedLayer()&&this.doActionOnActiveLayer("delete")},i.prototype.duplicate=function(){this.mainContainer.getSelectedLayer()&&this.doActionOnActiveLayer("duplicate",[this.selectMode!=o.ON,!1])},i.prototype.copy=function(i){var s;if(i==e)if(1==this.selectMode)s=this.selectedLayers;else{var r=this.mainContainer.getSelectedLayer();r&&(s=this.isCol(r)||this.isContent(r)?r.container.getSortedLayers():[r])}else s=this.isCol(i)||this.isContent(i)?i.container.getSortedLayers():[i];var n=this.mainContainer.getLayerData(s);n.length&&t.jStorage.set("ss3layersclipboard",JSON.stringify(n))},i.prototype.paste=function(i){var s=t.jStorage.get("ss3layersclipboard");if(s){var r=JSON.parse(s);if(r.length){var n;n=i!==e&&i?this.isCol(i)||this.isContent(i)?i:i.group:this.mainContainer.getActiveGroup(),this.mainContainer.addLayers(r,n)}}},i.prototype.hasLayersOnClipboard=function(){return!!t.jStorage.get("ss3layersclipboard")},i.prototype.addContextMenu=function(){this.$editedElement.nextendContextMenu({onShow:t.proxy(function(e,i){var s=t(e.target),r=s.closest(".n2-ss-layer"),n=r.data("layerObject");n||(n=this.mainContainer.getSelectedLayer()),n&&(this.isCol(n)||this.isContent(n)?i.addItem("Copy child layers","n2-i-copy",t.proxy(function(){this.copy(n)},this)):i.addItem("Copy layer","n2-i-copy",t.proxy(function(){this.selectMode==o.ON?this.copy():this.copy(n)},this))),this.hasLayersOnClipboard()&&i.addItem("Paste layer(s)","n2-i-paste",t.proxy(function(){this.paste(n)},this)),i.addItem("Copy slide","n2-i-copy",t.proxy(function(){this.editor.copy()},this)),this.editor.hasClipboard()&&i.addItem("Paste slide","n2-i-paste",t.proxy(function(){this.editor.paste()},this))},this)})},i.prototype.initSelectMode=function(){this.selectMode=o.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))},i.prototype.startSelection=function(t){t?(this.selectMode==o.ON&&this.exitSelectMode(),this.changeSelectMode(o.GROUP)):this.changeSelectMode(o.ON)},i.prototype.changeSelectMode=function(e){var i=this.selectMode;i!=e&&(i==o.ON?t("#n2-admin").removeClass("n2-ss-select-layer-mode-on"):i==o.GROUP&&t("#n2-admin").removeClass("n2-ss-select-layer-mode-group"),this.selectMode=e,i==o.GROUP&&e==o.ON&&this.selectedLayers[0].activate(null,null,!0),e==o.OFF?t("#n2-admin").removeClass("n2-ss-select-layer-mode"):(t("#n2-admin").addClass("n2-ss-select-layer-mode"),e==o.ON?t("#n2-admin").addClass("n2-ss-select-layer-mode-on"):e==o.GROUP&&t("#n2-admin").addClass("n2-ss-select-layer-mode-group")),this.selectMode==o.OFF?t("body").off(".n2-ss-selection"):t("body").on("mousedown.n2-ss-selection",t.proxy(function(t){3!=t.which&&"main"==N2Classes.WindowManager.get().getCurrentWindow()&&N2Classes.WindowManager.get().mouseDownArea===!1&&this.exitSelectMode()},this)))},i.prototype.endSelection=function(t){t&&this.selectMode==o.GROUP&&this.exitSelectMode()},i.prototype.selectLayer=function(t,e){if("layer"!=t.type)return!0;if(this.selectMode!=o.ON){var i=this.mainContainer.getSelectedLayer();if("layer"!=i.type)return t.activate(null),!0;this.startSelection(!1),e&&this.selectedLayers.push(i)}return this._selectLayer(t),!0},i.prototype._selectLayer=function(e){var i=t.inArray(e,this.selectedLayers);if(-1!=i){if(this.selectMode==o.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==o.ON&&this.selectedLayers.length<=1)return this.selectedLayers[0].activate(),this.exitSelectMode(),!1;s===this.mainContainer.getSelectedLayer()&&this.selectedLayers[0].activate(!1,null,!0)}else{for(var r=this.selectedLayers.length,n=0;n<this.selectedLayers.length;n++)if(e.layer.add(this.selectedLayers[n].layer).index(this.selectedLayers[n].layer)>0){r=n;break}this.selectedLayers.splice(r,0,e)}for(var n=0;n<this.selectedLayers.length;n++)this.selectedLayers[n].layerRow.addClass("n2-selected"),this.selectedLayers[n].layer.addClass("n2-ss-layer-selected")},i.prototype.addSelection=function(t,e){e||this.changeSelectMode(o.ON);for(var i=0;i<t.length;i++)this._selectLayer(t[i],!1)},i.prototype.exitSelectMode=function(){if(this.selectMode){for(var e=0;e<this.selectedLayers.length;e++)this.selectedLayers[e]!=this.mainContainer.getSelectedLayer()&&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(o.OFF)}},i.prototype.doActionOnActiveLayer=function(e,i){if(this.selectMode==o.ON)for(var s=t.extend([],this.selectedLayers),r=0;r<s.length;r++)s[r][e].apply(s[r],i);else{var n=this.mainContainer.getSelectedLayer();n&&n[e].apply(n,i)}},i.prototype.canvasDragStart=function(t,e){if(this.selectMode&&"canvas"==this.currentEditorMode&&"absolute"==e.mode){for(var i=!1,s=0;s<this.selectedLayers.length;s++){var r=this.selectedLayers[s],n=r.layer;if(n[0]!=e.layer.layer[0]){var o=n.css("display");"none"==o&&n.css("display",""),r._originalPosition=n.position(),"none"==o&&n.css("display","none")}else i=!0}i||this.exitSelectMode(),this.isMultiDrag=!0}},i.prototype.canvasDragMove=function(t,e){if(this.isMultiDrag===!0)for(var i={left:e.position.left+e.canvasOffset.left-e.originalOffset.left,top:e.position.top+e.canvasOffset.top-e.originalOffset.top},s=0;s<this.selectedLayers.length;s++){var r=this.selectedLayers[s];if(!this.isGroup(r)){var n=r.layer;n[0]!=e.layer.layer[0]&&(n.css({left:r._originalPosition.left+i.left,top:r._originalPosition.top+i.top,bottom:"auto",right:"auto"}),r.placement.doAction("triggerLayerResized"))}}},i.prototype.canvasDragStop=function(t,e){if(this.isMultiDrag===!0){for(var i=0;i<this.selectedLayers.length;i++){var s=this.selectedLayers[i];if(!this.isGroup(s)){var r=s.layer;if(r[0]!=e.layer.layer[0]){var n=r.css("display");"none"==n&&r.css("display","block");var o=parseInt(s.layer.css("left")),a=parseInt(s.layer.css("top"));s.placement.current.setPosition(o,a),s.placement.doAction("triggerLayerResized"),"none"==n&&r.css("display","none")}}}return this.isMultiDrag=!1,!0}return!1},i.prototype.historyDeleteGroup=function(t){t.getSelf()["delete"]()},i.prototype.historyCreateGroup=function(t){var e=new N2Classes.Group(this,this.mainContainer,{},null);e.create(),t.setSelf(e)},i.prototype.createGroupFromSelected=function(){var t;switch(this.selectMode){case o.ON:t=new N2Classes.Group(this,this.mainContainer,{},null),t.create(),N2Classes.History.get().addSimple(this,this.historyDeleteGroup,this.historyCreateGroup,[t]),t.addLayers(this.selectedLayers),this.exitSelectMode(),t.activate();break;case o.OFF:var e=this.mainContainer.getSelectedLayer();e.group instanceof N2Classes.Group?e.group.activate():(t=new N2Classes.Group(this,this.mainContainer,{},null),t.create(),N2Classes.History.get().addSimple(this,this.historyDeleteGroup,this.historyCreateGroup,[t]),t.addLayers([e]),t.activate());break;case o.GROUP:}},i.prototype.createRow=function(t){var e=new N2Classes.Row(this,t,{});return e.create(),e.hightlightStructure(),{layer:e}},i.prototype.createCol=function(t){var e=t,i=null;if(this.isCol(e))i=e.group.createCol();else if(this.isRow(e))i=e.createCol();else{if(!this.isCol(e.group))return this.createRow(t);i=e.group.group.createCol()}return i.activate(null),{layer:i}},i.prototype.preventActivationBubbling=function(){return this.shouldPreventActivationBubble?!1:(this.shouldPreventActivationBubble=!0,!0)},i.prototype.allowActivation=function(){this.shouldPreventActivationBubble=!1},i.prototype.hotkeys=function(){t(window).on({keydown:t.proxy(function(e){var i=!1;if("TEXTAREA"!=e.target.tagName&&"INPUT"!=e.target.tagName&&!i){var o=this.mainContainer.getSelectedLayer(),a=e.keyCode;if(a>=49&&57>=a){var l=e.originalEvent.location||e.originalEvent.keyLocation||0;3==l&&(a+=48)}if(o)if(46==a||8==a)this["delete"](),e.preventDefault();else if(35==a)this.duplicate(),e.preventDefault();else if(16==a)s[a]=1;else if(38==a){if(!s[a]){var h=t.proxy(function(){this.doActionOnActiveLayer("moveY",[-1*(s[16]?10:1)])},this);h(),s[a]=setInterval(h,100)}e.preventDefault()}else if(40==a){if(!s[a]){var h=t.proxy(function(){this.doActionOnActiveLayer("moveY",[s[16]?10:1])},this);h(),s[a]=setInterval(h,100)}e.preventDefault()}else if(37==a){if(!s[a]){var h=t.proxy(function(){this.doActionOnActiveLayer("moveX",[-1*(s[16]?10:1)])},this);h(),s[a]=setInterval(h,100)}e.preventDefault()}else if(39==a){if(!s[a]){var h=t.proxy(function(){this.doActionOnActiveLayer("moveX",[s[16]?10:1])},this);h(),s[a]=setInterval(h,100)}e.preventDefault()}else if(a>=97&&105>=a){var d=r[a],p=n[a],c=!1;this.layerOptions.forms.placement.absolute.align.val()==d&&this.layerOptions.forms.placement.absolute.valign.val()==p&&(c=!0),this.layerOptions.layerFeatures.horizontalAlign(d,c),this.layerOptions.layerFeatures.verticalAlign(p,c)}else if(65==a){e.preventDefault();var u=this.mainContainer.getSelectedLayer();u&&"absolute"==u.placement.getType()&&u.placement.current.fit()}(e.ctrlKey||e.metaKey)&&(90==a?e.shiftKey?N2Classes.History.get().redo()&&e.preventDefault():N2Classes.History.get().undo()&&e.preventDefault():71==a?(this.createGroupFromSelected(),e.preventDefault()):68==a?(e.preventDefault(),this.editor.copy()):70==a?(e.preventDefault(),this.editor.paste()):67==a?this.copy():86==a&&this.paste())}},this),keyup:t.proxy(function(t){"undefined"!=typeof s[t.keyCode]&&s[t.keyCode]&&(clearInterval(s[t.keyCode]),s[t.keyCode]=0)},this)})},i.prototype.getSelf=function(){return this},i}),N2D("CanvasUserInterface",function(t,e){"use strict";function i(e){this.fragmentEditor=e,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(t){t.preventDefault(),this.switchLayerList()},this)),t(".n2-ss-slide-show-layers").on("click",t.proxy(function(t){t.preventDefault(),this.switchLayerList()},this)),this.onResize(),t(window).on("resize",t.proxy(this.onResize,this))}return i.prototype.onResize=function(){var t=this.$container.height();this.paneLeft.height(t-48),this.paneRight.height(t-48)},i.prototype.onActivateLayer=function(t){var e=this.paneLeft.scrollTop(),i=0,s=t;do i+=s.layerRow.get(0).offsetTop,s=s.group;while(s!==this.fragmentEditor.mainContainer);(e>i||i>e+this.paneLeft.height()-32)&&(this.paneLeft.scrollTop(i),this.paneRight.scrollTop(i))},i.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(t){var e=this.paneLeft.scrollTop();t.originalEvent.deltaY>0?e+=32:e-=32,e=32*Math.round(e/32),this.paneLeft.scrollTop(e),this.paneRight.scrollTop(e),t.preventDefault()},this);this.paneLeft.on("mousewheel",e),this.paneLeft.on("scroll",t.proxy(function(t){var e=this.paneLeft.scrollTop();this.paneRight.scrollTop(e),t.preventDefault()},this)),this.paneRight.on("mousewheel",e)},i.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)}))},i.prototype.resizeMove=function(t){t.preventDefault(),this.setTLHeight(this._calculateDesiredHeight(t))},i.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")},i.prototype._calculateDesiredHeight=function(t){var e=this.startY-t.clientY+this.height-48;return this.__calculateDesiredHeight(e)},i.prototype.__calculateDesiredHeight=function(t){return 32*Math.round(Math.min(Math.max(32,t),(window.innerHeight||document.documentElement.clientHeight)/2)/32)+48},i.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)},i.prototype.setTLHeight=function(t){t=Math.max(48,t),this.$container.height(t),t=this.$container.height(),this.paneLeft.height(t-48),this.paneRight.height(t-48),nextend.triggerResize()},i.prototype.activateAdd=function(t,e){this.$add.css({left:t,top:e}).appendTo(this.$container)},i}),N2D("LayerFeatures",function(t,e){"use strict";function i(t,e){this.fields=t,this.fragmentEditor=e,this.initParentLinker(),this.initAlign(),this.initEvents()}var s={left:0,center:1,right:2,top:0,middle:1,bottom:2};return i.prototype.initParentLinker=function(){var e=this.fields.parentid.data("field");t("#n2-ss-layer-parent-linker").on({click:function(t){e.click(t)}})},i.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");
|
5 |
e.add(i).on("click",t.proxy(function(s){if(s.ctrlKey||s.metaKey){var r=t(s.currentTarget),n=r.hasClass("n2-sub-active"),o=r.data("align");switch(o){case"left":case"center":case"right":e.removeClass("n2-sub-active"),n?(t.jStorage.set("ss-item-horizontal-align",null),this.layerDefault.align=null):(t.jStorage.set("ss-item-horizontal-align",o),this.layerDefault.align=o,r.addClass("n2-sub-active"));break;case"top":case"middle":case"bottom":i.removeClass("n2-sub-active"),n?(t.jStorage.set("ss-item-vertical-align",null),this.layerDefault.valign=null):(t.jStorage.set("ss-item-vertical-align",o),this.layerDefault.valign=o,r.addClass("n2-sub-active"))}}else if(this.fragmentEditor.mainContainer.getSelectedLayer()){var o=t(s.currentTarget).data("align");switch(o){case"left":case"center":case"right":this.horizontalAlign(o,!0);break;case"top":case"middle":case"bottom":this.verticalAlign(o,!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 r=t.jStorage.get("ss-item-horizontal-align",null),n=t.jStorage.get("ss-item-vertical-align",null);null!=r&&(e.eq(s[r]).addClass("n2-sub-active"),this.layerDefault.align=r),null!=n&&(i.eq(s[n]).addClass("n2-sub-active"),this.layerDefault.valign=n)},i.prototype.horizontalAlign=function(t,e){this.fields.align.val()!=t?this.fields.align.data("field").options.eq(s[t]).trigger("click"):e&&this.fields.left.val(0).trigger("change")},i.prototype.verticalAlign=function(t,e){this.fields.valign.val()!=t?this.fields.valign.data("field").options.eq(s[t]).trigger("click"):e&&this.fields.top.val(0).trigger("change")},i.prototype.initEvents=function(){var e=t("#n2-tab-events"),i=e.find(".n2-h3"),s=i.html(),r=t('<div class="n2-editor-header n2-h2 n2-uc"><span>'+s+"</span></div>");i.replaceWith(r)},i}),N2D("LayerWindow",function(t,e){"use strict";function i(e){this.isMinimized=!1,this.detachedPosition={left:t.jStorage.get("ssPanelLeft")||200,top:t.jStorage.get("ssPanelTop")||100,height:t.jStorage.get("ssPanelHeight")||400},this.hasBreadcrumb=!1,this.lastHeight=this.detachedPosition.height,this.admin=t("#n2-admin"),this.sidebar=t("#n2-ss-layer-window").on("mousedown",t.proxy(N2Classes.WindowManager.setMouseDownArea,null,"sidebarClicked")),this.title=this.sidebar.find(".n2-ss-layer-window-title-inner"),this.fragmentEditor=e,this.viewPanes={layerEdit:t("#n2-tabbed-slide-editor-settings > .n2-tabs").addClass("n2-scrollable")};for(var i in this.viewPanes)this.viewPanes[i].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 s=this.sidebar.find(".n2-ss-layer-window-title-nav-left");t('<a href="#"><i class="n2-i n2-i-minimize n2-i-grey-opacity"></i></a>').on("click",t.proxy(function(t){t.preventDefault(),this.toggleMinimize()},this)).appendTo(s);var r=this.sidebar.find(".n2-ss-layer-window-title-nav-right");t('<a href="#"><i class="n2-i n2-i-closewindow n2-i-grey-opacity"></i></a>').on("click",t.proxy(function(t){t.preventDefault(),this.hide()},this)).appendTo(r),nextend.tooltip.add(r),this.$breadcrumb=t('<div class="n2-ss-layer-window-breadcrumb"></div>').insertAfter("#n2-tabbed-slide-editor-settings > .n2-sidebar-tab-switcher");var n=t("#n2-ss-add-sidebar");t(".n2-ss-add-layer-button").on("click",function(e){e.preventDefault(),t("#n2-ss-layers-switcher > .n2-labels .n2-td").eq(0).trigger("click"),n.toggleClass("n2-active")}),t(".n2-ss-core-item").on("click",function(t){n.removeClass("n2-active")});var o=t("#wpadminbar, .navbar-fixed-top").height()+t(".n2-top-bar").height();this.$verticalBarInner=t(".n2-ss-add-sidebar-inner").each(function(){var e=t(this);e.fixTo(e.parent(),{top:o})}),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)),t(".n2-ss-slide-duplicate-layer").on("click",t.proxy(function(t){t.preventDefault(),this.duplicate()},this.fragmentEditor)),t(".n2-ss-slide-delete-layer").on("click",t.proxy(function(t){t.preventDefault(),this["delete"]()},this.fragmentEditor)),t("body").on("mousedown",t.proxy(function(t){"main"==N2Classes.WindowManager.get().getCurrentWindow()&&N2Classes.WindowManager.get().mouseDownArea===!1&&this.hide()},this));var a=t('<div id="n2-ss-devicespecific-settings"></div>'),l=this.fragmentEditor.editor.getAvailableDeviceModes();for(var i in l)if(l[i]){var h=i.replace(/([A-Z])/g," $1").split(" "),d=h[0],p=h[1].toLowerCase();a.append('<i class="n2-i n2-it n2-i-mini-'+d+"-"+p+'" data-device="'+d+'" data-orientation="'+p+'"></i>')}var c={mouseenter:t.proxy(function(t){a.appendTo(t.currentTarget)},this),mouseleave:t.proxy(function(t){a.detach()},this)};this.sidebar.find("[data-devicespecific] label").prepend('<span class="n2-i n2-i-mini-desktop-portrait"></span>'),this.sidebar.find("[data-devicespecific] label").on(c),a.find(".n2-i").on({click:t.proxy(function(e){e.preventDefault();var i=t(e.currentTarget);t("#n2-ss-devices").find('[data-device="'+i.data("device")+'"][data-orientation="'+i.data("orientation")+'"]').trigger("click")},this)})}return i.prototype.toggleMinimize=function(){this.isMinimized=!this.isMinimized,this.sidebar.toggleClass("n2-ss-layer-window-minized",this.isMinimized),this.isMinimized||this.onResize()},i.prototype.magnetize=function(){if(!this.autoPosition){this.autoPosition=1,t.jStorage.set("ssPanelAutoPosition",1),this.magnet.css("display","none");var e=this.fragmentEditor.mainContainer.getSelectedLayer();e&&e.positionSidebar()}},i.prototype.show=function(e,i){this.setTitle(e),t("body").addClass("n2-ss-layer-edit-visible")},i.prototype._show=function(){t("body").addClass("n2-ss-layer-edit-visible")},i.prototype.hide=function(){t("body").removeClass("n2-ss-layer-edit-visible")},i.prototype.isVisible=function(){return t("body").hasClass("n2-ss-layer-edit-visible")},i.prototype.hideWithDeferred=function(e){t("body").hasClass("n2-ss-layer-edit-visible")&&(this.hide(),e.done(t.proxy(this._show,this)))},i.prototype.setTitle=function(t){this.title.html(t.getName()),this.updateGroupTitle(t)},i.prototype.updateGroupTitle=function(e){var i;for(this.$breadcrumb.html(""),i=0;5>i&&(t('<span class="n2-window-title-structure-nav"><span>'+e.label+'</span><span class="n2-i n2-it n2-i-mini-arrow-thin"></span></span>').on({mouseenter:t.proxy(function(){this.fragmentEditor.highlight(this)},e),mouseleave:t.proxy(function(){this.fragmentEditor.deHighlight(this)},e),click:t.proxy(function(t){this.fragmentEditor.deHighlight(this),this.activate(t)},e)}).prependTo(this.$breadcrumb),e.group&&e.group!==this.fragmentEditor.mainContainer);i++)e=e.group;this.hasBreadcrumb=i>0,this.$breadcrumb.toggleClass("n2-has-breadcrumb",this.hasBreadcrumb),this.onResize()},i.prototype.getLayerEditExcludedHeight=function(){return 85+(this.hasBreadcrumb?23:0)},i.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)},i.prototype.onResize=function(){this.sidebar.css("display","block"),this.resizeVerticalBar();var t=window.innerHeight||document.documentElement.clientHeight,e=this.sidebar.height()-this.getLayerEditExcludedHeight();this.viewPanes.layerEdit.height(e);var i={},s=window.innerWidth||document.documentElement.clientWidth,r=this.sidebar[0].getBoundingClientRect();r.left<0?i.left=0:r.left+r.width>s&&(i.left=Math.max(0,s-r.width)),r.height>t-r.top&&(i.top=t-r.top-r.height+r.top,i.top<0&&(this.lastHeight=i.height=r.height+i.top,i.top=0)),this.sidebar.css(i),this.sidebar.css("display","")},i.prototype.detach=function(){this.sidebar.css(this.detachedPosition),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.nUIDraggable({distance:5,handle:".n2-ss-layer-window-title",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),scroll:!1}).nUIResizable({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(".nui-resizable-handle").addClass("n2-ss-layer-window-resizer")},this)}),this.onResize(),nextend.triggerResize()},i.prototype.switchTab=function(t){this.panelHeading.filter('[data-tab="'+t+'"]').trigger("click")},i}),N2D("PositionDisplay",function(t,e){"use strict";function i(){this.currentSource="",t(window).ready(t.proxy(this._ready,this))}return i.prototype._ready=function(){this.$body=t("body"),this.$el=t('<div class="n2 n2-ss-position-display"/>').appendTo("body")},i.prototype.show=function(t){""==this.currentSource&&(this.currentSource=t,this.$el.addClass("n2-active"),this.$body.addClass("n2-position-display-active"))},i.prototype.update=function(t,e,i){this.currentSource==e&&this.$el.html(i).css({left:t.pageX+10,top:t.pageY+10})},i.prototype.hide=function(t){this.currentSource!=t&&t!==e||(this.$body.removeClass("n2-position-display-active"),this.$el.removeClass("n2-active"),this.currentSource="")},i.get=function(){var t=new i;return i.get=function(){return t},t},i}),N2D("Ruler",function(t,e){"use strict";function i(e,i){this.editor=e,this.showGuides=1,this.guides=[],this.container=t('<div class="n2-ruler-container" />').appendTo("#n2-ss-slide-canvas-container-inner .n2-ss-slider-outer-container"),this.scale=10,this.vertical=t('<div class="n2-ruler n2-ruler-vertical unselectable"></div>').appendTo(".n2-ss-slider-real-container"),this.horizontal=t('<div class="n2-ruler n2-ruler-horizontal unselectable"></div>').appendTo(this.container),this.verticalSpans=t(),this.horizontalSpans=t(),this.onResize(),t(window).on("resize",t.proxy(this.onResize,this)),this.horizontal.on("mousedown",t.proxy(function(t){this.showGuides&&new r(this,this.horizontal,t)},this)),this.vertical.on("mousedown",t.proxy(function(t){this.showGuides&&new n(this,this.vertical,t)},this));try{i=t.extend({vertical:[],horizontal:[]},JSON.parse(N2Classes.Base64.decode(i)));for(var s=0;s<i.horizontal.length;s++){var o=new r(this,this.horizontal);o.setPosition(i.horizontal[s])}for(var s=0;s<i.vertical.length;s++){var o=new n(this,this.vertical);o.setPosition(i.vertical[s])}}catch(a){}this.measureToolVertical(),this.measureToolHorizontal()}function s(e,i,s){this.ruler=e,this.container=i,this.position=0,this.guide=t('<div class="n2-ruler-guide n2-ruler-user-guide"><div class="n2-ruler-guide-border"></div><div class="n2-ruler-guide-handle"></div></div>').appendTo(i).on("mousedown",t.proxy(function(t){t.preventDefault(),t.stopPropagation(),e.editor.fragmentEditor.canvasSettings.settings["n2-ss-lock-guides"]||this["delete"]()},this)),this.ruler.addGuide(this),s&&this.create(s)}function r(){s.prototype.constructor.apply(this,arguments)}function n(){s.prototype.constructor.apply(this,arguments)}return i.prototype.addGuide=function(t){this.guides.push(t)},i.prototype.removeGuide=function(e){this.guides.splice(t.inArray(e,this.guides),1)},i.prototype.clearGuides=function(){for(var t=this.guides.length-1;t>=0;t--)this.guides[t]["delete"]()},i.prototype.onResize=function(){var e=t(".n2-ss-slider-outer-container"),i=e.width(),s=e.height();this.container.css({width:i+40,height:s+40});for(var r=this.horizontalSpans.length-3;r<i/this.scale;r++){var n=t("<span />").appendTo(this.horizontal);r%10==0?n.addClass("n2-ss-ruler-mark-large").append("<span>"+r/10*100+"</span>"):r%2==0&&n.addClass("n2-ss-ruler-mark-medium"),this.horizontalSpans=this.horizontalSpans.add(n)}for(var r=this.verticalSpans.length-3;r<s/this.scale;r++){var n=t("<span />").appendTo(this.vertical);r%10==0?n.addClass("n2-ss-ruler-mark-large").append("<span>"+r/10*100+"</span>"):r%2==0&&n.addClass("n2-ss-ruler-mark-medium"),this.verticalSpans=this.verticalSpans.add(n)}},i.prototype.toArray=function(){for(var t={horizontal:[],vertical:[]},e=0;e<this.guides.length;e++)this.guides[e]instanceof r?t.horizontal.push(this.guides[e].position):this.guides[e]instanceof n&&t.vertical.push(this.guides[e].position);return t},i.prototype.measureToolVertical=function(){var e=t('<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=t.proxy(function(){i||(i=!0,e.css("display",""),N2Classes.PositionDisplay.get().show("Guide"))},this),r=t.proxy(function(){i&&(i=!1,e.css("display","none"),N2Classes.PositionDisplay.get().hide("Guide"))},this);this.vertical.on({mouseenter:t.proxy(function(i){if(this.showGuides){var n=0,o=Math.round(this.vertical.offset().top);s(),this.vertical.on("mousemove.n2-ruler-measure-tool",t.proxy(function(i){if(t(i.target).hasClass("n2-ruler-guide-border")&&t(i.target).parent()[0]!=e[0])r();else if(s(),n!=i.pageY){var a=i.pageY-o;e.css("top",a),N2Classes.PositionDisplay.get().update(i,"Guide",a-40+"px"),n=i.pageY}},this))}},this),mouseleave:t.proxy(function(){this.vertical.off(".n2-ruler-measure-tool"),r()},this)})},i.prototype.measureToolHorizontal=function(){var e=t('<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=t.proxy(function(){i||(i=!0,e.css("display",""),N2Classes.PositionDisplay.get().show("Guide"))},this),r=t.proxy(function(){i&&(i=!1,e.css("display","none"),N2Classes.PositionDisplay.get().hide("Guide"))},this);this.horizontal.on({mouseenter:t.proxy(function(i){if(this.showGuides){var n=0,o=Math.round(this.horizontal.offset().left);s(),this.horizontal.on("mousemove.n2-ruler-measure-tool",t.proxy(function(i){if(t(i.target).hasClass("n2-ruler-guide-border")&&t(i.target).parent()[0]!=e[0])r();else if(s(),n!=i.pageX){var a=Math.max(i.pageX-o,40);e.css("left",a),N2Classes.PositionDisplay.get().update(i,"Guide",a-40+"px"),n=i.pageX}},this))}},this),mouseleave:t.proxy(function(){this.horizontal.off(".n2-ruler-measure-tool"),r()},this)})},s.prototype._position=function(t,e){return Math.max(0,t)},s.prototype.setPosition=function(t){this.position=t,this.refresh()},s.prototype.refresh=function(){this.positionRender(this.position)},s.prototype["delete"]=function(){this.ruler.removeGuide(this),this.guide.remove()},r.prototype=Object.create(s.prototype),r.prototype.constructor=r,r.prototype.create=function(t){var e=Math.round(this.container.offset().left)+40;this.position=this._position(t.pageX-e,t),this.positionRender(this.position)},r.prototype.rawPositionRender=function(t){this.guide.css("left",Math.max(0,t)+40)},r.prototype.positionRender=function(t){this.guide.css("left",Math.max(0,t)+40)},n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.create=function(t){var e=Math.round(this.container.offset().top)+40;this.position=this._position(t.pageY-e,t),this.positionRender(this.position)},n.prototype.rawPositionRender=function(t){this.guide.css("top",Math.max(0,t)+40)},n.prototype.positionRender=function(t){this.guide.css("top",Math.max(0,t)+40)},i}),N2D("CanvasSettings",function(t,e){"use strict";function i(e){this.fragmentEditor=e,this.settings={};var i=t("#n2-ss-slide-canvas-settings").on("mouseleave",t.proxy(function(){i.removeClass("n2-active")},this));i.find("> a").on("click",function(t){t.preventDefault(),i.toggleClass("n2-active")}),this.$settingsPanel=i.find(".n2-ss-settings-panel-inner"),this.snapTo(),this.roundTo(),this.colorScheme(),this.fragmentEditor.editor.options.isAddSample||this.startRuler()}return i.prototype._addSettings=function(e,i,s,r){this.settings[e]=parseInt(t.jStorage.get(e,s));var n=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]),n.toggleClass("n2-setting-enabled",1==this.settings[e]),r(this.settings[e],!1)},this)).appendTo(this.$settingsPanel);n.toggleClass("n2-setting-enabled",1==this.settings[e]),r(this.settings[e],!0)},i.prototype._addAction=function(e,i){t('<a href="#" class="n2-panel-action">'+e+"</a>").on("click",t.proxy(function(t){t.preventDefault(),i()},this)).appendTo(this.$settingsPanel)},i.prototype.get=function(t){return this.settings[t]},i.prototype.snapTo=function(){this._addSettings("n2-ss-snap-to-enabled",n2_("Smart Snap"),1,t.proxy(function(t){for(var e=this.mainContainer.container.getSortedLayers(),i=0;i<e.length;i++)e[i].placement.doAction("snap")},this.fragmentEditor))},i.prototype.roundTo=function(){this._addSettings("n2-ss-round-to-enabled",n2_("Round to 5px"),1,function(t){1==t?nextend.roundTo=5:nextend.roundTo=1})},i.prototype.colorScheme=function(){var e=t("#n2-ss-slide-canvas-container");this._addSettings("n2-ss-theme-dark",n2_("Dark Mode"),0,function(t){e.toggleClass("n2-ss-theme-dark",1==t)})},i.prototype.startRuler=function(){this.ruler=new N2Classes.Ruler(this.fragmentEditor.editor,t("#slideguides").val());var e=t("#n2-ss-slide-canvas-container");this._addSettings("n2-ss-ruler-enabled",n2_("Ruler"),1,t.proxy(function(t){e.toggleClass("n2-ss-has-ruler",1==t),nextend.triggerResize()},this)),this._addSettings("n2-ss-show-guides",n2_("Show Guides"),1,t.proxy(function(t){this.ruler.showGuides=t,e.toggleClass("n2-ss-show-guides",1==t)},this)),this._addSettings("n2-ss-lock-guides",n2_("Lock Guides"),0,t.proxy(function(t){e.toggleClass("n2-ss-lock-guides",1==t)},this)),this._addAction(n2_("Clear Guides"),t.proxy(function(){this.ruler.clearGuides()},this))},i}),N2D("PlacementAbsolute",["PlacementAbstract"],function(t,e){"use strict";function i(t,e,i){this.type="absolute",this.transferredProperties={},N2Classes.PlacementAbstract.prototype.constructor.apply(this,arguments),this.doThrottledTheResize=this.doTheResize,this._triggerLayerResizedThrottled=NextendThrottle(this._triggerLayerResized,30),this.parentIsVisible=!0,this.children=[]}var s=function(){var t=0;return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){var i,s=(new Date).getTime();return i=Math.max(0,16-(s-t)),t=s+i,setTimeout(function(){e(s+i)},i)}}(),r={raf:!1,ratios:null,isThrottled:!1,layers:[]},n=function(){r.raf===!1&&(r.raf=!0,s(function(){for(var t=0;t<r.layers.length;t++)r.layers[t].isDeleted||r.layers[t].doTheResize(r.ratios,!0,r.isThrottled);r={raf:!1,ratios:null,isThrottled:!1,layers:[]}}))};return i.prototype=Object.create(N2Classes.PlacementAbstract.prototype),i.prototype.constructor=i,i.prototype.start=function(){this.$layer=this.layer.layer,this.$layerRow=this.layer.layerRow},i.prototype.preActivation=function(t){if("normal"==t.type){var e=this.layer.getProperty("height");e>0&&(this.transferredProperties.height=e)}},i.prototype.activated=function(e){var i=this.$layer.data("parentid");if(i){var s=t("#"+i);s.length>0?this.activatedAfterParentReady(e):setTimeout(t.proxy(function(){this.activatedAfterParentReady(e)},this),300)}else this._activated(e)},i.prototype.activatedAfterParentReady=function(e){var i=this.$layer.data("parentid");if(i){var s=t("#"+i);if(s.length>0){var r=s.data("layerObject");r?r.readyDeferred.done(t.proxy(this._activated,this,e)):s.on("layerStarted",t.proxy(function(i,s){s.readyDeferred.done(t.proxy(this._activated,this,e))},this))}else this.$layer.data("parentid",""),this._activated(e)}else this._activated(e)},i.prototype._activated=function(e){this.loadProperties(t.extend(e,this.transferredProperties)),this.transferredProperties={},this.$layer.css("zIndex",""),this.___makeLayerAlign(),this.___makeLayerResizeable()},i.cleanLayer=function(t){var e=["desktopPortrait","desktopLandscape","tabletPortrait","tabletLandscape","mobilePortrait","mobileLandscape"];t.removeAttr("data-align").removeAttr("data-valign").css({left:"",top:"",right:"",bottom:"",width:"",height:"","text-align":""});for(var i=["parentid","responsiveposition","responsivesize","parentalign","parentvalign","align","valign","left","top","width","height"],s={},r=0;r<i.length;r++){var n=i[r].toLowerCase();s[n]=t.data(n),t.removeAttr(n),t.removeData(n);for(var o=0;o<e.length;o++){var a=e[o].toLowerCase();s[a+n]=t.data(a+n),t.removeAttr(a+n),t.removeData(a+n)}}return s},i.prototype.deActivated=function(t){var e=this.layer.getProperty("parentid");e&&""!=e&&(this.$layer.removeAttr("data-parentid"),this.unSubscribeParent()),this.$layer.removeAttr("data-align").removeAttr("data-valign").css({left:"",top:"",right:"",bottom:"",width:"",height:"","text-align":""}),this.alignMarker.remove(),this.$layer.nUIResizable("destroy"),this.$layer.off(".n2-ss-absolute"),this.$layer.triggerHandler("LayerUnavailable");var i=["parentid","responsiveposition","responsivesize","parentalign","parentvalign","align","valign","left","top","width","height"],s=this.layer.getPropertiesData(i);return this.layer.removeProperties(i),this.chainParent.remove(),s},i.prototype.loadProperties=function(e){this.layer.createProperty("parentid",null,this.layer.layer,this),this.layer.createProperty("responsiveposition",1,this.layer.layer,this),this.layer.createProperty("responsivesize",1,this.layer.layer,this),this.layer.createDeviceProperty("parentalign",{desktopPortrait:"center"},this.layer.layer,this),this.layer.createDeviceProperty("parentvalign",{desktopPortrait:"middle"},this.layer.layer,this),this.layer.createDeviceProperty("align",{desktopPortrait:e.align||"center"},this.layer.layer,this),this.layer.createDeviceProperty("valign",{desktopPortrait:e.valign||"middle"},this.layer.layer,this),this.layer.createDeviceProperty("left",{desktopPortrait:e.left||0},this.layer.layer,this),this.layer.createDeviceProperty("top",{desktopPortrait:e.top||0},this.layer.layer,this),this.layer.createDeviceProperty("width",{desktopPortrait:e.width||"auto"},this.layer.layer,this),this.layer.createDeviceProperty("height",{desktopPortrait:e.height||"auto"},this.layer.layer,this);var i=this.layer.layer;this.subscribeParentCallbacks={},this.layer.getProperty("parentid")&&this.subscribeParent(),i.attr({"data-align":this.layer.getProperty("align"),"data-valign":this.layer.getProperty("valign")});var s=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(){s=t("#"+this.layer.getProperty("parentid")).addClass("n2-highlight")},this),mouseleave:t.proxy(function(){s&&(s.removeClass("n2-highlight"),s=null)},this)}).appendTo(this.$layer)},i.prototype.triggerLayerResized=function(t,e){t?this._triggerLayerResized(t,e):this._triggerLayerResizedThrottled(!0,e)},i.prototype._triggerLayerResized=function(t,e){this.layer.isDeleted||this.$layer.triggerHandler("LayerResized",[e||{slideW:this.fragmentEditor.getResponsiveRatioHorizontal(),slideH:this.fragmentEditor.getResponsiveRatioVertical()},t||!1])},i.prototype.___makeLayerAlign=function(){this.alignMarker=t('<div class="n2-ss-layer-cc" />').appendTo(this.$layer)},i.prototype.___makeLayerResizeable=function(){this._resizableJustClick=!1,this.$layer.nUIResizable({handles:"n, e, s, w, ne, se, sw, nw",_containment:this.fragmentEditor.mainContainer.layer,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(".nui-resizable-handle, .n2-ss-layer-cc").on({mousedown:t.proxy(function(t){this._resizableJustClick=[t.clientX,t.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){var i=t(e.currentTarget),s=this.fragmentEditor.layerOptions.layerFeatures;i.hasClass("nui-resizable-nw")?(s.horizontalAlign("left",!1),s.verticalAlign("top",!1)):i.hasClass("nui-resizable-w")?(s.horizontalAlign("left",!1),s.verticalAlign("middle",!1)):i.hasClass("nui-resizable-sw")?(s.horizontalAlign("left",!1),s.verticalAlign("bottom",!1)):i.hasClass("nui-resizable-n")?(s.horizontalAlign("center",!1),s.verticalAlign("top",!1)):i.hasClass("n2-ss-layer-cc")?(s.horizontalAlign("center",!1),s.verticalAlign("middle",!1)):i.hasClass("nui-resizable-s")?(s.horizontalAlign("center",!1),s.verticalAlign("bottom",!1)):i.hasClass("nui-resizable-ne")?(s.horizontalAlign("right",!1),s.verticalAlign("top",!1)):i.hasClass("nui-resizable-e")?(s.horizontalAlign("right",!1),s.verticalAlign("middle",!1)):i.hasClass("nui-resizable-se")&&(s.horizontalAlign("right",!1),s.verticalAlign("bottom",!1))}this._resizableJustClick=!1},this)})},this),smartguides:t.proxy(function(){return this.$layer.triggerHandler("LayerParent"),this.fragmentEditor.getSnap()},this),tolerance:5}).on({"mousedown.n2-ss-absolute":t.proxy(function(t){!this.layer.status!=N2Classes.ComponentAbstract.STATUS.LOCKED&&(N2Classes.PositionDisplay.get().show("Canvas"),N2Classes.PositionDisplay.get().update(t,"Canvas","W: "+parseInt(this.$layer.width())+"px<br />H: "+parseInt(this.$layer.height())+"px")),document.activeElement&&document.activeElement.blur()},this),"mouseup.n2-ss-absolute":t.proxy(function(t){N2Classes.PositionDisplay.get().hide("Canvas")},this)})},i.prototype.____makeLayerResizeableStart=function(e,i){this.preventActivation=!0,this.resizableDeferred=t.Deferred(),this.fragmentEditor.layerWindow.hideWithDeferred(this.resizableDeferred),t("body").addClass("n2-ss-resize-layer"),this._resizableJustClick&&(this._resizableJustClick=!1),this.____makeLayerResizeableResize(e,i),N2Classes.PositionDisplay.get().show("Canvas")},i.prototype.____makeLayerResizeableResize=function(t,e){N2Classes.PositionDisplay.get().update(t,"Canvas","W: "+e.size.width+"px<br />H: "+e.size.height+"px"),this.triggerLayerResized()},i.prototype.____makeLayerResizeableStop=function(e,i){t("body").removeClass("n2-ss-resize-layer"),this.resizableDeferred.resolve();var s=!1;if("n"==i.axis||"s"==i.axis||i.originalSize.width==i.size.width){var r=this.layer.getProperty("width");this.layer.isDimensionPropertyAccepted(r)&&(s=!0,this._syncwidth())}var n=!1;if("e"==i.axis||"w"==i.axis||i.originalSize.height==i.size.height){var r=this.layer.getProperty("height");this.layer.isDimensionPropertyAccepted(r)&&(n=!0,this._syncheight())}var o=this.fragmentEditor.getResponsiveRatioHorizontal(),a=this.fragmentEditor.getResponsiveRatioVertical();parseInt(this.layer.getProperty("responsivesize"))||(o=a=1);var l=null;s||(l=Math.round(i.size.width*(1/o)));var h=null;n||(h=Math.round(i.size.height*(1/a))),this._setPosition(null,null,i.position.left,i.position.top,l,h,!0),this.triggerLayerResized(),this.$layer.triggerHandler("LayerUnParent"),N2Classes.PositionDisplay.get().hide("Canvas"),setTimeout(t.proxy(function(){this.preventActivation=!1},this),80)},i.prototype._setPosition=function(t,e,i,s,r,n,o){var a=this.layer.getMode();null===t&&(t=this.layer.getProperty("align")),null===e&&(e=this.layer.getProperty("valign")),null===i?i=this.layer.getProperty("left"):o&&(i=this.calculatePositionLeft(t,i)),null===s?s=this.layer.getProperty("top"):o&&(s=this.calculatePositionTop(e,s)),null===r&&(r=this.layer.getProperty("width")),null===n&&(n=this.layer.getProperty("height"));var l=N2Classes.History.get().addValue(this.layer,this.layer.historyStoreOnPlacement,["historyStorePosition",a]);l&&l.setValues({align:this.layer.getRawProperty("align"),valign:this.layer.getRawProperty("valign"),left:this.layer.getRawProperty("left"),top:this.layer.getRawProperty("top"),width:this.layer.getRawProperty("width"),height:this.layer.getRawProperty("height")},{align:t,valign:e,left:i,top:s,width:r,height:n}),N2Classes.History.get().off(),this.layer.store("width",r,!0,"layer"),this.layer.$.trigger("propertyChanged",["width",r]),this.layer.store("height",n,!0,"layer"),this.layer.$.trigger("propertyChanged",["height",n]),this.layer.store("align",t,!0,"layer"),this.layer.$.trigger("propertyChanged",["align",t]),this.layer.store("valign",e,!0,"layer"),this.layer.$.trigger("propertyChanged",["valign",e]),this.layer.store("left",i,!0,"layer"),this.layer.$.trigger("propertyChanged",["left",i]),this.layer.store("top",s,!0,"layer"),this.layer.$.trigger("propertyChanged",["top",s]),N2Classes.History.get().on()},i.prototype.historyStorePosition=function(t,e){this.layer.historyStore(t.align,"align",e),this.layer.historyStore(t.valign,"valign",e),this.layer.historyStore(t.width,"width",e),this.layer.historyStore(t.height,"height",e),this.layer.historyStore(t.left,"left",e),this.layer.historyStore(t.top,"top",e),this.triggerLayerResized()},i.prototype.calculatePositionLeft=function(t,e){var i=this.fragmentEditor.getResponsiveRatioHorizontal();parseInt(this.layer.getProperty("responsiveposition"))||(i=1);var s=this.parent,r={left:0,leftMultiplier:1};if(s&&s.is(":visible")){var n=s.position();switch(this.layer.getProperty("parentalign")){case"right":r.left=n.left+s.width();break;case"center":r.left=n.left+s.width()/2;break;default:r.left=n.left}}else switch(s=this.$layer.parent(),t){case"center":r.left+=s.width()/2;break;case"right":r.left+=s.width()}var e;switch(t){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))}return e},i.prototype.calculatePositionTop=function(t,e){var i=this.fragmentEditor.getResponsiveRatioVertical();parseInt(this.layer.getProperty("responsiveposition"))||(i=1);var s=this.parent,r={top:0,topMultiplier:1};if(s&&s.is(":visible")){var n=s.position();switch(this.layer.getProperty("parentvalign")){case"bottom":r.top=n.top+s.height();break;case"middle":r.top=n.top+s.height()/2;break;default:r.top=n.top}}else switch(s=this.$layer.parent(),t){case"middle":r.top+=s.height()/2;break;case"bottom":r.top+=s.height()}var e;switch(t){case"top":e=-Math.round((r.top-e)*(1/i));break;case"middle":e=-Math.round((r.top-e-this.$layer.height()/2)*(1/i));break;case"bottom":e=-Math.round((r.top-e-this.$layer.height())*(1/i))}return e},i.prototype.moveX=function(t){this._setPosition(null,null,this.layer.getProperty("left")+t,null,null,null,!1)},i.prototype.moveY=function(t){this._setPosition(null,null,null,this.layer.getProperty("top")+t,null,null,!1)},i.prototype.setPositionLeft=function(t){t=this.calculatePositionLeft(this.layer.getProperty("align"),t),this.layer.store("left",t,!0),this.layer.$.trigger("propertyChanged",["left",t])},i.prototype.setPositionTop=function(t){t=this.calculatePositionTop(this.layer.getProperty("valign"),t),
|
library/media/dist/smartslider-frontend.js
CHANGED
@@ -1096,7 +1096,7 @@ N2D('SmartSliderAbstract', function ($, undefined) {
|
|
1096 |
var playWhenVisibleAt = this.parameters.playWhenVisibleAt,
|
1097 |
windowOffsetTop = $(window).scrollTop(),
|
1098 |
windowHeight = $(window).height(),
|
1099 |
-
bodyHeight =
|
1100 |
sliderBoundingClientRect = this.sliderElement[0].getBoundingClientRect(),
|
1101 |
requiredVisibility = windowHeight * playWhenVisibleAt / 2,
|
1102 |
topLine = windowOffsetTop + requiredVisibility,
|
1096 |
var playWhenVisibleAt = this.parameters.playWhenVisibleAt,
|
1097 |
windowOffsetTop = $(window).scrollTop(),
|
1098 |
windowHeight = $(window).height(),
|
1099 |
+
bodyHeight = $(document).height(),
|
1100 |
sliderBoundingClientRect = this.sliderElement[0].getBoundingClientRect(),
|
1101 |
requiredVisibility = windowHeight * playWhenVisibleAt / 2,
|
1102 |
topLine = windowOffsetTop + requiredVisibility,
|
library/media/dist/smartslider-frontend.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
(function(){var e=this;e.N2_=e.N2_||{r:[],d:[]},e.N2R=e.N2R||function(){e.N2_.r.push(arguments)},e.N2D=e.N2D||function(){e.N2_.d.push(arguments)}}).call(window),N2D("SmartSliderBackgrounds",function(e,t){function i(t){this.device=null,this.slider=t,this.lazyLoad=t.parameters.lazyLoad,this.lazyLoadNeighbor=t.parameters.lazyLoadNeighbor,this.deviceDeferred=e.Deferred(),this.slider.sliderElement.one("SliderDevice",e.proxy(this.onSlideDeviceChangedFirst,this)),this.slider.sliderElement.on("visibleSlidesChanged",e.proxy(this.onVisibleSlidesChanged,this)),this.slider.sliderElement.on("slideCountChanged",e.proxy(this.onVisibleSlidesChanged,this))}return i.prototype.whenWithProgress=function(t){for(var i=0,s=e.Deferred(),r=0;r<t.length;r++)e.when(t[r]).done(function(){s.notify(++i,t.length)});return e.when.apply(e,t).done(function(){s.resolveWith(null,arguments)}),s},i.prototype.getBackgroundImages=function(){for(var e=[],t=0;t<this.slider.realSlides.length;t++)e.push(this.slider.realSlides[t].background);return e},i.prototype.onVisibleSlidesChanged=function(){1==this.lazyLoad?this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide)):2==this.lazyLoad&&(this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide)))},i.prototype.onSlideDeviceChangedFirst=function(t,i){this.onSlideDeviceChanged(t,i),this.deviceDeferred.resolve(),this.slider.sliderElement.on("SliderDevice",e.proxy(this.onSlideDeviceChanged,this)),this.preLoadSlides=this._preLoadSlides,1==this.lazyLoad?(this.preLoadSlides=this.preloadSlidesLazyNeighbor,this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide))):2==this.lazyLoad?(e(window).on("load",e.proxy(this.preLoadAll,this)),this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide))):this.load=this.whenWithProgress(this.preLoadAll())},i.prototype.onSlideDeviceChanged=function(e,t){this.device=t;for(var i=0;i<this.slider.realSlides.length;i++)this.slider.realSlides[i].background&&this.slider.realSlides[i].background.updateBackgroundToDevice(t)},i.prototype.preLoadAll=function(){for(var e=[],t=0;t<this.slider.realSlides.length;t++)e.push(this.slider.realSlides[t].preLoad());return e},i.prototype._preLoadSlides=function(t){var i=[];"[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]);for(var s=0;s<t.length;s++)i.push(t[s].preLoad());return e.when.apply(e,i)},i.prototype.preloadSlidesLazyNeighbor=function(t){var i=[this._preLoadSlides(t)];if(this.lazyLoadNeighbor)for(var s=0,r=t[0].previousSlide,n=t[t.length-1].nextSlide;s<this.lazyLoadNeighbor;)i.push(r.preLoad()),r=r.previousSlide,i.push(n.preLoad()),n=n.nextSlide,s++;var a=e.Deferred();if("resolved"!=i[0].state()){var o=setTimeout(e.proxy(function(){this.slider.load.showSpinner("backgroundImage"+t[0].index),o=null},this),50);e.when.apply(e,i).done(e.proxy(function(){o?(clearTimeout(o),o=null):this.slider.load.removeSpinner("backgroundImage"+t[0].index),setTimeout(function(){a.resolve()},100)},this))}else setTimeout(function(){a.resolve()},100);return a},i.prototype.hack=function(){for(var e=0;e<this.slider.realSlides.length;e++)this.slider.realSlides[e].background&&this.slider.realSlides[e].background.hack()},i}),N2D("SmartSliderLoad",function(e,t){function i(t,i){this.parameters=e.extend({fade:1,scroll:0},i),this.deferred=e.Deferred(),this.smartSlider=t,this.spinnerCouner=0,this.id=t.sliderElement.attr("id"),this.$window=e(window),this.spinner=e("#"+this.id+"-spinner")}return i.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.backgrounds.load.progress(e.proxy(function(e,t){i.html(Math.round(e/(t+1)*100)+"%")},this)),this.showSlider()}else this.showSlider()},i.prototype.onScroll=function(){this.$window.scrollTop()+this.$window.height()>this.smartSlider.sliderElement.offset().top+100&&(this.$window.off("scroll."+this.id),this.showSlider())},i.prototype.loadLayerImages=function(){var t=e.Deferred();return this.smartSlider.sliderElement.find(".n2-ss-layers-container").n2imagesLoaded().always(function(){t.resolve()}),t},i.prototype.showSlider=function(){e.when(this.smartSlider.responsive.ready,this.smartSlider.backgrounds.load,this.loadLayerImages()).always(e.proxy(function(){this._showSlider()},this))},i.prototype._showSlider=function(t){this.smartSlider.responsive.isReadyToResize=!0,e.when.apply(e,this.smartSlider.widgetDeferreds).done(e.proxy(function(){this.smartSlider.responsive.invalidateResponsiveState=!0,this.smartSlider.responsive.doResize(),this.smartSlider.mainAnimation&&this.smartSlider.mainAnimation.setToStarterSlide(this.smartSlider.starterSlide),this.smartSlider.starterSlide.setStarterSlide(),this.smartSlider.sliderElement.trigger("BeforeVisible"),this.smartSlider.responsive.alignElement.addClass("n2-ss-align-visible"),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))},i.prototype.loaded=function(e){this.deferred.done(e)},i.prototype.showSpinner=function(e){0===this.spinnerCouner&&this.spinner.appendTo(this.loadingArea).css("display",""),this.spinnerCouner++},i.prototype.removeSpinner=function(e){this.spinnerCouner--,this.spinnerCouner<=0&&(this.spinner.detach(),this.spinnerCouner=0)},i}),N2D("ScrollTracker",function(e,t,i){function s(){this.started=!1,this.items=[]}return s.prototype.add=function(e,t,i,s){var r={$el:e,mode:t,onVisible:i,onHide:s,state:"unknown"};this.items.push(r),this._onScroll(r,Math.max(document.documentElement.clientHeight,window.innerHeight)),this.started||this.start()},s.prototype.start=function(){this.started||(e(window).on("scroll.scrollTracker",e.proxy(this.onScroll,this)),this.started=!0)},s.prototype.onScroll=function(e){for(var t=Math.max(document.documentElement.clientHeight,window.innerHeight),i=0;i<this.items.length;i++)this._onScroll(this.items[i],t)},s.prototype._onScroll=function(e,t){var i=e.$el[0].getBoundingClientRect(),s=i.height>.7*t,r=!0;"partly-visible"===e.mode?s&&(i.bottom<0||i.top>=i.height)?r=!1:!s&&(i.bottom-i.height<0||i.top-t+i.height>=0)&&(r=!1):"not-visible"===e.mode&&(r=i.top-t<0&&i.top+i.height>0),r===!1?"hidden"!==e.state&&("function"==typeof e.onHide&&e.onHide(),e.state="hidden"):"visible"!==e.state&&("function"==typeof e.onVisible&&e.onVisible(),e.state="visible")},new s}),N2D("SmartSliderApi",function(e,t){function i(){this.sliders={},this.readys={},this._resetCounters=[]}return i.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)},i.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))},i.prototype.trigger=function(t,i){var s=e(t),r=i.split(","),n=s.closest(".n2-ss-slide,.n2-ss-static-slide");if(r.length>1){-1==e.inArray(t,this._resetCounters)&&(this._resetCounters.push(t),n.on("layerAnimationSetStart.resetCounter",function(){s.data("eventCounter",0)}));var a=s.data("eventCounter")||0;i=r[a],a++,a>r.length-1&&(a=0),s.data("eventCounter",a)}n.triggerHandler("ss"+i)},i.prototype.applyAction=function(t,i){var s=e(t).closest(".n2-ss-slider").data("ss");s[i].apply(s,Array.prototype.slice.call(arguments,2))},i.prototype.applyActionWithClick=function(){nextend.shouldPreventClick||this.applyAction.apply(this,arguments)},window.n2ss=new i,i}),N2D("SmartSliderAbstract",function($,undefined){function SmartSliderAbstract(e,t){this.editor=null,this.startedDeferred=$.Deferred(),this.visibleDeferred=$.Deferred(),e instanceof $&&(e="#"+e.attr("id"));var i=e.substr(1);if(this.elementID=i,window[i]&&window[i]instanceof SmartSliderAbstract){if(window[i].sliderElement===undefined)return void console.error("Slider [#"+i+"] inited multiple times");if($.contains(document.body,window[i].sliderElement.get(0)))return void console.error("Slider [#"+i+"] embedded multiple times")}this.readyDeferred=$.Deferred(),N2D(e,$.proxy(function(){return this},this)),this.isAdmin=!!t.admin,this.id=parseInt(i.replace("n2-ss-","")),window[i]=this,t.isDelayed!==undefined&&t.isDelayed?$(window).ready($.proxy(function(){this.waitForExists(i,t)},this)):this.waitForExists(i,t)}return SmartSliderAbstract.prototype.kill=function(){this.killed=!0;var e=this.sliderElement.attr("id"),t=$("#"+e+"-placeholder");t.length?t.remove():N2R("documentReady",function(t){t("#"+e+"-placeholder").remove()});var i=this.sliderElement.closest(".n2-ss-margin");i.length?i.remove():N2R("documentReady",$.proxy(function(e){this.sliderElement.closest(".n2-ss-margin").remove()},this));var s=this.sliderElement.closest(".n2-ss-align");s.length?s.remove():N2R("documentReady",$.proxy(function(e){this.sliderElement.closest(".n2-ss-align").remove()},this))},SmartSliderAbstract.prototype.waitForExists=function(e,t){var i=$.Deferred(),s=function(){var t=$("#"+e);t.length?i.resolve(t):setTimeout(s,500)};i.done($.proxy(this.onSliderExists,this,e,t)),s()},SmartSliderAbstract.prototype.onSliderExists=function(e,t,i){if("SCRIPT"===i.prop("tagName")){var s=i.data("dependency"),r=i.data("delay"),n=$.proxy(function(){var s=$(i.html().replace(/^\/\*<!\[CDATA\[\*\/(.*)\/\*\]\]>\*\/$/,function(e,t){return t}).replace(/<_s_c_r_i_p_t/g,"<script").replace(/<_\/_s_c_r_i_p_t/g,"</script"));i.replaceWith(s),this.waitForDimension($("#"+e),t),$(window).triggerHandler("n2Rocket",[this.sliderElement])},this);s&&$("#n2-ss-"+s).length?n2ss.ready(s,$.proxy(function(e){e.ready(n)},this)):r?setTimeout(n,r):n()}else this.waitForDimension(i,t)},SmartSliderAbstract.prototype.waitForDimension=function(e,t){var i=$.Deferred(),s=function(){var t=e.is(":visible");t?i.resolve():setTimeout(s,200)};s(),i.done($.proxy(this.onSliderHasDimension,this,e,t))},SmartSliderAbstract.prototype.initCSS=function(){this.parameters.css&&$('<style type="text/css">'+this.parameters.css+"</style>").appendTo("head")},SmartSliderAbstract.prototype.onSliderHasDimension=function($sliderElement,parameters){if(this.killed=!1,n2const.isIE&&$sliderElement.attr("data-ie",n2const.isIE),this.responsive=!1,this.mainAnimationLastChangeTime=0,this.currentSlide=null,this.currentRealSlide=null,this.staticSlide=!1,this.isShuffled=!1,this.slides=[],this.visibleSlides=1,this.sliderElement=$sliderElement.data("ss",this),this.needBackgroundWrap=!1,this.parameters=$.extend({admin:!1,playWhenVisible:1,playWhenVisibleAt:.5,perspective:1e3,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:[],allowBGImageAttachmentFixed:1,backgroundParallax:{strength:0,tablet:0,mobile:0},particlejs:0},parameters),this.disableLayerAnimations=!1,!(this.isAdmin||parameters.responsive.desktop&¶meters.responsive.tablet&¶meters.responsive.mobile)){var md=new MobileDetect(window.navigator.userAgent,801),isTablet=!!md.tablet(),isMobile=!!md.phone();if(!parameters.responsive.mobile&&isMobile||!parameters.responsive.tablet&&isTablet||!parameters.responsive.desktop&&!isTablet&&!isMobile)return void this.kill()}this.initCSS(),this.firstSlideReady=$.Deferred();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.changeTo=function(){}),this.load=new N2Classes.SmartSliderLoad(this,this.parameters.load),this.backgrounds=new N2Classes.SmartSliderBackgrounds(this),this.__initSlides(),$.when(this.overrideFirstSlide()).done($.proxy(this.onFirstSlideInitialized,this)),navigator.userAgent.match("UCBrowser")&&$("html").addClass("n2-ucbrowser")},SmartSliderAbstract.prototype.overrideFirstSlide=function(){if("undefined"!=typeof window["ss"+this.id]){if("object"==typeof window["ss"+this.id])return window["ss"+this.id].done($.proxy(function(e){null!==e&&this.changeActiveBeforeLoad(e)},this));var e="undefined"!=typeof window["ss"+this.id]?parseInt(window["ss"+this.id]):null;null!==e&&this.changeActiveBeforeLoad(e)}else if(!this.isAdmin&&this.parameters.maintainSession&&"undefined"!=typeof sessionStorage){var t=sessionStorage.getItem("ss-"+this.id);null!==t&&this.changeActiveBeforeLoad(parseInt(t)),this.sliderElement.on("mainAnimationComplete",$.proxy(function(e,t,i,s){sessionStorage.setItem("ss-"+this.id,s)},this))}return!0},SmartSliderAbstract.prototype.changeActiveBeforeLoad=function(e){e>0&&e<this.realSlides.length&&this.starterSlide!==this.realSlides[e]&&(this.unsetActiveSlide(this.starterSlide),this.starterSlide=this.realSlides[e],this.setActiveSlide(this.realSlides[e]))},SmartSliderAbstract.prototype.startCurrentSlideIndex=function(){this.currentRealSlide=this.currentSlide=this.starterSlide,this.setActiveSlide(this.currentSlide),parseInt(this.parameters.carousel)?this.initCarousel():this.initNotCarousel()},SmartSliderAbstract.prototype.onFirstSlideInitialized=function(){for(var i=0;i<this.realSlides.length;i++)this.realSlides[i].setNext(this.realSlides[i+1>this.realSlides.length-1?0:i+1]);this.startCurrentSlideIndex(),this.firstSlideReady.resolve(this.currentSlide);for(var j=0;j<this.parameters.initCallbacks.length;j++)new Function("$",this.parameters.initCallbacks[j]).call(this,$);if(this.widgets=new N2Classes.SmartSliderWidgets(this),this.sliderElement.on({universalenter:$.proxy(function(e){$(e.target).closest(".n2-full-screen-widget").length||(this.sliderElement.addClass("n2-hover"),this.widgets.setState("hover",!0))},this),universalleave:$.proxy(function(e){e.stopPropagation(),this.sliderElement.removeClass("n2-hover"),this.widgets.setState("hover",!1)},this)}),this.controls={},this.parameters.blockrightclick&&this.sliderElement.bind("contextmenu",function(e){e.preventDefault()}),this.initMainAnimation(),this.initResponsiveMode(),!this.killed){try{var removeHoverClassCB=$.proxy(function(){this.sliderElement.removeClass("n2-has-hover"),this.sliderElement[0].removeEventListener("touchstart",removeHoverClassCB,window.n2const.passiveEvents?{passive:!0}:!1)},this);this.sliderElement[0].addEventListener("touchstart",removeHoverClassCB,window.n2const.passiveEvents?{passive:!0}:!1)}catch(e){}if(this.initControls(),this.startedDeferred.resolve(this),!this.isAdmin){var event="click";this.hasTouch()&&(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"))})}),window.n2FocusAllowed===undefined&&(window.n2FocusAllowed=!1,$(window).on({keydown:function(){window.n2FocusAllowed=!0},keyup:function(){window.n2FocusAllowed=!1}})),this.sliderElement.find("a").on({focus:$.proxy(function(e){if(n2FocusAllowed){var t=this.findSlideByElement(e.currentTarget);t&&t!==this.currentRealSlide&&this.directionalChangeToReal(t.index)}},this)})}this.preReadyResolve(),this.sliderElement.find('[role="button"],[tabindex]').not("input,select,textarea").keypress(function(e){32!==e.charCode&&13!==e.charCode||(e.preventDefault(),$(e.target).click())}).on("mouseleave",function(e){$(e.currentTarget).blur()})}},SmartSliderAbstract.prototype.__initSlides=function(){for(var e=this.sliderElement.find(".n2-ss-slide"),t=0;t<e.length;t++)this.slides.push(new N2Classes.FrontendSliderSlide(this,e.eq(t),t));this.starterSlide=this.slides[0];for(var t=0;t<this.slides.length;t++)this.slides[t].init(),1==this.slides[t].$element.data("first")&&(this.starterSlide=this.slides[t]);this.realSlides=this.slides,this.afterRawSlidesReady(),this.randomize(this.slides);var i=this.sliderElement.find(".n2-ss-static-slide");i.length&&(this.staticSlide=new N2Classes.FrontendSliderStaticSlide(this,i))},SmartSliderAbstract.prototype.afterRawSlidesReady=function(){},SmartSliderAbstract.prototype.setVisibleSlides=function(e){e!==this.visibleSlides&&(this.visibleSlides=e,this.sliderElement.triggerHandler("visibleSlidesChanged"))},SmartSliderAbstract.prototype.getVisibleSlides=function(e){return 0===arguments.length&&(e=this.currentSlide),[e]},SmartSliderAbstract.prototype.findSlideBackground=function(e){return e.$element.find(".n2-ss-slide-background")},SmartSliderAbstract.prototype.getRealIndex=function(e){return e},SmartSliderAbstract.prototype.randomize=function(e){this.randomizeFirst(),this.parameters.randomize.randomize&&this.shuffleSlides(e)},SmartSliderAbstract.prototype.randomizeFirst=function(){this.parameters.randomize.randomizeFirst&&(this.unsetActiveSlide(this.starterSlide),this.starterSlide=this.realSlides[Math.floor(Math.random()*this.realSlides.length)],this.setActiveSlide(this.starterSlide))},SmartSliderAbstract.prototype.shuffleSlides=function(e){e.sort(function(){return.5-Math.random()});for(var t=e[0].$element.parent(),i=0;i<e.length;i++)e[i].$element.appendTo(t),e[i].setIndex(i);this.isShuffled=!0},SmartSliderAbstract.prototype.addWidget=function(e,t){this.widgetDeferreds.push(t)},SmartSliderAbstract.prototype.started=function(e){this.startedDeferred.done($.proxy(e,this))},SmartSliderAbstract.prototype.preReadyResolve=function(){setTimeout($.proxy(this._preReadyResolve,this),1)},SmartSliderAbstract.prototype._preReadyResolve=function(){this.load.start(),this.load.loaded($.proxy(this.readyResolve,this))},SmartSliderAbstract.prototype.readyResolve=function(){$(window).scroll(),this.readyDeferred.resolve()},SmartSliderAbstract.prototype.ready=function(e){this.readyDeferred.done($.proxy(e,this))},SmartSliderAbstract.prototype.startVisibilityCheck=function(){!this.isAdmin&&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))},SmartSliderAbstract.prototype.checkIfVisible=function(){var e=this.parameters.playWhenVisibleAt,t=$(window).scrollTop(),i=$(window).height(),s=n2(document).height(),r=this.sliderElement[0].getBoundingClientRect(),n=i*e/2,a=t+n,o=t+i-n;n>t&&(a*=t/n),t+i>s-n&&(o+=t+i-s+n);var l=t+r.top,h=t+r.bottom;(this.isAdmin||o>=l&&l>=a||h>=a&&o>=h||a>=l&&h>=o)&&($(window).off(".n2-ss-visible"+this.id),this.visibleDeferred.resolve())},SmartSliderAbstract.prototype.visible=function(e){this.visibleDeferred.done($.proxy(e,this))},SmartSliderAbstract.prototype.isPlaying=function(){return"ended"!==this.mainAnimation.getState()},SmartSliderAbstract.prototype.focus=function(e){var t=$.Deferred();if(e===undefined&&(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?(window.nextendScrollFocus=!0,$("html, body").animate({scrollTop:i},400,$.proxy(function(){t.resolve(),setTimeout(function(){window.nextendScrollFocus=!1},300)},this))):t.resolve()}else t.resolve();return t},SmartSliderAbstract.prototype.initNotCarousel=function(){this.next=function(e,t){var i=this.currentSlide.index+1;return i<this.slides.length?this.changeTo(i,!1,e,t):!1},this.previous=function(e,t){var i=this.currentSlide.index-1;return i>=0?this.changeTo(i,!0,e,t):!1},this.isChangePossible=function(e){var t=!1;return"next"===e?(t=this.currentSlide.index+1,t>=this.slides.length&&(t=!1)):"previous"===e&&(t=this.currentSlide.index-1,0>t&&(t=!1)),t!==!1&&t!==this.currentSlide.index};var e=$.proxy(function(e){0===e?this.widgets.setState("nonCarouselFirst",!0):this.widgets.setState("nonCarouselFirst",!1),e===this.slides.length-1?this.widgets.setState("nonCarouselLast",!0):this.widgets.setState("nonCarouselLast",!1)},this);this.startedDeferred.done($.proxy(function(){e(this.currentSlide.index)},this)),this.sliderElement.on("sliderSwitchTo",function(t,i){e(i)})},SmartSliderAbstract.prototype.isChangePossibleCarousel=function(e){var t=!1;return"next"===e?(t=this.currentSlide.index+1,t>=this.slides.length&&(t=0)):"previous"===e&&(t=this.currentSlide.index-1,0>t&&(t=this.slides.length-1)),t!==!1&&t!==this.currentSlide.index},SmartSliderAbstract.prototype.initCarousel=function(){this.next=this.nextCarousel,this.previous=this.previousCarousel,this.isChangePossible=this.isChangePossibleCarousel},SmartSliderAbstract.prototype.nextCarousel=function(e,t){var i=this.currentSlide.index+1;return i>=this.slides.length&&(i=0),this.changeTo(i,!1,e,t)},SmartSliderAbstract.prototype.previousCarousel=function(e,t){var i=this.currentSlide.index-1;return 0>i&&(i=this.slides.length-1),this.changeTo(i,!0,e,t)},SmartSliderAbstract.prototype.directionalChangeToReal=function(e){this.directionalChangeTo(e)},SmartSliderAbstract.prototype.directionalChangeTo=function(e){e>this.currentSlide.index?this.changeTo(e,!1):this.changeTo(e,!0)},SmartSliderAbstract.prototype.changeTo=function(e,t,i,s){if(e=parseInt(e),e!==this.currentSlide.index){this.sliderElement.trigger("sliderSwitchTo",[e,this.getRealIndex(e)]);var r=$.now();return $.when(this.backgrounds.preLoadSlides(this.getVisibleSlides(this.slides[e])),this.focus(i)).done($.proxy(function(){if(this.mainAnimationLastChangeTime<=r){this.mainAnimationLastChangeTime=r;var n=this.mainAnimation.getState();if("ended"===n){"undefined"==typeof i&&(i=!1);var a=this.mainAnimation;"undefined"!=typeof s&&(a=s),this._changeTo(e,t,i,s),a.changeTo(this.currentSlide,this.slides[e],t,i),this._changeCurrentSlide(e)}else"playing"===n&&(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},SmartSliderAbstract.prototype._changeCurrentSlide=function(e){this.currentRealSlide=this.currentSlide=this.slides[e]},SmartSliderAbstract.prototype._changeTo=function(e,t,i,s){},SmartSliderAbstract.prototype.revertTo=function(e,t){this.unsetActiveSlide(this.slides[t]),this.setActiveSlide(this.slides[e]),this._changeCurrentSlide(e),this.sliderElement.trigger("sliderSwitchTo",[e,this.getRealIndex(e)])},SmartSliderAbstract.prototype.setActiveSlide=function(e){e.$element.addClass("n2-ss-slide-active")},SmartSliderAbstract.prototype.unsetActiveSlide=function(e){e.$element.removeClass("n2-ss-slide-active")},SmartSliderAbstract.prototype.findSlideByElement=function(e){e=$(e);for(var t=0;t<this.realSlides.length;t++)if(1===this.realSlides[t].$element.has(e).length)return this.realSlides[t];return!1},SmartSliderAbstract.prototype.findSlideIndexByElement=function(e){var t=this.findSlideByElement(e);return t?t:-1},SmartSliderAbstract.prototype.initMainAnimation=function(){this.mainAnimation=!1},SmartSliderAbstract.prototype.initResponsiveMode=function(){this.dimensions=this.responsive.responsiveDimensions},SmartSliderAbstract.prototype.hasTouch=function(){return"0"!=this.parameters.controls.touch&&this.slides.length>1},SmartSliderAbstract.prototype.initControls=function(){this.parameters.admin||(this.hasTouch()&&new N2Classes.SmartSliderControlTouch(this,this.parameters.controls.touch,{fallbackToMouseEvents:this.parameters.controls.drag}),this.parameters.controls.keyboard&&("undefined"!=typeof this.controls.touch?new N2Classes.SmartSliderControlKeyboard(this,this.controls.touch._direction.axis):new N2Classes.SmartSliderControlKeyboard(this,"horizontal")),this.parameters.controls.scroll&&new N2Classes.SmartSliderControlScroll(this),this.parameters.controls.tilt&&new N2Classes.SmartSliderControlTilt(this),this.controlAutoplay=new N2Classes.SmartSliderControlAutoplay(this,this.parameters.autoplay),this.controlFullscreen=new N2Classes.SmartSliderControlFullscreen(this))},SmartSliderAbstract.prototype.getSlideIndex=function(e){return e},SmartSliderAbstract.prototype.slideToID=function(e,t){for(var i=0;i<this.realSlides.length;i++)if(this.realSlides[i].id===e)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 r=0;return"undefined"!=typeof n2ScrollOffsetSelector&&(r=$(n2ScrollOffsetSelector).outerHeight()),$("html, body").animate({scrollTop:s.offset().top-r},400),s.data("ss").slideToID(e,t)}},SmartSliderAbstract.prototype.slide=function(e,t){return e>=0&&e<this.slides.length?t===undefined?parseInt(this.parameters.carousel)&&this.currentSlide.index===this.slides.length-1&&0===e?this.next():this.currentSlide.index>e?this.changeTo(e,!0):this.changeTo(e):this.changeTo(e,!t):!1},SmartSliderAbstract.prototype.startAutoplay=function(e){return"undefined"!=typeof this.controlAutoplay?(this.controlAutoplay.pauseAutoplayExtraPlayingEnded(e,"autoplayButton"),!0):!1},SmartSliderAbstract}),N2D("SmartSliderWidgets",function($,undefined){function SmartSliderWidgets(e){this.slider=e,this.sliderElement=e.sliderElement.on("BeforeVisible",$.proxy(this.onReady,this)),this.widgets={},this.excludedSlides={},this.states={hover:!1,nonCarouselFirst:!1,nonCarouselLast:!1,currentSlideIndex:-1,singleSlide:!1},this.widgets={previous:this.sliderElement.find(".nextend-arrow-previous"),next:this.sliderElement.find(".nextend-arrow-next"),bullet:this.sliderElement.find(".n2-ss-control-bullet"),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")}}return SmartSliderWidgets.prototype.setState=function(e,t){if(this.states[e]!=t){this.states[e]=t;var i=e.split(".");switch(i[0]){case"hide":this.onStateChangeSingle(i[1]);break;case"nonCarouselFirst":this.onStateChangeSingle("previous");break;case"nonCarouselLast":this.onStateChangeSingle("next");break;default:this.onStateChangeAll()}}},SmartSliderWidgets.prototype.onStateChangeAll=function(){for(var e in this.widgets)this.onStateChangeSingle(e)},SmartSliderWidgets.prototype.onStateChangeSingle=function(e){if(this.widgets[e].length){var t=!0;if(this.widgets[e].hasClass("n2-ss-widget-display-hover")&&(t=this.states.hover),t&&("previous"===e&&this.states.nonCarouselFirst?t=!1:"next"===e&&this.states.nonCarouselLast&&(t=!1)),t){var i=e+"-"+(this.states.currentSlideIndex+1);this.excludedSlides[i]&&(t=!1)}t&&this.states["hide."+e]!==undefined&&this.states["hide."+e]&&(t=!1),t&&this.states.singleSlide&&("previous"!==e&&"next"!==e&&"bullet"!==e&&"autoplay"!==e&&"indicator"!==e||(t=!1)),this.widgets[e].toggleClass("n2-ss-widget-hidden",!t)}},SmartSliderWidgets.prototype.onReady=function(){this.slider.sliderElement.on("slideCountChanged",$.proxy(function(){this.setState("singleSlide",this.slider.slides.length<=1)},this)),this.dimensions=this.slider.dimensions,this.$vertical=this.sliderElement.find('[data-position="above"],[data-position="below"]').not(".nextend-shadow");var e=!1;for(var t in this.widgets){var i=this.widgets[t].attr("data-exclude-slides");if(i!==undefined){for(var s=i.split(","),r=s.length-1;r>=0;r--){var n=s[r].split("-");if(2===n.length){var a=parseInt(n[0]),o=parseInt(n[1]);if(o>=a)for(var l=a;o>=l;l++)s.push(l)}else s[r]=parseInt(s[r])}if(s.length>0){for(var r=0;r<s.length;r++)this.excludedSlides[t+"-"+s[r]]=!0;e=!0}}}if(e){var h=$.proxy(function(e,t){this.setState("currentSlideIndex",t)},this);h(null,this.slider.currentRealSlide.index),this.slider.sliderElement.on({sliderSwitchTo:h})}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.onStateChangeAll()},SmartSliderWidgets.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))}}},SmartSliderWidgets.prototype.onResize=function(e,ratios,responsive,timeline){if(!timeline){
|
2 |
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()}},SmartSliderWidgets}),N2D("SmartSliderMainAnimationAbstract",function(e,t){function i(t,i){this.state="ended",this.isTouch=!1,this.isReverseAllowed=!0,this.isReverseEnabled=!1,this.reverseSlideIndex=null,this.isNoAnimation=!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._revertCurrentSlideIndex=i,this._revertNextSlideIndex=s},this))}return i.prototype.setToStarterSlide=function(e){},i.prototype.enableReverseMode=function(){this.isReverseEnabled=!0,this.reverseTimeline=new NextendTimeline({paused:!0}),this.sliderElement.triggerHandler("reverseModeEnabled",this.reverseSlideIndex)},i.prototype.disableReverseMode=function(){this.isReverseEnabled=!1},i.prototype.setTouch=function(e){this.isTouch=e},i.prototype.setTouchProgress=function(e){this.isReverseEnabled?this._setTouchProgressWithReverse(e):this._setTouchProgress(e)},i.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))},i.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)))},i.prototype.setTouchEnd=function(e,t,i){"ended"!=this.state&&(this.isReverseEnabled?this._setTouchEndWithReverse(e,t,i):this._setTouchEnd(e,t,i))},i.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._revertCurrentSlideIndex,this._revertNextSlideIndex))},i.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._revertNextSlideIndex)):(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._revertCurrentSlideIndex,this._revertNextSlideIndex))},i.prototype.fixTouchDuration=function(e,t,i){var s=e.totalDuration(),r=Math.max(s/3,Math.min(s,i/Math.abs(t)/1e3));r!=s&&e.totalDuration(r)},i.prototype.getState=function(){return this.state},i.prototype.timeScale=function(){return arguments.length>0?(this.timeline.timeScale(arguments[0]),this):this.timeline.timeScale()},i.prototype.changeTo=function(t,i,s,r){if(this._initAnimation(t,i,s),this.state="initAnimation",this.timeline.paused(!0),this.timeline.eventCallback("onStart",this.onChangeToStart,[t,i,r],this),this.timeline.eventCallback("onComplete",this.onChangeToComplete,[t,i,r],this),this.timeline.eventCallback("onReverseComplete",null),this.revertCB=e.proxy(function(e){e.eventCallback("onReverseComplete",this.onReverseChangeToComplete,[i,t,r],this)},this),this.slider.parameters.dynamicHeight){var n=new NextendTimeline;this.slider.responsive.doResize(null,n,i,.6),this.timeline.add(n)}this.isTouch||this.timeline.play()},i.prototype.willRevertTo=function(t,i){this.sliderElement.triggerHandler("mainAnimationWillRevertTo",[t,i]),this.sliderElement.one("mainAnimationComplete",e.proxy(this.revertTo,this,t,i))},i.prototype.revertTo=function(e,t){this.slider.revertTo(e,t),this.slider.slides[t].triggerHandler("mainAnimationStartInCancel")},i.prototype.willCleanSlideIndex=function(t){this.sliderElement.one("mainAnimationComplete",e.proxy(this.cleanSlideIndex,this,t))},i.prototype.cleanSlideIndex=function(){},i.prototype._initAnimation=function(e,t,i){},i.prototype.onChangeToStart=function(e,t,i){this.state="playing";var s=[this,e.index,t.index,i];this.sliderElement.trigger("mainAnimationStart",s),this.slider.slides[e.index].trigger("mainAnimationStartOut",s),this.slider.slides[t.index].trigger("mainAnimationStartIn",s)},i.prototype.onChangeToComplete=function(e,t,i){var s=[this,e.index,t.index,i];this.clearTimelines(),this.disableReverseMode(),this.slider.slides[e.index].trigger("mainAnimationCompleteOut",s),this.slider.slides[t.index].trigger("mainAnimationCompleteIn",s),this.state="ended",this.sliderElement.trigger("mainAnimationComplete",s)},i.prototype.onReverseChangeToComplete=function(e,t,s){i.prototype.onChangeToComplete.apply(this,arguments)},i.prototype.clearTimelines=function(){this.revertCB=function(){},this.timeline.clear(),this.timeline.timeScale(1)},i.prototype.getEase=function(){return this.isTouch?"linear":this.parameters.ease},i}),N2D("SmartSliderControlAutoplay",function(e,t){"use strict";function i(t,i){this._paused=!0,this._wait=!1,this._disabled=!1,this._currentCount=0,this._progressEnabled=!1,this.timeline=null,this.hasButton=!1,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 s=!1;return i.prototype.onReady=function(){this.autoplayDeferred=e.Deferred();var t={_progress:0};this.timeline=NextendTween.to(t,this.getSlideDuration(this.slider.currentSlide.index),{_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(){s=!0,setTimeout(function(){s=!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":this.hasButton&&"0"!=this.parameters.pause.mouse?i.on("mouseenter.autoplay",e.proxy(this.continueAutoplay,this)):i.on("mouseenter.autoplay",e.proxy(function(e){this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton")},this));break;case"leave":this.hasButton&&"0"!=this.parameters.pause.mouse?i.on("mouseleave.autoplay",e.proxy(this.continueAutoplay,this)):i.on("mouseleave.autoplay",e.proxy(function(e){this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton")},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))},i.prototype.enableProgress=function(){this.timeline&&this.timeline.eventCallback("onUpdate",e.proxy(this.onUpdate,this)),this._progressEnabled=!0},i.prototype.onMainAnimationStart=function(t,i,s,r,n){this.mainAnimationDeferred=e.Deferred(),this.deActivate(0,"wait");for(var a in this.deferredsMediaPlaying)this.deferredsMediaPlaying[a].resolve()},i.prototype.onMainAnimationComplete=function(e,t,i,s){this.parameters.autoplayToSlideIndex>=0&&this.parameters.autoplayToSlideIndex==this.slider.currentRealSlide.index+1&&this.limitAutoplay(),this.timeline.duration(this.getSlideDuration(s)),this.mainAnimationDeferred.resolve(),this.continueAutoplay()},i.prototype.getSlideDuration=function(e){var t=this.slider.realSlides[this.slider.getRealIndex(e)],i=t.minimumSlideDuration;return 0==i&&(i=this.parameters.duration),i},i.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]);this.deferredMouseEnter&&i.push(this.deferredMouseEnter),this.deferredMouseLeave&&i.push(this.deferredMouseLeave),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))},i.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))},i.prototype.pauseAutoplayUniversal=function(e){this.pauseAutoplayExtraPlaying(e,"autoplayButton"),this.deActivate(null,"pause")},i.prototype.pauseAutoplayMouseEnter=function(){s||(this.autoplayDeferred.reject(),this.deferredMouseEnter=e.Deferred(),this.deActivate(null,"leave"==this.parameters.resume.mouse?"wait":"pause"))},i.prototype.pauseAutoplayMouseEnterEnded=function(){this.deferredMouseEnter&&this.deferredMouseEnter.resolve()},i.prototype.pauseAutoplayMouseLeave=function(){this.autoplayDeferred.reject(),this.deferredMouseLeave=e.Deferred(),this.deActivate(null,"enter"==this.parameters.resume.mouse?"wait":"pause")},i.prototype.pauseAutoplayMouseLeaveEnded=function(){this.deferredMouseLeave&&this.deferredMouseLeave.resolve()},i.prototype.pauseAutoplayMediaPlaying=function(t,i){"undefined"!=typeof this.deferredsMediaPlaying[i]&&this.autoplayDeferred.reject(),this.deferredsMediaPlaying[i]=e.Deferred(),this.deActivate(null,"wait")},i.prototype.pauseAutoplayMediaPlayingEnded=function(e,t){"undefined"!=typeof this.deferredsMediaPlaying[t]&&(this.autoplayDeferred.reject(),this.deferredsMediaPlaying[t].resolve(),delete this.deferredsMediaPlaying[t])},i.prototype.pauseAutoplayExtraPlaying=function(t,i){"undefined"!=typeof this.deferredsExtraPlaying[i]&&this.autoplayDeferred.reject(),this.deferredsExtraPlaying[i]=e.Deferred(),this.deActivate(null,"pause")},i.prototype.pauseAutoplayExtraPlayingEnded=function(e,t){"undefined"!=typeof this.deferredsExtraPlaying[t]&&(this.autoplayDeferred.reject(),this.deferredsExtraPlaying[t].resolve(),delete this.deferredsExtraPlaying[t]),this.continueAutoplay()},i.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)},i.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},i.prototype.startTimeout=function(e){this._paused||this._disabled||this.timeline.play(e)},i.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.currentRealSlide.index+2)&&this.limitAutoplay(),this.slider.nextCarousel(!0)},i.prototype.limitAutoplay=function(){this.parameters.allowReStart?(this._currentCount=0,this.slider.sliderElement.triggerHandler("autoplayExtraWait","autoplayButton")):this.disable()},i.prototype.onUpdate=function(){this.slider.sliderElement.triggerHandler("autoplay",this.timeline.progress())},i}),N2D("SmartSliderControlFullscreen",function(e,t){"use strict";function i(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 r=this.slider.sliderElement[0];r.requestFullscreen?(this.browserSpecific.requestFullscreen="requestFullscreen",this.browserSpecific.event="fullscreenchange"):r.msRequestFullscreen?(this.browserSpecific.requestFullscreen="msRequestFullscreen",this.browserSpecific.event="MSFullscreenChange"):r.mozRequestFullScreen?(this.browserSpecific.requestFullscreen="mozRequestFullScreen",this.browserSpecific.event="mozfullscreenchange"):r.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))}return i.prototype.switchState=function(){this.isFullScreen=!this.isFullScreen,this.isFullScreen?this._fullScreen():this._normalScreen()},i.prototype.requestFullscreen=function(){return this.isFullScreen?!1:(this.isFullScreen=!0,this._fullScreen(),!0)},i.prototype.exitFullscreen=function(){return this.isFullScreen?(this.isFullScreen=!1,this._normalScreen(),!0):!1},i.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]()},i.prototype._fullScreen=function(){this.forceFullpage&&(this.responsive.isFullScreen=!0,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(n2const.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]()},i.prototype._normalScreen=function(){document[this.browserSpecific.exitFullscreen]?document[this.browserSpecific.exitFullscreen]():this.fullParent[0][this.browserSpecific.exitFullscreen]&&this.fullParent[0][this.browserSpecific.exitFullscreen]()},i.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.isFullScreen=!1,this.responsive.parameters.type=this._type,this.responsive.parameters.upscale=this._upscale,this.responsive.parameters.forceFull=this._forceFull,this.responsive.parameters.minimumHeightRatio=this._minimumHeightRatio,this.responsive.parameters.maximumHeightRatio=this._maximumHeightRatio,this.responsive.containerElement.css(n2const.rtl.marginLeft,this._marginLeft),this.fullParent.css({width:"",height:"",backgroundColor:""}).removeClass("n2-ss-in-fullscreen"),e("html").removeClass("n2-in-fullscreen"),e(window).trigger("resize"),this.isFullScreen=!1,this.slider.sliderElement.triggerHandler("n2ExitFullScreen"))},i.prototype.isDocumentInFullScreenMode=function(){return document.fullscreenElement&&null!==document.fullscreenElement||document.msFullscreenElement&&null!==document.msFullscreenElement||document.mozFullScreen||document.webkitIsFullScreen},i}),N2D("SmartSliderControlKeyboard",function(e,t){"use strict";function i(t,s,r){this.slider=t,this.parameters=e.extend({},r),"vertical"==s?this.parseEvent=i.prototype.parseEventVertical:this.parseEvent=i.prototype.parseEventHorizontal,e(document).on("keydown",e.proxy(this.onKeyDown,this)),t.controls.keyboard=this}return i.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()},i.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()))},i.prototype.parseEventHorizontal=function(e){switch(e.keyCode){case 39:return this.slider[n2const.rtl.next](),!0;case 37:return this.slider[n2const.rtl.previous](),!0;default:return!1}},i.prototype.parseEventVertical=function(e){switch(e.keyCode){case 40:return this.slider.next(),!0;case 38:return this.slider.previous(),!0;default:return!1}},i}),N2D("SmartSliderControlScroll",function(e,t){"use strict";function i(t){this.preventScroll=!1,this.preventScrollGlobal=!1,this.slider=t,t.sliderElement.on("DOMMouseScroll mousewheel",e.proxy(this.onMouseWheel,this)),t.controls.scroll=this}return i.prototype.onMouseWheel=function(e){if(this.preventScroll===!1){var t=!1;e.originalEvent&&(e.originalEvent.wheelDelta&&(t=e.originalEvent.wheelDelta/-1<0),e.originalEvent.deltaY&&(t=e.originalEvent.deltaY<0),e.originalEvent.detail&&(t=e.originalEvent.detail<0)),t?this.slider.previous()&&(e.preventDefault(),this.preventRepeat(),this.preventGlobal()):this.slider.next()&&(e.preventDefault(),this.preventRepeat(),this.preventGlobal())}else e.preventDefault(),this.preventRepeat(e)},i.prototype.preventRepeat=function(){this.preventScroll!==!1&&clearTimeout(this.preventScroll),this.preventScroll=setTimeout(e.proxy(function(){this.preventScroll=!1,this.preventScrollGlobal!==!1&&(clearTimeout(this.preventScrollGlobal),this.preventScrollGlobal=!1)},this),200)},i.prototype.preventGlobal=function(){this.preventScrollGlobal!==!1&&clearTimeout(this.preventScrollGlobal),this.preventScrollGlobal=setTimeout(e.proxy(function(){this.preventScroll!==!1&&clearTimeout(this.preventScroll),this.preventScroll=!1},this),2e3)},i}),N2D("SmartSliderControlTilt",function(e,t){"use strict";function i(i,s){return window.DeviceOrientationEvent===t||window.orientation===t?"Not supported":(this.timeout=null,this.slider=i,this.parameters=e.extend({duration:2e3},s),this.orientationchange(),window.addEventListener("orientationchange",e.proxy(this.orientationchange,this)),window.addEventListener("deviceorientation",e.proxy(this.handleOrientation,this),!0),void(i.controls.tilt=this))}return i.prototype.orientationchange=function(){switch(window.orientation){case-90:case 90:this.parseEvent=i.prototype.parseEventHorizontalLandscape;break;default:this.parseEvent=i.prototype.parseEventHorizontal}},i.prototype.clearTimeout=function(){this.timeout=null},i.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())},i.prototype.parseEventHorizontal=function(e){return e.gamma>10?(this.slider.next(),!0):e.gamma<-10?(this.slider.previous(),!0):!1},i.prototype.parseEventHorizontalLandscape=function(e){return e.beta<-10?(this.slider.next(),!0):e.beta>10?(this.slider.previous(),!0):!1},i}),N2D("SmartSliderControlTouch",function(e,t){"use strict";function i(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("> .n2-ss-swipe-element"),"vertical"==i?this.setVertical():"horizontal"==i&&this.setHorizontal();var n=e.proxy(function(){var e=this;this._animation.isNoAnimation?N2Classes.EventBurrito(this.swipeElement.get(0),{mouse:this.parameters.fallbackToMouseEvents,axis:"horizontal"==i?"x":"y",start:function(){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.currentAnimation={direction:o};var l=e.slider.isChangePossible(e._direction[o]);if(!l)return e.currentAnimation=null,!1}if(e.currentAnimation){var h=e._direction.get(s,e.currentAnimation.direction);if(e.logDistance(h),(r||Math.abs(h)>e._direction.minDistance)&&t.cancelable)return r=!0,!0}return!1},end:function(t,i,s,r,n){if(null!==e.currentAnimation){var a=n?0:e.measureRealDirection();a&&e.slider[e._direction[e.currentAnimation.direction]](),e.swipeElement.removeClass("n2-grabbing"),e.currentAnimation=null}Math.abs(s.x)<10&&Math.abs(s.y)<10?e.onTap(t):nextend.preventClick()}}):N2Classes.EventBurrito(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._animation.setTouch(!1),e.currentAnimation=null,!1}if(e.currentAnimation){var h=e._direction.get(s,e.currentAnimation.direction);if(e.logDistance(h),e.currentAnimation.percent<1){var d=Math.max(-.99999,Math.min(.99999,h/e.slider.dimensions.slider[e._property]));e.currentAnimation.percent=d,e._animation.setTouchProgress(d)}if((r||Math.abs(h)>e._direction.minDistance)&&t.cancelable)return r=!0,!0}return!1},end:function(t,i,s,r,n){if(null!==e.currentAnimation){var a=n?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 s=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,r=!1,n=!1;return i.prototype.setHorizontal=function(){this._property="width",this._direction={left:n2const.rtl.next,right:n2const.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}},s&&(this.swipeElement.css("-ms-touch-action","pan-y"),this.swipeElement.css("touch-action","pan-y"))},i.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}},s&&(this.swipeElement.css("-ms-touch-action","pan-x"),this.swipeElement.css("touch-action","pan-x"))},i.prototype.logDistance=function(e){this.distance.length>3&&this.distance.shift(),this.distance.push(e)},i.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},i.prototype.onTap=function(t){n||(e(t.target).trigger("n2click"),n=!0,setTimeout(function(){n=!1},500))},i}),N2D("SmartSliderSlideBackground",function(e,t){function i(t,i,s){if(this.loadStarted=!1,this.types=this.types||{color:"SmartSliderSlideBackgroundColor",image:"SmartSliderSlideBackgroundImage",video:"SmartSliderSlideBackgroundVideo"},this.width=0,this.height=0,this.slide=t,this.element=i,t.slider.needBackgroundWrap){var r=i.find("> *");this.$wrapElement=e('<div class="n2-ss-slide-background-wrap n2-ow" />').appendTo(i).append(r)}else this.$wrapElement=this.element;this.manager=s,this.loadDeferred=e.Deferred(),this.elements={color:!1,image:!1,video:!1},this.currentSrc="",this.mode=i.data("mode"),this.opacity=i.data("opacity"),this.$image=this.element.find("img"),this.$image.length&&(this.elements.image=new N2Classes[this.types.image](t,s,this,this.$image));var n=this.element.find(".n2-ss-slide-background-color");n.length&&(this.elements.color=new N2Classes[this.types.color](this,n));var a=[];for(var o in this.elements)this.elements[o]&&a.push(this.elements[o].getLoadedDeferred());e.when.apply(e,a).then(e.proxy(function(){this.loadDeferred.resolve()},this))}return i.prototype.preLoad=function(){return this.loadStarted||(this.slide.$element.find("[data-lazysrc]").each(function(){var t=e(this);t.attr("src",t.data("lazysrc"))}),this.loadStarted=!0),"pending"===this.loadDeferred.state()&&this.elements.image&&this.elements.image.preLoad(),this.loadDeferred},i.prototype.fadeOut=function(){this.elements.image&&this.elements.image.fadeOut()},i.prototype.hack=function(){NextendTween.set(this.element,{rotation:1e-4})},i.prototype.hasColor=function(){return this.elements.color},i.prototype.hasImage=function(){return this.elements.image},i.prototype.hasVideo=function(){return this.elements.video},i.prototype.hasBackground=function(){return this.elements.color||this.elements.image||this.elements.video},i.prototype.updateBackgroundToDevice=function(e){this.hasImage()&&this.elements.image.updateBackgroundToDevice(e)},i}),N2D("FrontendComponent",function(e,t){function i(e,t,i,s){this.wraps={},this.isVisible=!0,this.device="",this.children=[],this.slide=e,this.parent=t,this.$layer=i.data("layer",this);var r=this.$layer.find("> .n2-ss-layer-mask");r.length&&(this.wraps.mask=r);var n=this.$layer.find("> .n2-ss-layer-parallax");switch(n.length&&(this.wraps.parallax=n),i.data("pm")){case"absolute":this.placement=new N2Classes.FrontendPlacementAbsolute(this);break;case"normal":this.placement=new N2Classes.FrontendPlacementNormal(this);break;case"content":this.placement=new N2Classes.FrontendPlacementContent(this);break;default:this.placement=new N2Classes.FrontendPlacementDefault(this)}if(this.parallax=i.data("parallax"),this.baseSize=this.baseSize||100,this.isAdaptiveFont=this.get("adaptivefont"),this.refreshBaseSize(this.getDevice("fontsize")),s)for(var a=0;a<s.length;a++)switch(s.eq(a).data("sstype")){case"content":this.children.push(new N2Classes.FrontendComponentContent(this.slide,this,s.eq(a)));break;case"row":this.children.push(new N2Classes.FrontendComponentRow(this.slide,this,s.eq(a)));break;case"col":this.children.push(new N2Classes.FrontendComponentCol(this.slide,this,s.eq(a)));break;case"group":break;default:this.children.push(new N2Classes.FrontendComponentLayer(this.slide,this,s.eq(a)))}}return i.prototype.refreshBaseSize=function(e){this.isAdaptiveFont?this.baseSize=16*e/100:this.baseSize=this.parent.baseSize*e/100},i.prototype.start=function(){this.placement.start();for(var e=0;e<this.children.length;e++)this.children[e].start();var t=this.get("rotation")||0;if(t/360!=0){var i=this.addWrap("rotation","<div class='n2-ss-layer-rotation'></div>");NextendTween.set(i[0],{rotationZ:t})}},i.prototype.onDeviceChange=function(e){this.device=e;var i=this.isVisible;if(this.isVisible=this.getDevice(""),this.isVisible===t&&(this.isVisible=1),
|
3 |
i&&!this.isVisible?(this.$layer.data("shows",0),this.$layer.css("display","none")):!i&&this.isVisible&&(this.$layer.data("shows",1),this.$layer.css("display","")),this.isVisible){var s=this.getDevice("fontsize");this.refreshBaseSize(s),this.isAdaptiveFont?this.$layer.css("font-size",16*s/100+"px"):this.$layer.css("font-size",s+"%");for(var r=0;r<this.children.length;r++)this.children[r].onDeviceChange(e);this.placement.onDeviceChange(e),this.onAfterDeviceChange(e)}},i.prototype.onAfterDeviceChange=function(e){},i.prototype.onResize=function(e,t,i){if(this.isVisible||this.placement.alwaysResize){for(var s=0;s<this.children.length;s++)this.children[s].onResize(e,t,i);this.placement.onResize(e,t,i)}},i.prototype.getDevice=function(e,i){var s=this.$layer.data(this.device+e);return s!=t?s:"desktopportrait"!=this.device?this.$layer.data("desktopportrait"+e):i!==t?i:0},i.prototype.get=function(e){return this.$layer.data(e)},i.prototype.getParallaxNodes=function(){var e=[];if(this.isVisible){this.parallax&&e.push(this.$layer[0]);for(var t=0;t<this.children.length;t++)e.push.apply(e,this.children[t].getParallaxNodes())}return e},i.prototype.addWrap=function(i,s){if(this.wraps[i]===t){var r=e(s);switch(i){case"rotation":this.wraps.mask!==t?r.appendTo(this.wraps.mask):this.wraps.parallax!==t?r.appendTo(this.wraps.parallax):r.appendTo(this.$layer),r.append(this.getContents())}this.wraps[i]=r}return r},i.prototype.getContents=function(){return!1},i}),N2D("FrontendPlacement",function(e,t){function i(e){this.layer=e,this.alwaysResize=!1}return i.prototype.start=function(){},i.prototype.onDeviceChange=function(e){},i.prototype.onResize=function(e,t,i){},i}),N2D("FrontendSliderSlide",["FrontendComponentSlideAbstract"],function(e,t){function i(t,i,s){this.isStaticSlide=!1,this.originalIndex=s,this.index=s,this.localIndex=s,this.$element=i.data("slide",this),this.id=this.$element.data("id"),this.background=!1,this.slides=[this],t.parameters.admin?this.minimumSlideDuration=0:(this.minimumSlideDuration=i.data("slide-duration"),e.isNumeric(this.minimumSlideDuration)||(this.minimumSlideDuration=0));var r=i.find(".n2-ss-layers-container");N2Classes.FrontendComponentSlideAbstract.prototype.constructor.call(this,t,r)}return i.prototype=Object.create(N2Classes.FrontendComponentSlideAbstract.prototype),i.prototype.constructor=i,i.prototype.init=function(){N2Classes.FrontendComponentSlideAbstract.prototype.init.call(this);var e=this.slider.findSlideBackground(this);e.length>0&&(this.slider.isAdmin?this.background=new N2Classes.SmartSliderSlideBackgroundAdmin(this,e,this.slider.backgrounds):this.background=new N2Classes.SmartSliderSlideBackground(this,e,this.slider.backgrounds)),this.$element.data("slideBackground",this.background)},i.prototype.setStarterSlide=function(){N2Classes.FrontendComponentSlideAbstract.prototype.setStarterSlide.call(this)},i.prototype.setIndex=function(e){this.localIndex=this.index=e},i.prototype.preLoad=function(){return this.background?this.background.preLoad():!0},i.prototype.setPrevious=function(e){this.previousSlide=e},i.prototype.setNext=function(e){this.nextSlide=e,e.setPrevious(this)},i.prototype.hasBackgroundVideo=function(){return this.background.hasVideo()},i.prototype.getTitle=function(){return this.$element.data("title")},i.prototype.getDescription=function(){return this.$element.data("description")},i.prototype.getThumbnail=function(){return this.$element.data("thumbnail")},i.prototype.getThumbnailType=function(){return this.$element.data("thumbnail-type")},i.prototype.hasLink=function(){return!!this.$element.data("haslink")},i}),N2D("FrontendComponentSlideAbstract",["FrontendComponent"],function(e,t){function i(t,i){this.baseSize=16,this.slider=t,this.isCurrentlyEdited()||(this.status=s.NOT_INITIALIZED,N2Classes.FrontendComponent.prototype.constructor.call(this,this,this,i,i.find("> .n2-ss-layer, > .n2-ss-layer-group")),this.slider.sliderElement.on({SliderDeviceOrientation:e.proxy(function(e,t){this.onDeviceChange(t.device+t.orientation.toLowerCase())},this),SliderResize:e.proxy(function(e,t,i){this.onResize(t,i.responsiveDimensions)},this)}),N2Classes.FrontendComponent.prototype.start.call(this))}var s={NOT_INITIALIZED:-1,INITIALIZED:0,READY_TO_START:1,PLAYING:2,ENDED:3};return i.prototype=Object.create(N2Classes.FrontendComponent.prototype),i.prototype.constructor=i,i.prototype.is=function(e){return this===e},i.prototype.isCurrentlyEdited=function(){return this.slider.parameters.admin&&this.$element.hasClass("n2-ss-currently-edited-slide")},i.prototype.trigger=function(){this.$element.trigger.apply(this.$element,[].slice.call(arguments))},i.prototype.triggerHandler=function(){return this.$element.triggerHandler.apply(this.$element,[].slice.call(arguments))},i.prototype.init=function(){!this.isCurrentlyEdited()},i.prototype.refreshBaseSize=function(e){},i.prototype.onResize=function(e,t){for(var i=0;i<this.children.length;i++)this.children[i].onResize(e,t,this.isStaticSlide)},i.prototype.hasLayers=function(){return this.children.length>0},i.prototype.onDeviceChange=function(e){this.device=e;for(var t=0;t<this.children.length;t++)this.children[t].onDeviceChange(e);this.placement.onDeviceChange(e)},i.prototype.setStarterSlide=function(){},i}),N2D("FrontendSliderStaticSlide",["FrontendComponentSlideAbstract"],function(e,t){function i(e,t){this.isStaticSlide=!0,this.$element=t.data("slide",this),N2Classes.FrontendComponentSlideAbstract.prototype.constructor.call(this,e,t),this.init()}return i.prototype=Object.create(N2Classes.FrontendComponentSlideAbstract.prototype),i.prototype.constructor=i,i}),N2D("SmartSliderSlideBackgroundColor",function(e,t){function i(e,t){this.$el=t}return i.prototype.getLoadedDeferred=function(){return!0},i}),N2D("SmartSliderSlideBackgroundImage",function(e,t){function i(t,i,s,r){if(this.loadStarted=!1,this.loadAllowed=!1,this.slide=t,this.manager=i,this.background=s,this.deferred=e.Deferred(),this.$el=r,this.opacity=r.data("opacity"),this.blur=r.data("blur"),this.x=r.data("x"),this.y=r.data("y"),r.css("display","none"),this.$background=e('<div class="n2-ss-slide-background-image"/>').css({backgroundPosition:this.x+"% "+this.y+"%",opacity:this.opacity/100}).insertAfter(r),"blurfit"===s.mode&&(window.n2FilterProperty?(this.$background=this.$background.add(this.$background.clone().insertAfter(this.$background)),this.$background.first().css({margin:"-14px",padding:"14px"}).css(window.n2FilterProperty,"blur(7px)")):(s.element.attr("data-mode","fill"),s.mode="fill")),window.n2FilterProperty&&(this.blur>0?this.$background.last().css({margin:"-"+2*this.blur+"px",padding:2*this.blur+"px"}).css(window.n2FilterProperty,"blur("+this.blur+"px)"):this.$background.last().css({margin:"",padding:""}).css(window.n2FilterProperty,"")),n2const.isWaybackMachine())this.mobileSrc=this.tabletSrc=this.desktopSrc=r.attr("src");else if(this.desktopSrc=r.data("desktop")||"",this.tabletSrc=r.data("tablet")||"",this.mobileSrc=r.data("mobile")||"",n2const.isRetina){var n=r.data("desktop-retina");n&&(this.desktopSrc=n),n=r.data("tablet-retina"),n&&(this.tabletSrc=n),n=r.data("mobile-retina"),n&&(this.mobileSrc=n)}}return i.prototype.getLoadedDeferred=function(){return this.deferred},i.prototype.preLoad=function(){this.loadAllowed=!0,this.manager.deviceDeferred.done(e.proxy(function(){this.updateBackgroundToDevice(this.manager.device),this.$background.n2imagesLoaded({background:!0},e.proxy(function(e){var t=e.images[0].img;switch(this.width=t.naturalWidth,this.height=t.naturalHeight,this.background.mode){case"tile":case"center":n2const.devicePixelRatio>1&&this.$background.css("background-size",this.width/n2const.devicePixelRatio+"px "+this.height/n2const.devicePixelRatio+"px")}this.deferred.resolve()},this))},this))},i.prototype.updateBackgroundToDevice=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),t?this.setSrc(t):this.setSrc("")},i.prototype.setSrc=function(e){this.loadAllowed&&e!==this.currentSrc&&(""===e?this.$background.css("background-image",""):this.$background.css("background-image",'url("'+e+'")'),this.currentSrc=e)},i.prototype.fadeOut=function(){NextendTween.to(this.$background,.3,{opacity:0})},i}),N2D("FrontendPlacementAbsolute",["FrontendPlacement"],function(e,t){function i(e){return e.position()}function i(e){return{left:e.prop("offsetLeft"),top:e.prop("offsetTop")}}function s(e){this.linked=[],this.parentLayer=!1,this.$parent=!1,N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return/(MSIE\ [0-7]\.\d+)/.test(navigator.userAgent),s.prototype=Object.create(N2Classes.FrontendPlacement.prototype),s.prototype.constructor=s,s.prototype.start=function(){var t=this.layer.get("parentid");t&&(this.$parent=e("#"+t),0==this.$parent.length?this.$parent=!1:(this.parentLayer=this.$parent.data("layer"),this.parentLayer.placement.addLinked(this),this.onResize=function(){}))},s.prototype.addLinked=function(e){this.linked.push(e),this.alwaysResize=!0},s.prototype.onResize=s.prototype.onResizeLinked=function(e,t,s){var r=this.layer.$layer,n=e.slideW,a=n,o=e.slideH,l=o;parseInt(this.layer.get("responsivesize"))||(a=l=1),r.css("width",this.getWidth(a)),r.css("height",this.getHeight(l)),parseInt(this.layer.get("responsiveposition"))||(n=o=1);var h=this.layer.getDevice("left")*n,d=this.layer.getDevice("top")*o,p=this.layer.getDevice("align"),c=this.layer.getDevice("valign"),u={left:"auto",top:"auto",right:"auto",bottom:"auto"};if(this.$parent&&this.$parent.data("layer").isVisible){var m=i(this.$parent),f={left:0,top:0};switch(this.layer.getDevice("parentalign")){case"right":f.left=m.left+this.$parent.width();break;case"center":f.left=m.left+this.$parent.width()/2;break;default:f.left=m.left}switch(p){case"right":u.right=r.parent().width()-f.left-h+"px";break;case"center":u.left=f.left+h-r.width()/2+"px";break;default:u.left=f.left+h+"px"}switch(this.layer.getDevice("parentvalign")){case"bottom":f.top=m.top+this.$parent.height();break;case"middle":f.top=m.top+this.$parent.height()/2;break;default:f.top=m.top}switch(c){case"bottom":u.bottom=r.parent().height()-f.top-d+"px";break;case"middle":u.top=f.top+d-r.height()/2+"px";break;default:u.top=f.top+d+"px"}}else{switch(p){case"right":u.right=-h+"px";break;case"center":u.left=(s?r.parent().width():t.slide.width)/2+h-r.width()/2+"px";break;default:u.left=h+"px"}switch(c){case"bottom":u.bottom=-d+"px";break;case"middle":u.top=(s?r.parent().height():t.slide.height)/2+d-r.height()/2+"px";break;default:u.top=d+"px"}}r.css(u);for(var y=0;y<this.linked.length;y++)this.linked[y].onResizeLinked(e,t,s)},s.prototype.getWidth=function(e){var t=this.layer.getDevice("width");return this.isDimensionPropertyAccepted(t)?t:t*e+"px"},s.prototype.getHeight=function(e){var t=this.layer.getDevice("height");return this.isDimensionPropertyAccepted(t)?t:t*e+"px"},s.prototype.isDimensionPropertyAccepted=function(e){return!(!(e+"").match(/[0-9]+%/)&&"auto"!=e)},s}),N2D("FrontendPlacementContent",["FrontendPlacement"],function(e,t){function i(e){N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return i.prototype=Object.create(N2Classes.FrontendPlacement.prototype),i.prototype.constructor=i,i}),N2D("FrontendPlacementDefault",["FrontendPlacement"],function(e,t){function i(e){N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return i.prototype=Object.create(N2Classes.FrontendPlacement.prototype),i.prototype.constructor=i,i}),N2D("FrontendPlacementNormal",["FrontendPlacement"],function(e,t){function i(e){N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return i.prototype=Object.create(N2Classes.FrontendPlacement.prototype),i.prototype.constructor=i,i.prototype.onDeviceChange=function(){this.updateMargin(),this.updateHeight(),this.updateMaxWidth(),this.updateSelfAlign()},i.prototype.updateMargin=function(){var e=this.layer.getDevice("margin").split("|*|"),t=e.pop(),i=this.layer.baseSize;if("px+"==t&&i>0){t="em";for(var s=0;s<e.length;s++)e[s]=parseInt(e[s])/i}this.layer.$layer.css("margin",e.join(t+" ")+t)},i.prototype.updateHeight=function(){var e=this.layer.getDevice("height"),t="px";if(e>0){var i=this.layer.baseSize;i>0&&(t="em",e=parseInt(e)/i),this.layer.$layer.css("height",e+t)}else this.layer.$layer.css("height","")},i.prototype.updateMaxWidth=function(){var e=parseInt(this.layer.getDevice("maxwidth"));0>=e||isNaN(e)?this.layer.$layer.css("maxWidth","").attr("data-has-maxwidth","0"):this.layer.$layer.css("maxWidth",e+"px").attr("data-has-maxwidth","1")},i.prototype.updateSelfAlign=function(){this.layer.$layer.attr("data-cssselfalign",this.layer.getDevice("selfalign"))},i}),N2D("FrontendComponentCol",["FrontendComponent"],function(e,t){function i(e,t,i){this.$content=i.find(".n2-ss-layer-col:first"),N2Classes.FrontendComponent.prototype.constructor.call(this,e,t,i,this.$content.find("> .n2-ss-layer"))}return i.prototype=Object.create(N2Classes.FrontendComponent.prototype),i.prototype.constructor=i,i.prototype.onDeviceChange=function(e){N2Classes.FrontendComponent.prototype.onDeviceChange.apply(this,arguments),this.updateOrder(),this.updatePadding(),this.updateInnerAlign(),this.updateMaxWidth()},i.prototype.updatePadding=function(){var e=this.getDevice("padding").split("|*|"),t=e.pop(),i=this.baseSize;if("px+"===t&&i>0){t="em";for(var s=0;s<e.length;s++)e[s]=parseInt(e[s])/i}this.$content.css("padding",e.join(t+" ")+t)},i.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},i.prototype.updateMaxWidth=function(){var e=parseInt(this.getDevice("maxwidth"));0>=e||isNaN(e)?this.$layer.css("maxWidth","").attr("data-has-maxwidth","0"):this.$layer.css("maxWidth",e+"px").attr("data-has-maxwidth","1")},i.prototype.getWidthPercentage=function(){return parseFloat(this.$layer.data("colwidthpercent"))},i.prototype.getRealOrder=function(){var e=this.getDevice("order");return 0==e?10:e},i.prototype.updateOrder=function(){var e=this.getDevice("order");0==e?this.$layer.css("order",""):this.$layer.css("order",e)},i.prototype.getContents=function(){return this.$content},i}),N2D("FrontendComponentContent",["FrontendComponent"],function(e,t){function i(e,t,i){this.$content=i.find("> .n2-ss-section-main-content"),N2Classes.FrontendComponent.prototype.constructor.call(this,e,t,i,this.$content.find("> .n2-ss-layer"))}return i.prototype=Object.create(N2Classes.FrontendComponent.prototype),i.prototype.constructor=i,i.prototype.onDeviceChange=function(e){N2Classes.FrontendComponent.prototype.onDeviceChange.apply(this,arguments),this.updatePadding(),this.updateInnerAlign(),this.updateMaxWidth(),this.updateSelfAlign()},i.prototype.updatePadding=function(){var e=this.getDevice("padding").split("|*|"),t=e.pop(),i=this.baseSize;if("px+"==t&&i>0){t="em";for(var s=0;s<e.length;s++)e[s]=parseInt(e[s])/i}this.$content.css("padding",e.join(t+" ")+t)},i.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},i.prototype.updateMaxWidth=function(){var e=parseInt(this.getDevice("maxwidth"));0>=e||isNaN(e)?this.$layer.css("maxWidth","").attr("data-has-maxwidth","0"):this.$layer.css("maxWidth",e+"px").attr("data-has-maxwidth","1")},i.prototype.updateSelfAlign=function(){this.$layer.attr("data-cssselfalign",this.getDevice("selfalign"))},i.prototype.getContents=function(){return this.$content},i}),N2D("FrontendComponentLayer",["FrontendComponent"],function(e,t){function i(e,i,s){N2Classes.FrontendComponent.prototype.constructor.call(this,e,i,s),this.wraps.mask!==t?this.$item=this.wraps.mask.children():this.wraps.parallax!==t?this.$item=this.wraps.parallax.children():this.$item=s.children()}return i.prototype=Object.create(N2Classes.FrontendComponent.prototype),i.prototype.constructor=i,i.prototype.getContents=function(){return this.$item},i}),N2D("FrontendComponentRow",["FrontendComponent"],function(e,t){function i(e,t,i){this.$row=i.find(".n2-ss-layer-row:first"),this.$rowInner=this.$row.find(".n2-ss-layer-row-inner:first"),N2Classes.FrontendComponent.prototype.constructor.call(this,e,t,i,this.$rowInner.find("> .n2-ss-layer"))}return i.prototype=Object.create(N2Classes.FrontendComponent.prototype),i.prototype.constructor=i,i.prototype.onDeviceChange=function(e){N2Classes.FrontendComponent.prototype.onDeviceChange.apply(this,arguments),this.updatePadding(),this.updateGutter(),this.updateInnerAlign()},i.prototype.onAfterDeviceChange=function(e){this.updateWrapAfter()},i.prototype.updatePadding=function(){var e=this.getDevice("padding").split("|*|"),t=e.pop(),i=this.baseSize;if("px+"===t&&i>0){t="em";for(var s=0;s<e.length;s++)e[s]=parseInt(e[s])/i}this.$row.css("padding",e.join(t+" ")+t)},i.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},i.prototype.updateGutter=function(){var e=this.getDevice("gutter"),t=e/2;if(this.children.length>0)for(var i=this.children.length-1;i>=0;i--)this.children[i].$layer.css("margin",t+"px");this.$rowInner.css({width:"calc(100% + "+(e+1)+"px)",margin:-t+"px"})},i.prototype.getSortedColumns=function(){for(var t=e.extend([],this.children).sort(function(e,t){return e.getRealOrder()-t.getRealOrder()}),i=t.length-1;i>=0;i--)t[i].isVisible||t.splice(i,1);return t},i.prototype.updateWrapAfter=function(){var e=parseInt(this.getDevice("wrapafter")),t=this.getSortedColumns(),i=t.length,s=!1;if(0===i)return!1;e>0&&i>e&&(s=!0),this.$row.attr("row-wrapped",s?1:0);var r;if(s){var n=[];for(r=0;i>r;r++){var a=Math.floor(r/e);"undefined"==typeof n[a]&&(n[a]=[]),n[a].push(t[r]),t[r].$layer.attr("data-r",a).toggleClass("n2-ss-last-in-row",(r+1)%e===0||r===i-1)}var o=this.getDevice("gutter");for(r=0;r<n.length;r++){var l,h=n[r],d=0;for(l=0;l<h.length;l++)d+=h[l].getWidthPercentage();for(l=0;l<h.length;l++)h[l].$layer.css("width","calc("+h[l].getWidthPercentage()/d*100+"% - "+o+"px)")}}else{var d=0;for(r=0;i>r;r++)d+=t[r].getWidthPercentage();for(r=0;i>r;r++)t[r].$layer.css("width",t[r].getWidthPercentage()/d*100+"%").removeClass("n2-ss-last-in-row").attr("data-r",0);t[i-1].$layer.addClass("n2-ss-last-in-row")}},i.prototype.getContents=function(){return this.$row},i}),N2D("SmartSliderResponsive",function(e,t){function i(t,i){this.disableTransitions=!1,this.disableTransitionsTimeout=null,this.lastClientHeight=0,this.lastClientHeightTime=0,this.lastOrientation=0,this.isFullScreen=!1,this.invalidateResponsiveState=!0,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,forceFullOverflowX:"body",forceFullHorizontalSelector:"",verticalOffsetSelectors:"",decreaseSliderHeight:0,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",overflowHiddenPage:0},i),t.isAdmin&&(this.doResize=NextendThrottle(this.doResize,50)),this.loadDeferred=e.Deferred(),this.slider=t,this.sliderElement=t.sliderElement}var s=null,r=null;return i.OrientationMode={SCREEN:0,ADMIN_LANDSCAPE:1,ADMIN_PORTRAIT:2,SCREEN_WIDTH_ONLY:3},i.DeviceOrientation={UNKNOWN:0,LANDSCAPE:1,PORTRAIT:2},i._DeviceOrientation={0:"Unknown",1:"Landscape",2:"Portrait"},i.DeviceMode={UNKNOWN:0,DESKTOP:1,TABLET:2,MOBILE:3},i._DeviceMode={0:"unknown",1:"desktop",2:"tablet",3:"mobile"},i.prototype.start=function(){nextend.fontsDeferred===t?N2R("windowLoad",e.proxy(function(){this.loadDeferred.resolve()},this)):nextend.fontsDeferred.always(e.proxy(function(){this.loadDeferred.resolve()},this)),this.normalizeTimeout=null,this.delayedResizeAdded=!1,this.deviceMode=i.DeviceMode.UNKNOWN,this.orientationMode=i.OrientationMode.SCREEN,this.orientation=i.DeviceOrientation.UNKNOWN,this.lastRatios={ratio:-1},this.lastRawRatios={ratio:-1},this.normalizedMode="unknownUnknown",this.widgetMargins={Top:[],Right:[],Bottom:[],Left:[]},this.staticSizes={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},this.enabledWidgetMargins=[],this.alignElement=this.slider.sliderElement.closest(".n2-ss-align");var n=this.ready=e.Deferred();switch(this.sliderElement.triggerHandler("SliderResponsiveStarted"),this.sliderElement.one("SliderResize",function(){n.resolve()}),this.containerElementPadding=this.sliderElement.parent(),this.containerElement=this.containerElementPadding.parent(),!this.slider.isAdmin&&this.parameters.overflowHiddenPage&&e("html, body").css("overflow","hidden"),"width"==this.parameters.orientationMode&&(this.orientationMode=i.OrientationMode.SCREEN_WIDTH_ONLY),nextend.smallestZoom=Math.min(Math.max(this.parameters.sliderWidthToDevice.mobilePortrait,120),320),this.parameters.basedOn){case"screen":break;default:if(null==s){var a=new MobileDetect(window.navigator.userAgent,801);s=!!a.tablet(),r=!!a.phone()}}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 o in this.parameters.maximumHeightRatio)this.parameters.maximumHeightRatio[o]*=this.parameters.verticalRatioModifiers[o]}if(N2Classes.Zoom!==t&&N2Classes.Zoom.add(this),this.onResize(),this.parameters.onResizeEnabled||"adaptive"==this.parameters.type)if(e(window).on({resize:e.proxy(this.onResize,this),orientationchange:e.proxy(this.onResize,this)}),this.sliderElement.on("SliderInternalResize",e.proxy(this.onResize,this)),window.ResizeObserver!==t){var l=0,h=new ResizeObserver(e.proxy(function(t){t.forEach(e.proxy(function(e){l!==e.contentRect.width&&(l=e.contentRect.width,this.sliderElement.triggerHandler("SliderInternalResize"))},this))},this));h.observe(this.containerElement.parent().get(0))}else try{e('<iframe sandbox="allow-same-origin allow-scripts" style="margin:0;padding:0;border:0;display:block;width:100%;height:0;"/>').on("load",e.proxy(function(t){var i=0,s=e(t.target.contentWindow?t.target.contentWindow:t.target.contentDocument.defaultView).on("resize",e.proxy(function(e){var t=s.width();i!==t&&(i=t,this.sliderElement.triggerHandler("SliderInternalResize"))},this))},this)).insertBefore(this.containerElement)}catch(d){}},i.prototype.getOuterWidth=function(){return this.responsiveDimensions.startSliderWidth+this.responsiveDimensions.startSliderMarginLeft+this.responsiveDimensions.startSliderMarginRight},i.prototype.storeDefaults=function(){this.responsiveDimensions={startWidth:this.sliderElement.outerWidth(!0),startHeight:this.sliderElement.outerHeight(!0),startSliderMarginhorizontal:0,startSliderMarginvertical:0},this.horizontalElements=[],this.verticalElements=[],this.init(),this.margins={top:this.responsiveDimensions.startSliderMarginTop,right:this.responsiveDimensions.startSliderMarginRight,bottom:this.responsiveDimensions.startSliderMarginBottom,left:this.responsiveDimensions.startSliderMarginLeft}},i.prototype.addHorizontalElement=function(e,t,i,s){i=i||"ratio";var r=new N2Classes.SmartSliderResponsiveElement(this,i,e,t,s);return this.horizontalElements.push(r),r},i.prototype.addVerticalElement=function(e,t,i,s){i=i||"ratio";var r=new N2Classes.SmartSliderResponsiveElement(this,i,e,t,s);return this.verticalElements.push(r),r},i.prototype.resizeHorizontalElements=function(e){for(var t=0;t<this.horizontalElements.length;t++){var i=this.horizontalElements[t];"undefined"==typeof e[i.ratioName]&&console.log("error with "+i.ratioName),i.resize(this.responsiveDimensions,e[i.ratioName],!1,0)}this.slider.sliderElement.triggerHandler("SliderResizeHorizontal")},i.prototype.updateVerticalRatios=function(e){return e},i.prototype._updateVerticalRatios=function(t){var i=this.responsiveDimensions.startSlideHeight*t.slideH,s=!1;return this.sliderElement.find(".n2-ss-section-main-content").addClass("n2-ss-section-main-content-calc").each(function(t,r){var n=e(r).outerHeight();n>i&&(s=!0,i=n)}).removeClass("n2-ss-section-main-content-calc"),s&&(t.slideH=i/this.responsiveDimensions.startSlideHeight,t.h=Math.max(t.h,t.slideH)),t},i.prototype.resizeVerticalElements=function(e,t,i){for(var s=0;s<this.verticalElements.length;s++){var r=this.verticalElements[s];"undefined"==typeof e[r.ratioName]&&console.log("error with "+r.ratioName),r.resize(this.responsiveDimensions,e[r.ratioName],t,i)}},i.prototype.getDeviceMode=function(){return i._DeviceMode[this.deviceMode]},i.prototype.getDeviceModeOrientation=function(){return i._DeviceMode[this.deviceMode]+i._DeviceOrientation[this.orientation]},i.prototype.onResize=function(t){this.slider.mainAnimation&&"playing"==this.slider.mainAnimation.getState()?this.delayedResizeAdded||(this.delayedResizeAdded=!0,this.sliderElement.on("mainAnimationComplete.responsive",e.proxy(this._onResize,this,t))):this._onResize(t)},i.prototype._onResize=function(e){this.doResize(e),this.delayedResizeAdded=!1},i.prototype.doNormalizedResize=function(){this.normalizeTimeout&&clearTimeout(this.normalizeTimeout),this.normalizeTimeout=setTimeout(e.proxy(this.doResize,this),10)},i.prototype._getOrientation=function(){return this.orientationMode==i.OrientationMode.SCREEN?window.innerHeight<=window.innerWidth?i.DeviceOrientation.LANDSCAPE:i.DeviceOrientation.PORTRAIT:this.orientationMode==i.OrientationMode.ADMIN_PORTRAIT?i.DeviceOrientation.PORTRAIT:this.orientationMode==i.OrientationMode.ADMIN_LANDSCAPE?i.DeviceOrientation.LANDSCAPE:void 0},i.prototype._getDevice=function(){switch(this.parameters.basedOn){case"combined":return this._getDeviceDevice(this._getDeviceScreenWidth());case"device":return this._getDeviceDevice(i.DeviceMode.DESKTOP);case"screen":return this._getDeviceScreenWidth()}},i.prototype._getDeviceScreenWidth=function(){var e=window.innerWidth;if(this.orientation==i.DeviceOrientation.PORTRAIT){if(e<this.parameters.mobilePortraitScreenWidth)return i.DeviceMode.MOBILE;if(e<this.parameters.tabletPortraitScreenWidth)return i.DeviceMode.TABLET}else{if(e<this.parameters.mobileLandscapeScreenWidth)return i.DeviceMode.MOBILE;if(e<this.parameters.tabletLandscapeScreenWidth)return i.DeviceMode.TABLET}return i.DeviceMode.DESKTOP},i.prototype._getDeviceAndOrientationByScreenWidth=function(){var e=window.innerWidth;return e<this.parameters.mobilePortraitScreenWidth?[i.DeviceMode.MOBILE,i.DeviceOrientation.PORTRAIT]:e<this.parameters.mobileLandscapeScreenWidth?[i.DeviceMode.MOBILE,i.DeviceOrientation.LANDSCAPE]:e<this.parameters.tabletPortraitScreenWidth?[i.DeviceMode.TABLET,i.DeviceOrientation.PORTRAIT]:e<this.parameters.tabletLandscapeScreenWidth?[i.DeviceMode.TABLET,i.DeviceOrientation.LANDSCAPE]:e<this.parameters.desktopPortraitScreenWidth?[i.DeviceMode.DESKTOP,i.DeviceOrientation.PORTRAIT]:[i.DeviceMode.DESKTOP,i.DeviceOrientation.LANDSCAPE]},i.prototype._getDeviceDevice=function(e){return r===!0?i.DeviceMode.MOBILE:s&&e!=i.DeviceMode.MOBILE?i.DeviceMode.TABLET:e},i.prototype._getDeviceZoom=function(e){var t;this.orientationMode==i.OrientationMode.ADMIN_PORTRAIT?t=i.DeviceOrientation.PORTRAIT:this.orientationMode==i.OrientationMode.ADMIN_LANDSCAPE&&(t=i.DeviceOrientation.LANDSCAPE);var s=i.DeviceMode.DESKTOP;return e-this.parameters.ratioToDevice[i._DeviceOrientation[t]].mobile<.001?s=i.DeviceMode.MOBILE:e-this.parameters.ratioToDevice[i._DeviceOrientation[t]].tablet<.001&&(s=i.DeviceMode.TABLET),s},i.prototype.doResize=function(t,s,r,n){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();var a;if("center"===this.slider.parameters.align&&("fullpage"===this.parameters.type?this.alignElement.css("maxWidth","none"):(a=this.responsiveDimensions.startWidth,this.staticSizes&&(a+=this.staticSizes.paddingLeft+this.staticSizes.paddingRight),this.alignElement.css("maxWidth",a))),!this.slider.isAdmin&&this.parameters.forceFull){"none"!==this.parameters.forceFullOverflowX&&e(this.parameters.forceFullOverflowX).css("overflow-x","hidden");var o=0,l=0;if(""!==this.parameters.forceFullHorizontalSelector){var h=this.sliderElement.closest(this.parameters.forceFullHorizontalSelector);h&&h.length>0&&(o=h.width(),l=h.offset().left)}var d,p=o>0?o:document.body.clientWidth||document.documentElement.clientWidth,c=this.containerElement.parent(),u=c.offset().left;d=n2const.rtl.isRtl?p-(u+c.outerWidth()):u,this.containerElement.css(n2const.rtl.marginLeft,-d-parseInt(c.css("paddingLeft"))-parseInt(c.css("borderLeftWidth"))+l).width(p)}var m=this.containerElementPadding.width()/this.getOuterWidth(),f=!1,y=this.orientation,g=this.deviceMode,v=null,S=null;if(this.orientationMode===i.OrientationMode.SCREEN_WIDTH_ONLY){var b=this._getDeviceAndOrientationByScreenWidth();S=b[0],v=b[1]}else v=this._getOrientation();if(this.orientation!==v&&(this.orientation=v,f=!0,this.sliderElement.trigger("SliderOrientation",{lastOrientation:i._DeviceOrientation[y],orientation:i._DeviceOrientation[v]})),this.orientationMode!==i.OrientationMode.SCREEN_WIDTH_ONLY&&(S=this._getDevice(m)),this.deviceMode!==S&&(this.deviceMode=S,this.sliderElement.removeClass("n2-ss-"+i._DeviceMode[g]).addClass("n2-ss-"+i._DeviceMode[S]),
|
4 |
this.sliderElement.trigger("SliderDevice",{lastDevice:i._DeviceMode[g],device:i._DeviceMode[S]}),f=!0),!this.slider.isAdmin&&"fullpage"===this.parameters.type){var w=0;if(window.matchMedia&&/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||window.opera)){var x,E=!1;t&&"orientationchange"===t.type&&(E=!0),x=n2const.isIOS?document.documentElement.clientHeight:window.innerHeight,window.matchMedia("(orientation: landscape)").matches?(w=Math.min(screen.width,x),90!=this.lastOrientation&&(E=!0,this.lastOrientation=90)):(w=Math.min(screen.height,x),0!=this.lastOrientation&&(E=!0,this.lastOrientation=0)),w=window.n2ClientHeight||w;var D=e.now();!E&&Math.abs(w-this.lastClientHeight)<100&&D-this.lastClientHeightTime>400?w=this.lastClientHeight:(this.lastClientHeight=w,this.lastClientHeightTime=D)}else w=window.n2ClientHeight||document.documentElement.clientHeight||document.body.clientHeight;n2const.isBot&&(w=Math.min(w,document.documentElement.clientWidth||document.body.clientWidth)),this.parameters.maximumHeightRatio[this.getDeviceModeOrientation()]=this.parameters.minimumHeightRatio=(w-this.getVerticalOffsetHeight())/this.responsiveDimensions.startHeight}if(f){this.invalidateResponsiveState=!0;var C=this._normalizeMode(i._DeviceMode[g],i._DeviceOrientation[y]),A=this._normalizeMode(i._DeviceMode[this.deviceMode],i._DeviceOrientation[this.orientation]);C[0]===A[0]&&C[1]===A[1]||(this.normalizedMode=A[0]+A[1],this.sliderElement.trigger("SliderDeviceOrientation",{lastDevice:C[0],lastOrientation:C[1],device:A[0],orientation:A[1]}))}var k=this.parameters.sliderWidthToDevice[this.normalizedMode]/this.parameters.sliderWidthToDevice.desktopPortrait;!this.parameters.downscale&&k>m?m=k:!this.parameters.upscale&&m>k&&(m=k),this._doResize(m,s,r,n),"center"===this.slider.parameters.align&&(a=this.responsiveDimensions.slider.width,this.staticSizes&&(a+=this.staticSizes.paddingLeft+this.staticSizes.paddingRight),this.responsiveDimensions&&(a+=this.responsiveDimensions.startSliderMarginhorizontal),this.alignElement.css("maxWidth",a))},i.prototype._normalizeMode=function(e,t){return this.parameters.normalizedDeviceModes[e+t]},i.prototype.getNormalizedModeString=function(){var e=this._normalizeMode(i._DeviceMode[this.deviceMode],i._DeviceOrientation[this.orientation]);return e.join("")},i.prototype.getModeString=function(){return i._DeviceMode[this.deviceMode]+i._DeviceOrientation[this.orientation]},i.prototype.enabled=function(e,t){return this.parameters.deviceModes[e+t]},i.prototype._doResize=function(t,i,s,r){var n={ratio:t,w:t,h:t,slideW:t,slideH:t,fontRatio:1};this._buildRatios(n,this.slider.parameters.dynamicHeight,s),n.fontRatio=n.slideW;var a=!1;for(var o in n)if(n[o]!=this.lastRawRatios[o]){a=!0;break}(this.invalidateResponsiveState||a)&&(this.lastRawRatios=e.extend({},n),this.resizeHorizontalElements(n),this.finishResize(n,i,r))},i.prototype.finishResize=function(t,i,s){this.loadDeferred.done(e.proxy(function(){var r=e.proxy(function(){this.finishResize=this._finishResize,this.finishResize(t,i,s)},this);/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor)||/CriOS/.exec(window.navigator.userAgent)?setTimeout(r,200):r()},this)),this.invalidateResponsiveState=!1},i.prototype._finishResize=function(e,t,i){this.invalidateResponsiveState=!1,e=this.updateVerticalRatios(e),this.resizeVerticalElements(e,t,i),this.lastRatios=e,t?(this.sliderElement.trigger("SliderAnimatedResize",[e,t,i]),t.eventCallback("onComplete",function(){this.triggerResize(e,t)},[],this)):this.triggerResize(e,!1)},i.prototype.doVerticalResize=function(){var t=this.updateVerticalRatios(e.extend({},this.lastRawRatios)),i=!1;for(var s in t)if(t[s]!=this.lastRatios[s]){i=!0;break}i&&this.finishVerticalResize(t)},i.prototype.finishVerticalResize=function(t){this.loadDeferred.done(e.proxy(function(){this.finishVerticalResize=this._finishVerticalResize,this.finishVerticalResize(t)},this))},i.prototype._finishVerticalResize=function(e){this.resizeVerticalElements(e,!1,0),this.lastRatios=e,this.triggerResize(e,!1)},i.prototype.triggerResize=function(e,t){this.sliderElement.trigger("SliderResize",[e,this,t])},i.prototype._buildRatios=function(e,i,s){var r=this.getDeviceModeOrientation();this.parameters.maximumSlideWidthRatio[r]>0&&e.slideW>this.parameters.maximumSlideWidthRatio[r]&&(e.slideW=this.parameters.maximumSlideWidthRatio[r]),e.slideW=e.slideH=Math.min(e.slideW,e.slideH);var n=this.parameters.verticalRatioModifiers[r];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[r]>0&&(e.h=Math.min(e.h,this.parameters.maximumHeightRatio[r])),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[r]>0&&e.slideW>this.parameters.maximumSlideWidthRatio[r]&&(e.slideW=this.parameters.maximumSlideWidthRatio[r]),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[r]>0&&(e.h=Math.min(e.h,this.parameters.maximumHeightRatio[r])),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)),i){var a;if(s!==t&&s.background.elements.image!==t?a=s.background.elements.image:this.slider.currentSlide.background.elements.image!==t&&(a=this.slider.currentSlide.background.elements.image),a!==t&&a.width>0&&a.height>0){var o=this.responsiveDimensions.startSlideWidth/a.width*(a.height/this.responsiveDimensions.startSlideHeight);o>0&&(e.slideH*=o,e.h*=o)}}this.sliderElement.triggerHandler("responsiveBuildRatios",[e])},i.prototype.getVerticalOffsetHeight=function(){if(this.isFullScreen)return 0;for(var e=0,t=0;t<this.verticalOffsetSelectors.length;t++)e+=this.verticalOffsetSelectors.eq(t).outerHeight();if(this.slider.widgets.$vertical)for(var t=0;t<this.slider.widgets.$vertical.length;t++)e+=this.slider.widgets.$vertical.eq(t).outerHeight();return e+this.parameters.decreaseSliderHeight},i.prototype.addMargin=function(e,t){this.widgetMargins[e].push(t),t.isVisible()&&(this._addMarginSize(e,t.getSize()),this.enabledWidgetMargins.push(t)),this.doNormalizedResize()},i.prototype.addStaticMargin=function(e,t){"Bottom"!=e&&"Top"!=e&&(this.widgetStaticMargins||(this.widgetStaticMargins={Top:[],Right:[],Bottom:[],Left:[]}),this.widgetStaticMargins[e].push(t),this.doNormalizedResize())},i.prototype.refreshMargin=function(){for(var t in this.widgetMargins)for(var i=this.widgetMargins[t],s=i.length-1;s>=0;s--){var r=i[s];if(r.isVisible())-1==e.inArray(r,this.enabledWidgetMargins)&&(this._addMarginSize(t,r.getSize()),this.enabledWidgetMargins.push(r));else{var n=e.inArray(r,this.enabledWidgetMargins);-1!=n&&(this._addMarginSize(t,-r.getSize()),this.enabledWidgetMargins.splice(n,1))}}this.refreshStaticSizes()},i.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 r=i[s];r.isVisible()&&(e["padding"+t]+=r.getSize())}for(var n in e)this.containerElementPadding.css(e);this.staticSizes=e}},i.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},i}),N2D("SmartSliderResponsiveElement",function(e,t){function i(t,i,s,r,n){this._lastRatio=1,this.responsive=t,this.ratioName=i,this.element=s,this._readyDeferred=e.Deferred(),"undefined"!=typeof n?this.name=n:this.name=null,this.data={},this.helper={parent:null,parentProps:null,fontSize:!1,centered:!1},this._lateInit(r)}return i.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()},i.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 s in this.data)i["start"+N2Classes.StringHelper.capitalize(this.name)+N2Classes.StringHelper.capitalize(s)]=this.data[s]}},i.prototype.ready=function(e){this._readyDeferred.done(e)},i.prototype.resize=function(t,i){this.ready(e.proxy(this.resize,this,t,i)),this._lastRatio=i},i.prototype._resize=function(e,t,i,s){this.name&&"undefined"==typeof e[this.name]&&(e[this.name]={});var r={};for(var n in this.data){var a=this.data[n]*t;"function"==typeof this[n+"Prepare"]&&(a=this[n+"Prepare"](a)),this.name&&(e[this.name][n]=a),r[n]=a}if(i)i.to(this.element,s,r,0);else if(this.element.css(r),this.helper.centered){var o=this.getVerticalMargin(parseInt((this.helper.parent.height()-this.element.height())/2)),l=this.getHorizontalMargin(parseInt((this.helper.parent.width()-this.element.width())/2));this.element.css({marginLeft:l,marginRight:l,marginTop:o,marginBottom:o})}this._lastRatio=t},i.prototype.getHorizontalMargin=function(e){return e},i.prototype.getVerticalMargin=function(e){return e},i.prototype._refreshResize=function(){this.responsive.ready.done(e.proxy(function(){this._resize(this.responsive.responsiveDimensions,this.responsive.lastRatios[this.ratioName])},this))},i.prototype.widthPrepare=function(e){return Math.round(e)},i.prototype.heightPrepare=function(e){return Math.round(e)},i.prototype.marginLeftPrepare=function(e){return parseInt(e)},i.prototype.marginRightPrepare=function(e){return parseInt(e)},i.prototype.lineHeightPrepare=function(e){return e+"px"},i.prototype.borderLeftWidthPrepare=function(e){return parseInt(e)},i.prototype.borderRightWidthPrepare=function(e){return parseInt(e)},i.prototype.borderTopWidthPrepare=function(e){return parseInt(e)},i.prototype.borderBottomWidthPrepare=function(e){return parseInt(e)},i.prototype.fontSizePrepare=function(e){var t=this.responsive.getNormalizedModeString();return e<this.helper.fontSize[t]?this.helper.fontSize[t]:e},i.prototype.setCentered=function(){this.helper.parent=this.element.parent(),this.helper.centered=!0},i.prototype.unsetCentered=function(){this.helper.centered=!1},i.prototype.onModeChange=function(){this.setFontSizeByMode()},i.prototype.setFontSizeByMode=function(){this.element.css("fontSize",this.fontSizePrepare(this.data.fontSize*this._lastRatio))},i}),N2D("FrontendItemVimeo",function(e,t){function i(t,i,s,r,n,a){this.state={scroll:!1,slide:!1,play:!1,continuePlay:!1},this.readyDeferred=e.Deferred(),this.slider=t,this.playerId=i,this.$playerElement=e("#"+this.playerId),this.$cover=this.$playerElement.find(".n2-ss-layer-player-cover"),this.start=a,this.parameters=e.extend({vimeourl:"//vimeo.com/144598279",autoplay:"0",reset:"0",title:"1",byline:"1",portrait:"0",loop:"0",color:"00adef",volume:"-1"},r),navigator.userAgent.toLowerCase().indexOf("android")>-1&&(this.parameters.autoplay=0),1===parseInt(this.parameters.autoplay)||!n||n2const.isMobile?this.ready(e.proxy(this.initVimeoPlayer,this)):this.ready(e.proxy(function(){this.$playerElement.on("click.vimeo n2click.vimeo",e.proxy(function(e){this.$playerElement.off(".vimeo"),e.preventDefault(),e.stopPropagation(),this.initVimeoPlayer(),this.safePlay()},this))},this))}return i.vimeoDeferred=null,i.prototype.ready=function(t){null===i.vimeoDeferred&&(i.vimeoDeferred=e.getScript("https://player.vimeo.com/api/player.js")),i.vimeoDeferred.done(t)},i.prototype.initVimeoPlayer=function(){var t=e('<iframe allow="autoplay; encrypted-media" id="'+this.playerId+'-frame" 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>');this.$playerElement.prepend(t),this.isStatic=t.closest(".n2-ss-static-slide").length,this.player=new Vimeo.Player(t[0],{autoplay:!0}),this.promise=this.player.ready(),this.promise.then(e.proxy(this.onReady,this))},i.prototype.onReady=function(){var t=parseFloat(this.parameters.volume);t>=0&&this.setVolume(t),this.slide=this.slider.findSlideByElement(this.$playerElement);var i=this.$playerElement.closest(".n2-ss-layer");this.$cover.length&&(n2const.isMobile&&this.$cover.css("pointer-events","none"),i.one("n2play",e.proxy(function(){NextendTween.to(this.$cover,.3,{opacity:0,onComplete:e.proxy(function(){this.$cover.remove()},this)})},this))),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.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1)},this)),this.player.on("ended",e.proxy(function(){this.isStatic||this.slider.sliderElement.trigger("mediaEnded",this.playerId),i.triggerHandler("n2stop"),this.setState("play",!1)},this)),this.isStatic||this.slider.sliderElement.on("mainAnimationStart",e.proxy(function(t,i,s,r,n){-1==e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))?(parseInt(this.parameters.reset)&&this.reset(),this.setState("slide",!1,!0)):this.setState("slide",!0,!0)},this)),""!==this.parameters["scroll-pause"]?N2Classes.ScrollTracker.add(this.$playerElement,this.parameters["scroll-pause"],e.proxy(function(){this.setState("scroll",!0,!0)},this),e.proxy(function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)},this)):this.setState("scroll",!0,!0),(this.isStatic||-1!==e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.currentSlide)))&&this.setState("slide",!0,!0),1===parseInt(this.parameters.autoplay)&&this.slider.visible(e.proxy(this.initAutoplay,this)),this.readyDeferred.resolve()},i.prototype.initAutoplay=function(){this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(t,i,s,r,n){e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))>=0?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)},this)),e.inArray(this.slide,this.slider.getVisibleSlides())>=0&&(this.setState("play",!0),this.setState("slide",!0,!0)))},i.prototype.setState=function(e,t,i){i=i||!1,this.state[e]=t,i&&(this.state.play&&this.state.slide&&this.state.scroll?this.play():this.pause())},i.prototype.play=function(){this.slider.sliderElement.trigger("mediaStarted",this.playerId),0!=this.start&&this.safeSetCurrentTime(this.start),this.safePlay(),this.player.getCurrentTime().then(e.proxy(function(e){e<this.start&&0!=this.start&&this.safeSetCurrentTime(this.start),this.safePlay()},this))["catch"](e.proxy(function(e){this.safePlay()},this))},i.prototype.pause=function(){this.safePause()},i.prototype.reset=function(){this.safeSetCurrentTime(this.start)},i.prototype.setVolume=function(t){this.safeCallback(e.proxy(function(){this.promise=this.player.setVolume(t)},this))},i.prototype.safeSetCurrentTime=function(t){this.safeCallback(e.proxy(function(){this.promise=this.player.setCurrentTime(t)},this))},i.prototype.safePlay=function(){this.safeCallback(e.proxy(function(){this.promise=this.player.getPaused(),this.safeCallback(e.proxy(function(e){e&&(this.promise=this.player.play())},this))},this))},i.prototype.safePause=function(){this.safeCallback(e.proxy(function(){this.promise=this.player.getPaused(),this.safeCallback(e.proxy(function(e){e||(this.promise=this.player.pause())},this))},this))},i.prototype.safeCallback=function(e){this.promise&&Promise!==t?this.promise.then(e)["catch"](e):e()},i}),N2D("FrontendItemYouTube",function(e,t){function i(t,i,s,r){this.state={scroll:!1,slide:!1,play:!1,continuePlay:!1},this.readyDeferred=e.Deferred(),this.slider=t,this.playerId=i,this.$playerElement=e("#"+this.playerId),this.$cover=this.$playerElement.find(".n2-ss-layer-player-cover"),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,showinfo:1,modestbranding:1,reset:0,query:[],playsinline:0},s),1===parseInt(this.parameters.autoplay)||!r||n2const.isMobile?this.ready(e.proxy(this.initYoutubePlayer,this)):this.$playerElement.on("click.youtube n2click.youtube",e.proxy(function(t){this.$playerElement.off(".youtube"),t.preventDefault(),t.stopPropagation(),this.ready(e.proxy(function(){this.readyDeferred.done(e.proxy(function(){this.play()},this)),this.initYoutubePlayer()},this))},this))}return i.YTDeferred=null,i.prototype.ready=function(s){null===i.YTDeferred&&(i.YTDeferred=e.Deferred(),window.YT===t&&e.getScript("https://www.youtube.com/iframe_api"),function(e){var i=function(){window.YT!==t&&window.YT.loaded?e.resolve():setTimeout(i,100)};i()}(i.YTDeferred)),i.YTDeferred.done(s)},i.prototype.initYoutubePlayer=function(){var t=this.$playerElement.closest(".n2-ss-layer");this.$cover.length&&(n2const.isMobile&&this.$cover.css("pointer-events","none"),t.one("n2play",e.proxy(function(){NextendTween.to(this.$cover,.3,{opacity:0,onComplete:e.proxy(function(){this.$cover.remove()},this)})},this))),this.isStatic=this.$playerElement.closest(".n2-ss-static-slide").length;var i={enablejsapi:1,origin:window.location.protocol+"//"+window.location.host,theme:this.parameters.theme,wmode:"opaque",rel:this.parameters.related,vq:this.parameters.vq,start:this.parameters.start,showinfo:this.parameters.showinfo,modestbranding:this.parameters.modestbranding,playsinline:this.parameters.playsinline};if(1===parseInt(this.parameters.autoplay))if(navigator.userAgent.toLowerCase().indexOf("android")>-1)this.parameters.volume=0;else if(n2const.isIOS){this.parameters.autoplay=0;try{"playsInline"in document.createElement("video")&&(this.parameters.autoplay=1,this.parameters.volume=0,i.playsinline=1)}catch(s){}}n2const.isIOS&&this.parameters.controls&&(i.use_native_controls=1),1==this.parameters.center&&(i.controls=0,i.showinfo=0),1!=this.parameters.controls&&(i.autohide=1,i.controls=0),+(navigator.platform.toUpperCase().indexOf("MAC")>=0&&navigator.userAgent.search("Firefox")>-1)&&(i.html5=1);for(var r in this.parameters.query)this.parameters.query.hasOwnProperty(r)&&(i[r]=this.parameters.query[r]);var n={videoId:this.parameters.youtubecode,wmode:"opaque",playerVars:i,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),t.triggerHandler("n2play");break;case YT.PlayerState.PAUSED:t.triggerHandler("n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1);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),t.triggerHandler("n2stop"),this.setState("play",!1))}},this)}};this.parameters["privacy-enhanced"]&&(n.host="https://www.youtube-nocookie.com"),this.player=new YT.Player(this.playerId+"-frame",n),this.slide=this.slider.findSlideByElement(this.$playerElement),1==this.parameters.center&&(this.$playerElement.parent().css("overflow","hidden"),this.onResize(),this.slider.sliderElement.on("SliderResize",e.proxy(this.onResize,this)))},i.prototype.onReady=function(){var t=parseFloat(this.parameters.volume);t>0?this.setVolume(t):-1!==t&&this.player.mute(),(this.isStatic||-1!==e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.currentSlide)))&&this.setState("slide",!0,!0),1==this.parameters.autoplay&&this.slider.visible(e.proxy(this.initAutoplay,this)),this.isStatic||(this.slider.sliderElement.on("mainAnimationStart",e.proxy(function(t,i,s,r){-1==e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))?this.setState("slide",!1,!0):this.setState("slide",!0,!0)},this)),parseInt(this.parameters.reset)&&this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(t,i,s,r){-1==e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))&&this.player.seekTo(0)},this))),this.readyDeferred.resolve(),""!==this.parameters["scroll-pause"]?N2Classes.ScrollTracker.add(this.$playerElement,this.parameters["scroll-pause"],e.proxy(function(){this.setState("scroll",!0,!0)},this),e.proxy(function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)},this)):this.setState("scroll",!0,!0)},i.prototype.onResize=function(){var e=100,t=this.$playerElement.parent(),i=t.width(),s=t.height()+e,r=16/9,n={width:i,height:s,marginTop:0};n[n2const.rtl.marginLeft]=0,i/s>r?(n.height=i*r,n.marginTop=(s-n.height)/2):(n.width=s*r,n[n2const.rtl.marginLeft]=(i-n.width)/2),this.$playerElement.css(n)},i.prototype.initAutoplay=function(){this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(t,i,s,r){e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))>=0?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)},this)),e.inArray(this.slide,this.slider.getVisibleSlides())>=0&&(this.setState("play",!0),this.setState("slide",!0,!0)))},i.prototype.setState=function(e,t,i){i=i||!1,this.state[e]=t,i&&(this.state.play&&this.state.slide&&this.state.scroll?this.play():this.pause())},i.prototype.play=function(){this.isStopped()&&(this.slider.sliderElement.trigger("mediaStarted",this.playerId),this.player.playVideo())},i.prototype.pause=function(){this.isStopped()||this.player.pauseVideo()},i.prototype.stop=function(){this.player.stopVideo()},i.prototype.isStopped=function(){var e=this.player.getPlayerState();switch(e){case-1:case 0:case 2:case 5:return!0;default:return!1}},i.prototype.setVolume=function(e){this.player.setVolume(100*e)},i}),N2D("smartslider-frontend");
|
1 |
+
(function(){var e=this;e.N2_=e.N2_||{r:[],d:[]},e.N2R=e.N2R||function(){e.N2_.r.push(arguments)},e.N2D=e.N2D||function(){e.N2_.d.push(arguments)}}).call(window),N2D("SmartSliderBackgrounds",function(e,t){function i(t){this.device=null,this.slider=t,this.lazyLoad=t.parameters.lazyLoad,this.lazyLoadNeighbor=t.parameters.lazyLoadNeighbor,this.deviceDeferred=e.Deferred(),this.slider.sliderElement.one("SliderDevice",e.proxy(this.onSlideDeviceChangedFirst,this)),this.slider.sliderElement.on("visibleSlidesChanged",e.proxy(this.onVisibleSlidesChanged,this)),this.slider.sliderElement.on("slideCountChanged",e.proxy(this.onVisibleSlidesChanged,this))}return i.prototype.whenWithProgress=function(t){for(var i=0,s=e.Deferred(),r=0;r<t.length;r++)e.when(t[r]).done(function(){s.notify(++i,t.length)});return e.when.apply(e,t).done(function(){s.resolveWith(null,arguments)}),s},i.prototype.getBackgroundImages=function(){for(var e=[],t=0;t<this.slider.realSlides.length;t++)e.push(this.slider.realSlides[t].background);return e},i.prototype.onVisibleSlidesChanged=function(){1==this.lazyLoad?this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide)):2==this.lazyLoad&&(this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide)))},i.prototype.onSlideDeviceChangedFirst=function(t,i){this.onSlideDeviceChanged(t,i),this.deviceDeferred.resolve(),this.slider.sliderElement.on("SliderDevice",e.proxy(this.onSlideDeviceChanged,this)),this.preLoadSlides=this._preLoadSlides,1==this.lazyLoad?(this.preLoadSlides=this.preloadSlidesLazyNeighbor,this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide))):2==this.lazyLoad?(e(window).on("load",e.proxy(this.preLoadAll,this)),this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide))):this.load=this.whenWithProgress(this.preLoadAll())},i.prototype.onSlideDeviceChanged=function(e,t){this.device=t;for(var i=0;i<this.slider.realSlides.length;i++)this.slider.realSlides[i].background&&this.slider.realSlides[i].background.updateBackgroundToDevice(t)},i.prototype.preLoadAll=function(){for(var e=[],t=0;t<this.slider.realSlides.length;t++)e.push(this.slider.realSlides[t].preLoad());return e},i.prototype._preLoadSlides=function(t){var i=[];"[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]);for(var s=0;s<t.length;s++)i.push(t[s].preLoad());return e.when.apply(e,i)},i.prototype.preloadSlidesLazyNeighbor=function(t){var i=[this._preLoadSlides(t)];if(this.lazyLoadNeighbor)for(var s=0,r=t[0].previousSlide,n=t[t.length-1].nextSlide;s<this.lazyLoadNeighbor;)i.push(r.preLoad()),r=r.previousSlide,i.push(n.preLoad()),n=n.nextSlide,s++;var a=e.Deferred();if("resolved"!=i[0].state()){var o=setTimeout(e.proxy(function(){this.slider.load.showSpinner("backgroundImage"+t[0].index),o=null},this),50);e.when.apply(e,i).done(e.proxy(function(){o?(clearTimeout(o),o=null):this.slider.load.removeSpinner("backgroundImage"+t[0].index),setTimeout(function(){a.resolve()},100)},this))}else setTimeout(function(){a.resolve()},100);return a},i.prototype.hack=function(){for(var e=0;e<this.slider.realSlides.length;e++)this.slider.realSlides[e].background&&this.slider.realSlides[e].background.hack()},i}),N2D("SmartSliderLoad",function(e,t){function i(t,i){this.parameters=e.extend({fade:1,scroll:0},i),this.deferred=e.Deferred(),this.smartSlider=t,this.spinnerCouner=0,this.id=t.sliderElement.attr("id"),this.$window=e(window),this.spinner=e("#"+this.id+"-spinner")}return i.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.backgrounds.load.progress(e.proxy(function(e,t){i.html(Math.round(e/(t+1)*100)+"%")},this)),this.showSlider()}else this.showSlider()},i.prototype.onScroll=function(){this.$window.scrollTop()+this.$window.height()>this.smartSlider.sliderElement.offset().top+100&&(this.$window.off("scroll."+this.id),this.showSlider())},i.prototype.loadLayerImages=function(){var t=e.Deferred();return this.smartSlider.sliderElement.find(".n2-ss-layers-container").n2imagesLoaded().always(function(){t.resolve()}),t},i.prototype.showSlider=function(){e.when(this.smartSlider.responsive.ready,this.smartSlider.backgrounds.load,this.loadLayerImages()).always(e.proxy(function(){this._showSlider()},this))},i.prototype._showSlider=function(t){this.smartSlider.responsive.isReadyToResize=!0,e.when.apply(e,this.smartSlider.widgetDeferreds).done(e.proxy(function(){this.smartSlider.responsive.invalidateResponsiveState=!0,this.smartSlider.responsive.doResize(),this.smartSlider.mainAnimation&&this.smartSlider.mainAnimation.setToStarterSlide(this.smartSlider.starterSlide),this.smartSlider.starterSlide.setStarterSlide(),this.smartSlider.sliderElement.trigger("BeforeVisible"),this.smartSlider.responsive.alignElement.addClass("n2-ss-align-visible"),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))},i.prototype.loaded=function(e){this.deferred.done(e)},i.prototype.showSpinner=function(e){0===this.spinnerCouner&&this.spinner.appendTo(this.loadingArea).css("display",""),this.spinnerCouner++},i.prototype.removeSpinner=function(e){this.spinnerCouner--,this.spinnerCouner<=0&&(this.spinner.detach(),this.spinnerCouner=0)},i}),N2D("ScrollTracker",function(e,t,i){function s(){this.started=!1,this.items=[]}return s.prototype.add=function(e,t,i,s){var r={$el:e,mode:t,onVisible:i,onHide:s,state:"unknown"};this.items.push(r),this._onScroll(r,Math.max(document.documentElement.clientHeight,window.innerHeight)),this.started||this.start()},s.prototype.start=function(){this.started||(e(window).on("scroll.scrollTracker",e.proxy(this.onScroll,this)),this.started=!0)},s.prototype.onScroll=function(e){for(var t=Math.max(document.documentElement.clientHeight,window.innerHeight),i=0;i<this.items.length;i++)this._onScroll(this.items[i],t)},s.prototype._onScroll=function(e,t){var i=e.$el[0].getBoundingClientRect(),s=i.height>.7*t,r=!0;"partly-visible"===e.mode?s&&(i.bottom<0||i.top>=i.height)?r=!1:!s&&(i.bottom-i.height<0||i.top-t+i.height>=0)&&(r=!1):"not-visible"===e.mode&&(r=i.top-t<0&&i.top+i.height>0),r===!1?"hidden"!==e.state&&("function"==typeof e.onHide&&e.onHide(),e.state="hidden"):"visible"!==e.state&&("function"==typeof e.onVisible&&e.onVisible(),e.state="visible")},new s}),N2D("SmartSliderApi",function(e,t){function i(){this.sliders={},this.readys={},this._resetCounters=[]}return i.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)},i.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))},i.prototype.trigger=function(t,i){var s=e(t),r=i.split(","),n=s.closest(".n2-ss-slide,.n2-ss-static-slide");if(r.length>1){-1==e.inArray(t,this._resetCounters)&&(this._resetCounters.push(t),n.on("layerAnimationSetStart.resetCounter",function(){s.data("eventCounter",0)}));var a=s.data("eventCounter")||0;i=r[a],a++,a>r.length-1&&(a=0),s.data("eventCounter",a)}n.triggerHandler("ss"+i)},i.prototype.applyAction=function(t,i){var s=e(t).closest(".n2-ss-slider").data("ss");s[i].apply(s,Array.prototype.slice.call(arguments,2))},i.prototype.applyActionWithClick=function(){nextend.shouldPreventClick||this.applyAction.apply(this,arguments)},window.n2ss=new i,i}),N2D("SmartSliderAbstract",function($,undefined){function SmartSliderAbstract(e,t){this.editor=null,this.startedDeferred=$.Deferred(),this.visibleDeferred=$.Deferred(),e instanceof $&&(e="#"+e.attr("id"));var i=e.substr(1);if(this.elementID=i,window[i]&&window[i]instanceof SmartSliderAbstract){if(window[i].sliderElement===undefined)return void console.error("Slider [#"+i+"] inited multiple times");if($.contains(document.body,window[i].sliderElement.get(0)))return void console.error("Slider [#"+i+"] embedded multiple times")}this.readyDeferred=$.Deferred(),N2D(e,$.proxy(function(){return this},this)),this.isAdmin=!!t.admin,this.id=parseInt(i.replace("n2-ss-","")),window[i]=this,t.isDelayed!==undefined&&t.isDelayed?$(window).ready($.proxy(function(){this.waitForExists(i,t)},this)):this.waitForExists(i,t)}return SmartSliderAbstract.prototype.kill=function(){this.killed=!0;var e=this.sliderElement.attr("id"),t=$("#"+e+"-placeholder");t.length?t.remove():N2R("documentReady",function(t){t("#"+e+"-placeholder").remove()});var i=this.sliderElement.closest(".n2-ss-margin");i.length?i.remove():N2R("documentReady",$.proxy(function(e){this.sliderElement.closest(".n2-ss-margin").remove()},this));var s=this.sliderElement.closest(".n2-ss-align");s.length?s.remove():N2R("documentReady",$.proxy(function(e){this.sliderElement.closest(".n2-ss-align").remove()},this))},SmartSliderAbstract.prototype.waitForExists=function(e,t){var i=$.Deferred(),s=function(){var t=$("#"+e);t.length?i.resolve(t):setTimeout(s,500)};i.done($.proxy(this.onSliderExists,this,e,t)),s()},SmartSliderAbstract.prototype.onSliderExists=function(e,t,i){if("SCRIPT"===i.prop("tagName")){var s=i.data("dependency"),r=i.data("delay"),n=$.proxy(function(){var s=$(i.html().replace(/^\/\*<!\[CDATA\[\*\/(.*)\/\*\]\]>\*\/$/,function(e,t){return t}).replace(/<_s_c_r_i_p_t/g,"<script").replace(/<_\/_s_c_r_i_p_t/g,"</script"));i.replaceWith(s),this.waitForDimension($("#"+e),t),$(window).triggerHandler("n2Rocket",[this.sliderElement])},this);s&&$("#n2-ss-"+s).length?n2ss.ready(s,$.proxy(function(e){e.ready(n)},this)):r?setTimeout(n,r):n()}else this.waitForDimension(i,t)},SmartSliderAbstract.prototype.waitForDimension=function(e,t){var i=$.Deferred(),s=function(){var t=e.is(":visible");t?i.resolve():setTimeout(s,200)};s(),i.done($.proxy(this.onSliderHasDimension,this,e,t))},SmartSliderAbstract.prototype.initCSS=function(){this.parameters.css&&$('<style type="text/css">'+this.parameters.css+"</style>").appendTo("head")},SmartSliderAbstract.prototype.onSliderHasDimension=function($sliderElement,parameters){if(this.killed=!1,n2const.isIE&&$sliderElement.attr("data-ie",n2const.isIE),this.responsive=!1,this.mainAnimationLastChangeTime=0,this.currentSlide=null,this.currentRealSlide=null,this.staticSlide=!1,this.isShuffled=!1,this.slides=[],this.visibleSlides=1,this.sliderElement=$sliderElement.data("ss",this),this.needBackgroundWrap=!1,this.parameters=$.extend({admin:!1,playWhenVisible:1,playWhenVisibleAt:.5,perspective:1e3,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:[],allowBGImageAttachmentFixed:1,backgroundParallax:{strength:0,tablet:0,mobile:0},particlejs:0},parameters),this.disableLayerAnimations=!1,!(this.isAdmin||parameters.responsive.desktop&¶meters.responsive.tablet&¶meters.responsive.mobile)){var md=new MobileDetect(window.navigator.userAgent,801),isTablet=!!md.tablet(),isMobile=!!md.phone();if(!parameters.responsive.mobile&&isMobile||!parameters.responsive.tablet&&isTablet||!parameters.responsive.desktop&&!isTablet&&!isMobile)return void this.kill()}this.initCSS(),this.firstSlideReady=$.Deferred();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.changeTo=function(){}),this.load=new N2Classes.SmartSliderLoad(this,this.parameters.load),this.backgrounds=new N2Classes.SmartSliderBackgrounds(this),this.__initSlides(),$.when(this.overrideFirstSlide()).done($.proxy(this.onFirstSlideInitialized,this)),navigator.userAgent.match("UCBrowser")&&$("html").addClass("n2-ucbrowser")},SmartSliderAbstract.prototype.overrideFirstSlide=function(){if("undefined"!=typeof window["ss"+this.id]){if("object"==typeof window["ss"+this.id])return window["ss"+this.id].done($.proxy(function(e){null!==e&&this.changeActiveBeforeLoad(e)},this));var e="undefined"!=typeof window["ss"+this.id]?parseInt(window["ss"+this.id]):null;null!==e&&this.changeActiveBeforeLoad(e)}else if(!this.isAdmin&&this.parameters.maintainSession&&"undefined"!=typeof sessionStorage){var t=sessionStorage.getItem("ss-"+this.id);null!==t&&this.changeActiveBeforeLoad(parseInt(t)),this.sliderElement.on("mainAnimationComplete",$.proxy(function(e,t,i,s){sessionStorage.setItem("ss-"+this.id,s)},this))}return!0},SmartSliderAbstract.prototype.changeActiveBeforeLoad=function(e){e>0&&e<this.realSlides.length&&this.starterSlide!==this.realSlides[e]&&(this.unsetActiveSlide(this.starterSlide),this.starterSlide=this.realSlides[e],this.setActiveSlide(this.realSlides[e]))},SmartSliderAbstract.prototype.startCurrentSlideIndex=function(){this.currentRealSlide=this.currentSlide=this.starterSlide,this.setActiveSlide(this.currentSlide),parseInt(this.parameters.carousel)?this.initCarousel():this.initNotCarousel()},SmartSliderAbstract.prototype.onFirstSlideInitialized=function(){for(var i=0;i<this.realSlides.length;i++)this.realSlides[i].setNext(this.realSlides[i+1>this.realSlides.length-1?0:i+1]);this.startCurrentSlideIndex(),this.firstSlideReady.resolve(this.currentSlide);for(var j=0;j<this.parameters.initCallbacks.length;j++)new Function("$",this.parameters.initCallbacks[j]).call(this,$);if(this.widgets=new N2Classes.SmartSliderWidgets(this),this.sliderElement.on({universalenter:$.proxy(function(e){$(e.target).closest(".n2-full-screen-widget").length||(this.sliderElement.addClass("n2-hover"),this.widgets.setState("hover",!0))},this),universalleave:$.proxy(function(e){e.stopPropagation(),this.sliderElement.removeClass("n2-hover"),this.widgets.setState("hover",!1)},this)}),this.controls={},this.parameters.blockrightclick&&this.sliderElement.bind("contextmenu",function(e){e.preventDefault()}),this.initMainAnimation(),this.initResponsiveMode(),!this.killed){try{var removeHoverClassCB=$.proxy(function(){this.sliderElement.removeClass("n2-has-hover"),this.sliderElement[0].removeEventListener("touchstart",removeHoverClassCB,window.n2const.passiveEvents?{passive:!0}:!1)},this);this.sliderElement[0].addEventListener("touchstart",removeHoverClassCB,window.n2const.passiveEvents?{passive:!0}:!1)}catch(e){}if(this.initControls(),this.startedDeferred.resolve(this),!this.isAdmin){var event="click";this.hasTouch()&&(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"))})}),window.n2FocusAllowed===undefined&&(window.n2FocusAllowed=!1,$(window).on({keydown:function(){window.n2FocusAllowed=!0},keyup:function(){window.n2FocusAllowed=!1}})),this.sliderElement.find("a").on({focus:$.proxy(function(e){if(n2FocusAllowed){var t=this.findSlideByElement(e.currentTarget);t&&t!==this.currentRealSlide&&this.directionalChangeToReal(t.index)}},this)})}this.preReadyResolve(),this.sliderElement.find('[role="button"],[tabindex]').not("input,select,textarea").keypress(function(e){32!==e.charCode&&13!==e.charCode||(e.preventDefault(),$(e.target).click())}).on("mouseleave",function(e){$(e.currentTarget).blur()})}},SmartSliderAbstract.prototype.__initSlides=function(){for(var e=this.sliderElement.find(".n2-ss-slide"),t=0;t<e.length;t++)this.slides.push(new N2Classes.FrontendSliderSlide(this,e.eq(t),t));this.starterSlide=this.slides[0];for(var t=0;t<this.slides.length;t++)this.slides[t].init(),1==this.slides[t].$element.data("first")&&(this.starterSlide=this.slides[t]);this.realSlides=this.slides,this.afterRawSlidesReady(),this.randomize(this.slides);var i=this.sliderElement.find(".n2-ss-static-slide");i.length&&(this.staticSlide=new N2Classes.FrontendSliderStaticSlide(this,i))},SmartSliderAbstract.prototype.afterRawSlidesReady=function(){},SmartSliderAbstract.prototype.setVisibleSlides=function(e){e!==this.visibleSlides&&(this.visibleSlides=e,this.sliderElement.triggerHandler("visibleSlidesChanged"))},SmartSliderAbstract.prototype.getVisibleSlides=function(e){return 0===arguments.length&&(e=this.currentSlide),[e]},SmartSliderAbstract.prototype.findSlideBackground=function(e){return e.$element.find(".n2-ss-slide-background")},SmartSliderAbstract.prototype.getRealIndex=function(e){return e},SmartSliderAbstract.prototype.randomize=function(e){this.randomizeFirst(),this.parameters.randomize.randomize&&this.shuffleSlides(e)},SmartSliderAbstract.prototype.randomizeFirst=function(){this.parameters.randomize.randomizeFirst&&(this.unsetActiveSlide(this.starterSlide),this.starterSlide=this.realSlides[Math.floor(Math.random()*this.realSlides.length)],this.setActiveSlide(this.starterSlide))},SmartSliderAbstract.prototype.shuffleSlides=function(e){e.sort(function(){return.5-Math.random()});for(var t=e[0].$element.parent(),i=0;i<e.length;i++)e[i].$element.appendTo(t),e[i].setIndex(i);this.isShuffled=!0},SmartSliderAbstract.prototype.addWidget=function(e,t){this.widgetDeferreds.push(t)},SmartSliderAbstract.prototype.started=function(e){this.startedDeferred.done($.proxy(e,this))},SmartSliderAbstract.prototype.preReadyResolve=function(){setTimeout($.proxy(this._preReadyResolve,this),1)},SmartSliderAbstract.prototype._preReadyResolve=function(){this.load.start(),this.load.loaded($.proxy(this.readyResolve,this))},SmartSliderAbstract.prototype.readyResolve=function(){$(window).scroll(),this.readyDeferred.resolve()},SmartSliderAbstract.prototype.ready=function(e){this.readyDeferred.done($.proxy(e,this))},SmartSliderAbstract.prototype.startVisibilityCheck=function(){!this.isAdmin&&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))},SmartSliderAbstract.prototype.checkIfVisible=function(){var e=this.parameters.playWhenVisibleAt,t=$(window).scrollTop(),i=$(window).height(),s=$(document).height(),r=this.sliderElement[0].getBoundingClientRect(),n=i*e/2,a=t+n,o=t+i-n;n>t&&(a*=t/n),t+i>s-n&&(o+=t+i-s+n);var l=t+r.top,h=t+r.bottom;(this.isAdmin||o>=l&&l>=a||h>=a&&o>=h||a>=l&&h>=o)&&($(window).off(".n2-ss-visible"+this.id),this.visibleDeferred.resolve())},SmartSliderAbstract.prototype.visible=function(e){this.visibleDeferred.done($.proxy(e,this))},SmartSliderAbstract.prototype.isPlaying=function(){return"ended"!==this.mainAnimation.getState()},SmartSliderAbstract.prototype.focus=function(e){var t=$.Deferred();if(e===undefined&&(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?(window.nextendScrollFocus=!0,$("html, body").animate({scrollTop:i},400,$.proxy(function(){t.resolve(),setTimeout(function(){window.nextendScrollFocus=!1},300)},this))):t.resolve()}else t.resolve();return t},SmartSliderAbstract.prototype.initNotCarousel=function(){this.next=function(e,t){var i=this.currentSlide.index+1;return i<this.slides.length?this.changeTo(i,!1,e,t):!1},this.previous=function(e,t){var i=this.currentSlide.index-1;return i>=0?this.changeTo(i,!0,e,t):!1},this.isChangePossible=function(e){var t=!1;return"next"===e?(t=this.currentSlide.index+1,t>=this.slides.length&&(t=!1)):"previous"===e&&(t=this.currentSlide.index-1,0>t&&(t=!1)),t!==!1&&t!==this.currentSlide.index};var e=$.proxy(function(e){0===e?this.widgets.setState("nonCarouselFirst",!0):this.widgets.setState("nonCarouselFirst",!1),e===this.slides.length-1?this.widgets.setState("nonCarouselLast",!0):this.widgets.setState("nonCarouselLast",!1)},this);this.startedDeferred.done($.proxy(function(){e(this.currentSlide.index)},this)),this.sliderElement.on("sliderSwitchTo",function(t,i){e(i)})},SmartSliderAbstract.prototype.isChangePossibleCarousel=function(e){var t=!1;return"next"===e?(t=this.currentSlide.index+1,t>=this.slides.length&&(t=0)):"previous"===e&&(t=this.currentSlide.index-1,0>t&&(t=this.slides.length-1)),t!==!1&&t!==this.currentSlide.index},SmartSliderAbstract.prototype.initCarousel=function(){this.next=this.nextCarousel,this.previous=this.previousCarousel,this.isChangePossible=this.isChangePossibleCarousel},SmartSliderAbstract.prototype.nextCarousel=function(e,t){var i=this.currentSlide.index+1;return i>=this.slides.length&&(i=0),this.changeTo(i,!1,e,t)},SmartSliderAbstract.prototype.previousCarousel=function(e,t){var i=this.currentSlide.index-1;return 0>i&&(i=this.slides.length-1),this.changeTo(i,!0,e,t)},SmartSliderAbstract.prototype.directionalChangeToReal=function(e){this.directionalChangeTo(e)},SmartSliderAbstract.prototype.directionalChangeTo=function(e){e>this.currentSlide.index?this.changeTo(e,!1):this.changeTo(e,!0)},SmartSliderAbstract.prototype.changeTo=function(e,t,i,s){if(e=parseInt(e),e!==this.currentSlide.index){this.sliderElement.trigger("sliderSwitchTo",[e,this.getRealIndex(e)]);var r=$.now();return $.when(this.backgrounds.preLoadSlides(this.getVisibleSlides(this.slides[e])),this.focus(i)).done($.proxy(function(){if(this.mainAnimationLastChangeTime<=r){this.mainAnimationLastChangeTime=r;var n=this.mainAnimation.getState();if("ended"===n){"undefined"==typeof i&&(i=!1);var a=this.mainAnimation;"undefined"!=typeof s&&(a=s),this._changeTo(e,t,i,s),a.changeTo(this.currentSlide,this.slides[e],t,i),this._changeCurrentSlide(e)}else"playing"===n&&(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},SmartSliderAbstract.prototype._changeCurrentSlide=function(e){this.currentRealSlide=this.currentSlide=this.slides[e]},SmartSliderAbstract.prototype._changeTo=function(e,t,i,s){},SmartSliderAbstract.prototype.revertTo=function(e,t){this.unsetActiveSlide(this.slides[t]),this.setActiveSlide(this.slides[e]),this._changeCurrentSlide(e),this.sliderElement.trigger("sliderSwitchTo",[e,this.getRealIndex(e)])},SmartSliderAbstract.prototype.setActiveSlide=function(e){e.$element.addClass("n2-ss-slide-active")},SmartSliderAbstract.prototype.unsetActiveSlide=function(e){e.$element.removeClass("n2-ss-slide-active")},SmartSliderAbstract.prototype.findSlideByElement=function(e){e=$(e);for(var t=0;t<this.realSlides.length;t++)if(1===this.realSlides[t].$element.has(e).length)return this.realSlides[t];return!1},SmartSliderAbstract.prototype.findSlideIndexByElement=function(e){var t=this.findSlideByElement(e);return t?t:-1},SmartSliderAbstract.prototype.initMainAnimation=function(){this.mainAnimation=!1},SmartSliderAbstract.prototype.initResponsiveMode=function(){this.dimensions=this.responsive.responsiveDimensions},SmartSliderAbstract.prototype.hasTouch=function(){return"0"!=this.parameters.controls.touch&&this.slides.length>1},SmartSliderAbstract.prototype.initControls=function(){this.parameters.admin||(this.hasTouch()&&new N2Classes.SmartSliderControlTouch(this,this.parameters.controls.touch,{fallbackToMouseEvents:this.parameters.controls.drag}),this.parameters.controls.keyboard&&("undefined"!=typeof this.controls.touch?new N2Classes.SmartSliderControlKeyboard(this,this.controls.touch._direction.axis):new N2Classes.SmartSliderControlKeyboard(this,"horizontal")),this.parameters.controls.scroll&&new N2Classes.SmartSliderControlScroll(this),this.parameters.controls.tilt&&new N2Classes.SmartSliderControlTilt(this),this.controlAutoplay=new N2Classes.SmartSliderControlAutoplay(this,this.parameters.autoplay),this.controlFullscreen=new N2Classes.SmartSliderControlFullscreen(this))},SmartSliderAbstract.prototype.getSlideIndex=function(e){return e},SmartSliderAbstract.prototype.slideToID=function(e,t){for(var i=0;i<this.realSlides.length;i++)if(this.realSlides[i].id===e)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 r=0;return"undefined"!=typeof n2ScrollOffsetSelector&&(r=$(n2ScrollOffsetSelector).outerHeight()),$("html, body").animate({scrollTop:s.offset().top-r},400),s.data("ss").slideToID(e,t)}},SmartSliderAbstract.prototype.slide=function(e,t){return e>=0&&e<this.slides.length?t===undefined?parseInt(this.parameters.carousel)&&this.currentSlide.index===this.slides.length-1&&0===e?this.next():this.currentSlide.index>e?this.changeTo(e,!0):this.changeTo(e):this.changeTo(e,!t):!1},SmartSliderAbstract.prototype.startAutoplay=function(e){return"undefined"!=typeof this.controlAutoplay?(this.controlAutoplay.pauseAutoplayExtraPlayingEnded(e,"autoplayButton"),!0):!1},SmartSliderAbstract}),N2D("SmartSliderWidgets",function($,undefined){function SmartSliderWidgets(e){this.slider=e,this.sliderElement=e.sliderElement.on("BeforeVisible",$.proxy(this.onReady,this)),this.widgets={},this.excludedSlides={},this.states={hover:!1,nonCarouselFirst:!1,nonCarouselLast:!1,currentSlideIndex:-1,singleSlide:!1},this.widgets={previous:this.sliderElement.find(".nextend-arrow-previous"),next:this.sliderElement.find(".nextend-arrow-next"),bullet:this.sliderElement.find(".n2-ss-control-bullet"),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")}}return SmartSliderWidgets.prototype.setState=function(e,t){if(this.states[e]!=t){this.states[e]=t;var i=e.split(".");switch(i[0]){case"hide":this.onStateChangeSingle(i[1]);break;case"nonCarouselFirst":this.onStateChangeSingle("previous");break;case"nonCarouselLast":this.onStateChangeSingle("next");break;default:this.onStateChangeAll()}}},SmartSliderWidgets.prototype.onStateChangeAll=function(){for(var e in this.widgets)this.onStateChangeSingle(e)},SmartSliderWidgets.prototype.onStateChangeSingle=function(e){if(this.widgets[e].length){var t=!0;if(this.widgets[e].hasClass("n2-ss-widget-display-hover")&&(t=this.states.hover),t&&("previous"===e&&this.states.nonCarouselFirst?t=!1:"next"===e&&this.states.nonCarouselLast&&(t=!1)),t){var i=e+"-"+(this.states.currentSlideIndex+1);this.excludedSlides[i]&&(t=!1)}t&&this.states["hide."+e]!==undefined&&this.states["hide."+e]&&(t=!1),t&&this.states.singleSlide&&("previous"!==e&&"next"!==e&&"bullet"!==e&&"autoplay"!==e&&"indicator"!==e||(t=!1)),this.widgets[e].toggleClass("n2-ss-widget-hidden",!t)}},SmartSliderWidgets.prototype.onReady=function(){this.slider.sliderElement.on("slideCountChanged",$.proxy(function(){this.setState("singleSlide",this.slider.slides.length<=1)},this)),this.dimensions=this.slider.dimensions,this.$vertical=this.sliderElement.find('[data-position="above"],[data-position="below"]').not(".nextend-shadow");var e=!1;for(var t in this.widgets){var i=this.widgets[t].attr("data-exclude-slides");if(i!==undefined){for(var s=i.split(","),r=s.length-1;r>=0;r--){var n=s[r].split("-");if(2===n.length){var a=parseInt(n[0]),o=parseInt(n[1]);if(o>=a)for(var l=a;o>=l;l++)s.push(l)}else s[r]=parseInt(s[r])}if(s.length>0){for(var r=0;r<s.length;r++)this.excludedSlides[t+"-"+s[r]]=!0;e=!0}}}if(e){var h=$.proxy(function(e,t){this.setState("currentSlideIndex",t)},this);h(null,this.slider.currentRealSlide.index),this.slider.sliderElement.on({sliderSwitchTo:h})}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.onStateChangeAll()},SmartSliderWidgets.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))}}},SmartSliderWidgets.prototype.onResize=function(e,ratios,responsive,timeline){if(!timeline){
|
2 |
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()}},SmartSliderWidgets}),N2D("SmartSliderMainAnimationAbstract",function(e,t){function i(t,i){this.state="ended",this.isTouch=!1,this.isReverseAllowed=!0,this.isReverseEnabled=!1,this.reverseSlideIndex=null,this.isNoAnimation=!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._revertCurrentSlideIndex=i,this._revertNextSlideIndex=s},this))}return i.prototype.setToStarterSlide=function(e){},i.prototype.enableReverseMode=function(){this.isReverseEnabled=!0,this.reverseTimeline=new NextendTimeline({paused:!0}),this.sliderElement.triggerHandler("reverseModeEnabled",this.reverseSlideIndex)},i.prototype.disableReverseMode=function(){this.isReverseEnabled=!1},i.prototype.setTouch=function(e){this.isTouch=e},i.prototype.setTouchProgress=function(e){this.isReverseEnabled?this._setTouchProgressWithReverse(e):this._setTouchProgress(e)},i.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))},i.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)))},i.prototype.setTouchEnd=function(e,t,i){"ended"!=this.state&&(this.isReverseEnabled?this._setTouchEndWithReverse(e,t,i):this._setTouchEnd(e,t,i))},i.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._revertCurrentSlideIndex,this._revertNextSlideIndex))},i.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._revertNextSlideIndex)):(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._revertCurrentSlideIndex,this._revertNextSlideIndex))},i.prototype.fixTouchDuration=function(e,t,i){var s=e.totalDuration(),r=Math.max(s/3,Math.min(s,i/Math.abs(t)/1e3));r!=s&&e.totalDuration(r)},i.prototype.getState=function(){return this.state},i.prototype.timeScale=function(){return arguments.length>0?(this.timeline.timeScale(arguments[0]),this):this.timeline.timeScale()},i.prototype.changeTo=function(t,i,s,r){if(this._initAnimation(t,i,s),this.state="initAnimation",this.timeline.paused(!0),this.timeline.eventCallback("onStart",this.onChangeToStart,[t,i,r],this),this.timeline.eventCallback("onComplete",this.onChangeToComplete,[t,i,r],this),this.timeline.eventCallback("onReverseComplete",null),this.revertCB=e.proxy(function(e){e.eventCallback("onReverseComplete",this.onReverseChangeToComplete,[i,t,r],this)},this),this.slider.parameters.dynamicHeight){var n=new NextendTimeline;this.slider.responsive.doResize(null,n,i,.6),this.timeline.add(n)}this.isTouch||this.timeline.play()},i.prototype.willRevertTo=function(t,i){this.sliderElement.triggerHandler("mainAnimationWillRevertTo",[t,i]),this.sliderElement.one("mainAnimationComplete",e.proxy(this.revertTo,this,t,i))},i.prototype.revertTo=function(e,t){this.slider.revertTo(e,t),this.slider.slides[t].triggerHandler("mainAnimationStartInCancel")},i.prototype.willCleanSlideIndex=function(t){this.sliderElement.one("mainAnimationComplete",e.proxy(this.cleanSlideIndex,this,t))},i.prototype.cleanSlideIndex=function(){},i.prototype._initAnimation=function(e,t,i){},i.prototype.onChangeToStart=function(e,t,i){this.state="playing";var s=[this,e.index,t.index,i];this.sliderElement.trigger("mainAnimationStart",s),this.slider.slides[e.index].trigger("mainAnimationStartOut",s),this.slider.slides[t.index].trigger("mainAnimationStartIn",s)},i.prototype.onChangeToComplete=function(e,t,i){var s=[this,e.index,t.index,i];this.clearTimelines(),this.disableReverseMode(),this.slider.slides[e.index].trigger("mainAnimationCompleteOut",s),this.slider.slides[t.index].trigger("mainAnimationCompleteIn",s),this.state="ended",this.sliderElement.trigger("mainAnimationComplete",s)},i.prototype.onReverseChangeToComplete=function(e,t,s){i.prototype.onChangeToComplete.apply(this,arguments)},i.prototype.clearTimelines=function(){this.revertCB=function(){},this.timeline.clear(),this.timeline.timeScale(1)},i.prototype.getEase=function(){return this.isTouch?"linear":this.parameters.ease},i}),N2D("SmartSliderControlAutoplay",function(e,t){"use strict";function i(t,i){this._paused=!0,this._wait=!1,this._disabled=!1,this._currentCount=0,this._progressEnabled=!1,this.timeline=null,this.hasButton=!1,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 s=!1;return i.prototype.onReady=function(){this.autoplayDeferred=e.Deferred();var t={_progress:0};this.timeline=NextendTween.to(t,this.getSlideDuration(this.slider.currentSlide.index),{_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(){s=!0,setTimeout(function(){s=!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":this.hasButton&&"0"!=this.parameters.pause.mouse?i.on("mouseenter.autoplay",e.proxy(this.continueAutoplay,this)):i.on("mouseenter.autoplay",e.proxy(function(e){this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton")},this));break;case"leave":this.hasButton&&"0"!=this.parameters.pause.mouse?i.on("mouseleave.autoplay",e.proxy(this.continueAutoplay,this)):i.on("mouseleave.autoplay",e.proxy(function(e){this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton")},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))},i.prototype.enableProgress=function(){this.timeline&&this.timeline.eventCallback("onUpdate",e.proxy(this.onUpdate,this)),this._progressEnabled=!0},i.prototype.onMainAnimationStart=function(t,i,s,r,n){this.mainAnimationDeferred=e.Deferred(),this.deActivate(0,"wait");for(var a in this.deferredsMediaPlaying)this.deferredsMediaPlaying[a].resolve()},i.prototype.onMainAnimationComplete=function(e,t,i,s){this.parameters.autoplayToSlideIndex>=0&&this.parameters.autoplayToSlideIndex==this.slider.currentRealSlide.index+1&&this.limitAutoplay(),this.timeline.duration(this.getSlideDuration(s)),this.mainAnimationDeferred.resolve(),this.continueAutoplay()},i.prototype.getSlideDuration=function(e){var t=this.slider.realSlides[this.slider.getRealIndex(e)],i=t.minimumSlideDuration;return 0==i&&(i=this.parameters.duration),i},i.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]);this.deferredMouseEnter&&i.push(this.deferredMouseEnter),this.deferredMouseLeave&&i.push(this.deferredMouseLeave),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))},i.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))},i.prototype.pauseAutoplayUniversal=function(e){this.pauseAutoplayExtraPlaying(e,"autoplayButton"),this.deActivate(null,"pause")},i.prototype.pauseAutoplayMouseEnter=function(){s||(this.autoplayDeferred.reject(),this.deferredMouseEnter=e.Deferred(),this.deActivate(null,"leave"==this.parameters.resume.mouse?"wait":"pause"))},i.prototype.pauseAutoplayMouseEnterEnded=function(){this.deferredMouseEnter&&this.deferredMouseEnter.resolve()},i.prototype.pauseAutoplayMouseLeave=function(){this.autoplayDeferred.reject(),this.deferredMouseLeave=e.Deferred(),this.deActivate(null,"enter"==this.parameters.resume.mouse?"wait":"pause")},i.prototype.pauseAutoplayMouseLeaveEnded=function(){this.deferredMouseLeave&&this.deferredMouseLeave.resolve()},i.prototype.pauseAutoplayMediaPlaying=function(t,i){"undefined"!=typeof this.deferredsMediaPlaying[i]&&this.autoplayDeferred.reject(),this.deferredsMediaPlaying[i]=e.Deferred(),this.deActivate(null,"wait")},i.prototype.pauseAutoplayMediaPlayingEnded=function(e,t){"undefined"!=typeof this.deferredsMediaPlaying[t]&&(this.autoplayDeferred.reject(),this.deferredsMediaPlaying[t].resolve(),delete this.deferredsMediaPlaying[t])},i.prototype.pauseAutoplayExtraPlaying=function(t,i){"undefined"!=typeof this.deferredsExtraPlaying[i]&&this.autoplayDeferred.reject(),this.deferredsExtraPlaying[i]=e.Deferred(),this.deActivate(null,"pause")},i.prototype.pauseAutoplayExtraPlayingEnded=function(e,t){"undefined"!=typeof this.deferredsExtraPlaying[t]&&(this.autoplayDeferred.reject(),this.deferredsExtraPlaying[t].resolve(),delete this.deferredsExtraPlaying[t]),this.continueAutoplay()},i.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)},i.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},i.prototype.startTimeout=function(e){this._paused||this._disabled||this.timeline.play(e)},i.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.currentRealSlide.index+2)&&this.limitAutoplay(),this.slider.nextCarousel(!0)},i.prototype.limitAutoplay=function(){this.parameters.allowReStart?(this._currentCount=0,this.slider.sliderElement.triggerHandler("autoplayExtraWait","autoplayButton")):this.disable()},i.prototype.onUpdate=function(){this.slider.sliderElement.triggerHandler("autoplay",this.timeline.progress())},i}),N2D("SmartSliderControlFullscreen",function(e,t){"use strict";function i(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 r=this.slider.sliderElement[0];r.requestFullscreen?(this.browserSpecific.requestFullscreen="requestFullscreen",this.browserSpecific.event="fullscreenchange"):r.msRequestFullscreen?(this.browserSpecific.requestFullscreen="msRequestFullscreen",this.browserSpecific.event="MSFullscreenChange"):r.mozRequestFullScreen?(this.browserSpecific.requestFullscreen="mozRequestFullScreen",this.browserSpecific.event="mozfullscreenchange"):r.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))}return i.prototype.switchState=function(){this.isFullScreen=!this.isFullScreen,this.isFullScreen?this._fullScreen():this._normalScreen()},i.prototype.requestFullscreen=function(){return this.isFullScreen?!1:(this.isFullScreen=!0,this._fullScreen(),!0)},i.prototype.exitFullscreen=function(){return this.isFullScreen?(this.isFullScreen=!1,this._normalScreen(),!0):!1},i.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]()},i.prototype._fullScreen=function(){this.forceFullpage&&(this.responsive.isFullScreen=!0,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(n2const.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]()},i.prototype._normalScreen=function(){document[this.browserSpecific.exitFullscreen]?document[this.browserSpecific.exitFullscreen]():this.fullParent[0][this.browserSpecific.exitFullscreen]&&this.fullParent[0][this.browserSpecific.exitFullscreen]()},i.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.isFullScreen=!1,this.responsive.parameters.type=this._type,this.responsive.parameters.upscale=this._upscale,this.responsive.parameters.forceFull=this._forceFull,this.responsive.parameters.minimumHeightRatio=this._minimumHeightRatio,this.responsive.parameters.maximumHeightRatio=this._maximumHeightRatio,this.responsive.containerElement.css(n2const.rtl.marginLeft,this._marginLeft),this.fullParent.css({width:"",height:"",backgroundColor:""}).removeClass("n2-ss-in-fullscreen"),e("html").removeClass("n2-in-fullscreen"),e(window).trigger("resize"),this.isFullScreen=!1,this.slider.sliderElement.triggerHandler("n2ExitFullScreen"))},i.prototype.isDocumentInFullScreenMode=function(){return document.fullscreenElement&&null!==document.fullscreenElement||document.msFullscreenElement&&null!==document.msFullscreenElement||document.mozFullScreen||document.webkitIsFullScreen},i}),N2D("SmartSliderControlKeyboard",function(e,t){"use strict";function i(t,s,r){this.slider=t,this.parameters=e.extend({},r),"vertical"==s?this.parseEvent=i.prototype.parseEventVertical:this.parseEvent=i.prototype.parseEventHorizontal,e(document).on("keydown",e.proxy(this.onKeyDown,this)),t.controls.keyboard=this}return i.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()},i.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()))},i.prototype.parseEventHorizontal=function(e){switch(e.keyCode){case 39:return this.slider[n2const.rtl.next](),!0;case 37:return this.slider[n2const.rtl.previous](),!0;default:return!1}},i.prototype.parseEventVertical=function(e){switch(e.keyCode){case 40:return this.slider.next(),!0;case 38:return this.slider.previous(),!0;default:return!1}},i}),N2D("SmartSliderControlScroll",function(e,t){"use strict";function i(t){this.preventScroll=!1,this.preventScrollGlobal=!1,this.slider=t,t.sliderElement.on("DOMMouseScroll mousewheel",e.proxy(this.onMouseWheel,this)),t.controls.scroll=this}return i.prototype.onMouseWheel=function(e){if(this.preventScroll===!1){var t=!1;e.originalEvent&&(e.originalEvent.wheelDelta&&(t=e.originalEvent.wheelDelta/-1<0),e.originalEvent.deltaY&&(t=e.originalEvent.deltaY<0),e.originalEvent.detail&&(t=e.originalEvent.detail<0)),t?this.slider.previous()&&(e.preventDefault(),this.preventRepeat(),this.preventGlobal()):this.slider.next()&&(e.preventDefault(),this.preventRepeat(),this.preventGlobal())}else e.preventDefault(),this.preventRepeat(e)},i.prototype.preventRepeat=function(){this.preventScroll!==!1&&clearTimeout(this.preventScroll),this.preventScroll=setTimeout(e.proxy(function(){this.preventScroll=!1,this.preventScrollGlobal!==!1&&(clearTimeout(this.preventScrollGlobal),this.preventScrollGlobal=!1)},this),200)},i.prototype.preventGlobal=function(){this.preventScrollGlobal!==!1&&clearTimeout(this.preventScrollGlobal),this.preventScrollGlobal=setTimeout(e.proxy(function(){this.preventScroll!==!1&&clearTimeout(this.preventScroll),this.preventScroll=!1},this),2e3)},i}),N2D("SmartSliderControlTilt",function(e,t){"use strict";function i(i,s){return window.DeviceOrientationEvent===t||window.orientation===t?"Not supported":(this.timeout=null,this.slider=i,this.parameters=e.extend({duration:2e3},s),this.orientationchange(),window.addEventListener("orientationchange",e.proxy(this.orientationchange,this)),window.addEventListener("deviceorientation",e.proxy(this.handleOrientation,this),!0),void(i.controls.tilt=this))}return i.prototype.orientationchange=function(){switch(window.orientation){case-90:case 90:this.parseEvent=i.prototype.parseEventHorizontalLandscape;break;default:this.parseEvent=i.prototype.parseEventHorizontal}},i.prototype.clearTimeout=function(){this.timeout=null},i.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())},i.prototype.parseEventHorizontal=function(e){return e.gamma>10?(this.slider.next(),!0):e.gamma<-10?(this.slider.previous(),!0):!1},i.prototype.parseEventHorizontalLandscape=function(e){return e.beta<-10?(this.slider.next(),!0):e.beta>10?(this.slider.previous(),!0):!1},i}),N2D("SmartSliderControlTouch",function(e,t){"use strict";function i(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("> .n2-ss-swipe-element"),"vertical"==i?this.setVertical():"horizontal"==i&&this.setHorizontal();var n=e.proxy(function(){var e=this;this._animation.isNoAnimation?N2Classes.EventBurrito(this.swipeElement.get(0),{mouse:this.parameters.fallbackToMouseEvents,axis:"horizontal"==i?"x":"y",start:function(){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.currentAnimation={direction:o};var l=e.slider.isChangePossible(e._direction[o]);if(!l)return e.currentAnimation=null,!1}if(e.currentAnimation){var h=e._direction.get(s,e.currentAnimation.direction);if(e.logDistance(h),(r||Math.abs(h)>e._direction.minDistance)&&t.cancelable)return r=!0,!0}return!1},end:function(t,i,s,r,n){if(null!==e.currentAnimation){var a=n?0:e.measureRealDirection();a&&e.slider[e._direction[e.currentAnimation.direction]](),e.swipeElement.removeClass("n2-grabbing"),e.currentAnimation=null}Math.abs(s.x)<10&&Math.abs(s.y)<10?e.onTap(t):nextend.preventClick()}}):N2Classes.EventBurrito(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._animation.setTouch(!1),e.currentAnimation=null,!1}if(e.currentAnimation){var h=e._direction.get(s,e.currentAnimation.direction);if(e.logDistance(h),e.currentAnimation.percent<1){var d=Math.max(-.99999,Math.min(.99999,h/e.slider.dimensions.slider[e._property]));e.currentAnimation.percent=d,e._animation.setTouchProgress(d)}if((r||Math.abs(h)>e._direction.minDistance)&&t.cancelable)return r=!0,!0}return!1},end:function(t,i,s,r,n){if(null!==e.currentAnimation){var a=n?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 s=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,r=!1,n=!1;return i.prototype.setHorizontal=function(){this._property="width",this._direction={left:n2const.rtl.next,right:n2const.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}},s&&(this.swipeElement.css("-ms-touch-action","pan-y"),this.swipeElement.css("touch-action","pan-y"))},i.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}},s&&(this.swipeElement.css("-ms-touch-action","pan-x"),this.swipeElement.css("touch-action","pan-x"))},i.prototype.logDistance=function(e){this.distance.length>3&&this.distance.shift(),this.distance.push(e)},i.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},i.prototype.onTap=function(t){n||(e(t.target).trigger("n2click"),n=!0,setTimeout(function(){n=!1},500))},i}),N2D("SmartSliderSlideBackground",function(e,t){function i(t,i,s){if(this.loadStarted=!1,this.types=this.types||{color:"SmartSliderSlideBackgroundColor",image:"SmartSliderSlideBackgroundImage",video:"SmartSliderSlideBackgroundVideo"},this.width=0,this.height=0,this.slide=t,this.element=i,t.slider.needBackgroundWrap){var r=i.find("> *");this.$wrapElement=e('<div class="n2-ss-slide-background-wrap n2-ow" />').appendTo(i).append(r)}else this.$wrapElement=this.element;this.manager=s,this.loadDeferred=e.Deferred(),this.elements={color:!1,image:!1,video:!1},this.currentSrc="",this.mode=i.data("mode"),this.opacity=i.data("opacity"),this.$image=this.element.find("img"),this.$image.length&&(this.elements.image=new N2Classes[this.types.image](t,s,this,this.$image));var n=this.element.find(".n2-ss-slide-background-color");n.length&&(this.elements.color=new N2Classes[this.types.color](this,n));var a=[];for(var o in this.elements)this.elements[o]&&a.push(this.elements[o].getLoadedDeferred());e.when.apply(e,a).then(e.proxy(function(){this.loadDeferred.resolve()},this))}return i.prototype.preLoad=function(){return this.loadStarted||(this.slide.$element.find("[data-lazysrc]").each(function(){var t=e(this);t.attr("src",t.data("lazysrc"))}),this.loadStarted=!0),"pending"===this.loadDeferred.state()&&this.elements.image&&this.elements.image.preLoad(),this.loadDeferred},i.prototype.fadeOut=function(){this.elements.image&&this.elements.image.fadeOut()},i.prototype.hack=function(){NextendTween.set(this.element,{rotation:1e-4})},i.prototype.hasColor=function(){return this.elements.color},i.prototype.hasImage=function(){return this.elements.image},i.prototype.hasVideo=function(){return this.elements.video},i.prototype.hasBackground=function(){return this.elements.color||this.elements.image||this.elements.video},i.prototype.updateBackgroundToDevice=function(e){this.hasImage()&&this.elements.image.updateBackgroundToDevice(e)},i}),N2D("FrontendComponent",function(e,t){function i(e,t,i,s){this.wraps={},this.isVisible=!0,this.device="",this.children=[],this.slide=e,this.parent=t,this.$layer=i.data("layer",this);var r=this.$layer.find("> .n2-ss-layer-mask");r.length&&(this.wraps.mask=r);var n=this.$layer.find("> .n2-ss-layer-parallax");switch(n.length&&(this.wraps.parallax=n),i.data("pm")){case"absolute":this.placement=new N2Classes.FrontendPlacementAbsolute(this);break;case"normal":this.placement=new N2Classes.FrontendPlacementNormal(this);break;case"content":this.placement=new N2Classes.FrontendPlacementContent(this);break;default:this.placement=new N2Classes.FrontendPlacementDefault(this)}if(this.parallax=i.data("parallax"),this.baseSize=this.baseSize||100,this.isAdaptiveFont=this.get("adaptivefont"),this.refreshBaseSize(this.getDevice("fontsize")),s)for(var a=0;a<s.length;a++)switch(s.eq(a).data("sstype")){case"content":this.children.push(new N2Classes.FrontendComponentContent(this.slide,this,s.eq(a)));break;case"row":this.children.push(new N2Classes.FrontendComponentRow(this.slide,this,s.eq(a)));break;case"col":this.children.push(new N2Classes.FrontendComponentCol(this.slide,this,s.eq(a)));break;case"group":break;default:this.children.push(new N2Classes.FrontendComponentLayer(this.slide,this,s.eq(a)))}}return i.prototype.refreshBaseSize=function(e){this.isAdaptiveFont?this.baseSize=16*e/100:this.baseSize=this.parent.baseSize*e/100},i.prototype.start=function(){this.placement.start();for(var e=0;e<this.children.length;e++)this.children[e].start();var t=this.get("rotation")||0;if(t/360!=0){var i=this.addWrap("rotation","<div class='n2-ss-layer-rotation'></div>");NextendTween.set(i[0],{rotationZ:t})}},i.prototype.onDeviceChange=function(e){this.device=e;var i=this.isVisible;if(this.isVisible=this.getDevice(""),this.isVisible===t&&(this.isVisible=1),
|
3 |
i&&!this.isVisible?(this.$layer.data("shows",0),this.$layer.css("display","none")):!i&&this.isVisible&&(this.$layer.data("shows",1),this.$layer.css("display","")),this.isVisible){var s=this.getDevice("fontsize");this.refreshBaseSize(s),this.isAdaptiveFont?this.$layer.css("font-size",16*s/100+"px"):this.$layer.css("font-size",s+"%");for(var r=0;r<this.children.length;r++)this.children[r].onDeviceChange(e);this.placement.onDeviceChange(e),this.onAfterDeviceChange(e)}},i.prototype.onAfterDeviceChange=function(e){},i.prototype.onResize=function(e,t,i){if(this.isVisible||this.placement.alwaysResize){for(var s=0;s<this.children.length;s++)this.children[s].onResize(e,t,i);this.placement.onResize(e,t,i)}},i.prototype.getDevice=function(e,i){var s=this.$layer.data(this.device+e);return s!=t?s:"desktopportrait"!=this.device?this.$layer.data("desktopportrait"+e):i!==t?i:0},i.prototype.get=function(e){return this.$layer.data(e)},i.prototype.getParallaxNodes=function(){var e=[];if(this.isVisible){this.parallax&&e.push(this.$layer[0]);for(var t=0;t<this.children.length;t++)e.push.apply(e,this.children[t].getParallaxNodes())}return e},i.prototype.addWrap=function(i,s){if(this.wraps[i]===t){var r=e(s);switch(i){case"rotation":this.wraps.mask!==t?r.appendTo(this.wraps.mask):this.wraps.parallax!==t?r.appendTo(this.wraps.parallax):r.appendTo(this.$layer),r.append(this.getContents())}this.wraps[i]=r}return r},i.prototype.getContents=function(){return!1},i}),N2D("FrontendPlacement",function(e,t){function i(e){this.layer=e,this.alwaysResize=!1}return i.prototype.start=function(){},i.prototype.onDeviceChange=function(e){},i.prototype.onResize=function(e,t,i){},i}),N2D("FrontendSliderSlide",["FrontendComponentSlideAbstract"],function(e,t){function i(t,i,s){this.isStaticSlide=!1,this.originalIndex=s,this.index=s,this.localIndex=s,this.$element=i.data("slide",this),this.id=this.$element.data("id"),this.background=!1,this.slides=[this],t.parameters.admin?this.minimumSlideDuration=0:(this.minimumSlideDuration=i.data("slide-duration"),e.isNumeric(this.minimumSlideDuration)||(this.minimumSlideDuration=0));var r=i.find(".n2-ss-layers-container");N2Classes.FrontendComponentSlideAbstract.prototype.constructor.call(this,t,r)}return i.prototype=Object.create(N2Classes.FrontendComponentSlideAbstract.prototype),i.prototype.constructor=i,i.prototype.init=function(){N2Classes.FrontendComponentSlideAbstract.prototype.init.call(this);var e=this.slider.findSlideBackground(this);e.length>0&&(this.slider.isAdmin?this.background=new N2Classes.SmartSliderSlideBackgroundAdmin(this,e,this.slider.backgrounds):this.background=new N2Classes.SmartSliderSlideBackground(this,e,this.slider.backgrounds)),this.$element.data("slideBackground",this.background)},i.prototype.setStarterSlide=function(){N2Classes.FrontendComponentSlideAbstract.prototype.setStarterSlide.call(this)},i.prototype.setIndex=function(e){this.localIndex=this.index=e},i.prototype.preLoad=function(){return this.background?this.background.preLoad():!0},i.prototype.setPrevious=function(e){this.previousSlide=e},i.prototype.setNext=function(e){this.nextSlide=e,e.setPrevious(this)},i.prototype.hasBackgroundVideo=function(){return this.background.hasVideo()},i.prototype.getTitle=function(){return this.$element.data("title")},i.prototype.getDescription=function(){return this.$element.data("description")},i.prototype.getThumbnail=function(){return this.$element.data("thumbnail")},i.prototype.getThumbnailType=function(){return this.$element.data("thumbnail-type")},i.prototype.hasLink=function(){return!!this.$element.data("haslink")},i}),N2D("FrontendComponentSlideAbstract",["FrontendComponent"],function(e,t){function i(t,i){this.baseSize=16,this.slider=t,this.isCurrentlyEdited()||(this.status=s.NOT_INITIALIZED,N2Classes.FrontendComponent.prototype.constructor.call(this,this,this,i,i.find("> .n2-ss-layer, > .n2-ss-layer-group")),this.slider.sliderElement.on({SliderDeviceOrientation:e.proxy(function(e,t){this.onDeviceChange(t.device+t.orientation.toLowerCase())},this),SliderResize:e.proxy(function(e,t,i){this.onResize(t,i.responsiveDimensions)},this)}),N2Classes.FrontendComponent.prototype.start.call(this))}var s={NOT_INITIALIZED:-1,INITIALIZED:0,READY_TO_START:1,PLAYING:2,ENDED:3};return i.prototype=Object.create(N2Classes.FrontendComponent.prototype),i.prototype.constructor=i,i.prototype.is=function(e){return this===e},i.prototype.isCurrentlyEdited=function(){return this.slider.parameters.admin&&this.$element.hasClass("n2-ss-currently-edited-slide")},i.prototype.trigger=function(){this.$element.trigger.apply(this.$element,[].slice.call(arguments))},i.prototype.triggerHandler=function(){return this.$element.triggerHandler.apply(this.$element,[].slice.call(arguments))},i.prototype.init=function(){!this.isCurrentlyEdited()},i.prototype.refreshBaseSize=function(e){},i.prototype.onResize=function(e,t){for(var i=0;i<this.children.length;i++)this.children[i].onResize(e,t,this.isStaticSlide)},i.prototype.hasLayers=function(){return this.children.length>0},i.prototype.onDeviceChange=function(e){this.device=e;for(var t=0;t<this.children.length;t++)this.children[t].onDeviceChange(e);this.placement.onDeviceChange(e)},i.prototype.setStarterSlide=function(){},i}),N2D("FrontendSliderStaticSlide",["FrontendComponentSlideAbstract"],function(e,t){function i(e,t){this.isStaticSlide=!0,this.$element=t.data("slide",this),N2Classes.FrontendComponentSlideAbstract.prototype.constructor.call(this,e,t),this.init()}return i.prototype=Object.create(N2Classes.FrontendComponentSlideAbstract.prototype),i.prototype.constructor=i,i}),N2D("SmartSliderSlideBackgroundColor",function(e,t){function i(e,t){this.$el=t}return i.prototype.getLoadedDeferred=function(){return!0},i}),N2D("SmartSliderSlideBackgroundImage",function(e,t){function i(t,i,s,r){if(this.loadStarted=!1,this.loadAllowed=!1,this.slide=t,this.manager=i,this.background=s,this.deferred=e.Deferred(),this.$el=r,this.opacity=r.data("opacity"),this.blur=r.data("blur"),this.x=r.data("x"),this.y=r.data("y"),r.css("display","none"),this.$background=e('<div class="n2-ss-slide-background-image"/>').css({backgroundPosition:this.x+"% "+this.y+"%",opacity:this.opacity/100}).insertAfter(r),"blurfit"===s.mode&&(window.n2FilterProperty?(this.$background=this.$background.add(this.$background.clone().insertAfter(this.$background)),this.$background.first().css({margin:"-14px",padding:"14px"}).css(window.n2FilterProperty,"blur(7px)")):(s.element.attr("data-mode","fill"),s.mode="fill")),window.n2FilterProperty&&(this.blur>0?this.$background.last().css({margin:"-"+2*this.blur+"px",padding:2*this.blur+"px"}).css(window.n2FilterProperty,"blur("+this.blur+"px)"):this.$background.last().css({margin:"",padding:""}).css(window.n2FilterProperty,"")),n2const.isWaybackMachine())this.mobileSrc=this.tabletSrc=this.desktopSrc=r.attr("src");else if(this.desktopSrc=r.data("desktop")||"",this.tabletSrc=r.data("tablet")||"",this.mobileSrc=r.data("mobile")||"",n2const.isRetina){var n=r.data("desktop-retina");n&&(this.desktopSrc=n),n=r.data("tablet-retina"),n&&(this.tabletSrc=n),n=r.data("mobile-retina"),n&&(this.mobileSrc=n)}}return i.prototype.getLoadedDeferred=function(){return this.deferred},i.prototype.preLoad=function(){this.loadAllowed=!0,this.manager.deviceDeferred.done(e.proxy(function(){this.updateBackgroundToDevice(this.manager.device),this.$background.n2imagesLoaded({background:!0},e.proxy(function(e){var t=e.images[0].img;switch(this.width=t.naturalWidth,this.height=t.naturalHeight,this.background.mode){case"tile":case"center":n2const.devicePixelRatio>1&&this.$background.css("background-size",this.width/n2const.devicePixelRatio+"px "+this.height/n2const.devicePixelRatio+"px")}this.deferred.resolve()},this))},this))},i.prototype.updateBackgroundToDevice=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),t?this.setSrc(t):this.setSrc("")},i.prototype.setSrc=function(e){this.loadAllowed&&e!==this.currentSrc&&(""===e?this.$background.css("background-image",""):this.$background.css("background-image",'url("'+e+'")'),this.currentSrc=e)},i.prototype.fadeOut=function(){NextendTween.to(this.$background,.3,{opacity:0})},i}),N2D("FrontendPlacementAbsolute",["FrontendPlacement"],function(e,t){function i(e){return e.position()}function i(e){return{left:e.prop("offsetLeft"),top:e.prop("offsetTop")}}function s(e){this.linked=[],this.parentLayer=!1,this.$parent=!1,N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return/(MSIE\ [0-7]\.\d+)/.test(navigator.userAgent),s.prototype=Object.create(N2Classes.FrontendPlacement.prototype),s.prototype.constructor=s,s.prototype.start=function(){var t=this.layer.get("parentid");t&&(this.$parent=e("#"+t),0==this.$parent.length?this.$parent=!1:(this.parentLayer=this.$parent.data("layer"),this.parentLayer.placement.addLinked(this),this.onResize=function(){}))},s.prototype.addLinked=function(e){this.linked.push(e),this.alwaysResize=!0},s.prototype.onResize=s.prototype.onResizeLinked=function(e,t,s){var r=this.layer.$layer,n=e.slideW,a=n,o=e.slideH,l=o;parseInt(this.layer.get("responsivesize"))||(a=l=1),r.css("width",this.getWidth(a)),r.css("height",this.getHeight(l)),parseInt(this.layer.get("responsiveposition"))||(n=o=1);var h=this.layer.getDevice("left")*n,d=this.layer.getDevice("top")*o,p=this.layer.getDevice("align"),c=this.layer.getDevice("valign"),u={left:"auto",top:"auto",right:"auto",bottom:"auto"};if(this.$parent&&this.$parent.data("layer").isVisible){var m=i(this.$parent),f={left:0,top:0};switch(this.layer.getDevice("parentalign")){case"right":f.left=m.left+this.$parent.width();break;case"center":f.left=m.left+this.$parent.width()/2;break;default:f.left=m.left}switch(p){case"right":u.right=r.parent().width()-f.left-h+"px";break;case"center":u.left=f.left+h-r.width()/2+"px";break;default:u.left=f.left+h+"px"}switch(this.layer.getDevice("parentvalign")){case"bottom":f.top=m.top+this.$parent.height();break;case"middle":f.top=m.top+this.$parent.height()/2;break;default:f.top=m.top}switch(c){case"bottom":u.bottom=r.parent().height()-f.top-d+"px";break;case"middle":u.top=f.top+d-r.height()/2+"px";break;default:u.top=f.top+d+"px"}}else{switch(p){case"right":u.right=-h+"px";break;case"center":u.left=(s?r.parent().width():t.slide.width)/2+h-r.width()/2+"px";break;default:u.left=h+"px"}switch(c){case"bottom":u.bottom=-d+"px";break;case"middle":u.top=(s?r.parent().height():t.slide.height)/2+d-r.height()/2+"px";break;default:u.top=d+"px"}}r.css(u);for(var y=0;y<this.linked.length;y++)this.linked[y].onResizeLinked(e,t,s)},s.prototype.getWidth=function(e){var t=this.layer.getDevice("width");return this.isDimensionPropertyAccepted(t)?t:t*e+"px"},s.prototype.getHeight=function(e){var t=this.layer.getDevice("height");return this.isDimensionPropertyAccepted(t)?t:t*e+"px"},s.prototype.isDimensionPropertyAccepted=function(e){return!(!(e+"").match(/[0-9]+%/)&&"auto"!=e)},s}),N2D("FrontendPlacementContent",["FrontendPlacement"],function(e,t){function i(e){N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return i.prototype=Object.create(N2Classes.FrontendPlacement.prototype),i.prototype.constructor=i,i}),N2D("FrontendPlacementDefault",["FrontendPlacement"],function(e,t){function i(e){N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return i.prototype=Object.create(N2Classes.FrontendPlacement.prototype),i.prototype.constructor=i,i}),N2D("FrontendPlacementNormal",["FrontendPlacement"],function(e,t){function i(e){N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return i.prototype=Object.create(N2Classes.FrontendPlacement.prototype),i.prototype.constructor=i,i.prototype.onDeviceChange=function(){this.updateMargin(),this.updateHeight(),this.updateMaxWidth(),this.updateSelfAlign()},i.prototype.updateMargin=function(){var e=this.layer.getDevice("margin").split("|*|"),t=e.pop(),i=this.layer.baseSize;if("px+"==t&&i>0){t="em";for(var s=0;s<e.length;s++)e[s]=parseInt(e[s])/i}this.layer.$layer.css("margin",e.join(t+" ")+t)},i.prototype.updateHeight=function(){var e=this.layer.getDevice("height"),t="px";if(e>0){var i=this.layer.baseSize;i>0&&(t="em",e=parseInt(e)/i),this.layer.$layer.css("height",e+t)}else this.layer.$layer.css("height","")},i.prototype.updateMaxWidth=function(){var e=parseInt(this.layer.getDevice("maxwidth"));0>=e||isNaN(e)?this.layer.$layer.css("maxWidth","").attr("data-has-maxwidth","0"):this.layer.$layer.css("maxWidth",e+"px").attr("data-has-maxwidth","1")},i.prototype.updateSelfAlign=function(){this.layer.$layer.attr("data-cssselfalign",this.layer.getDevice("selfalign"))},i}),N2D("FrontendComponentCol",["FrontendComponent"],function(e,t){function i(e,t,i){this.$content=i.find(".n2-ss-layer-col:first"),N2Classes.FrontendComponent.prototype.constructor.call(this,e,t,i,this.$content.find("> .n2-ss-layer"))}return i.prototype=Object.create(N2Classes.FrontendComponent.prototype),i.prototype.constructor=i,i.prototype.onDeviceChange=function(e){N2Classes.FrontendComponent.prototype.onDeviceChange.apply(this,arguments),this.updateOrder(),this.updatePadding(),this.updateInnerAlign(),this.updateMaxWidth()},i.prototype.updatePadding=function(){var e=this.getDevice("padding").split("|*|"),t=e.pop(),i=this.baseSize;if("px+"===t&&i>0){t="em";for(var s=0;s<e.length;s++)e[s]=parseInt(e[s])/i}this.$content.css("padding",e.join(t+" ")+t)},i.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},i.prototype.updateMaxWidth=function(){var e=parseInt(this.getDevice("maxwidth"));0>=e||isNaN(e)?this.$layer.css("maxWidth","").attr("data-has-maxwidth","0"):this.$layer.css("maxWidth",e+"px").attr("data-has-maxwidth","1")},i.prototype.getWidthPercentage=function(){return parseFloat(this.$layer.data("colwidthpercent"))},i.prototype.getRealOrder=function(){var e=this.getDevice("order");return 0==e?10:e},i.prototype.updateOrder=function(){var e=this.getDevice("order");0==e?this.$layer.css("order",""):this.$layer.css("order",e)},i.prototype.getContents=function(){return this.$content},i}),N2D("FrontendComponentContent",["FrontendComponent"],function(e,t){function i(e,t,i){this.$content=i.find("> .n2-ss-section-main-content"),N2Classes.FrontendComponent.prototype.constructor.call(this,e,t,i,this.$content.find("> .n2-ss-layer"))}return i.prototype=Object.create(N2Classes.FrontendComponent.prototype),i.prototype.constructor=i,i.prototype.onDeviceChange=function(e){N2Classes.FrontendComponent.prototype.onDeviceChange.apply(this,arguments),this.updatePadding(),this.updateInnerAlign(),this.updateMaxWidth(),this.updateSelfAlign()},i.prototype.updatePadding=function(){var e=this.getDevice("padding").split("|*|"),t=e.pop(),i=this.baseSize;if("px+"==t&&i>0){t="em";for(var s=0;s<e.length;s++)e[s]=parseInt(e[s])/i}this.$content.css("padding",e.join(t+" ")+t)},i.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},i.prototype.updateMaxWidth=function(){var e=parseInt(this.getDevice("maxwidth"));0>=e||isNaN(e)?this.$layer.css("maxWidth","").attr("data-has-maxwidth","0"):this.$layer.css("maxWidth",e+"px").attr("data-has-maxwidth","1")},i.prototype.updateSelfAlign=function(){this.$layer.attr("data-cssselfalign",this.getDevice("selfalign"))},i.prototype.getContents=function(){return this.$content},i}),N2D("FrontendComponentLayer",["FrontendComponent"],function(e,t){function i(e,i,s){N2Classes.FrontendComponent.prototype.constructor.call(this,e,i,s),this.wraps.mask!==t?this.$item=this.wraps.mask.children():this.wraps.parallax!==t?this.$item=this.wraps.parallax.children():this.$item=s.children()}return i.prototype=Object.create(N2Classes.FrontendComponent.prototype),i.prototype.constructor=i,i.prototype.getContents=function(){return this.$item},i}),N2D("FrontendComponentRow",["FrontendComponent"],function(e,t){function i(e,t,i){this.$row=i.find(".n2-ss-layer-row:first"),this.$rowInner=this.$row.find(".n2-ss-layer-row-inner:first"),N2Classes.FrontendComponent.prototype.constructor.call(this,e,t,i,this.$rowInner.find("> .n2-ss-layer"))}return i.prototype=Object.create(N2Classes.FrontendComponent.prototype),i.prototype.constructor=i,i.prototype.onDeviceChange=function(e){N2Classes.FrontendComponent.prototype.onDeviceChange.apply(this,arguments),this.updatePadding(),this.updateGutter(),this.updateInnerAlign()},i.prototype.onAfterDeviceChange=function(e){this.updateWrapAfter()},i.prototype.updatePadding=function(){var e=this.getDevice("padding").split("|*|"),t=e.pop(),i=this.baseSize;if("px+"===t&&i>0){t="em";for(var s=0;s<e.length;s++)e[s]=parseInt(e[s])/i}this.$row.css("padding",e.join(t+" ")+t)},i.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},i.prototype.updateGutter=function(){var e=this.getDevice("gutter"),t=e/2;if(this.children.length>0)for(var i=this.children.length-1;i>=0;i--)this.children[i].$layer.css("margin",t+"px");this.$rowInner.css({width:"calc(100% + "+(e+1)+"px)",margin:-t+"px"})},i.prototype.getSortedColumns=function(){for(var t=e.extend([],this.children).sort(function(e,t){return e.getRealOrder()-t.getRealOrder()}),i=t.length-1;i>=0;i--)t[i].isVisible||t.splice(i,1);return t},i.prototype.updateWrapAfter=function(){var e=parseInt(this.getDevice("wrapafter")),t=this.getSortedColumns(),i=t.length,s=!1;if(0===i)return!1;e>0&&i>e&&(s=!0),this.$row.attr("row-wrapped",s?1:0);var r;if(s){var n=[];for(r=0;i>r;r++){var a=Math.floor(r/e);"undefined"==typeof n[a]&&(n[a]=[]),n[a].push(t[r]),t[r].$layer.attr("data-r",a).toggleClass("n2-ss-last-in-row",(r+1)%e===0||r===i-1)}var o=this.getDevice("gutter");for(r=0;r<n.length;r++){var l,h=n[r],d=0;for(l=0;l<h.length;l++)d+=h[l].getWidthPercentage();for(l=0;l<h.length;l++)h[l].$layer.css("width","calc("+h[l].getWidthPercentage()/d*100+"% - "+o+"px)")}}else{var d=0;for(r=0;i>r;r++)d+=t[r].getWidthPercentage();for(r=0;i>r;r++)t[r].$layer.css("width",t[r].getWidthPercentage()/d*100+"%").removeClass("n2-ss-last-in-row").attr("data-r",0);t[i-1].$layer.addClass("n2-ss-last-in-row")}},i.prototype.getContents=function(){return this.$row},i}),N2D("SmartSliderResponsive",function(e,t){function i(t,i){this.disableTransitions=!1,this.disableTransitionsTimeout=null,this.lastClientHeight=0,this.lastClientHeightTime=0,this.lastOrientation=0,this.isFullScreen=!1,this.invalidateResponsiveState=!0,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,forceFullOverflowX:"body",forceFullHorizontalSelector:"",verticalOffsetSelectors:"",decreaseSliderHeight:0,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",overflowHiddenPage:0},i),t.isAdmin&&(this.doResize=NextendThrottle(this.doResize,50)),this.loadDeferred=e.Deferred(),this.slider=t,this.sliderElement=t.sliderElement}var s=null,r=null;return i.OrientationMode={SCREEN:0,ADMIN_LANDSCAPE:1,ADMIN_PORTRAIT:2,SCREEN_WIDTH_ONLY:3},i.DeviceOrientation={UNKNOWN:0,LANDSCAPE:1,PORTRAIT:2},i._DeviceOrientation={0:"Unknown",1:"Landscape",2:"Portrait"},i.DeviceMode={UNKNOWN:0,DESKTOP:1,TABLET:2,MOBILE:3},i._DeviceMode={0:"unknown",1:"desktop",2:"tablet",3:"mobile"},i.prototype.start=function(){nextend.fontsDeferred===t?N2R("windowLoad",e.proxy(function(){this.loadDeferred.resolve()},this)):nextend.fontsDeferred.always(e.proxy(function(){this.loadDeferred.resolve()},this)),this.normalizeTimeout=null,this.delayedResizeAdded=!1,this.deviceMode=i.DeviceMode.UNKNOWN,this.orientationMode=i.OrientationMode.SCREEN,this.orientation=i.DeviceOrientation.UNKNOWN,this.lastRatios={ratio:-1},this.lastRawRatios={ratio:-1},this.normalizedMode="unknownUnknown",this.widgetMargins={Top:[],Right:[],Bottom:[],Left:[]},this.staticSizes={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},this.enabledWidgetMargins=[],this.alignElement=this.slider.sliderElement.closest(".n2-ss-align");var n=this.ready=e.Deferred();switch(this.sliderElement.triggerHandler("SliderResponsiveStarted"),this.sliderElement.one("SliderResize",function(){n.resolve()}),this.containerElementPadding=this.sliderElement.parent(),this.containerElement=this.containerElementPadding.parent(),!this.slider.isAdmin&&this.parameters.overflowHiddenPage&&e("html, body").css("overflow","hidden"),"width"==this.parameters.orientationMode&&(this.orientationMode=i.OrientationMode.SCREEN_WIDTH_ONLY),nextend.smallestZoom=Math.min(Math.max(this.parameters.sliderWidthToDevice.mobilePortrait,120),320),this.parameters.basedOn){case"screen":break;default:if(null==s){var a=new MobileDetect(window.navigator.userAgent,801);s=!!a.tablet(),r=!!a.phone()}}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 o in this.parameters.maximumHeightRatio)this.parameters.maximumHeightRatio[o]*=this.parameters.verticalRatioModifiers[o]}if(N2Classes.Zoom!==t&&N2Classes.Zoom.add(this),this.onResize(),this.parameters.onResizeEnabled||"adaptive"==this.parameters.type)if(e(window).on({resize:e.proxy(this.onResize,this),orientationchange:e.proxy(this.onResize,this)}),this.sliderElement.on("SliderInternalResize",e.proxy(this.onResize,this)),window.ResizeObserver!==t){var l=0,h=new ResizeObserver(e.proxy(function(t){t.forEach(e.proxy(function(e){l!==e.contentRect.width&&(l=e.contentRect.width,this.sliderElement.triggerHandler("SliderInternalResize"))},this))},this));h.observe(this.containerElement.parent().get(0))}else try{e('<iframe sandbox="allow-same-origin allow-scripts" style="margin:0;padding:0;border:0;display:block;width:100%;height:0;"/>').on("load",e.proxy(function(t){var i=0,s=e(t.target.contentWindow?t.target.contentWindow:t.target.contentDocument.defaultView).on("resize",e.proxy(function(e){var t=s.width();i!==t&&(i=t,this.sliderElement.triggerHandler("SliderInternalResize"))},this))},this)).insertBefore(this.containerElement)}catch(d){}},i.prototype.getOuterWidth=function(){return this.responsiveDimensions.startSliderWidth+this.responsiveDimensions.startSliderMarginLeft+this.responsiveDimensions.startSliderMarginRight},i.prototype.storeDefaults=function(){this.responsiveDimensions={startWidth:this.sliderElement.outerWidth(!0),startHeight:this.sliderElement.outerHeight(!0),startSliderMarginhorizontal:0,startSliderMarginvertical:0},this.horizontalElements=[],this.verticalElements=[],this.init(),this.margins={top:this.responsiveDimensions.startSliderMarginTop,right:this.responsiveDimensions.startSliderMarginRight,bottom:this.responsiveDimensions.startSliderMarginBottom,left:this.responsiveDimensions.startSliderMarginLeft}},i.prototype.addHorizontalElement=function(e,t,i,s){i=i||"ratio";var r=new N2Classes.SmartSliderResponsiveElement(this,i,e,t,s);return this.horizontalElements.push(r),r},i.prototype.addVerticalElement=function(e,t,i,s){i=i||"ratio";var r=new N2Classes.SmartSliderResponsiveElement(this,i,e,t,s);return this.verticalElements.push(r),r},i.prototype.resizeHorizontalElements=function(e){for(var t=0;t<this.horizontalElements.length;t++){var i=this.horizontalElements[t];"undefined"==typeof e[i.ratioName]&&console.log("error with "+i.ratioName),i.resize(this.responsiveDimensions,e[i.ratioName],!1,0)}this.slider.sliderElement.triggerHandler("SliderResizeHorizontal")},i.prototype.updateVerticalRatios=function(e){return e},i.prototype._updateVerticalRatios=function(t){var i=this.responsiveDimensions.startSlideHeight*t.slideH,s=!1;return this.sliderElement.find(".n2-ss-section-main-content").addClass("n2-ss-section-main-content-calc").each(function(t,r){var n=e(r).outerHeight();n>i&&(s=!0,i=n)}).removeClass("n2-ss-section-main-content-calc"),s&&(t.slideH=i/this.responsiveDimensions.startSlideHeight,t.h=Math.max(t.h,t.slideH)),t},i.prototype.resizeVerticalElements=function(e,t,i){for(var s=0;s<this.verticalElements.length;s++){var r=this.verticalElements[s];"undefined"==typeof e[r.ratioName]&&console.log("error with "+r.ratioName),r.resize(this.responsiveDimensions,e[r.ratioName],t,i)}},i.prototype.getDeviceMode=function(){return i._DeviceMode[this.deviceMode]},i.prototype.getDeviceModeOrientation=function(){return i._DeviceMode[this.deviceMode]+i._DeviceOrientation[this.orientation]},i.prototype.onResize=function(t){this.slider.mainAnimation&&"playing"==this.slider.mainAnimation.getState()?this.delayedResizeAdded||(this.delayedResizeAdded=!0,this.sliderElement.on("mainAnimationComplete.responsive",e.proxy(this._onResize,this,t))):this._onResize(t)},i.prototype._onResize=function(e){this.doResize(e),this.delayedResizeAdded=!1},i.prototype.doNormalizedResize=function(){this.normalizeTimeout&&clearTimeout(this.normalizeTimeout),this.normalizeTimeout=setTimeout(e.proxy(this.doResize,this),10)},i.prototype._getOrientation=function(){return this.orientationMode==i.OrientationMode.SCREEN?window.innerHeight<=window.innerWidth?i.DeviceOrientation.LANDSCAPE:i.DeviceOrientation.PORTRAIT:this.orientationMode==i.OrientationMode.ADMIN_PORTRAIT?i.DeviceOrientation.PORTRAIT:this.orientationMode==i.OrientationMode.ADMIN_LANDSCAPE?i.DeviceOrientation.LANDSCAPE:void 0},i.prototype._getDevice=function(){switch(this.parameters.basedOn){case"combined":return this._getDeviceDevice(this._getDeviceScreenWidth());case"device":return this._getDeviceDevice(i.DeviceMode.DESKTOP);case"screen":return this._getDeviceScreenWidth()}},i.prototype._getDeviceScreenWidth=function(){var e=window.innerWidth;if(this.orientation==i.DeviceOrientation.PORTRAIT){if(e<this.parameters.mobilePortraitScreenWidth)return i.DeviceMode.MOBILE;if(e<this.parameters.tabletPortraitScreenWidth)return i.DeviceMode.TABLET}else{if(e<this.parameters.mobileLandscapeScreenWidth)return i.DeviceMode.MOBILE;if(e<this.parameters.tabletLandscapeScreenWidth)return i.DeviceMode.TABLET}return i.DeviceMode.DESKTOP},i.prototype._getDeviceAndOrientationByScreenWidth=function(){var e=window.innerWidth;return e<this.parameters.mobilePortraitScreenWidth?[i.DeviceMode.MOBILE,i.DeviceOrientation.PORTRAIT]:e<this.parameters.mobileLandscapeScreenWidth?[i.DeviceMode.MOBILE,i.DeviceOrientation.LANDSCAPE]:e<this.parameters.tabletPortraitScreenWidth?[i.DeviceMode.TABLET,i.DeviceOrientation.PORTRAIT]:e<this.parameters.tabletLandscapeScreenWidth?[i.DeviceMode.TABLET,i.DeviceOrientation.LANDSCAPE]:e<this.parameters.desktopPortraitScreenWidth?[i.DeviceMode.DESKTOP,i.DeviceOrientation.PORTRAIT]:[i.DeviceMode.DESKTOP,i.DeviceOrientation.LANDSCAPE]},i.prototype._getDeviceDevice=function(e){return r===!0?i.DeviceMode.MOBILE:s&&e!=i.DeviceMode.MOBILE?i.DeviceMode.TABLET:e},i.prototype._getDeviceZoom=function(e){var t;this.orientationMode==i.OrientationMode.ADMIN_PORTRAIT?t=i.DeviceOrientation.PORTRAIT:this.orientationMode==i.OrientationMode.ADMIN_LANDSCAPE&&(t=i.DeviceOrientation.LANDSCAPE);var s=i.DeviceMode.DESKTOP;return e-this.parameters.ratioToDevice[i._DeviceOrientation[t]].mobile<.001?s=i.DeviceMode.MOBILE:e-this.parameters.ratioToDevice[i._DeviceOrientation[t]].tablet<.001&&(s=i.DeviceMode.TABLET),s},i.prototype.doResize=function(t,s,r,n){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();var a;if("center"===this.slider.parameters.align&&("fullpage"===this.parameters.type?this.alignElement.css("maxWidth","none"):(a=this.responsiveDimensions.startWidth,this.staticSizes&&(a+=this.staticSizes.paddingLeft+this.staticSizes.paddingRight),this.alignElement.css("maxWidth",a))),!this.slider.isAdmin&&this.parameters.forceFull){"none"!==this.parameters.forceFullOverflowX&&e(this.parameters.forceFullOverflowX).css("overflow-x","hidden");var o=0,l=0;if(""!==this.parameters.forceFullHorizontalSelector){var h=this.sliderElement.closest(this.parameters.forceFullHorizontalSelector);h&&h.length>0&&(o=h.width(),l=h.offset().left)}var d,p=o>0?o:document.body.clientWidth||document.documentElement.clientWidth,c=this.containerElement.parent(),u=c.offset().left;d=n2const.rtl.isRtl?p-(u+c.outerWidth()):u,this.containerElement.css(n2const.rtl.marginLeft,-d-parseInt(c.css("paddingLeft"))-parseInt(c.css("borderLeftWidth"))+l).width(p)}var m=this.containerElementPadding.width()/this.getOuterWidth(),f=!1,y=this.orientation,g=this.deviceMode,v=null,S=null;if(this.orientationMode===i.OrientationMode.SCREEN_WIDTH_ONLY){var b=this._getDeviceAndOrientationByScreenWidth();S=b[0],v=b[1]}else v=this._getOrientation();if(this.orientation!==v&&(this.orientation=v,f=!0,this.sliderElement.trigger("SliderOrientation",{lastOrientation:i._DeviceOrientation[y],orientation:i._DeviceOrientation[v]})),this.orientationMode!==i.OrientationMode.SCREEN_WIDTH_ONLY&&(S=this._getDevice(m)),this.deviceMode!==S&&(this.deviceMode=S,this.sliderElement.removeClass("n2-ss-"+i._DeviceMode[g]).addClass("n2-ss-"+i._DeviceMode[S]),
|
4 |
this.sliderElement.trigger("SliderDevice",{lastDevice:i._DeviceMode[g],device:i._DeviceMode[S]}),f=!0),!this.slider.isAdmin&&"fullpage"===this.parameters.type){var w=0;if(window.matchMedia&&/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||window.opera)){var x,E=!1;t&&"orientationchange"===t.type&&(E=!0),x=n2const.isIOS?document.documentElement.clientHeight:window.innerHeight,window.matchMedia("(orientation: landscape)").matches?(w=Math.min(screen.width,x),90!=this.lastOrientation&&(E=!0,this.lastOrientation=90)):(w=Math.min(screen.height,x),0!=this.lastOrientation&&(E=!0,this.lastOrientation=0)),w=window.n2ClientHeight||w;var D=e.now();!E&&Math.abs(w-this.lastClientHeight)<100&&D-this.lastClientHeightTime>400?w=this.lastClientHeight:(this.lastClientHeight=w,this.lastClientHeightTime=D)}else w=window.n2ClientHeight||document.documentElement.clientHeight||document.body.clientHeight;n2const.isBot&&(w=Math.min(w,document.documentElement.clientWidth||document.body.clientWidth)),this.parameters.maximumHeightRatio[this.getDeviceModeOrientation()]=this.parameters.minimumHeightRatio=(w-this.getVerticalOffsetHeight())/this.responsiveDimensions.startHeight}if(f){this.invalidateResponsiveState=!0;var C=this._normalizeMode(i._DeviceMode[g],i._DeviceOrientation[y]),A=this._normalizeMode(i._DeviceMode[this.deviceMode],i._DeviceOrientation[this.orientation]);C[0]===A[0]&&C[1]===A[1]||(this.normalizedMode=A[0]+A[1],this.sliderElement.trigger("SliderDeviceOrientation",{lastDevice:C[0],lastOrientation:C[1],device:A[0],orientation:A[1]}))}var k=this.parameters.sliderWidthToDevice[this.normalizedMode]/this.parameters.sliderWidthToDevice.desktopPortrait;!this.parameters.downscale&&k>m?m=k:!this.parameters.upscale&&m>k&&(m=k),this._doResize(m,s,r,n),"center"===this.slider.parameters.align&&(a=this.responsiveDimensions.slider.width,this.staticSizes&&(a+=this.staticSizes.paddingLeft+this.staticSizes.paddingRight),this.responsiveDimensions&&(a+=this.responsiveDimensions.startSliderMarginhorizontal),this.alignElement.css("maxWidth",a))},i.prototype._normalizeMode=function(e,t){return this.parameters.normalizedDeviceModes[e+t]},i.prototype.getNormalizedModeString=function(){var e=this._normalizeMode(i._DeviceMode[this.deviceMode],i._DeviceOrientation[this.orientation]);return e.join("")},i.prototype.getModeString=function(){return i._DeviceMode[this.deviceMode]+i._DeviceOrientation[this.orientation]},i.prototype.enabled=function(e,t){return this.parameters.deviceModes[e+t]},i.prototype._doResize=function(t,i,s,r){var n={ratio:t,w:t,h:t,slideW:t,slideH:t,fontRatio:1};this._buildRatios(n,this.slider.parameters.dynamicHeight,s),n.fontRatio=n.slideW;var a=!1;for(var o in n)if(n[o]!=this.lastRawRatios[o]){a=!0;break}(this.invalidateResponsiveState||a)&&(this.lastRawRatios=e.extend({},n),this.resizeHorizontalElements(n),this.finishResize(n,i,r))},i.prototype.finishResize=function(t,i,s){this.loadDeferred.done(e.proxy(function(){var r=e.proxy(function(){this.finishResize=this._finishResize,this.finishResize(t,i,s)},this);/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor)||/CriOS/.exec(window.navigator.userAgent)?setTimeout(r,200):r()},this)),this.invalidateResponsiveState=!1},i.prototype._finishResize=function(e,t,i){this.invalidateResponsiveState=!1,e=this.updateVerticalRatios(e),this.resizeVerticalElements(e,t,i),this.lastRatios=e,t?(this.sliderElement.trigger("SliderAnimatedResize",[e,t,i]),t.eventCallback("onComplete",function(){this.triggerResize(e,t)},[],this)):this.triggerResize(e,!1)},i.prototype.doVerticalResize=function(){var t=this.updateVerticalRatios(e.extend({},this.lastRawRatios)),i=!1;for(var s in t)if(t[s]!=this.lastRatios[s]){i=!0;break}i&&this.finishVerticalResize(t)},i.prototype.finishVerticalResize=function(t){this.loadDeferred.done(e.proxy(function(){this.finishVerticalResize=this._finishVerticalResize,this.finishVerticalResize(t)},this))},i.prototype._finishVerticalResize=function(e){this.resizeVerticalElements(e,!1,0),this.lastRatios=e,this.triggerResize(e,!1)},i.prototype.triggerResize=function(e,t){this.sliderElement.trigger("SliderResize",[e,this,t])},i.prototype._buildRatios=function(e,i,s){var r=this.getDeviceModeOrientation();this.parameters.maximumSlideWidthRatio[r]>0&&e.slideW>this.parameters.maximumSlideWidthRatio[r]&&(e.slideW=this.parameters.maximumSlideWidthRatio[r]),e.slideW=e.slideH=Math.min(e.slideW,e.slideH);var n=this.parameters.verticalRatioModifiers[r];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[r]>0&&(e.h=Math.min(e.h,this.parameters.maximumHeightRatio[r])),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[r]>0&&e.slideW>this.parameters.maximumSlideWidthRatio[r]&&(e.slideW=this.parameters.maximumSlideWidthRatio[r]),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[r]>0&&(e.h=Math.min(e.h,this.parameters.maximumHeightRatio[r])),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)),i){var a;if(s!==t&&s.background.elements.image!==t?a=s.background.elements.image:this.slider.currentSlide.background.elements.image!==t&&(a=this.slider.currentSlide.background.elements.image),a!==t&&a.width>0&&a.height>0){var o=this.responsiveDimensions.startSlideWidth/a.width*(a.height/this.responsiveDimensions.startSlideHeight);o>0&&(e.slideH*=o,e.h*=o)}}this.sliderElement.triggerHandler("responsiveBuildRatios",[e])},i.prototype.getVerticalOffsetHeight=function(){if(this.isFullScreen)return 0;for(var e=0,t=0;t<this.verticalOffsetSelectors.length;t++)e+=this.verticalOffsetSelectors.eq(t).outerHeight();if(this.slider.widgets.$vertical)for(var t=0;t<this.slider.widgets.$vertical.length;t++)e+=this.slider.widgets.$vertical.eq(t).outerHeight();return e+this.parameters.decreaseSliderHeight},i.prototype.addMargin=function(e,t){this.widgetMargins[e].push(t),t.isVisible()&&(this._addMarginSize(e,t.getSize()),this.enabledWidgetMargins.push(t)),this.doNormalizedResize()},i.prototype.addStaticMargin=function(e,t){"Bottom"!=e&&"Top"!=e&&(this.widgetStaticMargins||(this.widgetStaticMargins={Top:[],Right:[],Bottom:[],Left:[]}),this.widgetStaticMargins[e].push(t),this.doNormalizedResize())},i.prototype.refreshMargin=function(){for(var t in this.widgetMargins)for(var i=this.widgetMargins[t],s=i.length-1;s>=0;s--){var r=i[s];if(r.isVisible())-1==e.inArray(r,this.enabledWidgetMargins)&&(this._addMarginSize(t,r.getSize()),this.enabledWidgetMargins.push(r));else{var n=e.inArray(r,this.enabledWidgetMargins);-1!=n&&(this._addMarginSize(t,-r.getSize()),this.enabledWidgetMargins.splice(n,1))}}this.refreshStaticSizes()},i.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 r=i[s];r.isVisible()&&(e["padding"+t]+=r.getSize())}for(var n in e)this.containerElementPadding.css(e);this.staticSizes=e}},i.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},i}),N2D("SmartSliderResponsiveElement",function(e,t){function i(t,i,s,r,n){this._lastRatio=1,this.responsive=t,this.ratioName=i,this.element=s,this._readyDeferred=e.Deferred(),"undefined"!=typeof n?this.name=n:this.name=null,this.data={},this.helper={parent:null,parentProps:null,fontSize:!1,centered:!1},this._lateInit(r)}return i.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()},i.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 s in this.data)i["start"+N2Classes.StringHelper.capitalize(this.name)+N2Classes.StringHelper.capitalize(s)]=this.data[s]}},i.prototype.ready=function(e){this._readyDeferred.done(e)},i.prototype.resize=function(t,i){this.ready(e.proxy(this.resize,this,t,i)),this._lastRatio=i},i.prototype._resize=function(e,t,i,s){this.name&&"undefined"==typeof e[this.name]&&(e[this.name]={});var r={};for(var n in this.data){var a=this.data[n]*t;"function"==typeof this[n+"Prepare"]&&(a=this[n+"Prepare"](a)),this.name&&(e[this.name][n]=a),r[n]=a}if(i)i.to(this.element,s,r,0);else if(this.element.css(r),this.helper.centered){var o=this.getVerticalMargin(parseInt((this.helper.parent.height()-this.element.height())/2)),l=this.getHorizontalMargin(parseInt((this.helper.parent.width()-this.element.width())/2));this.element.css({marginLeft:l,marginRight:l,marginTop:o,marginBottom:o})}this._lastRatio=t},i.prototype.getHorizontalMargin=function(e){return e},i.prototype.getVerticalMargin=function(e){return e},i.prototype._refreshResize=function(){this.responsive.ready.done(e.proxy(function(){this._resize(this.responsive.responsiveDimensions,this.responsive.lastRatios[this.ratioName])},this))},i.prototype.widthPrepare=function(e){return Math.round(e)},i.prototype.heightPrepare=function(e){return Math.round(e)},i.prototype.marginLeftPrepare=function(e){return parseInt(e)},i.prototype.marginRightPrepare=function(e){return parseInt(e)},i.prototype.lineHeightPrepare=function(e){return e+"px"},i.prototype.borderLeftWidthPrepare=function(e){return parseInt(e)},i.prototype.borderRightWidthPrepare=function(e){return parseInt(e)},i.prototype.borderTopWidthPrepare=function(e){return parseInt(e)},i.prototype.borderBottomWidthPrepare=function(e){return parseInt(e)},i.prototype.fontSizePrepare=function(e){var t=this.responsive.getNormalizedModeString();return e<this.helper.fontSize[t]?this.helper.fontSize[t]:e},i.prototype.setCentered=function(){this.helper.parent=this.element.parent(),this.helper.centered=!0},i.prototype.unsetCentered=function(){this.helper.centered=!1},i.prototype.onModeChange=function(){this.setFontSizeByMode()},i.prototype.setFontSizeByMode=function(){this.element.css("fontSize",this.fontSizePrepare(this.data.fontSize*this._lastRatio))},i}),N2D("FrontendItemVimeo",function(e,t){function i(t,i,s,r,n,a){this.state={scroll:!1,slide:!1,play:!1,continuePlay:!1},this.readyDeferred=e.Deferred(),this.slider=t,this.playerId=i,this.$playerElement=e("#"+this.playerId),this.$cover=this.$playerElement.find(".n2-ss-layer-player-cover"),this.start=a,this.parameters=e.extend({vimeourl:"//vimeo.com/144598279",autoplay:"0",reset:"0",title:"1",byline:"1",portrait:"0",loop:"0",color:"00adef",volume:"-1"},r),navigator.userAgent.toLowerCase().indexOf("android")>-1&&(this.parameters.autoplay=0),1===parseInt(this.parameters.autoplay)||!n||n2const.isMobile?this.ready(e.proxy(this.initVimeoPlayer,this)):this.ready(e.proxy(function(){this.$playerElement.on("click.vimeo n2click.vimeo",e.proxy(function(e){this.$playerElement.off(".vimeo"),e.preventDefault(),e.stopPropagation(),this.initVimeoPlayer(),this.safePlay()},this))},this))}return i.vimeoDeferred=null,i.prototype.ready=function(t){null===i.vimeoDeferred&&(i.vimeoDeferred=e.getScript("https://player.vimeo.com/api/player.js")),i.vimeoDeferred.done(t)},i.prototype.initVimeoPlayer=function(){var t=e('<iframe allow="autoplay; encrypted-media" id="'+this.playerId+'-frame" 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>');this.$playerElement.prepend(t),this.isStatic=t.closest(".n2-ss-static-slide").length,this.player=new Vimeo.Player(t[0],{autoplay:!0}),this.promise=this.player.ready(),this.promise.then(e.proxy(this.onReady,this))},i.prototype.onReady=function(){var t=parseFloat(this.parameters.volume);t>=0&&this.setVolume(t),this.slide=this.slider.findSlideByElement(this.$playerElement);var i=this.$playerElement.closest(".n2-ss-layer");this.$cover.length&&(n2const.isMobile&&this.$cover.css("pointer-events","none"),i.one("n2play",e.proxy(function(){NextendTween.to(this.$cover,.3,{opacity:0,onComplete:e.proxy(function(){this.$cover.remove()},this)})},this))),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.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1)},this)),this.player.on("ended",e.proxy(function(){this.isStatic||this.slider.sliderElement.trigger("mediaEnded",this.playerId),i.triggerHandler("n2stop"),this.setState("play",!1)},this)),this.isStatic||this.slider.sliderElement.on("mainAnimationStart",e.proxy(function(t,i,s,r,n){-1==e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))?(parseInt(this.parameters.reset)&&this.reset(),this.setState("slide",!1,!0)):this.setState("slide",!0,!0)},this)),""!==this.parameters["scroll-pause"]?N2Classes.ScrollTracker.add(this.$playerElement,this.parameters["scroll-pause"],e.proxy(function(){this.setState("scroll",!0,!0)},this),e.proxy(function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)},this)):this.setState("scroll",!0,!0),(this.isStatic||-1!==e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.currentSlide)))&&this.setState("slide",!0,!0),1===parseInt(this.parameters.autoplay)&&this.slider.visible(e.proxy(this.initAutoplay,this)),this.readyDeferred.resolve()},i.prototype.initAutoplay=function(){this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(t,i,s,r,n){e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))>=0?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)},this)),e.inArray(this.slide,this.slider.getVisibleSlides())>=0&&(this.setState("play",!0),this.setState("slide",!0,!0)))},i.prototype.setState=function(e,t,i){i=i||!1,this.state[e]=t,i&&(this.state.play&&this.state.slide&&this.state.scroll?this.play():this.pause())},i.prototype.play=function(){this.slider.sliderElement.trigger("mediaStarted",this.playerId),0!=this.start&&this.safeSetCurrentTime(this.start),this.safePlay(),this.player.getCurrentTime().then(e.proxy(function(e){e<this.start&&0!=this.start&&this.safeSetCurrentTime(this.start),this.safePlay()},this))["catch"](e.proxy(function(e){this.safePlay()},this))},i.prototype.pause=function(){this.safePause()},i.prototype.reset=function(){this.safeSetCurrentTime(this.start)},i.prototype.setVolume=function(t){this.safeCallback(e.proxy(function(){this.promise=this.player.setVolume(t)},this))},i.prototype.safeSetCurrentTime=function(t){this.safeCallback(e.proxy(function(){this.promise=this.player.setCurrentTime(t)},this))},i.prototype.safePlay=function(){this.safeCallback(e.proxy(function(){this.promise=this.player.getPaused(),this.safeCallback(e.proxy(function(e){e&&(this.promise=this.player.play())},this))},this))},i.prototype.safePause=function(){this.safeCallback(e.proxy(function(){this.promise=this.player.getPaused(),this.safeCallback(e.proxy(function(e){e||(this.promise=this.player.pause())},this))},this))},i.prototype.safeCallback=function(e){this.promise&&Promise!==t?this.promise.then(e)["catch"](e):e()},i}),N2D("FrontendItemYouTube",function(e,t){function i(t,i,s,r){this.state={scroll:!1,slide:!1,play:!1,continuePlay:!1},this.readyDeferred=e.Deferred(),this.slider=t,this.playerId=i,this.$playerElement=e("#"+this.playerId),this.$cover=this.$playerElement.find(".n2-ss-layer-player-cover"),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,showinfo:1,modestbranding:1,reset:0,query:[],playsinline:0},s),1===parseInt(this.parameters.autoplay)||!r||n2const.isMobile?this.ready(e.proxy(this.initYoutubePlayer,this)):this.$playerElement.on("click.youtube n2click.youtube",e.proxy(function(t){this.$playerElement.off(".youtube"),t.preventDefault(),t.stopPropagation(),this.ready(e.proxy(function(){this.readyDeferred.done(e.proxy(function(){this.play()},this)),this.initYoutubePlayer()},this))},this))}return i.YTDeferred=null,i.prototype.ready=function(s){null===i.YTDeferred&&(i.YTDeferred=e.Deferred(),window.YT===t&&e.getScript("https://www.youtube.com/iframe_api"),function(e){var i=function(){window.YT!==t&&window.YT.loaded?e.resolve():setTimeout(i,100)};i()}(i.YTDeferred)),i.YTDeferred.done(s)},i.prototype.initYoutubePlayer=function(){var t=this.$playerElement.closest(".n2-ss-layer");this.$cover.length&&(n2const.isMobile&&this.$cover.css("pointer-events","none"),t.one("n2play",e.proxy(function(){NextendTween.to(this.$cover,.3,{opacity:0,onComplete:e.proxy(function(){this.$cover.remove()},this)})},this))),this.isStatic=this.$playerElement.closest(".n2-ss-static-slide").length;var i={enablejsapi:1,origin:window.location.protocol+"//"+window.location.host,theme:this.parameters.theme,wmode:"opaque",rel:this.parameters.related,vq:this.parameters.vq,start:this.parameters.start,showinfo:this.parameters.showinfo,modestbranding:this.parameters.modestbranding,playsinline:this.parameters.playsinline};if(1===parseInt(this.parameters.autoplay))if(navigator.userAgent.toLowerCase().indexOf("android")>-1)this.parameters.volume=0;else if(n2const.isIOS){this.parameters.autoplay=0;try{"playsInline"in document.createElement("video")&&(this.parameters.autoplay=1,this.parameters.volume=0,i.playsinline=1)}catch(s){}}n2const.isIOS&&this.parameters.controls&&(i.use_native_controls=1),1==this.parameters.center&&(i.controls=0,i.showinfo=0),1!=this.parameters.controls&&(i.autohide=1,i.controls=0),+(navigator.platform.toUpperCase().indexOf("MAC")>=0&&navigator.userAgent.search("Firefox")>-1)&&(i.html5=1);for(var r in this.parameters.query)this.parameters.query.hasOwnProperty(r)&&(i[r]=this.parameters.query[r]);var n={videoId:this.parameters.youtubecode,wmode:"opaque",playerVars:i,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),t.triggerHandler("n2play");break;case YT.PlayerState.PAUSED:t.triggerHandler("n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1);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),t.triggerHandler("n2stop"),this.setState("play",!1))}},this)}};this.parameters["privacy-enhanced"]&&(n.host="https://www.youtube-nocookie.com"),this.player=new YT.Player(this.playerId+"-frame",n),this.slide=this.slider.findSlideByElement(this.$playerElement),1==this.parameters.center&&(this.$playerElement.parent().css("overflow","hidden"),this.onResize(),this.slider.sliderElement.on("SliderResize",e.proxy(this.onResize,this)))},i.prototype.onReady=function(){var t=parseFloat(this.parameters.volume);t>0?this.setVolume(t):-1!==t&&this.player.mute(),(this.isStatic||-1!==e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.currentSlide)))&&this.setState("slide",!0,!0),1==this.parameters.autoplay&&this.slider.visible(e.proxy(this.initAutoplay,this)),this.isStatic||(this.slider.sliderElement.on("mainAnimationStart",e.proxy(function(t,i,s,r){-1==e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))?this.setState("slide",!1,!0):this.setState("slide",!0,!0)},this)),parseInt(this.parameters.reset)&&this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(t,i,s,r){-1==e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))&&this.player.seekTo(0)},this))),this.readyDeferred.resolve(),""!==this.parameters["scroll-pause"]?N2Classes.ScrollTracker.add(this.$playerElement,this.parameters["scroll-pause"],e.proxy(function(){this.setState("scroll",!0,!0)},this),e.proxy(function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)},this)):this.setState("scroll",!0,!0)},i.prototype.onResize=function(){var e=100,t=this.$playerElement.parent(),i=t.width(),s=t.height()+e,r=16/9,n={width:i,height:s,marginTop:0};n[n2const.rtl.marginLeft]=0,i/s>r?(n.height=i*r,n.marginTop=(s-n.height)/2):(n.width=s*r,n[n2const.rtl.marginLeft]=(i-n.width)/2),this.$playerElement.css(n)},i.prototype.initAutoplay=function(){this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(t,i,s,r){e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))>=0?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)},this)),e.inArray(this.slide,this.slider.getVisibleSlides())>=0&&(this.setState("play",!0),this.setState("slide",!0,!0)))},i.prototype.setState=function(e,t,i){i=i||!1,this.state[e]=t,i&&(this.state.play&&this.state.slide&&this.state.scroll?this.play():this.pause())},i.prototype.play=function(){this.isStopped()&&(this.slider.sliderElement.trigger("mediaStarted",this.playerId),this.player.playVideo())},i.prototype.pause=function(){this.isStopped()||this.player.pauseVideo()},i.prototype.stop=function(){this.player.stopVideo()},i.prototype.isStopped=function(){var e=this.player.getPlayerState();switch(e){case-1:case 0:case 2:case 5:return!0;default:return!1}},i.prototype.setVolume=function(e){this.player.setVolume(100*e)},i}),N2D("smartslider-frontend");
|
library/media/smartslider.css
CHANGED
@@ -68,6 +68,11 @@
|
|
68 |
box-shadow: none;
|
69 |
}
|
70 |
|
|
|
|
|
|
|
|
|
|
|
71 |
.n2-ss-slider h1.n2-ow,
|
72 |
.n2-ss-slider h2.n2-ow,
|
73 |
.n2-ss-slider h3.n2-ow,
|
@@ -951,4 +956,9 @@
|
|
951 |
|
952 |
.n2-clear {
|
953 |
clear: both;
|
|
|
|
|
|
|
|
|
|
|
954 |
}
|
68 |
box-shadow: none;
|
69 |
}
|
70 |
|
71 |
+
.n2-ss-slider .n2-ow-all b,
|
72 |
+
.n2-ss-slider .n2-ow-all i {
|
73 |
+
color: inherit;
|
74 |
+
}
|
75 |
+
|
76 |
.n2-ss-slider h1.n2-ow,
|
77 |
.n2-ss-slider h2.n2-ow,
|
78 |
.n2-ss-slider h3.n2-ow,
|
956 |
|
957 |
.n2-clear {
|
958 |
clear: both;
|
959 |
+
}
|
960 |
+
|
961 |
+
[data-force-hidden],
|
962 |
+
[data-force-hidden] * {
|
963 |
+
visibility: hidden !important;
|
964 |
}
|
library/media/smartslider.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.n2-in-fullscreen *{-webkit-animation-name:initial;animation-name:initial}.n2-in-fullscreen [data-uk-scrollspy*=uk-animation-]:not([data-uk-scrollspy*=target]){opacity:1}.n2-ss-align{position:relative;z-index:0;overflow:hidden}.n2-ss-align.n2-ss-align-visible{overflow:visible}.n2-ss-slider{-webkit-font-smoothing:antialiased}.n2-ss-slider,.n2-ss-slider .n2-ss-swipe-element{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent}.n2-ss-slider .n2-ss-swipe-element>*,.n2-ss-slider>*{-webkit-tap-highlight-color:initial}.n2-ss-slider .n2-ow,.n2-ss-slider .n2-ow-all *{font-size:inherit;line-height:inherit;letter-spacing:inherit}.n2-ss-slider .n2-ow,.n2-ss-slider .n2-ow-all *,.n2-ss-slider .n2-ow-all *:after,.n2-ss-slider .n2-ow-all *:before,.n2-ss-slider .n2-ow:after,.n2-ss-slider .n2-ow:before{-moz-box-sizing:content-box;box-sizing:content-box}.n2-ss-slider .n2-ow-all a,.n2-ss-slider a.n2-ow{border:0;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}.n2-ss-slider .n2-ow-all a,.n2-ss-slider .n2-ow-all a:focus,.n2-ss-slider a.n2-ow,.n2-ss-slider a.n2-ow:focus{outline:none!important;transition:none 0s;box-shadow:none}.n2-ss-slider .n2-ow-all h1,.n2-ss-slider .n2-ow-all h2,.n2-ss-slider .n2-ow-all h3,.n2-ss-slider .n2-ow-all h4,.n2-ss-slider .n2-ow-all h5,.n2-ss-slider .n2-ow-all h6,.n2-ss-slider .n2-ow-all p,.n2-ss-slider h1.n2-ow,.n2-ss-slider h2.n2-ow,.n2-ss-slider h3.n2-ow,.n2-ss-slider h4.n2-ow,.n2-ss-slider h5.n2-ow,.n2-ss-slider h6.n2-ow,.n2-ss-slider p.n2-ow{margin:0;padding-left:0;padding-right:0;height:auto;width:auto;border:0;box-shadow:none;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}.n2-ss-slider .n2-ow-all iframe,.n2-ss-slider iframe.n2-ow{margin:0}.n2-ss-slider .n2-ow-all img,.n2-ss-slider img.n2-ow{width:auto;box-shadow:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;background:0 0;padding:0;margin:0;border:0;vertical-align:top}.n2-ss-slider a.n2-ow,.n2-ss-slider button.n2-ow,.n2-ss-slider img.n2-ow,.n2-ss-slider input.n2-ow,.n2-ss-slider li.n2-ow,.n2-ss-slider ol.n2-ow,.n2-ss-slider p.n2-ow,.n2-ss-slider textarea.n2-ow,.n2-ss-slider ul.n2-ow{-moz-transition:none 0s;-webkit-transition:none 0s;-o-transition:none 0s;transition:none 0s}.n2-ss-slider p{background-color:transparent}.n2-ss-slider{z-index:3;position:relative;text-align:left;width:100%;min-height:1px}[dir=rtl] .n2-ss-slider{text-align:right}.n2-ss-slider :focus{outline:none}[dir=rtl] .n2-ss-slider .n2-ss-slide-background{text-align:left}.n2-ss-slider.n2-ss-load-fade{position:absolute;opacity:0;-webkit-transition:opacity .3s ease-in-out;-moz-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}.n2-ss-slider.n2-ss-load-fade.n2-ss-loaded{opacity:1;position:relative}.n2-ss-slider .unselectable{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.n2-ss-slider .n2noselftransition,.n2-ss-slider.n2notransition *{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;transition:none!important}.n2-ss-slider .n2-ss-slide{text-align:center}.n2-ss-slider .n2-ss-canvas,.n2-ss-slider .n2-ss-slide{position:relative;overflow:hidden!important}.n2-ss-slider .n2-ss-slide-background,.n2-ss-slider .n2-ss-slide-background *{position:absolute;top:0;left:0;width:100%;height:100%;text-align:left}.n2-ss-slider .n2-ss-slide-background{z-index:10}.n2-ss-slider .n2-ss-slide-background img{max-width:none;display:none;width:0;height:0}.n2-ss-slider .n2-ss-slide-background .n2-ss-slide-background-color{z-index:1}.n2-ss-slider .n2-ss-slide-background .n2-ss-slide-background-video{z-index:3}.n2-ss-slider .n2-ss-slide-background .n2-ss-slide-background-image{z-index:5}.n2-ss-slider .n2-ss-slide-background-image{width:100%;height:100%;background-position:50% 50%;background-repeat:no-repeat;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;-ms-box-sizing:content-box;box-sizing:content-box}.n2-ss-slider [data-mode=blurfit] .n2-ss-slide-background-image,.n2-ss-slider [data-mode=fill] .n2-ss-slide-background-image{background-size:cover}.n2-ss-slider [data-mode=blurfit] .n2-ss-slide-background-image+.n2-ss-slide-background-image,.n2-ss-slider [data-mode=fit] .n2-ss-slide-background-image{background-size:contain}.n2-ss-slider [data-mode=simple] .n2-ss-slide-background-image{background-size:cover}.n2-ss-slider [data-mode=stretch] .n2-ss-slide-background-image{background-size:100% 100%}.n2-ss-slider [data-mode=center] .n2-ss-slide-background-image{background-position:50% 50%}.n2-ss-slider [data-mode=tile] .n2-ss-slide-background-image{background-repeat:repeat}.n2-ss-slider [data-mode=fixed] .n2-ss-slide-background-image{background-size:cover}.n2-ss-slider .n2-ss-slide-background-video{position:absolute;top:0;left:0}.n2-ss-slider .n2-ss-layers-container{visibility:hidden;position:relative;width:100%;height:100%;display:flex;flex-direction:column;z-index:20}.n2-ss-slider .n2-ss-layers-container>*,.n2-ss-slider [onclick].n2-ss-layers-container{visibility:visible}.n2-ss-slider .n2-ss-layer{outline:1px solid RGBA(0,0,0,0);z-index:2}.n2-ss-slider .n2-ss-layer[data-pm=absolute]{position:absolute}.n2-ss-slider .n2-ss-layer[data-pm=default],.n2-ss-slider .n2-ss-layer[data-pm=normal]{position:relative;min-height:1px}.n2-ss-slider .n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer-rotation{width:100%;height:100%}.n2-ss-slider .n2-ss-layer-content .n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer-content .n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer-content .n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer-row .n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer-row .n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer-row .n2-ss-layer-rotation{height:auto;flex-grow:1}.n2-ss-slider .n2-ss-layer.n2-ss-layer-needsize .n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer.n2-ss-layer-needsize .n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer.n2-ss-layer-needsize .n2-ss-layer-rotation{height:100%}.n2-ss-slider .n2-ss-layer[data-sstype=col]>.n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer[data-sstype=col]>.n2-ss-layer-mask>.n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer[data-sstype=col]>.n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer[data-sstype=col]>.n2-ss-layer-parallax>.n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer[data-sstype=col]>.n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer[data-sstype=content]>.n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer[data-sstype=content]>.n2-ss-layer-mask>.n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer[data-sstype=content]>.n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer[data-sstype=content]>.n2-ss-layer-parallax>.n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer[data-sstype=content]>.n2-ss-layer-rotation{display:flex;flex-direction:column}.n2-ss-slider .n2-ss-layer-group{visibility:hidden;width:100%;height:100%;position:absolute;left:0;top:0;z-index:2}.n2-ss-slider .n2-ss-layer-group>.n2-ss-layer-parallax,.n2-ss-slider .n2-ss-static-slide div[data-sstype=content][data-hasbackground="0"],.n2-ss-slider .n2-ss-static-slide div[data-sstype=content][data-hasbackground="0"] div.n2-ss-section-main-content{visibility:hidden}.n2-ss-slider .n2-ss-layer-group>*,.n2-ss-slider .n2-ss-layer-group>.n2-ss-layer-parallax>*{visibility:visible}.n2-ss-slider.n2-ss-mobile .n2-ss-slider-1,.n2-ss-slider.n2-ss-tablet .n2-ss-slider-1{background-attachment:scroll!important}.n2-ss-slider .n2-ss-widget{position:relative;display:none;-webkit-backface-visibility:hidden;-webkit-perspective:1000px;z-index:12;font-size:16px;-webkit-transition:opacity .4s ease;-moz-transition:opacity .4s ease;-o-transition:opacity .4s ease;transition:opacity .4s ease;opacity:1}.n2-ss-slider .n2-ss-widget[data-position=above],.n2-ss-slider .n2-ss-widget[data-position=below]{margin-left:auto;margin-right:auto}.n2-ss-slider .n2-ss-widget.n2-ss-widget-hidden{opacity:0!important;pointer-events:none}.n2-ss-slider.n2-ss-tablet .n2-ss-widget{font-size:14px}.n2-ss-slider.n2-ss-mobile .n2-ss-widget{font-size:12px}.n2-ss-slider .n2-ss-mobile,.n2-ss-slider .n2-ss-tablet,.n2-ss-slider.n2-ss-mobile .n2-ss-desktop,.n2-ss-slider.n2-ss-tablet .n2-ss-desktop{display:none}.n2-ss-slider .n2-ss-desktop,.n2-ss-slider.n2-ss-desktop .n2-ss-desktop,.n2-ss-slider.n2-ss-desktop .n2-ss-widget-display-desktop,.n2-ss-slider.n2-ss-mobile .n2-ss-mobile,.n2-ss-slider.n2-ss-mobile .n2-ss-widget-display-mobile,.n2-ss-slider.n2-ss-tablet .n2-ss-tablet,.n2-ss-slider.n2-ss-tablet .n2-ss-widget-display-tablet{display:block}.n2-ss-slider .n2-ss-desktop.n2-ib,.n2-ss-slider.n2-ss-desktop .n2-ss-desktop.n2-ib,.n2-ss-slider.n2-ss-desktop .n2-ss-widget-display-desktop.n2-ib,.n2-ss-slider.n2-ss-mobile .n2-ss-mobile.n2-ib,.n2-ss-slider.n2-ss-mobile .n2-ss-widget-display-mobile.n2-ib,.n2-ss-slider.n2-ss-tablet .n2-ss-tablet.n2-ib,.n2-ss-slider.n2-ss-tablet .n2-ss-widget-display-tablet.n2-ib{display:inline-block}.n2-ss-slider.n2-ss-desktop .n2-ss-widget-display-desktop.n2-flex,.n2-ss-slider.n2-ss-mobile .n2-ss-widget-display-mobile.n2-flex,.n2-ss-slider.n2-ss-tablet .n2-ss-widget-display-tablet.n2-flex{display:flex}.n2-ss-slider.n2-ss-desktop .n2-ss-widget-display-desktop.n2-inline-flex,.n2-ss-slider.n2-ss-mobile .n2-ss-widget-display-mobile.n2-inline-flex,.n2-ss-slider.n2-ss-tablet .n2-ss-widget-display-tablet.n2-inline-flex{display:inline-flex}.n2-ss-slider .n2-ss-widget-always{-webkit-transform:translate3d(0,0,0)}.n2-ss-slider .n2-ss-static-slide{display:flex;flex-direction:column;position:absolute;top:0;left:0;width:100%;height:100%;z-index:25;visibility:hidden;-webkit-backface-visibility:hidden}.n2-ss-slider .n2-ss-shape-divider.n2-ss-divider-animate .n2-ss-divider-start,.n2-ss-slider .n2-ss-static-slide .n2-ss-layer,.n2-ss-slider .n2-ss-static-slide .n2-ss-section-main-content>div,.n2-ss-slider .n2-ss-static-slide div[data-sstype=content]>div,.n2-ss-slider .n2-ss-static-slide>div{visibility:visible}.n2-ss-slider .n2-ss-shape-divider{position:absolute;left:0;width:100%;height:100px;pointer-events:none;z-index:13}.n2-ss-slider .n2-ss-shape-divider-inner{height:100%}.n2-ss-slider .n2-ss-shape-divider svg{display:block;height:100%;width:100%}.n2-ss-slider .n2-ss-shape-divider-top{top:0}.n2-ss-slider .n2-ss-shape-divider-top.n2-ss-flip-horizontal{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.n2-ss-slider .n2-ss-shape-divider-bottom{bottom:0;-webkit-transform:scaleY(-1);transform:scaleY(-1)}.n2-ss-slider .n2-ss-shape-divider-bottom.n2-ss-flip-horizontal{-webkit-transform:scale(-1);transform:scale(-1)}.n2-ss-slider .n2-ss-shape-divider .n2-ss-divider-start,.n2-ss-slider .n2-ss-shape-divider.n2-ss-divider-animate .n2-ss-divider-end{visibility:hidden}.n2-ss-slider .n2-ss-slide .nextend-slide-bg{position:absolute;top:0;left:0;width:100%;max-width:none!important;height:auto;background:rgba(0,0,0,.002)}.n2-ss-slider video.n2-ow{max-width:none}.n2-ss-slider .n2-ss-item-iframe-wrapper{-webkit-overflow-scrolling:touch;overflow-y:auto;height:100%}.n2-ss-slider .n2i{vertical-align:top}.n2-ss-slider iframe.n2-ow{max-width:none;display:block}.n2-ss-slider .n2-ss-item-iframe{height:100%}.n2-ss-slider .n2-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.n2-ss-slider .n2-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.n2-ss-slider .n2-ss-item-input-form{display:flex;flex-flow:row}.n2-ss-slider .n2-ss-item-input-form .n2-input{flex:1 1 auto}.n2-ss-slider .n2-ss-item-input-form .n2-form-button{margin:0}.n2-ss-slider .n2-input,.n2-ss-slider form.n2-ow{margin:0;border:0;padding:0}.n2-ss-slider .n2-input{height:auto;width:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:inline-block;vertical-align:middle;white-space:normal;background:0 0;line-height:1;font-size:13px;font-family:Arial;box-shadow:none}.n2-ss-slider input.n2-ow:focus{outline:0}.n2-ss-slider input.n2-ow[placeholder]{overflow:hidden;text-overflow:clip}.n2-ss-slider ::-moz-placeholder,.n2-ss-slider input.n2-ow:-moz-placeholder{text-overflow:clip;color:inherit}.n2-ss-slider input.n2-ow::-webkit-input-placeholder,.n2-ss-slider input.n2-ow::placeholder{color:inherit}.n2-ss-slider table.n2-ow{table-layout:auto;margin:0}.n2-ss-slider .n2-ow .n2-ss-thumbnail-type{width:48px;height:48px;margin-left:-24px;margin-top:-24px;position:absolute;left:50%;top:50%}.n2-ss-slider .n2-ss-icon-normal{display:inline-block}.n2-ss-slider .n2-ss-icon-has-hover:HOVER .n2-ss-icon-normal,.n2-ss-slider .n2-ss-icon-hover{display:none}.n2-ss-slider .n2-ss-icon-has-hover:HOVER .n2-ss-icon-hover{display:inline-block}.n2-ss-slider .n2-ss-section-main-content .n2-ss-item{float:none}.n2-ss-slider .n2-ss-section-main-content>.n2-ss-layer[data-sstype=row]{width:100%}.n2-ss-slider .n2-ss-section-main-content>.n2-ss-layer[data-sstype=row][data-frontend-fullwidth="0"]{width:auto}.n2-ss-slider [data-frontend-fullwidth="0"][data-sstype=row]>.n2-ss-layer-row[row-wrapped="0"]>.n2-ss-layer-row-inner>.n2-ss-layer{width:auto!important;flex:0 1 auto}[data-ie] .n2-ss-slider [data-frontend-fullwidth="0"][data-sstype=row]>.n2-ss-layer-row[row-wrapped="0"]>.n2-ss-layer-row-inner>.n2-ss-layer{display:inline-block;flex:none;max-width:100%}.n2-ss-slider [data-frontend-fullwidth="0"][data-sstype=row]>.n2-ss-layer-row[row-wrapped="0"]>.n2-ss-layer-row-inner,.n2-ss-slider [row-wrapped="1"]>.n2-ss-layer-row-inner{flex-wrap:wrap}.n2-ss-slider .n2-ss-layer[data-sstype=row].n2-ss-stretch-layer{display:flex;flex:1 1 auto}.n2-ss-slider .n2-ss-layer[data-sstype=row].n2-ss-stretch-layer>.n2-ss-layer-mask{display:flex}.n2-ss-slider .n2-ss-layer-row{box-sizing:border-box;display:flex}.n2-ss-slider .n2-ss-layer-row-inner{box-sizing:border-box;display:flex;visibility:hidden}.n2-ss-slider .n2-ss-layer-row-inner>*{visibility:visible}.n2-ss-slider .n2-ss-layer[data-sstype=row].n2-ss-stretch-layer .n2-ss-layer-row{height:auto;width:100%}.n2-ss-slider .n2-ss-layer-row>.n2-ss-layer{box-sizing:border-box;width:1px;flex:1 1 auto}.n2-ss-slider .n2-ss-layer-row .n2-ss-item{float:none}.n2-ss-slider .n2-ss-layer-content .n2-ss-layer{width:auto}.n2-ss-slider .n2-ss-layer-content .n2-ss-layer[data-pm=normal]{max-width:100%}.n2-ss-slider .n2-ss-layer[data-sstype=content]{position:relative;width:100%;height:100%;z-index:2}.n2-ss-slider .n2-ss-section-main-content{display:flex;justify-content:center;flex-direction:column}.n2-ss-slider .n2-ss-layer-content{display:flex;flex-direction:column;justify-content:flex-start;box-sizing:border-box;position:relative;min-height:100%;height:40px}.n2-ss-slider .n2-ss-layer-content .n2-ss-layer-needsize{width:100%}.n2-ss-slider .n2-ss-layer-content[data-alignitems=stretch]{align-items:stretch}.n2-ss-slider .n2-ss-layer-content[data-alignitems=flex-start]{align-items:flex-start}.n2-ss-slider .n2-ss-layer-content[data-alignitems=center]{align-items:center}.n2-ss-slider .n2-ss-layer-content[data-alignitems=flex-end]{align-items:flex-end}.n2-ss-slider .n2-ss-layer-content[data-verticalalign=flex-start]{justify-content:flex-start}.n2-ss-slider .n2-ss-layer-content[data-verticalalign=center]{justify-content:center}.n2-ss-slider .n2-ss-layer-content[data-verticalalign=flex-end]{justify-content:flex-end}.n2-ss-slider .n2-ss-layer-content[data-verticalalign=space-around]{justify-content:space-around}.n2-ss-slider .n2-ss-layer-content[data-verticalalign=space-between]{justify-content:space-between}.n2-ss-slider .n2-ss-layer[data-sstype=col]{display:flex;flex-flow:column;order:10;flex:1 1 auto}.n2-ss-slider .n2-ss-layer[data-sstype=col][data-has-maxwidth="1"]{align-self:stretch}.n2-ss-slider .n2-ss-layer-col{box-sizing:border-box;position:relative;width:100%;height:auto;flex:1 1 auto}.n2-ss-slider .n2-ss-layer-col>.n2-ss-layer{flex:0 0 auto}.n2-ss-slider .n2-ss-section-main-content-calc{min-height:0;height:auto}.n2-ss-slider [data-csstextalign=left]{text-align:left}.n2-ss-slider [data-csstextalign=center]{text-align:center}.n2-ss-slider [data-csstextalign=right]{text-align:right}.n2-ss-slider .n2-ss-layer[data-has-maxwidth="1"][data-pm=normal]{width:100%}.n2-ss-slider [data-csstextalign=left] [data-frontend-fullwidth="0"],.n2-ss-slider [data-csstextalign=left] [data-has-maxwidth="1"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=center]):not([data-csstextalign=right]):not([data-csstextalign=inherit]) [data-frontend-fullwidth="0"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=center]):not([data-csstextalign=right]):not([data-csstextalign=inherit]) [data-has-maxwidth="1"]{align-self:flex-start}.n2-ss-slider [data-csstextalign=center] [data-frontend-fullwidth="0"],.n2-ss-slider [data-csstextalign=center] [data-has-maxwidth="1"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=left]):not([data-csstextalign=right]):not([data-csstextalign=inherit]) [data-frontend-fullwidth="0"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=left]):not([data-csstextalign=right]):not([data-csstextalign=inherit]) [data-has-maxwidth="1"]{align-self:center}.n2-ss-slider [data-csstextalign=right] [data-frontend-fullwidth="0"],.n2-ss-slider [data-csstextalign=right] [data-has-maxwidth="1"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=left]):not([data-csstextalign=center]):not([data-csstextalign=inherit]) [data-frontend-fullwidth="0"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=left]):not([data-csstextalign=center]):not([data-csstextalign=inherit]) [data-has-maxwidth="1"]{align-self:flex-end}.n2-ss-slider .n2-ss-layer-content>[data-cssselfalign=left],.n2-ss-slider [data-frontend-fullwidth="0"][data-cssselfalign=left],.n2-ss-slider [data-has-maxwidth="1"][data-cssselfalign=left]{align-self:flex-start!important}.n2-ss-slider .n2-ss-layer-content>[data-cssselfalign=center],.n2-ss-slider [data-frontend-fullwidth="0"][data-cssselfalign=center],.n2-ss-slider [data-has-maxwidth="1"][data-cssselfalign=center]{align-self:center!important}.n2-ss-slider .n2-ss-layer-content>[data-cssselfalign=right],.n2-ss-slider [data-frontend-fullwidth="0"][data-cssselfalign=right],.n2-ss-slider [data-has-maxwidth="1"][data-cssselfalign=right]{align-self:flex-end!important}.n2-ss-slider .n2-ss-layer[data-has-maxwidth="1"][data-sstype=col]{align-self:stretch!important}.n2-ss-slider [data-frontend-fullwidth="1"][data-has-maxwidth="0"][data-cssselfalign]{align-self:initial!important}.n2-ss-slider .n2-ss-layer-inline{flex-direction:row;flex-wrap:wrap}.n2-ss-slider .n2-ss-img-wrapper,.n2-ss-slider .n2-ss-img-wrapper img{line-height:0}.n2-ss-slider .n2-ss-layer-player,.n2-ss-slider .n2-ss-layer-player>*{position:absolute;top:0;left:0;width:100%;height:100%}.n2-ss-slider .n2-ss-layer-player-cover img{position:absolute;left:50%;top:50%;width:48px;height:48px;margin-left:-24px;margin-top:-24px}.n2-clear{clear:both}
|
1 |
+
.n2-in-fullscreen *{-webkit-animation-name:initial;animation-name:initial}.n2-in-fullscreen [data-uk-scrollspy*=uk-animation-]:not([data-uk-scrollspy*=target]){opacity:1}.n2-ss-align{position:relative;z-index:0;overflow:hidden}.n2-ss-align.n2-ss-align-visible{overflow:visible}.n2-ss-slider{-webkit-font-smoothing:antialiased}.n2-ss-slider,.n2-ss-slider .n2-ss-swipe-element{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent}.n2-ss-slider .n2-ss-swipe-element>*,.n2-ss-slider>*{-webkit-tap-highlight-color:initial}.n2-ss-slider .n2-ow,.n2-ss-slider .n2-ow-all *{font-size:inherit;line-height:inherit;letter-spacing:inherit}.n2-ss-slider .n2-ow,.n2-ss-slider .n2-ow-all *,.n2-ss-slider .n2-ow-all *:after,.n2-ss-slider .n2-ow-all *:before,.n2-ss-slider .n2-ow:after,.n2-ss-slider .n2-ow:before{-moz-box-sizing:content-box;box-sizing:content-box}.n2-ss-slider .n2-ow-all a,.n2-ss-slider a.n2-ow{border:0;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}.n2-ss-slider .n2-ow-all a,.n2-ss-slider .n2-ow-all a:focus,.n2-ss-slider a.n2-ow,.n2-ss-slider a.n2-ow:focus{outline:none!important;transition:none 0s;box-shadow:none}.n2-ss-slider .n2-ow-all b,.n2-ss-slider .n2-ow-all i{color:inherit}.n2-ss-slider .n2-ow-all h1,.n2-ss-slider .n2-ow-all h2,.n2-ss-slider .n2-ow-all h3,.n2-ss-slider .n2-ow-all h4,.n2-ss-slider .n2-ow-all h5,.n2-ss-slider .n2-ow-all h6,.n2-ss-slider .n2-ow-all p,.n2-ss-slider h1.n2-ow,.n2-ss-slider h2.n2-ow,.n2-ss-slider h3.n2-ow,.n2-ss-slider h4.n2-ow,.n2-ss-slider h5.n2-ow,.n2-ss-slider h6.n2-ow,.n2-ss-slider p.n2-ow{margin:0;padding-left:0;padding-right:0;height:auto;width:auto;border:0;box-shadow:none;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}.n2-ss-slider .n2-ow-all iframe,.n2-ss-slider iframe.n2-ow{margin:0}.n2-ss-slider .n2-ow-all img,.n2-ss-slider img.n2-ow{width:auto;box-shadow:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;background:0 0;padding:0;margin:0;border:0;vertical-align:top}.n2-ss-slider a.n2-ow,.n2-ss-slider button.n2-ow,.n2-ss-slider img.n2-ow,.n2-ss-slider input.n2-ow,.n2-ss-slider li.n2-ow,.n2-ss-slider ol.n2-ow,.n2-ss-slider p.n2-ow,.n2-ss-slider textarea.n2-ow,.n2-ss-slider ul.n2-ow{-moz-transition:none 0s;-webkit-transition:none 0s;-o-transition:none 0s;transition:none 0s}.n2-ss-slider p{background-color:transparent}.n2-ss-slider{z-index:3;position:relative;text-align:left;width:100%;min-height:1px}[dir=rtl] .n2-ss-slider{text-align:right}.n2-ss-slider :focus{outline:none}[dir=rtl] .n2-ss-slider .n2-ss-slide-background{text-align:left}.n2-ss-slider.n2-ss-load-fade{position:absolute;opacity:0;-webkit-transition:opacity .3s ease-in-out;-moz-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}.n2-ss-slider.n2-ss-load-fade.n2-ss-loaded{opacity:1;position:relative}.n2-ss-slider .unselectable{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.n2-ss-slider .n2noselftransition,.n2-ss-slider.n2notransition *{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;transition:none!important}.n2-ss-slider .n2-ss-slide{text-align:center}.n2-ss-slider .n2-ss-canvas,.n2-ss-slider .n2-ss-slide{position:relative;overflow:hidden!important}.n2-ss-slider .n2-ss-slide-background,.n2-ss-slider .n2-ss-slide-background *{position:absolute;top:0;left:0;width:100%;height:100%;text-align:left}.n2-ss-slider .n2-ss-slide-background{z-index:10}.n2-ss-slider .n2-ss-slide-background img{max-width:none;display:none;width:0;height:0}.n2-ss-slider .n2-ss-slide-background .n2-ss-slide-background-color{z-index:1}.n2-ss-slider .n2-ss-slide-background .n2-ss-slide-background-video{z-index:3}.n2-ss-slider .n2-ss-slide-background .n2-ss-slide-background-image{z-index:5}.n2-ss-slider .n2-ss-slide-background-image{width:100%;height:100%;background-position:50% 50%;background-repeat:no-repeat;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;-ms-box-sizing:content-box;box-sizing:content-box}.n2-ss-slider [data-mode=blurfit] .n2-ss-slide-background-image,.n2-ss-slider [data-mode=fill] .n2-ss-slide-background-image{background-size:cover}.n2-ss-slider [data-mode=blurfit] .n2-ss-slide-background-image+.n2-ss-slide-background-image,.n2-ss-slider [data-mode=fit] .n2-ss-slide-background-image{background-size:contain}.n2-ss-slider [data-mode=simple] .n2-ss-slide-background-image{background-size:cover}.n2-ss-slider [data-mode=stretch] .n2-ss-slide-background-image{background-size:100% 100%}.n2-ss-slider [data-mode=center] .n2-ss-slide-background-image{background-position:50% 50%}.n2-ss-slider [data-mode=tile] .n2-ss-slide-background-image{background-repeat:repeat}.n2-ss-slider [data-mode=fixed] .n2-ss-slide-background-image{background-size:cover}.n2-ss-slider .n2-ss-slide-background-video{position:absolute;top:0;left:0}.n2-ss-slider .n2-ss-layers-container{visibility:hidden;position:relative;width:100%;height:100%;display:flex;flex-direction:column;z-index:20}.n2-ss-slider .n2-ss-layers-container>*,.n2-ss-slider [onclick].n2-ss-layers-container{visibility:visible}.n2-ss-slider .n2-ss-layer{outline:1px solid RGBA(0,0,0,0);z-index:2}.n2-ss-slider .n2-ss-layer[data-pm=absolute]{position:absolute}.n2-ss-slider .n2-ss-layer[data-pm=default],.n2-ss-slider .n2-ss-layer[data-pm=normal]{position:relative;min-height:1px}.n2-ss-slider .n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer-rotation{width:100%;height:100%}.n2-ss-slider .n2-ss-layer-content .n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer-content .n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer-content .n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer-row .n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer-row .n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer-row .n2-ss-layer-rotation{height:auto;flex-grow:1}.n2-ss-slider .n2-ss-layer.n2-ss-layer-needsize .n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer.n2-ss-layer-needsize .n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer.n2-ss-layer-needsize .n2-ss-layer-rotation{height:100%}.n2-ss-slider .n2-ss-layer[data-sstype=col]>.n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer[data-sstype=col]>.n2-ss-layer-mask>.n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer[data-sstype=col]>.n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer[data-sstype=col]>.n2-ss-layer-parallax>.n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer[data-sstype=col]>.n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer[data-sstype=content]>.n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer[data-sstype=content]>.n2-ss-layer-mask>.n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer[data-sstype=content]>.n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer[data-sstype=content]>.n2-ss-layer-parallax>.n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer[data-sstype=content]>.n2-ss-layer-rotation{display:flex;flex-direction:column}.n2-ss-slider .n2-ss-layer-group{visibility:hidden;width:100%;height:100%;position:absolute;left:0;top:0;z-index:2}.n2-ss-slider .n2-ss-layer-group>.n2-ss-layer-parallax,.n2-ss-slider .n2-ss-static-slide div[data-sstype=content][data-hasbackground="0"],.n2-ss-slider .n2-ss-static-slide div[data-sstype=content][data-hasbackground="0"] div.n2-ss-section-main-content{visibility:hidden}.n2-ss-slider .n2-ss-layer-group>*,.n2-ss-slider .n2-ss-layer-group>.n2-ss-layer-parallax>*{visibility:visible}.n2-ss-slider.n2-ss-mobile .n2-ss-slider-1,.n2-ss-slider.n2-ss-tablet .n2-ss-slider-1{background-attachment:scroll!important}.n2-ss-slider .n2-ss-widget{position:relative;display:none;-webkit-backface-visibility:hidden;-webkit-perspective:1000px;z-index:12;font-size:16px;-webkit-transition:opacity .4s ease;-moz-transition:opacity .4s ease;-o-transition:opacity .4s ease;transition:opacity .4s ease;opacity:1}.n2-ss-slider .n2-ss-widget[data-position=above],.n2-ss-slider .n2-ss-widget[data-position=below]{margin-left:auto;margin-right:auto}.n2-ss-slider .n2-ss-widget.n2-ss-widget-hidden{opacity:0!important;pointer-events:none}.n2-ss-slider.n2-ss-tablet .n2-ss-widget{font-size:14px}.n2-ss-slider.n2-ss-mobile .n2-ss-widget{font-size:12px}.n2-ss-slider .n2-ss-mobile,.n2-ss-slider .n2-ss-tablet,.n2-ss-slider.n2-ss-mobile .n2-ss-desktop,.n2-ss-slider.n2-ss-tablet .n2-ss-desktop{display:none}.n2-ss-slider .n2-ss-desktop,.n2-ss-slider.n2-ss-desktop .n2-ss-desktop,.n2-ss-slider.n2-ss-desktop .n2-ss-widget-display-desktop,.n2-ss-slider.n2-ss-mobile .n2-ss-mobile,.n2-ss-slider.n2-ss-mobile .n2-ss-widget-display-mobile,.n2-ss-slider.n2-ss-tablet .n2-ss-tablet,.n2-ss-slider.n2-ss-tablet .n2-ss-widget-display-tablet{display:block}.n2-ss-slider .n2-ss-desktop.n2-ib,.n2-ss-slider.n2-ss-desktop .n2-ss-desktop.n2-ib,.n2-ss-slider.n2-ss-desktop .n2-ss-widget-display-desktop.n2-ib,.n2-ss-slider.n2-ss-mobile .n2-ss-mobile.n2-ib,.n2-ss-slider.n2-ss-mobile .n2-ss-widget-display-mobile.n2-ib,.n2-ss-slider.n2-ss-tablet .n2-ss-tablet.n2-ib,.n2-ss-slider.n2-ss-tablet .n2-ss-widget-display-tablet.n2-ib{display:inline-block}.n2-ss-slider.n2-ss-desktop .n2-ss-widget-display-desktop.n2-flex,.n2-ss-slider.n2-ss-mobile .n2-ss-widget-display-mobile.n2-flex,.n2-ss-slider.n2-ss-tablet .n2-ss-widget-display-tablet.n2-flex{display:flex}.n2-ss-slider.n2-ss-desktop .n2-ss-widget-display-desktop.n2-inline-flex,.n2-ss-slider.n2-ss-mobile .n2-ss-widget-display-mobile.n2-inline-flex,.n2-ss-slider.n2-ss-tablet .n2-ss-widget-display-tablet.n2-inline-flex{display:inline-flex}.n2-ss-slider .n2-ss-widget-always{-webkit-transform:translate3d(0,0,0)}.n2-ss-slider .n2-ss-static-slide{display:flex;flex-direction:column;position:absolute;top:0;left:0;width:100%;height:100%;z-index:25;visibility:hidden;-webkit-backface-visibility:hidden}.n2-ss-slider .n2-ss-shape-divider.n2-ss-divider-animate .n2-ss-divider-start,.n2-ss-slider .n2-ss-static-slide .n2-ss-layer,.n2-ss-slider .n2-ss-static-slide .n2-ss-section-main-content>div,.n2-ss-slider .n2-ss-static-slide div[data-sstype=content]>div,.n2-ss-slider .n2-ss-static-slide>div{visibility:visible}.n2-ss-slider .n2-ss-shape-divider{position:absolute;left:0;width:100%;height:100px;pointer-events:none;z-index:13}.n2-ss-slider .n2-ss-shape-divider-inner{height:100%}.n2-ss-slider .n2-ss-shape-divider svg{display:block;height:100%;width:100%}.n2-ss-slider .n2-ss-shape-divider-top{top:0}.n2-ss-slider .n2-ss-shape-divider-top.n2-ss-flip-horizontal{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.n2-ss-slider .n2-ss-shape-divider-bottom{bottom:0;-webkit-transform:scaleY(-1);transform:scaleY(-1)}.n2-ss-slider .n2-ss-shape-divider-bottom.n2-ss-flip-horizontal{-webkit-transform:scale(-1);transform:scale(-1)}.n2-ss-slider .n2-ss-shape-divider .n2-ss-divider-start,.n2-ss-slider .n2-ss-shape-divider.n2-ss-divider-animate .n2-ss-divider-end{visibility:hidden}.n2-ss-slider .n2-ss-slide .nextend-slide-bg{position:absolute;top:0;left:0;width:100%;max-width:none!important;height:auto;background:rgba(0,0,0,.002)}.n2-ss-slider video.n2-ow{max-width:none}.n2-ss-slider .n2-ss-item-iframe-wrapper{-webkit-overflow-scrolling:touch;overflow-y:auto;height:100%}.n2-ss-slider .n2i{vertical-align:top}.n2-ss-slider iframe.n2-ow{max-width:none;display:block}.n2-ss-slider .n2-ss-item-iframe{height:100%}.n2-ss-slider .n2-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.n2-ss-slider .n2-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.n2-ss-slider .n2-ss-item-input-form{display:flex;flex-flow:row}.n2-ss-slider .n2-ss-item-input-form .n2-input{flex:1 1 auto}.n2-ss-slider .n2-ss-item-input-form .n2-form-button{margin:0}.n2-ss-slider .n2-input,.n2-ss-slider form.n2-ow{margin:0;border:0;padding:0}.n2-ss-slider .n2-input{height:auto;width:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:inline-block;vertical-align:middle;white-space:normal;background:0 0;line-height:1;font-size:13px;font-family:Arial;box-shadow:none}.n2-ss-slider input.n2-ow:focus{outline:0}.n2-ss-slider input.n2-ow[placeholder]{overflow:hidden;text-overflow:clip}.n2-ss-slider ::-moz-placeholder,.n2-ss-slider input.n2-ow:-moz-placeholder{text-overflow:clip;color:inherit}.n2-ss-slider input.n2-ow::-webkit-input-placeholder,.n2-ss-slider input.n2-ow::placeholder{color:inherit}.n2-ss-slider table.n2-ow{table-layout:auto;margin:0}.n2-ss-slider .n2-ow .n2-ss-thumbnail-type{width:48px;height:48px;margin-left:-24px;margin-top:-24px;position:absolute;left:50%;top:50%}.n2-ss-slider .n2-ss-icon-normal{display:inline-block}.n2-ss-slider .n2-ss-icon-has-hover:HOVER .n2-ss-icon-normal,.n2-ss-slider .n2-ss-icon-hover{display:none}.n2-ss-slider .n2-ss-icon-has-hover:HOVER .n2-ss-icon-hover{display:inline-block}.n2-ss-slider .n2-ss-section-main-content .n2-ss-item{float:none}.n2-ss-slider .n2-ss-section-main-content>.n2-ss-layer[data-sstype=row]{width:100%}.n2-ss-slider .n2-ss-section-main-content>.n2-ss-layer[data-sstype=row][data-frontend-fullwidth="0"]{width:auto}.n2-ss-slider [data-frontend-fullwidth="0"][data-sstype=row]>.n2-ss-layer-row[row-wrapped="0"]>.n2-ss-layer-row-inner>.n2-ss-layer{width:auto!important;flex:0 1 auto}[data-ie] .n2-ss-slider [data-frontend-fullwidth="0"][data-sstype=row]>.n2-ss-layer-row[row-wrapped="0"]>.n2-ss-layer-row-inner>.n2-ss-layer{display:inline-block;flex:none;max-width:100%}.n2-ss-slider [data-frontend-fullwidth="0"][data-sstype=row]>.n2-ss-layer-row[row-wrapped="0"]>.n2-ss-layer-row-inner,.n2-ss-slider [row-wrapped="1"]>.n2-ss-layer-row-inner{flex-wrap:wrap}.n2-ss-slider .n2-ss-layer[data-sstype=row].n2-ss-stretch-layer{display:flex;flex:1 1 auto}.n2-ss-slider .n2-ss-layer[data-sstype=row].n2-ss-stretch-layer>.n2-ss-layer-mask{display:flex}.n2-ss-slider .n2-ss-layer-row{box-sizing:border-box;display:flex}.n2-ss-slider .n2-ss-layer-row-inner{box-sizing:border-box;display:flex;visibility:hidden}.n2-ss-slider .n2-ss-layer-row-inner>*{visibility:visible}.n2-ss-slider .n2-ss-layer[data-sstype=row].n2-ss-stretch-layer .n2-ss-layer-row{height:auto;width:100%}.n2-ss-slider .n2-ss-layer-row>.n2-ss-layer{box-sizing:border-box;width:1px;flex:1 1 auto}.n2-ss-slider .n2-ss-layer-row .n2-ss-item{float:none}.n2-ss-slider .n2-ss-layer-content .n2-ss-layer{width:auto}.n2-ss-slider .n2-ss-layer-content .n2-ss-layer[data-pm=normal]{max-width:100%}.n2-ss-slider .n2-ss-layer[data-sstype=content]{position:relative;width:100%;height:100%;z-index:2}.n2-ss-slider .n2-ss-section-main-content{display:flex;justify-content:center;flex-direction:column}.n2-ss-slider .n2-ss-layer-content{display:flex;flex-direction:column;justify-content:flex-start;box-sizing:border-box;position:relative;min-height:100%;height:40px}.n2-ss-slider .n2-ss-layer-content .n2-ss-layer-needsize{width:100%}.n2-ss-slider .n2-ss-layer-content[data-alignitems=stretch]{align-items:stretch}.n2-ss-slider .n2-ss-layer-content[data-alignitems=flex-start]{align-items:flex-start}.n2-ss-slider .n2-ss-layer-content[data-alignitems=center]{align-items:center}.n2-ss-slider .n2-ss-layer-content[data-alignitems=flex-end]{align-items:flex-end}.n2-ss-slider .n2-ss-layer-content[data-verticalalign=flex-start]{justify-content:flex-start}.n2-ss-slider .n2-ss-layer-content[data-verticalalign=center]{justify-content:center}.n2-ss-slider .n2-ss-layer-content[data-verticalalign=flex-end]{justify-content:flex-end}.n2-ss-slider .n2-ss-layer-content[data-verticalalign=space-around]{justify-content:space-around}.n2-ss-slider .n2-ss-layer-content[data-verticalalign=space-between]{justify-content:space-between}.n2-ss-slider .n2-ss-layer[data-sstype=col]{display:flex;flex-flow:column;order:10;flex:1 1 auto}.n2-ss-slider .n2-ss-layer[data-sstype=col][data-has-maxwidth="1"]{align-self:stretch}.n2-ss-slider .n2-ss-layer-col{box-sizing:border-box;position:relative;width:100%;height:auto;flex:1 1 auto}.n2-ss-slider .n2-ss-layer-col>.n2-ss-layer{flex:0 0 auto}.n2-ss-slider .n2-ss-section-main-content-calc{min-height:0;height:auto}.n2-ss-slider [data-csstextalign=left]{text-align:left}.n2-ss-slider [data-csstextalign=center]{text-align:center}.n2-ss-slider [data-csstextalign=right]{text-align:right}.n2-ss-slider .n2-ss-layer[data-has-maxwidth="1"][data-pm=normal]{width:100%}.n2-ss-slider [data-csstextalign=left] [data-frontend-fullwidth="0"],.n2-ss-slider [data-csstextalign=left] [data-has-maxwidth="1"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=center]):not([data-csstextalign=right]):not([data-csstextalign=inherit]) [data-frontend-fullwidth="0"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=center]):not([data-csstextalign=right]):not([data-csstextalign=inherit]) [data-has-maxwidth="1"]{align-self:flex-start}.n2-ss-slider [data-csstextalign=center] [data-frontend-fullwidth="0"],.n2-ss-slider [data-csstextalign=center] [data-has-maxwidth="1"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=left]):not([data-csstextalign=right]):not([data-csstextalign=inherit]) [data-frontend-fullwidth="0"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=left]):not([data-csstextalign=right]):not([data-csstextalign=inherit]) [data-has-maxwidth="1"]{align-self:center}.n2-ss-slider [data-csstextalign=right] [data-frontend-fullwidth="0"],.n2-ss-slider [data-csstextalign=right] [data-has-maxwidth="1"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=left]):not([data-csstextalign=center]):not([data-csstextalign=inherit]) [data-frontend-fullwidth="0"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=left]):not([data-csstextalign=center]):not([data-csstextalign=inherit]) [data-has-maxwidth="1"]{align-self:flex-end}.n2-ss-slider .n2-ss-layer-content>[data-cssselfalign=left],.n2-ss-slider [data-frontend-fullwidth="0"][data-cssselfalign=left],.n2-ss-slider [data-has-maxwidth="1"][data-cssselfalign=left]{align-self:flex-start!important}.n2-ss-slider .n2-ss-layer-content>[data-cssselfalign=center],.n2-ss-slider [data-frontend-fullwidth="0"][data-cssselfalign=center],.n2-ss-slider [data-has-maxwidth="1"][data-cssselfalign=center]{align-self:center!important}.n2-ss-slider .n2-ss-layer-content>[data-cssselfalign=right],.n2-ss-slider [data-frontend-fullwidth="0"][data-cssselfalign=right],.n2-ss-slider [data-has-maxwidth="1"][data-cssselfalign=right]{align-self:flex-end!important}.n2-ss-slider .n2-ss-layer[data-has-maxwidth="1"][data-sstype=col]{align-self:stretch!important}.n2-ss-slider [data-frontend-fullwidth="1"][data-has-maxwidth="0"][data-cssselfalign]{align-self:initial!important}.n2-ss-slider .n2-ss-layer-inline{flex-direction:row;flex-wrap:wrap}.n2-ss-slider .n2-ss-img-wrapper,.n2-ss-slider .n2-ss-img-wrapper img{line-height:0}.n2-ss-slider .n2-ss-layer-player,.n2-ss-slider .n2-ss-layer-player>*{position:absolute;top:0;left:0;width:100%;height:100%}.n2-ss-slider .n2-ss-layer-player-cover img{position:absolute;left:50%;top:50%;width:48px;height:48px;margin-left:-24px;margin-top:-24px}.n2-clear{clear:both}[data-force-hidden],[data-force-hidden] *{visibility:hidden!important}
|
library/smartslider/backend/SmartSliderController.php
CHANGED
@@ -15,7 +15,6 @@ class N2SmartSliderController extends N2BackendController {
|
|
15 |
|
16 |
public function loadSliderManager() {
|
17 |
|
18 |
-
N2SS3::initLicense();
|
19 |
N2JS::addInline("new N2Classes.ManageSliders('" . N2Request::getInt('sliderid', 0) . "', '" . $this->appType->router->createUrl(array('slider/create')) . "', " . json_encode(N2SS3::shouldSkipLicenseModal()) . ");");
|
20 |
|
21 |
|
15 |
|
16 |
public function loadSliderManager() {
|
17 |
|
|
|
18 |
N2JS::addInline("new N2Classes.ManageSliders('" . N2Request::getInt('sliderid', 0) . "', '" . $this->appType->router->createUrl(array('slider/create')) . "', " . json_encode(N2SS3::shouldSkipLicenseModal()) . ");");
|
19 |
|
20 |
|
library/smartslider/backend/controllers/slides/views/_canvas.php
CHANGED
@@ -46,7 +46,7 @@
|
|
46 |
'isAddSample' => $isAddSample,
|
47 |
'sampleSlidesUrl' => N2SS3::getSampleSlidesUrl(array(
|
48 |
'utm_source' => 'slide-library-frame',
|
49 |
-
'utm_medium' => 'smartslider-' . N2Platform::getPlatform() . '-
|
50 |
'utm_campaign' => N2SS3::$campaign
|
51 |
)),
|
52 |
'slideAsFile' => intval(N2SmartSliderSettings::get('slide-as-file', 0)),
|
46 |
'isAddSample' => $isAddSample,
|
47 |
'sampleSlidesUrl' => N2SS3::getSampleSlidesUrl(array(
|
48 |
'utm_source' => 'slide-library-frame',
|
49 |
+
'utm_medium' => 'smartslider-' . N2Platform::getPlatform() . '-' . N2SS3::$plan,
|
50 |
'utm_campaign' => N2SS3::$campaign
|
51 |
)),
|
52 |
'slideAsFile' => intval(N2SmartSliderSettings::get('slide-as-file', 0)),
|
library/smartslider/backend/controllers/slides/views/edit.phtml
CHANGED
@@ -305,25 +305,19 @@ if ($isAddSample):
|
|
305 |
</form>
|
306 |
|
307 |
<?php
|
308 |
-
if (!$isAddSample && !N2Base::getApplication('smartslider')->storage->get('tutorial', 'hideContentMode'))
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
</
|
317 |
-
<
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
<a href="https://smartslider3.com/videos/contentmode" class="n2-button n2-button-normal n2-button-green n2-button-l n2-h4 n2-b n2-uc n2-radius-s" target="_blank"><?php n2_e('Watch now') ?></a><a onclick="N2Classes.AjaxHelper.ajax({url: N2Classes.AjaxHelper.makeAjaxUrl('<?php echo $this->appType->router->createAjaxUrl(array('settings/hidecontentmode')); ?>')});N2Classes.$('#n2-ss32-content-mode-tutorial').remove(); return false;" href="#" class="n2-button n2-button-normal n2-button-grey n2-button-l n2-h4 n2-b n2-uc n2-radius-s" target="_blank"><?php n2_e('Close'); ?></a>
|
322 |
-
</div>
|
323 |
-
</div>
|
324 |
-
</div>
|
325 |
-
<?php
|
326 |
-
endif;
|
327 |
?>
|
328 |
|
329 |
<?php
|
305 |
</form>
|
306 |
|
307 |
<?php
|
308 |
+
if (!$isAddSample && !N2Base::getApplication('smartslider')->storage->get('tutorial', 'hideContentMode')) {
|
309 |
+
N2Html::banner(array(
|
310 |
+
'id' => 'n2-ss-tutorial-content-mode',
|
311 |
+
'image' => '$ss$/admin/images/contentmode.png',
|
312 |
+
'imageLink' => 'https://smartslider3.com/videos/contentmode',
|
313 |
+
'title' => n2_('Slide Editing - Getting Started'),
|
314 |
+
'description' => n2_('Start building your first slide by watching the video and learn the basic steps of to the Slide editing. Smart Slider 3.2 introduces the new Content Builder mode which is a block-based system where you can add rows, columns and of course layers to the slide.'),
|
315 |
+
'buttons' => array(
|
316 |
+
'<a href="https://smartslider3.com/videos/contentmode" class="n2-button n2-button-normal n2-button-green n2-button-l n2-h4 n2-b n2-uc n2-radius-s" target="_blank">' . n2_('Watch now') . '</a>',
|
317 |
+
'<a onclick="N2Classes.AjaxHelper.ajax({url: N2Classes.AjaxHelper.makeAjaxUrl(\'' . $this->appType->router->createAjaxUrl(array('settings/hidecontentmode')) . '\')});N2Classes.$(\'#n2-ss32-content-mode-tutorial\').remove(); return false;" href="#" class="n2-button n2-button-normal n2-button-grey n2-button-l n2-h4 n2-b n2-uc n2-radius-s" target="_blank">' . n2_('Close') . '</a>'
|
318 |
+
)
|
319 |
+
));
|
320 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
321 |
?>
|
322 |
|
323 |
<?php
|
library/smartslider/backend/fragments/tutorial-free.phtml
CHANGED
@@ -1,20 +1,15 @@
|
|
1 |
<?php
|
2 |
-
if (!N2Base::getApplication('smartslider')->storage->get('tutorial', 'free'))
|
3 |
-
?>
|
4 |
-
<div id="n2-ss32-content-mode-tutorial">
|
5 |
-
<div class="n2-ss-tutorial-container">
|
6 |
-
<div class="n2-ss-tutorial-left">
|
7 |
-
<a href="https://smartslider3.com/videos/freetutorial" target="_blank">
|
8 |
-
<img src="<?php echo N2ImageHelper::fixed('$ss$/admin/images/free/gettingstarted.png'); ?>" style="width:400px;height:220px;max-width:none;"/>
|
9 |
-
</a>
|
10 |
-
</div>
|
11 |
-
<div class="n2-ss-tutorial-right">
|
12 |
-
<div class="n2-h1">Learn Smart Slider 3</div>
|
13 |
-
<p>We've created a simple tutorial video to guide you through the basic steps of making your first slider. Good luck with the sliders!</p>
|
14 |
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
+
if (!N2Base::getApplication('smartslider')->storage->get('tutorial', 'free')) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
+
N2Html::banner(array(
|
5 |
+
'id' => 'n2-ss-tutorial-free',
|
6 |
+
'image' => '$ss$/admin/images/free/gettingstarted.png',
|
7 |
+
'imageLink' => 'https://smartslider3.com/videos/freetutorial',
|
8 |
+
'title' => n2_('Learn Smart Slider 3'),
|
9 |
+
'description' => n2_('We\'ve created a simple tutorial video to guide you through the basic steps of making your first slider. Good luck with the sliders!'),
|
10 |
+
'buttons' => array(
|
11 |
+
'<a href="https://smartslider3.com/videos/freetutorial" class="n2-button n2-button-normal n2-button-green n2-button-l n2-h4 n2-b n2-uc n2-radius-s" target="_blank">' . n2_('Watch now') . '</a>',
|
12 |
+
'<a onclick="N2Classes.AjaxHelper.ajax({url: N2Classes.AjaxHelper.makeAjaxUrl(\'' . $appType->router->createAjaxUrl(array('settings/hideTutorialFree')) . '\')});N2Classes.$(\'#n2-ss32-content-mode-tutorial\').remove(); return false;" href="#" class="n2-button n2-button-normal n2-button-grey n2-button-l n2-h4 n2-b n2-uc n2-radius-s" target="_blank">' . n2_('Close') . '</a>'
|
13 |
+
)
|
14 |
+
));
|
15 |
+
};
|
library/smartslider/backend/layouts/_mainmenu.php
CHANGED
@@ -13,7 +13,7 @@ $views[] = N2Html::tag('a', array(
|
|
13 |
$views[] = N2Html::tag('a', array(
|
14 |
'href' => N2SS3::getProUrlPricing(array(
|
15 |
'utm_source' => 'go-pro-button-top-menu',
|
16 |
-
'utm_medium' => 'smartslider-' . N2Platform::getPlatform() . '-
|
17 |
'utm_campaign' => N2SS3::$campaign
|
18 |
)),
|
19 |
'target' => '_blank',
|
13 |
$views[] = N2Html::tag('a', array(
|
14 |
'href' => N2SS3::getProUrlPricing(array(
|
15 |
'utm_source' => 'go-pro-button-top-menu',
|
16 |
+
'utm_medium' => 'smartslider-' . N2Platform::getPlatform() . '-' . N2SS3::$plan,
|
17 |
'utm_campaign' => N2SS3::$campaign
|
18 |
)),
|
19 |
'target' => '_blank',
|
library/smartslider/models/License.php
CHANGED
@@ -5,11 +5,11 @@ class N2SmartsliderLicenseModel {
|
|
5 |
private $key;
|
6 |
|
7 |
public function __construct() {
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
|
14 |
}
|
15 |
|
@@ -70,7 +70,6 @@ class N2SmartsliderLicenseModel {
|
|
70 |
|
71 |
public function deAuthorize() {
|
72 |
if ($this->hasKey()) {
|
73 |
-
$this->checkKey($this->key, 'licensedeauthorize');
|
74 |
$this->setKey('');
|
75 |
N2Message::notice(n2_('Smart Slider deactivated on this site!'));
|
76 |
|
5 |
private $key;
|
6 |
|
7 |
public function __construct() {
|
8 |
+
if (defined('SMART_SLIDER_LICENSE')) {
|
9 |
+
$this->key = SMART_SLIDER_LICENSE;
|
10 |
+
} else {
|
11 |
+
$this->key = N2Base::getApplication('smartslider')->storage->get('license', 'key');
|
12 |
+
}
|
13 |
|
14 |
}
|
15 |
|
70 |
|
71 |
public function deAuthorize() {
|
72 |
if ($this->hasKey()) {
|
|
|
73 |
$this->setKey('');
|
74 |
N2Message::notice(n2_('Smart Slider deactivated on this site!'));
|
75 |
|
library/smartslider/smartslider3.php
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
|
3 |
class N2SS3 {
|
4 |
|
5 |
-
public static $version = '3.3.
|
6 |
|
7 |
-
public static $revision = '
|
8 |
|
9 |
public static $completeVersion;
|
10 |
|
@@ -68,6 +68,12 @@ class N2SS3 {
|
|
68 |
|
69 |
}
|
70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
public static function getUpdateInfo() {
|
72 |
return array(
|
73 |
'name' => 'smartslider3',
|
@@ -75,6 +81,22 @@ class N2SS3 {
|
|
75 |
);
|
76 |
}
|
77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
public static function api($_posts, $returnUrl = false) {
|
79 |
$isPro = 0;
|
80 |
|
2 |
|
3 |
class N2SS3 {
|
4 |
|
5 |
+
public static $version = '3.3.9';
|
6 |
|
7 |
+
public static $revision = '2798';
|
8 |
|
9 |
public static $completeVersion;
|
10 |
|
68 |
|
69 |
}
|
70 |
|
71 |
+
public static function getActivationUrl($params = array()) {
|
72 |
+
self::applySource($params);
|
73 |
+
|
74 |
+
return 'https://secure.nextendweb.com/activate/?' . http_build_query($params);
|
75 |
+
}
|
76 |
+
|
77 |
public static function getUpdateInfo() {
|
78 |
return array(
|
79 |
'name' => 'smartslider3',
|
81 |
);
|
82 |
}
|
83 |
|
84 |
+
public static function getDomain() {
|
85 |
+
$domain = parse_url(N2Uri::getFullUri(), PHP_URL_HOST);
|
86 |
+
if (empty($domain)) {
|
87 |
+
if (isset($_SERVER['HTTP_HOST'])) {
|
88 |
+
|
89 |
+
$domain = $_SERVER['HTTP_HOST'];
|
90 |
+
}
|
91 |
+
if (empty($domain) && isset($_SERVER['SERVER_NAME'])) {
|
92 |
+
|
93 |
+
$domain = $_SERVER['SERVER_NAME'];
|
94 |
+
}
|
95 |
+
}
|
96 |
+
|
97 |
+
return $domain;
|
98 |
+
}
|
99 |
+
|
100 |
public static function api($_posts, $returnUrl = false) {
|
101 |
$isPro = 0;
|
102 |
|
nextend/library/libraries/html/fragments/banner.phtml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="<?php echo $id; ?>" class="n2-ss-banner">
|
2 |
+
<div class="n2-ss-banner-inner">
|
3 |
+
<div class="n2-ss-banner-left">
|
4 |
+
<?php
|
5 |
+
if (!empty($imageLink)):
|
6 |
+
?>
|
7 |
+
<a href="<?php echo $imageLink; ?>" target="_blank">
|
8 |
+
<img src="<?php echo N2ImageHelper::fixed($image); ?>" style="width:400px;height:220px;max-width:none;"/>
|
9 |
+
</a>
|
10 |
+
<?php
|
11 |
+
else:
|
12 |
+
?>
|
13 |
+
<img src="<?php echo N2ImageHelper::fixed($image); ?>" style="width:400px;height:220px;max-width:none;"/>
|
14 |
+
<?php
|
15 |
+
endif;
|
16 |
+
?>
|
17 |
+
</div>
|
18 |
+
<div class="n2-ss-banner-right">
|
19 |
+
<div class="n2-h1"><?php echo $title; ?></div>
|
20 |
+
<p><?php echo $description; ?></p>
|
21 |
+
|
22 |
+
<?php
|
23 |
+
foreach ($buttons AS $button) {
|
24 |
+
echo $button;
|
25 |
+
}
|
26 |
+
?>
|
27 |
+
</div>
|
28 |
+
</div>
|
29 |
+
</div>
|
nextend/library/libraries/html/html.php
CHANGED
@@ -410,6 +410,23 @@ class N2Html {
|
|
410 |
include(dirname(__FILE__) . '/fragments/heading.phtml');
|
411 |
}
|
412 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
413 |
/**
|
414 |
* @param array $array1
|
415 |
* @param array $array2 [optional]
|
410 |
include(dirname(__FILE__) . '/fragments/heading.phtml');
|
411 |
}
|
412 |
|
413 |
+
public static function banner($options = array()) {
|
414 |
+
static $params = array(
|
415 |
+
'id' => '',
|
416 |
+
'image' => '',
|
417 |
+
'imageLink' => '',
|
418 |
+
'title' => '',
|
419 |
+
'description' => '',
|
420 |
+
'buttons' => array()
|
421 |
+
);
|
422 |
+
|
423 |
+
$options = array_merge($params, $options);
|
424 |
+
|
425 |
+
extract($options);
|
426 |
+
|
427 |
+
include(dirname(__FILE__) . '/fragments/banner.phtml');
|
428 |
+
}
|
429 |
+
|
430 |
/**
|
431 |
* @param array $array1
|
432 |
* @param array $array2 [optional]
|
nextend/media/dist/nextend-backend.css
CHANGED
@@ -1707,7 +1707,8 @@ html[dir="rtl"] .n2-header-breadcrumbs > span {
|
|
1707 |
}
|
1708 |
|
1709 |
.n2-top-bar-menu {
|
1710 |
-
|
|
|
1711 |
height: 60px;
|
1712 |
overflow: hidden;
|
1713 |
}
|
1707 |
}
|
1708 |
|
1709 |
.n2-top-bar-menu {
|
1710 |
+
display: flex;
|
1711 |
+
align-items: center;
|
1712 |
height: 60px;
|
1713 |
overflow: hidden;
|
1714 |
}
|
nextend/media/dist/nextend-backend.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@font-face{font-family:'Nextend';src:url(../fonts/Nextend.eot?z9yovy);src:url(../fonts/Nextend.eot?z9yovy#iefix) format('embedded-opentype'),url(../fonts/Nextend.ttf?z9yovy) format('truetype'),url(../fonts/Nextend.woff?z9yovy) format('woff');font-weight:400;font-style:normal}.n2-i{font-family:'Nextend'!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.n2-i-highlight:before{content:"\e990"}.n2-i-rotating:before{content:"\e991"}.n2-i-slide-video:before{content:"\e989"}.n2-i-slide-static:before{content:"\e98a"}.n2-i-slide-post:before{content:"\e98b"}.n2-i-slide-library:before{content:"\e98c"}.n2-i-slide-image:before{content:"\e98d"}.n2-i-slide-empty:before{content:"\e98e"}.n2-i-slide-dynamic:before{content:"\e98f"}.n2-i-up:before{content:"\e63e"}.n2-i-folder:before{content:"\e63d"}.n2-i-slidelibrary:before{content:"\e97d"}.n2-i-newslide:before{content:"\e981"}.n2-i-volume:before{content:"\e987"}.n2-i-mute:before{content:"\e988"}.n2-i-canvas:before{content:"\e916"}.n2-i-builder:before{content:"\e97c"}.n2-i-minimize:before{content:"\e914"}.n2-i-maximize:before{content:"\e915"}.n2-i-vertical-align-top:before{content:"\e96c"}.n2-i-vertical-align-space-between:before{content:"\e97a"}.n2-i-vertical-align-space-around:before{content:"\e97b"}.n2-i-vertical-align-center:before{content:"\e97e"}.n2-i-vertical-align-bottom:before{content:"\e97f"}.n2-i-mini-desktop-portrait:before{content:"\e980"}.n2-i-uplevel:before{content:"\e979"}.n2-i-hidedesktoplandscape:before{content:"\e95a"}.n2-i-mini-arrow-thin:before{content:"\e926"}.n2-i-mini-move:before{content:"\e973"}.n2-i-color:before{content:"\e95b"}.n2-i-col:before{content:"\e95c"}.n2-i-structure-Sb:before{content:"\e95d"}.n2-i-structure-Sa:before{content:"\e95e"}.n2-i-structure-4a:before{content:"\e95f"}.n2-i-structure-3b:before{content:"\e960"}.n2-i-structure-3a:before{content:"\e961"}.n2-i-structure-2e:before{content:"\e962"}.n2-i-structure-2d:before{content:"\e963"}.n2-i-structure-2c:before{content:"\e964"}.n2-i-structure-2b:before{content:"\e965"}.n2-i-structure-2a:before{content:"\e966"}.n2-i-structure-1a:before{content:"\e967"}.n2-i-mini-tablet-portrait:before{content:"\e968"}.n2-i-mini-tablet-landscape:before{content:"\e969"}.n2-i-mini-mobile-portrait:before{content:"\e96a"}.n2-i-mini-mobile-landscape:before{content:"\e96b"}.n2-i-mini-desktop-landscape:before{content:"\e96d"}.n2-i-video:before{content:"\e96e"}.n2-i-stretch:before{content:"\e96f"}.n2-i-row:before{content:"\e970"}.n2-i-none:before{content:"\e971"}.n2-i-mini-trash:before{content:"\e972"}.n2-i-mini-duplicate:before{content:"\e974"}.n2-i-mini-arrow-up:before{content:"\e975"}.n2-i-mini-arrow-right:before{content:"\e976"}.n2-i-mini-arrow-left:before{content:"\e977"}.n2-i-mini-arrow-down:before{content:"\e978"}.n2-i-chainsmall:before{content:"\e949"}.n2-i-reset2:before{content:"\e946"}.n2-i-save:before{content:"\e947"}.n2-i-clearanimation:before{content:"\e948"}.n2-i-magnet:before{content:"\e936"}.n2-i-layerlist:before{content:"\e935"}.n2-i-layer-text:before{content:"\e920"}.n2-i-layer-image:before{content:"\e931"}.n2-i-layer-heading:before{content:"\e932"}.n2-i-layer-button:before{content:"\e933"}.n2-i-settings:before{content:"\e934"}.n2-i-selectarrow:before{content:"\e930"}.n2-i-closewindow:before{content:"\e90a"}.n2-i-selected:before{content:"\e90b"}.n2-i-layerlistopen:before{content:"\e92b"}.n2-i-layerlistclose:before{content:"\e92c"}.n2-i-backtoslider:before{content:"\e92e"}.n2-i-addlayer2:before{content:"\e92f"}.n2-i-newdrag:before{content:"\e913"}.n2-i-addlayer:before{content:"\e917"}.n2-i-listlayer:before{content:"\e918"}.n2-i-closelayer:before{content:"\e919"}.n2-i-copy:before{content:"\e907"}.n2-i-paste:before{content:"\e908"}.n2-i-undo:before{content:"\e905"}.n2-i-redo:before{content:"\e906"}.n2-i-sortdate2:before{content:"\e900"}.n2-i-sortdate1:before{content:"\e901"}.n2-i-sortalphabetic2:before{content:"\e902"}.n2-i-sortalphabetic1:before{content:"\e903"}.n2-i-hide:before{content:"\e60e"}.n2-i-adaptive:before{content:"\e64e"}.n2-i-reset:before{content:"\e64f"}.n2-i-fontmodifier:before{content:"\e650"}.n2-i-sun:before{content:"\e651"}.n2-i-layerunlink:before{content:"\e64b"}.n2-i-layerlink:before{content:"\e64d"}.n2-i-moon:before{content:"\e64c"}.n2-i-horizontal-right:before{content:"\e645"}.n2-i-horizontal-center:before{content:"\e646"}.n2-i-horizontal-left:before{content:"\e647"}.n2-i-vertical-bottom:before{content:"\e648"}.n2-i-vertical-middle:before{content:"\e649"}.n2-i-vertical-top:before{content:"\e64a"}.n2-i-bulb:before{content:"\e643"}.n2-i-unlock:before{content:"\e63f"}.n2-i-anim-out:before{content:"\e640"}.n2-i-anim-in:before{content:"\e641"}.n2-i-anim-loop:before{content:"\e642"}.n2-i-more:before{content:"\e639"}.n2-i-buttonarrow:before{content:"\e638"}.n2-i-list:before{content:"\e635"}.n2-i-link:before{content:"\e636"}.n2-i-play:before{content:"\e605"}.n2-i-pause:before{content:"\e606"}.n2-i-stop:before{content:"\e607"}.n2-i-snapcenter:before{content:"\e62e"}.n2-i-snapgrid:before{content:"\e62f"}.n2-i-snaplayer:before{content:"\e630"}.n2-i-snapnone:before{content:"\e631"}.n2-i-plus:before{content:"\e632"}.n2-i-minus:before{content:"\e633"}.n2-i-bold:before{content:"\e601"}.n2-i-unpublished:before{content:"\e62d"}.n2-i-published:before{content:"\e60c"}.n2-i-underline:before{content:"\e602"}.n2-i-italic:before{content:"\e615"}.n2-i-empty:before{content:"\e62c"}.n2-i-tick:before{content:"\e600"}.n2-i-star:before{content:"\e603"}.n2-i-right:before{content:"\e604"}.n2-i-order:before{content:"\e608"}.n2-i-lock:before{content:"\e609"}.n2-i-left:before{content:"\e60a"}.n2-i-justify:before{content:"\e60b"}.n2-i-info:before{content:"\e60d"}.n2-i-eye:before{content:"\e60f"}.n2-i-edit:before{content:"\e610"}.n2-i-duplicate:before{content:"\e611"}.n2-i-delete:before{content:"\e612"}.n2-i-close:before{content:"\e613"}.n2-i-center:before{content:"\e614"}.n2-i-emptyslide:before{content:"\e91b"}.n2-i-addslide:before{content:"\e91c"}.n2-i-staraction:before{content:"\e91d"}.n2-i-breadcrumbarrow:before{content:"\e91e"}.n2-i-animation:before{content:"\e91f"}.n2-i-folderclosed:before{content:"\e921"}.n2-i-folderopened:before{content:"\e922"}.n2-i-hide2:before{content:"\e923"}.n2-i-select:before{content:"\e924"}.n2-i-hidedesktopportrait:before{content:"\e925"}.n2-i-hidetabletlandscape:before{content:"\e927"}.n2-i-hidetabletportrait:before{content:"\e928"}.n2-i-hidemobilelandscape:before{content:"\e929"}.n2-i-hidemobileportrait:before{content:"\e92a"}.n2-i-backgroundedit:before{content:"\e909"}.n2-i-backgroundmanage:before{content:"\e90c"}.n2-i-backgroundposition:before{content:"\e90d"}.n2-i-viewmini:before{content:"\e90e"}.n2-i-viewgrid:before{content:"\e90f"}.n2-i-viewlist:before{content:"\e910"}.n2-i-more2:before{content:"\e911"}.n2-i-tick2:before{content:"\e912"}.n2-i-group:before{content:"\e957"}.n2-i-group-up:before{content:"\e958"}.n2-i-group-insert:before{content:"\e959"}.n2-i-add-sample:before{content:"\e951"}.n2-i-add-new:before{content:"\e952"}.n2-i-progressbar-layer:before{content:"\e982"}.n2-i-imagebox-layer:before{content:"\e983"}.n2-i-counter-layer:before{content:"\e984"}.n2-i-circlecounter-layer:before{content:"\e985"}.n2-i-audio-layer:before{content:"\e986"}.n2-i-a-license:before{content:"\e953"}.n2-i-a-import:before{content:"\e954"}.n2-i-a-deauthorize:before{content:"\e955"}.n2-i-a-clear:before{content:"\e956"}.n2-i-imagearea-layer:before{content:"\e950"}.n2-i-window-settings:before{content:"\e94c"}.n2-i-window-animation:before{content:"\e94d"}.n2-i-window-design:before{content:"\e94e"}.n2-i-window-layer:before{content:"\e94f"}.n2-i-dashboard:before{content:"\e94a"}.n2-i-slider2:before{content:"\e94b"}.n2-i-area-layer:before{content:"\e937"}.n2-i-iframe-layer:before{content:"\e938"}.n2-i-input-layer:before{content:"\e939"}.n2-i-html-layer:before{content:"\e93a"}.n2-i-video-layer:before{content:"\e93b"}.n2-i-vimeo-layer:before{content:"\e93c"}.n2-i-youtube-layer:before{content:"\e93d"}.n2-i-list-layer:before{content:"\e93e"}.n2-i-transition-layer:before{content:"\e93f"}.n2-i-caption-layer:before{content:"\e940"}.n2-i-icon-layer:before{content:"\e941"}.n2-i-button-layer:before{content:"\e942"}.n2-i-image-layer:before{content:"\e943"}.n2-i-text-layer:before{content:"\e944"}.n2-i-heading-layer:before{content:"\e945"}.n2-i-preview:before{content:"\e92d"}.n2-i-slides:before{content:"\e91a"}.n2-i-slideedit:before{content:"\e904"}.n2-i-help:before{content:"\e644"}.n2-i-v-tablet-landscape:before{content:"\e63a"}.n2-i-v-mobile-landscape:before{content:"\e63b"}.n2-i-v-desktop-landscape:before{content:"\e63c"}.n2-i-bulk:before{content:"\e634"}.n2-i-notification:before{content:"\e637"}.n2-i-v-tablet:before{content:"\e616"}.n2-i-v-mobile:before{content:"\e617"}.n2-i-v-desktop:before{content:"\e618"}.n2-i-v-all:before{content:"\e619"}.n2-i-smart:before{content:"\e61a"}.n2-i-slider:before{content:"\e61b"}.n2-i-s-open:before{content:"\e61c"}.n2-i-s-close:before{content:"\e61d"}.n2-i-next:before{content:"\e61e"}.n2-i-n-success:before{content:"\e61f"}.n2-i-n-notice:before{content:"\e620"}.n2-i-n-error:before{content:"\e621"}.n2-i-n-close:before{content:"\e622"}.n2-i-drag:before{content:"\e623"}.n2-i-a-text:before{content:"\e624"}.n2-i-a-refresh:before{content:"\e625"}.n2-i-a-html:before{content:"\e626"}.n2-i-a-export:before{content:"\e627"}.n2-i-a-duplicate:before{content:"\e628"}.n2-i-a-deletes:before{content:"\e629"}.n2-i-a-delete:before{content:"\e62a"}.n2-i-a-back:before{content:"\e62b"}.n2{box-sizing:initial}.n2,.n2 td,.n2 th,html[dir=rtl] .n2{font-family:"Montserrat",Arial,sans-serif;-webkit-font-smoothing:antialiased;font-size:12px}.n2 a:ACTIVE,.n2 a:FOCUS,.n2 a:LINK,.n2 a:VISITED{text-decoration:none}.n2-h1{font-size:26px;line-height:1.4em}.n2-h2{font-size:20px}.n2-h3{font-size:14px}.n2-h4{font-size:12px}.n2-h5,input[type].n2-h5,select.n2-h5,textarea.n2-h5{font-size:11px}.n2-h6{font-size:10px}.n2-b{font-weight:700}.n2-uc{text-transform:uppercase}.n2-ucf{text-transform:capitalize}.n2-i+span,.n2-i+span+span,.n2-i+span+span+span{vertical-align:middle}.n2-actions-left>a,.n2-actions-left>a:HOVER,.n2-i-grey-opacity,.n2-i-grey-opacity:HOVER{color:#b2bfc9}.n2-active>.n2-i-star{color:#c68c1e}.n2-active>.n2-i-unpublished:before{content:"\e60c"}.n2-active>.n2-i-unpublished,.n2-active>.n2-i-unpublished:HOVER{color:#6fbc49}.n2-button .n2-i,.n2-i.n2-it{line-height:inherit;vertical-align:top}.n2-description,.n2-description p{font-size:12px;color:#6b7989}.n2-description ol{font-size:11px}div.n2-description ul{padding-left:20px;font-size:12px;list-style-type:disc}#wpbody-content{padding-bottom:0!important}#wpfooter{display:none}#wpbody-content #n2-admin{margin:10px 20px 0 0}html[dir=rtl] #wpbody-content #n2-admin{margin:10px 0 0 20px}#wpbody-content #n2-admin a:focus{box-shadow:none}#content-box #toolbar-box{display:none}.n2 input:focus,.n2 select:focus,.n2 textarea:focus{background:0 0}.n2 ul{padding:0}.n2 dt{font-weight:400}#status,.admin .subhead-collapse,.admin header.header{display:none}div#system-debug,div.container-main{padding-bottom:0}.admin form{margin:0}.admin #content{margin-top:20px}.n2 button,.n2 input,.n2 label,.n2 select,.n2 textarea{line-height:inherit}.n2 *:focus{box-shadow:none}#n2-admin img{display:inline}#system-message-container{display:none}.n2 td{vertical-align:inherit}.n2 .thumb{margin-top:0}body.n2-platform-native{padding:10px;font-size:13px;line-height:1.4em;overflow:auto}.n2 hr,iframe{border:0}#n2-admin{min-width:980px;background-color:#e9edf0}.n2 hr{border-top:1px solid #ccd1d6;border-bottom:1px solid #fafafa}.n2 a{-moz-transition:none;-webkit-transition:none;-o-transition:color 0s ease-in;transition:none;outline:0}.n2-clickable{cursor:pointer}.n2-table{display:table;width:100%;border-spacing:0;border-collapse:collapse}.n2-table.n2-content{border-collapse:separate}.n2-table-auto{width:auto}.n2-table-fixed{table-layout:fixed}.n2-tr{display:table-row}.n2-td{display:table-cell;vertical-align:top}.n2-table-fancy,.n2-table-pane{width:100%;text-align:center;border-spacing:0}.n2-table-pane{table-layout:fixed;border-collapse:separate}.n2-table-fancy{border-collapse:collapse;border:2px solid #a1aeb5;border-radius:5px}.n2-table-fancy tr:nth-child(odd){background-color:#f2f5fa}.n2-table-fancy td{border:1px solid #e0e3e6;padding:10px;text-align:left;font-size:11px}html[dir=rtl] .n2-table-fancy td{text-align:right}.n2-table-fancy-wrap{border:2px solid #a1aeb5;border-radius:5px}.n2-table-fancy-wrap .n2-table-fancy{border:0}.n2-table-fancy-wrap .n2-table-fancy td{border:0;border-bottom:1px solid #e0e3e6}.n2-table-pane td{padding:0}.n2-inline-block{display:inline-block;vertical-align:top}.n2-left{float:left}.n2-right,html[dir=rtl] .n2-left{float:right}html[dir=rtl] .n2-right{float:left}.n2-clear{clear:both}.n2-blue-bg,.n2-blue-logo-bg{background-color:#0c92df}.n2-sidebar-base-bg{background-color:#4d5d70}.n2-sidebar-header-bg{background-color:#485769}.n2-sidebar-list-bg{background-color:#212d3a}.n2-sidebar-tab-bg{background-color:#202934}.n2-sidebar-parameter-label-bg{background-color:#212d3a}.n2-sidebar-tab-switcher{border-bottom:1px solid #2c3540}.n2-sidebar-tab-switcher .n2-td{color:#b2bfc9;text-align:center;height:60px;line-height:60px;cursor:pointer}.n2-sidebar-tab-switcher .n2-td.n2-active{color:#fff}.n2-sidebar-pane-sizer{top:0;left:0;height:15px;width:100%;cursor:ns-resize;background:#212d3a;text-align:center;color:#4d5d70;font-size:32px;line-height:15px}.n2-content-base-bg{background-color:#e9edf0}.n2-content-box-title-bg{background-color:#f2f5fa}.n2-border-radius{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.n2-border-radius-tr{-webkit-border-top-right-radius:3px;-moz-border-radius-topright:3px;border-top-right-radius:3px}html[dir=rtl] .n2-border-radius-tr{-webkit-border-top-right-radius:0;-moz-border-radius-topright:0;border-top-right-radius:0}.n2-border-radius-tl,html[dir=rtl] .n2-border-radius-tr{-webkit-border-top-left-radius:3px;-moz-border-radius-topleft:3px;border-top-left-radius:3px}html[dir=rtl] .n2-border-radius-tl{-webkit-border-top-right-radius:3px;-moz-border-radius-topright:3px;border-top-right-radius:3px;-webkit-border-top-left-radius:0;-moz-border-radius-topleft:0;border-top-left-radius:0}.n2-border-radius-br{-webkit-border-bottom-right-radius:3px;-moz-border-radius-bottomright:3px;border-bottom-right-radius:3px}html[dir=rtl] .n2-border-radius-br{-webkit-border-bottom-right-radius:0;-moz-border-radius-bottomright:0;border-bottom-right-radius:0}.n2-border-radius-bl,html[dir=rtl] .n2-border-radius-br{-webkit-border-bottom-left-radius:3px;-moz-border-radius-bottomleft:3px;border-bottom-left-radius:3px}html[dir=rtl] .n2-border-radius-bl{-webkit-border-bottom-right-radius:3px;-moz-border-radius-bottomright:3px;border-bottom-right-radius:3px;-webkit-border-bottom-left-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0}.n2-a,.n2-a:ACTIVE,.n2-a:FOCUS,.n2-a:HOVER,.n2-a:VISITED{color:#08c}#n2-ss-redo,#n2-ss-undo{opacity:.5}#n2-ss-redo.n2-active,#n2-ss-undo.n2-active{opacity:1}[dir=rtl] #n2-ss-undo,html[dir=rtl] .n2-header-breadcrumbs>span{transform:scaleX(-1)}#n2-ss-undo+#n2-ss-redo{margin-left:-15px}[dir=rtl] #n2-ss-undo+#n2-ss-redo{margin-left:15px;transform:scaleX(-1)}.n2-top-bar-menu .n2-button-icon{margin:12px 2px 0}.n2-expert-switch{display:inline-block;height:36px;margin-right:20px;vertical-align:top;position:relative;overflow:hidden;padding:0 30px;text-align:right}.n2-expert-switch .n2-expert-expert,.n2-expert-switch .n2-expert-simple{display:inline-block;height:100%;position:relative;line-height:36px;color:#b2bfc9;transition:top .3s,opacity .3s}.n2-expert-switch .n2-expert-simple{top:-36px;opacity:1}.n2-expert-switch .n2-expert-expert{top:-10px;opacity:0}.n2-expert-switch.n2-active .n2-expert-simple{top:-26px;opacity:0}.n2-expert-switch.n2-active .n2-expert-expert{top:0;opacity:1}.n2-expert-switch .n2-expert-bar{position:absolute;top:5px;right:8px;width:8px;height:24px;background:#6b7986;border-radius:4px;transition:background .3s}.n2-expert-switch.n2-active .n2-expert-bar{background:#51b82d}.n2-expert-switch .n2-expert-dot{position:absolute;top:-1px;left:-3px;width:14px;height:14px;border-radius:7px;background:#fff;transition:top .3s}.n2-expert-switch.n2-active .n2-expert-dot{top:10px}.n2-button-play{text-align:left;padding:0}.n2-button-play .n2-i,.n2-button-play span{vertical-align:middle}.n2-button-play span{display:inline-block;padding:0 20px;border-left:1px solid #1582c2}.n2-header{display:flex;justify-content:space-between;flex:1;height:70px;z-index:11;border-top-right-radius:5px;overflow:hidden}[dir=rtl] .n2-header{border-top-left-radius:5px;border-top-right-radius:0}.n2-logo{width:339px;border-right:1px solid #1681c1;border-top-left-radius:5px}[dir=rtl] .n2-logo{border-top-right-radius:5px;border-top-left-radius:0;border-left:1px solid #1681c1;border-right:0}.n2-logo a{display:inline-block;width:100%;height:100%;text-align:center}.n2-logo a img{margin-top:9px}.n2-header-breadcrumbs{align-self:center}.n2-header-menu{text-align:right;white-space:nowrap}.n2-header-right>*{color:RGBA(255,255,255,.7);line-height:23px;display:inline-block;height:100%;padding:0 24px;vertical-align:top;font-size:13px}.n2-header-menu>*{line-height:70px}.n2-header-breadcrumbs>a{max-width:250px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.n2-header-breadcrumbs>span{padding:0;margin:0 -10px}.n2-header-right .n2-h4,.n2-header-right .n2-h4:ACTIVE,.n2-header-right .n2-h4:FOCUS,.n2-header-right .n2-h4:LINK,.n2-header-right .n2-h4:VISITED{color:RGBA(255,255,255,.7);text-decoration:none}.n2-header-right .n2-h4.n2-active{color:#fff}.n2-sidebar{width:339px;border-right:1px solid #212d3a}.n2-sidebar-hidden>.n2-content .n2-sidebar{display:none}.n2-sidebar>:first-child{border-top:1px solid #2c3540}.n2-lightbox .n2-sidebar>:first-child{border-top:0}.n2-sidebar-fixed{position:fixed;top:0}.admin-bar .n2-sidebar-fixed{top:32px}.admin .n2-sidebar-fixed{top:31px}.n2-content-area{position:relative;border:1px solid #a3adb7;border-width:0 1px 1px 0;min-height:1000px;width:100%}.n2-sidebar-hidden .n2-content-area{border-width:0 1px 1px;-webkit-border-bottom-left-radius:3px;-moz-border-radius-bottomleft:3px;border-bottom-left-radius:3px}.n2-top-bar{position:relative;top:0;height:60px;z-index:1020;margin-right:-1px;border-bottom:1px solid #1c2329;display:flex;flex-wrap:nowrap;flex-flow:row;justify-content:space-between}.n2-sidebar-hidden .n2-top-bar{margin-left:-1px}.n2-top-bar>*{flex:1 0 auto}.n2-top-bar-middle{text-align:center;display:inline-block;height:100%}.n2-top-bar .n2-back{margin:0}.n2-top-bar .n2-back a{border-right:1px solid #1c2329;line-height:17px;padding-bottom:7px;color:#80a3b5}.n2-top-bar .n2-back a:before{font-family:'Nextend'!important;display:block;color:#80a3b5;font-size:32px;text-align:center;line-height:25px;margin-top:11px}.n2-top-bar-menu{line-height:60px;height:60px;overflow:hidden}.n2-top-bar-menu .n2-form-dark{margin-top:16px;height:28px;line-height:28px;overflow:hidden}.n2-top-bar-menu>.n2-h4{display:inline-block;line-height:60px;padding:0;color:#b2bfc9;font-size:10px;min-width:80px;text-align:center}.n2-top-bar-menu>.n2-h4.n2-active{color:#ebeced;cursor:default}.n2-top-bar-menu span{color:#b2bfc9;padding:0 10px}@media all and (max-width:800px){.n2-top-bar-menu>.n2-h4{display:none}}.n2-top-bar .n2-form-dark .n2-form-element-radio-tab{vertical-align:middle}.n2-top-bar-actions{margin:12px 1px 0;white-space:nowrap;text-align:right}html[dir=rtl] .n2-top-bar-actions{text-align:left}.n2-top-bar-actions .n2-button{margin-right:20px;vertical-align:top}html[dir=rtl] .n2-top-bar-actions .n2-button{margin-right:0;margin-left:20px}.n2-heading-bar{z-index:9;position:relative;background-color:#fff;border-bottom:1px solid #e0e6ed;padding:35px 0;display:flex}.n2-heading-bar-left{flex:1;align-self:center}.n2-heading{position:relative;color:#6b7989;line-height:40px;margin:0 30px}.n2-heading span{position:absolute;font-size:11px;left:2px;bottom:-26px}html[dir=rtl] .n2-heading span{left:0;right:2px}.n2-heading-menu{position:absolute;bottom:0;left:10px}html[dir=rtl] .n2-heading-menu{left:auto;right:10px}.n2-heading-menu>div{display:inline-block;padding:0 20px;color:#7b8898;cursor:pointer;line-height:34px}.n2-heading-menu>div.n2-active{color:#0c92df}.n2-heading-menu>div.n2-button{color:#fff;line-height:28px}.n2-heading-actions{white-space:nowrap;align-self:center}.n2-heading-actions-label{color:#6b7989;vertical-align:middle;line-height:32px}.n2-heading-actions a,.n2-heading-actions a:HOVER,.n2-heading-actions a:focus{display:inline-block;padding:10px;color:#b0b9bf;vertical-align:middle;font-size:32px}.n2-underline{position:relative}.n2-has-underline>.n2-underline:after{content:"";position:absolute;width:0;height:3px;bottom:-10px;left:0;background-color:#0c92df}.n2-active>.n2-underline:after{width:100%}.n2-controls-panel{line-height:28px}.n2-controls-panel .n2-panel-heading{padding-right:11px;color:#7b8898}.n2-panel-option a{display:inline-block;background-color:#a1aeb5;color:#fff;padding:0 24px;border-right:1px solid #b9c3c9}.n2-panel-option.n2-first a{-webkit-border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;-moz-border-radius-topleft:3px;-moz-border-radius-bottomleft:3px;border-top-left-radius:3px;border-bottom-left-radius:3px}.n2-panel-option.n2-last a{border-right:0;-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-panel-option.n2-active a{background-color:#0c92df}.n2-modal{position:fixed;top:0;left:0;width:100%;height:100%;z-index:100002;background-color:RGBA(43,52,63,.9)}.n2-modal-window{position:absolute;top:50%;left:50%;background-color:#fff;z-index:1}.n2-modal-title{line-height:59px;color:#6b7989;border-bottom:1px solid #ccd1d6;overflow:hidden;border-top-left-radius:3px;border-top-right-radius:3px}.n2-modal-title .n2-h2{text-align:center;margin:0 58px;height:59px;overflow:hidden}.n2-modal-title .n2-i{position:absolute;top:0;cursor:pointer;font-size:32px;color:#a1aeb5}.n2-modal-title .n2-i-a-back,.n2-modal-title .n2-i-a-deletes{margin:13px}.n2-modal-title .n2-i-a-deletes{right:0}.n2-modal-title .n2-i-a-back.n2-hidden,.n2-modal-title .n2-i-a-deletes.n2-hidden{display:none}.n2-modal-title .n2-i-a-back{left:0}.n2-modal-content{padding:0 20px 20px;color:#7b8898;box-sizing:border-box}.n2-modal-content h3.n2-center,.n2-modal-content p,.n2-tr.n2-modal-controls-1 .n2-td{text-align:center}.n2-modal-content .n2-form{margin:0 -10px}.n2-modal-content .n2-td{padding:0 10px}.n2-modal-controls{position:absolute;left:0;bottom:0;width:100%;margin:20px 0}.n2-modal-controls .n2-table{width:100%}.n2-modal-controls .n2-td{padding:0 20px}.n2-tr.n2-modal-controls-2 .n2-td{width:50%}.n2-tr.n2-modal-controls-2 .n2-modal-controls-0{text-align:right}.n2-tr.n2-modal-controls-2 .n2-modal-controls-1{text-align:left}.n2-modal-controls-side .n2-tr.n2-modal-controls-2 .n2-modal-controls-0{text-align:left;vertical-align:middle}.n2-modal-controls-side .n2-tr.n2-modal-controls-2 .n2-modal-controls-1{text-align:right}.n2-modal-content .n2-table-pane{margin:20px 0}.n2-modal-content .n2-table-pane td{cursor:pointer;padding:20px;border:3px solid #fff;border-radius:3px;transition:all .3s}.n2-modal-content .n2-table-pane td:HOVER{border-color:#dee1e5}.n2-modal-content h3{color:#7b8898;font-weight:400;margin:20px 0 10px}.n2-modal-content p{font-size:11px}.n2-modal-active{overflow:hidden!important}.n2-modal-simple{cursor:pointer}.n2-modal-simple .n2-modal-window{left:0;top:0;cursor:default;width:100%;height:100%}.n2-modal-simple .n2-i-a-deletes{position:absolute;top:19px;right:30px;color:#a4b0b7;font-size:32px;z-index:2}[dir=rtl] .n2-modal-simple .n2-i-a-deletes{left:30px;right:auto}.n2-lb-header{position:relative;background-color:#fff;border-bottom:1px solid #e0e6ed;z-index:10}.n2-modal-simple-header{line-height:40px;padding:15px 30px;color:#6b7989;font-size:24px}.n2-modal-simple .n2-modal-simple-header{padding:20px 30px 0}.n2-modal .n2-mixed-label{margin:20px 0 10px}.n2-modal .n2-mixed-label label{color:#7b8898;font-weight:400;font-size:14px}.n2-modal-radio{text-align:left;margin:0 -20px;overflow:auto}.n2-modal-radio-option{width:112px;height:70px;display:inline-block;margin:0 35px 50px;cursor:pointer;background-position:0 0;text-align:center}.n2-modal-radio-option.n2-active{cursor:default;background-position:0 -80px}.n2-modal-radio-option div{color:#7b8898;margin:75px -20px 0}.n2-modal-radio-option.n2-active div{color:#0c92df}.n2-modal iframe{max-width:none;border:0}.n2-lightbox-heading{color:#fff;line-height:61px;text-align:center;border-bottom:1px solid #2e3742;border-right:0}.n2-sidebar-row{line-height:58px;border-bottom:1px solid #333e4a;padding:0 10px}.n2-sets-header .n2-td{padding:0 10px}.n2-sets-header .n2-td>*{vertical-align:middle}.n2-sets-header .n2-h3,.n2-sets-header .n2-h4{color:#b2bfc9}.n2-sets-header .n2-form{display:inline-block;margin:0}.n2-sets-header .n2-form .n2-form-element-list{margin-bottom:0}.n2-sidebar-heading .n2-h3{color:#fff;margin:0 10px}.n2-lightbox-container{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:RGBA(43,52,63,.9);padding:20px;z-index:100002;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.n2-lightbox-container .n2-lightbox{width:100%;height:100%;overflow:hidden}.n2-lightbox-container .n2-content-area,.n2-lightbox-sidebar-list{overflow:auto}.n2-lightbox-container .n2-top-bar{margin-right:0}.n2-lightbox-container .n2-content-area{min-height:0}.n2-lightbox-no-sidebar .n2-blue-logo-bg{background:#3c4958;padding:0 30px;text-align:left}.n2-lightbox-no-sidebar .n2-sidebar{border-right-color:#3c4958}.n2-visual-editor-preview-tab,.n2-visual-editor-tabs{text-align:right;vertical-align:middle}html[dir=rtl] .n2-manage-set,html[dir=rtl] .n2-visual-editor-preview-tab,html[dir=rtl] .n2-visual-editor-tabs{text-align:left}.n2-visual-editor-preview-tab .n2-form-element-radio-tab,.n2-visual-editor-tabs .n2-form-element-radio-tab{vertical-align:baseline}.n2-editor-background-color{display:inline-block;height:28px;vertical-align:middle}#n2-font-editor-preview,#n2-style-editor-preview{padding:20px}#n2-animation-editor-preview{position:relative;height:500px;resize:vertical;overflow:hidden}.n2-animation-preview-box{position:absolute;top:50%;left:50%;background-color:#000;background-size:cover}#n2-animation-editor-tab-add,#n2-animation-editor-tab-delete{padding:0;width:28px;vertical-align:middle}.n2-ss-dashboard{max-width:1240px}.n2-form-tab.n2-editor-preview-box{background-color:#ced3d5}.n2-manage-set{text-align:right}.n2-browse-container{height:100%;overflow:auto;margin:0 -20px;transition:opacity .4s;opacity:1}.n2-browse-container.n2-drag-over{opacity:.3}.n2-browse-container .n2-browse-box{position:relative;width:140px;height:140px;border-radius:3px;float:left;margin:10px;cursor:pointer;text-align:center;color:#cdd3d7;overflow:hidden}.n2-browse-container .n2-browse-box>.n2-i{font-size:48px;line-height:134px}.n2-browse-container .n2-browse-upload{margin:7px;width:300px;overflow:hidden;border:3px dashed #dbe0e3}.n2-browse-container .n2-browse-upload div{text-align:center;line-height:30px;margin-top:32px;color:#7b8898}.n2-browse-container .n2-browse-upload input{font-size:200px;height:200px;position:absolute;left:0;top:0;opacity:0;cursor:pointer}.n2-browse-container .n2-browse-directory{box-shadow:0 0 0 3px #dbe0e3}.n2-browse-container .n2-browse-image{background-size:contain;background-repeat:no-repeat;background-color:#f3f5f7}.n2-browse-container .n2-browse-image.n2-active{box-shadow:0 0 0 3px #0c92df}.n2-browse-container .n2-browse-image .n2-button{position:absolute;top:5px;right:5px;padding:0;width:24px;display:none}.n2-browse-container .n2-browse-image.n2-active .n2-button{display:inline-block}.n2-browse-container .n2-browse-box .n2-browse-title{position:absolute;left:0;bottom:0;width:124px;padding:5px;height:30px;line-height:30px;text-align:center;color:#95a0ad;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.n2-browse-container .n2-browse-image .n2-browse-title{color:#e8ebed;background-color:#212d3a;background-color:RGBA(43,52,63,.9);width:130px}.sumome-badge-hint{display:none}.n2-result{margin-bottom:20px}.n2-ss-back-to:before{font-family:'Nextend'!important;font-size:16px;vertical-align:top;content:"\e92e";margin:0 4px;color:#7b8898}.nui-autocomplete{z-index:1000000;max-height:300px;overflow:auto;position:absolute;background:#fff;border:2px solid #0c92df;color:#7b8898;font-size:11px;margin:0;border-radius:0;box-shadow:none;list-style-type:none;padding:0}.nui-autocomplete .nui-menu-item{line-height:20px;padding:0 5px;margin:0;cursor:pointer}.nui-autocomplete .nui-menu-item:HOVER{background:#e9edf0;border:0;margin:0;color:#7b8898;font-weight:400}.n2-nav{position:relative;z-index:11;display:flex}.n2-modal-content-with-sidebar{display:flex;min-height:100%}.n2-modal-sidebar{flex:0 0 auto;width:200px;background:#303b47}.n2-modal-sidebar>div{position:sticky;left:0;top:0}.n2-modal-right-content{flex:1 1 auto}.n2-admin-section{background-color:#fff}.n2-admin-section-block{max-width:1140px;margin:0 auto}.n2-admin-possible-conflicts-container{display:flex;align-items:center}.n2-admin-possible-conflicts-img{flex:0 0 auto;display:flex;align-items:center;padding:36px 20px}.n2-admin-possible-conflicts-details{flex:1 1 auto;padding:25px}.n2-admin-section .n2-h1{color:#606d7b;margin:0 0 .5em}.n2-admin-section p{color:#7b8898;font-size:14px;margin:.5em 0 0}#n2-admin-help-search{background-color:#e9edf0;padding:120px 0 30px;text-align:center}#n2-admin-help-search form{margin:20px auto;display:flex;max-width:640px;background:#fff;border-radius:3px;box-shadow:0 0 5px 0 RGBA(0,0,0,.2);overflow:hidden}#n2-admin-help-search input{flex:1 1 auto;border:0;height:52px;line-height:52px;margin:0 25px;box-shadow:none;outline:none;color:#606d7b}#n2-admin-help-search ::placeholder{opacity:1;color:#606d7b;font-size:14px}#n2-admin-help-search :-ms-input-placeholder,#n2-admin-help-search ::-ms-input-placeholder{opacity:1;color:#606d7b;font-size:14px}#n2-admin-help-search button{background:#0c92df;color:#fff;border:0;box-shadow:none;outline:none;font-size:12px;padding:0 15px;min-width:70px;text-transform:uppercase;font-weight:700;cursor:pointer}.n2-admin-help-more{display:flex;margin:60px -30px 0}.n2-admin-help-more a{display:block;flex-grow:0;flex-basis:33.333%;margin:30px;padding:45px 35px;background:#fff;border-radius:3px;box-shadow:0 0 5px 0 RGBA(0,0,0,.2)}#wpbody-content #n2-admin .n2-admin-help-more a:focus{box-shadow:0 0 5px 0 RGBA(0,0,0,.2)}.n2-admin-help-more a .n2-h2{color:#606d7b;line-height:3em}.n2-admin-help-more a p{color:#7b8898;line-height:1.8em;margin:0}#n2-admin-help-selected-articles{text-align:center;padding:70px}#n2-admin-help-selected-articles .n2-admin-selected-articles-container{display:flex;margin:60px -55px 0;text-align:left}#n2-admin-help-selected-articles .n2-admin-selected-articles-container .n2-admin-selected-articles-column{display:flex;flex-flow:column;flex-grow:0;flex-basis:33.333%;margin:0 55px}#n2-admin-help-selected-articles a{font-size:14px;line-height:3em;color:#7b8898;border-bottom:1px solid #eee}#n2-admin-help-selected-articles a:last-child{border-bottom:0}#support-form{padding:50px 0}#support-form .n2-h1{text-align:center;margin:60px 0}#support-form textarea{background:#fff;border-width:2px;padding:20px}.n2 .nui-slider .nui-slider-handle:focus{outline:none}.n2-form{margin-bottom:20px;border-top:1px solid transparent;margin-top:-1px}.n2-form-tab .n2-form{margin-bottom:-1px}.n2-form-dark .n2-content-box-title-bg{background-color:#4d5d70}.n2-form-tab{background:#fff;margin:20px 20px 0;border:1px solid #ccd1d6;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.n2-form-dark .n2-form-tab{background:#3c4958;margin:0;border:0}.n2-form-tab>.n2-description{margin:20px}.n2-form-dark .n2-form-tab>table{border-bottom:1px solid #303b47}.n2-form-tab .n2-heading-controls,.n2-form-tab>.n2-h2{position:relative;padding:0 20px;color:#6b7989;line-height:54px;border-bottom:1px solid #ccd1d6;z-index:2}.n2-form-tab .n2-heading-controls{min-height:54px}.n2-form-tab table{width:100%;border-spacing:0;border-collapse:collapse;table-layout:fixed;margin-top:-1px}.n2-form-tab-horizontal{padding:20px 20px 0}.n2-form .n2-hidden,.n2-hidden{display:none!important}.n2-label-col{width:251px}.n2-form-dark .n2-label-col{width:136px}.n2-label{width:210px;background-color:#f9fafb;border:1px solid #dee1e5;border-width:1px 1px 0 0;padding:14px 20px;line-height:20px;color:#7b8898;font-size:12px}.n2-label label{color:#7b8898;display:inline-block;margin:0;font-size:100%}.n2-form-element-mixed label .n2-i,.n2-label label .n2-i{font-size:16px;vertical-align:middle}.n2-label label[data-n2tip]:after{font-family:'Nextend'!important;content:"\e620";font-size:16px;vertical-align:top;margin:0 5px;color:#b0b9bf}html[dir=rtl] .n2-label{border-width:1px 0 0 1px}.n2-form-dark .n2-label{width:102px;background-color:#3c4958;border-color:#303b47;color:#b2bfc9}.n2-form-dark .n2-label label{color:#b2bfc9}.n2-documentation,.n2-documentation:ACTIVE,.n2-documentation:FOCUS,.n2-documentation:HOVER{display:inline-block;color:#b9c3c9}.n2-i-info{vertical-align:middle;font-size:16px;margin:0;padding:10px 5px}.n2-form-dark .n2-i-info{color:RGBA(150,167,180,.8)}.n2-element{border-top:1px solid #dee1e5;padding:10px 10px 0}.n2-form-dark .n2-element{border-top:1px solid #414e5e}.n2-element>div{position:relative}.n2-element .n2-element-plain{margin-bottom:10px;color:#6b7989;font-size:12px}.n2 input,.n2 select,.n2 textarea{padding:0;width:auto;box-shadow:none;transition:none;font-family:"Montserrat",Arial,sans-serif}.n2-form input[disabled],.n2-form input[readonly],.n2-form select[disabled],.n2-form select[readonly],.n2-form textarea[disabled],.n2-form textarea[readonly]{background:0 0}.n2-form input,.n2-form textarea{box-sizing:border-box}.n2-form-element-button,.n2-form-element-button:active,.n2-form-element-button:hover,.n2-form-element-button:link,.n2-form-element-button:visited{vertical-align:top;display:inline-block;height:28px;line-height:28px;background-color:#51b82d;color:#fff;padding:0 11px;margin:-2px -2px -2px 0;border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-form-element-button-inverted,.n2-form-element-button-inverted:active,.n2-form-element-button-inverted:hover,.n2-form-element-button-inverted:link,.n2-form-element-button-inverted:visited,html[dir=rtl] .n2-form-element-button,html[dir=rtl] .n2-form-element-button:active,html[dir=rtl] .n2-form-element-button:hover,html[dir=rtl] .n2-form-element-button:link,html[dir=rtl] .n2-form-element-button:visited{margin:-2px 0 -2px -2px;border-radius:0;border-top-left-radius:3px;border-bottom-left-radius:3px}html[dir=rtl] .n2-form-element-button-inverted,html[dir=rtl] .n2-form-element-button-inverted:active,html[dir=rtl] .n2-form-element-button-inverted:hover,html[dir=rtl] .n2-form-element-button-inverted:link,html[dir=rtl] .n2-form-element-button-inverted:visited{margin:-2px -2px -2px 0;border-radius:0;border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-form-element-button-inverted.n2-icon-button:active,.n2-form-element-button-inverted.n2-icon-button:hover,.n2-form-element-button-inverted.n2-icon-button:link,.n2-form-element-button-inverted.n2-icon-button:visited,.n2-form-element-button.n2-icon-button{font-size:16px;min-width:28px;padding:0;text-align:center}.n2-form-element-clear,.n2-form-element-clear:active,.n2-form-element-clear:hover,.n2-form-element-clear:link,.n2-form-element-clear:visited{display:inline-block;height:24px;line-height:24px;width:28px;vertical-align:top;font-size:16px;text-align:center}.n2-form-element-text{display:inline-block;border:2px solid #a1aeb5;margin:0 10px;background:#fff;white-space:nowrap;vertical-align:top;height:24px}.n2-form-dark .n2-form-element-text{border-color:#28313a;background:#303b47}.n2-form .n2-form-element-text{margin-bottom:10px}.n2-form-element-text.focus,.n2-form-element-text.focus2{border-color:#0c92df}.n2-form-element-option-chooser input[type],.n2-form-element-text input,.n2-form-element-text input:focus,.n2-form-element-text input[type],.n2-form-element-text input[type]:focus{display:inline-block;margin:0 5px;padding:0;border:0;box-shadow:none;height:24px;line-height:24px;color:#7b8898;vertical-align:top}.n2-form-dark .n2-form-element-text input,.n2-form-dark .n2-form-element-text input:focus{background:#303b47;color:#b2bfc9}.n2-form-element-number input{text-align:center}.n2-form-element-text .n2-text-sub-label,.n2-form-element-text .n2-text-unit{display:inline-block;padding:0 5px;background-color:#a1aeb5;height:24px;line-height:24px;vertical-align:top;color:#fff}.n2-form-element-text .n2-text-unit,html[dir=rtl] .n2-form-element-text .n2-text-sub-label{margin-right:-2px;margin-left:0}.n2-form-element-text .n2-text-sub-label,html[dir=rtl] .n2-form-element-text .n2-text-unit{margin-right:0;margin-left:-2px}.n2-form-dark .n2-form-element-text .n2-text-sub-label,.n2-form-dark .n2-form-element-text .n2-text-unit{background:#28313a;color:#9aa7b2}.n2-form-element-text.focus .n2-text-sub-label,.n2-form-element-text.focus .n2-text-unit{background-color:#0c92df;color:#fff}.n2-form-element-text .n2-form-element-preview{display:inline-block;margin:1px;width:20px;height:20px;background-size:cover;border:1px solid rgba(0,0,0,.2);vertical-align:top}.n2-form-element-connected .n2-form-element-text{position:relative;border-top-right-radius:0;border-bottom-right-radius:0;margin-right:0;border-right-width:1px}.n2-form-element-connected .n2-form-element-text+.n2-form-element-text{margin-left:0;border-top-left-radius:0;border-bottom-left-radius:0;border-left-width:1px}.n2-form-element-connected-marginpadding{margin-left:10px}.n2-form-element-connected-marginpadding .n2-text-sub-label{display:inline-block;border:2px solid #28313a;border-right-width:1px;background:#28313a;height:24px;line-height:24px;color:#9aa7b2;vertical-align:top;padding:0 5px;border-top-left-radius:3px;border-bottom-left-radius:3px;font-size:16px;cursor:pointer}.n2-form-element-connected-marginpadding.n2-values-linked .n2-text-sub-label .n2-i:before{content:'\e64d'}.n2-form-element-connected-marginpadding .n2-form-element-text{position:relative;border-radius:0;margin-right:0;margin-left:0;border-left-width:1px;border-right-width:1px}.n2-form-element-connected-marginpadding.n2-values-linked .n2-form-element-text+.n2-form-element-text{display:none}.n2-form-element-text .nui-slider-container{display:none;position:absolute;top:24px;width:100%;min-width:70px;border:2px solid #a1aeb5;border-radius:3px;background-color:#fff;margin:0 -2px;z-index:2}.n2-form-dark .n2-form-element-text .nui-slider-container{border:2px solid #28313a;background:#303b47}.n2-form-element-text.focus .nui-slider-container{border:2px solid #0c92df}.n2-form-element-text.n2-active .nui-slider-container,.n2-form-element-text:HOVER .nui-slider-container{display:block}.n2-form-element-text .nui-slider{position:relative;background:#a1aeb5;height:6px;margin:10px;border-radius:10px}.n2-form-dark .n2-form-element-text .nui-slider{background:#526a80}.n2-form-element-text .nui-slider .nui-slider-handle{position:absolute;top:0;z-index:2;width:10px;height:10px;-ms-touch-action:none;touch-action:none;background:#fff;border:2px solid #a1aeb5;margin:-4px -7px 0;border-radius:50px;cursor:ew-resize}.n2-form-dark .n2-form-element-text .nui-slider .nui-slider-handle{border:2px solid #526a80}.n2-form-element-file input[type=file],.n2-form-element-file input[type=file]:focus{padding:0;height:24px;line-height:24px;margin:0}.n2-form-element-preview-fixed{position:relative;height:96px;border:2px solid #303b47;background-position:50% 50%;background-size:contain;background-repeat:no-repeat;margin:0 10px;overflow:hidden;cursor:pointer;width:300px}.n2-form-element-preview-fixed .n2-button{display:none;position:absolute;top:3px;left:3px}.n2-form-element-preview-fixed:HOVER .n2-button{display:block}.n2-form-element-preview-fixed+div{display:inline-block}.n2-form-element-autocomplete{z-index:auto}.n2-form-element-textarea{display:inline-block;border:2px solid #a1aeb5;margin:0 10px}.n2-form .n2-form-element-textarea{margin-bottom:10px}.n2-form-dark .n2-form-element-textarea{border-color:#28313a;background-color:#303b47}.n2-form-element-textarea.focus{border-color:#0c92df}.n2-form-element-textarea textarea,.n2-form-element-textarea textarea:focus{margin:0;padding:2px 6px;border:0;display:inline-block;color:#7b8898;vertical-align:top;min-height:24px}.n2-form-dark .n2-form-element-textarea textarea,.n2-form-dark .n2-form-element-textarea textarea:focus{background:#303b47;color:#b2bfc9}.n2-textarea-rich{background:#4d5d70;border-bottom:2px solid #28313a;height:32px;color:#fff;font-size:16px;line-height:32px}.n2-textarea-rich>div{display:inline-block;width:32px;text-align:center;border-right:2px solid #28313a;cursor:pointer}.n2-form-element-option-chooser{display:inline-block;border:2px solid #a1aeb5;margin:0 10px;background:#fff}.n2-form .n2-form-element-option-chooser{margin-bottom:10px}.n2-form-dark .n2-form-element-option-chooser{border-color:#28313a;background:#303b47}.n2-form-element-option-chooser input{display:inline-block;margin:0 5px;border:0;box-shadow:none;height:24px;line-height:24px;color:#7b8898;width:120px}.n2-form-dark .n2-form-element-option-chooser input{background:#303b47;color:#b2bfc9}.n2-form-element-color input{text-transform:uppercase;width:50px;text-align:center}.n2-form-element-color-alpha input{width:70px}.n2-form-element-connected,.n2-form-element-mixed,.n2-form-element-onoff,.n2-form-element-onoff *{display:inline-block}.n2-form-element-mixed .n2-mixed-group{display:inline-block;vertical-align:top}.n2-form-element-mixed .n2-mixed-label{line-height:14px}.n2-form-element-mixed label{margin:0 10px;color:#7b8898;font-size:10px;display:inline-block}.n2-form-dark .n2-form-element-mixed label{color:#b2bfc9}.n2-mixed-element>div{position:relative}.n2-form-element-onoff{position:relative;background:#9aa8af;width:44px;height:24px;margin:2px 10px;-webkit-border-radius:12px;-moz-border-radius:12px;border-radius:12px;overflow:hidden;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.n2-form .n2-form-element-onoff{margin-bottom:7px}.n2-form-element-onoff.n2-onoff-on{background:#51b82d}.n2-form-element-onoff .n2-onoff-slider{position:absolute;top:3px;left:-18px;width:88px;height:18px;padding:0 2px;-webkit-transition:left .25s;transition:left .25s}.n2-form-element-onoff .n2-onoff-slider *{vertical-align:top}.n2-form-element-onoff.n2-onoff-on .n2-onoff-slider{left:0}html[dir=rtl] .n2-form-element-onoff .n2-onoff-slider{-webkit-transition:right .25s;transition:right .25s;left:auto;right:-18px}html[dir=rtl] .n2-form-element-onoff.n2-onoff-on .n2-onoff-slider{right:0}.n2-form-element-onoff .n2-onoff-no,.n2-form-element-onoff .n2-onoff-yes{font-size:16px;line-height:18px;color:#fff;width:20px;text-align:center}.n2-form-element-onoff .n2-onoff-yes{font-size:14px}.n2-form-element-onoff .n2-onoff-slider .n2-i{line-height:inherit}.n2-form-element-onoff .n2-onoff-round{width:18px;height:18px;background-color:#fff;-webkit-border-radius:9px;-moz-border-radius:9px;border-radius:9px;box-shadow:0 0 0 1px RGBA(0,0,0,.1)}.n2-form-element-onoff-button{display:inline-block;border-radius:3px;background-color:#909ca3;line-height:28px;overflow:hidden;cursor:pointer}.n2-form-element-onoff-button .n2-onoffb-label{display:inline-block;color:#fff;font-size:11px;padding:0 10px;line-height:28px}.n2-form-element-onoff-button .n2-onoffb-container{background-color:#a1aeb5;width:32px;height:28px;display:inline-block}.n2-form-element-onoff-button *{vertical-align:top;display:inline-block}.n2-form-element-onoff-button .n2-onoffb-slider{position:relative;border-radius:4px;background-color:#6b7986;width:20px;height:8px;margin:10px 6px}.n2-form-element-onoff-button.n2-onoff-on .n2-onoffb-slider{background-color:#40b618}.n2-form-element-onoff-button .n2-onoffb-round{position:absolute;left:10px;top:-1px;border-radius:5px;width:10px;height:10px;background:#fff;-webkit-transition:left .25s;transition:left .25s}.n2-form-element-onoff-button.n2-onoff-on .n2-onoffb-round{left:0}.n2-form-element-switcher,.n2-form-element-switcher *{display:inline-block}.n2-form-element-switcher{margin:0 10px}.n2-form .n2-form-element-switcher{margin-bottom:10px}.n2-form-element-switcher .n2-switcher-unit{background-color:#a1aeb5;line-height:28px;color:#fff;padding:0 8px;cursor:pointer;border-right:1px solid #b9c3c9}.n2-form-dark .n2-form-element-switcher .n2-switcher-unit{border-color:#28313a;background-color:#303b47;color:#9aa7b2}.n2-form-element-switcher .n2-switcher-unit.n2-active{background-color:#0c92df;cursor:default;color:#fff}.n2-form-element-switcher .n2-switcher-unit.n2-first{-webkit-border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;-moz-border-radius-topleft:3px;-moz-border-radius-bottomleft:3px;border-top-left-radius:3px;border-bottom-left-radius:3px}.n2-form-element-switcher .n2-switcher-unit.n2-last{-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-right:0}.n2-form-element-units{display:inline-block;position:relative;color:#fff}.n2-form-dark .n2-form-element-units{color:#9aa7b2}.n2-form-element-units .n2-element-current-unit{display:inline-block;padding:0 5px;background-color:#a1aeb5;height:24px;line-height:24px;vertical-align:top;border:2px solid #a1aeb5;border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-form-dark .n2-form-element-units .n2-element-current-unit{background-color:#28313a;border:2px solid #28313a}.n2-element-units{display:none;position:absolute;left:0;top:28px;line-height:28px;background-color:#a1aeb5;padding:0 7px;z-index:10000}.n2-form-dark .n2-element-units{background-color:#28313a}.n2-form-element-units:HOVER .n2-element-units{display:block}.n2-element-units>*{cursor:pointer;text-align:center}.n2-form .n2-form-element-radio{margin-bottom:10px}.n2-form-element-radio,.n2-form-element-radio *{display:inline-block}.n2-form-element-radio .n2-radio-option{color:#7b8898;margin:5px 10px;cursor:pointer;line-height:18px;vertical-align:top}.n2-form-dark .n2-form-element-radio .n2-radio-option{color:#b2bfc9}.n2-form-element-radio .n2-radio-option.n2-active{cursor:default}.n2-form-element-radio .n2-radio-option-marker{width:14px;height:14px;border:2px solid #bcc6cb;-webkit-border-radius:14px;-moz-border-radius:14px;border-radius:14px;margin-right:5px;-webkit-transition:border-color .25s,background-color .25s;transition:border-color .25s,background-color .25s;background-color:#fff;font-size:12px;line-height:14px;color:#fff;vertical-align:top;text-align:center}html[dir=rtl] .n2-form-element-radio .n2-radio-option-marker{margin-left:5px;margin-right:0}.n2-form-dark .n2-form-element-radio .n2-radio-option-marker{border-color:#28313a;background-color:#4d5d70}.n2-form-element-radio .n2-radio-option-marker .n2-i{-webkit-transition:opacity .25s;transition:opacity .25s;opacity:0}.n2-form-element-radio .n2-radio-option.n2-active .n2-radio-option-marker{border-color:#6fbc49;background-color:#6fbc49}.n2-form-element-radio .n2-radio-option.n2-active .n2-radio-option-marker .n2-i{opacity:1}.n2-form-element-radio .n2-radio-option.n2-active .n2-radio-option-marker+span{vertical-align:top}.n2-imagelist .n2-form-element-radio,.n2-imagelist img{max-width:100%}.n2-imagelist .n2-radio-option{border:4px solid #b8c2cd;padding:4px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;vertical-align:middle}.n2-imagelist .n2-imagelist-option{line-height:0;background:#b8c2cd;max-width:94%}.n2-white .n2-imagelist .n2-imagelist-option{background:#fff}.n2-imagelist .n2-radio-option.n2-active{border-color:#0c92df}.n2-imagelistlabel .n2-radio-option{position:relative;width:110px;height:70px;background:center 0 no-repeat;padding:0;border:0;border-radius:0;margin-top:10px;margin-bottom:10px}.n2-imagelistlabel .n2-radio-option span{text-align:center;position:absolute;bottom:-8px;left:0;display:block;width:100%;line-height:20px}.n2-imagelistlabel .n2-radio-option.n2-active{background-position:center -70px;color:#0c92df}.n2-form-element-radio-tab{margin:0 10px;line-height:28px;vertical-align:middle!important;height:28px;display:inline-block}.n2-form .n2-form-element-radio-tab{margin-bottom:10px}.n2-form-element-radio-tab>div{float:left}.n2-form-element-radio-tab .n2-radio-option,.n2-form-element-radio-tab .n2-radio-option-label{padding:0 10px;text-align:center;background:#8e9ea7;color:#fff;vertical-align:top;text-transform:uppercase}.n2-form-element-radio-tab .n2-radio-option{cursor:pointer}.n2-form-element-radio-tab .n2-radio-option-label{background:#909ca3;cursor:default}.n2-form-dark .n2-form-element-radio-tab .n2-radio-option{background:#28313a;color:#9aa7b2}.n2-form-element-radio-tab .n2-radio-option.n2-active{background:#0c92df;color:#fff}.n2-form-element-radio-tab .n2-radio-option-label.n2-first,.n2-form-element-radio-tab .n2-radio-option.n2-first{-webkit-border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;-moz-border-radius-topleft:3px;-moz-border-radius-bottomleft:3px;border-top-left-radius:3px;border-bottom-left-radius:3px}.n2-form-element-radio-tab .n2-radio-option-label.n2-last,.n2-form-element-radio-tab .n2-radio-option.n2-last{-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-form-element-list{margin:0 10px;display:inline-block}.n2-form .n2-form-element-list{margin-bottom:10px}.n2 .n2-form-element-list select{padding:0;margin:0;height:24px;border:2px solid #b9c3c9;background:0 0;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.n2 .n2-form-element-list select[multiple]{height:auto}.n2 .n2-form-dark .n2-form-element-list select{border:2px solid #28313a;background:#303b47;color:#b2bfc9}.n2 .n2-form-element-list select:focus{box-shadow:none}.n2 .n2-form-element-list select{font-weight:400;font-size:12px;color:#7b8898}.n2 .n2-form-element-list select option{padding:0 5px}.n2-form-element-single-button{margin:0 10px}.n2-form .n2-form-element-checkbox,.n2-form .n2-form-element-single-button{margin-bottom:10px}.n2-form-element-checkbox{display:inline-block;margin:0 10px;white-space:nowrap}.n2-checkbox-option{display:inline-block;margin:0 3px;background:#8e9ea7;cursor:pointer;line-height:28px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.n2-checkbox-option.n2-first{margin-left:0}.n2-checkbox-option.n2-last{margin-right:0}.n2-form-dark .n2-checkbox-option{background:#28313a;color:#9aa7b2}.n2-form-element-decoration{display:inline-block}.n2-form-element-decoration .n2-checkbox-option,.n2-form-element-icon-radio .n2-radio-option,.n2-form-element-textalign .n2-radio-option{width:28px;height:28px;line-height:28px;text-align:center;font-size:16px;color:#fff;padding:0}.n2-form-dark .n2-form-element-decoration .n2-checkbox-option,.n2-form-dark .n2-form-element-icon-radio .n2-radio-option{color:#9aa7b2}.n2-checkbox-option.n2-active,.n2-form-dark .n2-checkbox-option.n2-active,.n2-form-dark .n2-form-element-icon-radio .n2-radio-option.n2-active{background:#0c92df;color:#fff}.n2-form-element-img+a,.n2-form-element-img+a+a{margin-right:10px}.n2-form-element-icon{display:inline-block;margin:0 10px;white-space:nowrap}.n2-form .n2-form-element-icon{margin-bottom:10px}.n2-form-element-icon .n2-form-element-preview{margin-right:3px;border:0;width:22px;height:22px;text-align:center;line-height:22px}.n2-form-element-icon .n2-form-element-preview>.n2i{color:#fff;font-size:22px;vertical-align:top}.n2-icons-modal .n2-modal-content{overflow:auto!important;padding:0}.n2-icons-modal .n2-icon{display:inline-block;margin:5px;width:32px;height:32px;cursor:pointer;font-size:24px;line-height:32px;text-align:center;color:#000}.n2-icons-modal .n2-modal-content{}.n2-icons-modal .n2-modal-content .n2-form-tab:last-child{margin-bottom:40px}.n2-subform-image .n2-subform-image-option{display:inline-block;width:150px;height:120px;padding:30px 3%;color:#7b8898}.n2-subform-image .n2-subform-image-option .n2-subform-image-element{width:150px;height:90px;cursor:pointer}.n2-subform-image .n2-subform-image-option.n2-active .n2-subform-image-element{background-position:0 -100px;cursor:default}.n2-subform-image .n2-subform-image-option .n2-subform-image-title{text-align:center;margin-top:10px}.n2-subform-image .n2-subform-image-option.n2-active{color:#0c92df}.n2-subform-image.n2-small .n2-subform-image-option .n2-subform-image-element{width:100px;height:70px}.n2-subform-image.n2-small .n2-subform-image-option.n2-active .n2-subform-image-element{background-position:0 -80px}.n2-subform-image.n2-small .n2-subform-image-option{width:100px;height:100px}.n2-subform-image .n2-subform-image-option-simple{display:inline-block;width:190px;height:120px;border-radius:3px;border:5px solid #a1aeb5;margin:25px;padding:0;vertical-align:top}.n2-subform-image .n2-subform-image-option-simple.n2-active{border-color:#0c92df}.n2-subform-image .n2-subform-image-option-simple div.n2-subform-image-element{width:100%;height:100%;background-repeat:repeat-y}.n2-subform-image .n2-subform-image-option-simple.n2-active div.n2-subform-image-element{background-position:0 -120px}.n2-subform-2-rows{max-height:360px;overflow:auto;margin:-10px -10px 0}.n2-form-matrix{border-bottom-width:1px;border-radius:3px}.n2-form-matrix .n2-form-tab{border-radius:0}.n2-form-matrix>.n2-h2{padding:0}.n2-form-matrix .n2-form-matrix-menu{cursor:pointer;display:inline-block;margin:0 20px;vertical-align:top;line-height:60px;font-size:14px;color:#b2bfc9}.n2-form-matrix .n2-form-matrix-menu.n2-active{color:#fff}.n2-form-matrix .n2-form-matrix-menu.n2-has-underline>.n2-underline::after{bottom:-10px;color:#0c92df}#n2-css-slide-editor-design-css.n2-basiccss-show-preset-list #n2-tab-basiccssfont,#n2-css-slide-editor-design-css.n2-basiccss-show-preset-list #n2-tab-basiccssstyle,.n2-form-matrix-pane{display:none}.n2-form-matrix>.n2-form-matrix-views{z-index:4;padding:0 20px;background:#212d3a;margin:-1px -1px 0;border-top-left-radius:3px;border-top-right-radius:3px}#n2-tab-basiccssfont.n2-css-has-font,#n2-tab-basiccssstyle.n2-css-has-style,.n2-form-matrix-pane.n2-active{display:block}.n2-form-matrix-pane .n2-form{margin-bottom:0}.n2-form-matrix-pane .n2-form-tab{border-width:0 0 1px;margin:0}.n2-form-matrix-pane .n2-form-tab>.n2-h2{font-size:14px}#n2-tab-basiccssfont,#n2-tab-basiccssstyle{display:none;background:#3c4958}#n2-tab-basiccssfont>.n2-h2,#n2-tab-basiccssstyle>.n2-h2,.n2-editor-header.n2-h2{padding:0;line-height:43px;background:#28313a;border-bottom:1px solid #20282f}#n2-tab-basiccssfont>.n2-h2,#n2-tab-basiccssstyle>.n2-h2{margin-bottom:5px}.n2-editor-header>span{position:relative;font-size:11px;display:inline-block;vertical-align:top;color:#b2bfc9}.n2-css-name{color:#b2bfc9}.n2-css-name,.n2-css-tab,.n2-editor-header .n2-ss-button-container,.n2-editor-header .n2-ss-button-container-left{position:relative;font-size:11px;display:inline-block;vertical-align:top}.n2-editor-header .n2-ss-button-container{float:right;color:#fff}.n2-editor-header .n2-ss-button-container-left{color:#fff;float:left}.n2-css-tab{float:right;color:#fff}.n2-editor-header .n2-ss-button-container-left>*{margin-left:10px;vertical-align:middle}#n2-tab-basiccssfont .n2-css-tab,#n2-tab-basiccssstyle .n2-css-tab{overflow:hidden;height:24px;line-height:24px;border-radius:3px;margin:10px 10px 0 0}#n2-tab-basiccssfont .n2-css-tab-reset,#n2-tab-basiccssstyle .n2-css-tab-reset{display:none;float:right;margin:10px 10px 0 0}#n2-tab-basiccssfont.n2-css-show-reset .n2-css-tab-reset,#n2-tab-basiccssstyle.n2-css-show-reset .n2-css-tab-reset{display:inline-block}.n2-css-tab>*,.n2-editor-header .n2-ss-button-container>*{display:inline-block;padding:0 10px}.n2-editor-header .n2-ss-button-container{margin-right:10px}.n2-css-tab>.n2-button,.n2-editor-header .n2-ss-button-container>.n2-button{height:24px;line-height:24px;padding:0}.n2-editor-header .n2-ss-button-container>.n2-button-icon{height:28px;line-height:28px;width:28px;vertical-align:middle}.n2-css-tab>.n2-button-normal,.n2-editor-header .n2-ss-button-container>.n2-button-normal{padding:0 15px}.n2-css-name-label,.n2-editor-header>span{padding:0 10px}.n2-css-name .n2-css-name-list{display:none}.n2-css-name.n2-multiple .n2-css-name-label:after{content:"\e638";font-family:'Nextend'!important;vertical-align:top;margin:0 0 0 5px}.n2-css-name.n2-multiple .n2-css-name-list{position:absolute;left:0;top:34px;background:#28313a;white-space:nowrap}.n2-css-name.n2-multiple:HOVER .n2-css-name-list{display:block}.n2-css-name.n2-multiple .n2-css-name-list>*{white-space:nowrap;display:block;padding:0 10px;cursor:pointer}.n2-css-name.n2-multiple .n2-css-name-list>*:HOVER{background:#303b47}.n2-css-tab span{background:#6b7986;cursor:pointer;height:24px;line-height:24px}.n2-css-tab span.n2-active{background:#0c92df;cursor:default}#n2-tab-basiccssfont #layerfamily{max-width:none!important}#n2-tab-basiccsspresets{display:none}#n2-css-slide-editor-design-css.n2-basiccss-show-preset-list #n2-tab-basiccsspresets{display:block}#n2-tab-basiccsspresets div div{line-height:30px;background-color:#303b47;border-bottom:1px solid RGBA(0,0,0,.2);color:#fff;cursor:pointer;padding:0 20px}#n2-tab-basiccsspresets div div:HOVER{background:#1681c1}.n2-basiccss-more{background:#303b47;line-height:28px;height:28px;vertical-align:top;margin-top:15px;float:right;margin-right:23px;color:#9aa7b2}.n2-notification-center-modal{background-color:RGBA(43,52,63,.9);width:100%;height:100%;position:fixed;left:0;top:0;display:none;z-index:2147483646}.n2-notification-center-modal.n2-active,.n2-notification-center-modal.n2-active .n2-notification-center{display:block}.n2-notification-center{display:none;position:absolute;top:61px;right:0;width:370px;background:#fff;border:1px solid #ccd1d6;border-top:0;opacity:0}html[dir=rtl] .n2-notification-center{left:0;right:auto}.n2-notification-center-modal .n2-notification-center{display:none;position:absolute;left:50%;right:auto;top:50%;margin-left:-185px;margin-top:-63px;opacity:1}.n2-notification-settings{position:relative;background:#f2f5fa;border-top:1px solid #ccd1d6;height:44px}.n2-notification-clear{position:absolute;left:10px;top:10px}.n2-notification-important{position:absolute;right:10px;top:13px;cursor:pointer}.n2-notification-important span{vertical-align:top;padding:0 10px;color:#6b7989}.n2-checkbox{display:inline-block;width:14px;height:14px;background:#f2f5fa;border:2px solid #b9c3c9;border-radius:2px;vertical-align:top}.n2-checkbox .n2-i{color:#f2f5fa;font-size:14px;margin:0;padding:0;vertical-align:top}.n2-active>.n2-checkbox{background:#6fbc49;border-color:#6fbc49}.n2-active>.n2-checkbox .n2-i{color:#fff}.n2-notification-message{border-top:1px solid #ccd1d6}.n2-notification-message .n2-td{padding:22px 0}.n2-notification-message .n2-first{width:62px}.n2-notification-message .n2-i{vertical-align:middle;margin:0 10px;font-size:32px}.n2-notification-message h4{margin:0}.n2-notification-message p{color:#7b8898;margin:0}.n2-notification-message-error,.n2-notification-message-error h4{color:#c54633}.n2-notification-message-success,.n2-notification-message-success h4{color:#50aa31}.n2-notification-message-notice,.n2-notification-message-notice h4{color:#0c92df}.n2-notification-empty{color:#7b8898;margin:20px;text-align:center}.n2-loader-overlay{display:none;position:fixed;width:100%;height:100%;left:0;top:0;z-index:2147483647;background-color:RGBA(43,52,63,.9)}.n2-loader-overlay.n2-active{display:block}.n2-loader{position:absolute;left:50%;top:50%;margin-left:-20px;margin-top:-20px;border:10px solid rgba(255,255,255,.2);border-left-color:#fff;-webkit-animation:n2-load 1.1s infinite linear;animation:n2-load 1.1s infinite linear;overflow:hidden}.n2-loader,.n2-loader:after{border-radius:50%;width:40px;height:40px}@-webkit-keyframes n2-load{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes n2-load{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.n2-sp-container{position:absolute;top:0;left:0;display:inline-block;*display:inline;*zoom:1;z-index:2147483647;overflow:hidden}.n2-sp-container.n2-sp-flat,.n2-sp-top{position:relative}.n2-sp-top{width:100%;display:inline-block}.n2-sp-top-inner{left:0;right:0;margin-bottom:5px}.n2-sp-color,.n2-sp-hue,.n2-sp-top-inner{position:absolute;top:0;bottom:0}.n2-sp-color{margin-right:5px;left:0;right:20%}.n2-sp-hue{right:0;left:84%;height:100%;box-shadow:0 0 1px 1px rgba(0,0,0,.2)inset}.n2-sp-fill{padding-top:80%}.n2-sp-sat,.n2-sp-val{position:absolute;top:0;left:0;right:0;bottom:0;box-shadow:0 0 1px 1px rgba(0,0,0,.2)inset}.n2-sp-alpha-enabled .n2-sp-top{margin-bottom:18px}.n2-sp-alpha-enabled .n2-sp-alpha{display:block}.n2-sp-alpha-handle{position:absolute;top:-4px;bottom:-4px;width:7px;left:50%;cursor:pointer;box-shadow:0 0 0 1px RGBA(0,0,0,.4);background:#fff;border-radius:2px}.n2-sp-alpha{display:none;bottom:-14px;right:0;left:0;height:8px}.n2-sp-alpha-inner{background:-moz-linear-gradient(left,rgba(0,0,0,0)25%,#000 100%);background:-webkit-gradient(linear,left top,right top,color-stop(25%,rgba(0,0,0,0)),color-stop(100%,#000));background:-webkit-linear-gradient(left,rgba(0,0,0,0)25%,#000 100%);background:-o-linear-gradient(left,rgba(0,0,0,0)25%,#000 100%);background:-ms-linear-gradient(left,rgba(0,0,0,0)25%,#000 100%);background:linear-gradient(to right,rgba(0,0,0,0)25%,#000 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#000000', GradientType=1);box-shadow:0 0 1px 1px rgba(0,0,0,.2)inset}.n2-sp-alpha,.n2-sp-alpha-handle,.n2-sp-container,.n2-sp-container button,.n2-sp-container.n2-sp-dragging .n2-sp-input,.n2-sp-dragger,.n2-sp-preview,.n2-sp-replacer,.n2-sp-slider{-webkit-user-select:none;-moz-user-select:-moz-none;-o-user-select:none;user-select:none}.n2-sp-container.n2-sp-buttons-disabled .n2-sp-button-container,.n2-sp-container.n2-sp-input-disabled .n2-sp-input-container,.n2-sp-initial-disabled .n2-sp-initial,.n2-sp-palette-disabled .n2-sp-palette-container,.n2-sp-palette-only .n2-sp-picker-container{display:none}.n2-sp-sat{background-image:-webkit-gradient(linear,0 0,100% 0,from(#fff),to(rgba(204,154,129,0)));background-image:-webkit-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-moz-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-o-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-ms-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:linear-gradient(to right,#fff,rgba(204,154,129,0));-ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr=#FFFFFFFF, endColorstr=#00CC9A81)";filter:progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr='#FFFFFFFF', endColorstr='#00CC9A81')}.n2-sp-val{background-image:-webkit-gradient(linear,0 100%,0 0,from(#000),to(rgba(204,154,129,0)));background-image:-webkit-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-moz-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-o-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-ms-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:linear-gradient(to top,#000,rgba(204,154,129,0));-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#00CC9A81, endColorstr=#FF000000)";filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00CC9A81', endColorstr='#FF000000')}.n2-sp-hue{background:-moz-linear-gradient(top,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-ms-linear-gradient(top,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-o-linear-gradient(top,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-webkit-gradient(linear,left top,left bottom,from(red),color-stop(.17,#ff0),color-stop(.33,#0f0),color-stop(.5,#0ff),color-stop(.67,#00f),color-stop(.83,#f0f),to(red));background:-webkit-linear-gradient(top,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.n2-sp-1{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0000', endColorstr='#ffff00')}.n2-sp-2{height:16%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffff00', endColorstr='#00ff00')}.n2-sp-3{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ff00', endColorstr='#00ffff')}.n2-sp-4{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ffff', endColorstr='#0000ff')}.n2-sp-5{height:16%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0000ff', endColorstr='#ff00ff')}.n2-sp-6{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff00ff', endColorstr='#ff0000')}.n2-sp-cf:after,.n2-sp-cf:before{content:"";display:table}.n2-sp-cf:after{clear:both}.n2-sp-cf{*zoom:1}@media (max-device-width:480px){.n2-sp-color{right:40%}.n2-sp-hue{left:63%}.n2-sp-fill{padding-top:60%}}.n2-sp-dragger,.n2-sp-slider{position:absolute;top:0;cursor:pointer;background:#fff;box-shadow:0 0 0 1px RGBA(0,0,0,.4)}.n2-sp-dragger{width:12px;transform:translateX(6px) translateY(6px);border-radius:12px;height:12px;left:0}.n2-sp-slider{height:6px;left:-2px;right:-2px;border-radius:2px;transform:translateY(3px)}.n2-sp-container{border-radius:3px;background-color:#fff;padding:0;border:2px solid #b9c3c9}.n2-sp-color,.n2-sp-container,.n2-sp-container button,.n2-sp-container input,.n2-sp-hue{font:12px "Lucida Grande","Lucida Sans Unicode","Lucida Sans",Geneva,Verdana,sans-serif;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.n2-sp-top{margin-bottom:3px}.n2-sp-input-container{float:right;width:100px;margin-bottom:4px}.n2-sp-initial-disabled .n2-sp-input-container{width:100%}.n2-sp-input{font-size:12px!important;border:1px inset;padding:4px 5px;margin:0;width:100%;background:0 0;border-radius:3px;color:#222}.n2-sp-input:focus{border:1px solid orange}.n2-sp-input.n2-sp-validation-error{border:1px solid red;background:#fdd}.n2-sp-palette-container,.n2-sp-picker-container{float:left;position:relative;padding:10px 10px 300px;margin-bottom:-295px}.n2-sp-picker-container{width:172px}.n2-sp-palette-container{border-right:solid 1px #ccc}.n2-sp-palette-row{float:left}.n2-sp-palette-row-selection{border-left:1px solid rgba(0,0,0,.2);margin-left:7px;padding-left:5px}.n2-sp-palette .n2-sp-thumb-el{display:block;position:relative;clear:left;float:left;cursor:pointer}.n2-sp-palette .n2-sp-thumb-el.n2-sp-thumb-active,.n2-sp-palette .n2-sp-thumb-el:hover{border-color:orange}.n2-sp-initial{float:left;border:solid 1px #333}.n2-sp-initial span{width:30px;height:25px;border:none;display:block;float:left;margin:0}.n2-sp-button-container{float:right}.n2-sp-replacer{margin:0;overflow:hidden;cursor:pointer;padding:2px;border-radius:3px;display:inline-block;*zoom:1;*display:inline;color:#333;vertical-align:top}.n2-sp-replacer.n2-sp-active,.n2-sp-replacer:hover{border-color:#d8d8d8;color:#111}.n2-sp-replacer.n2-sp-disabled{cursor:default;border-color:silver;color:silver}.n2-sp-dd{display:none;height:8px;line-height:8px;width:8px;background-color:#d8d8d8;font-size:7px;margin:13px 0 0 -9px;position:relative;-webkit-border-top-left-radius:3px;-moz-border-radius-topleft:3px;border-top-left-radius:3px;float:left;text-align:center}.n2-sp-preview{width:20px;height:20px;border-radius:3px;float:left;z-index:0;overflow:hidden}.n2-sp-palette{*width:220px;max-width:220px}.n2-sp-palette .n2-sp-thumb-el{width:20px;height:20px;margin:4px;border:0}.n2-sp-palette .n2-sp-thumb-inner{width:20px;height:20px}.n2-sp-container{padding-bottom:0}.n2-sp-container button{background-color:#eee;background-image:-webkit-linear-gradient(top,#eee,#ccc);background-image:-moz-linear-gradient(top,#eee,#ccc);background-image:-o-linear-gradient(top,#eee,#ccc);background-image:-ms-linear-gradient(top,#eee,#ccc);background-image:linear-gradient(to bottom,#eee,#ccc);border:1px solid #ccc;border-bottom:1px solid #bbb;border-radius:3px;color:#333;font-size:14px;line-height:1;padding:5px 4px;text-align:center;text-shadow:0 1px 0 #eee;vertical-align:middle}.n2-sp-container button:hover{background-color:#ddd;background-image:-webkit-linear-gradient(top,#ddd,#bbb);background-image:-moz-linear-gradient(top,#ddd,#bbb);background-image:-o-linear-gradient(top,#ddd,#bbb);background-image:-ms-linear-gradient(top,#ddd,#bbb);background-image:linear-gradient(to bottom,#ddd,#bbb);border:1px solid #bbb;border-bottom:1px solid #999;cursor:pointer;text-shadow:0 1px 0 #ddd}.n2-sp-container button:active{border:1px solid #aaa;border-bottom:1px solid #888;-webkit-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-moz-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-ms-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-o-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee}.n2-sp-cancel{font-size:11px;color:#d93f3f!important;padding:2px;margin:0 5px 0 0;vertical-align:middle;text-decoration:none}.n2-sp-cancel:hover{color:#d93f3f!important;text-decoration:underline}.n2-sp-palette span.n2-sp-thumb-active,.n2-sp-palette span:hover{border-color:rgba(0,0,0,.5)}.n2-sp-alpha,.n2-sp-preview,.n2-sp-thumb-el{position:relative;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.n2-sp-alpha-inner,.n2-sp-preview-inner,.n2-sp-thumb-inner{display:block;position:absolute;top:0;left:0;bottom:0;right:0}.n2-sp-thumb-inner{border-radius:3px}.n2-sp-preview-inner,.n2-sp-thumb-inner{border:solid 1px RGBA(0,0,0,.2)}.n2-sp-palette .n2-sp-thumb-inner{background-position:50% 50%;background-repeat:no-repeat}.n2-sp-palette .n2-sp-thumb-light.n2-sp-thumb-active .n2-sp-thumb-inner{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiYBhsgJFMffxAXABlN5JruT4Q3wfi/0DsT64h8UD8HmpIPCWG/KemIfOJCUB+Aoacx6EGBZyHBqI+WsDCwuQ9mhxeg2A210Ntfo8klk9sOMijaURm7yc1UP2RNCMbKE9ODK1HM6iegYLkfx8pligC9lCD7KmRof0ZhjQACDAAceovrtpVBRkAAAAASUVORK5CYII=)}.n2-sp-palette .n2-sp-thumb-dark.n2-sp-thumb-active .n2-sp-thumb-inner{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAMdJREFUOE+tkgsNwzAMRMugEAahEAahEAZhEAqlEAZhEAohEAYh81X2dIm8fKpEspLGvudPOsUYpxE2BIJCroJmEW9qJ+MKaBFhEMNabSy9oIcIPwrB+afvAUFoK4H0tMaQ3XtlrggDhOVVMuT4E5MMG0FBbCEYzjYT7OxLEvIHQLY2zWwQ3D+9luyOQTfKDiFD3iUIfPk8VqrKjgAiSfGFPecrg6HN6m/iBcwiDAo7WiBeawa+Kwh7tZoSCGLMqwlSAzVDhoK+6vH4G0P5wdkAAAAASUVORK5CYII=)}.n2-vt{vertical-align:top}.n2-vm{vertical-align:middle}.n2-radius-s{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.n2-radius-m{-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.n2-radius-l{-webkit-border-radius:500px;-moz-border-radius:500px;border-radius:500px}.n2-tooltip{position:absolute;left:-10000px;top:-10000px;margin-top:-9000000px;opacity:0;z-index:100000;border-radius:3px;line-height:16px;padding:4px 6px;color:#fff;font-size:10px;background:RGBA(32,41,52,.95)}.n2-tooltip.n2-active{opacity:1;margin:10px}.n2-position-display-active .n2-tooltip{display:none}.n2-button{display:inline-block;text-align:center;cursor:pointer}.n2-button,.n2-button-inner,.n2-button-inner:ACTIVE,.n2-button-inner:FOCUS,.n2-button-inner:LINK,.n2-button-inner:VISITED,.n2-button:ACTIVE,.n2-button:FOCUS,.n2-button:LINK,.n2-button:VISITED{color:#fff;text-decoration:none}.n2-button-darker,.n2-button-darker:ACTIVE,.n2-button-darker:FOCUS,.n2-button-darker:LINK,.n2-button-darker:VISITED{color:#b2bfc9}.n2-button-normal{overflow:hidden}.n2-button-wide{display:block;margin:10px 20px}.n2-button-icon{font-size:16px}.n2-button-icon.n2-h32{font-size:32px}.n2-button-with-actions{position:relative}.n2-button-with-actions .n2-button-inner{display:inline-block;height:100%;padding:0 20px;line-height:inherit}.n2-button-with-actions .n2-button-menu-open{position:relative;width:36px;height:100%;display:inline-block;vertical-align:top;background:RGBA(0,0,0,.1);border-left:1px solid RGBA(0,0,0,.1)}.n2-button-menu-open .n2-button-menu{display:none;position:absolute;right:0;top:36px;z-index:3}html[dir=rtl] .n2-button-menu-open .n2-button-menu{right:auto;left:0}.n2-button-menu-inner{margin-top:5px;box-shadow:0 0 5px 0 RGBA(0,0,0,.3);padding:5px 0;background-color:#fff;border-radius:5px}.n2-box-generator .n2-button-menu-inner{max-height:150px;overflow-y:auto;overflow-x:hidden}.n2-button-menu-open.n2-active .n2-button-menu{display:block}.webkit-scroll-fix::-webkit-scrollbar{-webkit-appearance:none;width:7px}.webkit-scroll-fix::-webkit-scrollbar-thumb{border-radius:4px;background-color:rgba(0,0,0,.5);box-shadow:0 0 1px rgba(255,255,255,.5)}.n2-button-xs{height:18px;line-height:18px}.n2-button-xs.n2-button-normal{padding:0 5px}.n2-button-s{height:24px;line-height:24px}.n2-button-s.n2-button-normal,.n2-button-s.n2-button-with-actions .n2-button-inner{padding:0 10px}.n2-button-s .n2-button-menu-open{width:25px}.n2-button-s .n2-button-menu-open .n2-button-menu{top:24px}.n2-button-s.n2-button-icon{width:24px}.n2-button-m{height:28px;line-height:28px}.n2-button-m.n2-button-normal{padding:0 10px}.n2-button-m.n2-button-with-actions .n2-button-inner{padding:0 16px}.n2-button-m .n2-button-menu-open,.n2-button-m.n2-button-icon{width:28px}.n2-button-m .n2-button-menu-open .n2-button-menu{top:28px}.n2-button-m-narrow.n2-button-icon{width:20px}.n2-button-l{height:36px;line-height:36px}.n2-button-l.n2-button-normal{padding:0 15px;min-width:70px}.n2-button-l.n2-button-icon{width:36px}.n2-button-xl{height:50px;line-height:50px}.n2-button-xl,.n2-button-xl.n2-button-normal{padding:0 44px}.n2-button-grey{background:#6b7986}.n2-button-blue,.n2-button-blue-active.n2-active{background:#0c92df}.n2-button-green{background:#51b82d}.n2-button-red{background:#c54633}.n2-button-purple{background:#5f39c2}.n2-button-menu a{display:block;text-align:left;color:#7b8898;line-height:30px;padding:0 20px;white-space:nowrap}.n2-button-menu a:active,.n2-button-menu a:focus,.n2-button-menu a:hover{color:#7b8898}.n2-button-menu a:HOVER{background:#e9edf0}.n2-button-menu a.n2-separator{border-bottom:2px solid #ccd1d6}.n2-button-plain{background:0 0!important;color:#7b8898;height:26px;line-height:26px}.n2-button-plain .n2-button-inner{color:#7b8898;padding:0 5px!important}.n2-button-plain.n2-button-with-actions .n2-button-menu-open{border-left:0;background:0 0}.n2-button-plain .n2-button-inner:active,.n2-button-plain .n2-button-inner:focus,.n2-button-plain .n2-button-inner:link,.n2-button-plain .n2-button-inner:visited,.n2-button-plain:active,.n2-button-plain:focus,.n2-button-plain:link,.n2-button-plain:visited{color:#7b8898}.n2-button-plain.n2-button-with-actions .n2-button-menu-open{width:16px}.n2-button-plain.n2-button-with-actions .n2-button-menu-open .n2-button-menu{top:20px}.n2-button-with-icon{border:2px solid #e0e6ed;color:#6b7989;margin:5px;padding:0 10px}.n2-button-with-icon:ACTIVE,.n2-button-with-icon:FOCUS,.n2-button-with-icon:LINK,.n2-button-with-icon:VISITED{color:#6b7989}.n2-color-red,.n2-color-red.n2-button-plain:visited,.n2-color-red:active,.n2-color-red:focus,.n2-color-red:link{color:#c44e3d!important}.n2-color-blue,.n2-color-blue.n2-button-plain:visited,.n2-color-blue:active,.n2-color-blue:focus,.n2-color-blue:link{color:#0c92df!important}.n2-definition-list,.n2-list{margin:0;padding:0}.n2-definition-list dt{position:relative;line-height:59px;height:59px;background:#303b47;border-bottom:1px solid RGBA(0,0,0,.2);overflow:hidden}.n2-definition-list dt>a{display:block;padding:0 20px;color:#b2bfc9}.n2-definition-list dt>a .n2-i{margin-right:10px;vertical-align:middle;font-size:32px}html[dir=rtl] .n2-definition-list dt>a .n2-i{margin-right:0;margin-left:10px}.n2-definition-list dt .n2-id{display:block;width:70px;position:absolute;left:0;bottom:5px;text-align:center;line-height:11px;color:#8b99a6}.n2-definition-list dt>.n2-actions{display:block;position:absolute;top:0;right:0;background-color:#303b47;font-size:16px;line-height:16px;padding:22px 20px 0}.n2-definition-list dt.n2-open>.n2-actions{background-color:#3c4958}.n2-definition-list dt>.n2-actions a{display:inline-block;padding:0 5px}.n2-definition-list dt>.n2-actions a .n2-i{vertical-align:middle}[dir=rtl] .n2-list li .n2-actions,html[dir=rtl] .n2-definition-list dt>.n2-actions,html[dir=rtl] .n2-list li>.n2-actions{right:auto;left:0}.n2-definition-list dd{margin:0}.n2-list li,.n2-list li>a{color:#b2bfc9;display:block}.n2-list li{position:relative;margin:0;line-height:39px;background-color:#303b47;border-bottom:1px solid RGBA(0,0,0,.2)}.n2-list li>a{padding:0 20px}.n2-list li>a .n2-i{vertical-align:middle;padding:7px;margin-left:-7px;font-size:16px}.n2-list li.n2-active{background:#1681c1}.n2-list li.n2-active>a{color:#fff;vertical-align:middle}.n2-list .n2-list-checkbox.n2-active .n2-i,.n2-list li.n2-active>.n2-actions .n2-i{color:#fff}.n2-list li .n2-actions{position:absolute;top:0;right:0;padding:2px 3px 0;line-height:24px}.n2-list li .n2-actions-left>*,.n2-list li .n2-actions>*{display:inline-block;margin:0 2px}.n2-list li .n2-actions>* .n2-i{vertical-align:middle}.n2-list li.n2-button-container{padding:22px 20px}.n2-list .n2-list-checkbox{display:inline-block;width:16px;height:16px;background:#343f4c;vertical-align:top;border:2px solid #212d3a;border-radius:2px;line-height:16px;margin:10px 10px 0 0}.n2-list .n2-list-checkbox .n2-i{color:#343f4c;font-size:16px;margin:0;padding:0;vertical-align:top}.n2-list .n2-list-checkbox.n2-active{background:#6fbc49;border-color:#6fbc49}.n2-box{float:left;display:inline-block;position:relative;width:270px;height:180px;margin:15px;border-radius:3px;background-color:#212d3a;background-size:cover;background-position:50% 50%;opacity:1;transition:opacity .6s;box-shadow:0 0 5px RGBA(0,0,0,.05)}.n2-box.n2-active{box-shadow:0 0 0 3px #0c92df}.n2-ss-box-just-added{opacity:0}.n2-box-small{width:200px;height:135px;margin:10px}.n2-box.n2-ui-sortable-helper{transform:scale(.8);opacity:.8}.n2-box-sortable-placeholder{height:200px;margin:5px 0;width:0;box-shadow:0 0 0 2px #0c92df;float:left;display:inline-block}.n2-box-sortable-placeholder-small{height:145px}.n2-box img{position:absolute;clip:rect(0,270px,180px,0);border-radius:3px;width:100%}.n2-box-small img{clip:rect(0,200px,95px,0)}.n2-box .n2-box-overlay{z-index:3;position:absolute;left:0;top:0;width:100%;height:calc(100% - 50px);background-color:rgba(32,41,52,.9);border-radius:3px;align-items:center;justify-content:center}.n2-box-small .n2-box-overlay{height:calc(100% - 40px)}.n2-box-overlay .n2-button{line-height:28px;height:28px}.n2-box .n2-box-placeholder{display:flex;z-index:9;position:absolute;left:0;bottom:0;width:100%;height:50px;background:#212d3a;border-bottom-left-radius:3px;border-bottom-right-radius:3px;justify-content:flex-start;align-items:center;padding:0 10px;box-sizing:border-box}.n2-box .n2-box-placeholder[data-align=center]{justify-content:center}.n2-box-small .n2-box-placeholder{height:40px}.n2-box .n2-box-placeholder .n2-box-placeholder-title{margin-right:auto;overflow:hidden;max-height:100%}html[dir=rtl] .n2-box .n2-box-placeholder .n2-box-placeholder-title{margin-left:auto;margin-right:0}.n2-box-placeholder-title,.n2-box-placeholder-title a{color:#cedae2;line-height:16px}.n2-box-small .n2-box-placeholder-title,.n2-box-small .n2-box-placeholder-title a{line-height:20px}.n2-box .n2-box-lt{position:absolute;left:5px;top:5px;width:50%;text-align:left;z-index:4}html[dir=rtl] .n2-box .n2-box-lt{left:auto;right:5px}.n2-box .n2-box-rt{position:absolute;right:5px;top:5px;width:50%;text-align:right}.n2-box .n2-box-lb{position:absolute;left:5px;bottom:55px}.n2-box-small .n2-box-lb{bottom:45px}.n2-box .n2-box-lb>*{white-space:nowrap}.n2-box .n2-box-rb{position:absolute;right:5px;bottom:55px;text-align:right}.n2-box-small .n2-box-rb{bottom:45px}.n2-box .n2-box-center{position:absolute;left:0;top:74px;width:100%;text-align:center;z-index:4}.n2-box>.n2-on-hover,.n2-box>.n2-on-hover-flex{display:none}.n2-box:HOVER>.n2-on-hover{display:block}.n2-box:HOVER>.n2-on-hover-flex{display:flex}.n2-ss-box-select{display:none;border-radius:3px;border:2px solid #8793a2;width:16px;height:16px;text-align:center}.n2-box:HOVER .n2-ss-box-select{display:block}.n2-box.n2-selected .n2-ss-box-select{display:block;border-color:#1999e3;background-color:#1999e3}.n2-box .n2-ss-box-select .n2-i{display:none}.n2-box.n2-selected .n2-ss-box-select .n2-i{display:inline-block;color:#fff;font-size:16px;line-height:16px;margin:0 -2px}.n2-bulk-select{margin:0 10px;vertical-align:top}.n2-bulk-actions{display:inline-block}.n2-ss-has-box-selection .n2-heading-actions{visibility:hidden}.n2-ss-has-box-selection .n2-box-selectable{opacity:.5}.n2-ss-has-box-selection .n2-box-selectable.n2-selected{opacity:1}.n2-ss-has-box-selection .n2-ss-box-select{display:inline-block}.n2-box-menu{display:none;z-index:9}.n2-box-menu.n2-inited{display:inline-block;position:absolute;top:5px;right:5px;text-align:right}html[dir=rtl] .n2-box-menu.n2-inited{right:auto;left:5px}.n2-box-menu .n2-button{float:right}html[dir=rtl] .n2-box-menu .n2-button{float:left}.n2-box-menu .n2-box-menu-content{display:none}.n2-box-menu.n2-active .n2-box-menu-content{margin-top:3px;display:block;clear:both;float:right;background:#fff;border-radius:5px;line-height:30px;text-align:left;box-shadow:0 0 5px 0 RGBA(0,0,0,.3);padding:5px 0;white-space:nowrap}.n2-box-menu.n2-active .n2-box-menu-content ul{margin:0;list-style-type:none}.n2-box-menu.n2-active .n2-box-menu-content li{padding:0 20px;margin:0;color:#7b8898;line-height:30px}.n2-box-menu.n2-active .n2-box-menu-content li:HOVER{background-color:#e9edf0}.n2-box-menu.n2-active .n2-box-menu-content li.n2-ss-delete{color:#c44e3d}.n2-box-full>a{width:100%;height:180px;padding:0}.n2-box-full>a:before{display:block;font-family:'Nextend'!important;font-size:74px;line-height:90px;content:"\e952";margin-top:35px}.n2-box-promo{background:0 0}.n2-box-promo-light{background:#fff}.n2-box-promo-overlay,.n2-box-promo-overlay:FOCUS,.n2-box-promo-overlay:HOVER,.n2-box-promo-overlay:VISITED{position:absolute;display:block;width:100%;height:100%;color:#fff;text-align:center}.n2-box-promo .n2-close{position:absolute;right:10px;top:10px;cursor:pointer;display:none;z-index:3}.n2-box-promo:hover .n2-close{display:block}.n2-box-promo .n2-close:before{font-family:'Nextend'!important;content:"\e90a";font-size:16px}.n2-box-promo-light .n2-close:before{color:#7b8898}.n2-box-promo-dark .n2-close:before{color:#fff}.n2-box-promo span{display:block;position:absolute;bottom:50px;width:100%;line-height:23px;text-align:center;font-size:12px}.n2-box-promo-light span{color:#7b8898}.n2-box-promo-dark span{color:#eff7fb}.n2-box-promo-buttons{position:absolute;bottom:17px;width:100%;text-align:center}.n2-box-promo-buttons .n2-button+.n2-button{margin-left:20px}.n2-box-review{text-align:center}.n2-box-review-bigstar{width:170px;height:105px;margin:0 auto;background-image:url(../images/stars-big.png)}[data-stars="1"] .n2-box-review-bigstar{background-position:0 -105px}[data-stars="2"] .n2-box-review-bigstar{background-position:0 -210px}[data-stars="3"] .n2-box-review-bigstar{background-position:0 -315px}[data-stars="4"] .n2-box-review-bigstar{background-position:0 -420px}[data-stars="5"] .n2-box-review-bigstar{background-position:0 -525px}.n2-box-review-label{color:#7b8898;font-size:15px;line-height:22px;height:22px;overflow:hidden;display:none}[data-stars="0"] .n2-box-review-label[data-star="0"],[data-stars="1"] .n2-box-review-label[data-star="1"],[data-stars="2"] .n2-box-review-label[data-star="2"],[data-stars="3"] .n2-box-review-label[data-star="3"],[data-stars="4"] .n2-box-review-label[data-star="4"],[data-stars="5"] .n2-box-review-label[data-star="5"]{display:block}.n2-box-review-stars-container{width:170px;height:34px;margin:0 auto}.n2-box-review-star{cursor:pointer;transition:transform .4s;vertical-align:top;float:left;width:34px;height:34px;background-image:url(../images/stars-small.png)}[data-stars="1"] .n2-box-review-star[data-star="1"],[data-stars="2"] .n2-box-review-star[data-star="1"],[data-stars="2"] .n2-box-review-star[data-star="2"],[data-stars="3"] .n2-box-review-star[data-star="1"],[data-stars="3"] .n2-box-review-star[data-star="2"],[data-stars="3"] .n2-box-review-star[data-star="3"],[data-stars="4"] .n2-box-review-star[data-star="1"],[data-stars="4"] .n2-box-review-star[data-star="2"],[data-stars="4"] .n2-box-review-star[data-star="3"],[data-stars="4"] .n2-box-review-star[data-star="4"],[data-stars="5"] .n2-box-review-star[data-star="1"],[data-stars="5"] .n2-box-review-star[data-star="2"],[data-stars="5"] .n2-box-review-star[data-star="3"],[data-stars="5"] .n2-box-review-star[data-star="4"],[data-stars="5"] .n2-box-review-star[data-star="5"]{background-position:0 -34px;transform:scale(1.3)}.n2-modal-review-star-5{width:560px;height:241px;background:url(../images/star-5.png)}.n2-modal-review-details{font-size:14px;line-height:28px;color:#7b8898;text-align:center}.nextend-tab-tabbed{width:100%;overflow:hidden}.nextend-tab-tabbed .nextend-tab-tabbed-panes{-webkit-transition:all 400ms ease-in-out;-moz-transition:all 400ms ease-in-out;-ms-transition:all 400ms ease-in-out;-o-transition:all 400ms ease-in-out;transition:all 400ms ease-in-out}.nextend-tab-tabbed .nextend-tab-tabbed-pane{float:left}.xdsoft_datetimepicker{background:#fff;border-radius:5px;border:2px solid #a1aeb5;color:#333;padding:2px 8px 8px 0;position:absolute;z-index:9999;-moz-box-sizing:border-box;box-sizing:border-box;display:none}.xdsoft_datetimepicker iframe{position:absolute;left:0;top:0;width:75px;height:210px;background:0 0;border:none}.xdsoft_datetimepicker button{border:none!important}.xdsoft_noselect{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.xdsoft_noselect::selection{background:0 0}.xdsoft_noselect::-moz-selection{background:0 0}.xdsoft_datetimepicker.xdsoft_inline{display:inline-block;position:static}.xdsoft_datetimepicker *{-moz-box-sizing:border-box;box-sizing:border-box;padding:0;margin:0}.xdsoft_datetimepicker .xdsoft_datepicker,.xdsoft_datetimepicker .xdsoft_timepicker{display:none}.xdsoft_datetimepicker .xdsoft_datepicker.active,.xdsoft_datetimepicker .xdsoft_timepicker.active{display:block}.xdsoft_datetimepicker .xdsoft_datepicker{width:224px;float:left;margin-left:8px}.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_datepicker{width:256px}.xdsoft_datetimepicker .xdsoft_timepicker{width:58px;float:left;text-align:center;margin-left:8px;margin-top:0}.xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker{margin-top:8px;margin-bottom:3px}.xdsoft_datetimepicker .xdsoft_mounthpicker{position:relative;text-align:center}.xdsoft_datetimepicker .xdsoft_label i,.xdsoft_datetimepicker .xdsoft_next,.xdsoft_datetimepicker .xdsoft_prev,.xdsoft_datetimepicker .xdsoft_today_button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeCAYAAADaW7vzAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6Q0NBRjI1NjM0M0UwMTFFNDk4NkFGMzJFQkQzQjEwRUIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6Q0NBRjI1NjQ0M0UwMTFFNDk4NkFGMzJFQkQzQjEwRUIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDQ0FGMjU2MTQzRTAxMUU0OTg2QUYzMkVCRDNCMTBFQiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDQ0FGMjU2MjQzRTAxMUU0OTg2QUYzMkVCRDNCMTBFQiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PoNEP54AAAIOSURBVHja7Jq9TsMwEMcxrZD4WpBYeKUCe+kTMCACHZh4BFfHO/AAIHZGFhYkBBsSEqxsLCAgXKhbXYOTxh9pfJVP+qutnZ5s/5Lz2Y5I03QhWji2GIcgAokWgfCxNvcOCCGKqiSqhUp0laHOne05vdEyGMfkdxJDVjgwDlEQgYQBgx+ULJaWSXXS6r/ER5FBVR8VfGftTKcITNs+a1XpcFoExREIDF14AVIFxgQUS+h520cdud6wNkC0UBw6BCO/HoCYwBhD8QCkQ/x1mwDyD4plh4D6DDV0TAGyo4HcawLIBBSLDkHeH0Mg2yVP3l4TQMZQDDsEOl/MgHQqhMNuE0D+oBh0CIr8MAKyazBH9WyBuKxDWgbXfjNf32TZ1KWm/Ap1oSk/R53UtQ5xTh3LUlMmT8gt6g51Q9p+SobxgJQ/qmsfZhWywGFSl0yBjCLJCMgXail3b7+rumdVJ2YRss4cN+r6qAHDkPWjPjdJCF4n9RmAD/V9A/Wp4NQassDjwlB6XBiCxcJQWmZZb8THFilfy/lfrTvLghq2TqTHrRMTKNJ0sIhdo15RT+RpyWwFdY96UZ/LdQKBGjcXpcc1AlSFEfLmouD+1knuxBDUVrvOBmoOC/rEcN7OQxKVeJTCiAdUzUJhA2Oez9QTkp72OTVcxDcXY8iKNkxGAJXmJCOQwOa6dhyXsOa6XwEGAKdeb5ET3rQdAAAAAElFTkSuQmCC)}.xdsoft_datetimepicker .xdsoft_label i{opacity:.5;background-position:-92px -19px;display:inline-block;width:9px;height:20px;vertical-align:middle}.xdsoft_datetimepicker .xdsoft_prev{float:left;background-position:-20px 0}.xdsoft_datetimepicker .xdsoft_today_button{float:left;background-position:-70px 0;margin-left:5px}.xdsoft_datetimepicker .xdsoft_next{float:right;background-position:0 0}.xdsoft_datetimepicker .xdsoft_next,.xdsoft_datetimepicker .xdsoft_prev,.xdsoft_datetimepicker .xdsoft_today_button{background-color:transparent;background-repeat:no-repeat;border:0 none currentColor;cursor:pointer;display:block;height:30px;opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";outline:medium none currentColor;overflow:hidden;padding:0;position:relative;text-indent:100%;white-space:nowrap;width:20px}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_next,.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev{float:none;height:15px;width:30px;display:block;margin-left:14px}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_next{background-position:-40px -15px;margin-top:7px}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev{background-position:-40px 0;margin-bottom:7px;margin-top:0}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box{height:151px;overflow:hidden;border-bottom:1px solid #ddd}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div{background:#f9fafb;border-top:1px solid #dee1e5;color:#7b8898;font-size:12px;text-align:center;border-collapse:collapse;cursor:pointer;border-bottom-width:0;height:25px;line-height:25px}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div:first-child{border-top-width:0}.xdsoft_datetimepicker .xdsoft_next:hover,.xdsoft_datetimepicker .xdsoft_prev:hover,.xdsoft_datetimepicker .xdsoft_today_button:hover{opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"}.xdsoft_datetimepicker .xdsoft_label{display:inline;position:relative;z-index:9999;margin:0;padding:5px 3px;font-size:14px;line-height:20px;background-color:#fff;float:left;width:182px;text-align:center;cursor:pointer;color:#6b7989}.xdsoft_datetimepicker .xdsoft_label:hover i{opacity:1}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select{border:2px solid #a1aeb5;border-radius:3px;position:absolute;right:0;top:30px;z-index:101;display:none;background:#fff;max-height:160px;overflow-y:hidden}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select.xdsoft_monthselect{right:-7px}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select.xdsoft_yearselect{right:2px}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select>div>.xdsoft_option:hover{color:#fff;background:#51b82d}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select>div>.xdsoft_option{padding:2px 13px 2px 5px;text-decoration:none!important}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select>div>.xdsoft_option.xdsoft_current{background:#0c92df;color:#fff}.xdsoft_datetimepicker .xdsoft_month{width:100px;text-align:right}.xdsoft_datetimepicker .xdsoft_calendar{clear:both}.xdsoft_datetimepicker .xdsoft_year{width:48px;margin-left:5px}.xdsoft_datetimepicker .xdsoft_calendar table{border-collapse:collapse;width:100%}.xdsoft_datetimepicker .xdsoft_calendar td>div{padding-right:5px}.xdsoft_datetimepicker .xdsoft_calendar td,.xdsoft_datetimepicker .xdsoft_calendar th{width:14.2857142%;background:#f9fafb;border:1px solid #dee1e5;color:#7b8898;font-size:12px;text-align:right;vertical-align:middle;padding:0;border-collapse:collapse;cursor:pointer;height:25px}.xdsoft_datetimepicker .xdsoft_calendar th{background:#f2f5fa;text-align:center;color:#999;cursor:default;font-weight:400}.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_calendar td,.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_calendar th{width:12.5%}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today{color:#0c92df}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default,.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div.xdsoft_current{background:#0c92df;color:#fff}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled,.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month,.xdsoft_datetimepicker .xdsoft_time_box>div>div.xdsoft_disabled{opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month.xdsoft_disabled{opacity:.2;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=20)"}.xdsoft_datetimepicker .xdsoft_calendar td:hover,.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div:hover{color:#fff!important;background:#51b82d!important}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled:hover,.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div.xdsoft_disabled:hover{color:inherit!important;background:inherit!important}.xdsoft_datetimepicker .xdsoft_copyright{color:#ccc!important;font-size:10px;clear:both;float:none;margin-left:8px}.xdsoft_datetimepicker .xdsoft_copyright a{color:#eee!important}.xdsoft_datetimepicker .xdsoft_copyright a:hover{color:#aaa!important}.xdsoft_time_box{position:relative;border:1px solid #ccc}.xdsoft_scrollbar>.xdsoft_scroller{background:#ccc!important;height:20px;border-radius:3px}.xdsoft_scrollbar{position:absolute;width:7px;right:2px;top:0;bottom:0;cursor:pointer}.nui-resizable,.xdsoft_scroller_box{position:relative}.nui-normal-sizing-handle,.nui-resizable-handle{position:absolute;font-size:.1px;display:block}.nui-spacing-handle{position:absolute;display:block}.nui-resizable-disabled .nui-resizable-handle,.ui-normal-sizing-disabled .nui-normal-sizing-handle{display:none}.nui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.nui-normal-sizing-s,.nui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.nui-normal-sizing-e,.nui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.nui-normal-sizing-w,.nui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.nui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.nui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.nui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.nui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}
|
1 |
+
@font-face{font-family:'Nextend';src:url(../fonts/Nextend.eot?z9yovy);src:url(../fonts/Nextend.eot?z9yovy#iefix) format('embedded-opentype'),url(../fonts/Nextend.ttf?z9yovy) format('truetype'),url(../fonts/Nextend.woff?z9yovy) format('woff');font-weight:400;font-style:normal}.n2-i{font-family:'Nextend'!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.n2-i-highlight:before{content:"\e990"}.n2-i-rotating:before{content:"\e991"}.n2-i-slide-video:before{content:"\e989"}.n2-i-slide-static:before{content:"\e98a"}.n2-i-slide-post:before{content:"\e98b"}.n2-i-slide-library:before{content:"\e98c"}.n2-i-slide-image:before{content:"\e98d"}.n2-i-slide-empty:before{content:"\e98e"}.n2-i-slide-dynamic:before{content:"\e98f"}.n2-i-up:before{content:"\e63e"}.n2-i-folder:before{content:"\e63d"}.n2-i-slidelibrary:before{content:"\e97d"}.n2-i-newslide:before{content:"\e981"}.n2-i-volume:before{content:"\e987"}.n2-i-mute:before{content:"\e988"}.n2-i-canvas:before{content:"\e916"}.n2-i-builder:before{content:"\e97c"}.n2-i-minimize:before{content:"\e914"}.n2-i-maximize:before{content:"\e915"}.n2-i-vertical-align-top:before{content:"\e96c"}.n2-i-vertical-align-space-between:before{content:"\e97a"}.n2-i-vertical-align-space-around:before{content:"\e97b"}.n2-i-vertical-align-center:before{content:"\e97e"}.n2-i-vertical-align-bottom:before{content:"\e97f"}.n2-i-mini-desktop-portrait:before{content:"\e980"}.n2-i-uplevel:before{content:"\e979"}.n2-i-hidedesktoplandscape:before{content:"\e95a"}.n2-i-mini-arrow-thin:before{content:"\e926"}.n2-i-mini-move:before{content:"\e973"}.n2-i-color:before{content:"\e95b"}.n2-i-col:before{content:"\e95c"}.n2-i-structure-Sb:before{content:"\e95d"}.n2-i-structure-Sa:before{content:"\e95e"}.n2-i-structure-4a:before{content:"\e95f"}.n2-i-structure-3b:before{content:"\e960"}.n2-i-structure-3a:before{content:"\e961"}.n2-i-structure-2e:before{content:"\e962"}.n2-i-structure-2d:before{content:"\e963"}.n2-i-structure-2c:before{content:"\e964"}.n2-i-structure-2b:before{content:"\e965"}.n2-i-structure-2a:before{content:"\e966"}.n2-i-structure-1a:before{content:"\e967"}.n2-i-mini-tablet-portrait:before{content:"\e968"}.n2-i-mini-tablet-landscape:before{content:"\e969"}.n2-i-mini-mobile-portrait:before{content:"\e96a"}.n2-i-mini-mobile-landscape:before{content:"\e96b"}.n2-i-mini-desktop-landscape:before{content:"\e96d"}.n2-i-video:before{content:"\e96e"}.n2-i-stretch:before{content:"\e96f"}.n2-i-row:before{content:"\e970"}.n2-i-none:before{content:"\e971"}.n2-i-mini-trash:before{content:"\e972"}.n2-i-mini-duplicate:before{content:"\e974"}.n2-i-mini-arrow-up:before{content:"\e975"}.n2-i-mini-arrow-right:before{content:"\e976"}.n2-i-mini-arrow-left:before{content:"\e977"}.n2-i-mini-arrow-down:before{content:"\e978"}.n2-i-chainsmall:before{content:"\e949"}.n2-i-reset2:before{content:"\e946"}.n2-i-save:before{content:"\e947"}.n2-i-clearanimation:before{content:"\e948"}.n2-i-magnet:before{content:"\e936"}.n2-i-layerlist:before{content:"\e935"}.n2-i-layer-text:before{content:"\e920"}.n2-i-layer-image:before{content:"\e931"}.n2-i-layer-heading:before{content:"\e932"}.n2-i-layer-button:before{content:"\e933"}.n2-i-settings:before{content:"\e934"}.n2-i-selectarrow:before{content:"\e930"}.n2-i-closewindow:before{content:"\e90a"}.n2-i-selected:before{content:"\e90b"}.n2-i-layerlistopen:before{content:"\e92b"}.n2-i-layerlistclose:before{content:"\e92c"}.n2-i-backtoslider:before{content:"\e92e"}.n2-i-addlayer2:before{content:"\e92f"}.n2-i-newdrag:before{content:"\e913"}.n2-i-addlayer:before{content:"\e917"}.n2-i-listlayer:before{content:"\e918"}.n2-i-closelayer:before{content:"\e919"}.n2-i-copy:before{content:"\e907"}.n2-i-paste:before{content:"\e908"}.n2-i-undo:before{content:"\e905"}.n2-i-redo:before{content:"\e906"}.n2-i-sortdate2:before{content:"\e900"}.n2-i-sortdate1:before{content:"\e901"}.n2-i-sortalphabetic2:before{content:"\e902"}.n2-i-sortalphabetic1:before{content:"\e903"}.n2-i-hide:before{content:"\e60e"}.n2-i-adaptive:before{content:"\e64e"}.n2-i-reset:before{content:"\e64f"}.n2-i-fontmodifier:before{content:"\e650"}.n2-i-sun:before{content:"\e651"}.n2-i-layerunlink:before{content:"\e64b"}.n2-i-layerlink:before{content:"\e64d"}.n2-i-moon:before{content:"\e64c"}.n2-i-horizontal-right:before{content:"\e645"}.n2-i-horizontal-center:before{content:"\e646"}.n2-i-horizontal-left:before{content:"\e647"}.n2-i-vertical-bottom:before{content:"\e648"}.n2-i-vertical-middle:before{content:"\e649"}.n2-i-vertical-top:before{content:"\e64a"}.n2-i-bulb:before{content:"\e643"}.n2-i-unlock:before{content:"\e63f"}.n2-i-anim-out:before{content:"\e640"}.n2-i-anim-in:before{content:"\e641"}.n2-i-anim-loop:before{content:"\e642"}.n2-i-more:before{content:"\e639"}.n2-i-buttonarrow:before{content:"\e638"}.n2-i-list:before{content:"\e635"}.n2-i-link:before{content:"\e636"}.n2-i-play:before{content:"\e605"}.n2-i-pause:before{content:"\e606"}.n2-i-stop:before{content:"\e607"}.n2-i-snapcenter:before{content:"\e62e"}.n2-i-snapgrid:before{content:"\e62f"}.n2-i-snaplayer:before{content:"\e630"}.n2-i-snapnone:before{content:"\e631"}.n2-i-plus:before{content:"\e632"}.n2-i-minus:before{content:"\e633"}.n2-i-bold:before{content:"\e601"}.n2-i-unpublished:before{content:"\e62d"}.n2-i-published:before{content:"\e60c"}.n2-i-underline:before{content:"\e602"}.n2-i-italic:before{content:"\e615"}.n2-i-empty:before{content:"\e62c"}.n2-i-tick:before{content:"\e600"}.n2-i-star:before{content:"\e603"}.n2-i-right:before{content:"\e604"}.n2-i-order:before{content:"\e608"}.n2-i-lock:before{content:"\e609"}.n2-i-left:before{content:"\e60a"}.n2-i-justify:before{content:"\e60b"}.n2-i-info:before{content:"\e60d"}.n2-i-eye:before{content:"\e60f"}.n2-i-edit:before{content:"\e610"}.n2-i-duplicate:before{content:"\e611"}.n2-i-delete:before{content:"\e612"}.n2-i-close:before{content:"\e613"}.n2-i-center:before{content:"\e614"}.n2-i-emptyslide:before{content:"\e91b"}.n2-i-addslide:before{content:"\e91c"}.n2-i-staraction:before{content:"\e91d"}.n2-i-breadcrumbarrow:before{content:"\e91e"}.n2-i-animation:before{content:"\e91f"}.n2-i-folderclosed:before{content:"\e921"}.n2-i-folderopened:before{content:"\e922"}.n2-i-hide2:before{content:"\e923"}.n2-i-select:before{content:"\e924"}.n2-i-hidedesktopportrait:before{content:"\e925"}.n2-i-hidetabletlandscape:before{content:"\e927"}.n2-i-hidetabletportrait:before{content:"\e928"}.n2-i-hidemobilelandscape:before{content:"\e929"}.n2-i-hidemobileportrait:before{content:"\e92a"}.n2-i-backgroundedit:before{content:"\e909"}.n2-i-backgroundmanage:before{content:"\e90c"}.n2-i-backgroundposition:before{content:"\e90d"}.n2-i-viewmini:before{content:"\e90e"}.n2-i-viewgrid:before{content:"\e90f"}.n2-i-viewlist:before{content:"\e910"}.n2-i-more2:before{content:"\e911"}.n2-i-tick2:before{content:"\e912"}.n2-i-group:before{content:"\e957"}.n2-i-group-up:before{content:"\e958"}.n2-i-group-insert:before{content:"\e959"}.n2-i-add-sample:before{content:"\e951"}.n2-i-add-new:before{content:"\e952"}.n2-i-progressbar-layer:before{content:"\e982"}.n2-i-imagebox-layer:before{content:"\e983"}.n2-i-counter-layer:before{content:"\e984"}.n2-i-circlecounter-layer:before{content:"\e985"}.n2-i-audio-layer:before{content:"\e986"}.n2-i-a-license:before{content:"\e953"}.n2-i-a-import:before{content:"\e954"}.n2-i-a-deauthorize:before{content:"\e955"}.n2-i-a-clear:before{content:"\e956"}.n2-i-imagearea-layer:before{content:"\e950"}.n2-i-window-settings:before{content:"\e94c"}.n2-i-window-animation:before{content:"\e94d"}.n2-i-window-design:before{content:"\e94e"}.n2-i-window-layer:before{content:"\e94f"}.n2-i-dashboard:before{content:"\e94a"}.n2-i-slider2:before{content:"\e94b"}.n2-i-area-layer:before{content:"\e937"}.n2-i-iframe-layer:before{content:"\e938"}.n2-i-input-layer:before{content:"\e939"}.n2-i-html-layer:before{content:"\e93a"}.n2-i-video-layer:before{content:"\e93b"}.n2-i-vimeo-layer:before{content:"\e93c"}.n2-i-youtube-layer:before{content:"\e93d"}.n2-i-list-layer:before{content:"\e93e"}.n2-i-transition-layer:before{content:"\e93f"}.n2-i-caption-layer:before{content:"\e940"}.n2-i-icon-layer:before{content:"\e941"}.n2-i-button-layer:before{content:"\e942"}.n2-i-image-layer:before{content:"\e943"}.n2-i-text-layer:before{content:"\e944"}.n2-i-heading-layer:before{content:"\e945"}.n2-i-preview:before{content:"\e92d"}.n2-i-slides:before{content:"\e91a"}.n2-i-slideedit:before{content:"\e904"}.n2-i-help:before{content:"\e644"}.n2-i-v-tablet-landscape:before{content:"\e63a"}.n2-i-v-mobile-landscape:before{content:"\e63b"}.n2-i-v-desktop-landscape:before{content:"\e63c"}.n2-i-bulk:before{content:"\e634"}.n2-i-notification:before{content:"\e637"}.n2-i-v-tablet:before{content:"\e616"}.n2-i-v-mobile:before{content:"\e617"}.n2-i-v-desktop:before{content:"\e618"}.n2-i-v-all:before{content:"\e619"}.n2-i-smart:before{content:"\e61a"}.n2-i-slider:before{content:"\e61b"}.n2-i-s-open:before{content:"\e61c"}.n2-i-s-close:before{content:"\e61d"}.n2-i-next:before{content:"\e61e"}.n2-i-n-success:before{content:"\e61f"}.n2-i-n-notice:before{content:"\e620"}.n2-i-n-error:before{content:"\e621"}.n2-i-n-close:before{content:"\e622"}.n2-i-drag:before{content:"\e623"}.n2-i-a-text:before{content:"\e624"}.n2-i-a-refresh:before{content:"\e625"}.n2-i-a-html:before{content:"\e626"}.n2-i-a-export:before{content:"\e627"}.n2-i-a-duplicate:before{content:"\e628"}.n2-i-a-deletes:before{content:"\e629"}.n2-i-a-delete:before{content:"\e62a"}.n2-i-a-back:before{content:"\e62b"}.n2{box-sizing:initial}.n2,.n2 td,.n2 th,html[dir=rtl] .n2{font-family:"Montserrat",Arial,sans-serif;-webkit-font-smoothing:antialiased;font-size:12px}.n2 a:ACTIVE,.n2 a:FOCUS,.n2 a:LINK,.n2 a:VISITED{text-decoration:none}.n2-h1{font-size:26px;line-height:1.4em}.n2-h2{font-size:20px}.n2-h3{font-size:14px}.n2-h4{font-size:12px}.n2-h5,input[type].n2-h5,select.n2-h5,textarea.n2-h5{font-size:11px}.n2-h6{font-size:10px}.n2-b{font-weight:700}.n2-uc{text-transform:uppercase}.n2-ucf{text-transform:capitalize}.n2-i+span,.n2-i+span+span,.n2-i+span+span+span{vertical-align:middle}.n2-actions-left>a,.n2-actions-left>a:HOVER,.n2-i-grey-opacity,.n2-i-grey-opacity:HOVER{color:#b2bfc9}.n2-active>.n2-i-star{color:#c68c1e}.n2-active>.n2-i-unpublished:before{content:"\e60c"}.n2-active>.n2-i-unpublished,.n2-active>.n2-i-unpublished:HOVER{color:#6fbc49}.n2-button .n2-i,.n2-i.n2-it{line-height:inherit;vertical-align:top}.n2-description,.n2-description p{font-size:12px;color:#6b7989}.n2-description ol{font-size:11px}div.n2-description ul{padding-left:20px;font-size:12px;list-style-type:disc}#wpbody-content{padding-bottom:0!important}#wpfooter{display:none}#wpbody-content #n2-admin{margin:10px 20px 0 0}html[dir=rtl] #wpbody-content #n2-admin{margin:10px 0 0 20px}#wpbody-content #n2-admin a:focus{box-shadow:none}#content-box #toolbar-box{display:none}.n2 input:focus,.n2 select:focus,.n2 textarea:focus{background:0 0}.n2 ul{padding:0}.n2 dt{font-weight:400}#status,.admin .subhead-collapse,.admin header.header{display:none}div#system-debug,div.container-main{padding-bottom:0}.admin form{margin:0}.admin #content{margin-top:20px}.n2 button,.n2 input,.n2 label,.n2 select,.n2 textarea{line-height:inherit}.n2 *:focus{box-shadow:none}#n2-admin img{display:inline}#system-message-container{display:none}.n2 td{vertical-align:inherit}.n2 .thumb{margin-top:0}body.n2-platform-native{padding:10px;font-size:13px;line-height:1.4em;overflow:auto}.n2 hr,iframe{border:0}#n2-admin{min-width:980px;background-color:#e9edf0}.n2 hr{border-top:1px solid #ccd1d6;border-bottom:1px solid #fafafa}.n2 a{-moz-transition:none;-webkit-transition:none;-o-transition:color 0s ease-in;transition:none;outline:0}.n2-clickable{cursor:pointer}.n2-table{display:table;width:100%;border-spacing:0;border-collapse:collapse}.n2-table.n2-content{border-collapse:separate}.n2-table-auto{width:auto}.n2-table-fixed{table-layout:fixed}.n2-tr{display:table-row}.n2-td{display:table-cell;vertical-align:top}.n2-table-fancy,.n2-table-pane{width:100%;text-align:center;border-spacing:0}.n2-table-pane{table-layout:fixed;border-collapse:separate}.n2-table-fancy{border-collapse:collapse;border:2px solid #a1aeb5;border-radius:5px}.n2-table-fancy tr:nth-child(odd){background-color:#f2f5fa}.n2-table-fancy td{border:1px solid #e0e3e6;padding:10px;text-align:left;font-size:11px}html[dir=rtl] .n2-table-fancy td{text-align:right}.n2-table-fancy-wrap{border:2px solid #a1aeb5;border-radius:5px}.n2-table-fancy-wrap .n2-table-fancy{border:0}.n2-table-fancy-wrap .n2-table-fancy td{border:0;border-bottom:1px solid #e0e3e6}.n2-table-pane td{padding:0}.n2-inline-block{display:inline-block;vertical-align:top}.n2-left{float:left}.n2-right,html[dir=rtl] .n2-left{float:right}html[dir=rtl] .n2-right{float:left}.n2-clear{clear:both}.n2-blue-bg,.n2-blue-logo-bg{background-color:#0c92df}.n2-sidebar-base-bg{background-color:#4d5d70}.n2-sidebar-header-bg{background-color:#485769}.n2-sidebar-list-bg{background-color:#212d3a}.n2-sidebar-tab-bg{background-color:#202934}.n2-sidebar-parameter-label-bg{background-color:#212d3a}.n2-sidebar-tab-switcher{border-bottom:1px solid #2c3540}.n2-sidebar-tab-switcher .n2-td{color:#b2bfc9;text-align:center;height:60px;line-height:60px;cursor:pointer}.n2-sidebar-tab-switcher .n2-td.n2-active{color:#fff}.n2-sidebar-pane-sizer{top:0;left:0;height:15px;width:100%;cursor:ns-resize;background:#212d3a;text-align:center;color:#4d5d70;font-size:32px;line-height:15px}.n2-content-base-bg{background-color:#e9edf0}.n2-content-box-title-bg{background-color:#f2f5fa}.n2-border-radius{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.n2-border-radius-tr{-webkit-border-top-right-radius:3px;-moz-border-radius-topright:3px;border-top-right-radius:3px}html[dir=rtl] .n2-border-radius-tr{-webkit-border-top-right-radius:0;-moz-border-radius-topright:0;border-top-right-radius:0}.n2-border-radius-tl,html[dir=rtl] .n2-border-radius-tr{-webkit-border-top-left-radius:3px;-moz-border-radius-topleft:3px;border-top-left-radius:3px}html[dir=rtl] .n2-border-radius-tl{-webkit-border-top-right-radius:3px;-moz-border-radius-topright:3px;border-top-right-radius:3px;-webkit-border-top-left-radius:0;-moz-border-radius-topleft:0;border-top-left-radius:0}.n2-border-radius-br{-webkit-border-bottom-right-radius:3px;-moz-border-radius-bottomright:3px;border-bottom-right-radius:3px}html[dir=rtl] .n2-border-radius-br{-webkit-border-bottom-right-radius:0;-moz-border-radius-bottomright:0;border-bottom-right-radius:0}.n2-border-radius-bl,html[dir=rtl] .n2-border-radius-br{-webkit-border-bottom-left-radius:3px;-moz-border-radius-bottomleft:3px;border-bottom-left-radius:3px}html[dir=rtl] .n2-border-radius-bl{-webkit-border-bottom-right-radius:3px;-moz-border-radius-bottomright:3px;border-bottom-right-radius:3px;-webkit-border-bottom-left-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0}.n2-a,.n2-a:ACTIVE,.n2-a:FOCUS,.n2-a:HOVER,.n2-a:VISITED{color:#08c}#n2-ss-redo,#n2-ss-undo{opacity:.5}#n2-ss-redo.n2-active,#n2-ss-undo.n2-active{opacity:1}[dir=rtl] #n2-ss-undo,html[dir=rtl] .n2-header-breadcrumbs>span{transform:scaleX(-1)}#n2-ss-undo+#n2-ss-redo{margin-left:-15px}[dir=rtl] #n2-ss-undo+#n2-ss-redo{margin-left:15px;transform:scaleX(-1)}.n2-top-bar-menu .n2-button-icon{margin:12px 2px 0}.n2-expert-switch{display:inline-block;height:36px;margin-right:20px;vertical-align:top;position:relative;overflow:hidden;padding:0 30px;text-align:right}.n2-expert-switch .n2-expert-expert,.n2-expert-switch .n2-expert-simple{display:inline-block;height:100%;position:relative;line-height:36px;color:#b2bfc9;transition:top .3s,opacity .3s}.n2-expert-switch .n2-expert-simple{top:-36px;opacity:1}.n2-expert-switch .n2-expert-expert{top:-10px;opacity:0}.n2-expert-switch.n2-active .n2-expert-simple{top:-26px;opacity:0}.n2-expert-switch.n2-active .n2-expert-expert{top:0;opacity:1}.n2-expert-switch .n2-expert-bar{position:absolute;top:5px;right:8px;width:8px;height:24px;background:#6b7986;border-radius:4px;transition:background .3s}.n2-expert-switch.n2-active .n2-expert-bar{background:#51b82d}.n2-expert-switch .n2-expert-dot{position:absolute;top:-1px;left:-3px;width:14px;height:14px;border-radius:7px;background:#fff;transition:top .3s}.n2-expert-switch.n2-active .n2-expert-dot{top:10px}.n2-button-play{text-align:left;padding:0}.n2-button-play .n2-i,.n2-button-play span{vertical-align:middle}.n2-button-play span{display:inline-block;padding:0 20px;border-left:1px solid #1582c2}.n2-header{display:flex;justify-content:space-between;flex:1;height:70px;z-index:11;border-top-right-radius:5px;overflow:hidden}[dir=rtl] .n2-header{border-top-left-radius:5px;border-top-right-radius:0}.n2-logo{width:339px;border-right:1px solid #1681c1;border-top-left-radius:5px}[dir=rtl] .n2-logo{border-top-right-radius:5px;border-top-left-radius:0;border-left:1px solid #1681c1;border-right:0}.n2-logo a{display:inline-block;width:100%;height:100%;text-align:center}.n2-logo a img{margin-top:9px}.n2-header-breadcrumbs{align-self:center}.n2-header-menu{text-align:right;white-space:nowrap}.n2-header-right>*{color:RGBA(255,255,255,.7);line-height:23px;display:inline-block;height:100%;padding:0 24px;vertical-align:top;font-size:13px}.n2-header-menu>*{line-height:70px}.n2-header-breadcrumbs>a{max-width:250px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.n2-header-breadcrumbs>span{padding:0;margin:0 -10px}.n2-header-right .n2-h4,.n2-header-right .n2-h4:ACTIVE,.n2-header-right .n2-h4:FOCUS,.n2-header-right .n2-h4:LINK,.n2-header-right .n2-h4:VISITED{color:RGBA(255,255,255,.7);text-decoration:none}.n2-header-right .n2-h4.n2-active{color:#fff}.n2-sidebar{width:339px;border-right:1px solid #212d3a}.n2-sidebar-hidden>.n2-content .n2-sidebar{display:none}.n2-sidebar>:first-child{border-top:1px solid #2c3540}.n2-lightbox .n2-sidebar>:first-child{border-top:0}.n2-sidebar-fixed{position:fixed;top:0}.admin-bar .n2-sidebar-fixed{top:32px}.admin .n2-sidebar-fixed{top:31px}.n2-content-area{position:relative;border:1px solid #a3adb7;border-width:0 1px 1px 0;min-height:1000px;width:100%}.n2-sidebar-hidden .n2-content-area{border-width:0 1px 1px;-webkit-border-bottom-left-radius:3px;-moz-border-radius-bottomleft:3px;border-bottom-left-radius:3px}.n2-top-bar{position:relative;top:0;height:60px;z-index:1020;margin-right:-1px;border-bottom:1px solid #1c2329;display:flex;flex-wrap:nowrap;flex-flow:row;justify-content:space-between}.n2-sidebar-hidden .n2-top-bar{margin-left:-1px}.n2-top-bar>*{flex:1 0 auto}.n2-top-bar-middle{text-align:center;display:inline-block;height:100%}.n2-top-bar .n2-back{margin:0}.n2-top-bar .n2-back a{border-right:1px solid #1c2329;line-height:17px;padding-bottom:7px;color:#80a3b5}.n2-top-bar .n2-back a:before{font-family:'Nextend'!important;display:block;color:#80a3b5;font-size:32px;text-align:center;line-height:25px;margin-top:11px}.n2-top-bar-menu{display:flex;align-items:center;height:60px;overflow:hidden}.n2-top-bar-menu .n2-form-dark{margin-top:16px;height:28px;line-height:28px;overflow:hidden}.n2-top-bar-menu>.n2-h4{display:inline-block;line-height:60px;padding:0;color:#b2bfc9;font-size:10px;min-width:80px;text-align:center}.n2-top-bar-menu>.n2-h4.n2-active{color:#ebeced;cursor:default}.n2-top-bar-menu span{color:#b2bfc9;padding:0 10px}@media all and (max-width:800px){.n2-top-bar-menu>.n2-h4{display:none}}.n2-top-bar .n2-form-dark .n2-form-element-radio-tab{vertical-align:middle}.n2-top-bar-actions{margin:12px 1px 0;white-space:nowrap;text-align:right}html[dir=rtl] .n2-top-bar-actions{text-align:left}.n2-top-bar-actions .n2-button{margin-right:20px;vertical-align:top}html[dir=rtl] .n2-top-bar-actions .n2-button{margin-right:0;margin-left:20px}.n2-heading-bar{z-index:9;position:relative;background-color:#fff;border-bottom:1px solid #e0e6ed;padding:35px 0;display:flex}.n2-heading-bar-left{flex:1;align-self:center}.n2-heading{position:relative;color:#6b7989;line-height:40px;margin:0 30px}.n2-heading span{position:absolute;font-size:11px;left:2px;bottom:-26px}html[dir=rtl] .n2-heading span{left:0;right:2px}.n2-heading-menu{position:absolute;bottom:0;left:10px}html[dir=rtl] .n2-heading-menu{left:auto;right:10px}.n2-heading-menu>div{display:inline-block;padding:0 20px;color:#7b8898;cursor:pointer;line-height:34px}.n2-heading-menu>div.n2-active{color:#0c92df}.n2-heading-menu>div.n2-button{color:#fff;line-height:28px}.n2-heading-actions{white-space:nowrap;align-self:center}.n2-heading-actions-label{color:#6b7989;vertical-align:middle;line-height:32px}.n2-heading-actions a,.n2-heading-actions a:HOVER,.n2-heading-actions a:focus{display:inline-block;padding:10px;color:#b0b9bf;vertical-align:middle;font-size:32px}.n2-underline{position:relative}.n2-has-underline>.n2-underline:after{content:"";position:absolute;width:0;height:3px;bottom:-10px;left:0;background-color:#0c92df}.n2-active>.n2-underline:after{width:100%}.n2-controls-panel{line-height:28px}.n2-controls-panel .n2-panel-heading{padding-right:11px;color:#7b8898}.n2-panel-option a{display:inline-block;background-color:#a1aeb5;color:#fff;padding:0 24px;border-right:1px solid #b9c3c9}.n2-panel-option.n2-first a{-webkit-border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;-moz-border-radius-topleft:3px;-moz-border-radius-bottomleft:3px;border-top-left-radius:3px;border-bottom-left-radius:3px}.n2-panel-option.n2-last a{border-right:0;-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-panel-option.n2-active a{background-color:#0c92df}.n2-modal{position:fixed;top:0;left:0;width:100%;height:100%;z-index:100002;background-color:RGBA(43,52,63,.9)}.n2-modal-window{position:absolute;top:50%;left:50%;background-color:#fff;z-index:1}.n2-modal-title{line-height:59px;color:#6b7989;border-bottom:1px solid #ccd1d6;overflow:hidden;border-top-left-radius:3px;border-top-right-radius:3px}.n2-modal-title .n2-h2{text-align:center;margin:0 58px;height:59px;overflow:hidden}.n2-modal-title .n2-i{position:absolute;top:0;cursor:pointer;font-size:32px;color:#a1aeb5}.n2-modal-title .n2-i-a-back,.n2-modal-title .n2-i-a-deletes{margin:13px}.n2-modal-title .n2-i-a-deletes{right:0}.n2-modal-title .n2-i-a-back.n2-hidden,.n2-modal-title .n2-i-a-deletes.n2-hidden{display:none}.n2-modal-title .n2-i-a-back{left:0}.n2-modal-content{padding:0 20px 20px;color:#7b8898;box-sizing:border-box}.n2-modal-content h3.n2-center,.n2-modal-content p,.n2-tr.n2-modal-controls-1 .n2-td{text-align:center}.n2-modal-content .n2-form{margin:0 -10px}.n2-modal-content .n2-td{padding:0 10px}.n2-modal-controls{position:absolute;left:0;bottom:0;width:100%;margin:20px 0}.n2-modal-controls .n2-table{width:100%}.n2-modal-controls .n2-td{padding:0 20px}.n2-tr.n2-modal-controls-2 .n2-td{width:50%}.n2-tr.n2-modal-controls-2 .n2-modal-controls-0{text-align:right}.n2-tr.n2-modal-controls-2 .n2-modal-controls-1{text-align:left}.n2-modal-controls-side .n2-tr.n2-modal-controls-2 .n2-modal-controls-0{text-align:left;vertical-align:middle}.n2-modal-controls-side .n2-tr.n2-modal-controls-2 .n2-modal-controls-1{text-align:right}.n2-modal-content .n2-table-pane{margin:20px 0}.n2-modal-content .n2-table-pane td{cursor:pointer;padding:20px;border:3px solid #fff;border-radius:3px;transition:all .3s}.n2-modal-content .n2-table-pane td:HOVER{border-color:#dee1e5}.n2-modal-content h3{color:#7b8898;font-weight:400;margin:20px 0 10px}.n2-modal-content p{font-size:11px}.n2-modal-active{overflow:hidden!important}.n2-modal-simple{cursor:pointer}.n2-modal-simple .n2-modal-window{left:0;top:0;cursor:default;width:100%;height:100%}.n2-modal-simple .n2-i-a-deletes{position:absolute;top:19px;right:30px;color:#a4b0b7;font-size:32px;z-index:2}[dir=rtl] .n2-modal-simple .n2-i-a-deletes{left:30px;right:auto}.n2-lb-header{position:relative;background-color:#fff;border-bottom:1px solid #e0e6ed;z-index:10}.n2-modal-simple-header{line-height:40px;padding:15px 30px;color:#6b7989;font-size:24px}.n2-modal-simple .n2-modal-simple-header{padding:20px 30px 0}.n2-modal .n2-mixed-label{margin:20px 0 10px}.n2-modal .n2-mixed-label label{color:#7b8898;font-weight:400;font-size:14px}.n2-modal-radio{text-align:left;margin:0 -20px;overflow:auto}.n2-modal-radio-option{width:112px;height:70px;display:inline-block;margin:0 35px 50px;cursor:pointer;background-position:0 0;text-align:center}.n2-modal-radio-option.n2-active{cursor:default;background-position:0 -80px}.n2-modal-radio-option div{color:#7b8898;margin:75px -20px 0}.n2-modal-radio-option.n2-active div{color:#0c92df}.n2-modal iframe{max-width:none;border:0}.n2-lightbox-heading{color:#fff;line-height:61px;text-align:center;border-bottom:1px solid #2e3742;border-right:0}.n2-sidebar-row{line-height:58px;border-bottom:1px solid #333e4a;padding:0 10px}.n2-sets-header .n2-td{padding:0 10px}.n2-sets-header .n2-td>*{vertical-align:middle}.n2-sets-header .n2-h3,.n2-sets-header .n2-h4{color:#b2bfc9}.n2-sets-header .n2-form{display:inline-block;margin:0}.n2-sets-header .n2-form .n2-form-element-list{margin-bottom:0}.n2-sidebar-heading .n2-h3{color:#fff;margin:0 10px}.n2-lightbox-container{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:RGBA(43,52,63,.9);padding:20px;z-index:100002;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.n2-lightbox-container .n2-lightbox{width:100%;height:100%;overflow:hidden}.n2-lightbox-container .n2-content-area,.n2-lightbox-sidebar-list{overflow:auto}.n2-lightbox-container .n2-top-bar{margin-right:0}.n2-lightbox-container .n2-content-area{min-height:0}.n2-lightbox-no-sidebar .n2-blue-logo-bg{background:#3c4958;padding:0 30px;text-align:left}.n2-lightbox-no-sidebar .n2-sidebar{border-right-color:#3c4958}.n2-visual-editor-preview-tab,.n2-visual-editor-tabs{text-align:right;vertical-align:middle}html[dir=rtl] .n2-manage-set,html[dir=rtl] .n2-visual-editor-preview-tab,html[dir=rtl] .n2-visual-editor-tabs{text-align:left}.n2-visual-editor-preview-tab .n2-form-element-radio-tab,.n2-visual-editor-tabs .n2-form-element-radio-tab{vertical-align:baseline}.n2-editor-background-color{display:inline-block;height:28px;vertical-align:middle}#n2-font-editor-preview,#n2-style-editor-preview{padding:20px}#n2-animation-editor-preview{position:relative;height:500px;resize:vertical;overflow:hidden}.n2-animation-preview-box{position:absolute;top:50%;left:50%;background-color:#000;background-size:cover}#n2-animation-editor-tab-add,#n2-animation-editor-tab-delete{padding:0;width:28px;vertical-align:middle}.n2-ss-dashboard{max-width:1240px}.n2-form-tab.n2-editor-preview-box{background-color:#ced3d5}.n2-manage-set{text-align:right}.n2-browse-container{height:100%;overflow:auto;margin:0 -20px;transition:opacity .4s;opacity:1}.n2-browse-container.n2-drag-over{opacity:.3}.n2-browse-container .n2-browse-box{position:relative;width:140px;height:140px;border-radius:3px;float:left;margin:10px;cursor:pointer;text-align:center;color:#cdd3d7;overflow:hidden}.n2-browse-container .n2-browse-box>.n2-i{font-size:48px;line-height:134px}.n2-browse-container .n2-browse-upload{margin:7px;width:300px;overflow:hidden;border:3px dashed #dbe0e3}.n2-browse-container .n2-browse-upload div{text-align:center;line-height:30px;margin-top:32px;color:#7b8898}.n2-browse-container .n2-browse-upload input{font-size:200px;height:200px;position:absolute;left:0;top:0;opacity:0;cursor:pointer}.n2-browse-container .n2-browse-directory{box-shadow:0 0 0 3px #dbe0e3}.n2-browse-container .n2-browse-image{background-size:contain;background-repeat:no-repeat;background-color:#f3f5f7}.n2-browse-container .n2-browse-image.n2-active{box-shadow:0 0 0 3px #0c92df}.n2-browse-container .n2-browse-image .n2-button{position:absolute;top:5px;right:5px;padding:0;width:24px;display:none}.n2-browse-container .n2-browse-image.n2-active .n2-button{display:inline-block}.n2-browse-container .n2-browse-box .n2-browse-title{position:absolute;left:0;bottom:0;width:124px;padding:5px;height:30px;line-height:30px;text-align:center;color:#95a0ad;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.n2-browse-container .n2-browse-image .n2-browse-title{color:#e8ebed;background-color:#212d3a;background-color:RGBA(43,52,63,.9);width:130px}.sumome-badge-hint{display:none}.n2-result{margin-bottom:20px}.n2-ss-back-to:before{font-family:'Nextend'!important;font-size:16px;vertical-align:top;content:"\e92e";margin:0 4px;color:#7b8898}.nui-autocomplete{z-index:1000000;max-height:300px;overflow:auto;position:absolute;background:#fff;border:2px solid #0c92df;color:#7b8898;font-size:11px;margin:0;border-radius:0;box-shadow:none;list-style-type:none;padding:0}.nui-autocomplete .nui-menu-item{line-height:20px;padding:0 5px;margin:0;cursor:pointer}.nui-autocomplete .nui-menu-item:HOVER{background:#e9edf0;border:0;margin:0;color:#7b8898;font-weight:400}.n2-nav{position:relative;z-index:11;display:flex}.n2-modal-content-with-sidebar{display:flex;min-height:100%}.n2-modal-sidebar{flex:0 0 auto;width:200px;background:#303b47}.n2-modal-sidebar>div{position:sticky;left:0;top:0}.n2-modal-right-content{flex:1 1 auto}.n2-admin-section{background-color:#fff}.n2-admin-section-block{max-width:1140px;margin:0 auto}.n2-admin-possible-conflicts-container{display:flex;align-items:center}.n2-admin-possible-conflicts-img{flex:0 0 auto;display:flex;align-items:center;padding:36px 20px}.n2-admin-possible-conflicts-details{flex:1 1 auto;padding:25px}.n2-admin-section .n2-h1{color:#606d7b;margin:0 0 .5em}.n2-admin-section p{color:#7b8898;font-size:14px;margin:.5em 0 0}#n2-admin-help-search{background-color:#e9edf0;padding:120px 0 30px;text-align:center}#n2-admin-help-search form{margin:20px auto;display:flex;max-width:640px;background:#fff;border-radius:3px;box-shadow:0 0 5px 0 RGBA(0,0,0,.2);overflow:hidden}#n2-admin-help-search input{flex:1 1 auto;border:0;height:52px;line-height:52px;margin:0 25px;box-shadow:none;outline:none;color:#606d7b}#n2-admin-help-search ::placeholder{opacity:1;color:#606d7b;font-size:14px}#n2-admin-help-search :-ms-input-placeholder,#n2-admin-help-search ::-ms-input-placeholder{opacity:1;color:#606d7b;font-size:14px}#n2-admin-help-search button{background:#0c92df;color:#fff;border:0;box-shadow:none;outline:none;font-size:12px;padding:0 15px;min-width:70px;text-transform:uppercase;font-weight:700;cursor:pointer}.n2-admin-help-more{display:flex;margin:60px -30px 0}.n2-admin-help-more a{display:block;flex-grow:0;flex-basis:33.333%;margin:30px;padding:45px 35px;background:#fff;border-radius:3px;box-shadow:0 0 5px 0 RGBA(0,0,0,.2)}#wpbody-content #n2-admin .n2-admin-help-more a:focus{box-shadow:0 0 5px 0 RGBA(0,0,0,.2)}.n2-admin-help-more a .n2-h2{color:#606d7b;line-height:3em}.n2-admin-help-more a p{color:#7b8898;line-height:1.8em;margin:0}#n2-admin-help-selected-articles{text-align:center;padding:70px}#n2-admin-help-selected-articles .n2-admin-selected-articles-container{display:flex;margin:60px -55px 0;text-align:left}#n2-admin-help-selected-articles .n2-admin-selected-articles-container .n2-admin-selected-articles-column{display:flex;flex-flow:column;flex-grow:0;flex-basis:33.333%;margin:0 55px}#n2-admin-help-selected-articles a{font-size:14px;line-height:3em;color:#7b8898;border-bottom:1px solid #eee}#n2-admin-help-selected-articles a:last-child{border-bottom:0}#support-form{padding:50px 0}#support-form .n2-h1{text-align:center;margin:60px 0}#support-form textarea{background:#fff;border-width:2px;padding:20px}.n2 .nui-slider .nui-slider-handle:focus{outline:none}.n2-form{margin-bottom:20px;border-top:1px solid transparent;margin-top:-1px}.n2-form-tab .n2-form{margin-bottom:-1px}.n2-form-dark .n2-content-box-title-bg{background-color:#4d5d70}.n2-form-tab{background:#fff;margin:20px 20px 0;border:1px solid #ccd1d6;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.n2-form-dark .n2-form-tab{background:#3c4958;margin:0;border:0}.n2-form-tab>.n2-description{margin:20px}.n2-form-dark .n2-form-tab>table{border-bottom:1px solid #303b47}.n2-form-tab .n2-heading-controls,.n2-form-tab>.n2-h2{position:relative;padding:0 20px;color:#6b7989;line-height:54px;border-bottom:1px solid #ccd1d6;z-index:2}.n2-form-tab .n2-heading-controls{min-height:54px}.n2-form-tab table{width:100%;border-spacing:0;border-collapse:collapse;table-layout:fixed;margin-top:-1px}.n2-form-tab-horizontal{padding:20px 20px 0}.n2-form .n2-hidden,.n2-hidden{display:none!important}.n2-label-col{width:251px}.n2-form-dark .n2-label-col{width:136px}.n2-label{width:210px;background-color:#f9fafb;border:1px solid #dee1e5;border-width:1px 1px 0 0;padding:14px 20px;line-height:20px;color:#7b8898;font-size:12px}.n2-label label{color:#7b8898;display:inline-block;margin:0;font-size:100%}.n2-form-element-mixed label .n2-i,.n2-label label .n2-i{font-size:16px;vertical-align:middle}.n2-label label[data-n2tip]:after{font-family:'Nextend'!important;content:"\e620";font-size:16px;vertical-align:top;margin:0 5px;color:#b0b9bf}html[dir=rtl] .n2-label{border-width:1px 0 0 1px}.n2-form-dark .n2-label{width:102px;background-color:#3c4958;border-color:#303b47;color:#b2bfc9}.n2-form-dark .n2-label label{color:#b2bfc9}.n2-documentation,.n2-documentation:ACTIVE,.n2-documentation:FOCUS,.n2-documentation:HOVER{display:inline-block;color:#b9c3c9}.n2-i-info{vertical-align:middle;font-size:16px;margin:0;padding:10px 5px}.n2-form-dark .n2-i-info{color:RGBA(150,167,180,.8)}.n2-element{border-top:1px solid #dee1e5;padding:10px 10px 0}.n2-form-dark .n2-element{border-top:1px solid #414e5e}.n2-element>div{position:relative}.n2-element .n2-element-plain{margin-bottom:10px;color:#6b7989;font-size:12px}.n2 input,.n2 select,.n2 textarea{padding:0;width:auto;box-shadow:none;transition:none;font-family:"Montserrat",Arial,sans-serif}.n2-form input[disabled],.n2-form input[readonly],.n2-form select[disabled],.n2-form select[readonly],.n2-form textarea[disabled],.n2-form textarea[readonly]{background:0 0}.n2-form input,.n2-form textarea{box-sizing:border-box}.n2-form-element-button,.n2-form-element-button:active,.n2-form-element-button:hover,.n2-form-element-button:link,.n2-form-element-button:visited{vertical-align:top;display:inline-block;height:28px;line-height:28px;background-color:#51b82d;color:#fff;padding:0 11px;margin:-2px -2px -2px 0;border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-form-element-button-inverted,.n2-form-element-button-inverted:active,.n2-form-element-button-inverted:hover,.n2-form-element-button-inverted:link,.n2-form-element-button-inverted:visited,html[dir=rtl] .n2-form-element-button,html[dir=rtl] .n2-form-element-button:active,html[dir=rtl] .n2-form-element-button:hover,html[dir=rtl] .n2-form-element-button:link,html[dir=rtl] .n2-form-element-button:visited{margin:-2px 0 -2px -2px;border-radius:0;border-top-left-radius:3px;border-bottom-left-radius:3px}html[dir=rtl] .n2-form-element-button-inverted,html[dir=rtl] .n2-form-element-button-inverted:active,html[dir=rtl] .n2-form-element-button-inverted:hover,html[dir=rtl] .n2-form-element-button-inverted:link,html[dir=rtl] .n2-form-element-button-inverted:visited{margin:-2px -2px -2px 0;border-radius:0;border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-form-element-button-inverted.n2-icon-button:active,.n2-form-element-button-inverted.n2-icon-button:hover,.n2-form-element-button-inverted.n2-icon-button:link,.n2-form-element-button-inverted.n2-icon-button:visited,.n2-form-element-button.n2-icon-button{font-size:16px;min-width:28px;padding:0;text-align:center}.n2-form-element-clear,.n2-form-element-clear:active,.n2-form-element-clear:hover,.n2-form-element-clear:link,.n2-form-element-clear:visited{display:inline-block;height:24px;line-height:24px;width:28px;vertical-align:top;font-size:16px;text-align:center}.n2-form-element-text{display:inline-block;border:2px solid #a1aeb5;margin:0 10px;background:#fff;white-space:nowrap;vertical-align:top;height:24px}.n2-form-dark .n2-form-element-text{border-color:#28313a;background:#303b47}.n2-form .n2-form-element-text{margin-bottom:10px}.n2-form-element-text.focus,.n2-form-element-text.focus2{border-color:#0c92df}.n2-form-element-option-chooser input[type],.n2-form-element-text input,.n2-form-element-text input:focus,.n2-form-element-text input[type],.n2-form-element-text input[type]:focus{display:inline-block;margin:0 5px;padding:0;border:0;box-shadow:none;height:24px;line-height:24px;color:#7b8898;vertical-align:top}.n2-form-dark .n2-form-element-text input,.n2-form-dark .n2-form-element-text input:focus{background:#303b47;color:#b2bfc9}.n2-form-element-number input{text-align:center}.n2-form-element-text .n2-text-sub-label,.n2-form-element-text .n2-text-unit{display:inline-block;padding:0 5px;background-color:#a1aeb5;height:24px;line-height:24px;vertical-align:top;color:#fff}.n2-form-element-text .n2-text-unit,html[dir=rtl] .n2-form-element-text .n2-text-sub-label{margin-right:-2px;margin-left:0}.n2-form-element-text .n2-text-sub-label,html[dir=rtl] .n2-form-element-text .n2-text-unit{margin-right:0;margin-left:-2px}.n2-form-dark .n2-form-element-text .n2-text-sub-label,.n2-form-dark .n2-form-element-text .n2-text-unit{background:#28313a;color:#9aa7b2}.n2-form-element-text.focus .n2-text-sub-label,.n2-form-element-text.focus .n2-text-unit{background-color:#0c92df;color:#fff}.n2-form-element-text .n2-form-element-preview{display:inline-block;margin:1px;width:20px;height:20px;background-size:cover;border:1px solid rgba(0,0,0,.2);vertical-align:top}.n2-form-element-connected .n2-form-element-text{position:relative;border-top-right-radius:0;border-bottom-right-radius:0;margin-right:0;border-right-width:1px}.n2-form-element-connected .n2-form-element-text+.n2-form-element-text{margin-left:0;border-top-left-radius:0;border-bottom-left-radius:0;border-left-width:1px}.n2-form-element-connected-marginpadding{margin-left:10px}.n2-form-element-connected-marginpadding .n2-text-sub-label{display:inline-block;border:2px solid #28313a;border-right-width:1px;background:#28313a;height:24px;line-height:24px;color:#9aa7b2;vertical-align:top;padding:0 5px;border-top-left-radius:3px;border-bottom-left-radius:3px;font-size:16px;cursor:pointer}.n2-form-element-connected-marginpadding.n2-values-linked .n2-text-sub-label .n2-i:before{content:'\e64d'}.n2-form-element-connected-marginpadding .n2-form-element-text{position:relative;border-radius:0;margin-right:0;margin-left:0;border-left-width:1px;border-right-width:1px}.n2-form-element-connected-marginpadding.n2-values-linked .n2-form-element-text+.n2-form-element-text{display:none}.n2-form-element-text .nui-slider-container{display:none;position:absolute;top:24px;width:100%;min-width:70px;border:2px solid #a1aeb5;border-radius:3px;background-color:#fff;margin:0 -2px;z-index:2}.n2-form-dark .n2-form-element-text .nui-slider-container{border:2px solid #28313a;background:#303b47}.n2-form-element-text.focus .nui-slider-container{border:2px solid #0c92df}.n2-form-element-text.n2-active .nui-slider-container,.n2-form-element-text:HOVER .nui-slider-container{display:block}.n2-form-element-text .nui-slider{position:relative;background:#a1aeb5;height:6px;margin:10px;border-radius:10px}.n2-form-dark .n2-form-element-text .nui-slider{background:#526a80}.n2-form-element-text .nui-slider .nui-slider-handle{position:absolute;top:0;z-index:2;width:10px;height:10px;-ms-touch-action:none;touch-action:none;background:#fff;border:2px solid #a1aeb5;margin:-4px -7px 0;border-radius:50px;cursor:ew-resize}.n2-form-dark .n2-form-element-text .nui-slider .nui-slider-handle{border:2px solid #526a80}.n2-form-element-file input[type=file],.n2-form-element-file input[type=file]:focus{padding:0;height:24px;line-height:24px;margin:0}.n2-form-element-preview-fixed{position:relative;height:96px;border:2px solid #303b47;background-position:50% 50%;background-size:contain;background-repeat:no-repeat;margin:0 10px;overflow:hidden;cursor:pointer;width:300px}.n2-form-element-preview-fixed .n2-button{display:none;position:absolute;top:3px;left:3px}.n2-form-element-preview-fixed:HOVER .n2-button{display:block}.n2-form-element-preview-fixed+div{display:inline-block}.n2-form-element-autocomplete{z-index:auto}.n2-form-element-textarea{display:inline-block;border:2px solid #a1aeb5;margin:0 10px}.n2-form .n2-form-element-textarea{margin-bottom:10px}.n2-form-dark .n2-form-element-textarea{border-color:#28313a;background-color:#303b47}.n2-form-element-textarea.focus{border-color:#0c92df}.n2-form-element-textarea textarea,.n2-form-element-textarea textarea:focus{margin:0;padding:2px 6px;border:0;display:inline-block;color:#7b8898;vertical-align:top;min-height:24px}.n2-form-dark .n2-form-element-textarea textarea,.n2-form-dark .n2-form-element-textarea textarea:focus{background:#303b47;color:#b2bfc9}.n2-textarea-rich{background:#4d5d70;border-bottom:2px solid #28313a;height:32px;color:#fff;font-size:16px;line-height:32px}.n2-textarea-rich>div{display:inline-block;width:32px;text-align:center;border-right:2px solid #28313a;cursor:pointer}.n2-form-element-option-chooser{display:inline-block;border:2px solid #a1aeb5;margin:0 10px;background:#fff}.n2-form .n2-form-element-option-chooser{margin-bottom:10px}.n2-form-dark .n2-form-element-option-chooser{border-color:#28313a;background:#303b47}.n2-form-element-option-chooser input{display:inline-block;margin:0 5px;border:0;box-shadow:none;height:24px;line-height:24px;color:#7b8898;width:120px}.n2-form-dark .n2-form-element-option-chooser input{background:#303b47;color:#b2bfc9}.n2-form-element-color input{text-transform:uppercase;width:50px;text-align:center}.n2-form-element-color-alpha input{width:70px}.n2-form-element-connected,.n2-form-element-mixed,.n2-form-element-onoff,.n2-form-element-onoff *{display:inline-block}.n2-form-element-mixed .n2-mixed-group{display:inline-block;vertical-align:top}.n2-form-element-mixed .n2-mixed-label{line-height:14px}.n2-form-element-mixed label{margin:0 10px;color:#7b8898;font-size:10px;display:inline-block}.n2-form-dark .n2-form-element-mixed label{color:#b2bfc9}.n2-mixed-element>div{position:relative}.n2-form-element-onoff{position:relative;background:#9aa8af;width:44px;height:24px;margin:2px 10px;-webkit-border-radius:12px;-moz-border-radius:12px;border-radius:12px;overflow:hidden;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.n2-form .n2-form-element-onoff{margin-bottom:7px}.n2-form-element-onoff.n2-onoff-on{background:#51b82d}.n2-form-element-onoff .n2-onoff-slider{position:absolute;top:3px;left:-18px;width:88px;height:18px;padding:0 2px;-webkit-transition:left .25s;transition:left .25s}.n2-form-element-onoff .n2-onoff-slider *{vertical-align:top}.n2-form-element-onoff.n2-onoff-on .n2-onoff-slider{left:0}html[dir=rtl] .n2-form-element-onoff .n2-onoff-slider{-webkit-transition:right .25s;transition:right .25s;left:auto;right:-18px}html[dir=rtl] .n2-form-element-onoff.n2-onoff-on .n2-onoff-slider{right:0}.n2-form-element-onoff .n2-onoff-no,.n2-form-element-onoff .n2-onoff-yes{font-size:16px;line-height:18px;color:#fff;width:20px;text-align:center}.n2-form-element-onoff .n2-onoff-yes{font-size:14px}.n2-form-element-onoff .n2-onoff-slider .n2-i{line-height:inherit}.n2-form-element-onoff .n2-onoff-round{width:18px;height:18px;background-color:#fff;-webkit-border-radius:9px;-moz-border-radius:9px;border-radius:9px;box-shadow:0 0 0 1px RGBA(0,0,0,.1)}.n2-form-element-onoff-button{display:inline-block;border-radius:3px;background-color:#909ca3;line-height:28px;overflow:hidden;cursor:pointer}.n2-form-element-onoff-button .n2-onoffb-label{display:inline-block;color:#fff;font-size:11px;padding:0 10px;line-height:28px}.n2-form-element-onoff-button .n2-onoffb-container{background-color:#a1aeb5;width:32px;height:28px;display:inline-block}.n2-form-element-onoff-button *{vertical-align:top;display:inline-block}.n2-form-element-onoff-button .n2-onoffb-slider{position:relative;border-radius:4px;background-color:#6b7986;width:20px;height:8px;margin:10px 6px}.n2-form-element-onoff-button.n2-onoff-on .n2-onoffb-slider{background-color:#40b618}.n2-form-element-onoff-button .n2-onoffb-round{position:absolute;left:10px;top:-1px;border-radius:5px;width:10px;height:10px;background:#fff;-webkit-transition:left .25s;transition:left .25s}.n2-form-element-onoff-button.n2-onoff-on .n2-onoffb-round{left:0}.n2-form-element-switcher,.n2-form-element-switcher *{display:inline-block}.n2-form-element-switcher{margin:0 10px}.n2-form .n2-form-element-switcher{margin-bottom:10px}.n2-form-element-switcher .n2-switcher-unit{background-color:#a1aeb5;line-height:28px;color:#fff;padding:0 8px;cursor:pointer;border-right:1px solid #b9c3c9}.n2-form-dark .n2-form-element-switcher .n2-switcher-unit{border-color:#28313a;background-color:#303b47;color:#9aa7b2}.n2-form-element-switcher .n2-switcher-unit.n2-active{background-color:#0c92df;cursor:default;color:#fff}.n2-form-element-switcher .n2-switcher-unit.n2-first{-webkit-border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;-moz-border-radius-topleft:3px;-moz-border-radius-bottomleft:3px;border-top-left-radius:3px;border-bottom-left-radius:3px}.n2-form-element-switcher .n2-switcher-unit.n2-last{-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-right:0}.n2-form-element-units{display:inline-block;position:relative;color:#fff}.n2-form-dark .n2-form-element-units{color:#9aa7b2}.n2-form-element-units .n2-element-current-unit{display:inline-block;padding:0 5px;background-color:#a1aeb5;height:24px;line-height:24px;vertical-align:top;border:2px solid #a1aeb5;border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-form-dark .n2-form-element-units .n2-element-current-unit{background-color:#28313a;border:2px solid #28313a}.n2-element-units{display:none;position:absolute;left:0;top:28px;line-height:28px;background-color:#a1aeb5;padding:0 7px;z-index:10000}.n2-form-dark .n2-element-units{background-color:#28313a}.n2-form-element-units:HOVER .n2-element-units{display:block}.n2-element-units>*{cursor:pointer;text-align:center}.n2-form .n2-form-element-radio{margin-bottom:10px}.n2-form-element-radio,.n2-form-element-radio *{display:inline-block}.n2-form-element-radio .n2-radio-option{color:#7b8898;margin:5px 10px;cursor:pointer;line-height:18px;vertical-align:top}.n2-form-dark .n2-form-element-radio .n2-radio-option{color:#b2bfc9}.n2-form-element-radio .n2-radio-option.n2-active{cursor:default}.n2-form-element-radio .n2-radio-option-marker{width:14px;height:14px;border:2px solid #bcc6cb;-webkit-border-radius:14px;-moz-border-radius:14px;border-radius:14px;margin-right:5px;-webkit-transition:border-color .25s,background-color .25s;transition:border-color .25s,background-color .25s;background-color:#fff;font-size:12px;line-height:14px;color:#fff;vertical-align:top;text-align:center}html[dir=rtl] .n2-form-element-radio .n2-radio-option-marker{margin-left:5px;margin-right:0}.n2-form-dark .n2-form-element-radio .n2-radio-option-marker{border-color:#28313a;background-color:#4d5d70}.n2-form-element-radio .n2-radio-option-marker .n2-i{-webkit-transition:opacity .25s;transition:opacity .25s;opacity:0}.n2-form-element-radio .n2-radio-option.n2-active .n2-radio-option-marker{border-color:#6fbc49;background-color:#6fbc49}.n2-form-element-radio .n2-radio-option.n2-active .n2-radio-option-marker .n2-i{opacity:1}.n2-form-element-radio .n2-radio-option.n2-active .n2-radio-option-marker+span{vertical-align:top}.n2-imagelist .n2-form-element-radio,.n2-imagelist img{max-width:100%}.n2-imagelist .n2-radio-option{border:4px solid #b8c2cd;padding:4px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;vertical-align:middle}.n2-imagelist .n2-imagelist-option{line-height:0;background:#b8c2cd;max-width:94%}.n2-white .n2-imagelist .n2-imagelist-option{background:#fff}.n2-imagelist .n2-radio-option.n2-active{border-color:#0c92df}.n2-imagelistlabel .n2-radio-option{position:relative;width:110px;height:70px;background:center 0 no-repeat;padding:0;border:0;border-radius:0;margin-top:10px;margin-bottom:10px}.n2-imagelistlabel .n2-radio-option span{text-align:center;position:absolute;bottom:-8px;left:0;display:block;width:100%;line-height:20px}.n2-imagelistlabel .n2-radio-option.n2-active{background-position:center -70px;color:#0c92df}.n2-form-element-radio-tab{margin:0 10px;line-height:28px;vertical-align:middle!important;height:28px;display:inline-block}.n2-form .n2-form-element-radio-tab{margin-bottom:10px}.n2-form-element-radio-tab>div{float:left}.n2-form-element-radio-tab .n2-radio-option,.n2-form-element-radio-tab .n2-radio-option-label{padding:0 10px;text-align:center;background:#8e9ea7;color:#fff;vertical-align:top;text-transform:uppercase}.n2-form-element-radio-tab .n2-radio-option{cursor:pointer}.n2-form-element-radio-tab .n2-radio-option-label{background:#909ca3;cursor:default}.n2-form-dark .n2-form-element-radio-tab .n2-radio-option{background:#28313a;color:#9aa7b2}.n2-form-element-radio-tab .n2-radio-option.n2-active{background:#0c92df;color:#fff}.n2-form-element-radio-tab .n2-radio-option-label.n2-first,.n2-form-element-radio-tab .n2-radio-option.n2-first{-webkit-border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;-moz-border-radius-topleft:3px;-moz-border-radius-bottomleft:3px;border-top-left-radius:3px;border-bottom-left-radius:3px}.n2-form-element-radio-tab .n2-radio-option-label.n2-last,.n2-form-element-radio-tab .n2-radio-option.n2-last{-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-form-element-list{margin:0 10px;display:inline-block}.n2-form .n2-form-element-list{margin-bottom:10px}.n2 .n2-form-element-list select{padding:0;margin:0;height:24px;border:2px solid #b9c3c9;background:0 0;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.n2 .n2-form-element-list select[multiple]{height:auto}.n2 .n2-form-dark .n2-form-element-list select{border:2px solid #28313a;background:#303b47;color:#b2bfc9}.n2 .n2-form-element-list select:focus{box-shadow:none}.n2 .n2-form-element-list select{font-weight:400;font-size:12px;color:#7b8898}.n2 .n2-form-element-list select option{padding:0 5px}.n2-form-element-single-button{margin:0 10px}.n2-form .n2-form-element-checkbox,.n2-form .n2-form-element-single-button{margin-bottom:10px}.n2-form-element-checkbox{display:inline-block;margin:0 10px;white-space:nowrap}.n2-checkbox-option{display:inline-block;margin:0 3px;background:#8e9ea7;cursor:pointer;line-height:28px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.n2-checkbox-option.n2-first{margin-left:0}.n2-checkbox-option.n2-last{margin-right:0}.n2-form-dark .n2-checkbox-option{background:#28313a;color:#9aa7b2}.n2-form-element-decoration{display:inline-block}.n2-form-element-decoration .n2-checkbox-option,.n2-form-element-icon-radio .n2-radio-option,.n2-form-element-textalign .n2-radio-option{width:28px;height:28px;line-height:28px;text-align:center;font-size:16px;color:#fff;padding:0}.n2-form-dark .n2-form-element-decoration .n2-checkbox-option,.n2-form-dark .n2-form-element-icon-radio .n2-radio-option{color:#9aa7b2}.n2-checkbox-option.n2-active,.n2-form-dark .n2-checkbox-option.n2-active,.n2-form-dark .n2-form-element-icon-radio .n2-radio-option.n2-active{background:#0c92df;color:#fff}.n2-form-element-img+a,.n2-form-element-img+a+a{margin-right:10px}.n2-form-element-icon{display:inline-block;margin:0 10px;white-space:nowrap}.n2-form .n2-form-element-icon{margin-bottom:10px}.n2-form-element-icon .n2-form-element-preview{margin-right:3px;border:0;width:22px;height:22px;text-align:center;line-height:22px}.n2-form-element-icon .n2-form-element-preview>.n2i{color:#fff;font-size:22px;vertical-align:top}.n2-icons-modal .n2-modal-content{overflow:auto!important;padding:0}.n2-icons-modal .n2-icon{display:inline-block;margin:5px;width:32px;height:32px;cursor:pointer;font-size:24px;line-height:32px;text-align:center;color:#000}.n2-icons-modal .n2-modal-content{}.n2-icons-modal .n2-modal-content .n2-form-tab:last-child{margin-bottom:40px}.n2-subform-image .n2-subform-image-option{display:inline-block;width:150px;height:120px;padding:30px 3%;color:#7b8898}.n2-subform-image .n2-subform-image-option .n2-subform-image-element{width:150px;height:90px;cursor:pointer}.n2-subform-image .n2-subform-image-option.n2-active .n2-subform-image-element{background-position:0 -100px;cursor:default}.n2-subform-image .n2-subform-image-option .n2-subform-image-title{text-align:center;margin-top:10px}.n2-subform-image .n2-subform-image-option.n2-active{color:#0c92df}.n2-subform-image.n2-small .n2-subform-image-option .n2-subform-image-element{width:100px;height:70px}.n2-subform-image.n2-small .n2-subform-image-option.n2-active .n2-subform-image-element{background-position:0 -80px}.n2-subform-image.n2-small .n2-subform-image-option{width:100px;height:100px}.n2-subform-image .n2-subform-image-option-simple{display:inline-block;width:190px;height:120px;border-radius:3px;border:5px solid #a1aeb5;margin:25px;padding:0;vertical-align:top}.n2-subform-image .n2-subform-image-option-simple.n2-active{border-color:#0c92df}.n2-subform-image .n2-subform-image-option-simple div.n2-subform-image-element{width:100%;height:100%;background-repeat:repeat-y}.n2-subform-image .n2-subform-image-option-simple.n2-active div.n2-subform-image-element{background-position:0 -120px}.n2-subform-2-rows{max-height:360px;overflow:auto;margin:-10px -10px 0}.n2-form-matrix{border-bottom-width:1px;border-radius:3px}.n2-form-matrix .n2-form-tab{border-radius:0}.n2-form-matrix>.n2-h2{padding:0}.n2-form-matrix .n2-form-matrix-menu{cursor:pointer;display:inline-block;margin:0 20px;vertical-align:top;line-height:60px;font-size:14px;color:#b2bfc9}.n2-form-matrix .n2-form-matrix-menu.n2-active{color:#fff}.n2-form-matrix .n2-form-matrix-menu.n2-has-underline>.n2-underline::after{bottom:-10px;color:#0c92df}#n2-css-slide-editor-design-css.n2-basiccss-show-preset-list #n2-tab-basiccssfont,#n2-css-slide-editor-design-css.n2-basiccss-show-preset-list #n2-tab-basiccssstyle,.n2-form-matrix-pane{display:none}.n2-form-matrix>.n2-form-matrix-views{z-index:4;padding:0 20px;background:#212d3a;margin:-1px -1px 0;border-top-left-radius:3px;border-top-right-radius:3px}#n2-tab-basiccssfont.n2-css-has-font,#n2-tab-basiccssstyle.n2-css-has-style,.n2-form-matrix-pane.n2-active{display:block}.n2-form-matrix-pane .n2-form{margin-bottom:0}.n2-form-matrix-pane .n2-form-tab{border-width:0 0 1px;margin:0}.n2-form-matrix-pane .n2-form-tab>.n2-h2{font-size:14px}#n2-tab-basiccssfont,#n2-tab-basiccssstyle{display:none;background:#3c4958}#n2-tab-basiccssfont>.n2-h2,#n2-tab-basiccssstyle>.n2-h2,.n2-editor-header.n2-h2{padding:0;line-height:43px;background:#28313a;border-bottom:1px solid #20282f}#n2-tab-basiccssfont>.n2-h2,#n2-tab-basiccssstyle>.n2-h2{margin-bottom:5px}.n2-editor-header>span{position:relative;font-size:11px;display:inline-block;vertical-align:top;color:#b2bfc9}.n2-css-name{color:#b2bfc9}.n2-css-name,.n2-css-tab,.n2-editor-header .n2-ss-button-container,.n2-editor-header .n2-ss-button-container-left{position:relative;font-size:11px;display:inline-block;vertical-align:top}.n2-editor-header .n2-ss-button-container{float:right;color:#fff}.n2-editor-header .n2-ss-button-container-left{color:#fff;float:left}.n2-css-tab{float:right;color:#fff}.n2-editor-header .n2-ss-button-container-left>*{margin-left:10px;vertical-align:middle}#n2-tab-basiccssfont .n2-css-tab,#n2-tab-basiccssstyle .n2-css-tab{overflow:hidden;height:24px;line-height:24px;border-radius:3px;margin:10px 10px 0 0}#n2-tab-basiccssfont .n2-css-tab-reset,#n2-tab-basiccssstyle .n2-css-tab-reset{display:none;float:right;margin:10px 10px 0 0}#n2-tab-basiccssfont.n2-css-show-reset .n2-css-tab-reset,#n2-tab-basiccssstyle.n2-css-show-reset .n2-css-tab-reset{display:inline-block}.n2-css-tab>*,.n2-editor-header .n2-ss-button-container>*{display:inline-block;padding:0 10px}.n2-editor-header .n2-ss-button-container{margin-right:10px}.n2-css-tab>.n2-button,.n2-editor-header .n2-ss-button-container>.n2-button{height:24px;line-height:24px;padding:0}.n2-editor-header .n2-ss-button-container>.n2-button-icon{height:28px;line-height:28px;width:28px;vertical-align:middle}.n2-css-tab>.n2-button-normal,.n2-editor-header .n2-ss-button-container>.n2-button-normal{padding:0 15px}.n2-css-name-label,.n2-editor-header>span{padding:0 10px}.n2-css-name .n2-css-name-list{display:none}.n2-css-name.n2-multiple .n2-css-name-label:after{content:"\e638";font-family:'Nextend'!important;vertical-align:top;margin:0 0 0 5px}.n2-css-name.n2-multiple .n2-css-name-list{position:absolute;left:0;top:34px;background:#28313a;white-space:nowrap}.n2-css-name.n2-multiple:HOVER .n2-css-name-list{display:block}.n2-css-name.n2-multiple .n2-css-name-list>*{white-space:nowrap;display:block;padding:0 10px;cursor:pointer}.n2-css-name.n2-multiple .n2-css-name-list>*:HOVER{background:#303b47}.n2-css-tab span{background:#6b7986;cursor:pointer;height:24px;line-height:24px}.n2-css-tab span.n2-active{background:#0c92df;cursor:default}#n2-tab-basiccssfont #layerfamily{max-width:none!important}#n2-tab-basiccsspresets{display:none}#n2-css-slide-editor-design-css.n2-basiccss-show-preset-list #n2-tab-basiccsspresets{display:block}#n2-tab-basiccsspresets div div{line-height:30px;background-color:#303b47;border-bottom:1px solid RGBA(0,0,0,.2);color:#fff;cursor:pointer;padding:0 20px}#n2-tab-basiccsspresets div div:HOVER{background:#1681c1}.n2-basiccss-more{background:#303b47;line-height:28px;height:28px;vertical-align:top;margin-top:15px;float:right;margin-right:23px;color:#9aa7b2}.n2-notification-center-modal{background-color:RGBA(43,52,63,.9);width:100%;height:100%;position:fixed;left:0;top:0;display:none;z-index:2147483646}.n2-notification-center-modal.n2-active,.n2-notification-center-modal.n2-active .n2-notification-center{display:block}.n2-notification-center{display:none;position:absolute;top:61px;right:0;width:370px;background:#fff;border:1px solid #ccd1d6;border-top:0;opacity:0}html[dir=rtl] .n2-notification-center{left:0;right:auto}.n2-notification-center-modal .n2-notification-center{display:none;position:absolute;left:50%;right:auto;top:50%;margin-left:-185px;margin-top:-63px;opacity:1}.n2-notification-settings{position:relative;background:#f2f5fa;border-top:1px solid #ccd1d6;height:44px}.n2-notification-clear{position:absolute;left:10px;top:10px}.n2-notification-important{position:absolute;right:10px;top:13px;cursor:pointer}.n2-notification-important span{vertical-align:top;padding:0 10px;color:#6b7989}.n2-checkbox{display:inline-block;width:14px;height:14px;background:#f2f5fa;border:2px solid #b9c3c9;border-radius:2px;vertical-align:top}.n2-checkbox .n2-i{color:#f2f5fa;font-size:14px;margin:0;padding:0;vertical-align:top}.n2-active>.n2-checkbox{background:#6fbc49;border-color:#6fbc49}.n2-active>.n2-checkbox .n2-i{color:#fff}.n2-notification-message{border-top:1px solid #ccd1d6}.n2-notification-message .n2-td{padding:22px 0}.n2-notification-message .n2-first{width:62px}.n2-notification-message .n2-i{vertical-align:middle;margin:0 10px;font-size:32px}.n2-notification-message h4{margin:0}.n2-notification-message p{color:#7b8898;margin:0}.n2-notification-message-error,.n2-notification-message-error h4{color:#c54633}.n2-notification-message-success,.n2-notification-message-success h4{color:#50aa31}.n2-notification-message-notice,.n2-notification-message-notice h4{color:#0c92df}.n2-notification-empty{color:#7b8898;margin:20px;text-align:center}.n2-loader-overlay{display:none;position:fixed;width:100%;height:100%;left:0;top:0;z-index:2147483647;background-color:RGBA(43,52,63,.9)}.n2-loader-overlay.n2-active{display:block}.n2-loader{position:absolute;left:50%;top:50%;margin-left:-20px;margin-top:-20px;border:10px solid rgba(255,255,255,.2);border-left-color:#fff;-webkit-animation:n2-load 1.1s infinite linear;animation:n2-load 1.1s infinite linear;overflow:hidden}.n2-loader,.n2-loader:after{border-radius:50%;width:40px;height:40px}@-webkit-keyframes n2-load{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes n2-load{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.n2-sp-container{position:absolute;top:0;left:0;display:inline-block;*display:inline;*zoom:1;z-index:2147483647;overflow:hidden}.n2-sp-container.n2-sp-flat,.n2-sp-top{position:relative}.n2-sp-top{width:100%;display:inline-block}.n2-sp-top-inner{left:0;right:0;margin-bottom:5px}.n2-sp-color,.n2-sp-hue,.n2-sp-top-inner{position:absolute;top:0;bottom:0}.n2-sp-color{margin-right:5px;left:0;right:20%}.n2-sp-hue{right:0;left:84%;height:100%;box-shadow:0 0 1px 1px rgba(0,0,0,.2)inset}.n2-sp-fill{padding-top:80%}.n2-sp-sat,.n2-sp-val{position:absolute;top:0;left:0;right:0;bottom:0;box-shadow:0 0 1px 1px rgba(0,0,0,.2)inset}.n2-sp-alpha-enabled .n2-sp-top{margin-bottom:18px}.n2-sp-alpha-enabled .n2-sp-alpha{display:block}.n2-sp-alpha-handle{position:absolute;top:-4px;bottom:-4px;width:7px;left:50%;cursor:pointer;box-shadow:0 0 0 1px RGBA(0,0,0,.4);background:#fff;border-radius:2px}.n2-sp-alpha{display:none;bottom:-14px;right:0;left:0;height:8px}.n2-sp-alpha-inner{background:-moz-linear-gradient(left,rgba(0,0,0,0)25%,#000 100%);background:-webkit-gradient(linear,left top,right top,color-stop(25%,rgba(0,0,0,0)),color-stop(100%,#000));background:-webkit-linear-gradient(left,rgba(0,0,0,0)25%,#000 100%);background:-o-linear-gradient(left,rgba(0,0,0,0)25%,#000 100%);background:-ms-linear-gradient(left,rgba(0,0,0,0)25%,#000 100%);background:linear-gradient(to right,rgba(0,0,0,0)25%,#000 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#000000', GradientType=1);box-shadow:0 0 1px 1px rgba(0,0,0,.2)inset}.n2-sp-alpha,.n2-sp-alpha-handle,.n2-sp-container,.n2-sp-container button,.n2-sp-container.n2-sp-dragging .n2-sp-input,.n2-sp-dragger,.n2-sp-preview,.n2-sp-replacer,.n2-sp-slider{-webkit-user-select:none;-moz-user-select:-moz-none;-o-user-select:none;user-select:none}.n2-sp-container.n2-sp-buttons-disabled .n2-sp-button-container,.n2-sp-container.n2-sp-input-disabled .n2-sp-input-container,.n2-sp-initial-disabled .n2-sp-initial,.n2-sp-palette-disabled .n2-sp-palette-container,.n2-sp-palette-only .n2-sp-picker-container{display:none}.n2-sp-sat{background-image:-webkit-gradient(linear,0 0,100% 0,from(#fff),to(rgba(204,154,129,0)));background-image:-webkit-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-moz-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-o-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-ms-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:linear-gradient(to right,#fff,rgba(204,154,129,0));-ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr=#FFFFFFFF, endColorstr=#00CC9A81)";filter:progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr='#FFFFFFFF', endColorstr='#00CC9A81')}.n2-sp-val{background-image:-webkit-gradient(linear,0 100%,0 0,from(#000),to(rgba(204,154,129,0)));background-image:-webkit-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-moz-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-o-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-ms-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:linear-gradient(to top,#000,rgba(204,154,129,0));-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#00CC9A81, endColorstr=#FF000000)";filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00CC9A81', endColorstr='#FF000000')}.n2-sp-hue{background:-moz-linear-gradient(top,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-ms-linear-gradient(top,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-o-linear-gradient(top,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-webkit-gradient(linear,left top,left bottom,from(red),color-stop(.17,#ff0),color-stop(.33,#0f0),color-stop(.5,#0ff),color-stop(.67,#00f),color-stop(.83,#f0f),to(red));background:-webkit-linear-gradient(top,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.n2-sp-1{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0000', endColorstr='#ffff00')}.n2-sp-2{height:16%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffff00', endColorstr='#00ff00')}.n2-sp-3{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ff00', endColorstr='#00ffff')}.n2-sp-4{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ffff', endColorstr='#0000ff')}.n2-sp-5{height:16%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0000ff', endColorstr='#ff00ff')}.n2-sp-6{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff00ff', endColorstr='#ff0000')}.n2-sp-cf:after,.n2-sp-cf:before{content:"";display:table}.n2-sp-cf:after{clear:both}.n2-sp-cf{*zoom:1}@media (max-device-width:480px){.n2-sp-color{right:40%}.n2-sp-hue{left:63%}.n2-sp-fill{padding-top:60%}}.n2-sp-dragger,.n2-sp-slider{position:absolute;top:0;cursor:pointer;background:#fff;box-shadow:0 0 0 1px RGBA(0,0,0,.4)}.n2-sp-dragger{width:12px;transform:translateX(6px) translateY(6px);border-radius:12px;height:12px;left:0}.n2-sp-slider{height:6px;left:-2px;right:-2px;border-radius:2px;transform:translateY(3px)}.n2-sp-container{border-radius:3px;background-color:#fff;padding:0;border:2px solid #b9c3c9}.n2-sp-color,.n2-sp-container,.n2-sp-container button,.n2-sp-container input,.n2-sp-hue{font:12px "Lucida Grande","Lucida Sans Unicode","Lucida Sans",Geneva,Verdana,sans-serif;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.n2-sp-top{margin-bottom:3px}.n2-sp-input-container{float:right;width:100px;margin-bottom:4px}.n2-sp-initial-disabled .n2-sp-input-container{width:100%}.n2-sp-input{font-size:12px!important;border:1px inset;padding:4px 5px;margin:0;width:100%;background:0 0;border-radius:3px;color:#222}.n2-sp-input:focus{border:1px solid orange}.n2-sp-input.n2-sp-validation-error{border:1px solid red;background:#fdd}.n2-sp-palette-container,.n2-sp-picker-container{float:left;position:relative;padding:10px 10px 300px;margin-bottom:-295px}.n2-sp-picker-container{width:172px}.n2-sp-palette-container{border-right:solid 1px #ccc}.n2-sp-palette-row{float:left}.n2-sp-palette-row-selection{border-left:1px solid rgba(0,0,0,.2);margin-left:7px;padding-left:5px}.n2-sp-palette .n2-sp-thumb-el{display:block;position:relative;clear:left;float:left;cursor:pointer}.n2-sp-palette .n2-sp-thumb-el.n2-sp-thumb-active,.n2-sp-palette .n2-sp-thumb-el:hover{border-color:orange}.n2-sp-initial{float:left;border:solid 1px #333}.n2-sp-initial span{width:30px;height:25px;border:none;display:block;float:left;margin:0}.n2-sp-button-container{float:right}.n2-sp-replacer{margin:0;overflow:hidden;cursor:pointer;padding:2px;border-radius:3px;display:inline-block;*zoom:1;*display:inline;color:#333;vertical-align:top}.n2-sp-replacer.n2-sp-active,.n2-sp-replacer:hover{border-color:#d8d8d8;color:#111}.n2-sp-replacer.n2-sp-disabled{cursor:default;border-color:silver;color:silver}.n2-sp-dd{display:none;height:8px;line-height:8px;width:8px;background-color:#d8d8d8;font-size:7px;margin:13px 0 0 -9px;position:relative;-webkit-border-top-left-radius:3px;-moz-border-radius-topleft:3px;border-top-left-radius:3px;float:left;text-align:center}.n2-sp-preview{width:20px;height:20px;border-radius:3px;float:left;z-index:0;overflow:hidden}.n2-sp-palette{*width:220px;max-width:220px}.n2-sp-palette .n2-sp-thumb-el{width:20px;height:20px;margin:4px;border:0}.n2-sp-palette .n2-sp-thumb-inner{width:20px;height:20px}.n2-sp-container{padding-bottom:0}.n2-sp-container button{background-color:#eee;background-image:-webkit-linear-gradient(top,#eee,#ccc);background-image:-moz-linear-gradient(top,#eee,#ccc);background-image:-o-linear-gradient(top,#eee,#ccc);background-image:-ms-linear-gradient(top,#eee,#ccc);background-image:linear-gradient(to bottom,#eee,#ccc);border:1px solid #ccc;border-bottom:1px solid #bbb;border-radius:3px;color:#333;font-size:14px;line-height:1;padding:5px 4px;text-align:center;text-shadow:0 1px 0 #eee;vertical-align:middle}.n2-sp-container button:hover{background-color:#ddd;background-image:-webkit-linear-gradient(top,#ddd,#bbb);background-image:-moz-linear-gradient(top,#ddd,#bbb);background-image:-o-linear-gradient(top,#ddd,#bbb);background-image:-ms-linear-gradient(top,#ddd,#bbb);background-image:linear-gradient(to bottom,#ddd,#bbb);border:1px solid #bbb;border-bottom:1px solid #999;cursor:pointer;text-shadow:0 1px 0 #ddd}.n2-sp-container button:active{border:1px solid #aaa;border-bottom:1px solid #888;-webkit-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-moz-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-ms-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-o-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee}.n2-sp-cancel{font-size:11px;color:#d93f3f!important;padding:2px;margin:0 5px 0 0;vertical-align:middle;text-decoration:none}.n2-sp-cancel:hover{color:#d93f3f!important;text-decoration:underline}.n2-sp-palette span.n2-sp-thumb-active,.n2-sp-palette span:hover{border-color:rgba(0,0,0,.5)}.n2-sp-alpha,.n2-sp-preview,.n2-sp-thumb-el{position:relative;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.n2-sp-alpha-inner,.n2-sp-preview-inner,.n2-sp-thumb-inner{display:block;position:absolute;top:0;left:0;bottom:0;right:0}.n2-sp-thumb-inner{border-radius:3px}.n2-sp-preview-inner,.n2-sp-thumb-inner{border:solid 1px RGBA(0,0,0,.2)}.n2-sp-palette .n2-sp-thumb-inner{background-position:50% 50%;background-repeat:no-repeat}.n2-sp-palette .n2-sp-thumb-light.n2-sp-thumb-active .n2-sp-thumb-inner{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiYBhsgJFMffxAXABlN5JruT4Q3wfi/0DsT64h8UD8HmpIPCWG/KemIfOJCUB+Aoacx6EGBZyHBqI+WsDCwuQ9mhxeg2A210Ntfo8klk9sOMijaURm7yc1UP2RNCMbKE9ODK1HM6iegYLkfx8pligC9lCD7KmRof0ZhjQACDAAceovrtpVBRkAAAAASUVORK5CYII=)}.n2-sp-palette .n2-sp-thumb-dark.n2-sp-thumb-active .n2-sp-thumb-inner{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAMdJREFUOE+tkgsNwzAMRMugEAahEAahEAZhEAqlEAZhEAohEAYh81X2dIm8fKpEspLGvudPOsUYpxE2BIJCroJmEW9qJ+MKaBFhEMNabSy9oIcIPwrB+afvAUFoK4H0tMaQ3XtlrggDhOVVMuT4E5MMG0FBbCEYzjYT7OxLEvIHQLY2zWwQ3D+9luyOQTfKDiFD3iUIfPk8VqrKjgAiSfGFPecrg6HN6m/iBcwiDAo7WiBeawa+Kwh7tZoSCGLMqwlSAzVDhoK+6vH4G0P5wdkAAAAASUVORK5CYII=)}.n2-vt{vertical-align:top}.n2-vm{vertical-align:middle}.n2-radius-s{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.n2-radius-m{-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.n2-radius-l{-webkit-border-radius:500px;-moz-border-radius:500px;border-radius:500px}.n2-tooltip{position:absolute;left:-10000px;top:-10000px;margin-top:-9000000px;opacity:0;z-index:100000;border-radius:3px;line-height:16px;padding:4px 6px;color:#fff;font-size:10px;background:RGBA(32,41,52,.95)}.n2-tooltip.n2-active{opacity:1;margin:10px}.n2-position-display-active .n2-tooltip{display:none}.n2-button{display:inline-block;text-align:center;cursor:pointer}.n2-button,.n2-button-inner,.n2-button-inner:ACTIVE,.n2-button-inner:FOCUS,.n2-button-inner:LINK,.n2-button-inner:VISITED,.n2-button:ACTIVE,.n2-button:FOCUS,.n2-button:LINK,.n2-button:VISITED{color:#fff;text-decoration:none}.n2-button-darker,.n2-button-darker:ACTIVE,.n2-button-darker:FOCUS,.n2-button-darker:LINK,.n2-button-darker:VISITED{color:#b2bfc9}.n2-button-normal{overflow:hidden}.n2-button-wide{display:block;margin:10px 20px}.n2-button-icon{font-size:16px}.n2-button-icon.n2-h32{font-size:32px}.n2-button-with-actions{position:relative}.n2-button-with-actions .n2-button-inner{display:inline-block;height:100%;padding:0 20px;line-height:inherit}.n2-button-with-actions .n2-button-menu-open{position:relative;width:36px;height:100%;display:inline-block;vertical-align:top;background:RGBA(0,0,0,.1);border-left:1px solid RGBA(0,0,0,.1)}.n2-button-menu-open .n2-button-menu{display:none;position:absolute;right:0;top:36px;z-index:3}html[dir=rtl] .n2-button-menu-open .n2-button-menu{right:auto;left:0}.n2-button-menu-inner{margin-top:5px;box-shadow:0 0 5px 0 RGBA(0,0,0,.3);padding:5px 0;background-color:#fff;border-radius:5px}.n2-box-generator .n2-button-menu-inner{max-height:150px;overflow-y:auto;overflow-x:hidden}.n2-button-menu-open.n2-active .n2-button-menu{display:block}.webkit-scroll-fix::-webkit-scrollbar{-webkit-appearance:none;width:7px}.webkit-scroll-fix::-webkit-scrollbar-thumb{border-radius:4px;background-color:rgba(0,0,0,.5);box-shadow:0 0 1px rgba(255,255,255,.5)}.n2-button-xs{height:18px;line-height:18px}.n2-button-xs.n2-button-normal{padding:0 5px}.n2-button-s{height:24px;line-height:24px}.n2-button-s.n2-button-normal,.n2-button-s.n2-button-with-actions .n2-button-inner{padding:0 10px}.n2-button-s .n2-button-menu-open{width:25px}.n2-button-s .n2-button-menu-open .n2-button-menu{top:24px}.n2-button-s.n2-button-icon{width:24px}.n2-button-m{height:28px;line-height:28px}.n2-button-m.n2-button-normal{padding:0 10px}.n2-button-m.n2-button-with-actions .n2-button-inner{padding:0 16px}.n2-button-m .n2-button-menu-open,.n2-button-m.n2-button-icon{width:28px}.n2-button-m .n2-button-menu-open .n2-button-menu{top:28px}.n2-button-m-narrow.n2-button-icon{width:20px}.n2-button-l{height:36px;line-height:36px}.n2-button-l.n2-button-normal{padding:0 15px;min-width:70px}.n2-button-l.n2-button-icon{width:36px}.n2-button-xl{height:50px;line-height:50px}.n2-button-xl,.n2-button-xl.n2-button-normal{padding:0 44px}.n2-button-grey{background:#6b7986}.n2-button-blue,.n2-button-blue-active.n2-active{background:#0c92df}.n2-button-green{background:#51b82d}.n2-button-red{background:#c54633}.n2-button-purple{background:#5f39c2}.n2-button-menu a{display:block;text-align:left;color:#7b8898;line-height:30px;padding:0 20px;white-space:nowrap}.n2-button-menu a:active,.n2-button-menu a:focus,.n2-button-menu a:hover{color:#7b8898}.n2-button-menu a:HOVER{background:#e9edf0}.n2-button-menu a.n2-separator{border-bottom:2px solid #ccd1d6}.n2-button-plain{background:0 0!important;color:#7b8898;height:26px;line-height:26px}.n2-button-plain .n2-button-inner{color:#7b8898;padding:0 5px!important}.n2-button-plain.n2-button-with-actions .n2-button-menu-open{border-left:0;background:0 0}.n2-button-plain .n2-button-inner:active,.n2-button-plain .n2-button-inner:focus,.n2-button-plain .n2-button-inner:link,.n2-button-plain .n2-button-inner:visited,.n2-button-plain:active,.n2-button-plain:focus,.n2-button-plain:link,.n2-button-plain:visited{color:#7b8898}.n2-button-plain.n2-button-with-actions .n2-button-menu-open{width:16px}.n2-button-plain.n2-button-with-actions .n2-button-menu-open .n2-button-menu{top:20px}.n2-button-with-icon{border:2px solid #e0e6ed;color:#6b7989;margin:5px;padding:0 10px}.n2-button-with-icon:ACTIVE,.n2-button-with-icon:FOCUS,.n2-button-with-icon:LINK,.n2-button-with-icon:VISITED{color:#6b7989}.n2-color-red,.n2-color-red.n2-button-plain:visited,.n2-color-red:active,.n2-color-red:focus,.n2-color-red:link{color:#c44e3d!important}.n2-color-blue,.n2-color-blue.n2-button-plain:visited,.n2-color-blue:active,.n2-color-blue:focus,.n2-color-blue:link{color:#0c92df!important}.n2-definition-list,.n2-list{margin:0;padding:0}.n2-definition-list dt{position:relative;line-height:59px;height:59px;background:#303b47;border-bottom:1px solid RGBA(0,0,0,.2);overflow:hidden}.n2-definition-list dt>a{display:block;padding:0 20px;color:#b2bfc9}.n2-definition-list dt>a .n2-i{margin-right:10px;vertical-align:middle;font-size:32px}html[dir=rtl] .n2-definition-list dt>a .n2-i{margin-right:0;margin-left:10px}.n2-definition-list dt .n2-id{display:block;width:70px;position:absolute;left:0;bottom:5px;text-align:center;line-height:11px;color:#8b99a6}.n2-definition-list dt>.n2-actions{display:block;position:absolute;top:0;right:0;background-color:#303b47;font-size:16px;line-height:16px;padding:22px 20px 0}.n2-definition-list dt.n2-open>.n2-actions{background-color:#3c4958}.n2-definition-list dt>.n2-actions a{display:inline-block;padding:0 5px}.n2-definition-list dt>.n2-actions a .n2-i{vertical-align:middle}[dir=rtl] .n2-list li .n2-actions,html[dir=rtl] .n2-definition-list dt>.n2-actions,html[dir=rtl] .n2-list li>.n2-actions{right:auto;left:0}.n2-definition-list dd{margin:0}.n2-list li,.n2-list li>a{color:#b2bfc9;display:block}.n2-list li{position:relative;margin:0;line-height:39px;background-color:#303b47;border-bottom:1px solid RGBA(0,0,0,.2)}.n2-list li>a{padding:0 20px}.n2-list li>a .n2-i{vertical-align:middle;padding:7px;margin-left:-7px;font-size:16px}.n2-list li.n2-active{background:#1681c1}.n2-list li.n2-active>a{color:#fff;vertical-align:middle}.n2-list .n2-list-checkbox.n2-active .n2-i,.n2-list li.n2-active>.n2-actions .n2-i{color:#fff}.n2-list li .n2-actions{position:absolute;top:0;right:0;padding:2px 3px 0;line-height:24px}.n2-list li .n2-actions-left>*,.n2-list li .n2-actions>*{display:inline-block;margin:0 2px}.n2-list li .n2-actions>* .n2-i{vertical-align:middle}.n2-list li.n2-button-container{padding:22px 20px}.n2-list .n2-list-checkbox{display:inline-block;width:16px;height:16px;background:#343f4c;vertical-align:top;border:2px solid #212d3a;border-radius:2px;line-height:16px;margin:10px 10px 0 0}.n2-list .n2-list-checkbox .n2-i{color:#343f4c;font-size:16px;margin:0;padding:0;vertical-align:top}.n2-list .n2-list-checkbox.n2-active{background:#6fbc49;border-color:#6fbc49}.n2-box{float:left;display:inline-block;position:relative;width:270px;height:180px;margin:15px;border-radius:3px;background-color:#212d3a;background-size:cover;background-position:50% 50%;opacity:1;transition:opacity .6s;box-shadow:0 0 5px RGBA(0,0,0,.05)}.n2-box.n2-active{box-shadow:0 0 0 3px #0c92df}.n2-ss-box-just-added{opacity:0}.n2-box-small{width:200px;height:135px;margin:10px}.n2-box.n2-ui-sortable-helper{transform:scale(.8);opacity:.8}.n2-box-sortable-placeholder{height:200px;margin:5px 0;width:0;box-shadow:0 0 0 2px #0c92df;float:left;display:inline-block}.n2-box-sortable-placeholder-small{height:145px}.n2-box img{position:absolute;clip:rect(0,270px,180px,0);border-radius:3px;width:100%}.n2-box-small img{clip:rect(0,200px,95px,0)}.n2-box .n2-box-overlay{z-index:3;position:absolute;left:0;top:0;width:100%;height:calc(100% - 50px);background-color:rgba(32,41,52,.9);border-radius:3px;align-items:center;justify-content:center}.n2-box-small .n2-box-overlay{height:calc(100% - 40px)}.n2-box-overlay .n2-button{line-height:28px;height:28px}.n2-box .n2-box-placeholder{display:flex;z-index:9;position:absolute;left:0;bottom:0;width:100%;height:50px;background:#212d3a;border-bottom-left-radius:3px;border-bottom-right-radius:3px;justify-content:flex-start;align-items:center;padding:0 10px;box-sizing:border-box}.n2-box .n2-box-placeholder[data-align=center]{justify-content:center}.n2-box-small .n2-box-placeholder{height:40px}.n2-box .n2-box-placeholder .n2-box-placeholder-title{margin-right:auto;overflow:hidden;max-height:100%}html[dir=rtl] .n2-box .n2-box-placeholder .n2-box-placeholder-title{margin-left:auto;margin-right:0}.n2-box-placeholder-title,.n2-box-placeholder-title a{color:#cedae2;line-height:16px}.n2-box-small .n2-box-placeholder-title,.n2-box-small .n2-box-placeholder-title a{line-height:20px}.n2-box .n2-box-lt{position:absolute;left:5px;top:5px;width:50%;text-align:left;z-index:4}html[dir=rtl] .n2-box .n2-box-lt{left:auto;right:5px}.n2-box .n2-box-rt{position:absolute;right:5px;top:5px;width:50%;text-align:right}.n2-box .n2-box-lb{position:absolute;left:5px;bottom:55px}.n2-box-small .n2-box-lb{bottom:45px}.n2-box .n2-box-lb>*{white-space:nowrap}.n2-box .n2-box-rb{position:absolute;right:5px;bottom:55px;text-align:right}.n2-box-small .n2-box-rb{bottom:45px}.n2-box .n2-box-center{position:absolute;left:0;top:74px;width:100%;text-align:center;z-index:4}.n2-box>.n2-on-hover,.n2-box>.n2-on-hover-flex{display:none}.n2-box:HOVER>.n2-on-hover{display:block}.n2-box:HOVER>.n2-on-hover-flex{display:flex}.n2-ss-box-select{display:none;border-radius:3px;border:2px solid #8793a2;width:16px;height:16px;text-align:center}.n2-box:HOVER .n2-ss-box-select{display:block}.n2-box.n2-selected .n2-ss-box-select{display:block;border-color:#1999e3;background-color:#1999e3}.n2-box .n2-ss-box-select .n2-i{display:none}.n2-box.n2-selected .n2-ss-box-select .n2-i{display:inline-block;color:#fff;font-size:16px;line-height:16px;margin:0 -2px}.n2-bulk-select{margin:0 10px;vertical-align:top}.n2-bulk-actions{display:inline-block}.n2-ss-has-box-selection .n2-heading-actions{visibility:hidden}.n2-ss-has-box-selection .n2-box-selectable{opacity:.5}.n2-ss-has-box-selection .n2-box-selectable.n2-selected{opacity:1}.n2-ss-has-box-selection .n2-ss-box-select{display:inline-block}.n2-box-menu{display:none;z-index:9}.n2-box-menu.n2-inited{display:inline-block;position:absolute;top:5px;right:5px;text-align:right}html[dir=rtl] .n2-box-menu.n2-inited{right:auto;left:5px}.n2-box-menu .n2-button{float:right}html[dir=rtl] .n2-box-menu .n2-button{float:left}.n2-box-menu .n2-box-menu-content{display:none}.n2-box-menu.n2-active .n2-box-menu-content{margin-top:3px;display:block;clear:both;float:right;background:#fff;border-radius:5px;line-height:30px;text-align:left;box-shadow:0 0 5px 0 RGBA(0,0,0,.3);padding:5px 0;white-space:nowrap}.n2-box-menu.n2-active .n2-box-menu-content ul{margin:0;list-style-type:none}.n2-box-menu.n2-active .n2-box-menu-content li{padding:0 20px;margin:0;color:#7b8898;line-height:30px}.n2-box-menu.n2-active .n2-box-menu-content li:HOVER{background-color:#e9edf0}.n2-box-menu.n2-active .n2-box-menu-content li.n2-ss-delete{color:#c44e3d}.n2-box-full>a{width:100%;height:180px;padding:0}.n2-box-full>a:before{display:block;font-family:'Nextend'!important;font-size:74px;line-height:90px;content:"\e952";margin-top:35px}.n2-box-promo{background:0 0}.n2-box-promo-light{background:#fff}.n2-box-promo-overlay,.n2-box-promo-overlay:FOCUS,.n2-box-promo-overlay:HOVER,.n2-box-promo-overlay:VISITED{position:absolute;display:block;width:100%;height:100%;color:#fff;text-align:center}.n2-box-promo .n2-close{position:absolute;right:10px;top:10px;cursor:pointer;display:none;z-index:3}.n2-box-promo:hover .n2-close{display:block}.n2-box-promo .n2-close:before{font-family:'Nextend'!important;content:"\e90a";font-size:16px}.n2-box-promo-light .n2-close:before{color:#7b8898}.n2-box-promo-dark .n2-close:before{color:#fff}.n2-box-promo span{display:block;position:absolute;bottom:50px;width:100%;line-height:23px;text-align:center;font-size:12px}.n2-box-promo-light span{color:#7b8898}.n2-box-promo-dark span{color:#eff7fb}.n2-box-promo-buttons{position:absolute;bottom:17px;width:100%;text-align:center}.n2-box-promo-buttons .n2-button+.n2-button{margin-left:20px}.n2-box-review{text-align:center}.n2-box-review-bigstar{width:170px;height:105px;margin:0 auto;background-image:url(../images/stars-big.png)}[data-stars="1"] .n2-box-review-bigstar{background-position:0 -105px}[data-stars="2"] .n2-box-review-bigstar{background-position:0 -210px}[data-stars="3"] .n2-box-review-bigstar{background-position:0 -315px}[data-stars="4"] .n2-box-review-bigstar{background-position:0 -420px}[data-stars="5"] .n2-box-review-bigstar{background-position:0 -525px}.n2-box-review-label{color:#7b8898;font-size:15px;line-height:22px;height:22px;overflow:hidden;display:none}[data-stars="0"] .n2-box-review-label[data-star="0"],[data-stars="1"] .n2-box-review-label[data-star="1"],[data-stars="2"] .n2-box-review-label[data-star="2"],[data-stars="3"] .n2-box-review-label[data-star="3"],[data-stars="4"] .n2-box-review-label[data-star="4"],[data-stars="5"] .n2-box-review-label[data-star="5"]{display:block}.n2-box-review-stars-container{width:170px;height:34px;margin:0 auto}.n2-box-review-star{cursor:pointer;transition:transform .4s;vertical-align:top;float:left;width:34px;height:34px;background-image:url(../images/stars-small.png)}[data-stars="1"] .n2-box-review-star[data-star="1"],[data-stars="2"] .n2-box-review-star[data-star="1"],[data-stars="2"] .n2-box-review-star[data-star="2"],[data-stars="3"] .n2-box-review-star[data-star="1"],[data-stars="3"] .n2-box-review-star[data-star="2"],[data-stars="3"] .n2-box-review-star[data-star="3"],[data-stars="4"] .n2-box-review-star[data-star="1"],[data-stars="4"] .n2-box-review-star[data-star="2"],[data-stars="4"] .n2-box-review-star[data-star="3"],[data-stars="4"] .n2-box-review-star[data-star="4"],[data-stars="5"] .n2-box-review-star[data-star="1"],[data-stars="5"] .n2-box-review-star[data-star="2"],[data-stars="5"] .n2-box-review-star[data-star="3"],[data-stars="5"] .n2-box-review-star[data-star="4"],[data-stars="5"] .n2-box-review-star[data-star="5"]{background-position:0 -34px;transform:scale(1.3)}.n2-modal-review-star-5{width:560px;height:241px;background:url(../images/star-5.png)}.n2-modal-review-details{font-size:14px;line-height:28px;color:#7b8898;text-align:center}.nextend-tab-tabbed{width:100%;overflow:hidden}.nextend-tab-tabbed .nextend-tab-tabbed-panes{-webkit-transition:all 400ms ease-in-out;-moz-transition:all 400ms ease-in-out;-ms-transition:all 400ms ease-in-out;-o-transition:all 400ms ease-in-out;transition:all 400ms ease-in-out}.nextend-tab-tabbed .nextend-tab-tabbed-pane{float:left}.xdsoft_datetimepicker{background:#fff;border-radius:5px;border:2px solid #a1aeb5;color:#333;padding:2px 8px 8px 0;position:absolute;z-index:9999;-moz-box-sizing:border-box;box-sizing:border-box;display:none}.xdsoft_datetimepicker iframe{position:absolute;left:0;top:0;width:75px;height:210px;background:0 0;border:none}.xdsoft_datetimepicker button{border:none!important}.xdsoft_noselect{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.xdsoft_noselect::selection{background:0 0}.xdsoft_noselect::-moz-selection{background:0 0}.xdsoft_datetimepicker.xdsoft_inline{display:inline-block;position:static}.xdsoft_datetimepicker *{-moz-box-sizing:border-box;box-sizing:border-box;padding:0;margin:0}.xdsoft_datetimepicker .xdsoft_datepicker,.xdsoft_datetimepicker .xdsoft_timepicker{display:none}.xdsoft_datetimepicker .xdsoft_datepicker.active,.xdsoft_datetimepicker .xdsoft_timepicker.active{display:block}.xdsoft_datetimepicker .xdsoft_datepicker{width:224px;float:left;margin-left:8px}.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_datepicker{width:256px}.xdsoft_datetimepicker .xdsoft_timepicker{width:58px;float:left;text-align:center;margin-left:8px;margin-top:0}.xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker{margin-top:8px;margin-bottom:3px}.xdsoft_datetimepicker .xdsoft_mounthpicker{position:relative;text-align:center}.xdsoft_datetimepicker .xdsoft_label i,.xdsoft_datetimepicker .xdsoft_next,.xdsoft_datetimepicker .xdsoft_prev,.xdsoft_datetimepicker .xdsoft_today_button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeCAYAAADaW7vzAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6Q0NBRjI1NjM0M0UwMTFFNDk4NkFGMzJFQkQzQjEwRUIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6Q0NBRjI1NjQ0M0UwMTFFNDk4NkFGMzJFQkQzQjEwRUIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDQ0FGMjU2MTQzRTAxMUU0OTg2QUYzMkVCRDNCMTBFQiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDQ0FGMjU2MjQzRTAxMUU0OTg2QUYzMkVCRDNCMTBFQiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PoNEP54AAAIOSURBVHja7Jq9TsMwEMcxrZD4WpBYeKUCe+kTMCACHZh4BFfHO/AAIHZGFhYkBBsSEqxsLCAgXKhbXYOTxh9pfJVP+qutnZ5s/5Lz2Y5I03QhWji2GIcgAokWgfCxNvcOCCGKqiSqhUp0laHOne05vdEyGMfkdxJDVjgwDlEQgYQBgx+ULJaWSXXS6r/ER5FBVR8VfGftTKcITNs+a1XpcFoExREIDF14AVIFxgQUS+h520cdud6wNkC0UBw6BCO/HoCYwBhD8QCkQ/x1mwDyD4plh4D6DDV0TAGyo4HcawLIBBSLDkHeH0Mg2yVP3l4TQMZQDDsEOl/MgHQqhMNuE0D+oBh0CIr8MAKyazBH9WyBuKxDWgbXfjNf32TZ1KWm/Ap1oSk/R53UtQ5xTh3LUlMmT8gt6g51Q9p+SobxgJQ/qmsfZhWywGFSl0yBjCLJCMgXail3b7+rumdVJ2YRss4cN+r6qAHDkPWjPjdJCF4n9RmAD/V9A/Wp4NQassDjwlB6XBiCxcJQWmZZb8THFilfy/lfrTvLghq2TqTHrRMTKNJ0sIhdo15RT+RpyWwFdY96UZ/LdQKBGjcXpcc1AlSFEfLmouD+1knuxBDUVrvOBmoOC/rEcN7OQxKVeJTCiAdUzUJhA2Oez9QTkp72OTVcxDcXY8iKNkxGAJXmJCOQwOa6dhyXsOa6XwEGAKdeb5ET3rQdAAAAAElFTkSuQmCC)}.xdsoft_datetimepicker .xdsoft_label i{opacity:.5;background-position:-92px -19px;display:inline-block;width:9px;height:20px;vertical-align:middle}.xdsoft_datetimepicker .xdsoft_prev{float:left;background-position:-20px 0}.xdsoft_datetimepicker .xdsoft_today_button{float:left;background-position:-70px 0;margin-left:5px}.xdsoft_datetimepicker .xdsoft_next{float:right;background-position:0 0}.xdsoft_datetimepicker .xdsoft_next,.xdsoft_datetimepicker .xdsoft_prev,.xdsoft_datetimepicker .xdsoft_today_button{background-color:transparent;background-repeat:no-repeat;border:0 none currentColor;cursor:pointer;display:block;height:30px;opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";outline:medium none currentColor;overflow:hidden;padding:0;position:relative;text-indent:100%;white-space:nowrap;width:20px}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_next,.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev{float:none;height:15px;width:30px;display:block;margin-left:14px}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_next{background-position:-40px -15px;margin-top:7px}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev{background-position:-40px 0;margin-bottom:7px;margin-top:0}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box{height:151px;overflow:hidden;border-bottom:1px solid #ddd}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div{background:#f9fafb;border-top:1px solid #dee1e5;color:#7b8898;font-size:12px;text-align:center;border-collapse:collapse;cursor:pointer;border-bottom-width:0;height:25px;line-height:25px}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div:first-child{border-top-width:0}.xdsoft_datetimepicker .xdsoft_next:hover,.xdsoft_datetimepicker .xdsoft_prev:hover,.xdsoft_datetimepicker .xdsoft_today_button:hover{opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"}.xdsoft_datetimepicker .xdsoft_label{display:inline;position:relative;z-index:9999;margin:0;padding:5px 3px;font-size:14px;line-height:20px;background-color:#fff;float:left;width:182px;text-align:center;cursor:pointer;color:#6b7989}.xdsoft_datetimepicker .xdsoft_label:hover i{opacity:1}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select{border:2px solid #a1aeb5;border-radius:3px;position:absolute;right:0;top:30px;z-index:101;display:none;background:#fff;max-height:160px;overflow-y:hidden}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select.xdsoft_monthselect{right:-7px}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select.xdsoft_yearselect{right:2px}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select>div>.xdsoft_option:hover{color:#fff;background:#51b82d}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select>div>.xdsoft_option{padding:2px 13px 2px 5px;text-decoration:none!important}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select>div>.xdsoft_option.xdsoft_current{background:#0c92df;color:#fff}.xdsoft_datetimepicker .xdsoft_month{width:100px;text-align:right}.xdsoft_datetimepicker .xdsoft_calendar{clear:both}.xdsoft_datetimepicker .xdsoft_year{width:48px;margin-left:5px}.xdsoft_datetimepicker .xdsoft_calendar table{border-collapse:collapse;width:100%}.xdsoft_datetimepicker .xdsoft_calendar td>div{padding-right:5px}.xdsoft_datetimepicker .xdsoft_calendar td,.xdsoft_datetimepicker .xdsoft_calendar th{width:14.2857142%;background:#f9fafb;border:1px solid #dee1e5;color:#7b8898;font-size:12px;text-align:right;vertical-align:middle;padding:0;border-collapse:collapse;cursor:pointer;height:25px}.xdsoft_datetimepicker .xdsoft_calendar th{background:#f2f5fa;text-align:center;color:#999;cursor:default;font-weight:400}.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_calendar td,.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_calendar th{width:12.5%}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today{color:#0c92df}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default,.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div.xdsoft_current{background:#0c92df;color:#fff}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled,.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month,.xdsoft_datetimepicker .xdsoft_time_box>div>div.xdsoft_disabled{opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month.xdsoft_disabled{opacity:.2;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=20)"}.xdsoft_datetimepicker .xdsoft_calendar td:hover,.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div:hover{color:#fff!important;background:#51b82d!important}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled:hover,.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div.xdsoft_disabled:hover{color:inherit!important;background:inherit!important}.xdsoft_datetimepicker .xdsoft_copyright{color:#ccc!important;font-size:10px;clear:both;float:none;margin-left:8px}.xdsoft_datetimepicker .xdsoft_copyright a{color:#eee!important}.xdsoft_datetimepicker .xdsoft_copyright a:hover{color:#aaa!important}.xdsoft_time_box{position:relative;border:1px solid #ccc}.xdsoft_scrollbar>.xdsoft_scroller{background:#ccc!important;height:20px;border-radius:3px}.xdsoft_scrollbar{position:absolute;width:7px;right:2px;top:0;bottom:0;cursor:pointer}.nui-resizable,.xdsoft_scroller_box{position:relative}.nui-normal-sizing-handle,.nui-resizable-handle{position:absolute;font-size:.1px;display:block}.nui-spacing-handle{position:absolute;display:block}.nui-resizable-disabled .nui-resizable-handle,.ui-normal-sizing-disabled .nui-normal-sizing-handle{display:none}.nui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.nui-normal-sizing-s,.nui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.nui-normal-sizing-e,.nui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.nui-normal-sizing-w,.nui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.nui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.nui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.nui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.nui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: slider, wordpress slider, image slider, layer slider, responsive slider, s
|
|
4 |
Donate link: https://sites.fastspring.com/nextend/product/smartslider3donate
|
5 |
Requires at least: 4.6
|
6 |
Tested up to: 5.0
|
7 |
-
Stable tag: 3.3.
|
8 |
Requires PHP: 5.4
|
9 |
License: GPLv3 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -193,6 +193,11 @@ Of course! Smart Slider use protocol relative urls which works fine on http:// a
|
|
193 |
|
194 |
== Changelog ==
|
195 |
|
|
|
|
|
|
|
|
|
|
|
196 |
= 3.3.8 - 10. October 2018. =
|
197 |
* Fix: IE Edge layer display fix
|
198 |
* Fix: Smart Slider 3 inside TablePress on AMP pages
|
4 |
Donate link: https://sites.fastspring.com/nextend/product/smartslider3donate
|
5 |
Requires at least: 4.6
|
6 |
Tested up to: 5.0
|
7 |
+
Stable tag: 3.3.9
|
8 |
Requires PHP: 5.4
|
9 |
License: GPLv3 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
193 |
|
194 |
== Changelog ==
|
195 |
|
196 |
+
= 3.3.9 - 17. October 2018. =
|
197 |
+
* Fix: Thumbnail alignment and group
|
198 |
+
* Fix: Text layer bold and italic text font colors are now harder to override by theme's codes
|
199 |
+
* Fix: NextGen Gallery and Divi live editor bug
|
200 |
+
|
201 |
= 3.3.8 - 10. October 2018. =
|
202 |
* Fix: IE Edge layer display fix
|
203 |
* Fix: Smart Slider 3 inside TablePress on AMP pages
|
smart-slider-3.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Smart Slider 3
|
4 |
Plugin URI: https://smartslider3.com/
|
5 |
Description: The perfect all-in-one responsive slider solution for WordPress.
|
6 |
-
Version: 3.3.
|
7 |
Author: Nextend
|
8 |
Author URI: http://nextendweb.com
|
9 |
License: GPLv3 or later
|
3 |
Plugin Name: Smart Slider 3
|
4 |
Plugin URI: https://smartslider3.com/
|
5 |
Description: The perfect all-in-one responsive slider solution for WordPress.
|
6 |
+
Version: 3.3.9
|
7 |
Author: Nextend
|
8 |
Author URI: http://nextendweb.com
|
9 |
License: GPLv3 or later
|