SiteOrigin Widgets Bundle - Version 1.17.0

Version Description

  • 22 May 2020 ==
  • Simple Masonry: Added a preloader and related settings.
  • Post Carousel: Migrated to Slick Carousel.
  • Post Carousel: Added RTL support.
  • Icon: Added Title field.
  • Minor admin interface styling fixes.
  • Price Table: Added title for the feature hover text.
  • Testimonials: Added Equalize testimonial height setting.
  • Testimonials: Fixed user image alignment.
  • Switched to Wikimedia's fork of less.php.
  • Added error suppression for external Less library.

=

Download this release

Release Info

Developer gpriday
Plugin Icon 128x128 SiteOrigin Widgets Bundle
Version 1.17.0
Comparing to
See all releases

Code changes from version 1.16.1 to 1.17.0

Files changed (40) hide show
  1. base/base.php +5 -2
  2. base/css/admin.css +1 -1
  3. base/inc/fields/css/media-field.css +1 -1
  4. base/inc/lessc.inc.php +0 -7
  5. base/inc/lib/Less/Exception/Chunk.php +203 -203
  6. base/inc/lib/Less/Parser.php +2 -2
  7. base/inc/lib/Less/SourceMap/Base64VLQ.php +1 -6
  8. base/inc/lib/Less/SourceMap/Generator.php +2 -2
  9. base/inc/lib/Less/Tree/Dimension.php +4 -8
  10. base/inc/lib/Less/Tree/Directive.php +1 -1
  11. base/inc/lib/Less/Tree/Extend.php +8 -3
  12. base/inc/lib/Less/Tree/Import.php +6 -3
  13. base/inc/lib/Less/Tree/Selector.php +5 -0
  14. base/inc/lib/Less/Version.php +2 -2
  15. base/inc/lib/Less/Visitor/processExtends.php +6 -4
  16. base/siteorigin-widget.class.php +1 -1
  17. css/lib/slick.css +1 -0
  18. js/lib/slick.js +3011 -0
  19. js/lib/slick.min.js +1 -0
  20. lang/so-widgets-bundle.pot +42 -14
  21. readme.txt +15 -3
  22. so-widgets-bundle.php +2 -2
  23. widgets/icon/icon.php +7 -0
  24. widgets/icon/tpl/default.php +1 -1
  25. widgets/post-carousel/css/style.css +1 -1
  26. widgets/post-carousel/js/carousel.js +105 -166
  27. widgets/post-carousel/js/carousel.min.js +1 -1
  28. widgets/post-carousel/post-carousel.php +31 -8
  29. widgets/post-carousel/styles/default.less +4 -4
  30. widgets/post-carousel/tpl/base.php +9 -6
  31. widgets/post-carousel/tpl/carousel-post-loop.php +2 -2
  32. widgets/price-table/tpl/atom.php +2 -2
  33. widgets/simple-masonry/js/simple-masonry.js +8 -1
  34. widgets/simple-masonry/js/simple-masonry.min.js +1 -1
  35. widgets/simple-masonry/simple-masonry.php +36 -0
  36. widgets/simple-masonry/styles/default.less +51 -1
  37. widgets/simple-masonry/tpl/default.php +4 -1
  38. widgets/testimonial/css/style.css +1 -1
  39. widgets/testimonial/styles/default.less +21 -9
  40. widgets/testimonial/testimonial.php +6 -0
base/base.php CHANGED
@@ -64,10 +64,11 @@ add_action('wp_ajax_siteorigin_widgets_get_icons', 'siteorigin_widget_get_icon_l
64
  /**
65
  * @param $icon_value
66
  * @param bool $icon_styles
 
67
  *
68
  * @return bool|string
69
  */
70
- function siteorigin_widget_get_icon($icon_value, $icon_styles = false) {
71
  if( empty( $icon_value ) ) return false;
72
 
73
  static $widget_icon_families;
@@ -104,7 +105,9 @@ function siteorigin_widget_get_icon($icon_value, $icon_styles = false) {
104
  } else if ( is_string( $icon_data ) ) {
105
  $unicode = $icon_data;
106
  }
107
- return '<span class="' . esc_attr( $family_style ) . '" data-sow-icon="' . $unicode . '" ' . ( ! empty( $icon_styles ) ? 'style="' . implode( '; ', $icon_styles ) . '"' : '' ) . '></span>';
 
 
108
  }
109
  else {
110
  return false;
64
  /**
65
  * @param $icon_value
66
  * @param bool $icon_styles
67
+ * @param string $title
68
  *
69
  * @return bool|string
70
  */
71
+ function siteorigin_widget_get_icon($icon_value, $icon_styles = false, $title = null) {
72
  if( empty( $icon_value ) ) return false;
73
 
74
  static $widget_icon_families;
105
  } else if ( is_string( $icon_data ) ) {
106
  $unicode = $icon_data;
107
  }
108
+ return '<span class="' . esc_attr( $family_style ) . '" data-sow-icon="' . $unicode . '"
109
+ ' . ( ! empty( $icon_styles ) ? 'style="' . implode( '; ', $icon_styles ) . '"' : '' ) . ' '.
110
+ ( ! empty( $title ) ? 'title="' . esc_attr( $title ) .'"' : '' ) .'></span>';
111
  }
112
  else {
113
  return false;
base/css/admin.css CHANGED
@@ -1 +1 @@
1
- .siteorigin-widget-form-no-styles{display:none !important}.siteorigin-widget-teaser{padding:10px 12px;border:1px solid #5fc133;background:#edfbe7;color:#394a3a;margin-bottom:20px}.siteorigin-widget-teaser .dashicons{float:right;margin:1px 2px 6px 10px;cursor:pointer;font-size:18px;width:18px;height:18px}.siteorigin-widget-form-notification{padding:8px 12px;border:1px solid #a4cadd;background-color:#CDE2EC;margin-bottom:20px}.siteorigin-widget-form-notification>span{line-height:22px}.siteorigin-widget-form-notification>a.button.button-small{margin-left:10px;height:22px}.siteorigin-widget-form{display:block !important;margin:15px 0}.siteorigin-widget-form>div:first-child{margin-top:0}.siteorigin-widget-form a{box-shadow:none}.siteorigin-widget-form.siteorigin-widget-form-main{min-width:600px}.siteorigin-widget-form .siteorigin-widget-field{margin:1em 0}.siteorigin-widget-form .siteorigin-widget-field>label{display:block;font-size:13px;font-weight:400;margin-bottom:3px}.siteorigin-widget-form .siteorigin-widget-field>label.siteorigin-widget-field-label{font-weight:bold}.siteorigin-widget-form .siteorigin-widget-field>label.so-checkbox-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.siteorigin-widget-form .siteorigin-widget-field .siteorigin-widget-description{font-size:.9em;margin-top:.2em;color:#999;font-style:italic}.siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-separator{margin:1.75em 0}.siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-is-optional .field-optional{font-weight:normal;font-size:.8em;vertical-align:super;padding-left:.5em;color:#54a242;font-style:italic}.siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-is-required .field-required{font-weight:normal;font-size:.8em;vertical-align:super;padding-left:.5em;color:#F02311;font-style:italic}.siteorigin-widget-form .siteorigin-widget-field input[type="text"]{width:100%}.siteorigin-widget-form .siteorigin-widget-field input.siteorigin-widget-input-color{width:auto}.siteorigin-widget-form .siteorigin-widget-field .wp-picker-clear{margin-left:6px;min-height:30px}.siteorigin-widget-form .siteorigin-widget-field textarea.siteorigin-widget-code-input{font-family:"Courier New",Courier,monospace}.siteorigin-widget-form .siteorigin-widget-field select{min-width:150px}.siteorigin-widget-form .siteorigin-widget-field select[multiple]{max-height:83px}.siteorigin-widget-form .siteorigin-widget-field-type-slider .siteorigin-widget-slider-wrapper{margin:10px 0;border:1px solid #E0E0E0;padding:12px 15px;background:#F4F4F4;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;max-width:500px;display:block;margin-left:55px}.siteorigin-widget-form .siteorigin-widget-field-type-slider .siteorigin-widget-slider-value{display:block;float:left;margin-top:0;border:1px solid #E0E0E0;padding:11px 0;background:#F4F4F4;font-weight:bold;color:#666;width:45px;text-align:center}.siteorigin-widget-form .siteorigin-widget-field-type-slider .siteorigin-widget-value-slider{position:relative;height:5px;background:#A0A0A0;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.25);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.25);box-shadow:inset 0 1px 2px rgba(0,0,0,0.25);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.siteorigin-widget-form .siteorigin-widget-field-type-slider .ui-slider-handle{cursor:move;-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #a4a3a8;z-index:10;position:absolute;width:18px;height:18px;margin-top:-7px;margin-left:-9px;background:#F9F9F9;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;top:0;left:0;-webkit-box-shadow:inset 0 1px 0 #FFFFFF, 0 1px 1px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 1px 0 #FFFFFF, 0 1px 1px rgba(0,0,0,0.1);box-shadow:inset 0 1px 0 #FFFFFF, 0 1px 1px rgba(0,0,0,0.1)}.siteorigin-widget-form .siteorigin-widget-field-type-slider input[type="number"]{display:none}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top{background:#F0F0F0;border:1px solid #D0D0D0;padding:10px;position:relative}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top h3{font-size:13px;margin:0;padding:0 !important}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand,.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy,.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove{width:14px;height:14px;position:absolute;top:50%;margin-top:-7px;cursor:pointer;font-size:14px;line-height:14px;text-align:center}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand:before,.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy:before,.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:before{font-family:dashicons;vertical-align:middle;color:#999999}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand{right:48px}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand:before{content:"\f140"}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand:hover:before{color:#50575D}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy{right:28px}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy:before{content:"\f105"}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy:hover:before{color:#50575D}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove{right:12px}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:before{content:'\f158'}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:hover{background:#ff0000}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:hover:before{color:#FFFFFF}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items{background:#FCFCFC;border:1px solid #EEEEEE;border-top:0;border-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item{background:#FCFCFC;border-bottom:1px solid #EEEEEE}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-top{padding:10px;cursor:move;position:relative;background:#F6F6F6}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-top h4{font-size:12px;margin:0}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item h4{font-size:15px;margin:0}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item:last-child{border-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-form{border-top:1px solid #EEEEEE;display:none;padding:1px 10px}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add{padding:7px 10px;background:#F0F0F0;border:1px dashed #D0D0D0;font-size:12px;line-height:1em;text-align:center;cursor:pointer}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add:hover{background:#F4F4F4}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top{background:#eaf2f6;border-color:#c9d0d4}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top h3{color:#42484b}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items{background:#f6fdff;border-color:#e8eff3}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item{background:#f8fdff;border-bottom-color:#e8eff3}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-top{background:#f0f8fc}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-form{border-top-color:#e8eff3}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add{background:#eaf2f6;border-color:#c9d0d4;color:#42484b}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add:hover{background:#edf5f9}.siteorigin-widget-form .siteorigin-widget-field-type-posts .posts-container-label-wrapper{background:#F0F0F0;border:1px solid #D0D0D0;padding:10px;display:block;margin-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-type-posts .posts-container-label-wrapper>label{display:inline}.siteorigin-widget-form .siteorigin-widget-field-type-posts .posts-container-label-wrapper:before{float:left;margin:3px 6px 0 0;display:block;width:14px;height:14px;font-size:14px;line-height:1;font-family:"dashicons";content:"\f132"}.siteorigin-widget-form .siteorigin-widget-field-type-posts .posts-container-label-wrapper.siteorigin-widget-section-visible:before{content:"\f460"}.siteorigin-widget-form .siteorigin-widget-field-type-posts .posts-container-label-wrapper span.sow-current-count{display:inline-block;border-radius:9px;background:#f92700;border:1px solid #da0900;line-height:14px;font-size:7px;width:17px;height:17px;text-align:center;vertical-align:middle;font-weight:bold;color:#FFFFFF;box-sizing:border-box;margin:1px 5px}.siteorigin-widget-form .siteorigin-widget-field-type-widget>label,.siteorigin-widget-form .siteorigin-widget-field-type-section>label{background:#F0F0F0;border:1px solid #D0D0D0;line-height:1.4;padding:10px;display:block;margin-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-type-widget>label:before,.siteorigin-widget-form .siteorigin-widget-field-type-section>label:before{float:left;margin:3px 6px 0 0;display:block;width:14px;height:14px;font-size:14px;line-height:1;font-family:"dashicons";content:"\f132"}.siteorigin-widget-form .siteorigin-widget-field-type-widget>label.siteorigin-widget-section-visible:before,.siteorigin-widget-form .siteorigin-widget-field-type-section>label.siteorigin-widget-section-visible:before{content:"\f460"}.siteorigin-widget-form .siteorigin-widget-field-type-posts .siteorigin-widget-section,.siteorigin-widget-form .siteorigin-widget-field-type-widget .siteorigin-widget-section,.siteorigin-widget-form .siteorigin-widget-field-type-section .siteorigin-widget-section{padding:1px 10px;background:#FCFCFC;border:1px solid #EEEEEE;border-top:0}.siteorigin-widget-form .siteorigin-widget-field-type-posts .siteorigin-widget-section.siteorigin-widget-section-hide,.siteorigin-widget-form .siteorigin-widget-field-type-widget .siteorigin-widget-section.siteorigin-widget-section-hide,.siteorigin-widget-form .siteorigin-widget-field-type-section .siteorigin-widget-section.siteorigin-widget-section-hide{display:none}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete,.siteorigin-widget-form .siteorigin-widget-field-type-link{position:relative}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector{padding:20px;display:none;position:absolute;top:110%;width:360px;z-index:10;border:1px solid #c0c0c0;background:#F6F6F6;-webkit-box-shadow:0 2px 4px rgba(0,0,0,0.2);-moz-box-shadow:0 2px 4px rgba(0,0,0,0.2);box-shadow:0 2px 4px rgba(0,0,0,0.2);-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .content-text-search,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .content-text-search{width:100%;margin-bottom:15px}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts{margin:0;padding:0;background:#fff;max-height:300px;overflow-y:scroll;border:1px solid #e4e4e4}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items li,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items li,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts li,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li{cursor:pointer;padding:5px 10px;color:#32373c;border-bottom:1px solid #f1f1f1;margin:0;font-size:.95em}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items li.selected,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items li.selected,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts li.selected,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li.selected{background:#e1edfa}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items li:hover,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items li:hover,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts li:hover,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li:hover{background:#eaf2fa}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items li:last-child,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items li:last-child,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts li:last-child,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li:last-child{border-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items li span,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items li span,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts li span,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li span{font-size:.9em;display:inline-block;float:right;color:#999;margin-left:10px}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items.loading,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items.loading,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts.loading,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts.loading{min-height:40px;background:#FFFFFF url("img/wpspin_light.gif") center center no-repeat}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items.loading,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items.loading,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts.loading,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts.loading{background-image:url("img/wpspin_light-2x.gif");background-size:16px 16px}}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items.loading li,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items.loading li,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts.loading li,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts.loading li{display:none}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .buttons,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .buttons{margin-top:15px;text-align:right}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .buttons a,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .buttons a{display:inline-block}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .url-input-wrapper,.siteorigin-widget-form .siteorigin-widget-field-type-link .url-input-wrapper{display:block;margin-right:130px}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .select-content-button,.siteorigin-widget-form .siteorigin-widget-field-type-link .select-content-button{float:right;line-height:28px;min-height:30px;width:120px;text-align:center}.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector{right:0}.siteorigin-widget-form .siteorigin-widget-description{clear:both}.siteorigin-widget-preview{display:block !important}.siteorigin-widget-help-link{display:block;margin:1em 0}.so-widgets-dialog .so-widgets-dialog-overlay{position:fixed;z-index:500000;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.7)}.so-widgets-dialog .so-widgets-toolbar,.so-widgets-dialog .so-widgets-dialog-frame{position:fixed;z-index:500001;-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.so-widgets-dialog .so-widgets-toolbar{left:30px;right:30px;top:30px;height:50px;background:#fafafa;border-bottom:1px solid #D8D8D8}.so-widgets-dialog .so-widgets-toolbar h3{margin:15px 0 15px 20px}.so-widgets-dialog .so-widgets-toolbar .close{position:absolute;box-sizing:border-box;width:50px;height:50px;display:block;cursor:pointer;top:0;right:0;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;background:#fafafa;border-left:1px solid #d8d8d8;border-bottom:1px solid #d8d8d8}.so-widgets-dialog .so-widgets-toolbar .close:hover{background:#e9e9e9}.so-widgets-dialog .so-widgets-toolbar .close:hover .so-dialog-icon{color:#333333}.so-widgets-dialog .so-widgets-toolbar .close .dashicons{position:absolute;top:50%;left:50%;text-decoration:none;width:21px;height:21px;margin-left:-11px;margin-top:-10px;font-size:21px;color:#666666;text-align:center}.so-widgets-dialog .so-widgets-dialog-frame{top:80px;left:30px;right:30px;bottom:30px;background:#FFFFFF url("img/wpspin_light.gif") center center no-repeat}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.so-widgets-dialog .so-widgets-dialog-frame{background-image:url("img/wpspin_light-2x.gif");background-size:16px 16px}}.so-widgets-dialog .so-widgets-dialog-frame iframe{width:100%;height:100%}.widget-icon.so-widget-icon{background-size:cover;background-image:url("img/bundle-icon.png")}.widget-icon.so-widget-icon.so-block-editor-icon{width:20px;height:20px;display:inline-block}.block-editor .so-widget-placeholder{text-align:left}.block-editor .so-widget-placeholder>.components-placeholder__label{background:url("img/bundle-icon.png") no-repeat left;background-size:20px;padding-left:25px}.block-editor .so-widget-placeholder>.components-placeholder__fieldset{max-width:unset}.block-editor .so-widget-placeholder>.components-placeholder__fieldset .so-widget-block-container{width:100%}.block-editor .so-widget-placeholder>.components-placeholder__fieldset .so-widget-block-container .components-base-control__field select{max-width:unset}.block-editor .so-widget-placeholder>.components-placeholder__fieldset .so-widget-block-container .siteorigin-widget-form.siteorigin-widget-form-main{min-width:unset}.block-editor .siteorigin-widget-form .siteorigin-widget-field{text-align:left}.block-editor .siteorigin-widget-form .siteorigin-widget-field input{padding:3px 5px}.block-editor .siteorigin-widget-form .siteorigin-widget-field input[type=checkbox]{background-color:#ffffff}.block-editor .siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-type-autocomplete .select-content-button,.block-editor .siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-type-link .select-content-button{box-shadow:unset;font-size:13px;height:28px}.block-editor .siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector-current{height:37px}.block-editor .siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-type-tinymce .wp-switch-editor{box-sizing:content-box}.block-editor .so-widget-preview-container .so-widgets-spinner-container{text-align:center}.block-editor .so-widget-preview-container .so-widgets-spinner-container>span{display:inline-block}
1
+ .siteorigin-widget-form-no-styles{display:none !important}.siteorigin-widget-teaser{padding:10px 12px;border:1px solid #5fc133;background:#edfbe7;color:#394a3a;margin-bottom:20px}.siteorigin-widget-teaser .dashicons{float:right;margin:1px 2px 6px 10px;cursor:pointer;font-size:18px;width:18px;height:18px}.siteorigin-widget-form-notification{padding:8px 12px;border:1px solid #a4cadd;background-color:#CDE2EC;margin-bottom:20px}.siteorigin-widget-form-notification>span{line-height:22px}.siteorigin-widget-form-notification>a.button.button-small{margin-left:10px;height:22px}.siteorigin-widget-form{display:block !important;margin:15px 0}.siteorigin-widget-form>div:first-child{margin-top:0}.siteorigin-widget-form a{box-shadow:none}.siteorigin-widget-form.siteorigin-widget-form-main{min-width:600px}.siteorigin-widget-form .siteorigin-widget-field{margin:1em 0}.siteorigin-widget-form .siteorigin-widget-field>label{display:block;font-size:13px;font-weight:400;margin-bottom:3px}.siteorigin-widget-form .siteorigin-widget-field>label.siteorigin-widget-field-label{font-weight:bold}.siteorigin-widget-form .siteorigin-widget-field>label.so-checkbox-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.siteorigin-widget-form .siteorigin-widget-field .siteorigin-widget-description{font-size:.9em;margin-top:.2em;color:#999;font-style:italic}.siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-separator{margin:1.75em 0}.siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-is-optional .field-optional{font-weight:normal;font-size:.8em;vertical-align:super;padding-left:.5em;color:#54a242;font-style:italic}.siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-is-required .field-required{font-weight:normal;font-size:.8em;vertical-align:super;padding-left:.5em;color:#F02311;font-style:italic}.siteorigin-widget-form .siteorigin-widget-field input[type="text"]{width:100%}.siteorigin-widget-form .siteorigin-widget-field input.siteorigin-widget-input-color{width:auto}.siteorigin-widget-form .siteorigin-widget-field .wp-picker-clear{margin-left:6px;min-height:30px}.siteorigin-widget-form .siteorigin-widget-field textarea.siteorigin-widget-code-input{font-family:"Courier New",Courier,monospace}.siteorigin-widget-form .siteorigin-widget-field select{min-width:150px}.siteorigin-widget-form .siteorigin-widget-field select[multiple]{max-height:83px}.siteorigin-widget-form .siteorigin-widget-field-type-slider .siteorigin-widget-slider-wrapper{margin:10px 0;border:1px solid #E0E0E0;padding:12px 15px;background:#F4F4F4;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;max-width:500px;display:block;margin-left:55px}.siteorigin-widget-form .siteorigin-widget-field-type-slider .siteorigin-widget-slider-value{display:block;float:left;margin-top:0;border:1px solid #E0E0E0;padding:11px 0;background:#F4F4F4;font-weight:bold;color:#666;width:45px;text-align:center}.siteorigin-widget-form .siteorigin-widget-field-type-slider .siteorigin-widget-value-slider{position:relative;height:5px;background:#A0A0A0;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.25);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.25);box-shadow:inset 0 1px 2px rgba(0,0,0,0.25);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.siteorigin-widget-form .siteorigin-widget-field-type-slider .ui-slider-handle{cursor:move;-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #a4a3a8;z-index:10;position:absolute;width:18px;height:18px;margin-top:-7px;margin-left:-9px;background:#F9F9F9;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;top:0;left:0;-webkit-box-shadow:inset 0 1px 0 #FFFFFF, 0 1px 1px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 1px 0 #FFFFFF, 0 1px 1px rgba(0,0,0,0.1);box-shadow:inset 0 1px 0 #FFFFFF, 0 1px 1px rgba(0,0,0,0.1)}.siteorigin-widget-form .siteorigin-widget-field-type-slider input[type="number"]{display:none}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top{background:#F0F0F0;border:1px solid #D0D0D0;padding:10px;position:relative}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top h3{font-size:13px;margin:0;padding:0 !important}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand,.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy,.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove{width:14px;height:14px;position:absolute;top:50%;margin-top:-7px;cursor:pointer;font-size:14px;line-height:14px;text-align:center}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand:before,.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy:before,.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:before{font-family:dashicons;color:#999999}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand{right:48px}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand:before{content:"\f140"}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand:hover:before{color:#50575D}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy{right:28px}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy:before{content:"\f105"}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy:hover:before{color:#50575D}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove{right:12px}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:before{content:'\f158'}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:hover{background:#ff0000}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:hover:before{color:#FFFFFF}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items{background:#FCFCFC;border:1px solid #EEEEEE;border-top:0;border-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item{background:#FCFCFC;border-bottom:1px solid #EEEEEE}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-top{padding:10px;cursor:move;position:relative;background:#F6F6F6}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-top h4{font-size:12px;margin:0}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item h4{font-size:15px;margin:0}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item:last-child{border-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-form{border-top:1px solid #EEEEEE;display:none;padding:1px 10px}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add{padding:7px 10px;background:#F0F0F0;border:1px dashed #D0D0D0;font-size:12px;line-height:1em;text-align:center;cursor:pointer}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add:hover{background:#F4F4F4}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top{background:#eaf2f6;border-color:#c9d0d4}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top h3{color:#42484b}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items{background:#f6fdff;border-color:#e8eff3}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item{background:#f8fdff;border-bottom-color:#e8eff3}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-top{background:#f0f8fc}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-form{border-top-color:#e8eff3}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add{background:#eaf2f6;border-color:#c9d0d4;color:#42484b}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add:hover{background:#edf5f9}.siteorigin-widget-form .siteorigin-widget-field-type-posts .posts-container-label-wrapper{background:#F0F0F0;border:1px solid #D0D0D0;padding:10px;display:block;margin-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-type-posts .posts-container-label-wrapper>label{display:inline}.siteorigin-widget-form .siteorigin-widget-field-type-posts .posts-container-label-wrapper:before{float:left;margin:3px 6px 0 0;display:block;width:14px;height:14px;font-size:14px;line-height:1;font-family:"dashicons";content:"\f132"}.siteorigin-widget-form .siteorigin-widget-field-type-posts .posts-container-label-wrapper.siteorigin-widget-section-visible:before{content:"\f460"}.siteorigin-widget-form .siteorigin-widget-field-type-posts .posts-container-label-wrapper span.sow-current-count{display:inline-block;border-radius:9px;background:#f92700;border:1px solid #da0900;line-height:14px;font-size:7px;width:17px;height:17px;text-align:center;vertical-align:middle;font-weight:bold;color:#FFFFFF;box-sizing:border-box;margin:1px 5px}.siteorigin-widget-form .siteorigin-widget-field-type-widget>label,.siteorigin-widget-form .siteorigin-widget-field-type-section>label{background:#F0F0F0;border:1px solid #D0D0D0;line-height:1.4;padding:10px;display:block;margin-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-type-widget>label:before,.siteorigin-widget-form .siteorigin-widget-field-type-section>label:before{float:left;margin:3px 6px 0 0;display:block;width:14px;height:14px;font-size:14px;line-height:1;font-family:"dashicons";content:"\f132"}.siteorigin-widget-form .siteorigin-widget-field-type-widget>label.siteorigin-widget-section-visible:before,.siteorigin-widget-form .siteorigin-widget-field-type-section>label.siteorigin-widget-section-visible:before{content:"\f460"}.siteorigin-widget-form .siteorigin-widget-field-type-posts .siteorigin-widget-section,.siteorigin-widget-form .siteorigin-widget-field-type-widget .siteorigin-widget-section,.siteorigin-widget-form .siteorigin-widget-field-type-section .siteorigin-widget-section{padding:1px 10px;background:#FCFCFC;border:1px solid #EEEEEE;border-top:0}.siteorigin-widget-form .siteorigin-widget-field-type-posts .siteorigin-widget-section.siteorigin-widget-section-hide,.siteorigin-widget-form .siteorigin-widget-field-type-widget .siteorigin-widget-section.siteorigin-widget-section-hide,.siteorigin-widget-form .siteorigin-widget-field-type-section .siteorigin-widget-section.siteorigin-widget-section-hide{display:none}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete,.siteorigin-widget-form .siteorigin-widget-field-type-link{position:relative}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector{padding:20px;display:none;position:absolute;top:110%;width:360px;z-index:10;border:1px solid #c0c0c0;background:#F6F6F6;-webkit-box-shadow:0 2px 4px rgba(0,0,0,0.2);-moz-box-shadow:0 2px 4px rgba(0,0,0,0.2);box-shadow:0 2px 4px rgba(0,0,0,0.2);-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .content-text-search,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .content-text-search{width:100%;margin-bottom:15px}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts{margin:0;padding:0;background:#fff;max-height:300px;overflow-y:scroll;border:1px solid #e4e4e4}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items li,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items li,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts li,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li{cursor:pointer;padding:5px 10px;color:#32373c;border-bottom:1px solid #f1f1f1;margin:0;font-size:.95em}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items li.selected,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items li.selected,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts li.selected,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li.selected{background:#e1edfa}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items li:hover,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items li:hover,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts li:hover,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li:hover{background:#eaf2fa}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items li:last-child,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items li:last-child,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts li:last-child,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li:last-child{border-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items li span,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items li span,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts li span,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li span{font-size:.9em;display:inline-block;float:right;color:#999;margin-left:10px}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items.loading,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items.loading,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts.loading,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts.loading{min-height:40px;background:#FFFFFF url("img/wpspin_light.gif") center center no-repeat}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items.loading,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items.loading,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts.loading,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts.loading{background-image:url("img/wpspin_light-2x.gif");background-size:16px 16px}}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items.loading li,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items.loading li,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts.loading li,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts.loading li{display:none}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .buttons,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .buttons{margin-top:15px;text-align:right}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .buttons a,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .buttons a{display:inline-block}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .url-input-wrapper,.siteorigin-widget-form .siteorigin-widget-field-type-link .url-input-wrapper{display:block;margin-right:130px}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .select-content-button,.siteorigin-widget-form .siteorigin-widget-field-type-link .select-content-button{float:right;line-height:28px;min-height:30px;width:120px;text-align:center}.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector{right:0}.siteorigin-widget-form .siteorigin-widget-description{clear:both}.siteorigin-widget-preview{display:block !important}.siteorigin-widget-help-link{display:block;margin:1em 0}.so-widgets-dialog .so-widgets-dialog-overlay{position:fixed;z-index:500000;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.7)}.so-widgets-dialog .so-widgets-toolbar,.so-widgets-dialog .so-widgets-dialog-frame{position:fixed;z-index:500001;-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.so-widgets-dialog .so-widgets-toolbar{left:30px;right:30px;top:30px;height:50px;background:#fafafa;border-bottom:1px solid #D8D8D8}.so-widgets-dialog .so-widgets-toolbar h3{margin:15px 0 15px 20px}.so-widgets-dialog .so-widgets-toolbar .close{position:absolute;box-sizing:border-box;width:50px;height:50px;display:block;cursor:pointer;top:0;right:0;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;background:#fafafa;border-left:1px solid #d8d8d8;border-bottom:1px solid #d8d8d8}.so-widgets-dialog .so-widgets-toolbar .close:hover{background:#e9e9e9}.so-widgets-dialog .so-widgets-toolbar .close:hover .so-dialog-icon{color:#333333}.so-widgets-dialog .so-widgets-toolbar .close .dashicons{position:absolute;top:50%;left:50%;text-decoration:none;width:21px;height:21px;margin-left:-11px;margin-top:-10px;font-size:21px;color:#666666;text-align:center}.so-widgets-dialog .so-widgets-dialog-frame{top:80px;left:30px;right:30px;bottom:30px;background:#FFFFFF url("img/wpspin_light.gif") center center no-repeat}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.so-widgets-dialog .so-widgets-dialog-frame{background-image:url("img/wpspin_light-2x.gif");background-size:16px 16px}}.so-widgets-dialog .so-widgets-dialog-frame iframe{width:100%;height:100%}.widget-icon.so-widget-icon{background-size:cover;background-image:url("img/bundle-icon.png")}.widget-icon.so-widget-icon.so-block-editor-icon{width:20px;height:20px;display:inline-block}.block-editor .so-widget-placeholder{text-align:left}.block-editor .so-widget-placeholder>.components-placeholder__label{background:url("img/bundle-icon.png") no-repeat left;background-size:20px;padding-left:25px}.block-editor .so-widget-placeholder>.components-placeholder__fieldset{max-width:unset}.block-editor .so-widget-placeholder>.components-placeholder__fieldset .so-widget-block-container{width:100%}.block-editor .so-widget-placeholder>.components-placeholder__fieldset .so-widget-block-container .components-base-control__field select{max-width:unset}.block-editor .so-widget-placeholder>.components-placeholder__fieldset .so-widget-block-container .siteorigin-widget-form.siteorigin-widget-form-main{min-width:unset}.block-editor .siteorigin-widget-form .siteorigin-widget-field{text-align:left}.block-editor .siteorigin-widget-form .siteorigin-widget-field input{padding:3px 5px}.block-editor .siteorigin-widget-form .siteorigin-widget-field input[type=checkbox]{background-color:#ffffff}.block-editor .siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-type-autocomplete .select-content-button,.block-editor .siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-type-link .select-content-button{box-shadow:unset;font-size:13px;height:28px}.block-editor .siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector-current{height:37px}.block-editor .siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-type-tinymce .wp-switch-editor{box-sizing:content-box}.block-editor .so-widget-preview-container .so-widgets-spinner-container{text-align:center}.block-editor .so-widget-preview-container .so-widgets-spinner-container>span{display:inline-block}
base/inc/fields/css/media-field.css CHANGED
@@ -1 +1 @@
1
- .siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper{background:#f9f9f9;background:-webkit-gradient(linear, left bottom, left top, color-stop(0, #f2f2f2), color-stop(1, #f9f9f9));background:-ms-linear-gradient(bottom, #f2f2f2, #f9f9f9);background:-moz-linear-gradient(center bottom, #f2f2f2 0%, #f9f9f9 100%);background:-o-linear-gradient(#f9f9f9, #f2f2f2);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#f2f2f2', GradientType=0);border:1px solid #bbbbbb;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.1);-moz-box-shadow:0 1px 2px rgba(0,0,0,0.1);box-shadow:0 1px 2px rgba(0,0,0,0.1);display:block;float:left;font-size:13px;height:32px;line-height:18.2px;overflow:auto;position:relative}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper:hover{-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.15);-moz-box-shadow:0 1px 2px rgba(0,0,0,0.15);box-shadow:0 1px 2px rgba(0,0,0,0.15)}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current{-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;float:left;height:32px;padding:4px;border-right:1px solid #bbb;position:relative;box-shadow:1px 0 0 #FFF}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current .title{display:none;position:absolute;bottom:34px;left:0;padding:4px 12px;background:#333;color:#CCC;font-weight:bold;width:auto;white-space:nowrap}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current .thumbnail-wrapper{border:1px solid #999;line-height:0;box-shadow:0 1px 1px #FFF;width:22px;height:22px;background:#cfcfcf;background:-webkit-gradient(linear, left bottom, left top, color-stop(0, #cccccc), color-stop(1, #cfcfcf));background:-ms-linear-gradient(bottom, #cccccc, #cfcfcf);background:-moz-linear-gradient(center bottom, #cccccc 0%, #cfcfcf 100%);background:-o-linear-gradient(#cfcfcf, #cccccc);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#cfcfcf', endColorstr='#cccccc', GradientType=0);box-shadow:inset 0 1px 3px rgba(0,0,0,0.2)}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current .thumbnail-wrapper img{height:100%;width:100%;box-shadow:inset 0 1px 3px rgba(0,0,0,0.2)}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .media-upload-button,.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .find-image-button{display:block;float:left;color:#666;text-decoration:none;text-shadow:0 1px 0 #FFF;font-weight:600;font-size:11px;padding:7px 8px;outline:none;cursor:pointer;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .media-upload-button:hover,.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .find-image-button:hover{background:rgba(255,255,255,0.75)}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .find-image-button{border-left:1px solid #bbbbbb}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper:hover .media-upload-button{color:#707070}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-remove-button{display:block;text-decoration:none;float:left;color:#AAA;font-size:11px;line-height:1em;margin-right:25px;padding:11px 0 11px 6px;-webkit-transition:all .25s ease;-moz-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease;position:static;opacity:1}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-remove-button.remove-hide{pointer-events:none;opacity:0}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-remove-button:hover{color:#BC0B0B}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-fallback-external{float:left;margin-top:2px !important;max-width:320px}#so-widgets-image-search-frame{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#fff;padding:25px;overflow-y:scroll;overflow-x:hidden}#so-widgets-image-search-frame #so-widgets-image-search-form{display:block;width:100%;position:relative;margin-bottom:2px;box-sizing:border-box}@media (min-width:783px){#so-widgets-image-search-frame #so-widgets-image-search-form{padding-right:368px}}#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-input{padding:9px 12px;margin-bottom:0px;box-shadow:none}#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-input:focus{box-shadow:none}#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-button{position:absolute;padding:0 14px;font-size:1.2em;height:100%;top:0;right:320px;border-width:1px;box-shadow:none}@media (max-width:783px){#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-button{right:0}}#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-button .dashicons-search{vertical-align:middle}#so-widgets-image-search-frame #so-widgets-image-search-suggestions{position:absolute;right:0;top:0;width:300px;height:40px;text-align:right;display:none;font-size:1.1em;overflow:hidden}#so-widgets-image-search-frame #so-widgets-image-search-suggestions strong{display:block}#so-widgets-image-search-frame #so-widgets-image-search-suggestions ul{display:block;list-style:none;margin:0;padding:0}#so-widgets-image-search-frame #so-widgets-image-search-suggestions ul li{display:inline-block;margin-right:4px}#so-widgets-image-search-frame #so-widgets-image-search-powered{font-size:.85em;margin-bottom:15px;color:#888}#so-widgets-image-search-frame .so-widgets-image-results{zoom:1;margin:0 -8px}#so-widgets-image-search-frame .so-widgets-image-results:before{content:'';display:block}#so-widgets-image-search-frame .so-widgets-image-results:after{content:'';display:table;clear:both}#so-widgets-image-search-frame .so-widgets-image-results .so-widgets-result{-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;float:left;margin:8px}#so-widgets-image-search-frame .so-widgets-image-results .so-widgets-result a{position:relative;background-repeat:no-repeat;background-size:cover;display:block;width:260px;height:180px;background-color:#e8e8e8}#so-widgets-image-search-frame .so-widgets-image-results .so-widgets-result a .so-widgets-result-sponsored{font-size:.8em;position:absolute;top:5px;right:5px;color:#fff;background:#59946B;line-height:1em;padding:5px;border-radius:2px}#so-widgets-image-search-frame .so-widgets-results-loading{display:none;font-size:1.1em;padding:15px 5px;background-color:#f7f7f7;text-align:center;margin-top:20px}#so-widgets-image-search-frame .so-widgets-results-loading .so-widgets-loading-icon{margin:0 6px -3px 0;display:inline-block;width:16px;height:16px;background-image:url("images/wpspin_light.gif");background-position:center center;background-repeat:no-repeat}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#so-widgets-image-search-frame .so-widgets-results-loading .so-widgets-loading-icon{background-image:url(images/wpspin_light-2x.gif);background-size:16px 16px}}#so-widgets-image-search-frame .so-widgets-results-more{display:none;text-align:center;margin-top:20px;padding-bottom:20px}#so-widgets-image-search-frame .so-widgets-preview-window{display:none;position:fixed;background-color:#ffffff;box-shadow:0 1px 3px rgba(0,0,0,0.35);padding:10px;pointer-events:none}#so-widgets-image-search-frame .so-widgets-preview-window .so-widgets-preview-window-inside{background-size:cover;overflow:hidden}#so-widgets-image-search-frame .so-widgets-preview-window img{width:100%;height:auto}#so-widgets-image-search-frame.so-widgets-importing .so-widgets-preview-window,#so-widgets-image-search-frame.so-widgets-importing #so-widgets-image-search-form,#so-widgets-image-search-frame.so-widgets-importing #so-widgets-image-search-powered,#so-widgets-image-search-frame.so-widgets-importing .so-widgets-image-results{visibility:hidden !important;display:none !important}
1
+ .siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper{border:1px solid #bbb;-webkit-box-shadow:0 1px 2px rgba(0, 0, 0, 0.1);-moz-box-shadow:0 1px 2px rgba(0, 0, 0, 0.1);box-shadow:0 1px 2px rgba(0, 0, 0, 0.1);display:block;float:left;font-size:13px;background:#f9f9f9;background:-webkit-gradient(linear, left bottom, left top, color-stop(0, #f2f2f2), color-stop(1, #f9f9f9));background:-ms-linear-gradient(bottom, #f2f2f2, #f9f9f9);background:-moz-linear-gradient(center bottom, #f2f2f2 0%, #f9f9f9 100%);background:-o-linear-gradient(#f9f9f9, #f2f2f2);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#f2f2f2', GradientType=0);height:32px;line-height:18.2px;overflow:auto;position:relative;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper:hover{-webkit-box-shadow:0 1px 2px rgba(0, 0, 0, 0.15);-moz-box-shadow:0 1px 2px rgba(0, 0, 0, 0.15);box-shadow:0 1px 2px rgba(0, 0, 0, 0.15)}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current{border-right:1px solid #bbb;box-shadow:1px 0 0 #fff;-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;float:left;height:32px;overflow:hidden;padding:4px;position:relative}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current .title{background:#333;bottom:34px;color:#ccc;display:none;font-weight:bold;left:0;padding:4px 12px;position:absolute;white-space:nowrap;width:auto}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current .thumbnail-wrapper{border:1px solid #999;box-shadow:0 1px 1px #fff;box-shadow:inset 0 1px 3px rgba(0,0,0,0.2);height:22px;background:#cfcfcf;background:-webkit-gradient(linear, left bottom, left top, color-stop(0, #cccccc), color-stop(1, #cfcfcf));background:-ms-linear-gradient(bottom, #cccccc, #cfcfcf);background:-moz-linear-gradient(center bottom, #cccccc 0%, #cfcfcf 100%);background:-o-linear-gradient(#cfcfcf, #cccccc);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#cfcfcf', endColorstr='#cccccc', GradientType=0);line-height:0;width:22px}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current .thumbnail-wrapper img{box-shadow:inset 0 1px 3px rgba(0,0,0,0.2);height:100%;width:100%}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .media-upload-button,.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .find-image-button{display:block;cursor:pointer;float:left;font-size:11px;font-weight:600;color:#666;outline:none;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;padding:7px 8px;text-decoration:none;text-shadow:0 1px 0 #fff}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .media-upload-button:hover,.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .find-image-button:hover{background:rgba(255,255,255,0.75)}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .find-image-button{border-left:1px solid #bbb}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper:hover .media-upload-button{color:#707070}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-remove-button{display:block;color:#aaa;float:left;font-size:11px;line-height:1em;margin-right:25px;opacity:1;padding:11px 0 11px 6px;position:static;text-decoration:none;-webkit-transition:all .25s ease;-moz-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-remove-button.remove-hide{opacity:0;pointer-events:none}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-remove-button:hover{color:#bc0b0b}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-fallback-external{float:left;margin-top:2px !important;max-width:320px}#so-widgets-image-search-frame{background-color:#fff;bottom:0;left:0;overflow-x:hidden;overflow-y:scroll;padding:25px;position:absolute;right:0;top:0}#so-widgets-image-search-frame #so-widgets-image-search-form{box-sizing:border-box;display:block;margin-bottom:2px;position:relative;width:100%}@media (min-width:783px){#so-widgets-image-search-frame #so-widgets-image-search-form{padding-right:368px}}#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-input{box-shadow:none;margin-bottom:0px;padding:9px 12px}#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-input:focus{box-shadow:none}#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-button{border-width:1px;box-shadow:none;font-size:1.2em;height:100%;padding:0 14px;position:absolute;right:320px;top:0}@media (max-width:783px){#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-button{right:0}}#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-button .dashicons-search{vertical-align:middle}#so-widgets-image-search-frame #so-widgets-image-search-suggestions{display:none;font-size:1.1em;height:40px;overflow:hidden;position:absolute;right:0;text-align:right;top:0;width:300px}#so-widgets-image-search-frame #so-widgets-image-search-suggestions strong{display:block}#so-widgets-image-search-frame #so-widgets-image-search-suggestions ul{display:block;list-style:none;margin:0;padding:0}#so-widgets-image-search-frame #so-widgets-image-search-suggestions ul li{display:inline-block;margin-right:4px}#so-widgets-image-search-frame #so-widgets-image-search-powered{color:#888;font-size:.85em;margin-bottom:15px}#so-widgets-image-search-frame .so-widgets-image-results{zoom:1;margin:0 -8px}#so-widgets-image-search-frame .so-widgets-image-results:before{content:'';display:block}#so-widgets-image-search-frame .so-widgets-image-results:after{content:'';display:table;clear:both}#so-widgets-image-search-frame .so-widgets-image-results .so-widgets-result{-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;float:left;margin:8px}#so-widgets-image-search-frame .so-widgets-image-results .so-widgets-result a{background-color:#e8e8e8;background-repeat:no-repeat;background-size:cover;display:block;position:relative;height:180px;width:260px}#so-widgets-image-search-frame .so-widgets-image-results .so-widgets-result a .so-widgets-result-sponsored{background:#59946b;border-radius:2px;color:#fff;font-size:.8em;line-height:1em;padding:5px;position:absolute;right:5px;top:5px}#so-widgets-image-search-frame .so-widgets-results-loading{background-color:#f7f7f7;display:none;font-size:1.1em;margin-top:20px;padding:15px 5px;text-align:center}#so-widgets-image-search-frame .so-widgets-results-loading .so-widgets-loading-icon{background-image:url("images/wpspin_light.gif");background-position:center center;background-repeat:no-repeat;display:inline-block;height:16px;margin:0 6px -3px 0;width:16px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#so-widgets-image-search-frame .so-widgets-results-loading .so-widgets-loading-icon{background-image:url(images/wpspin_light-2x.gif);background-size:16px 16px}}#so-widgets-image-search-frame .so-widgets-results-more{display:none;margin-top:20px;padding-bottom:20px;text-align:center}#so-widgets-image-search-frame .so-widgets-preview-window{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,0.35);display:none;padding:10px;pointer-events:none;position:fixed}#so-widgets-image-search-frame .so-widgets-preview-window .so-widgets-preview-window-inside{background-size:cover;overflow:hidden}#so-widgets-image-search-frame .so-widgets-preview-window img{height:auto;width:100%}#so-widgets-image-search-frame.so-widgets-importing .so-widgets-preview-window,#so-widgets-image-search-frame.so-widgets-importing #so-widgets-image-search-form,#so-widgets-image-search-frame.so-widgets-importing #so-widgets-image-search-powered,#so-widgets-image-search-frame.so-widgets-importing .so-widgets-image-results{display:none !important;visibility:hidden !important}
base/inc/lessc.inc.php CHANGED
@@ -4,13 +4,6 @@
4
  * to be a drop-in replacement for following products:
5
  * - Drupal 7, by the less module v3.0+ (https://drupal.org/project/less)
6
  * - Symfony 2
7
- *
8
- * @SiteOrigin: We originally used leafo/lessphp (https://github.com/leafo/lessphp), until we found it wasn't
9
- * maintained and missed some newer LESS features. We then migrated to a more recent and maintained repo
10
- * (https://github.com/oyejorge/less.php) simply replacing leafo's lessc.inc.php with the one from oyejorge. This
11
- * worked well until users started running PHP 7 compatibility checkers which found some issues, so now we have our own
12
- * fork here: https://github.com/siteorigin/less.php We have fixed the PHP 7 compatibility issues and will only make
13
- * more changes if there are severe issues.
14
  */
15
 
16
  // Register autoloader for non-composer installations
4
  * to be a drop-in replacement for following products:
5
  * - Drupal 7, by the less module v3.0+ (https://drupal.org/project/less)
6
  * - Symfony 2
 
 
 
 
 
 
 
7
  */
8
 
9
  // Register autoloader for non-composer installations
base/inc/lib/Less/Exception/Chunk.php CHANGED
@@ -1,203 +1,203 @@
1
- <?php
2
-
3
- /**
4
- * Chunk Exception
5
- *
6
- * @package Less
7
- * @subpackage exception
8
- */
9
- class Less_Exception_Chunk extends Less_Exception_Parser{
10
-
11
-
12
- protected $parserCurrentIndex = 0;
13
-
14
- protected $emitFrom = 0;
15
-
16
- protected $input_len;
17
-
18
-
19
- /**
20
- * Constructor
21
- *
22
- * @param string $input
23
- * @param Exception $previous Previous exception
24
- * @param integer $index The current parser index
25
- * @param Less_FileInfo|string $currentFile The file
26
- * @param integer $code The exception code
27
- */
28
- public function __construct($input, Exception $previous = null, $index = null, $currentFile = null, $code = 0){
29
-
30
- $this->message = 'ParseError: Unexpected input'; //default message
31
-
32
- $this->index = $index;
33
-
34
- $this->currentFile = $currentFile;
35
-
36
- $this->input = $input;
37
- $this->input_len = strlen($input);
38
-
39
- $this->Chunks();
40
- $this->genMessage();
41
- }
42
-
43
-
44
- /**
45
- * See less.js chunks()
46
- * We don't actually need the chunks
47
- *
48
- */
49
- protected function Chunks(){
50
- $level = 0;
51
- $parenLevel = 0;
52
- $lastMultiCommentEndBrace = null;
53
- $lastOpening = null;
54
- $lastMultiComment = null;
55
- $lastParen = null;
56
-
57
- for( $this->parserCurrentIndex = 0; $this->parserCurrentIndex < $this->input_len; $this->parserCurrentIndex++ ){
58
- $cc = $this->CharCode($this->parserCurrentIndex);
59
- if ((($cc >= 97) && ($cc <= 122)) || ($cc < 34)) {
60
- // a-z or whitespace
61
- continue;
62
- }
63
-
64
- switch ($cc) {
65
-
66
- // (
67
- case 40:
68
- $parenLevel++;
69
- $lastParen = $this->parserCurrentIndex;
70
- break;
71
-
72
- // )
73
- case 41:
74
- $parenLevel--;
75
- if( $parenLevel < 0 ){
76
- return $this->fail("missing opening `(`");
77
- }
78
- break;
79
-
80
- // ;
81
- case 59:
82
- //if (!$parenLevel) { $this->emitChunk(); }
83
- break;
84
-
85
- // {
86
- case 123:
87
- $level++;
88
- $lastOpening = $this->parserCurrentIndex;
89
- break;
90
-
91
- // }
92
- case 125:
93
- $level--;
94
- if( $level < 0 ){
95
- return $this->fail("missing opening `{`");
96
-
97
- }
98
- //if (!$level && !$parenLevel) { $this->emitChunk(); }
99
- break;
100
- // \
101
- case 92:
102
- if ($this->parserCurrentIndex < $this->input_len - 1) { $this->parserCurrentIndex++; break; }
103
- return $this->fail("unescaped `\\`");
104
-
105
- // ", ' and `
106
- case 34:
107
- case 39:
108
- case 96:
109
- $matched = 0;
110
- $currentChunkStartIndex = $this->parserCurrentIndex;
111
- for ($this->parserCurrentIndex = $this->parserCurrentIndex + 1; $this->parserCurrentIndex < $this->input_len; $this->parserCurrentIndex++) {
112
- $cc2 = $this->CharCode($this->parserCurrentIndex);
113
- if ($cc2 > 96) { continue; }
114
- if ($cc2 == $cc) { $matched = 1; break; }
115
- if ($cc2 == 92) { // \
116
- if ($this->parserCurrentIndex == $this->input_len - 1) {
117
- return $this->fail("unescaped `\\`");
118
- }
119
- $this->parserCurrentIndex++;
120
- }
121
- }
122
- if ($matched) { break; }
123
- return $this->fail("unmatched `" . chr($cc) . "`", $currentChunkStartIndex);
124
-
125
- // /, check for comment
126
- case 47:
127
- if ($parenLevel || ($this->parserCurrentIndex == $this->input_len - 1)) { break; }
128
- $cc2 = $this->CharCode($this->parserCurrentIndex+1);
129
- if ($cc2 == 47) {
130
- // //, find lnfeed
131
- for ($this->parserCurrentIndex = $this->parserCurrentIndex + 2; $this->parserCurrentIndex < $this->input_len; $this->parserCurrentIndex++) {
132
- $cc2 = $this->CharCode($this->parserCurrentIndex);
133
- if (($cc2 <= 13) && (($cc2 == 10) || ($cc2 == 13))) { break; }
134
- }
135
- } else if ($cc2 == 42) {
136
- // /*, find */
137
- $lastMultiComment = $currentChunkStartIndex = $this->parserCurrentIndex;
138
- for ($this->parserCurrentIndex = $this->parserCurrentIndex + 2; $this->parserCurrentIndex < $this->input_len - 1; $this->parserCurrentIndex++) {
139
- $cc2 = $this->CharCode($this->parserCurrentIndex);
140
- if ($cc2 == 125) { $lastMultiCommentEndBrace = $this->parserCurrentIndex; }
141
- if ($cc2 != 42) { continue; }
142
- if ($this->CharCode($this->parserCurrentIndex+1) == 47) { break; }
143
- }
144
- if ($this->parserCurrentIndex == $this->input_len - 1) {
145
- return $this->fail("missing closing `*/`", $currentChunkStartIndex);
146
- }
147
- }
148
- break;
149
-
150
- // *, check for unmatched */
151
- case 42:
152
- if (($this->parserCurrentIndex < $this->input_len - 1) && ($this->CharCode($this->parserCurrentIndex+1) == 47)) {
153
- return $this->fail("unmatched `/*`");
154
- }
155
- break;
156
- }
157
- }
158
-
159
- if( $level !== 0 ){
160
- if( ($lastMultiComment > $lastOpening) && ($lastMultiCommentEndBrace > $lastMultiComment) ){
161
- return $this->fail("missing closing `}` or `*/`", $lastOpening);
162
- } else {
163
- return $this->fail("missing closing `}`", $lastOpening);
164
- }
165
- } else if ( $parenLevel !== 0 ){
166
- return $this->fail("missing closing `)`", $lastParen);
167
- }
168
-
169
-
170
- //chunk didn't fail
171
-
172
-
173
- //$this->emitChunk(true);
174
- }
175
-
176
- public function CharCode($pos){
177
- return ord($this->input[$pos]);
178
- }
179
-
180
-
181
- public function fail( $msg, $index = null ){
182
-
183
- if( !$index ){
184
- $this->index = $this->parserCurrentIndex;
185
- }else{
186
- $this->index = $index;
187
- }
188
- $this->message = 'ParseError: '.$msg;
189
- }
190
-
191
-
192
- /*
193
- function emitChunk( $force = false ){
194
- $len = $this->parserCurrentIndex - $this->emitFrom;
195
- if ((($len < 512) && !$force) || !$len) {
196
- return;
197
- }
198
- $chunks[] = substr($this->input, $this->emitFrom, $this->parserCurrentIndex + 1 - $this->emitFrom );
199
- $this->emitFrom = $this->parserCurrentIndex + 1;
200
- }
201
- */
202
-
203
- }
1
+ <?php
2
+
3
+ /**
4
+ * Chunk Exception
5
+ *
6
+ * @package Less
7
+ * @subpackage exception
8
+ */
9
+ class Less_Exception_Chunk extends Less_Exception_Parser{
10
+
11
+
12
+ protected $parserCurrentIndex = 0;
13
+
14
+ protected $emitFrom = 0;
15
+
16
+ protected $input_len;
17
+
18
+
19
+ /**
20
+ * Constructor
21
+ *
22
+ * @param string $input
23
+ * @param Exception $previous Previous exception
24
+ * @param integer $index The current parser index
25
+ * @param Less_FileInfo|string $currentFile The file
26
+ * @param integer $code The exception code
27
+ */
28
+ public function __construct($input, Exception $previous = null, $index = null, $currentFile = null, $code = 0){
29
+
30
+ $this->message = 'ParseError: Unexpected input'; //default message
31
+
32
+ $this->index = $index;
33
+
34
+ $this->currentFile = $currentFile;
35
+
36
+ $this->input = $input;
37
+ $this->input_len = strlen($input);
38
+
39
+ $this->Chunks();
40
+ $this->genMessage();
41
+ }
42
+
43
+
44
+ /**
45
+ * See less.js chunks()
46
+ * We don't actually need the chunks
47
+ *
48
+ */
49
+ protected function Chunks(){
50
+ $level = 0;
51
+ $parenLevel = 0;
52
+ $lastMultiCommentEndBrace = null;
53
+ $lastOpening = null;
54
+ $lastMultiComment = null;
55
+ $lastParen = null;
56
+
57
+ for( $this->parserCurrentIndex = 0; $this->parserCurrentIndex < $this->input_len; $this->parserCurrentIndex++ ){
58
+ $cc = $this->CharCode($this->parserCurrentIndex);
59
+ if ((($cc >= 97) && ($cc <= 122)) || ($cc < 34)) {
60
+ // a-z or whitespace
61
+ continue;
62
+ }
63
+
64
+ switch ($cc) {
65
+
66
+ // (
67
+ case 40:
68
+ $parenLevel++;
69
+ $lastParen = $this->parserCurrentIndex;
70
+ break;
71
+
72
+ // )
73
+ case 41:
74
+ $parenLevel--;
75
+ if( $parenLevel < 0 ){
76
+ return $this->fail("missing opening `(`");
77
+ }
78
+ break;
79
+
80
+ // ;
81
+ case 59:
82
+ //if (!$parenLevel) { $this->emitChunk(); }
83
+ break;
84
+
85
+ // {
86
+ case 123:
87
+ $level++;
88
+ $lastOpening = $this->parserCurrentIndex;
89
+ break;
90
+
91
+ // }
92
+ case 125:
93
+ $level--;
94
+ if( $level < 0 ){
95
+ return $this->fail("missing opening `{`");
96
+
97
+ }
98
+ //if (!$level && !$parenLevel) { $this->emitChunk(); }
99
+ break;
100
+ // \
101
+ case 92:
102
+ if ($this->parserCurrentIndex < $this->input_len - 1) { $this->parserCurrentIndex++; break; }
103
+ return $this->fail("unescaped `\\`");
104
+
105
+ // ", ' and `
106
+ case 34:
107
+ case 39:
108
+ case 96:
109
+ $matched = 0;
110
+ $currentChunkStartIndex = $this->parserCurrentIndex;
111
+ for ($this->parserCurrentIndex = $this->parserCurrentIndex + 1; $this->parserCurrentIndex < $this->input_len; $this->parserCurrentIndex++) {
112
+ $cc2 = $this->CharCode($this->parserCurrentIndex);
113
+ if ($cc2 > 96) { continue; }
114
+ if ($cc2 == $cc) { $matched = 1; break; }
115
+ if ($cc2 == 92) { // \
116
+ if ($this->parserCurrentIndex == $this->input_len - 1) {
117
+ return $this->fail("unescaped `\\`");
118
+ }
119
+ $this->parserCurrentIndex++;
120
+ }
121
+ }
122
+ if ($matched) { break; }
123
+ return $this->fail("unmatched `" . chr($cc) . "`", $currentChunkStartIndex);
124
+
125
+ // /, check for comment
126
+ case 47:
127
+ if ($parenLevel || ($this->parserCurrentIndex == $this->input_len - 1)) { break; }
128
+ $cc2 = $this->CharCode($this->parserCurrentIndex+1);
129
+ if ($cc2 == 47) {
130
+ // //, find lnfeed
131
+ for ($this->parserCurrentIndex = $this->parserCurrentIndex + 2; $this->parserCurrentIndex < $this->input_len; $this->parserCurrentIndex++) {
132
+ $cc2 = $this->CharCode($this->parserCurrentIndex);
133
+ if (($cc2 <= 13) && (($cc2 == 10) || ($cc2 == 13))) { break; }
134
+ }
135
+ } else if ($cc2 == 42) {
136
+ // /*, find */
137
+ $lastMultiComment = $currentChunkStartIndex = $this->parserCurrentIndex;
138
+ for ($this->parserCurrentIndex = $this->parserCurrentIndex + 2; $this->parserCurrentIndex < $this->input_len - 1; $this->parserCurrentIndex++) {
139
+ $cc2 = $this->CharCode($this->parserCurrentIndex);
140
+ if ($cc2 == 125) { $lastMultiCommentEndBrace = $this->parserCurrentIndex; }
141
+ if ($cc2 != 42) { continue; }
142
+ if ($this->CharCode($this->parserCurrentIndex+1) == 47) { break; }
143
+ }
144
+ if ($this->parserCurrentIndex == $this->input_len - 1) {
145
+ return $this->fail("missing closing `*/`", $currentChunkStartIndex);
146
+ }
147
+ }
148
+ break;
149
+
150
+ // *, check for unmatched */
151
+ case 42:
152
+ if (($this->parserCurrentIndex < $this->input_len - 1) && ($this->CharCode($this->parserCurrentIndex+1) == 47)) {
153
+ return $this->fail("unmatched `/*`");
154
+ }
155
+ break;
156
+ }
157
+ }
158
+
159
+ if( $level !== 0 ){
160
+ if( ($lastMultiComment > $lastOpening) && ($lastMultiCommentEndBrace > $lastMultiComment) ){
161
+ return $this->fail("missing closing `}` or `*/`", $lastOpening);
162
+ } else {
163
+ return $this->fail("missing closing `}`", $lastOpening);
164
+ }
165
+ } else if ( $parenLevel !== 0 ){
166
+ return $this->fail("missing closing `)`", $lastParen);
167
+ }
168
+
169
+
170
+ //chunk didn't fail
171
+
172
+
173
+ //$this->emitChunk(true);
174
+ }
175
+
176
+ public function CharCode($pos){
177
+ return ord($this->input[$pos]);
178
+ }
179
+
180
+
181
+ public function fail( $msg, $index = null ){
182
+
183
+ if( !$index ){
184
+ $this->index = $this->parserCurrentIndex;
185
+ }else{
186
+ $this->index = $index;
187
+ }
188
+ $this->message = 'ParseError: '.$msg;
189
+ }
190
+
191
+
192
+ /*
193
+ function emitChunk( $force = false ){
194
+ $len = $this->parserCurrentIndex - $this->emitFrom;
195
+ if ((($len < 512) && !$force) || !$len) {
196
+ return;
197
+ }
198
+ $chunks[] = substr($this->input, $this->emitFrom, $this->parserCurrentIndex + 1 - $this->emitFrom );
199
+ $this->emitFrom = $this->parserCurrentIndex + 1;
200
+ }
201
+ */
202
+
203
+ }
base/inc/lib/Less/Parser.php CHANGED
@@ -877,8 +877,8 @@ class Less_Parser{
877
 
878
  if( preg_match($tok, $this->input, $match, 0, $this->pos) ){
879
  $this->skipWhitespace(strlen($match[0]));
 
880
  }
881
- return $match;
882
  }
883
 
884
 
@@ -1924,7 +1924,7 @@ class Less_Parser{
1924
 
1925
  $this->expectChar(']');
1926
 
1927
- return $this->NewObj3('Less_Tree_Attribute',array( $key, $op[0], $val));
1928
  }
1929
 
1930
  //
877
 
878
  if( preg_match($tok, $this->input, $match, 0, $this->pos) ){
879
  $this->skipWhitespace(strlen($match[0]));
880
+ return $match;
881
  }
 
882
  }
883
 
884
 
1924
 
1925
  $this->expectChar(']');
1926
 
1927
+ return $this->NewObj3('Less_Tree_Attribute',array( $key, $op === null ? null : $op[0], $val));
1928
  }
1929
 
1930
  //
base/inc/lib/Less/SourceMap/Base64VLQ.php CHANGED
@@ -153,12 +153,7 @@ class Less_SourceMap_Base64VLQ {
153
  * @return integer
154
  */
155
  public function zeroFill($a, $b){
156
- if ( $b <= 0) {
157
- throw new Exception( sprintf( '$b must be a positive integer. "%s" given.', $b ) );
158
- }
159
- $shift_max_int = $b - 1;
160
-
161
- return ($a >= 0) ? ($a >> $b) : ($a >> $b) & (PHP_INT_MAX >> $shift_max_int);
162
  }
163
 
164
  /**
153
  * @return integer
154
  */
155
  public function zeroFill($a, $b){
156
+ return ($a >= 0) ? ($a >> $b) : ($a >> $b) & (PHP_INT_MAX >> ($b - 1));
 
 
 
 
 
157
  }
158
 
159
  /**
base/inc/lib/Less/SourceMap/Generator.php CHANGED
@@ -169,7 +169,7 @@ class Less_SourceMap_Generator extends Less_Configurable {
169
  $basePath = $this->getOption('sourceMapBasepath');
170
 
171
  // "Trim" the 'sourceMapBasepath' from the output filename.
172
- if (strpos($filename, $basePath) === 0) {
173
  $filename = substr($filename, strlen($basePath));
174
  }
175
 
@@ -362,4 +362,4 @@ class Less_SourceMap_Generator extends Less_Configurable {
362
  return $path;
363
  }
364
 
365
- }
169
  $basePath = $this->getOption('sourceMapBasepath');
170
 
171
  // "Trim" the 'sourceMapBasepath' from the output filename.
172
+ if (is_string($basePath) && strpos($filename, $basePath) === 0) {
173
  $filename = substr($filename, strlen($basePath));
174
  }
175
 
362
  return $path;
363
  }
364
 
365
+ }
base/inc/lib/Less/Tree/Dimension.php CHANGED
@@ -157,14 +157,10 @@ class Less_Tree_Dimension extends Less_Tree{
157
 
158
  if( is_string($conversions) ){
159
  $derivedConversions = array();
160
- if( isset(Less_Tree_UnitConversions::$length[$conversions]) ){
161
- $derivedConversions = array( 'length' => $conversions );
162
- }
163
- if( isset(Less_Tree_UnitConversions::$duration[$conversions]) ){
164
- $derivedConversions = array( 'duration' => $conversions );
165
- }
166
- if( isset(Less_Tree_UnitConversions::$angle[$conversions]) ){
167
- $derivedConversions = array( 'angle' => $conversions );
168
  }
169
  $conversions = $derivedConversions;
170
  }
157
 
158
  if( is_string($conversions) ){
159
  $derivedConversions = array();
160
+ foreach( Less_Tree_UnitConversions::$groups as $i ){
161
+ if( isset(Less_Tree_UnitConversions::${$i}[$conversions]) ){
162
+ $derivedConversions = array( $i => $conversions);
163
+ }
 
 
 
 
164
  }
165
  $conversions = $derivedConversions;
166
  }
base/inc/lib/Less/Tree/Directive.php CHANGED
@@ -17,7 +17,7 @@ class Less_Tree_Directive extends Less_Tree{
17
  public $debugInfo;
18
  public $type = 'Directive';
19
 
20
- public function __construct($name, $value = null, $rules, $index = null, $currentFileInfo = null, $debugInfo = null ){
21
  $this->name = $name;
22
  $this->value = $value;
23
  if( $rules ){
17
  public $debugInfo;
18
  public $type = 'Directive';
19
 
20
+ public function __construct($name, $value = null, $rules = null, $index = null, $currentFileInfo = null, $debugInfo = null ){
21
  $this->name = $name;
22
  $this->value = $value;
23
  if( $rules ){
base/inc/lib/Less/Tree/Extend.php CHANGED
@@ -42,8 +42,13 @@ class Less_Tree_Extend extends Less_Tree{
42
  break;
43
  }
44
 
45
- $this->object_id = $i++;
46
- $this->parent_ids = array($this->object_id);
 
 
 
 
 
47
  }
48
 
49
  public function accept( $visitor ){
@@ -74,4 +79,4 @@ class Less_Tree_Extend extends Less_Tree{
74
  $this->selfSelectors = array(new Less_Tree_Selector($selfElements));
75
  }
76
 
77
- }
42
  break;
43
  }
44
 
45
+ // This must use a string (instead of int) so that array_merge()
46
+ // preserves keys on arrays that use IDs in their keys.
47
+ $this->object_id = 'id_' . $i++;
48
+
49
+ $this->parent_ids = array(
50
+ $this->object_id => true
51
+ );
52
  }
53
 
54
  public function accept( $visitor ){
79
  $this->selfSelectors = array(new Less_Tree_Selector($selfElements));
80
  }
81
 
82
+ }
base/inc/lib/Less/Tree/Import.php CHANGED
@@ -214,12 +214,15 @@ class Less_Tree_Import extends Less_Tree{
214
 
215
  if( Less_Environment::isPathRelative($evald_path) ){
216
  //if the path is relative, the file should be in the current directory
217
- $import_dirs[ $this->currentFileInfo['currentDirectory'] ] = $this->currentFileInfo['uri_root'];
 
 
218
 
219
  }else{
220
  //otherwise, the file should be relative to the server root
221
- $import_dirs[ $this->currentFileInfo['entryPath'] ] = $this->currentFileInfo['entryUri'];
222
-
 
223
  //if the user supplied entryPath isn't the actual root
224
  $import_dirs[ $_SERVER['DOCUMENT_ROOT'] ] = '';
225
 
214
 
215
  if( Less_Environment::isPathRelative($evald_path) ){
216
  //if the path is relative, the file should be in the current directory
217
+ if ( $this->currentFileInfo ){
218
+ $import_dirs[ $this->currentFileInfo['currentDirectory'] ] = $this->currentFileInfo['uri_root'];
219
+ }
220
 
221
  }else{
222
  //otherwise, the file should be relative to the server root
223
+ if( $this->currentFileInfo ) {
224
+ $import_dirs[ $this->currentFileInfo['entryPath'] ] = $this->currentFileInfo['entryUri'];
225
+ }
226
  //if the user supplied entryPath isn't the actual root
227
  $import_dirs[ $_SERVER['DOCUMENT_ROOT'] ] = '';
228
 
base/inc/lib/Less/Tree/Selector.php CHANGED
@@ -22,6 +22,7 @@ class Less_Tree_Selector extends Less_Tree{
22
  public $elements_len = 0;
23
 
24
  public $_oelements;
 
25
  public $_oelements_len;
26
  public $cacheable = true;
27
 
@@ -83,6 +84,8 @@ class Less_Tree_Selector extends Less_Tree{
83
  public function CacheElements(){
84
 
85
  $this->_oelements = array();
 
 
86
  $css = '';
87
 
88
  foreach($this->elements as $v){
@@ -108,6 +111,8 @@ class Less_Tree_Selector extends Less_Tree{
108
  array_shift($this->_oelements);
109
  $this->_oelements_len--;
110
  }
 
 
111
  }
112
  }
113
 
22
  public $elements_len = 0;
23
 
24
  public $_oelements;
25
+ public $_oelements_assoc;
26
  public $_oelements_len;
27
  public $cacheable = true;
28
 
84
  public function CacheElements(){
85
 
86
  $this->_oelements = array();
87
+ $this->_oelements_assoc = array();
88
+
89
  $css = '';
90
 
91
  foreach($this->elements as $v){
111
  array_shift($this->_oelements);
112
  $this->_oelements_len--;
113
  }
114
+
115
+ $this->_oelements_assoc = array_fill_keys($this->_oelements, true);
116
  }
117
  }
118
 
base/inc/lib/Less/Version.php CHANGED
@@ -8,8 +8,8 @@
8
  */
9
  class Less_Version{
10
 
11
- const version = '1.7.0.13'; // The current build number of less.php
12
- const less_version = '2.5.3'; // The less.js version that this build should be compatible with
13
  const cache_version = '253'; // The parser cache version
14
 
15
  }
8
  */
9
  class Less_Version{
10
 
11
+ const version = '3.0.0'; // The current build number of less.php
12
+ const less_version = '2.5.3'; // The less.js version that this build should be compatible with
13
  const cache_version = '253'; // The parser cache version
14
 
15
  }
base/inc/lib/Less/Visitor/processExtends.php CHANGED
@@ -53,8 +53,9 @@ class Less_Visitor_processExtends extends Less_Visitor{
53
  $extend = $extendsList[$extendIndex];
54
  $targetExtend = $extendsListTarget[$targetExtendIndex];
55
 
56
- // look for circular references
57
- if( in_array($targetExtend->object_id, $extend->parent_ids,true) ){
 
58
  continue;
59
  }
60
 
@@ -269,7 +270,8 @@ class Less_Visitor_processExtends extends Less_Visitor{
269
  return true;
270
  }
271
 
272
- if( in_array($first_el, $hackstackSelector->_oelements) ){
 
273
  return true;
274
  }
275
  }
@@ -466,4 +468,4 @@ class Less_Visitor_processExtends extends Less_Visitor{
466
  array_pop($this->allExtendsStack);
467
  }
468
 
469
- }
53
  $extend = $extendsList[$extendIndex];
54
  $targetExtend = $extendsListTarget[$targetExtendIndex];
55
 
56
+ // Optimisation: Explicit reference, <https://github.com/wikimedia/less.php/pull/14>
57
+ if( \array_key_exists($targetExtend->object_id, $extend->parent_ids) ){
58
+ // ignore circular references
59
  continue;
60
  }
61
 
270
  return true;
271
  }
272
 
273
+ // Optimisation: Explicit reference, <https://github.com/wikimedia/less.php/pull/14>
274
+ if( \array_key_exists($first_el, $hackstackSelector->_oelements_assoc) ){
275
  return true;
276
  }
277
  }
468
  array_pop($this->allExtendsStack);
469
  }
470
 
471
+ }
base/siteorigin-widget.class.php CHANGED
@@ -912,7 +912,7 @@ abstract class SiteOrigin_Widget extends WP_Widget {
912
 
913
  try {
914
  if( method_exists( $compiler, 'compile' ) ) {
915
- $css = $compiler->compile( $less );
916
  }
917
  }
918
  catch ( Exception $e ) {
912
 
913
  try {
914
  if( method_exists( $compiler, 'compile' ) ) {
915
+ $css = @ $compiler->compile( $less );
916
  }
917
  }
918
  catch ( Exception $e ) {
css/lib/slick.css ADDED
@@ -0,0 +1 @@
 
1
+ .slick-slider{position:relative;display:block;box-sizing:border-box;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-tap-highlight-color:transparent}.slick-list{position:relative;overflow:hidden;display:block;margin:0;padding:0}.slick-list:focus{outline:none}.slick-list.dragging{cursor:pointer;cursor:hand}.slick-slider .slick-track,.slick-slider .slick-list{-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.slick-track{position:relative;left:0;top:0;display:block;margin-left:auto;margin-right:auto}.slick-track:before,.slick-track:after{content:"";display:table}.slick-track:after{clear:both}.slick-loading .slick-track{visibility:hidden}.slick-slide{float:left;height:100%;min-height:1px;display:none}[dir="rtl"] .slick-slide{float:right}.slick-slide img{display:block}.slick-slide.slick-loading img{display:none}.slick-slide.dragging img{pointer-events:none}.slick-initialized .slick-slide{display:block}.slick-loading .slick-slide{visibility:hidden}.slick-vertical .slick-slide{display:block;height:auto;border:1px solid transparent}.slick-arrow.slick-hidden{display:none}
js/lib/slick.js ADDED
@@ -0,0 +1,3011 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ _ _ _ _
3
+ ___| (_) ___| | __ (_)___
4
+ / __| | |/ __| |/ / | / __|
5
+ \__ \ | | (__| < _ | \__ \
6
+ |___/_|_|\___|_|\_(_)/ |___/
7
+ |__/
8
+
9
+ Version: 1.8.0
10
+ Author: Ken Wheeler
11
+ Website: http://kenwheeler.github.io
12
+ Docs: http://kenwheeler.github.io/slick
13
+ Repo: http://github.com/kenwheeler/slick
14
+ Issues: http://github.com/kenwheeler/slick/issues
15
+
16
+ */
17
+ /* global window, document, define, jQuery, setInterval, clearInterval */
18
+ ;(function(factory) {
19
+ 'use strict';
20
+ if (typeof define === 'function' && define.amd) {
21
+ define(['jquery'], factory);
22
+ } else if (typeof exports !== 'undefined') {
23
+ module.exports = factory(require('jquery'));
24
+ } else {
25
+ factory(jQuery);
26
+ }
27
+
28
+ }(function($) {
29
+ 'use strict';
30
+ var Slick = window.Slick || {};
31
+
32
+ Slick = (function() {
33
+
34
+ var instanceUid = 0;
35
+
36
+ function Slick(element, settings) {
37
+
38
+ var _ = this, dataSettings;
39
+
40
+ _.defaults = {
41
+ accessibility: true,
42
+ adaptiveHeight: false,
43
+ appendArrows: $(element),
44
+ appendDots: $(element),
45
+ arrows: true,
46
+ asNavFor: null,
47
+ prevArrow: '<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',
48
+ nextArrow: '<button class="slick-next" aria-label="Next" type="button">Next</button>',
49
+ autoplay: false,
50
+ autoplaySpeed: 3000,
51
+ centerMode: false,
52
+ centerPadding: '50px',
53
+ cssEase: 'ease',
54
+ customPaging: function(slider, i) {
55
+ return $('<button type="button" />').text(i + 1);
56
+ },
57
+ dots: false,
58
+ dotsClass: 'slick-dots',
59
+ draggable: true,
60
+ easing: 'linear',
61
+ edgeFriction: 0.35,
62
+ fade: false,
63
+ focusOnSelect: false,
64
+ focusOnChange: false,
65
+ infinite: true,
66
+ initialSlide: 0,
67
+ lazyLoad: 'ondemand',
68
+ mobileFirst: false,
69
+ pauseOnHover: true,
70
+ pauseOnFocus: true,
71
+ pauseOnDotsHover: false,
72
+ respondTo: 'window',
73
+ responsive: null,
74
+ rows: 1,
75
+ rtl: false,
76
+ slide: '',
77
+ slidesPerRow: 1,
78
+ slidesToShow: 1,
79
+ slidesToScroll: 1,
80
+ speed: 500,
81
+ swipe: true,
82
+ swipeToSlide: false,
83
+ touchMove: true,
84
+ touchThreshold: 5,
85
+ useCSS: true,
86
+ useTransform: true,
87
+ variableWidth: false,
88
+ vertical: false,
89
+ verticalSwiping: false,
90
+ waitForAnimate: true,
91
+ zIndex: 1000
92
+ };
93
+
94
+ _.initials = {
95
+ animating: false,
96
+ dragging: false,
97
+ autoPlayTimer: null,
98
+ currentDirection: 0,
99
+ currentLeft: null,
100
+ currentSlide: 0,
101
+ direction: 1,
102
+ $dots: null,
103
+ listWidth: null,
104
+ listHeight: null,
105
+ loadIndex: 0,
106
+ $nextArrow: null,
107
+ $prevArrow: null,
108
+ scrolling: false,
109
+ slideCount: null,
110
+ slideWidth: null,
111
+ $slideTrack: null,
112
+ $slides: null,
113
+ sliding: false,
114
+ slideOffset: 0,
115
+ swipeLeft: null,
116
+ swiping: false,
117
+ $list: null,
118
+ touchObject: {},
119
+ transformsEnabled: false,
120
+ unslicked: false
121
+ };
122
+
123
+ $.extend(_, _.initials);
124
+
125
+ _.activeBreakpoint = null;
126
+ _.animType = null;
127
+ _.animProp = null;
128
+ _.breakpoints = [];
129
+ _.breakpointSettings = [];
130
+ _.cssTransitions = false;
131
+ _.focussed = false;
132
+ _.interrupted = false;
133
+ _.hidden = 'hidden';
134
+ _.paused = true;
135
+ _.positionProp = null;
136
+ _.respondTo = null;
137
+ _.rowCount = 1;
138
+ _.shouldClick = true;
139
+ _.$slider = $(element);
140
+ _.$slidesCache = null;
141
+ _.transformType = null;
142
+ _.transitionType = null;
143
+ _.visibilityChange = 'visibilitychange';
144
+ _.windowWidth = 0;
145
+ _.windowTimer = null;
146
+
147
+ dataSettings = $(element).data('slick') || {};
148
+
149
+ _.options = $.extend({}, _.defaults, settings, dataSettings);
150
+
151
+ _.currentSlide = _.options.initialSlide;
152
+
153
+ _.originalSettings = _.options;
154
+
155
+ if (typeof document.mozHidden !== 'undefined') {
156
+ _.hidden = 'mozHidden';
157
+ _.visibilityChange = 'mozvisibilitychange';
158
+ } else if (typeof document.webkitHidden !== 'undefined') {
159
+ _.hidden = 'webkitHidden';
160
+ _.visibilityChange = 'webkitvisibilitychange';
161
+ }
162
+
163
+ _.autoPlay = $.proxy(_.autoPlay, _);
164
+ _.autoPlayClear = $.proxy(_.autoPlayClear, _);
165
+ _.autoPlayIterator = $.proxy(_.autoPlayIterator, _);
166
+ _.changeSlide = $.proxy(_.changeSlide, _);
167
+ _.clickHandler = $.proxy(_.clickHandler, _);
168
+ _.selectHandler = $.proxy(_.selectHandler, _);
169
+ _.setPosition = $.proxy(_.setPosition, _);
170
+ _.swipeHandler = $.proxy(_.swipeHandler, _);
171
+ _.dragHandler = $.proxy(_.dragHandler, _);
172
+ _.keyHandler = $.proxy(_.keyHandler, _);
173
+
174
+ _.instanceUid = instanceUid++;
175
+
176
+ // A simple way to check for HTML strings
177
+ // Strict HTML recognition (must start with <)
178
+ // Extracted from jQuery v1.11 source
179
+ _.htmlExpr = /^(?:\s*(<[\w\W]+>)[^>]*)$/;
180
+
181
+
182
+ _.registerBreakpoints();
183
+ _.init(true);
184
+
185
+ }
186
+
187
+ return Slick;
188
+
189
+ }());
190
+
191
+ Slick.prototype.activateADA = function() {
192
+ var _ = this;
193
+
194
+ _.$slideTrack.find('.slick-active').attr({
195
+ 'aria-hidden': 'false'
196
+ }).find('a, input, button, select').attr({
197
+ 'tabindex': '0'
198
+ });
199
+
200
+ };
201
+
202
+ Slick.prototype.addSlide = Slick.prototype.slickAdd = function(markup, index, addBefore) {
203
+
204
+ var _ = this;
205
+
206
+ if (typeof(index) === 'boolean') {
207
+ addBefore = index;
208
+ index = null;
209
+ } else if (index < 0 || (index >= _.slideCount)) {
210
+ return false;
211
+ }
212
+
213
+ _.unload();
214
+
215
+ if (typeof(index) === 'number') {
216
+ if (index === 0 && _.$slides.length === 0) {
217
+ $(markup).appendTo(_.$slideTrack);
218
+ } else if (addBefore) {
219
+ $(markup).insertBefore(_.$slides.eq(index));
220
+ } else {
221
+ $(markup).insertAfter(_.$slides.eq(index));
222
+ }
223
+ } else {
224
+ if (addBefore === true) {
225
+ $(markup).prependTo(_.$slideTrack);
226
+ } else {
227
+ $(markup).appendTo(_.$slideTrack);
228
+ }
229
+ }
230
+
231
+ _.$slides = _.$slideTrack.children(this.options.slide);
232
+
233
+ _.$slideTrack.children(this.options.slide).detach();
234
+
235
+ _.$slideTrack.append(_.$slides);
236
+
237
+ _.$slides.each(function(index, element) {
238
+ $(element).attr('data-slick-index', index);
239
+ });
240
+
241
+ _.$slidesCache = _.$slides;
242
+
243
+ _.reinit();
244
+
245
+ };
246
+
247
+ Slick.prototype.animateHeight = function() {
248
+ var _ = this;
249
+ if (_.options.slidesToShow === 1 && _.options.adaptiveHeight === true && _.options.vertical === false) {
250
+ var targetHeight = _.$slides.eq(_.currentSlide).outerHeight(true);
251
+ _.$list.animate({
252
+ height: targetHeight
253
+ }, _.options.speed);
254
+ }
255
+ };
256
+
257
+ Slick.prototype.animateSlide = function(targetLeft, callback) {
258
+
259
+ var animProps = {},
260
+ _ = this;
261
+
262
+ _.animateHeight();
263
+
264
+ if (_.options.rtl === true && _.options.vertical === false) {
265
+ targetLeft = -targetLeft;
266
+ }
267
+ if (_.transformsEnabled === false) {
268
+ if (_.options.vertical === false) {
269
+ _.$slideTrack.animate({
270
+ left: targetLeft
271
+ }, _.options.speed, _.options.easing, callback);
272
+ } else {
273
+ _.$slideTrack.animate({
274
+ top: targetLeft
275
+ }, _.options.speed, _.options.easing, callback);
276
+ }
277
+
278
+ } else {
279
+
280
+ if (_.cssTransitions === false) {
281
+ if (_.options.rtl === true) {
282
+ _.currentLeft = -(_.currentLeft);
283
+ }
284
+ $({
285
+ animStart: _.currentLeft
286
+ }).animate({
287
+ animStart: targetLeft
288
+ }, {
289
+ duration: _.options.speed,
290
+ easing: _.options.easing,
291
+ step: function(now) {
292
+ now = Math.ceil(now);
293
+ if (_.options.vertical === false) {
294
+ animProps[_.animType] = 'translate(' +
295
+ now + 'px, 0px)';
296
+ _.$slideTrack.css(animProps);
297
+ } else {
298
+ animProps[_.animType] = 'translate(0px,' +
299
+ now + 'px)';
300
+ _.$slideTrack.css(animProps);
301
+ }
302
+ },
303
+ complete: function() {
304
+ if (callback) {
305
+ callback.call();
306
+ }
307
+ }
308
+ });
309
+
310
+ } else {
311
+
312
+ _.applyTransition();
313
+ targetLeft = Math.ceil(targetLeft);
314
+
315
+ if (_.options.vertical === false) {
316
+ animProps[_.animType] = 'translate3d(' + targetLeft + 'px, 0px, 0px)';
317
+ } else {
318
+ animProps[_.animType] = 'translate3d(0px,' + targetLeft + 'px, 0px)';
319
+ }
320
+ _.$slideTrack.css(animProps);
321
+
322
+ if (callback) {
323
+ setTimeout(function() {
324
+
325
+ _.disableTransition();
326
+
327
+ callback.call();
328
+ }, _.options.speed);
329
+ }
330
+
331
+ }
332
+
333
+ }
334
+
335
+ };
336
+
337
+ Slick.prototype.getNavTarget = function() {
338
+
339
+ var _ = this,
340
+ asNavFor = _.options.asNavFor;
341
+
342
+ if ( asNavFor && asNavFor !== null ) {
343
+ asNavFor = $(asNavFor).not(_.$slider);
344
+ }
345
+
346
+ return asNavFor;
347
+
348
+ };
349
+
350
+ Slick.prototype.asNavFor = function(index) {
351
+
352
+ var _ = this,
353
+ asNavFor = _.getNavTarget();
354
+
355
+ if ( asNavFor !== null && typeof asNavFor === 'object' ) {
356
+ asNavFor.each(function() {
357
+ var target = $(this).slick('getSlick');
358
+ if(!target.unslicked) {
359
+ target.slideHandler(index, true);
360
+ }
361
+ });
362
+ }
363
+
364
+ };
365
+
366
+ Slick.prototype.applyTransition = function(slide) {
367
+
368
+ var _ = this,
369
+ transition = {};
370
+
371
+ if (_.options.fade === false) {
372
+ transition[_.transitionType] = _.transformType + ' ' + _.options.speed + 'ms ' + _.options.cssEase;
373
+ } else {
374
+ transition[_.transitionType] = 'opacity ' + _.options.speed + 'ms ' + _.options.cssEase;
375
+ }
376
+
377
+ if (_.options.fade === false) {
378
+ _.$slideTrack.css(transition);
379
+ } else {
380
+ _.$slides.eq(slide).css(transition);
381
+ }
382
+
383
+ };
384
+
385
+ Slick.prototype.autoPlay = function() {
386
+
387
+ var _ = this;
388
+
389
+ _.autoPlayClear();
390
+
391
+ if ( _.slideCount > _.options.slidesToShow ) {
392
+ _.autoPlayTimer = setInterval( _.autoPlayIterator, _.options.autoplaySpeed );
393
+ }
394
+
395
+ };
396
+
397
+ Slick.prototype.autoPlayClear = function() {
398
+
399
+ var _ = this;
400
+
401
+ if (_.autoPlayTimer) {
402
+ clearInterval(_.autoPlayTimer);
403
+ }
404
+
405
+ };
406
+
407
+ Slick.prototype.autoPlayIterator = function() {
408
+
409
+ var _ = this,
410
+ slideTo = _.currentSlide + _.options.slidesToScroll;
411
+
412
+ if ( !_.paused && !_.interrupted && !_.focussed ) {
413
+
414
+ if ( _.options.infinite === false ) {
415
+
416
+ if ( _.direction === 1 && ( _.currentSlide + 1 ) === ( _.slideCount - 1 )) {
417
+ _.direction = 0;
418
+ }
419
+
420
+ else if ( _.direction === 0 ) {
421
+
422
+ slideTo = _.currentSlide - _.options.slidesToScroll;
423
+
424
+ if ( _.currentSlide - 1 === 0 ) {
425
+ _.direction = 1;
426
+ }
427
+
428
+ }
429
+
430
+ }
431
+
432
+ _.slideHandler( slideTo );
433
+
434
+ }
435
+
436
+ };
437
+
438
+ Slick.prototype.buildArrows = function() {
439
+
440
+ var _ = this;
441
+
442
+ if (_.options.arrows === true ) {
443
+
444
+ _.$prevArrow = $(_.options.prevArrow).addClass('slick-arrow');
445
+ _.$nextArrow = $(_.options.nextArrow).addClass('slick-arrow');
446
+
447
+ if( _.slideCount > _.options.slidesToShow ) {
448
+
449
+ _.$prevArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');
450
+ _.$nextArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');
451
+
452
+ if (_.htmlExpr.test(_.options.prevArrow)) {
453
+ _.$prevArrow.prependTo(_.options.appendArrows);
454
+ }
455
+
456
+ if (_.htmlExpr.test(_.options.nextArrow)) {
457
+ _.$nextArrow.appendTo(_.options.appendArrows);
458
+ }
459
+
460
+ if (_.options.infinite !== true) {
461
+ _.$prevArrow
462
+ .addClass('slick-disabled')
463
+ .attr('aria-disabled', 'true');
464
+ }
465
+
466
+ } else {
467
+
468
+ _.$prevArrow.add( _.$nextArrow )
469
+
470
+ .addClass('slick-hidden')
471
+ .attr({
472
+ 'aria-disabled': 'true',
473
+ 'tabindex': '-1'
474
+ });
475
+
476
+ }
477
+
478
+ }
479
+
480
+ };
481
+
482
+ Slick.prototype.buildDots = function() {
483
+
484
+ var _ = this,
485
+ i, dot;
486
+
487
+ if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
488
+
489
+ _.$slider.addClass('slick-dotted');
490
+
491
+ dot = $('<ul />').addClass(_.options.dotsClass);
492
+
493
+ for (i = 0; i <= _.getDotCount(); i += 1) {
494
+ dot.append($('<li />').append(_.options.customPaging.call(this, _, i)));
495
+ }
496
+
497
+ _.$dots = dot.appendTo(_.options.appendDots);
498
+
499
+ _.$dots.find('li').first().addClass('slick-active');
500
+
501
+ }
502
+
503
+ };
504
+
505
+ Slick.prototype.buildOut = function() {
506
+
507
+ var _ = this;
508
+
509
+ _.$slides =
510
+ _.$slider
511
+ .children( _.options.slide + ':not(.slick-cloned)')
512
+ .addClass('slick-slide');
513
+
514
+ _.slideCount = _.$slides.length;
515
+
516
+ _.$slides.each(function(index, element) {
517
+ $(element)
518
+ .attr('data-slick-index', index)
519
+ .data('originalStyling', $(element).attr('style') || '');
520
+ });
521
+
522
+ _.$slider.addClass('slick-slider');
523
+
524
+ _.$slideTrack = (_.slideCount === 0) ?
525
+ $('<div class="slick-track"/>').appendTo(_.$slider) :
526
+ _.$slides.wrapAll('<div class="slick-track"/>').parent();
527
+
528
+ _.$list = _.$slideTrack.wrap(
529
+ '<div class="slick-list"/>').parent();
530
+ _.$slideTrack.css('opacity', 0);
531
+
532
+ if (_.options.centerMode === true || _.options.swipeToSlide === true) {
533
+ _.options.slidesToScroll = 1;
534
+ }
535
+
536
+ $('img[data-lazy]', _.$slider).not('[src]').addClass('slick-loading');
537
+
538
+ _.setupInfinite();
539
+
540
+ _.buildArrows();
541
+
542
+ _.buildDots();
543
+
544
+ _.updateDots();
545
+
546
+
547
+ _.setSlideClasses(typeof _.currentSlide === 'number' ? _.currentSlide : 0);
548
+
549
+ if (_.options.draggable === true) {
550
+ _.$list.addClass('draggable');
551
+ }
552
+
553
+ };
554
+
555
+ Slick.prototype.buildRows = function() {
556
+
557
+ var _ = this, a, b, c, newSlides, numOfSlides, originalSlides,slidesPerSection;
558
+
559
+ newSlides = document.createDocumentFragment();
560
+ originalSlides = _.$slider.children();
561
+
562
+ if(_.options.rows > 0) {
563
+
564
+ slidesPerSection = _.options.slidesPerRow * _.options.rows;
565
+ numOfSlides = Math.ceil(
566
+ originalSlides.length / slidesPerSection
567
+ );
568
+
569
+ for(a = 0; a < numOfSlides; a++){
570
+ var slide = document.createElement('div');
571
+ for(b = 0; b < _.options.rows; b++) {
572
+ var row = document.createElement('div');
573
+ for(c = 0; c < _.options.slidesPerRow; c++) {
574
+ var target = (a * slidesPerSection + ((b * _.options.slidesPerRow) + c));
575
+ if (originalSlides.get(target)) {
576
+ row.appendChild(originalSlides.get(target));
577
+ }
578
+ }
579
+ slide.appendChild(row);
580
+ }
581
+ newSlides.appendChild(slide);
582
+ }
583
+
584
+ _.$slider.empty().append(newSlides);
585
+ _.$slider.children().children().children()
586
+ .css({
587
+ 'width':(100 / _.options.slidesPerRow) + '%',
588
+ 'display': 'inline-block'
589
+ });
590
+
591
+ }
592
+
593
+ };
594
+
595
+ Slick.prototype.checkResponsive = function(initial, forceUpdate) {
596
+
597
+ var _ = this,
598
+ breakpoint, targetBreakpoint, respondToWidth, triggerBreakpoint = false;
599
+ var sliderWidth = _.$slider.width();
600
+ var windowWidth = window.innerWidth || $(window).width();
601
+
602
+ if (_.respondTo === 'window') {
603
+ respondToWidth = windowWidth;
604
+ } else if (_.respondTo === 'slider') {
605
+ respondToWidth = sliderWidth;
606
+ } else if (_.respondTo === 'min') {
607
+ respondToWidth = Math.min(windowWidth, sliderWidth);
608
+ }
609
+
610
+ if ( _.options.responsive &&
611
+ _.options.responsive.length &&
612
+ _.options.responsive !== null) {
613
+
614
+ targetBreakpoint = null;
615
+
616
+ for (breakpoint in _.breakpoints) {
617
+ if (_.breakpoints.hasOwnProperty(breakpoint)) {
618
+ if (_.originalSettings.mobileFirst === false) {
619
+ if (respondToWidth < _.breakpoints[breakpoint]) {
620
+ targetBreakpoint = _.breakpoints[breakpoint];
621
+ }
622
+ } else {
623
+ if (respondToWidth > _.breakpoints[breakpoint]) {
624
+ targetBreakpoint = _.breakpoints[breakpoint];
625
+ }
626
+ }
627
+ }
628
+ }
629
+
630
+ if (targetBreakpoint !== null) {
631
+ if (_.activeBreakpoint !== null) {
632
+ if (targetBreakpoint !== _.activeBreakpoint || forceUpdate) {
633
+ _.activeBreakpoint =
634
+ targetBreakpoint;
635
+ if (_.breakpointSettings[targetBreakpoint] === 'unslick') {
636
+ _.unslick(targetBreakpoint);
637
+ } else {
638
+ _.options = $.extend({}, _.originalSettings,
639
+ _.breakpointSettings[
640
+ targetBreakpoint]);
641
+ if (initial === true) {
642
+ _.currentSlide = _.options.initialSlide;
643
+ }
644
+ _.refresh(initial);
645
+ }
646
+ triggerBreakpoint = targetBreakpoint;
647
+ }
648
+ } else {
649
+ _.activeBreakpoint = targetBreakpoint;
650
+ if (_.breakpointSettings[targetBreakpoint] === 'unslick') {
651
+ _.unslick(targetBreakpoint);
652
+ } else {
653
+ _.options = $.extend({}, _.originalSettings,
654
+ _.breakpointSettings[
655
+ targetBreakpoint]);
656
+ if (initial === true) {
657
+ _.currentSlide = _.options.initialSlide;
658
+ }
659
+ _.refresh(initial);
660
+ }
661
+ triggerBreakpoint = targetBreakpoint;
662
+ }
663
+ } else {
664
+ if (_.activeBreakpoint !== null) {
665
+ _.activeBreakpoint = null;
666
+ _.options = _.originalSettings;
667
+ if (initial === true) {
668
+ _.currentSlide = _.options.initialSlide;
669
+ }
670
+ _.refresh(initial);
671
+ triggerBreakpoint = targetBreakpoint;
672
+ }
673
+ }
674
+
675
+ // only trigger breakpoints during an actual break. not on initialize.
676
+ if( !initial && triggerBreakpoint !== false ) {
677
+ _.$slider.trigger('breakpoint', [_, triggerBreakpoint]);
678
+ }
679
+ }
680
+
681
+ };
682
+
683
+ Slick.prototype.changeSlide = function(event, dontAnimate) {
684
+
685
+ var _ = this,
686
+ $target = $(event.currentTarget),
687
+ indexOffset, slideOffset, unevenOffset;
688
+
689
+ // If target is a link, prevent default action.
690
+ if($target.is('a')) {
691
+ event.preventDefault();
692
+ }
693
+
694
+ // If target is not the <li> element (ie: a child), find the <li>.
695
+ if(!$target.is('li')) {
696
+ $target = $target.closest('li');
697
+ }
698
+
699
+ unevenOffset = (_.slideCount % _.options.slidesToScroll !== 0);
700
+ indexOffset = unevenOffset ? 0 : (_.slideCount - _.currentSlide) % _.options.slidesToScroll;
701
+
702
+ switch (event.data.message) {
703
+
704
+ case 'previous':
705
+ slideOffset = indexOffset === 0 ? _.options.slidesToScroll : _.options.slidesToShow - indexOffset;
706
+ if (_.slideCount > _.options.slidesToShow) {
707
+ _.slideHandler(_.currentSlide - slideOffset, false, dontAnimate);
708
+ }
709
+ break;
710
+
711
+ case 'next':
712
+ slideOffset = indexOffset === 0 ? _.options.slidesToScroll : indexOffset;
713
+ if (_.slideCount > _.options.slidesToShow) {
714
+ _.slideHandler(_.currentSlide + slideOffset, false, dontAnimate);
715
+ }
716
+ break;
717
+
718
+ case 'index':
719
+ var index = event.data.index === 0 ? 0 :
720
+ event.data.index || $target.index() * _.options.slidesToScroll;
721
+
722
+ _.slideHandler(_.checkNavigable(index), false, dontAnimate);
723
+ $target.children().trigger('focus');
724
+ break;
725
+
726
+ default:
727
+ return;
728
+ }
729
+
730
+ };
731
+
732
+ Slick.prototype.checkNavigable = function(index) {
733
+
734
+ var _ = this,
735
+ navigables, prevNavigable;
736
+
737
+ navigables = _.getNavigableIndexes();
738
+ prevNavigable = 0;
739
+ if (index > navigables[navigables.length - 1]) {
740
+ index = navigables[navigables.length - 1];
741
+ } else {
742
+ for (var n in navigables) {
743
+ if (index < navigables[n]) {
744
+ index = prevNavigable;
745
+ break;
746
+ }
747
+ prevNavigable = navigables[n];
748
+ }
749
+ }
750
+
751
+ return index;
752
+ };
753
+
754
+ Slick.prototype.cleanUpEvents = function() {
755
+
756
+ var _ = this;
757
+
758
+ if (_.options.dots && _.$dots !== null) {
759
+
760
+ $('li', _.$dots)
761
+ .off('click.slick', _.changeSlide)
762
+ .off('mouseenter.slick', $.proxy(_.interrupt, _, true))
763
+ .off('mouseleave.slick', $.proxy(_.interrupt, _, false));
764
+
765
+ if (_.options.accessibility === true) {
766
+ _.$dots.off('keydown.slick', _.keyHandler);
767
+ }
768
+ }
769
+
770
+ _.$slider.off('focus.slick blur.slick');
771
+
772
+ if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
773
+ _.$prevArrow && _.$prevArrow.off('click.slick', _.changeSlide);
774
+ _.$nextArrow && _.$nextArrow.off('click.slick', _.changeSlide);
775
+
776
+ if (_.options.accessibility === true) {
777
+ _.$prevArrow && _.$prevArrow.off('keydown.slick', _.keyHandler);
778
+ _.$nextArrow && _.$nextArrow.off('keydown.slick', _.keyHandler);
779
+ }
780
+ }
781
+
782
+ _.$list.off('touchstart.slick mousedown.slick', _.swipeHandler);
783
+ _.$list.off('touchmove.slick mousemove.slick', _.swipeHandler);
784
+ _.$list.off('touchend.slick mouseup.slick', _.swipeHandler);
785
+ _.$list.off('touchcancel.slick mouseleave.slick', _.swipeHandler);
786
+
787
+ _.$list.off('click.slick', _.clickHandler);
788
+
789
+ $(document).off(_.visibilityChange, _.visibility);
790
+
791
+ _.cleanUpSlideEvents();
792
+
793
+ if (_.options.accessibility === true) {
794
+ _.$list.off('keydown.slick', _.keyHandler);
795
+ }
796
+
797
+ if (_.options.focusOnSelect === true) {
798
+ $(_.$slideTrack).children().off('click.slick', _.selectHandler);
799
+ }
800
+
801
+ $(window).off('orientationchange.slick.slick-' + _.instanceUid, _.orientationChange);
802
+
803
+ $(window).off('resize.slick.slick-' + _.instanceUid, _.resize);
804
+
805
+ $('[draggable!=true]', _.$slideTrack).off('dragstart', _.preventDefault);
806
+
807
+ $(window).off('load.slick.slick-' + _.instanceUid, _.setPosition);
808
+
809
+ };
810
+
811
+ Slick.prototype.cleanUpSlideEvents = function() {
812
+
813
+ var _ = this;
814
+
815
+ _.$list.off('mouseenter.slick', $.proxy(_.interrupt, _, true));
816
+ _.$list.off('mouseleave.slick', $.proxy(_.interrupt, _, false));
817
+
818
+ };
819
+
820
+ Slick.prototype.cleanUpRows = function() {
821
+
822
+ var _ = this, originalSlides;
823
+
824
+ if(_.options.rows > 0) {
825
+ originalSlides = _.$slides.children().children();
826
+ originalSlides.removeAttr('style');
827
+ _.$slider.empty().append(originalSlides);
828
+ }
829
+
830
+ };
831
+
832
+ Slick.prototype.clickHandler = function(event) {
833
+
834
+ var _ = this;
835
+
836
+ if (_.shouldClick === false) {
837
+ event.stopImmediatePropagation();
838
+ event.stopPropagation();
839
+ event.preventDefault();
840
+ }
841
+
842
+ };
843
+
844
+ Slick.prototype.destroy = function(refresh) {
845
+
846
+ var _ = this;
847
+
848
+ _.autoPlayClear();
849
+
850
+ _.touchObject = {};
851
+
852
+ _.cleanUpEvents();
853
+
854
+ $('.slick-cloned', _.$slider).detach();
855
+
856
+ if (_.$dots) {
857
+ _.$dots.remove();
858
+ }
859
+
860
+ if ( _.$prevArrow && _.$prevArrow.length ) {
861
+
862
+ _.$prevArrow
863
+ .removeClass('slick-disabled slick-arrow slick-hidden')
864
+ .removeAttr('aria-hidden aria-disabled tabindex')
865
+ .css('display','');
866
+
867
+ if ( _.htmlExpr.test( _.options.prevArrow )) {
868
+ _.$prevArrow.remove();
869
+ }
870
+ }
871
+
872
+ if ( _.$nextArrow && _.$nextArrow.length ) {
873
+
874
+ _.$nextArrow
875
+ .removeClass('slick-disabled slick-arrow slick-hidden')
876
+ .removeAttr('aria-hidden aria-disabled tabindex')
877
+ .css('display','');
878
+
879
+ if ( _.htmlExpr.test( _.options.nextArrow )) {
880
+ _.$nextArrow.remove();
881
+ }
882
+ }
883
+
884
+
885
+ if (_.$slides) {
886
+
887
+ _.$slides
888
+ .removeClass('slick-slide slick-active slick-center slick-visible slick-current')
889
+ .removeAttr('aria-hidden')
890
+ .removeAttr('data-slick-index')
891
+ .each(function(){
892
+ $(this).attr('style', $(this).data('originalStyling'));
893
+ });
894
+
895
+ _.$slideTrack.children(this.options.slide).detach();
896
+
897
+ _.$slideTrack.detach();
898
+
899
+ _.$list.detach();
900
+
901
+ _.$slider.append(_.$slides);
902
+ }
903
+
904
+ _.cleanUpRows();
905
+
906
+ _.$slider.removeClass('slick-slider');
907
+ _.$slider.removeClass('slick-initialized');
908
+ _.$slider.removeClass('slick-dotted');
909
+
910
+ _.unslicked = true;
911
+
912
+ if(!refresh) {
913
+ _.$slider.trigger('destroy', [_]);
914
+ }
915
+
916
+ };
917
+
918
+ Slick.prototype.disableTransition = function(slide) {
919
+
920
+ var _ = this,
921
+ transition = {};
922
+
923
+ transition[_.transitionType] = '';
924
+
925
+ if (_.options.fade === false) {
926
+ _.$slideTrack.css(transition);
927
+ } else {
928
+ _.$slides.eq(slide).css(transition);
929
+ }
930
+
931
+ };
932
+
933
+ Slick.prototype.fadeSlide = function(slideIndex, callback) {
934
+
935
+ var _ = this;
936
+
937
+ if (_.cssTransitions === false) {
938
+
939
+ _.$slides.eq(slideIndex).css({
940
+ zIndex: _.options.zIndex
941
+ });
942
+
943
+ _.$slides.eq(slideIndex).animate({
944
+ opacity: 1
945
+ }, _.options.speed, _.options.easing, callback);
946
+
947
+ } else {
948
+
949
+ _.applyTransition(slideIndex);
950
+
951
+ _.$slides.eq(slideIndex).css({
952
+ opacity: 1,
953
+ zIndex: _.options.zIndex
954
+ });
955
+
956
+ if (callback) {
957
+ setTimeout(function() {
958
+
959
+ _.disableTransition(slideIndex);
960
+
961
+ callback.call();
962
+ }, _.options.speed);
963
+ }
964
+
965
+ }
966
+
967
+ };
968
+
969
+ Slick.prototype.fadeSlideOut = function(slideIndex) {
970
+
971
+ var _ = this;
972
+
973
+ if (_.cssTransitions === false) {
974
+
975
+ _.$slides.eq(slideIndex).animate({
976
+ opacity: 0,
977
+ zIndex: _.options.zIndex - 2
978
+ }, _.options.speed, _.options.easing);
979
+
980
+ } else {
981
+
982
+ _.applyTransition(slideIndex);
983
+
984
+ _.$slides.eq(slideIndex).css({
985
+ opacity: 0,
986
+ zIndex: _.options.zIndex - 2
987
+ });
988
+
989
+ }
990
+
991
+ };
992
+
993
+ Slick.prototype.filterSlides = Slick.prototype.slickFilter = function(filter) {
994
+
995
+ var _ = this;
996
+
997
+ if (filter !== null) {
998
+
999
+ _.$slidesCache = _.$slides;
1000
+
1001
+ _.unload();
1002
+
1003
+ _.$slideTrack.children(this.options.slide).detach();
1004
+
1005
+ _.$slidesCache.filter(filter).appendTo(_.$slideTrack);
1006
+
1007
+ _.reinit();
1008
+
1009
+ }
1010
+
1011
+ };
1012
+
1013
+ Slick.prototype.focusHandler = function() {
1014
+
1015
+ var _ = this;
1016
+
1017
+ _.$slider
1018
+ .off('focus.slick blur.slick')
1019
+ .on('focus.slick blur.slick', '*', function(event) {
1020
+
1021
+ event.stopImmediatePropagation();
1022
+ var $sf = $(this);
1023
+
1024
+ setTimeout(function() {
1025
+
1026
+ if( _.options.pauseOnFocus ) {
1027
+ _.focussed = $sf.is(':focus');
1028
+ _.autoPlay();
1029
+ }
1030
+
1031
+ }, 0);
1032
+
1033
+ });
1034
+ };
1035
+
1036
+ Slick.prototype.getCurrent = Slick.prototype.slickCurrentSlide = function() {
1037
+
1038
+ var _ = this;
1039
+ return _.currentSlide;
1040
+
1041
+ };
1042
+
1043
+ Slick.prototype.getDotCount = function() {
1044
+
1045
+ var _ = this;
1046
+
1047
+ var breakPoint = 0;
1048
+ var counter = 0;
1049
+ var pagerQty = 0;
1050
+
1051
+ if (_.options.infinite === true) {
1052
+ if (_.slideCount <= _.options.slidesToShow) {
1053
+ ++pagerQty;
1054
+ } else {
1055
+ while (breakPoint < _.slideCount) {
1056
+ ++pagerQty;
1057
+ breakPoint = counter + _.options.slidesToScroll;
1058
+ counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;
1059
+ }
1060
+ }
1061
+ } else if (_.options.centerMode === true) {
1062
+ pagerQty = _.slideCount;
1063
+ } else if(!_.options.asNavFor) {
1064
+ pagerQty = 1 + Math.ceil((_.slideCount - _.options.slidesToShow) / _.options.slidesToScroll);
1065
+ }else {
1066
+ while (breakPoint < _.slideCount) {
1067
+ ++pagerQty;
1068
+ breakPoint = counter + _.options.slidesToScroll;
1069
+ counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;
1070
+ }
1071
+ }
1072
+
1073
+ return pagerQty - 1;
1074
+
1075
+ };
1076
+
1077
+ Slick.prototype.getLeft = function(slideIndex) {
1078
+
1079
+ var _ = this,
1080
+ targetLeft,
1081
+ verticalHeight,
1082
+ verticalOffset = 0,
1083
+ targetSlide,
1084
+ coef;
1085
+
1086
+ _.slideOffset = 0;
1087
+ verticalHeight = _.$slides.first().outerHeight(true);
1088
+
1089
+ if (_.options.infinite === true) {
1090
+ if (_.slideCount > _.options.slidesToShow) {
1091
+ _.slideOffset = (_.slideWidth * _.options.slidesToShow) * -1;
1092
+ coef = -1
1093
+
1094
+ if (_.options.vertical === true && _.options.centerMode === true) {
1095
+ if (_.options.slidesToShow === 2) {
1096
+ coef = -1.5;
1097
+ } else if (_.options.slidesToShow === 1) {
1098
+ coef = -2
1099
+ }
1100
+ }
1101
+ verticalOffset = (verticalHeight * _.options.slidesToShow) * coef;
1102
+ }
1103
+ if (_.slideCount % _.options.slidesToScroll !== 0) {
1104
+ if (slideIndex + _.options.slidesToScroll > _.slideCount && _.slideCount > _.options.slidesToShow) {
1105
+ if (slideIndex > _.slideCount) {
1106
+ _.slideOffset = ((_.options.slidesToShow - (slideIndex - _.slideCount)) * _.slideWidth) * -1;
1107
+ verticalOffset = ((_.options.slidesToShow - (slideIndex - _.slideCount)) * verticalHeight) * -1;
1108
+ } else {
1109
+ _.slideOffset = ((_.slideCount % _.options.slidesToScroll) * _.slideWidth) * -1;
1110
+ verticalOffset = ((_.slideCount % _.options.slidesToScroll) * verticalHeight) * -1;
1111
+ }
1112
+ }
1113
+ }
1114
+ } else {
1115
+ if (slideIndex + _.options.slidesToShow > _.slideCount) {
1116
+ _.slideOffset = ((slideIndex + _.options.slidesToShow) - _.slideCount) * _.slideWidth;
1117
+ verticalOffset = ((slideIndex + _.options.slidesToShow) - _.slideCount) * verticalHeight;
1118
+ }
1119
+ }
1120
+
1121
+ if (_.slideCount <= _.options.slidesToShow) {
1122
+ _.slideOffset = 0;
1123
+ verticalOffset = 0;
1124
+ }
1125
+
1126
+ if (_.options.centerMode === true && _.slideCount <= _.options.slidesToShow) {
1127
+ _.slideOffset = ((_.slideWidth * Math.floor(_.options.slidesToShow)) / 2) - ((_.slideWidth * _.slideCount) / 2);
1128
+ } else if (_.options.centerMode === true && _.options.infinite === true) {
1129
+ _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2) - _.slideWidth;
1130
+ } else if (_.options.centerMode === true) {
1131
+ _.slideOffset = 0;
1132
+ _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2);
1133
+ }
1134
+
1135
+ if (_.options.vertical === false) {
1136
+ targetLeft = ((slideIndex * _.slideWidth) * -1) + _.slideOffset;
1137
+ } else {
1138
+ targetLeft = ((slideIndex * verticalHeight) * -1) + verticalOffset;
1139
+ }
1140
+
1141
+ if (_.options.variableWidth === true) {
1142
+
1143
+ if (_.slideCount <= _.options.slidesToShow || _.options.infinite === false) {
1144
+ targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex);
1145
+ } else {
1146
+ targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex + _.options.slidesToShow);
1147
+ }
1148
+
1149
+ if (_.options.rtl === true) {
1150
+ if (targetSlide[0]) {
1151
+ targetLeft = (_.$slideTrack.width() - targetSlide[0].offsetLeft - targetSlide.width()) * -1;
1152
+ } else {
1153
+ targetLeft = 0;
1154
+ }
1155
+ } else {
1156
+ targetLeft = targetSlide[0] ? targetSlide[0].offsetLeft * -1 : 0;
1157
+ }
1158
+
1159
+ if (_.options.centerMode === true) {
1160
+ if (_.slideCount <= _.options.slidesToShow || _.options.infinite === false) {
1161
+ targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex);
1162
+ } else {
1163
+ targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex + _.options.slidesToShow + 1);
1164
+ }
1165
+
1166
+ if (_.options.rtl === true) {
1167
+ if (targetSlide[0]) {
1168
+ targetLeft = (_.$slideTrack.width() - targetSlide[0].offsetLeft - targetSlide.width()) * -1;
1169
+ } else {
1170
+ targetLeft = 0;
1171
+ }
1172
+ } else {
1173
+ targetLeft = targetSlide[0] ? targetSlide[0].offsetLeft * -1 : 0;
1174
+ }
1175
+
1176
+ targetLeft += (_.$list.width() - targetSlide.outerWidth()) / 2;
1177
+ }
1178
+ }
1179
+
1180
+ return targetLeft;
1181
+
1182
+ };
1183
+
1184
+ Slick.prototype.getOption = Slick.prototype.slickGetOption = function(option) {
1185
+
1186
+ var _ = this;
1187
+
1188
+ return _.options[option];
1189
+
1190
+ };
1191
+
1192
+ Slick.prototype.getNavigableIndexes = function() {
1193
+
1194
+ var _ = this,
1195
+ breakPoint = 0,
1196
+ counter = 0,
1197
+ indexes = [],
1198
+ max;
1199
+
1200
+ if (_.options.infinite === false) {
1201
+ max = _.slideCount;
1202
+ } else {
1203
+ breakPoint = _.options.slidesToScroll * -1;
1204
+ counter = _.options.slidesToScroll * -1;
1205
+ max = _.slideCount * 2;
1206
+ }
1207
+
1208
+ while (breakPoint < max) {
1209
+ indexes.push(breakPoint);
1210
+ breakPoint = counter + _.options.slidesToScroll;
1211
+ counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;
1212
+ }
1213
+
1214
+ return indexes;
1215
+
1216
+ };
1217
+
1218
+ Slick.prototype.getSlick = function() {
1219
+
1220
+ return this;
1221
+
1222
+ };
1223
+
1224
+ Slick.prototype.getSlideCount = function() {
1225
+
1226
+ var _ = this,
1227
+ slidesTraversed, swipedSlide, centerOffset;
1228
+
1229
+ centerOffset = _.options.centerMode === true ? _.slideWidth * Math.floor(_.options.slidesToShow / 2) : 0;
1230
+
1231
+ if (_.options.swipeToSlide === true) {
1232
+ _.$slideTrack.find('.slick-slide').each(function(index, slide) {
1233
+ if (slide.offsetLeft - centerOffset + ($(slide).outerWidth() / 2) > (_.swipeLeft * -1)) {
1234
+ swipedSlide = slide;
1235
+ return false;
1236
+ }
1237
+ });
1238
+
1239
+ slidesTraversed = Math.abs($(swipedSlide).attr('data-slick-index') - _.currentSlide) || 1;
1240
+
1241
+ return slidesTraversed;
1242
+
1243
+ } else {
1244
+ return _.options.slidesToScroll;
1245
+ }
1246
+
1247
+ };
1248
+
1249
+ Slick.prototype.goTo = Slick.prototype.slickGoTo = function(slide, dontAnimate) {
1250
+
1251
+ var _ = this;
1252
+
1253
+ _.changeSlide({
1254
+ data: {
1255
+ message: 'index',
1256
+ index: parseInt(slide)
1257
+ }
1258
+ }, dontAnimate);
1259
+
1260
+ };
1261
+
1262
+ Slick.prototype.init = function(creation) {
1263
+
1264
+ var _ = this;
1265
+
1266
+ if (!$(_.$slider).hasClass('slick-initialized')) {
1267
+
1268
+ $(_.$slider).addClass('slick-initialized');
1269
+
1270
+ _.buildRows();
1271
+ _.buildOut();
1272
+ _.setProps();
1273
+ _.startLoad();
1274
+ _.loadSlider();
1275
+ _.initializeEvents();
1276
+ _.updateArrows();
1277
+ _.updateDots();
1278
+ _.checkResponsive(true);
1279
+ _.focusHandler();
1280
+
1281
+ }
1282
+
1283
+ if (creation) {
1284
+ _.$slider.trigger('init', [_]);
1285
+ }
1286
+
1287
+ if (_.options.accessibility === true) {
1288
+ _.initADA();
1289
+ }
1290
+
1291
+ if ( _.options.autoplay ) {
1292
+
1293
+ _.paused = false;
1294
+ _.autoPlay();
1295
+
1296
+ }
1297
+
1298
+ };
1299
+
1300
+ Slick.prototype.initADA = function() {
1301
+ var _ = this,
1302
+ numDotGroups = Math.ceil(_.slideCount / _.options.slidesToShow),
1303
+ tabControlIndexes = _.getNavigableIndexes().filter(function(val) {
1304
+ return (val >= 0) && (val < _.slideCount);
1305
+ });
1306
+
1307
+ _.$slides.add(_.$slideTrack.find('.slick-cloned')).attr({
1308
+ 'aria-hidden': 'true',
1309
+ 'tabindex': '-1'
1310
+ }).find('a, input, button, select').attr({
1311
+ 'tabindex': '-1'
1312
+ });
1313
+
1314
+ if (_.$dots !== null) {
1315
+ _.$slides.not(_.$slideTrack.find('.slick-cloned')).each(function(i) {
1316
+ var slideControlIndex = tabControlIndexes.indexOf(i);
1317
+
1318
+ $(this).attr({
1319
+ 'role': 'tabpanel',
1320
+ 'id': 'slick-slide' + _.instanceUid + i,
1321
+ 'tabindex': -1
1322
+ });
1323
+
1324
+ if (slideControlIndex !== -1) {
1325
+ var ariaButtonControl = 'slick-slide-control' + _.instanceUid + slideControlIndex
1326
+ if ($('#' + ariaButtonControl).length) {
1327
+ $(this).attr({
1328
+ 'aria-describedby': ariaButtonControl
1329
+ });
1330
+ }
1331
+ }
1332
+ });
1333
+
1334
+ _.$dots.attr('role', 'tablist').find('li').each(function(i) {
1335
+ var mappedSlideIndex = tabControlIndexes[i];
1336
+
1337
+ $(this).attr({
1338
+ 'role': 'presentation'
1339
+ });
1340
+
1341
+ $(this).find('button').first().attr({
1342
+ 'role': 'tab',
1343
+ 'id': 'slick-slide-control' + _.instanceUid + i,
1344
+ 'aria-controls': 'slick-slide' + _.instanceUid + mappedSlideIndex,
1345
+ 'aria-label': (i + 1) + ' of ' + numDotGroups,
1346
+ 'aria-selected': null,
1347
+ 'tabindex': '-1'
1348
+ });
1349
+
1350
+ }).eq(_.currentSlide).find('button').attr({
1351
+ 'aria-selected': 'true',
1352
+ 'tabindex': '0'
1353
+ }).end();
1354
+ }
1355
+
1356
+ for (var i=_.currentSlide, max=i+_.options.slidesToShow; i < max; i++) {
1357
+ if (_.options.focusOnChange) {
1358
+ _.$slides.eq(i).attr({'tabindex': '0'});
1359
+ } else {
1360
+ _.$slides.eq(i).removeAttr('tabindex');
1361
+ }
1362
+ }
1363
+
1364
+ _.activateADA();
1365
+
1366
+ };
1367
+
1368
+ Slick.prototype.initArrowEvents = function() {
1369
+
1370
+ var _ = this;
1371
+
1372
+ if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
1373
+ _.$prevArrow
1374
+ .off('click.slick')
1375
+ .on('click.slick', {
1376
+ message: 'previous'
1377
+ }, _.changeSlide);
1378
+ _.$nextArrow
1379
+ .off('click.slick')
1380
+ .on('click.slick', {
1381
+ message: 'next'
1382
+ }, _.changeSlide);
1383
+
1384
+ if (_.options.accessibility === true) {
1385
+ _.$prevArrow.on('keydown.slick', _.keyHandler);
1386
+ _.$nextArrow.on('keydown.slick', _.keyHandler);
1387
+ }
1388
+ }
1389
+
1390
+ };
1391
+
1392
+ Slick.prototype.initDotEvents = function() {
1393
+
1394
+ var _ = this;
1395
+
1396
+ if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
1397
+ $('li', _.$dots).on('click.slick', {
1398
+ message: 'index'
1399
+ }, _.changeSlide);
1400
+
1401
+ if (_.options.accessibility === true) {
1402
+ _.$dots.on('keydown.slick', _.keyHandler);
1403
+ }
1404
+ }
1405
+
1406
+ if (_.options.dots === true && _.options.pauseOnDotsHover === true && _.slideCount > _.options.slidesToShow) {
1407
+
1408
+ $('li', _.$dots)
1409
+ .on('mouseenter.slick', $.proxy(_.interrupt, _, true))
1410
+ .on('mouseleave.slick', $.proxy(_.interrupt, _, false));
1411
+
1412
+ }
1413
+
1414
+ };
1415
+
1416
+ Slick.prototype.initSlideEvents = function() {
1417
+
1418
+ var _ = this;
1419
+
1420
+ if ( _.options.pauseOnHover ) {
1421
+
1422
+ _.$list.on('mouseenter.slick', $.proxy(_.interrupt, _, true));
1423
+ _.$list.on('mouseleave.slick', $.proxy(_.interrupt, _, false));
1424
+
1425
+ }
1426
+
1427
+ };
1428
+
1429
+ Slick.prototype.initializeEvents = function() {
1430
+
1431
+ var _ = this;
1432
+
1433
+ _.initArrowEvents();
1434
+
1435
+ _.initDotEvents();
1436
+ _.initSlideEvents();
1437
+
1438
+ _.$list.on('touchstart.slick mousedown.slick', {
1439
+ action: 'start'
1440
+ }, _.swipeHandler);
1441
+ _.$list.on('touchmove.slick mousemove.slick', {
1442
+ action: 'move'
1443
+ }, _.swipeHandler);
1444
+ _.$list.on('touchend.slick mouseup.slick', {
1445
+ action: 'end'
1446
+ }, _.swipeHandler);
1447
+ _.$list.on('touchcancel.slick mouseleave.slick', {
1448
+ action: 'end'
1449
+ }, _.swipeHandler);
1450
+
1451
+ _.$list.on('click.slick', _.clickHandler);
1452
+
1453
+ $(document).on(_.visibilityChange, $.proxy(_.visibility, _));
1454
+
1455
+ if (_.options.accessibility === true) {
1456
+ _.$list.on('keydown.slick', _.keyHandler);
1457
+ }
1458
+
1459
+ if (_.options.focusOnSelect === true) {
1460
+ $(_.$slideTrack).children().on('click.slick', _.selectHandler);
1461
+ }
1462
+
1463
+ $(window).on('orientationchange.slick.slick-' + _.instanceUid, $.proxy(_.orientationChange, _));
1464
+
1465
+ $(window).on('resize.slick.slick-' + _.instanceUid, $.proxy(_.resize, _));
1466
+
1467
+ $('[draggable!=true]', _.$slideTrack).on('dragstart', _.preventDefault);
1468
+
1469
+ $(window).on('load.slick.slick-' + _.instanceUid, _.setPosition);
1470
+ $(_.setPosition);
1471
+
1472
+ };
1473
+
1474
+ Slick.prototype.initUI = function() {
1475
+
1476
+ var _ = this;
1477
+
1478
+ if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
1479
+
1480
+ _.$prevArrow.show();
1481
+ _.$nextArrow.show();
1482
+
1483
+ }
1484
+
1485
+ if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
1486
+
1487
+ _.$dots.show();
1488
+
1489
+ }
1490
+
1491
+ };
1492
+
1493
+ Slick.prototype.keyHandler = function(event) {
1494
+
1495
+ var _ = this;
1496
+ //Dont slide if the cursor is inside the form fields and arrow keys are pressed
1497
+ if(!event.target.tagName.match('TEXTAREA|INPUT|SELECT')) {
1498
+ if (event.keyCode === 37 && _.options.accessibility === true) {
1499
+ _.changeSlide({
1500
+ data: {
1501
+ message: _.options.rtl === true ? 'next' : 'previous'
1502
+ }
1503
+ });
1504
+ } else if (event.keyCode === 39 && _.options.accessibility === true) {
1505
+ _.changeSlide({
1506
+ data: {
1507
+ message: _.options.rtl === true ? 'previous' : 'next'
1508
+ }
1509
+ });
1510
+ }
1511
+ }
1512
+
1513
+ };
1514
+
1515
+ Slick.prototype.lazyLoad = function() {
1516
+
1517
+ var _ = this,
1518
+ loadRange, cloneRange, rangeStart, rangeEnd;
1519
+
1520
+ function loadImages(imagesScope) {
1521
+
1522
+ $('img[data-lazy]', imagesScope).each(function() {
1523
+
1524
+ var image = $(this),
1525
+ imageSource = $(this).attr('data-lazy'),
1526
+ imageSrcSet = $(this).attr('data-srcset'),
1527
+ imageSizes = $(this).attr('data-sizes') || _.$slider.attr('data-sizes'),
1528
+ imageToLoad = document.createElement('img');
1529
+
1530
+ imageToLoad.onload = function() {
1531
+
1532
+ image
1533
+ .animate({ opacity: 0 }, 100, function() {
1534
+
1535
+ if (imageSrcSet) {
1536
+ image
1537
+ .attr('srcset', imageSrcSet );
1538
+
1539
+ if (imageSizes) {
1540
+ image
1541
+ .attr('sizes', imageSizes );
1542
+ }
1543
+ }
1544
+
1545
+ image
1546
+ .attr('src', imageSource)
1547
+ .animate({ opacity: 1 }, 200, function() {
1548
+ image
1549
+ .removeAttr('data-lazy data-srcset data-sizes')
1550
+ .removeClass('slick-loading');
1551
+ });
1552
+ _.$slider.trigger('lazyLoaded', [_, image, imageSource]);
1553
+ });
1554
+
1555
+ };
1556
+
1557
+ imageToLoad.onerror = function() {
1558
+
1559
+ image
1560
+ .removeAttr( 'data-lazy' )
1561
+ .removeClass( 'slick-loading' )
1562
+ .addClass( 'slick-lazyload-error' );
1563
+
1564
+ _.$slider.trigger('lazyLoadError', [ _, image, imageSource ]);
1565
+
1566
+ };
1567
+
1568
+ imageToLoad.src = imageSource;
1569
+
1570
+ });
1571
+
1572
+ }
1573
+
1574
+ if (_.options.centerMode === true) {
1575
+ if (_.options.infinite === true) {
1576
+ rangeStart = _.currentSlide + (_.options.slidesToShow / 2 + 1);
1577
+ rangeEnd = rangeStart + _.options.slidesToShow + 2;
1578
+ } else {
1579
+ rangeStart = Math.max(0, _.currentSlide - (_.options.slidesToShow / 2 + 1));
1580
+ rangeEnd = 2 + (_.options.slidesToShow / 2 + 1) + _.currentSlide;
1581
+ }
1582
+ } else {
1583
+ rangeStart = _.options.infinite ? _.options.slidesToShow + _.currentSlide : _.currentSlide;
1584
+ rangeEnd = Math.ceil(rangeStart + _.options.slidesToShow);
1585
+ if (_.options.fade === true) {
1586
+ if (rangeStart > 0) rangeStart--;
1587
+ if (rangeEnd <= _.slideCount) rangeEnd++;
1588
+ }
1589
+ }
1590
+
1591
+ loadRange = _.$slider.find('.slick-slide').slice(rangeStart, rangeEnd);
1592
+
1593
+ if (_.options.lazyLoad === 'anticipated') {
1594
+ var prevSlide = rangeStart - 1,
1595
+ nextSlide = rangeEnd,
1596
+ $slides = _.$slider.find('.slick-slide');
1597
+
1598
+ for (var i = 0; i < _.options.slidesToScroll; i++) {
1599
+ if (prevSlide < 0) prevSlide = _.slideCount - 1;
1600
+ loadRange = loadRange.add($slides.eq(prevSlide));
1601
+ loadRange = loadRange.add($slides.eq(nextSlide));
1602
+ prevSlide--;
1603
+ nextSlide++;
1604
+ }
1605
+ }
1606
+
1607
+ loadImages(loadRange);
1608
+
1609
+ if (_.slideCount <= _.options.slidesToShow) {
1610
+ cloneRange = _.$slider.find('.slick-slide');
1611
+ loadImages(cloneRange);
1612
+ } else
1613
+ if (_.currentSlide >= _.slideCount - _.options.slidesToShow) {
1614
+ cloneRange = _.$slider.find('.slick-cloned').slice(0, _.options.slidesToShow);
1615
+ loadImages(cloneRange);
1616
+ } else if (_.currentSlide === 0) {
1617
+ cloneRange = _.$slider.find('.slick-cloned').slice(_.options.slidesToShow * -1);
1618
+ loadImages(cloneRange);
1619
+ }
1620
+
1621
+ };
1622
+
1623
+ Slick.prototype.loadSlider = function() {
1624
+
1625
+ var _ = this;
1626
+
1627
+ _.setPosition();
1628
+
1629
+ _.$slideTrack.css({
1630
+ opacity: 1
1631
+ });
1632
+
1633
+ _.$slider.removeClass('slick-loading');
1634
+
1635
+ _.initUI();
1636
+
1637
+ if (_.options.lazyLoad === 'progressive') {
1638
+ _.progressiveLazyLoad();
1639
+ }
1640
+
1641
+ };
1642
+
1643
+ Slick.prototype.next = Slick.prototype.slickNext = function() {
1644
+
1645
+ var _ = this;
1646
+
1647
+ _.changeSlide({
1648
+ data: {
1649
+ message: 'next'
1650
+ }
1651
+ });
1652
+
1653
+ };
1654
+
1655
+ Slick.prototype.orientationChange = function() {
1656
+
1657
+ var _ = this;
1658
+
1659
+ _.checkResponsive();
1660
+ _.setPosition();
1661
+
1662
+ };
1663
+
1664
+ Slick.prototype.pause = Slick.prototype.slickPause = function() {
1665
+
1666
+ var _ = this;
1667
+
1668
+ _.autoPlayClear();
1669
+ _.paused = true;
1670
+
1671
+ };
1672
+
1673
+ Slick.prototype.play = Slick.prototype.slickPlay = function() {
1674
+
1675
+ var _ = this;
1676
+
1677
+ _.autoPlay();
1678
+ _.options.autoplay = true;
1679
+ _.paused = false;
1680
+ _.focussed = false;
1681
+ _.interrupted = false;
1682
+
1683
+ };
1684
+
1685
+ Slick.prototype.postSlide = function(index) {
1686
+
1687
+ var _ = this;
1688
+
1689
+ if( !_.unslicked ) {
1690
+
1691
+ _.$slider.trigger('afterChange', [_, index]);
1692
+
1693
+ _.animating = false;
1694
+
1695
+ if (_.slideCount > _.options.slidesToShow) {
1696
+ _.setPosition();
1697
+ }
1698
+
1699
+ _.swipeLeft = null;
1700
+
1701
+ if ( _.options.autoplay ) {
1702
+ _.autoPlay();
1703
+ }
1704
+
1705
+ if (_.options.accessibility === true) {
1706
+ _.initADA();
1707
+
1708
+ if (_.options.focusOnChange) {
1709
+ var $currentSlide = $(_.$slides.get(_.currentSlide));
1710
+ $currentSlide.attr('tabindex', 0).focus();
1711
+ }
1712
+ }
1713
+
1714
+ }
1715
+
1716
+ };
1717
+
1718
+ Slick.prototype.prev = Slick.prototype.slickPrev = function() {
1719
+
1720
+ var _ = this;
1721
+
1722
+ _.changeSlide({
1723
+ data: {
1724
+ message: 'previous'
1725
+ }
1726
+ });
1727
+
1728
+ };
1729
+
1730
+ Slick.prototype.preventDefault = function(event) {
1731
+
1732
+ event.preventDefault();
1733
+
1734
+ };
1735
+
1736
+ Slick.prototype.progressiveLazyLoad = function( tryCount ) {
1737
+
1738
+ tryCount = tryCount || 1;
1739
+
1740
+ var _ = this,
1741
+ $imgsToLoad = $( 'img[data-lazy]', _.$slider ),
1742
+ image,
1743
+ imageSource,
1744
+ imageSrcSet,
1745
+ imageSizes,
1746
+ imageToLoad;
1747
+
1748
+ if ( $imgsToLoad.length ) {
1749
+
1750
+ image = $imgsToLoad.first();
1751
+ imageSource = image.attr('data-lazy');
1752
+ imageSrcSet = image.attr('data-srcset');
1753
+ imageSizes = image.attr('data-sizes') || _.$slider.attr('data-sizes');
1754
+ imageToLoad = document.createElement('img');
1755
+
1756
+ imageToLoad.onload = function() {
1757
+
1758
+ if (imageSrcSet) {
1759
+ image
1760
+ .attr('srcset', imageSrcSet );
1761
+
1762
+ if (imageSizes) {
1763
+ image
1764
+ .attr('sizes', imageSizes );
1765
+ }
1766
+ }
1767
+
1768
+ image
1769
+ .attr( 'src', imageSource )
1770
+ .removeAttr('data-lazy data-srcset data-sizes')
1771
+ .removeClass('slick-loading');
1772
+
1773
+ if ( _.options.adaptiveHeight === true ) {
1774
+ _.setPosition();
1775
+ }
1776
+
1777
+ _.$slider.trigger('lazyLoaded', [ _, image, imageSource ]);
1778
+ _.progressiveLazyLoad();
1779
+
1780
+ };
1781
+
1782
+ imageToLoad.onerror = function() {
1783
+
1784
+ if ( tryCount < 3 ) {
1785
+
1786
+ /**
1787
+ * try to load the image 3 times,
1788
+ * leave a slight delay so we don't get
1789
+ * servers blocking the request.
1790
+ */
1791
+ setTimeout( function() {
1792
+ _.progressiveLazyLoad( tryCount + 1 );
1793
+ }, 500 );
1794
+
1795
+ } else {
1796
+
1797
+ image
1798
+ .removeAttr( 'data-lazy' )
1799
+ .removeClass( 'slick-loading' )
1800
+ .addClass( 'slick-lazyload-error' );
1801
+
1802
+ _.$slider.trigger('lazyLoadError', [ _, image, imageSource ]);
1803
+
1804
+ _.progressiveLazyLoad();
1805
+
1806
+ }
1807
+
1808
+ };
1809
+
1810
+ imageToLoad.src = imageSource;
1811
+
1812
+ } else {
1813
+
1814
+ _.$slider.trigger('allImagesLoaded', [ _ ]);
1815
+
1816
+ }
1817
+
1818
+ };
1819
+
1820
+ Slick.prototype.refresh = function( initializing ) {
1821
+
1822
+ var _ = this, currentSlide, lastVisibleIndex;
1823
+
1824
+ lastVisibleIndex = _.slideCount - _.options.slidesToShow;
1825
+
1826
+ // in non-infinite sliders, we don't want to go past the
1827
+ // last visible index.
1828
+ if( !_.options.infinite && ( _.currentSlide > lastVisibleIndex )) {
1829
+ _.currentSlide = lastVisibleIndex;
1830
+ }
1831
+
1832
+ // if less slides than to show, go to start.
1833
+ if ( _.slideCount <= _.options.slidesToShow ) {
1834
+ _.currentSlide = 0;
1835
+
1836
+ }
1837
+
1838
+ currentSlide = _.currentSlide;
1839
+
1840
+ _.destroy(true);
1841
+
1842
+ $.extend(_, _.initials, { currentSlide: currentSlide });
1843
+
1844
+ _.init();
1845
+
1846
+ if( !initializing ) {
1847
+
1848
+ _.changeSlide({
1849
+ data: {
1850
+ message: 'index',
1851
+ index: currentSlide
1852
+ }
1853
+ }, false);
1854
+
1855
+ }
1856
+
1857
+ };
1858
+
1859
+ Slick.prototype.registerBreakpoints = function() {
1860
+
1861
+ var _ = this, breakpoint, currentBreakpoint, l,
1862
+ responsiveSettings = _.options.responsive || null;
1863
+
1864
+ if ( $.type(responsiveSettings) === 'array' && responsiveSettings.length ) {
1865
+
1866
+ _.respondTo = _.options.respondTo || 'window';
1867
+
1868
+ for ( breakpoint in responsiveSettings ) {
1869
+
1870
+ l = _.breakpoints.length-1;
1871
+
1872
+ if (responsiveSettings.hasOwnProperty(breakpoint)) {
1873
+ currentBreakpoint = responsiveSettings[breakpoint].breakpoint;
1874
+
1875
+ // loop through the breakpoints and cut out any existing
1876
+ // ones with the same breakpoint number, we don't want dupes.
1877
+ while( l >= 0 ) {
1878
+ if( _.breakpoints[l] && _.breakpoints[l] === currentBreakpoint ) {
1879
+ _.breakpoints.splice(l,1);
1880
+ }
1881
+ l--;
1882
+ }
1883
+
1884
+ _.breakpoints.push(currentBreakpoint);
1885
+ _.breakpointSettings[currentBreakpoint] = responsiveSettings[breakpoint].settings;
1886
+
1887
+ }
1888
+
1889
+ }
1890
+
1891
+ _.breakpoints.sort(function(a, b) {
1892
+ return ( _.options.mobileFirst ) ? a-b : b-a;
1893
+ });
1894
+
1895
+ }
1896
+
1897
+ };
1898
+
1899
+ Slick.prototype.reinit = function() {
1900
+
1901
+ var _ = this;
1902
+
1903
+ _.$slides =
1904
+ _.$slideTrack
1905
+ .children(_.options.slide)
1906
+ .addClass('slick-slide');
1907
+
1908
+ _.slideCount = _.$slides.length;
1909
+
1910
+ if (_.currentSlide >= _.slideCount && _.currentSlide !== 0) {
1911
+ _.currentSlide = _.currentSlide - _.options.slidesToScroll;
1912
+ }
1913
+
1914
+ if (_.slideCount <= _.options.slidesToShow) {
1915
+ _.currentSlide = 0;
1916
+ }
1917
+
1918
+ _.registerBreakpoints();
1919
+
1920
+ _.setProps();
1921
+ _.setupInfinite();
1922
+ _.buildArrows();
1923
+ _.updateArrows();
1924
+ _.initArrowEvents();
1925
+ _.buildDots();
1926
+ _.updateDots();
1927
+ _.initDotEvents();
1928
+ _.cleanUpSlideEvents();
1929
+ _.initSlideEvents();
1930
+
1931
+ _.checkResponsive(false, true);
1932
+
1933
+ if (_.options.focusOnSelect === true) {
1934
+ $(_.$slideTrack).children().on('click.slick', _.selectHandler);
1935
+ }
1936
+
1937
+ _.setSlideClasses(typeof _.currentSlide === 'number' ? _.currentSlide : 0);
1938
+
1939
+ _.setPosition();
1940
+ _.focusHandler();
1941
+
1942
+ _.paused = !_.options.autoplay;
1943
+ _.autoPlay();
1944
+
1945
+ _.$slider.trigger('reInit', [_]);
1946
+
1947
+ };
1948
+
1949
+ Slick.prototype.resize = function() {
1950
+
1951
+ var _ = this;
1952
+
1953
+ if ($(window).width() !== _.windowWidth) {
1954
+ clearTimeout(_.windowDelay);
1955
+ _.windowDelay = window.setTimeout(function() {
1956
+ _.windowWidth = $(window).width();
1957
+ _.checkResponsive();
1958
+ if( !_.unslicked ) { _.setPosition(); }
1959
+ }, 50);
1960
+ }
1961
+ };
1962
+
1963
+ Slick.prototype.removeSlide = Slick.prototype.slickRemove = function(index, removeBefore, removeAll) {
1964
+
1965
+ var _ = this;
1966
+
1967
+ if (typeof(index) === 'boolean') {
1968
+ removeBefore = index;
1969
+ index = removeBefore === true ? 0 : _.slideCount - 1;
1970
+ } else {
1971
+ index = removeBefore === true ? --index : index;
1972
+ }
1973
+
1974
+ if (_.slideCount < 1 || index < 0 || index > _.slideCount - 1) {
1975
+ return false;
1976
+ }
1977
+
1978
+ _.unload();
1979
+
1980
+ if (removeAll === true) {
1981
+ _.$slideTrack.children().remove();
1982
+ } else {
1983
+ _.$slideTrack.children(this.options.slide).eq(index).remove();
1984
+ }
1985
+
1986
+ _.$slides = _.$slideTrack.children(this.options.slide);
1987
+
1988
+ _.$slideTrack.children(this.options.slide).detach();
1989
+
1990
+ _.$slideTrack.append(_.$slides);
1991
+
1992
+ _.$slidesCache = _.$slides;
1993
+
1994
+ _.reinit();
1995
+
1996
+ };
1997
+
1998
+ Slick.prototype.setCSS = function(position) {
1999
+
2000
+ var _ = this,
2001
+ positionProps = {},
2002
+ x, y;
2003
+
2004
+ if (_.options.rtl === true) {
2005
+ position = -position;
2006
+ }
2007
+ x = _.positionProp == 'left' ? Math.ceil(position) + 'px' : '0px';
2008
+ y = _.positionProp == 'top' ? Math.ceil(position) + 'px' : '0px';
2009
+
2010
+ positionProps[_.positionProp] = position;
2011
+
2012
+ if (_.transformsEnabled === false) {
2013
+ _.$slideTrack.css(positionProps);
2014
+ } else {
2015
+ positionProps = {};
2016
+ if (_.cssTransitions === false) {
2017
+ positionProps[_.animType] = 'translate(' + x + ', ' + y + ')';
2018
+ _.$slideTrack.css(positionProps);
2019
+ } else {
2020
+ positionProps[_.animType] = 'translate3d(' + x + ', ' + y + ', 0px)';
2021
+ _.$slideTrack.css(positionProps);
2022
+ }
2023
+ }
2024
+
2025
+ };
2026
+
2027
+ Slick.prototype.setDimensions = function() {
2028
+
2029
+ var _ = this;
2030
+
2031
+ if (_.options.vertical === false) {
2032
+ if (_.options.centerMode === true) {
2033
+ _.$list.css({
2034
+ padding: ('0px ' + _.options.centerPadding)
2035
+ });
2036
+ }
2037
+ } else {
2038
+ _.$list.height(_.$slides.first().outerHeight(true) * _.options.slidesToShow);
2039
+ if (_.options.centerMode === true) {
2040
+ _.$list.css({
2041
+ padding: (_.options.centerPadding + ' 0px')
2042
+ });
2043
+ }
2044
+ }
2045
+
2046
+ _.listWidth = _.$list.width();
2047
+ _.listHeight = _.$list.height();
2048
+
2049
+
2050
+ if (_.options.vertical === false && _.options.variableWidth === false) {
2051
+ _.slideWidth = Math.ceil(_.listWidth / _.options.slidesToShow);
2052
+ _.$slideTrack.width(Math.ceil((_.slideWidth * _.$slideTrack.children('.slick-slide').length)));
2053
+
2054
+ } else if (_.options.variableWidth === true) {
2055
+ _.$slideTrack.width(5000 * _.slideCount);
2056
+ } else {
2057
+ _.slideWidth = Math.ceil(_.listWidth);
2058
+ _.$slideTrack.height(Math.ceil((_.$slides.first().outerHeight(true) * _.$slideTrack.children('.slick-slide').length)));
2059
+ }
2060
+
2061
+ var offset = _.$slides.first().outerWidth(true) - _.$slides.first().width();
2062
+ if (_.options.variableWidth === false) _.$slideTrack.children('.slick-slide').width(_.slideWidth - offset);
2063
+
2064
+ };
2065
+
2066
+ Slick.prototype.setFade = function() {
2067
+
2068
+ var _ = this,
2069
+ targetLeft;
2070
+
2071
+ _.$slides.each(function(index, element) {
2072
+ targetLeft = (_.slideWidth * index) * -1;
2073
+ if (_.options.rtl === true) {
2074
+ $(element).css({
2075
+ position: 'relative',
2076
+ right: targetLeft,
2077
+ top: 0,
2078
+ zIndex: _.options.zIndex - 2,
2079
+ opacity: 0
2080
+ });
2081
+ } else {
2082
+ $(element).css({
2083
+ position: 'relative',
2084
+ left: targetLeft,
2085
+ top: 0,
2086
+ zIndex: _.options.zIndex - 2,
2087
+ opacity: 0
2088
+ });
2089
+ }
2090
+ });
2091
+
2092
+ _.$slides.eq(_.currentSlide).css({
2093
+ zIndex: _.options.zIndex - 1,
2094
+ opacity: 1
2095
+ });
2096
+
2097
+ };
2098
+
2099
+ Slick.prototype.setHeight = function() {
2100
+
2101
+ var _ = this;
2102
+
2103
+ if (_.options.slidesToShow === 1 && _.options.adaptiveHeight === true && _.options.vertical === false) {
2104
+ var targetHeight = _.$slides.eq(_.currentSlide).outerHeight(true);
2105
+ _.$list.css('height', targetHeight);
2106
+ }
2107
+
2108
+ };
2109
+
2110
+ Slick.prototype.setOption =
2111
+ Slick.prototype.slickSetOption = function() {
2112
+
2113
+ /**
2114
+ * accepts arguments in format of:
2115
+ *
2116
+ * - for changing a single option's value:
2117
+ * .slick("setOption", option, value, refresh )
2118
+ *
2119
+ * - for changing a set of responsive options:
2120
+ * .slick("setOption", 'responsive', [{}, ...], refresh )
2121
+ *
2122
+ * - for updating multiple values at once (not responsive)
2123
+ * .slick("setOption", { 'option': value, ... }, refresh )
2124
+ */
2125
+
2126
+ var _ = this, l, item, option, value, refresh = false, type;
2127
+
2128
+ if( $.type( arguments[0] ) === 'object' ) {
2129
+
2130
+ option = arguments[0];
2131
+ refresh = arguments[1];
2132
+ type = 'multiple';
2133
+
2134
+ } else if ( $.type( arguments[0] ) === 'string' ) {
2135
+
2136
+ option = arguments[0];
2137
+ value = arguments[1];
2138
+ refresh = arguments[2];
2139
+
2140
+ if ( arguments[0] === 'responsive' && $.type( arguments[1] ) === 'array' ) {
2141
+
2142
+ type = 'responsive';
2143
+
2144
+ } else if ( typeof arguments[1] !== 'undefined' ) {
2145
+
2146
+ type = 'single';
2147
+
2148
+ }
2149
+
2150
+ }
2151
+
2152
+ if ( type === 'single' ) {
2153
+
2154
+ _.options[option] = value;
2155
+
2156
+
2157
+ } else if ( type === 'multiple' ) {
2158
+
2159
+ $.each( option , function( opt, val ) {
2160
+
2161
+ _.options[opt] = val;
2162
+
2163
+ });
2164
+
2165
+
2166
+ } else if ( type === 'responsive' ) {
2167
+
2168
+ for ( item in value ) {
2169
+
2170
+ if( $.type( _.options.responsive ) !== 'array' ) {
2171
+
2172
+ _.options.responsive = [ value[item] ];
2173
+
2174
+ } else {
2175
+
2176
+ l = _.options.responsive.length-1;
2177
+
2178
+ // loop through the responsive object and splice out duplicates.
2179
+ while( l >= 0 ) {
2180
+
2181
+ if( _.options.responsive[l].breakpoint === value[item].breakpoint ) {
2182
+
2183
+ _.options.responsive.splice(l,1);
2184
+
2185
+ }
2186
+
2187
+ l--;
2188
+
2189
+ }
2190
+
2191
+ _.options.responsive.push( value[item] );
2192
+
2193
+ }
2194
+
2195
+ }
2196
+
2197
+ }
2198
+
2199
+ if ( refresh ) {
2200
+
2201
+ _.unload();
2202
+ _.reinit();
2203
+
2204
+ }
2205
+
2206
+ };
2207
+
2208
+ Slick.prototype.setPosition = function() {
2209
+
2210
+ var _ = this;
2211
+
2212
+ _.setDimensions();
2213
+
2214
+ _.setHeight();
2215
+
2216
+ if (_.options.fade === false) {
2217
+ _.setCSS(_.getLeft(_.currentSlide));
2218
+ } else {
2219
+ _.setFade();
2220
+ }
2221
+
2222
+ _.$slider.trigger('setPosition', [_]);
2223
+
2224
+ };
2225
+
2226
+ Slick.prototype.setProps = function() {
2227
+
2228
+ var _ = this,
2229
+ bodyStyle = document.body.style;
2230
+
2231
+ _.positionProp = _.options.vertical === true ? 'top' : 'left';
2232
+
2233
+ if (_.positionProp === 'top') {
2234
+ _.$slider.addClass('slick-vertical');
2235
+ } else {
2236
+ _.$slider.removeClass('slick-vertical');
2237
+ }
2238
+
2239
+ if (bodyStyle.WebkitTransition !== undefined ||
2240
+ bodyStyle.MozTransition !== undefined ||
2241
+ bodyStyle.msTransition !== undefined) {
2242
+ if (_.options.useCSS === true) {
2243
+ _.cssTransitions = true;
2244
+ }
2245
+ }
2246
+
2247
+ if ( _.options.fade ) {
2248
+ if ( typeof _.options.zIndex === 'number' ) {
2249
+ if( _.options.zIndex < 3 ) {
2250
+ _.options.zIndex = 3;
2251
+ }
2252
+ } else {
2253
+ _.options.zIndex = _.defaults.zIndex;
2254
+ }
2255
+ }
2256
+
2257
+ if (bodyStyle.OTransform !== undefined) {
2258
+ _.animType = 'OTransform';
2259
+ _.transformType = '-o-transform';
2260
+ _.transitionType = 'OTransition';
2261
+ if (bodyStyle.perspectiveProperty === undefined && bodyStyle.webkitPerspective === undefined) _.animType = false;
2262
+ }
2263
+ if (bodyStyle.MozTransform !== undefined) {
2264
+ _.animType = 'MozTransform';
2265
+ _.transformType = '-moz-transform';
2266
+ _.transitionType = 'MozTransition';
2267
+ if (bodyStyle.perspectiveProperty === undefined && bodyStyle.MozPerspective === undefined) _.animType = false;
2268
+ }
2269
+ if (bodyStyle.webkitTransform !== undefined) {
2270
+ _.animType = 'webkitTransform';
2271
+ _.transformType = '-webkit-transform';
2272
+ _.transitionType = 'webkitTransition';
2273
+ if (bodyStyle.perspectiveProperty === undefined && bodyStyle.webkitPerspective === undefined) _.animType = false;
2274
+ }
2275
+ if (bodyStyle.msTransform !== undefined) {
2276
+ _.animType = 'msTransform';
2277
+ _.transformType = '-ms-transform';
2278
+ _.transitionType = 'msTransition';
2279
+ if (bodyStyle.msTransform === undefined) _.animType = false;
2280
+ }
2281
+ if (bodyStyle.transform !== undefined && _.animType !== false) {
2282
+ _.animType = 'transform';
2283
+ _.transformType = 'transform';
2284
+ _.transitionType = 'transition';
2285
+ }
2286
+ _.transformsEnabled = _.options.useTransform && (_.animType !== null && _.animType !== false);
2287
+ };
2288
+
2289
+
2290
+ Slick.prototype.setSlideClasses = function(index) {
2291
+
2292
+ var _ = this,
2293
+ centerOffset, allSlides, indexOffset, remainder;
2294
+
2295
+ allSlides = _.$slider
2296
+ .find('.slick-slide')
2297
+ .removeClass('slick-active slick-center slick-current')
2298
+ .attr('aria-hidden', 'true');
2299
+
2300
+ _.$slides
2301
+ .eq(index)
2302
+ .addClass('slick-current');
2303
+
2304
+ if (_.options.centerMode === true) {
2305
+
2306
+ var evenCoef = _.options.slidesToShow % 2 === 0 ? 1 : 0;
2307
+
2308
+ centerOffset = Math.floor(_.options.slidesToShow / 2);
2309
+
2310
+ if (_.options.infinite === true) {
2311
+
2312
+ if (index >= centerOffset && index <= (_.slideCount - 1) - centerOffset) {
2313
+ _.$slides
2314
+ .slice(index - centerOffset + evenCoef, index + centerOffset + 1)
2315
+ .addClass('slick-active')
2316
+ .attr('aria-hidden', 'false');
2317
+
2318
+ } else {
2319
+
2320
+ indexOffset = _.options.slidesToShow + index;
2321
+ allSlides
2322
+ .slice(indexOffset - centerOffset + 1 + evenCoef, indexOffset + centerOffset + 2)
2323
+ .addClass('slick-active')
2324
+ .attr('aria-hidden', 'false');
2325
+
2326
+ }
2327
+
2328
+ if (index === 0) {
2329
+
2330
+ allSlides
2331
+ .eq(allSlides.length - 1 - _.options.slidesToShow)
2332
+ .addClass('slick-center');
2333
+
2334
+ } else if (index === _.slideCount - 1) {
2335
+
2336
+ allSlides
2337
+ .eq(_.options.slidesToShow)
2338
+ .addClass('slick-center');
2339
+
2340
+ }
2341
+
2342
+ }
2343
+
2344
+ _.$slides
2345
+ .eq(index)
2346
+ .addClass('slick-center');
2347
+
2348
+ } else {
2349
+
2350
+ if (index >= 0 && index <= (_.slideCount - _.options.slidesToShow)) {
2351
+
2352
+ _.$slides
2353
+ .slice(index, index + _.options.slidesToShow)
2354
+ .addClass('slick-active')
2355
+ .attr('aria-hidden', 'false');
2356
+
2357
+ } else if (allSlides.length <= _.options.slidesToShow) {
2358
+
2359
+ allSlides
2360
+ .addClass('slick-active')
2361
+ .attr('aria-hidden', 'false');
2362
+
2363
+ } else {
2364
+
2365
+ remainder = _.slideCount % _.options.slidesToShow;
2366
+ indexOffset = _.options.infinite === true ? _.options.slidesToShow + index : index;
2367
+
2368
+ if (_.options.slidesToShow == _.options.slidesToScroll && (_.slideCount - index) < _.options.slidesToShow) {
2369
+
2370
+ allSlides
2371
+ .slice(indexOffset - (_.options.slidesToShow - remainder), indexOffset + remainder)
2372
+ .addClass('slick-active')
2373
+ .attr('aria-hidden', 'false');
2374
+
2375
+ } else {
2376
+
2377
+ allSlides
2378
+ .slice(indexOffset, indexOffset + _.options.slidesToShow)
2379
+ .addClass('slick-active')
2380
+ .attr('aria-hidden', 'false');
2381
+
2382
+ }
2383
+
2384
+ }
2385
+
2386
+ }
2387
+
2388
+ if (_.options.lazyLoad === 'ondemand' || _.options.lazyLoad === 'anticipated') {
2389
+ _.lazyLoad();
2390
+ }
2391
+ };
2392
+
2393
+ Slick.prototype.setupInfinite = function() {
2394
+
2395
+ var _ = this,
2396
+ i, slideIndex, infiniteCount;
2397
+
2398
+ if (_.options.fade === true) {
2399
+ _.options.centerMode = false;
2400
+ }
2401
+
2402
+ if (_.options.infinite === true && _.options.fade === false) {
2403
+
2404
+ slideIndex = null;
2405
+
2406
+ if (_.slideCount > _.options.slidesToShow) {
2407
+
2408
+ if (_.options.centerMode === true) {
2409
+ infiniteCount = _.options.slidesToShow + 1;
2410
+ } else {
2411
+ infiniteCount = _.options.slidesToShow;
2412
+ }
2413
+
2414
+ for (i = _.slideCount; i > (_.slideCount -
2415
+ infiniteCount); i -= 1) {
2416
+ slideIndex = i - 1;
2417
+ $(_.$slides[slideIndex]).clone(true).attr('id', '')
2418
+ .attr('data-slick-index', slideIndex - _.slideCount)
2419
+ .prependTo(_.$slideTrack).addClass('slick-cloned');
2420
+ }
2421
+ for (i = 0; i < infiniteCount + _.slideCount; i += 1) {
2422
+ slideIndex = i;
2423
+ $(_.$slides[slideIndex]).clone(true).attr('id', '')
2424
+ .attr('data-slick-index', slideIndex + _.slideCount)
2425
+ .appendTo(_.$slideTrack).addClass('slick-cloned');
2426
+ }
2427
+ _.$slideTrack.find('.slick-cloned').find('[id]').each(function() {
2428
+ $(this).attr('id', '');
2429
+ });
2430
+
2431
+ }
2432
+
2433
+ }
2434
+
2435
+ };
2436
+
2437
+ Slick.prototype.interrupt = function( toggle ) {
2438
+
2439
+ var _ = this;
2440
+
2441
+ if( !toggle ) {
2442
+ _.autoPlay();
2443
+ }
2444
+ _.interrupted = toggle;
2445
+
2446
+ };
2447
+
2448
+ Slick.prototype.selectHandler = function(event) {
2449
+
2450
+ var _ = this;
2451
+
2452
+ var targetElement =
2453
+ $(event.target).is('.slick-slide') ?
2454
+ $(event.target) :
2455
+ $(event.target).parents('.slick-slide');
2456
+
2457
+ var index = parseInt(targetElement.attr('data-slick-index'));
2458
+
2459
+ if (!index) index = 0;
2460
+
2461
+ if (_.slideCount <= _.options.slidesToShow) {
2462
+
2463
+ _.slideHandler(index, false, true);
2464
+ return;
2465
+
2466
+ }
2467
+
2468
+ _.slideHandler(index);
2469
+
2470
+ };
2471
+
2472
+ Slick.prototype.slideHandler = function(index, sync, dontAnimate) {
2473
+
2474
+ var targetSlide, animSlide, oldSlide, slideLeft, targetLeft = null,
2475
+ _ = this, navTarget;
2476
+
2477
+ sync = sync || false;
2478
+
2479
+ if (_.animating === true && _.options.waitForAnimate === true) {
2480
+ return;
2481
+ }
2482
+
2483
+ if (_.options.fade === true && _.currentSlide === index) {
2484
+ return;
2485
+ }
2486
+
2487
+ if (sync === false) {
2488
+ _.asNavFor(index);
2489
+ }
2490
+
2491
+ targetSlide = index;
2492
+ targetLeft = _.getLeft(targetSlide);
2493
+ slideLeft = _.getLeft(_.currentSlide);
2494
+
2495
+ _.currentLeft = _.swipeLeft === null ? slideLeft : _.swipeLeft;
2496
+
2497
+ if (_.options.infinite === false && _.options.centerMode === false && (index < 0 || index > _.getDotCount() * _.options.slidesToScroll)) {
2498
+ if (_.options.fade === false) {
2499
+ targetSlide = _.currentSlide;
2500
+ if (dontAnimate !== true && _.slideCount > _.options.slidesToShow) {
2501
+ _.animateSlide(slideLeft, function() {
2502
+ _.postSlide(targetSlide);
2503
+ });
2504
+ } else {
2505
+ _.postSlide(targetSlide);
2506
+ }
2507
+ }
2508
+ return;
2509
+ } else if (_.options.infinite === false && _.options.centerMode === true && (index < 0 || index > (_.slideCount - _.options.slidesToScroll))) {
2510
+ if (_.options.fade === false) {
2511
+ targetSlide = _.currentSlide;
2512
+ if (dontAnimate !== true && _.slideCount > _.options.slidesToShow) {
2513
+ _.animateSlide(slideLeft, function() {
2514
+ _.postSlide(targetSlide);
2515
+ });
2516
+ } else {
2517
+ _.postSlide(targetSlide);
2518
+ }
2519
+ }
2520
+ return;
2521
+ }
2522
+
2523
+ if ( _.options.autoplay ) {
2524
+ clearInterval(_.autoPlayTimer);
2525
+ }
2526
+
2527
+ if (targetSlide < 0) {
2528
+ if (_.slideCount % _.options.slidesToScroll !== 0) {
2529
+ animSlide = _.slideCount - (_.slideCount % _.options.slidesToScroll);
2530
+ } else {
2531
+ animSlide = _.slideCount + targetSlide;
2532
+ }
2533
+ } else if (targetSlide >= _.slideCount) {
2534
+ if (_.slideCount % _.options.slidesToScroll !== 0) {
2535
+ animSlide = 0;
2536
+ } else {
2537
+ animSlide = targetSlide - _.slideCount;
2538
+ }
2539
+ } else {
2540
+ animSlide = targetSlide;
2541
+ }
2542
+
2543
+ _.animating = true;
2544
+
2545
+ _.$slider.trigger('beforeChange', [_, _.currentSlide, animSlide]);
2546
+
2547
+ oldSlide = _.currentSlide;
2548
+ _.currentSlide = animSlide;
2549
+
2550
+ _.setSlideClasses(_.currentSlide);
2551
+
2552
+ if ( _.options.asNavFor ) {
2553
+
2554
+ navTarget = _.getNavTarget();
2555
+ navTarget = navTarget.slick('getSlick');
2556
+
2557
+ if ( navTarget.slideCount <= navTarget.options.slidesToShow ) {
2558
+ navTarget.setSlideClasses(_.currentSlide);
2559
+ }
2560
+
2561
+ }
2562
+
2563
+ _.updateDots();
2564
+ _.updateArrows();
2565
+
2566
+ if (_.options.fade === true) {
2567
+ if (dontAnimate !== true) {
2568
+
2569
+ _.fadeSlideOut(oldSlide);
2570
+
2571
+ _.fadeSlide(animSlide, function() {
2572
+ _.postSlide(animSlide);
2573
+ });
2574
+
2575
+ } else {
2576
+ _.postSlide(animSlide);
2577
+ }
2578
+ _.animateHeight();
2579
+ return;
2580
+ }
2581
+
2582
+ if (dontAnimate !== true && _.slideCount > _.options.slidesToShow) {
2583
+ _.animateSlide(targetLeft, function() {
2584
+ _.postSlide(animSlide);
2585
+ });
2586
+ } else {
2587
+ _.postSlide(animSlide);
2588
+ }
2589
+
2590
+ };
2591
+
2592
+ Slick.prototype.startLoad = function() {
2593
+
2594
+ var _ = this;
2595
+
2596
+ if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
2597
+
2598
+ _.$prevArrow.hide();
2599
+ _.$nextArrow.hide();
2600
+
2601
+ }
2602
+
2603
+ if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
2604
+
2605
+ _.$dots.hide();
2606
+
2607
+ }
2608
+
2609
+ _.$slider.addClass('slick-loading');
2610
+
2611
+ };
2612
+
2613
+ Slick.prototype.swipeDirection = function() {
2614
+
2615
+ var xDist, yDist, r, swipeAngle, _ = this;
2616
+
2617
+ xDist = _.touchObject.startX - _.touchObject.curX;
2618
+ yDist = _.touchObject.startY - _.touchObject.curY;
2619
+ r = Math.atan2(yDist, xDist);
2620
+
2621
+ swipeAngle = Math.round(r * 180 / Math.PI);
2622
+ if (swipeAngle < 0) {
2623
+ swipeAngle = 360 - Math.abs(swipeAngle);
2624
+ }
2625
+
2626
+ if ((swipeAngle <= 45) && (swipeAngle >= 0)) {
2627
+ return (_.options.rtl === false ? 'left' : 'right');
2628
+ }
2629
+ if ((swipeAngle <= 360) && (swipeAngle >= 315)) {
2630
+ return (_.options.rtl === false ? 'left' : 'right');
2631
+ }
2632
+ if ((swipeAngle >= 135) && (swipeAngle <= 225)) {
2633
+ return (_.options.rtl === false ? 'right' : 'left');
2634
+ }
2635
+ if (_.options.verticalSwiping === true) {
2636
+ if ((swipeAngle >= 35) && (swipeAngle <= 135)) {
2637
+ return 'down';
2638
+ } else {
2639
+ return 'up';
2640
+ }
2641
+ }
2642
+
2643
+ return 'vertical';
2644
+
2645
+ };
2646
+
2647
+ Slick.prototype.swipeEnd = function(event) {
2648
+
2649
+ var _ = this,
2650
+ slideCount,
2651
+ direction;
2652
+
2653
+ _.dragging = false;
2654
+ _.swiping = false;
2655
+
2656
+ if (_.scrolling) {
2657
+ _.scrolling = false;
2658
+ return false;
2659
+ }
2660
+
2661
+ _.interrupted = false;
2662
+ _.shouldClick = ( _.touchObject.swipeLength > 10 ) ? false : true;
2663
+
2664
+ if ( _.touchObject.curX === undefined ) {
2665
+ return false;
2666
+ }
2667
+
2668
+ if ( _.touchObject.edgeHit === true ) {
2669
+ _.$slider.trigger('edge', [_, _.swipeDirection() ]);
2670
+ }
2671
+
2672
+ if ( _.touchObject.swipeLength >= _.touchObject.minSwipe ) {
2673
+
2674
+ direction = _.swipeDirection();
2675
+
2676
+ switch ( direction ) {
2677
+
2678
+ case 'left':
2679
+ case 'down':
2680
+
2681
+ slideCount =
2682
+ _.options.swipeToSlide ?
2683
+ _.checkNavigable( _.currentSlide + _.getSlideCount() ) :
2684
+ _.currentSlide + _.getSlideCount();
2685
+
2686
+ _.currentDirection = 0;
2687
+
2688
+ break;
2689
+
2690
+ case 'right':
2691
+ case 'up':
2692
+
2693
+ slideCount =
2694
+ _.options.swipeToSlide ?
2695
+ _.checkNavigable( _.currentSlide - _.getSlideCount() ) :
2696
+ _.currentSlide - _.getSlideCount();
2697
+
2698
+ _.currentDirection = 1;
2699
+
2700
+ break;
2701
+
2702
+ default:
2703
+
2704
+
2705
+ }
2706
+
2707
+ if( direction != 'vertical' ) {
2708
+
2709
+ _.slideHandler( slideCount );
2710
+ _.touchObject = {};
2711
+ _.$slider.trigger('swipe', [_, direction ]);
2712
+
2713
+ }
2714
+
2715
+ } else {
2716
+
2717
+ if ( _.touchObject.startX !== _.touchObject.curX ) {
2718
+
2719
+ _.slideHandler( _.currentSlide );
2720
+ _.touchObject = {};
2721
+
2722
+ }
2723
+
2724
+ }
2725
+
2726
+ };
2727
+
2728
+ Slick.prototype.swipeHandler = function(event) {
2729
+
2730
+ var _ = this;
2731
+
2732
+ if ((_.options.swipe === false) || ('ontouchend' in document && _.options.swipe === false)) {
2733
+ return;
2734
+ } else if (_.options.draggable === false && event.type.indexOf('mouse') !== -1) {
2735
+ return;
2736
+ }
2737
+
2738
+ _.touchObject.fingerCount = event.originalEvent && event.originalEvent.touches !== undefined ?
2739
+ event.originalEvent.touches.length : 1;
2740
+
2741
+ _.touchObject.minSwipe = _.listWidth / _.options
2742
+ .touchThreshold;
2743
+
2744
+ if (_.options.verticalSwiping === true) {
2745
+ _.touchObject.minSwipe = _.listHeight / _.options
2746
+ .touchThreshold;
2747
+ }
2748
+
2749
+ switch (event.data.action) {
2750
+
2751
+ case 'start':
2752
+ _.swipeStart(event);
2753
+ break;
2754
+
2755
+ case 'move':
2756
+ _.swipeMove(event);
2757
+ break;
2758
+
2759
+ case 'end':
2760
+ _.swipeEnd(event);
2761
+ break;
2762
+
2763
+ }
2764
+
2765
+ };
2766
+
2767
+ Slick.prototype.swipeMove = function(event) {
2768
+
2769
+ var _ = this,
2770
+ edgeWasHit = false,
2771
+ curLeft, swipeDirection, swipeLength, positionOffset, touches, verticalSwipeLength;
2772
+
2773
+ touches = event.originalEvent !== undefined ? event.originalEvent.touches : null;
2774
+
2775
+ if (!_.dragging || _.scrolling || touches && touches.length !== 1) {
2776
+ return false;
2777
+ }
2778
+
2779
+ curLeft = _.getLeft(_.currentSlide);
2780
+
2781
+ _.touchObject.curX = touches !== undefined ? touches[0].pageX : event.clientX;
2782
+ _.touchObject.curY = touches !== undefined ? touches[0].pageY : event.clientY;
2783
+
2784
+ _.touchObject.swipeLength = Math.round(Math.sqrt(
2785
+ Math.pow(_.touchObject.curX - _.touchObject.startX, 2)));
2786
+
2787
+ verticalSwipeLength = Math.round(Math.sqrt(
2788
+ Math.pow(_.touchObject.curY - _.touchObject.startY, 2)));
2789
+
2790
+ if (!_.options.verticalSwiping && !_.swiping && verticalSwipeLength > 4) {
2791
+ _.scrolling = true;
2792
+ return false;
2793
+ }
2794
+
2795
+ if (_.options.verticalSwiping === true) {
2796
+ _.touchObject.swipeLength = verticalSwipeLength;
2797
+ }
2798
+
2799
+ swipeDirection = _.swipeDirection();
2800
+
2801
+ if (event.originalEvent !== undefined && _.touchObject.swipeLength > 4) {
2802
+ _.swiping = true;
2803
+ event.preventDefault();
2804
+ }
2805
+
2806
+ positionOffset = (_.options.rtl === false ? 1 : -1) * (_.touchObject.curX > _.touchObject.startX ? 1 : -1);
2807
+ if (_.options.verticalSwiping === true) {
2808
+ positionOffset = _.touchObject.curY > _.touchObject.startY ? 1 : -1;
2809
+ }
2810
+
2811
+
2812
+ swipeLength = _.touchObject.swipeLength;
2813
+
2814
+ _.touchObject.edgeHit = false;
2815
+
2816
+ if (_.options.infinite === false) {
2817
+ if ((_.currentSlide === 0 && swipeDirection === 'right') || (_.currentSlide >= _.getDotCount() && swipeDirection === 'left')) {
2818
+ swipeLength = _.touchObject.swipeLength * _.options.edgeFriction;
2819
+ _.touchObject.edgeHit = true;
2820
+ }
2821
+ }
2822
+
2823
+ if (_.options.vertical === false) {
2824
+ _.swipeLeft = curLeft + swipeLength * positionOffset;
2825
+ } else {
2826
+ _.swipeLeft = curLeft + (swipeLength * (_.$list.height() / _.listWidth)) * positionOffset;
2827
+ }
2828
+ if (_.options.verticalSwiping === true) {
2829
+ _.swipeLeft = curLeft + swipeLength * positionOffset;
2830
+ }
2831
+
2832
+ if (_.options.fade === true || _.options.touchMove === false) {
2833
+ return false;
2834
+ }
2835
+
2836
+ if (_.animating === true) {
2837
+ _.swipeLeft = null;
2838
+ return false;
2839
+ }
2840
+
2841
+ _.setCSS(_.swipeLeft);
2842
+
2843
+ };
2844
+
2845
+ Slick.prototype.swipeStart = function(event) {
2846
+
2847
+ var _ = this,
2848
+ touches;
2849
+
2850
+ _.interrupted = true;
2851
+
2852
+ if (_.touchObject.fingerCount !== 1 || _.slideCount <= _.options.slidesToShow) {
2853
+ _.touchObject = {};
2854
+ return false;
2855
+ }
2856
+
2857
+ if (event.originalEvent !== undefined && event.originalEvent.touches !== undefined) {
2858
+ touches = event.originalEvent.touches[0];
2859
+ }
2860
+
2861
+ _.touchObject.startX = _.touchObject.curX = touches !== undefined ? touches.pageX : event.clientX;
2862
+ _.touchObject.startY = _.touchObject.curY = touches !== undefined ? touches.pageY : event.clientY;
2863
+
2864
+ _.dragging = true;
2865
+
2866
+ };
2867
+
2868
+ Slick.prototype.unfilterSlides = Slick.prototype.slickUnfilter = function() {
2869
+
2870
+ var _ = this;
2871
+
2872
+ if (_.$slidesCache !== null) {
2873
+
2874
+ _.unload();
2875
+
2876
+ _.$slideTrack.children(this.options.slide).detach();
2877
+
2878
+ _.$slidesCache.appendTo(_.$slideTrack);
2879
+
2880
+ _.reinit();
2881
+
2882
+ }
2883
+
2884
+ };
2885
+
2886
+ Slick.prototype.unload = function() {
2887
+
2888
+ var _ = this;
2889
+
2890
+ $('.slick-cloned', _.$slider).remove();
2891
+
2892
+ if (_.$dots) {
2893
+ _.$dots.remove();
2894
+ }
2895
+
2896
+ if (_.$prevArrow && _.htmlExpr.test(_.options.prevArrow)) {
2897
+ _.$prevArrow.remove();
2898
+ }
2899
+
2900
+ if (_.$nextArrow && _.htmlExpr.test(_.options.nextArrow)) {
2901
+ _.$nextArrow.remove();
2902
+ }
2903
+
2904
+ _.$slides
2905
+ .removeClass('slick-slide slick-active slick-visible slick-current')
2906
+ .attr('aria-hidden', 'true')
2907
+ .css('width', '');
2908
+
2909
+ };
2910
+
2911
+ Slick.prototype.unslick = function(fromBreakpoint) {
2912
+
2913
+ var _ = this;
2914
+ _.$slider.trigger('unslick', [_, fromBreakpoint]);
2915
+ _.destroy();
2916
+
2917
+ };
2918
+
2919
+ Slick.prototype.updateArrows = function() {
2920
+
2921
+ var _ = this,
2922
+ centerOffset;
2923
+
2924
+ centerOffset = Math.floor(_.options.slidesToShow / 2);
2925
+
2926
+ if ( _.options.arrows === true &&
2927
+ _.slideCount > _.options.slidesToShow &&
2928
+ !_.options.infinite ) {
2929
+
2930
+ _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2931
+ _.$nextArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2932
+
2933
+ if (_.currentSlide === 0) {
2934
+
2935
+ _.$prevArrow.addClass('slick-disabled').attr('aria-disabled', 'true');
2936
+ _.$nextArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2937
+
2938
+ } else if (_.currentSlide >= _.slideCount - _.options.slidesToShow && _.options.centerMode === false) {
2939
+
2940
+ _.$nextArrow.addClass('slick-disabled').attr('aria-disabled', 'true');
2941
+ _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2942
+
2943
+ } else if (_.currentSlide >= _.slideCount - 1 && _.options.centerMode === true) {
2944
+
2945
+ _.$nextArrow.addClass('slick-disabled').attr('aria-disabled', 'true');
2946
+ _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2947
+
2948
+ }
2949
+
2950
+ }
2951
+
2952
+ };
2953
+
2954
+ Slick.prototype.updateDots = function() {
2955
+
2956
+ var _ = this;
2957
+
2958
+ if (_.$dots !== null) {
2959
+
2960
+ _.$dots
2961
+ .find('li')
2962
+ .removeClass('slick-active')
2963
+ .end();
2964
+
2965
+ _.$dots
2966
+ .find('li')
2967
+ .eq(Math.floor(_.currentSlide / _.options.slidesToScroll))
2968
+ .addClass('slick-active');
2969
+
2970
+ }
2971
+
2972
+ };
2973
+
2974
+ Slick.prototype.visibility = function() {
2975
+
2976
+ var _ = this;
2977
+
2978
+ if ( _.options.autoplay ) {
2979
+
2980
+ if ( document[_.hidden] ) {
2981
+
2982
+ _.interrupted = true;
2983
+
2984
+ } else {
2985
+
2986
+ _.interrupted = false;
2987
+
2988
+ }
2989
+
2990
+ }
2991
+
2992
+ };
2993
+
2994
+ $.fn.slick = function() {
2995
+ var _ = this,
2996
+ opt = arguments[0],
2997
+ args = Array.prototype.slice.call(arguments, 1),
2998
+ l = _.length,
2999
+ i,
3000
+ ret;
3001
+ for (i = 0; i < l; i++) {
3002
+ if (typeof opt == 'object' || typeof opt == 'undefined')
3003
+ _[i].slick = new Slick(_[i], opt);
3004
+ else
3005
+ ret = _[i].slick[opt].apply(_[i].slick, args);
3006
+ if (typeof ret != 'undefined') return ret;
3007
+ }
3008
+ return _;
3009
+ };
3010
+
3011
+ }));
js/lib/slick.min.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}((function(i){"use strict";var e,t=window.Slick||{};e=0,(t=function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},t.prototype.addSlide=t.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each((function(e,t){i(t).attr("data-slick-index",e)})),s.$slidesCache=s.$slides,s.reinit()},t.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},t.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout((function(){s.disableTransition(),t.call()}),s.options.speed))},t.prototype.getNavTarget=function(){var e=this.options.asNavFor;return e&&null!==e&&(e=i(e).not(this.$slider)),e},t.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each((function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)}))},t.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},t.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},t.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},t.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},t.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},t.prototype.buildDots=function(){var e,t,o=this;if(!0===o.options.dots&&o.slideCount>o.options.slidesToShow){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},t.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each((function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")})),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},t.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.options.rows>0){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},t.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){for(o in s=null,r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||!1===l||r.$slider.trigger("breakpoint",[r,l])}},t.prototype.changeSlide=function(e,t){var o,s,n=this,r=i(e.currentTarget);switch(r.is("a")&&e.preventDefault(),r.is("li")||(r=r.closest("li")),o=n.slideCount%n.options.slidesToScroll!=0?0:(n.slideCount-n.currentSlide)%n.options.slidesToScroll,e.data.message){case"previous":s=0===o?n.options.slidesToScroll:n.options.slidesToShow-o,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide-s,!1,t);break;case"next":s=0===o?n.options.slidesToScroll:o,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide+s,!1,t);break;case"index":var l=0===e.data.index?0:e.data.index||r.index()*n.options.slidesToScroll;n.slideHandler(n.checkNavigable(l),!1,t),r.children().trigger("focus");break;default:return}},t.prototype.checkNavigable=function(i){var e,t;if(t=0,i>(e=this.getNavigableIndexes())[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},t.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},t.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},t.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>0&&((i=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(i))},t.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},t.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){i(this).attr("style",i(this).data("originalStyling"))})),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},t.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},t.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout((function(){t.disableTransition(i),e.call()}),t.options.speed))},t.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},t.prototype.filterSlides=t.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},t.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",(function(t){t.stopImmediatePropagation();var o=i(this);setTimeout((function(){e.options.pauseOnFocus&&(e.focussed=o.is(":focus"),e.autoPlay())}),0)}))},t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){return this.currentSlide},t.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},t.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!=0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},t.prototype.getOption=t.prototype.slickGetOption=function(i){return this.options[i]},t.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(!1===e.options.infinite?i=e.slideCount:(t=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},t.prototype.getSlick=function(){return this},t.prototype.getSlideCount=function(){var e,t,o=this;return t=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each((function(s,n){if(n.offsetLeft-t+i(n).outerWidth()/2>-1*o.swipeLeft)return e=n,!1})),Math.abs(i(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},t.prototype.goTo=t.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:parseInt(i)}},e)},t.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},t.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter((function(i){return i>=0&&i<e.slideCount}));e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each((function(t){var s=o.indexOf(t);if(i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),-1!==s){var n="slick-slide-control"+e.instanceUid+s;i("#"+n).length&&i(this).attr({"aria-describedby":n})}})),e.$dots.attr("role","tablist").find("li").each((function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})})).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.options.focusOnChange?e.$slides.eq(s).attr({tabindex:"0"}):e.$slides.eq(s).removeAttr("tabindex");e.activateADA()},t.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),!0===i.options.accessibility&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},t.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&e.slideCount>e.options.slidesToShow&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},t.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},t.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},t.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},t.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},t.prototype.lazyLoad=function(){var e,t,o,s=this;function n(e){i("img[data-lazy]",e).each((function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),n=i(this).attr("data-sizes")||s.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0},100,(function(){o&&(e.attr("srcset",o),n&&e.attr("sizes",n)),e.attr("src",t).animate({opacity:1},200,(function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")})),s.$slider.trigger("lazyLoaded",[s,e,t])}))},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),s.$slider.trigger("lazyLoadError",[s,e,t])},r.src=t}))}if(!0===s.options.centerMode?!0===s.options.infinite?o=(t=s.currentSlide+(s.options.slidesToShow/2+1))+s.options.slidesToShow+2:(t=Math.max(0,s.currentSlide-(s.options.slidesToShow/2+1)),o=s.options.slidesToShow/2+1+2+s.currentSlide):(t=s.options.infinite?s.options.slidesToShow+s.currentSlide:s.currentSlide,o=Math.ceil(t+s.options.slidesToShow),!0===s.options.fade&&(t>0&&t--,o<=s.slideCount&&o++)),e=s.$slider.find(".slick-slide").slice(t,o),"anticipated"===s.options.lazyLoad)for(var r=t-1,l=o,d=s.$slider.find(".slick-slide"),a=0;a<s.options.slidesToScroll;a++)r<0&&(r=s.slideCount-1),e=(e=e.add(d.eq(r))).add(d.eq(l)),r--,l++;n(e),s.slideCount<=s.options.slidesToShow?n(s.$slider.find(".slick-slide")):s.currentSlide>=s.slideCount-s.options.slidesToShow?n(s.$slider.find(".slick-cloned").slice(0,s.options.slidesToShow)):0===s.currentSlide&&n(s.$slider.find(".slick-cloned").slice(-1*s.options.slidesToShow))},t.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},t.prototype.next=t.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},t.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},t.prototype.pause=t.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},t.prototype.play=t.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},t.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&i(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},t.prototype.prev=t.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},t.prototype.preventDefault=function(i){i.preventDefault()},t.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===l.options.adaptiveHeight&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout((function(){l.progressiveLazyLoad(e+1)}),500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},t.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},t.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){for(e in s.respondTo=s.options.respondTo||"window",n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort((function(i,e){return s.options.mobileFirst?i-e:e-i}))}},t.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},t.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout((function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()}),50))},t.prototype.removeSlide=t.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),!0===t?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},t.prototype.setCSS=function(i){var e,t,o=this,s={};!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled?o.$slideTrack.css(s):(s={},!1===o.cssTransitions?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},t.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},t.prototype.setFade=function(){var e,t=this;t.$slides.each((function(o,s){e=t.slideWidth*o*-1,!0===t.options.rtl?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})})),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},t.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},t.prototype.setOption=t.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,(function(i,e){r.options[i]=e}));else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},t.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},t.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},t.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),!0===n.options.centerMode){var r=n.options.slidesToShow%2==0?1:0;e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=!0===n.options.infinite?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},t.prototype.setupInfinite=function(){var e,t,o,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each((function(){i(this).attr("id","")}))}},t.prototype.interrupt=function(i){i||this.autoPlay(),this.interrupted=i},t.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));s||(s=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(s,!1,!0):t.slideHandler(s)},t.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d,a=this;if(e=e||!1,!(!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===i))if(!1===e&&a.asNavFor(i),o=i,l=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(i<0||i>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,(function(){a.postSlide(o)})):a.postSlide(o));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(i<0||i>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,(function(){a.postSlide(o)})):a.postSlide(o));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(d=(d=a.getNavTarget()).slick("getSlick")).slideCount<=d.options.slidesToShow&&d.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==t?(a.fadeSlideOut(n),a.fadeSlide(s,(function(){a.postSlide(s)}))):a.postSlide(s),void a.animateHeight();!0!==t&&a.slideCount>a.options.slidesToShow?a.animateSlide(l,(function(){a.postSlide(s)})):a.postSlide(s)}},t.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},t.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),(o=Math.round(180*t/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0?!1===s.options.rtl?"left":"right":o<=360&&o>=315?!1===s.options.rtl?"left":"right":o>=135&&o<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},t.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},t.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},t.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(!0===l.options.verticalSwiping&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(!1===l.options.rtl?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),!0===l.options.verticalSwiping&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,!1===l.options.infinite&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),!1===l.options.vertical?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,!0===l.options.verticalSwiping&&(l.swipeLeft=e+o*s),!0!==l.options.fade&&!1!==l.options.touchMove&&(!0===l.animating?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},t.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},t.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},t.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},t.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode?(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},t.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},t.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,e,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||void 0===s?o[i].slick=new t(o[i],s):e=o[i].slick[s].apply(o[i].slick,n),void 0!==e)return e;return o}}));
lang/so-widgets-bundle.pot CHANGED
@@ -284,7 +284,7 @@ msgstr ""
284
  msgid "SiteOrigin Accordion"
285
  msgstr ""
286
 
287
- #: widgets/accordion/accordion.php:47, widgets/accordion/accordion.php:60, widgets/contact/contact.php:48, widgets/cta/cta.php:64, widgets/editor/editor.php:33, widgets/features/features.php:136, widgets/post-carousel/post-carousel.php:98, widgets/price-table/price-table.php:42, widgets/price-table/price-table.php:61, widgets/simple-masonry/simple-masonry.php:44, widgets/simple-masonry/simple-masonry.php:84, widgets/social-media-buttons/social-media-buttons.php:54, widgets/tabs/tabs.php:47, widgets/tabs/tabs.php:60, widgets/taxonomy/taxonomy.php:34, widgets/testimonial/testimonial.php:41, widgets/video/video.php:33, base/inc/fields/posts.class.php:97
288
  msgid "Title"
289
  msgstr ""
290
 
@@ -1113,7 +1113,7 @@ msgstr ""
1113
  msgid "Button"
1114
  msgstr ""
1115
 
1116
- #: widgets/cta/cta.php:157, widgets/testimonial/testimonial.php:369
1117
  msgid "Get more font customization options with %sSiteOrigin Premium%s"
1118
  msgstr ""
1119
 
@@ -1897,6 +1897,10 @@ msgstr ""
1897
  msgid "SiteOrigin Icon"
1898
  msgstr ""
1899
 
 
 
 
 
1900
  #: widgets/image/image.php:4, widgets/image/image.php:16
1901
  msgid "A simple image widget with massive power."
1902
  msgstr ""
@@ -2025,31 +2029,31 @@ msgstr ""
2025
  msgid "SiteOrigin Post Carousel"
2026
  msgstr ""
2027
 
2028
- #: widgets/post-carousel/post-carousel.php:104
2029
  msgid "Default Thumbnail"
2030
  msgstr ""
2031
 
2032
- #: widgets/post-carousel/post-carousel.php:105
2033
  msgid "Choose Thumbnail"
2034
  msgstr ""
2035
 
2036
- #: widgets/post-carousel/post-carousel.php:106
2037
  msgid "Set Thumbnail"
2038
  msgstr ""
2039
 
2040
- #: widgets/post-carousel/post-carousel.php:112
2041
  msgid "Featured Image size"
2042
  msgstr ""
2043
 
2044
- #: widgets/post-carousel/post-carousel.php:118
2045
  msgid "Loop posts"
2046
  msgstr ""
2047
 
2048
- #: widgets/post-carousel/post-carousel.php:119
2049
  msgid "Automatically return to the first post after the last post."
2050
  msgstr ""
2051
 
2052
- #: widgets/post-carousel/post-carousel.php:125
2053
  msgid "Posts query"
2054
  msgstr ""
2055
 
@@ -2185,7 +2189,27 @@ msgstr ""
2185
  msgid "Device width, in pixels, at which to collapse into a mobile view."
2186
  msgstr ""
2187
 
2188
- #: widgets/simple-masonry/simple-masonry.php:236
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2189
  msgid "Add a Lightbox to your masonry images with %sSiteOrigin Premium%s"
2190
  msgstr ""
2191
 
@@ -2417,6 +2441,10 @@ msgstr ""
2417
  msgid "Text below user"
2418
  msgstr ""
2419
 
 
 
 
 
2420
  #: widgets/video/video.php:4, widgets/video/video.php:20
2421
  msgid "Play all your self or externally hosted videos in a customizable video player."
2422
  msgstr ""
@@ -2894,19 +2922,19 @@ msgstr ""
2894
  msgid "Go to Google Maps Widget settings"
2895
  msgstr ""
2896
 
2897
- #: widgets/post-carousel/tpl/base.php:17, widgets/post-carousel/tpl/base.php:26
2898
  msgid "Next"
2899
  msgstr ""
2900
 
2901
- #: widgets/post-carousel/tpl/base.php:17, widgets/post-carousel/tpl/base.php:26
2902
  msgid "Next Posts"
2903
  msgstr ""
2904
 
2905
- #: widgets/post-carousel/tpl/base.php:18, widgets/post-carousel/tpl/base.php:24
2906
  msgid "Previous"
2907
  msgstr ""
2908
 
2909
- #: widgets/post-carousel/tpl/base.php:18, widgets/post-carousel/tpl/base.php:24
2910
  msgid "Previous Posts"
2911
  msgstr ""
2912
 
284
  msgid "SiteOrigin Accordion"
285
  msgstr ""
286
 
287
+ #: widgets/accordion/accordion.php:47, widgets/accordion/accordion.php:60, widgets/contact/contact.php:48, widgets/cta/cta.php:64, widgets/editor/editor.php:33, widgets/features/features.php:136, widgets/icon/icon.php:68, widgets/post-carousel/post-carousel.php:120, widgets/price-table/price-table.php:42, widgets/price-table/price-table.php:61, widgets/simple-masonry/simple-masonry.php:44, widgets/simple-masonry/simple-masonry.php:84, widgets/social-media-buttons/social-media-buttons.php:54, widgets/tabs/tabs.php:47, widgets/tabs/tabs.php:60, widgets/taxonomy/taxonomy.php:34, widgets/testimonial/testimonial.php:41, widgets/video/video.php:33, base/inc/fields/posts.class.php:97
288
  msgid "Title"
289
  msgstr ""
290
 
1113
  msgid "Button"
1114
  msgstr ""
1115
 
1116
+ #: widgets/cta/cta.php:157, widgets/testimonial/testimonial.php:375
1117
  msgid "Get more font customization options with %sSiteOrigin Premium%s"
1118
  msgstr ""
1119
 
1897
  msgid "SiteOrigin Icon"
1898
  msgstr ""
1899
 
1900
+ #: widgets/icon/icon.php:69
1901
+ msgid " Tooltip text to be shown when hovering over the icon."
1902
+ msgstr ""
1903
+
1904
  #: widgets/image/image.php:4, widgets/image/image.php:16
1905
  msgid "A simple image widget with massive power."
1906
  msgstr ""
2029
  msgid "SiteOrigin Post Carousel"
2030
  msgstr ""
2031
 
2032
+ #: widgets/post-carousel/post-carousel.php:126
2033
  msgid "Default Thumbnail"
2034
  msgstr ""
2035
 
2036
+ #: widgets/post-carousel/post-carousel.php:127
2037
  msgid "Choose Thumbnail"
2038
  msgstr ""
2039
 
2040
+ #: widgets/post-carousel/post-carousel.php:128
2041
  msgid "Set Thumbnail"
2042
  msgstr ""
2043
 
2044
+ #: widgets/post-carousel/post-carousel.php:134
2045
  msgid "Featured Image size"
2046
  msgstr ""
2047
 
2048
+ #: widgets/post-carousel/post-carousel.php:140
2049
  msgid "Loop posts"
2050
  msgstr ""
2051
 
2052
+ #: widgets/post-carousel/post-carousel.php:141
2053
  msgid "Automatically return to the first post after the last post."
2054
  msgstr ""
2055
 
2056
+ #: widgets/post-carousel/post-carousel.php:147
2057
  msgid "Posts query"
2058
  msgstr ""
2059
 
2189
  msgid "Device width, in pixels, at which to collapse into a mobile view."
2190
  msgstr ""
2191
 
2192
+ #: widgets/simple-masonry/simple-masonry.php:188
2193
+ msgid "Preloader"
2194
+ msgstr ""
2195
+
2196
+ #: widgets/simple-masonry/simple-masonry.php:193
2197
+ msgid "Enable preloader"
2198
+ msgstr ""
2199
+
2200
+ #: widgets/simple-masonry/simple-masonry.php:197
2201
+ msgid "Preloader icon color"
2202
+ msgstr ""
2203
+
2204
+ #: widgets/simple-masonry/simple-masonry.php:202
2205
+ msgid "Preloader height"
2206
+ msgstr ""
2207
+
2208
+ #: widgets/simple-masonry/simple-masonry.php:204
2209
+ msgid "The size of the preloader prior to the Masonry images showing."
2210
+ msgstr ""
2211
+
2212
+ #: widgets/simple-masonry/simple-masonry.php:272
2213
  msgid "Add a Lightbox to your masonry images with %sSiteOrigin Premium%s"
2214
  msgstr ""
2215
 
2441
  msgid "Text below user"
2442
  msgstr ""
2443
 
2444
+ #: widgets/testimonial/testimonial.php:275
2445
+ msgid "Equalize testimonial height"
2446
+ msgstr ""
2447
+
2448
  #: widgets/video/video.php:4, widgets/video/video.php:20
2449
  msgid "Play all your self or externally hosted videos in a customizable video player."
2450
  msgstr ""
2922
  msgid "Go to Google Maps Widget settings"
2923
  msgstr ""
2924
 
2925
+ #: widgets/post-carousel/tpl/base.php:18, widgets/post-carousel/tpl/base.php:28
2926
  msgid "Next"
2927
  msgstr ""
2928
 
2929
+ #: widgets/post-carousel/tpl/base.php:18, widgets/post-carousel/tpl/base.php:28
2930
  msgid "Next Posts"
2931
  msgstr ""
2932
 
2933
+ #: widgets/post-carousel/tpl/base.php:19, widgets/post-carousel/tpl/base.php:26
2934
  msgid "Previous"
2935
  msgstr ""
2936
 
2937
+ #: widgets/post-carousel/tpl/base.php:19, widgets/post-carousel/tpl/base.php:26
2938
  msgid "Previous Posts"
2939
  msgstr ""
2940
 
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === SiteOrigin Widgets Bundle ===
2
  Tags: bundle, widget, button, slider, image, carousel, price table, google maps, tinymce, social links
3
  Requires at least: 4.2
4
- Tested up to: 5.4
5
- Stable tag: 1.16.1
6
- Build time: 2020-04-20T15:41:44+02:00
7
  License: GPLv3 or later
8
  Contributors: gpriday, braam-genis
9
  Donate link: https://siteorigin.com/downloads/premium/
@@ -65,6 +65,18 @@ The SiteOrigin Widgets Bundle is the perfect platform to build widgets for your
65
 
66
  == Changelog ==
67
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  == 1.16.1 - 20 April 2020 ==
69
  * Accordion: When hiding panels, only search the current accordion and not nested accordions.
70
  * Slider Widgets: Removed slide navigation numbers from excerpt output.
1
  === SiteOrigin Widgets Bundle ===
2
  Tags: bundle, widget, button, slider, image, carousel, price table, google maps, tinymce, social links
3
  Requires at least: 4.2
4
+ Tested up to: 5.5
5
+ Stable tag: 1.17.0
6
+ Build time: 2020-05-22T18:23:28+02:00
7
  License: GPLv3 or later
8
  Contributors: gpriday, braam-genis
9
  Donate link: https://siteorigin.com/downloads/premium/
65
 
66
  == Changelog ==
67
 
68
+ == 1.17.0 - 22 May 2020 ==
69
+ * Simple Masonry: Added a preloader and related settings.
70
+ * Post Carousel: Migrated to Slick Carousel.
71
+ * Post Carousel: Added RTL support.
72
+ * Icon: Added Title field.
73
+ * Minor admin interface styling fixes.
74
+ * Price Table: Added title for the feature hover text.
75
+ * Testimonials: Added `Equalize testimonial height` setting.
76
+ * Testimonials: Fixed user image alignment.
77
+ * Switched to Wikimedia's fork of less.php.
78
+ * Added error suppression for external Less library.
79
+
80
  == 1.16.1 - 20 April 2020 ==
81
  * Accordion: When hiding panels, only search the current accordion and not nested accordions.
82
  * Slider Widgets: Removed slide navigation numbers from excerpt output.
so-widgets-bundle.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: SiteOrigin Widgets Bundle
4
  Description: A collection of all widgets, neatly bundled into a single plugin. It's also a framework to code your own widgets on top of.
5
- Version: 1.16.1
6
  Text Domain: so-widgets-bundle
7
  Domain Path: /lang
8
  Author: SiteOrigin
@@ -12,7 +12,7 @@ License: GPL3
12
  License URI: https://www.gnu.org/licenses/gpl-3.0.txt
13
  */
14
 
15
- define('SOW_BUNDLE_VERSION', '1.16.1');
16
  define('SOW_BUNDLE_BASE_FILE', __FILE__);
17
 
18
  // Allow JS suffix to be pre-set
2
  /*
3
  Plugin Name: SiteOrigin Widgets Bundle
4
  Description: A collection of all widgets, neatly bundled into a single plugin. It's also a framework to code your own widgets on top of.
5
+ Version: 1.17.0
6
  Text Domain: so-widgets-bundle
7
  Domain Path: /lang
8
  Author: SiteOrigin
12
  License URI: https://www.gnu.org/licenses/gpl-3.0.txt
13
  */
14
 
15
+ define('SOW_BUNDLE_VERSION', '1.17.0');
16
  define('SOW_BUNDLE_BASE_FILE', __FILE__);
17
 
18
  // Allow JS suffix to be pre-set
widgets/icon/icon.php CHANGED
@@ -62,6 +62,12 @@ class SiteOrigin_Widget_Icon_Widget extends SiteOrigin_Widget {
62
  'default' => false,
63
  'label' => __( 'Open in a new window', 'so-widgets-bundle' ),
64
  ),
 
 
 
 
 
 
65
  );
66
  }
67
 
@@ -89,6 +95,7 @@ class SiteOrigin_Widget_Icon_Widget extends SiteOrigin_Widget {
89
  'icon' => $instance['icon'],
90
  'url' => $instance['url'],
91
  'new_window' => $instance['new_window'],
 
92
  );
93
  }
94
  }
62
  'default' => false,
63
  'label' => __( 'Open in a new window', 'so-widgets-bundle' ),
64
  ),
65
+
66
+ 'title' => array(
67
+ 'type' => 'text',
68
+ 'label' => __( 'Title', 'so-widgets-bundle' ),
69
+ 'description' => __( ' Tooltip text to be shown when hovering over the icon.', 'so-widgets-bundle' ),
70
+ ),
71
  );
72
  }
73
 
95
  'icon' => $instance['icon'],
96
  'url' => $instance['url'],
97
  'new_window' => $instance['new_window'],
98
+ 'title' => ! empty( $instance['title'] ) ? $instance['title'] : '',
99
  );
100
  }
101
  }
widgets/icon/tpl/default.php CHANGED
@@ -10,7 +10,7 @@
10
  <?php if ( ! empty( $url ) ) : ?>
11
  <a href="<?php echo sow_esc_url( $url ) ?>" <?php if ( ! empty( $new_window ) ) echo 'target="_blank" rel="noopener noreferrer"'; ?>>
12
  <?php endif; ?>
13
- <?php echo siteorigin_widget_get_icon( $icon ); ?>
14
  <?php if ( ! empty( $url ) ) : ?>
15
  </a>
16
  <?php endif; ?>
10
  <?php if ( ! empty( $url ) ) : ?>
11
  <a href="<?php echo sow_esc_url( $url ) ?>" <?php if ( ! empty( $new_window ) ) echo 'target="_blank" rel="noopener noreferrer"'; ?>>
12
  <?php endif; ?>
13
+ <?php echo siteorigin_widget_get_icon( $icon, false, $title ); ?>
14
  <?php if ( ! empty( $url ) ) : ?>
15
  </a>
16
  <?php endif; ?>
widgets/post-carousel/css/style.css CHANGED
@@ -1 +1 @@
1
- @font-face{font-family:'carousel-arrows';src:url('fonts/carousel-arrows.eot?-95vnmw');src:url('fonts/carousel-arrows.eot?#iefix-95vnmw') format('embedded-opentype'),url('fonts/carousel-arrows.woff?-95vnmw') format('woff'),url('fonts/carousel-arrows.ttf?-95vnmw') format('truetype'),url('fonts/carousel-arrows.svg?-95vnmw#carousel-arrows') format('svg');font-weight:normal;font-style:normal}.sow-carousel-title .widget-title{display:inline-block;padding-right:15px}.sow-carousel-title a.sow-carousel-next,.sow-carousel-title a.sow-carousel-previous{font-family:'carousel-arrows';speak:none;display:block;float:right;overflow:hidden;margin-left:2px;margin-top:3px;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;font-size:8px;line-height:18px;width:18px;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;color:#FFFFFF;background:#333333;border-radius:2px}.sow-carousel-title a.sow-carousel-next:hover,.sow-carousel-title a.sow-carousel-previous:hover{background:#444444}.sow-carousel-title a.sow-carousel-next:before{content:"\e601"}.sow-carousel-title a.sow-carousel-previous:before{content:"\e600"}@media screen and (max-width:600px){.sow-carousel-title a.sow-carousel-previous{display:none}.sow-carousel-title a.sow-carousel-next{display:none}}.widget_sow-carousel{overflow-x:hidden;overflow-y:hidden}.sow-carousel-wrapper{overflow:hidden;position:relative;left:0;right:0}.sow-carousel-wrapper ul.sow-carousel-items{list-style:none;-webkit-transition:all .45s ease;-moz-transition:all .45s ease;-o-transition:all .45s ease;transition:all .45s ease;height:200px;margin:0;padding:0;zoom:1;width:99999px}.sow-carousel-wrapper ul.sow-carousel-items:before{content:'';display:block}.sow-carousel-wrapper ul.sow-carousel-items:after{content:'';display:table;clear:both}.sow-carousel-wrapper ul.sow-carousel-items li.sow-carousel-item{list-style:none;margin-top:0;margin-left:0;padding:0;display:block;float:left;margin-right:15px;overflow-x:hidden;overflow-y:hidden}.sow-carousel-wrapper ul.sow-carousel-items li.sow-carousel-item:last-child{margin-right:0}.sow-carousel-wrapper ul.sow-carousel-items li.sow-carousel-item.rtl{float:right}.sow-carousel-wrapper ul.sow-carousel-items li.sow-carousel-item.rtl:last-child{margin-right:15px}.sow-carousel-wrapper ul.sow-carousel-items li.sow-carousel-item .sow-carousel-thumbnail{line-height:0}.sow-carousel-wrapper ul.sow-carousel-items li.sow-carousel-item .sow-carousel-thumbnail a{display:block;background-position:center center}.sow-carousel-wrapper ul.sow-carousel-items li.sow-carousel-item .sow-carousel-thumbnail a,.sow-carousel-wrapper ul.sow-carousel-items li.sow-carousel-item .sow-carousel-thumbnail a span.overlay{-webkit-transition:all .35s ease;-moz-transition:all .35s ease;-o-transition:all .35s ease;transition:all .35s ease}.sow-carousel-wrapper ul.sow-carousel-items li.sow-carousel-item .sow-carousel-thumbnail a span.overlay{display:block;width:100%;height:100%;background:#3279BB;opacity:0;position:static}.sow-carousel-wrapper ul.sow-carousel-items li.sow-carousel-item .sow-carousel-thumbnail a:hover span{opacity:.5}.sow-carousel-wrapper ul.sow-carousel-items li.sow-carousel-item .sow-carousel-default-thumbnail{display:block;background:#E8E8E8;background:-webkit-gradient(linear, left bottom, left top, color-stop(0, #E0E0E0), color-stop(1, #E8E8E8));background:-ms-linear-gradient(bottom, #E0E0E0, #E8E8E8);background:-moz-linear-gradient(center bottom, #E0E0E0 0%, #E8E8E8 100%);background:-o-linear-gradient(#E8E8E8, #E0E0E0)}.sow-carousel-wrapper ul.sow-carousel-items li.sow-carousel-item h3{font-size:15px;text-align:center;font-weight:500;color:#474747;margin:10px 0 0 0}.sow-carousel-wrapper ul.sow-carousel-items li.sow-carousel-item h3 a{text-decoration:none;color:inherit}.sow-carousel-wrapper ul.sow-carousel-items li.sow-carousel-loading{display:block;float:left;background:url(images/carousel-loader.gif) #F6F6F6 center center no-repeat;margin:0}a.sow-carousel-previous{display:none}a.sow-carousel-next{display:none}
1
+ @font-face{font-family:'carousel-arrows';src:url('fonts/carousel-arrows.eot?-95vnmw');src:url('fonts/carousel-arrows.eot?#iefix-95vnmw') format('embedded-opentype'),url('fonts/carousel-arrows.woff?-95vnmw') format('woff'),url('fonts/carousel-arrows.ttf?-95vnmw') format('truetype'),url('fonts/carousel-arrows.svg?-95vnmw#carousel-arrows') format('svg');font-weight:normal;font-style:normal}.sow-carousel-title .widget-title{display:inline-block;padding-right:15px}body.rtl .sow-carousel-title .sow-carousel-navigation{float:left}body.rtl .sow-carousel-title .sow-carousel-navigation a{margin-left:0;margin-right:2px}.sow-carousel-title a.sow-carousel-next,.sow-carousel-title a.sow-carousel-previous{font-family:'carousel-arrows';speak:none;display:block;float:right;overflow:hidden;margin-left:2px;margin-top:3px;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;font-size:8px;line-height:18px;width:18px;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;color:#FFFFFF;background:#333333;border-radius:2px}.sow-carousel-title a.sow-carousel-next:hover,.sow-carousel-title a.sow-carousel-previous:hover{background:#444444}.sow-carousel-title a.sow-carousel-next:before{content:"\e601"}.sow-carousel-title a.sow-carousel-previous:before{content:"\e600"}@media screen and (max-width:600px){.sow-carousel-title a.sow-carousel-previous{display:none}.sow-carousel-title a.sow-carousel-next{display:none}}.widget_sow-carousel{overflow-x:hidden;overflow-y:hidden}.sow-carousel-wrapper{overflow:hidden;position:relative;left:0;right:0}.sow-carousel-wrapper .sow-carousel-items{-webkit-transition:all .45s ease;-moz-transition:all .45s ease;-o-transition:all .45s ease;transition:all .45s ease;margin:0;padding:0;zoom:1}.sow-carousel-wrapper .sow-carousel-items:before{content:'';display:block}.sow-carousel-wrapper .sow-carousel-items:after{content:'';display:table;clear:both}.sow-carousel-wrapper .sow-carousel-items .sow-carousel-item{display:block;margin-right:15px}.sow-carousel-wrapper .sow-carousel-items .sow-carousel-item .sow-carousel-thumbnail{line-height:0}.sow-carousel-wrapper .sow-carousel-items .sow-carousel-item .sow-carousel-thumbnail:focus{outline:none}.sow-carousel-wrapper .sow-carousel-items .sow-carousel-item .sow-carousel-thumbnail a{display:block;background-position:center center}.sow-carousel-wrapper .sow-carousel-items .sow-carousel-item .sow-carousel-thumbnail a,.sow-carousel-wrapper .sow-carousel-items .sow-carousel-item .sow-carousel-thumbnail a span.overlay{-webkit-transition:all .35s ease;-moz-transition:all .35s ease;-o-transition:all .35s ease;transition:all .35s ease}.sow-carousel-wrapper .sow-carousel-items .sow-carousel-item .sow-carousel-thumbnail a span.overlay{display:block;width:100%;height:100%;background:#3279BB;opacity:0;position:static}.sow-carousel-wrapper .sow-carousel-items .sow-carousel-item .sow-carousel-thumbnail a:hover span{opacity:.5}.sow-carousel-wrapper .sow-carousel-items .sow-carousel-item .sow-carousel-default-thumbnail{display:block;background:#E8E8E8;background:-webkit-gradient(linear, left bottom, left top, color-stop(0, #E0E0E0), color-stop(1, #E8E8E8));background:-ms-linear-gradient(bottom, #E0E0E0, #E8E8E8);background:-moz-linear-gradient(center bottom, #E0E0E0 0%, #E8E8E8 100%);background:-o-linear-gradient(#E8E8E8, #E0E0E0)}.sow-carousel-wrapper .sow-carousel-items .sow-carousel-item h3{font-size:15px;text-align:center;font-weight:500;color:#474747;margin:10px 0 0 0}.sow-carousel-wrapper .sow-carousel-items .sow-carousel-item h3 a{text-decoration:none;color:inherit}.sow-carousel-wrapper .sow-carousel-items .sow-carousel-loading{display:block;background:url(images/carousel-loader.gif) #F6F6F6 center center no-repeat;margin:0}a.sow-carousel-previous{display:none}a.sow-carousel-next{display:none}
widgets/post-carousel/js/carousel.js CHANGED
@@ -7,178 +7,117 @@ jQuery( function ( $ ) {
7
  sowb.setupCarousel = function () {
8
  // The carousel widget
9
  $( '.sow-carousel-wrapper' ).each( function () {
10
-
11
- var $$ = $( this ),
12
- $postsContainer = $$.closest( '.sow-carousel-container' ),
13
- $container = $$.closest( '.sow-carousel-container' ).parent(),
14
- $itemsContainer = $$.find( '.sow-carousel-items' ),
15
- $items = $$.find( '.sow-carousel-item' ),
16
- $firstItem = $items.eq( 0 );
17
-
18
- var position = 0,
19
- page = 1,
20
- fetching = false,
21
- numItems = $items.length,
22
- totalPosts = $$.data( 'post-count' ),
23
- loopPostsEnabled = $$.data( 'loop-posts-enabled' ),
24
- complete = numItems === totalPosts,
25
- itemWidth = ( $firstItem.width() + parseInt( $firstItem.css( 'margin-right' ) ) ),
26
- isRTL = $postsContainer.hasClass( 'js-rtl' ),
27
- updateProp = isRTL ? 'margin-right' : 'margin-left';
28
-
29
- var updatePosition = function () {
30
- const numVisibleItems = Math.ceil( $$.outerWidth() / itemWidth );
31
- const lastPosition = totalPosts - numVisibleItems + 1;
32
- const shouldLoop = loopPostsEnabled && !fetching && complete;
33
- const hasPosts = numItems !== null && !isNaN(numItems);
34
-
35
- if (position < 0) {
36
- position = (shouldLoop && hasPosts) ? lastPosition : 0;
37
- } else if (position > Math.min(numItems, lastPosition) ) {
38
- position = shouldLoop ? 0 : Math.min(numItems, lastPosition);
39
- }
40
-
41
- // Offset position by numVisibleItems to trigger the next fetch before the view is empty.
42
- if ( position + numVisibleItems >= numItems - 1 ) {
43
- // Fetch the next batch
44
- if ( !fetching && !complete ) {
45
- fetching = true;
46
- page++;
47
- $itemsContainer.append( '<li class="sow-carousel-item sow-carousel-loading"></li>' );
48
- var instanceHash = $container.find( 'input[name="instance_hash"]' ).val();
49
-
50
- $.get(
51
- $$.data( 'ajax-url' ),
52
- {
53
- query: $$.data( 'query' ),
54
- action: 'sow_carousel_load',
55
- paged: page,
56
- instance_hash: instanceHash
57
- },
58
- function ( data, status ) {
59
- var $items = $( data.html );
60
- $items.appendTo( $itemsContainer ).hide().fadeIn();
61
- $$.find( '.sow-carousel-loading' ).remove();
62
- numItems = $$.find( '.sow-carousel-item' ).length;
63
- complete = numItems === totalPosts;
64
- fetching = false;
65
- }
66
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  }
68
  }
69
- $itemsContainer.css( 'transition-duration', "0.45s" );
70
- $itemsContainer.css( updateProp, -( itemWidth * position) + 'px' );
71
- };
72
-
73
- $container.on( 'click', 'a.sow-carousel-previous',
74
- function ( e ) {
75
- e.preventDefault();
76
- position -= isRTL ? -1 : 1;
77
- updatePosition();
78
- }
79
- );
80
 
81
- $container.on( 'click', 'a.sow-carousel-next',
82
- function ( e ) {
83
- e.preventDefault();
84
- position += isRTL ? -1 : 1;
85
- updatePosition();
86
- }
87
- );
88
-
89
- // Verify "swipe" method exists prior to invoking it.
90
- if ( 'function' === typeof $$.swipe ) {
91
- var validSwipe = false;
92
- var prevDistance = 0;
93
- var startPosition = 0;
94
- var velocity = 0;
95
- var prevTime = 0;
96
- var posInterval;
97
- var negativeDirection = isRTL ? 'right' : 'left';
98
-
99
- var setNewPosition = function ( newPosition ) {
100
- if ( newPosition < 50 && newPosition > -( itemWidth * numItems ) ) {
101
- $itemsContainer.css( 'transition-duration', "0s" );
102
- $itemsContainer.css( updateProp, newPosition + 'px' );
103
- return true;
104
- }
105
- return false;
106
- };
107
-
108
- var setFinalPosition = function () {
109
- var finalPosition = parseInt( $itemsContainer.css( updateProp ) );
110
- position = Math.abs( Math.round( finalPosition / itemWidth ) );
111
- updatePosition();
112
- };
113
-
114
- $$.on( 'click', '.sow-carousel-item a',
115
- function ( event ) {
116
- if ( validSwipe ) {
117
- event.preventDefault();
118
- validSwipe = false;
119
  }
 
 
120
  }
121
- );
122
-
123
- $$.swipe( {
124
- excludedElements: "",
125
- triggerOnTouchEnd: true,
126
- threshold: 75,
127
- swipeStatus: function ( event, phase, direction, distance, duration, fingerCount, fingerData ) {
128
- if ( direction === 'up' || direction === 'down' ) {
129
- return false;
130
- }
131
-
132
- if ( phase === "start" ) {
133
- startPosition = -( itemWidth * position);
134
- prevTime = new Date().getTime();
135
- clearInterval( posInterval );
136
- }
137
- else if ( phase === "move" ) {
138
- if ( direction === negativeDirection ) {
139
- distance *= -1;
140
- }
141
- setNewPosition( startPosition + distance );
142
- var newTime = new Date().getTime();
143
- var timeDelta = (newTime - prevTime) / 1000;
144
- velocity = (distance - prevDistance) / timeDelta;
145
- prevTime = newTime;
146
- prevDistance = distance;
147
- }
148
- else if ( phase === "end" ) {
149
- validSwipe = true;
150
- if ( direction === negativeDirection ) {
151
- distance *= -1;
152
- }
153
- if ( Math.abs( velocity ) > 400 ) {
154
- velocity *= 0.1;
155
- var startTime = new Date().getTime();
156
- var cumulativeDistance = 0;
157
- posInterval = setInterval( function () {
158
- var time = (new Date().getTime() - startTime) / 1000;
159
- cumulativeDistance += velocity * time;
160
- var newPos = startPosition + distance + cumulativeDistance;
161
- var decel = 30;
162
- var end = (Math.abs( velocity ) - decel) < 0;
163
- if ( direction === negativeDirection ) {
164
- velocity += decel;
165
- } else {
166
- velocity -= decel;
167
- }
168
- if ( end || !setNewPosition( newPos ) ) {
169
- clearInterval( posInterval );
170
- setFinalPosition();
171
- }
172
- }, 20 );
173
- } else {
174
- setFinalPosition();
175
- }
176
- }
177
- else if ( phase === "cancel" ) {
178
- updatePosition();
179
- }
180
  }
181
- } );
 
 
 
 
 
 
 
 
 
182
  }
183
  } );
184
  };
7
  sowb.setupCarousel = function () {
8
  // The carousel widget
9
  $( '.sow-carousel-wrapper' ).each( function () {
10
+ var $$ = $( this );
11
+ direction = $$.attr( 'dir' );
12
+ $items = $$.find( '.sow-carousel-items' ),
13
+ $widget = $$.parent().parent();
14
+ instanceHash = $widget.find( 'input[name="instance_hash"]' ).val(),
15
+ numItems = $items.find( '.sow-carousel-item' ).length,
16
+ totalPosts = $$.data( 'post-count' ),
17
+ complete = numItems === totalPosts,
18
+ fetching = false,
19
+ page = 1,
20
+ itemWidth = $items.find( '.sow-carousel-item' ).outerWidth( true );
21
+
22
+ $items.not( '.slick-initialized' ).slick( {
23
+ arrows: false,
24
+ infinite: false,
25
+ rows: 0,
26
+ rtl: direction == 'rtl',
27
+ waitForAnimate: false,
28
+ touchThreshold: 20,
29
+ variableWidth: true,
30
+ responsive: [
31
+ {
32
+ breakpoint: carouselBreakpoints.tablet_portrait,
33
+ settings: {
34
+ slidesToScroll: 2,
35
+ slidesToShow: 2,
36
+ }
37
+ },
38
+ {
39
+ breakpoint: carouselBreakpoints.mobile,
40
+ settings: {
41
+ slidesToScroll: 1,
42
+ slidesToShow: 1,
43
+ }
44
+ },
45
+ ],
46
+ } );
47
+
48
+ // click is used rather than Slick's beforeChange or afterChange
49
+ // due to the inability to stop a slide from changing from those events
50
+ $widget.find( '.sow-carousel-previous, .sow-carousel-next' ).on( 'click', function( e ) {
51
+ e.preventDefault();
52
+ $items = $$.find( '.sow-carousel-items' );
53
+ const numVisibleItems = Math.ceil( $items.outerWidth() / itemWidth );
54
+ const lastPosition = numItems - numVisibleItems + 1
55
+
56
+ // Check if all posts are displayed
57
+ if ( ! complete ) {
58
+ // Check if we need to fetch the next batch of posts
59
+ if ( $items.slick( 'slickCurrentSlide' ) + numVisibleItems >= numItems - 1 ) {
60
+
61
+ if ( ! fetching ) {
62
+ // Fetch the next batch
63
+ fetching = true;
64
+ page++;
65
+
66
+ $items.slick( 'slickAdd', '<div class="sow-carousel-item sow-carousel-loading"></div>' );
67
+
68
+ $.get(
69
+ $$.data( 'ajax-url' ),
70
+ {
71
+ query: $$.data( 'query' ),
72
+ action: 'sow_carousel_load',
73
+ paged: page,
74
+ instance_hash: instanceHash
75
+ },
76
+ function ( data, status ) {
77
+ $items.find( '.sow-carousel-loading' ).remove();
78
+ $items.slick( 'slickAdd', data.html );
79
+ numItems = $$.find( '.sow-carousel-item' ).length;
80
+
81
+ complete = numItems === totalPosts;
82
+ fetching = false;
83
+ }
84
+ );
85
+ }
86
  }
87
  }
 
 
 
 
 
 
 
 
 
 
 
88
 
89
+ // A custom navigation is used due to a Slick limitation that prevents the slide from stopping
90
+ // the slide from changing and wanting to remain consistent with the previous carousel.
91
+ // https://github.com/kenwheeler/slick/pull/2104
92
+ //
93
+ // The Slick Infinite setting has a positioning bug that can result in the first item
94
+ // being hidden so we need to manually handle that
95
+ // https://github.com/kenwheeler/slick/issues/3567
96
+ if ( $( this ).hasClass( 'sow-carousel-next' ) ) {
97
+ if ( $items.slick( 'slickCurrentSlide' ) >= lastPosition ) {
98
+ if ( $$.data( 'loop-posts-enabled' ) && ! fetching ) {
99
+ $items.slick( 'slickGoTo', 0 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  }
101
+ } else {
102
+ $items.slick( 'slickNext' );
103
  }
104
+ } else if ( $( this ).hasClass( 'sow-carousel-previous' ) ) {
105
+ if ( $$.data( 'loop-posts-enabled' ) && $items.slick( 'slickCurrentSlide' ) == 0 ) {
106
+ // Navigate to the second last slide to prevent blank spacing
107
+ $items.slick( 'slickGoTo', lastPosition - ( complete ? 0 : 1) );
108
+ } else {
109
+ $items.slick( 'slickPrev' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  }
111
+ }
112
+ } );
113
+
114
+ } );
115
+
116
+ // Change Slick Settings on iPad Pro while Landscape
117
+ $( window ).resize( function() {
118
+ if ( window.matchMedia( '(min-width: ' + carouselBreakpoints.tablet_portrait + 'px) and (max-width: ' + carouselBreakpoints.tablet_landscape + 'px) and (orientation: landscape)' ).matches ) {
119
+ $( '.sow-carousel-items' ).slick( 'slickSetOption', 'slidesToShow', 3 );
120
+ $( '.sow-carousel-items' ).slick( 'slickSetOption', 'slidesToScroll', 3 );
121
  }
122
  } );
123
  };
widgets/post-carousel/js/carousel.min.js CHANGED
@@ -1 +1 @@
1
- var sowb=window.sowb||{};jQuery((function(e){sowb.setupCarousel=function(){e(".sow-carousel-wrapper").each((function(){var t=e(this),s=t.closest(".sow-carousel-container"),a=t.closest(".sow-carousel-container").parent(),n=t.find(".sow-carousel-items"),o=t.find(".sow-carousel-item"),i=o.eq(0),r=0,l=1,c=!1,u=o.length,w=t.data("post-count"),d=t.data("loop-posts-enabled"),f=u===w,p=i.width()+parseInt(i.css("margin-right")),h=s.hasClass("js-rtl"),g=h?"margin-right":"margin-left",m=function(){const s=Math.ceil(t.outerWidth()/p),o=w-s+1,i=d&&!c&&f,h=null!==u&&!isNaN(u);if(r<0?r=i&&h?o:0:r>Math.min(u,o)&&(r=i?0:Math.min(u,o)),r+s>=u-1&&!c&&!f){c=!0,l++,n.append('<li class="sow-carousel-item sow-carousel-loading"></li>');var m=a.find('input[name="instance_hash"]').val();e.get(t.data("ajax-url"),{query:t.data("query"),action:"sow_carousel_load",paged:l,instance_hash:m},(function(s,a){e(s.html).appendTo(n).hide().fadeIn(),t.find(".sow-carousel-loading").remove(),u=t.find(".sow-carousel-item").length,f=u===w,c=!1}))}n.css("transition-duration","0.45s"),n.css(g,-p*r+"px")};if(a.on("click","a.sow-carousel-previous",(function(e){e.preventDefault(),r-=h?-1:1,m()})),a.on("click","a.sow-carousel-next",(function(e){e.preventDefault(),r+=h?-1:1,m()})),"function"==typeof t.swipe){var v,b=!1,D=0,M=0,I=0,T=0,x=h?"right":"left",_=function(e){return e<50&&e>-p*u&&(n.css("transition-duration","0s"),n.css(g,e+"px"),!0)},y=function(){var e=parseInt(n.css(g));r=Math.abs(Math.round(e/p)),m()};t.on("click",".sow-carousel-item a",(function(e){b&&(e.preventDefault(),b=!1)})),t.swipe({excludedElements:"",triggerOnTouchEnd:!0,threshold:75,swipeStatus:function(e,t,s,a,n,o,i){if("up"===s||"down"===s)return!1;if("start"===t)M=-p*r,T=(new Date).getTime(),clearInterval(v);else if("move"===t){s===x&&(a*=-1),_(M+a);var l=(new Date).getTime();I=(a-D)/((l-T)/1e3),T=l,D=a}else if("end"===t)if(b=!0,s===x&&(a*=-1),Math.abs(I)>400){I*=.1;var c=(new Date).getTime(),u=0;v=setInterval((function(){var e=((new Date).getTime()-c)/1e3,t=M+a+(u+=I*e),n=Math.abs(I)-30<0;s===x?I+=30:I-=30,!n&&_(t)||(clearInterval(v),y())}),20)}else y();else"cancel"===t&&m()}})}}))},sowb.setupCarousel(),e(sowb).on("setup_widgets",sowb.setupCarousel)})),window.sowb=sowb;
1
+ var sowb=window.sowb||{};jQuery((function(s){sowb.setupCarousel=function(){s(".sow-carousel-wrapper").each((function(){var e=s(this);direction=e.attr("dir"),$items=e.find(".sow-carousel-items"),$widget=e.parent().parent(),instanceHash=$widget.find('input[name="instance_hash"]').val(),numItems=$items.find(".sow-carousel-item").length,totalPosts=e.data("post-count"),complete=numItems===totalPosts,fetching=!1,page=1,itemWidth=$items.find(".sow-carousel-item").outerWidth(!0),$items.not(".slick-initialized").slick({arrows:!1,infinite:!1,rows:0,rtl:"rtl"==direction,waitForAnimate:!1,touchThreshold:20,variableWidth:!0,responsive:[{breakpoint:carouselBreakpoints.tablet_portrait,settings:{slidesToScroll:2,slidesToShow:2}},{breakpoint:carouselBreakpoints.mobile,settings:{slidesToScroll:1,slidesToShow:1}}]}),$widget.find(".sow-carousel-previous, .sow-carousel-next").on("click",(function(t){t.preventDefault(),$items=e.find(".sow-carousel-items");const i=Math.ceil($items.outerWidth()/itemWidth),o=numItems-i+1;complete||$items.slick("slickCurrentSlide")+i>=numItems-1&&(fetching||(fetching=!0,page++,$items.slick("slickAdd",'<div class="sow-carousel-item sow-carousel-loading"></div>'),s.get(e.data("ajax-url"),{query:e.data("query"),action:"sow_carousel_load",paged:page,instance_hash:instanceHash},(function(s,t){$items.find(".sow-carousel-loading").remove(),$items.slick("slickAdd",s.html),numItems=e.find(".sow-carousel-item").length,complete=numItems===totalPosts,fetching=!1})))),s(this).hasClass("sow-carousel-next")?$items.slick("slickCurrentSlide")>=o?e.data("loop-posts-enabled")&&!fetching&&$items.slick("slickGoTo",0):$items.slick("slickNext"):s(this).hasClass("sow-carousel-previous")&&(e.data("loop-posts-enabled")&&0==$items.slick("slickCurrentSlide")?$items.slick("slickGoTo",o-(complete?0:1)):$items.slick("slickPrev"))}))})),s(window).resize((function(){window.matchMedia("(min-width: "+carouselBreakpoints.tablet_portrait+"px) and (max-width: "+carouselBreakpoints.tablet_landscape+"px) and (orientation: landscape)").matches&&(s(".sow-carousel-items").slick("slickSetOption","slidesToShow",3),s(".sow-carousel-items").slick("slickSetOption","slidesToScroll",3))}))},sowb.setupCarousel(),s(sowb).on("setup_widgets",sowb.setupCarousel)})),window.sowb=sowb;
widgets/post-carousel/post-carousel.php CHANGED
@@ -62,23 +62,26 @@ class SiteOrigin_Widget_PostCarousel_Widget extends SiteOrigin_Widget {
62
  }
63
 
64
  function initialize() {
 
 
65
  $this->register_frontend_scripts(
66
  array(
67
  array(
68
- 'touch-swipe',
69
- plugin_dir_url( SOW_BUNDLE_BASE_FILE ) . 'js/jquery.touchSwipe' . SOW_BUNDLE_JS_SUFFIX . '.js',
70
  array( 'jquery' ),
71
- '1.6.6'
72
  ),
73
  array(
74
  'sow-carousel-basic',
75
  plugin_dir_url(__FILE__) . 'js/carousel' . SOW_BUNDLE_JS_SUFFIX . '.js',
76
- array( 'jquery', 'touch-swipe' ),
77
  SOW_BUNDLE_VERSION,
78
  true
79
  )
80
  )
81
  );
 
82
  $this->register_frontend_styles(
83
  array(
84
  array(
@@ -86,6 +89,25 @@ class SiteOrigin_Widget_PostCarousel_Widget extends SiteOrigin_Widget {
86
  plugin_dir_url(__FILE__) . 'css/style.css',
87
  array(),
88
  SOW_BUNDLE_VERSION
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  )
90
  )
91
  );
@@ -159,12 +181,13 @@ class SiteOrigin_Widget_PostCarousel_Widget extends SiteOrigin_Widget {
159
  $default_thumbnail = wp_get_attachment_image_src( $instance['default_thumbnail'], 'sow-carousel-default' );
160
  }
161
 
162
- $query = wp_parse_args(
163
- siteorigin_widget_post_selector_process_query( $instance['posts'] ),
164
  array(
165
- 'paged' => empty( $instance['paged'] ) ? 1 : $instance['paged']
 
166
  )
167
- );
168
  $posts = new WP_Query( $query );
169
 
170
  return array(
62
  }
63
 
64
  function initialize() {
65
+ add_action( 'siteorigin_widgets_enqueue_frontend_scripts_sow-post-carousel', array( $this, 'enqueue_widget_scripts' ) );
66
+
67
  $this->register_frontend_scripts(
68
  array(
69
  array(
70
+ 'slick',
71
+ plugin_dir_url( SOW_BUNDLE_BASE_FILE ) . 'js/lib/slick' . SOW_BUNDLE_JS_SUFFIX . '.js',
72
  array( 'jquery' ),
73
+ '1.8.1'
74
  ),
75
  array(
76
  'sow-carousel-basic',
77
  plugin_dir_url(__FILE__) . 'js/carousel' . SOW_BUNDLE_JS_SUFFIX . '.js',
78
+ array( 'jquery', 'slick' ),
79
  SOW_BUNDLE_VERSION,
80
  true
81
  )
82
  )
83
  );
84
+
85
  $this->register_frontend_styles(
86
  array(
87
  array(
89
  plugin_dir_url(__FILE__) . 'css/style.css',
90
  array(),
91
  SOW_BUNDLE_VERSION
92
+ ),
93
+ array(
94
+ 'slick',
95
+ plugin_dir_url( SOW_BUNDLE_BASE_FILE ) . 'css/lib/slick.css',
96
+ array(),
97
+ '1.8.1'
98
+ )
99
+ )
100
+ );
101
+ }
102
+
103
+ function enqueue_widget_scripts() {
104
+ wp_localize_script( 'sow-carousel-basic', 'carouselBreakpoints',
105
+ apply_filters(
106
+ 'siteorigin_widgets_post_carousel_breakpoints',
107
+ array(
108
+ 'tablet_landscape' => 1366,
109
+ 'tablet_portrait' => 1025,
110
+ 'mobile' => 480,
111
  )
112
  )
113
  );
181
  $default_thumbnail = wp_get_attachment_image_src( $instance['default_thumbnail'], 'sow-carousel-default' );
182
  }
183
 
184
+ $query = siteorigin_widget_post_selector_process_query( wp_parse_args(
185
+ $instance['posts'],
186
  array(
187
+ 'paged' => empty( $instance['paged'] ) ? 1 : $instance['paged'],
188
+ 'posts_per_page' => -1,
189
  )
190
+ ) );
191
  $posts = new WP_Query( $query );
192
 
193
  return array(
widgets/post-carousel/styles/default.less CHANGED
@@ -6,9 +6,9 @@
6
 
7
  .sow-carousel-wrapper {
8
 
9
- ul.sow-carousel-items {
10
 
11
- li.sow-carousel-item {
12
  width: @thumbnail_width;
13
 
14
  .sow-carousel-thumbnail a {
@@ -31,9 +31,9 @@
31
  }
32
  }
33
 
34
- li.sow-carousel-loading {
35
  width: @thumbnail_width;
36
  height: @thumbnail_height;
37
  }
38
  }
39
- }
6
 
7
  .sow-carousel-wrapper {
8
 
9
+ .sow-carousel-items {
10
 
11
+ .sow-carousel-item {
12
  width: @thumbnail_width;
13
 
14
  .sow-carousel-thumbnail a {
31
  }
32
  }
33
 
34
+ .sow-carousel-loading {
35
  width: @thumbnail_width;
36
  height: @thumbnail_height;
37
  }
38
  }
39
+ }
widgets/post-carousel/tpl/base.php CHANGED
@@ -14,25 +14,28 @@
14
  <div class="sow-carousel-title">
15
  <?php if( ! empty( $title ) ) echo $args['before_title'] . esc_html( $title ) . $args['after_title'] ?>
16
 
17
- <a href="#" class="sow-carousel-next" title="<?php esc_attr_e('Next', 'so-widgets-bundle') ?>" aria-label="<?php esc_attr_e( 'Next Posts', 'so-widgets-bundle') ?>" role="button"></a>
18
- <a href="#" class="sow-carousel-previous" title="<?php esc_attr_e('Previous', 'so-widgets-bundle') ?>" aria-label="<?php esc_attr_e( 'Previous Posts', 'so-widgets-bundle') ?>" role="button"></a>
 
 
19
 
20
  </div>
21
 
22
- <div class="sow-carousel-container<?php if( is_rtl() ) echo ' js-rtl' ?>">
23
 
24
  <a href="#" class="sow-carousel-previous" title="<?php esc_attr_e('Previous', 'so-widgets-bundle') ?>" aria-label="<?php esc_attr_e( 'Previous Posts', 'so-widgets-bundle') ?>" role="button"></a>
25
 
26
  <a href="#" class="sow-carousel-next" title="<?php esc_attr_e('Next', 'so-widgets-bundle') ?>" aria-label="<?php esc_attr_e( 'Next Posts', 'so-widgets-bundle') ?>" role="button"></a>
27
 
28
  <div class="sow-carousel-wrapper"
29
- data-post-count="<?php echo esc_attr($posts->post_count) ?>"
30
  data-loop-posts-enabled="<?php echo esc_attr( $loop_posts ) ?>"
31
  data-ajax-url="<?php echo sow_esc_url( wp_nonce_url( admin_url('admin-ajax.php'), 'widgets_action', '_widgets_nonce' ) ) ?>"
 
32
  >
33
- <ul class="sow-carousel-items">
34
  <?php include plugin_dir_path( __FILE__ ) . 'carousel-post-loop.php' ?>
35
- </ul>
36
  </div>
37
  </div>
38
  <input type="hidden" name="instance_hash" value="<?php echo esc_attr( $storage_hash ) ?>"/>
14
  <div class="sow-carousel-title">
15
  <?php if( ! empty( $title ) ) echo $args['before_title'] . esc_html( $title ) . $args['after_title'] ?>
16
 
17
+ <div class="sow-carousel-navigation">
18
+ <a href="#" class="sow-carousel-next" title="<?php esc_attr_e('Next', 'so-widgets-bundle') ?>" aria-label="<?php esc_attr_e( 'Next Posts', 'so-widgets-bundle') ?>" role="button"></a>
19
+ <a href="#" class="sow-carousel-previous" title="<?php esc_attr_e('Previous', 'so-widgets-bundle') ?>" aria-label="<?php esc_attr_e( 'Previous Posts', 'so-widgets-bundle') ?>" role="button"></a>
20
+ </div>
21
 
22
  </div>
23
 
24
+ <div class="sow-carousel-container">
25
 
26
  <a href="#" class="sow-carousel-previous" title="<?php esc_attr_e('Previous', 'so-widgets-bundle') ?>" aria-label="<?php esc_attr_e( 'Previous Posts', 'so-widgets-bundle') ?>" role="button"></a>
27
 
28
  <a href="#" class="sow-carousel-next" title="<?php esc_attr_e('Next', 'so-widgets-bundle') ?>" aria-label="<?php esc_attr_e( 'Next Posts', 'so-widgets-bundle') ?>" role="button"></a>
29
 
30
  <div class="sow-carousel-wrapper"
31
+ data-post-count="<?php echo esc_attr($posts->found_posts) ?>"
32
  data-loop-posts-enabled="<?php echo esc_attr( $loop_posts ) ?>"
33
  data-ajax-url="<?php echo sow_esc_url( wp_nonce_url( admin_url('admin-ajax.php'), 'widgets_action', '_widgets_nonce' ) ) ?>"
34
+ dir="<?php echo is_rtl() ? 'rtl' : 'ltr'; ?>"
35
  >
36
+ <div class="sow-carousel-items">
37
  <?php include plugin_dir_path( __FILE__ ) . 'carousel-post-loop.php' ?>
38
+ </div>
39
  </div>
40
  </div>
41
  <input type="hidden" name="instance_hash" value="<?php echo esc_attr( $storage_hash ) ?>"/>
widgets/post-carousel/tpl/carousel-post-loop.php CHANGED
@@ -4,7 +4,7 @@
4
  * @var string $default_thumbnail
5
  */
6
  while($posts->have_posts()) : $posts->the_post(); ?>
7
- <li class="sow-carousel-item<?php if( is_rtl() ) echo ' rtl' ?>">
8
  <div class="sow-carousel-thumbnail">
9
  <?php if( has_post_thumbnail() ) : $img = wp_get_attachment_image_src(get_post_thumbnail_id(), $instance['image_size']); ?>
10
  <a href="<?php the_permalink() ?>" style="background-image: url(<?php echo sow_esc_url($img[0]) ?>)" aria-labelledby="sow-carousel-id-<?php echo the_ID(); ?>">
@@ -17,5 +17,5 @@ while($posts->have_posts()) : $posts->the_post(); ?>
17
  <?php endif; ?>
18
  </div>
19
  <h3><a href="<?php the_permalink() ?>" id="sow-carousel-id-<?php echo the_ID(); ?>"><?php the_title() ?></a></h3>
20
- </li>
21
  <?php endwhile; wp_reset_postdata(); ?>
4
  * @var string $default_thumbnail
5
  */
6
  while($posts->have_posts()) : $posts->the_post(); ?>
7
+ <div class="sow-carousel-item">
8
  <div class="sow-carousel-thumbnail">
9
  <?php if( has_post_thumbnail() ) : $img = wp_get_attachment_image_src(get_post_thumbnail_id(), $instance['image_size']); ?>
10
  <a href="<?php the_permalink() ?>" style="background-image: url(<?php echo sow_esc_url($img[0]) ?>)" aria-labelledby="sow-carousel-id-<?php echo the_ID(); ?>">
17
  <?php endif; ?>
18
  </div>
19
  <h3><a href="<?php the_permalink() ?>" id="sow-carousel-id-<?php echo the_ID(); ?>"><?php the_title() ?></a></h3>
20
+ </div>
21
  <?php endwhile; wp_reset_postdata(); ?>
widgets/price-table/tpl/atom.php CHANGED
@@ -38,7 +38,7 @@
38
 
39
  <div class="ow-pt-features">
40
  <?php foreach ( $column['features'] as $i => $feature ) : ?>
41
- <div class="ow-pt-feature ow-pt-feature-<?php echo $i % 2 == 0 ? 'even' : 'odd' ?> ow-pt-feature-index-<?php echo $i ?>">
42
 
43
  <?php
44
  if ( ! empty( $feature['icon_new'] ) ) : ?>
@@ -53,7 +53,7 @@
53
  </div>
54
  <?php endif; ?>
55
  <div class="sow-feature-text">
56
- <p <?php if ( ! empty( $feature['hover'] ) ) : ?>data-tooltip-text="<?php echo esc_attr( $feature['hover'] ) ?>"<?php endif; ?>>
57
  <?php echo wp_kses_post( $feature['text'] ) ?>
58
  </p>
59
  </div>
38
 
39
  <div class="ow-pt-features">
40
  <?php foreach ( $column['features'] as $i => $feature ) : ?>
41
+ <div class="ow-pt-feature ow-pt-feature-<?php echo $i % 2 == 0 ? 'even' : 'odd' ?> ow-pt-feature-index-<?php echo $i ?>" title="<?php echo ! empty( $feature['hover'] ) ? esc_attr( $feature['hover'] ) : ''; ?>">
42
 
43
  <?php
44
  if ( ! empty( $feature['icon_new'] ) ) : ?>
53
  </div>
54
  <?php endif; ?>
55
  <div class="sow-feature-text">
56
+ <p>
57
  <?php echo wp_kses_post( $feature['text'] ) ?>
58
  </p>
59
  </div>
widgets/simple-masonry/js/simple-masonry.js CHANGED
@@ -6,7 +6,7 @@ jQuery( function ( $ ) {
6
  sowb.setupSimpleMasonries = function () {
7
  var $grid = $( '.sow-masonry-grid' );
8
 
9
- if ( !$grid.is( ':visible' ) || $grid.data( 'initialized' ) ) {
10
  return $grid;
11
  }
12
 
@@ -60,11 +60,18 @@ jQuery( function ( $ ) {
60
  $img.css( 'margin-top', marginTop + 'px' );
61
  }
62
  } );
 
63
  $gridEl.packery( {
64
  itemSelector: '.sow-masonry-grid-item',
65
  columnWidth: columnWidth,
66
  gutter: layout.gutter
67
  } );
 
 
 
 
 
 
68
  } );
69
  } );
70
  };
6
  sowb.setupSimpleMasonries = function () {
7
  var $grid = $( '.sow-masonry-grid' );
8
 
9
+ if ( $grid.data( 'initialized' ) ) {
10
  return $grid;
11
  }
12
 
60
  $img.css( 'margin-top', marginTop + 'px' );
61
  }
62
  } );
63
+
64
  $gridEl.packery( {
65
  itemSelector: '.sow-masonry-grid-item',
66
  columnWidth: columnWidth,
67
  gutter: layout.gutter
68
  } );
69
+
70
+ // If preloader is present, remove and show masonry
71
+ if ( $grid.prev( '.sow-masonry-grid-preloader' ).length ) {
72
+ $grid.prev().remove()
73
+ $grid.css( 'opacity', 1 );
74
+ }
75
  } );
76
  } );
77
  };
widgets/simple-masonry/js/simple-masonry.min.js CHANGED
@@ -1 +1 @@
1
- var sowb=window.sowb||{};jQuery((function(t){sowb.setupSimpleMasonries=function(){var i=t(".sow-masonry-grid");if(!i.is(":visible")||i.data("initialized"))return i;var a=function(){i.each((function(){var i=t(this),a=i.data("layouts"),e=window.matchMedia("(max-width: "+a.tablet.breakPoint+"px)"),s=window.matchMedia("(max-width: "+a.mobile.breakPoint+"px)"),o=a.desktop;s.matches?o=a.mobile:e.matches&&(o=a.tablet);var n=o.numColumns;i.css("width","auto");var r=o.gutter*(n-1),h=(i.width()-r)/n;i.width(h*n+r),i.imagesLoaded((function(){i.find("> .sow-masonry-grid-item").each((function(){var i=t(this),a=i.data("colSpan");a=Math.max(Math.min(a,o.numColumns),1),i.width(h*a+o.gutter*(a-1));var e=i.data("rowSpan");e=Math.max(Math.min(e,o.numColumns),1);var s=o.rowHeight||h;i.css("height",s*e+o.gutter*(e-1));var n=i.find("> img,> a > img"),r=n.attr("height")>0?n.attr("width")/n.attr("height"):1,d=i.height()>0?i.width()/i.height():1;if((r=parseFloat(r.toFixed(3)))>(d=parseFloat(d.toFixed(3)))){n.css("width","auto"),n.css("height","100%"),n.css("margin-top","");var w=-.5*(n.width()-i.width());n.css("margin-left",w+"px")}else{n.css("height","auto"),n.css("width","100%"),n.css("margin-left","");var m=-.5*(n.height()-i.height());n.css("margin-top",m+"px")}})),i.packery({itemSelector:".sow-masonry-grid-item",columnWidth:h,gutter:o.gutter})}))}))};t(window).on("resize panelsStretchRows",a),setTimeout((function(){a()}),100),i.data("initialized",!0)},sowb.setupSimpleMasonries(),t(sowb).on("setup_widgets",sowb.setupSimpleMasonries)})),window.sowb=sowb;
1
+ var sowb=window.sowb||{};jQuery((function(t){sowb.setupSimpleMasonries=function(){var i=t(".sow-masonry-grid");if(i.data("initialized"))return i;var a=function(){i.each((function(){var a=t(this),e=a.data("layouts"),s=window.matchMedia("(max-width: "+e.tablet.breakPoint+"px)"),o=window.matchMedia("(max-width: "+e.mobile.breakPoint+"px)"),r=e.desktop;o.matches?r=e.mobile:s.matches&&(r=e.tablet);var n=r.numColumns;a.css("width","auto");var h=r.gutter*(n-1),d=(a.width()-h)/n;a.width(d*n+h),a.imagesLoaded((function(){a.find("> .sow-masonry-grid-item").each((function(){var i=t(this),a=i.data("colSpan");a=Math.max(Math.min(a,r.numColumns),1),i.width(d*a+r.gutter*(a-1));var e=i.data("rowSpan");e=Math.max(Math.min(e,r.numColumns),1);var s=r.rowHeight||d;i.css("height",s*e+r.gutter*(e-1));var o=i.find("> img,> a > img"),n=o.attr("height")>0?o.attr("width")/o.attr("height"):1,h=i.height()>0?i.width()/i.height():1;if((n=parseFloat(n.toFixed(3)))>(h=parseFloat(h.toFixed(3)))){o.css("width","auto"),o.css("height","100%"),o.css("margin-top","");var m=-.5*(o.width()-i.width());o.css("margin-left",m+"px")}else{o.css("height","auto"),o.css("width","100%"),o.css("margin-left","");var w=-.5*(o.height()-i.height());o.css("margin-top",w+"px")}})),a.packery({itemSelector:".sow-masonry-grid-item",columnWidth:d,gutter:r.gutter}),i.prev(".sow-masonry-grid-preloader").length&&(i.prev().remove(),i.css("opacity",1))}))}))};t(window).on("resize panelsStretchRows",a),setTimeout((function(){a()}),100),i.data("initialized",!0)},sowb.setupSimpleMasonries(),t(sowb).on("setup_widgets",sowb.setupSimpleMasonries)})),window.sowb=sowb;
widgets/simple-masonry/simple-masonry.php CHANGED
@@ -182,6 +182,28 @@ class SiteOrigin_Widget_Simple_Masonry_Widget extends SiteOrigin_Widget {
182
  'default' => 0
183
  )
184
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
185
  )
186
  );
187
  }
@@ -201,6 +223,7 @@ class SiteOrigin_Widget_Simple_Masonry_Widget extends SiteOrigin_Widget {
201
  return array(
202
  'args' => $args,
203
  'items' => $items,
 
204
  'layouts' => array(
205
  'desktop' => siteorigin_widgets_underscores_to_camel_case(
206
  array(
@@ -229,6 +252,19 @@ class SiteOrigin_Widget_Simple_Masonry_Widget extends SiteOrigin_Widget {
229
  );
230
  }
231
 
 
 
 
 
 
 
 
 
 
 
 
 
 
232
  function get_form_teaser(){
233
  if( class_exists( 'SiteOrigin_Premium' ) ) return false;
234
 
182
  'default' => 0
183
  )
184
  )
185
+ ),
186
+ 'preloader' => array(
187
+ 'type' => 'section',
188
+ 'label' => __( 'Preloader', 'so-widgets-bundle' ),
189
+ 'hide' => true,
190
+ 'fields' => array(
191
+ 'enabled' => array(
192
+ 'type' => 'checkbox',
193
+ 'label' => __( 'Enable preloader', 'so-widgets-bundle' )
194
+ ),
195
+ 'color' => array(
196
+ 'type' => 'color',
197
+ 'label' => __( 'Preloader icon color', 'so-widgets-bundle' ),
198
+ 'default' => '#232323'
199
+ ),
200
+ 'height' => array(
201
+ 'type' => 'measurement',
202
+ 'label' => __( 'Preloader height', 'so-widgets-bundle' ),
203
+ 'default' => '250px',
204
+ 'description' => __( 'The size of the preloader prior to the Masonry images showing.', 'so-widgets-bundle' )
205
+ )
206
+ )
207
  )
208
  );
209
  }
223
  return array(
224
  'args' => $args,
225
  'items' => $items,
226
+ 'preloader_enabled' => ! empty( $instance['preloader']['enabled'] ) ? true : false,
227
  'layouts' => array(
228
  'desktop' => siteorigin_widgets_underscores_to_camel_case(
229
  array(
252
  );
253
  }
254
 
255
+ public function get_less_variables( $instance ) {
256
+ if ( empty( $instance['preloader'] ) || ! $instance['preloader']['enabled'] ) {
257
+ return array();
258
+ }
259
+
260
+ return array(
261
+ 'preloader_enabled' => 'true',
262
+ 'preloader_height' => $instance['preloader']['height'],
263
+ 'preloader_color' => $instance['preloader']['color']
264
+ );
265
+ }
266
+
267
+
268
  function get_form_teaser(){
269
  if( class_exists( 'SiteOrigin_Premium' ) ) return false;
270
 
widgets/simple-masonry/styles/default.less CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
 
2
  .sow-masonry-grid-item {
3
  overflow: hidden;
@@ -6,4 +9,51 @@
6
  display: block;
7
  max-width: inherit;
8
  }
9
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @preloader_enabled: false;
2
+ @preloader_height: 250px;
3
+ @preloader_color: #000;
4
 
5
  .sow-masonry-grid-item {
6
  overflow: hidden;
9
  display: block;
10
  max-width: inherit;
11
  }
12
+ }
13
+
14
+ & when ( @preloader_enabled = true ) {
15
+ .sow-masonry-grid {
16
+ opacity: 0;
17
+ }
18
+
19
+ .sow-masonry-grid-preloader {
20
+ display: flex;
21
+ align-items: center;
22
+ justify-content: center;
23
+ position: relative;
24
+ width: 100%;
25
+ height: @preloader_height;
26
+
27
+ div {
28
+ box-sizing: border-box;
29
+ display: block;
30
+ position: absolute;
31
+ width: 30px;
32
+ height: 30px;
33
+ margin: 8px;
34
+ border: 2px solid @preloader_color;
35
+ border-radius: 50%;
36
+ animation: sow-masonry-preloader 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
37
+ border-color: @preloader_color transparent transparent transparent;
38
+
39
+ &:nth-child(1) {
40
+ animation-delay: -0.45s;
41
+ }
42
+ &:nth-child(2) {
43
+ animation-delay: -0.3s;
44
+ }
45
+ &:nth-child(3) {
46
+ animation-delay: -0.15s;
47
+ }
48
+ }
49
+ }
50
+
51
+ @keyframes sow-masonry-preloader {
52
+ 0% {
53
+ transform: rotate(0deg);
54
+ }
55
+ 100% {
56
+ transform: rotate(360deg);
57
+ }
58
+ }
59
+ }
widgets/simple-masonry/tpl/default.php CHANGED
@@ -8,8 +8,11 @@
8
 
9
  <?php if( !empty( $instance['widget_title'] ) ) echo $args['before_title'] . esc_html( $instance['widget_title'] ) . $args['after_title'] ?>
10
 
 
 
 
11
  <div class="sow-masonry-grid"
12
- data-layouts="<?php echo esc_attr( json_encode( $layouts ) ) ?>">
13
  <?php
14
  if( ! empty( $items ) ) {
15
  foreach ( $items as $item ) {
8
 
9
  <?php if( !empty( $instance['widget_title'] ) ) echo $args['before_title'] . esc_html( $instance['widget_title'] ) . $args['after_title'] ?>
10
 
11
+ <?php if ( $preloader_enabled ) : ?>
12
+ <div class="sow-masonry-grid-preloader"><div></div><div></div><div></div><div></div></div>
13
+ <?php endif; ?>
14
  <div class="sow-masonry-grid"
15
+ data-layouts="<?php echo esc_attr( json_encode( $layouts ) ) ?>" <?php echo ! empty( $preloader_enabled ) ? 'style="opacity: 0;"' : ''; ?>>
16
  <?php
17
  if( ! empty( $items ) ) {
18
  foreach ( $items as $item ) {
widgets/testimonial/css/style.css CHANGED
@@ -1 +1 @@
1
- .sow-testimonials{margin:-10px;zoom:1}.sow-testimonials:before{content:'';display:block}.sow-testimonials:after{content:'';display:table;clear:both}.sow-testimonials *{box-sizing:border-box}.sow-testimonials .sow-testimonial-wrapper{float:left;padding:10px}.sow-testimonials .sow-testimonial-user{position:relative}.sow-testimonials .sow-testimonial-user .sow-round-image-frame{background-size:cover;display:inline-block}.sow-testimonials .sow-testimonial-user .sow-image-wrapper{display:block}.sow-testimonials .sow-testimonial-user .sow-text strong{display:block}.sow-testimonials .sow-testimonial-user .sow-caret{position:absolute;height:24px;width:14px;top:20px;right:-3px;fill:#f0f0f0}.sow-testimonials .sow-testimonial-text>*:first-child{margin-top:0}.sow-testimonials .sow-testimonial-text>*:last-child{margin-bottom:0}.sow-testimonials .sow-user-left .sow-testimonial-user{text-align:left}.sow-testimonials .sow-user-right .sow-testimonial-user{text-align:right}.sow-testimonials .sow-user-middle .sow-testimonial-user{text-align:center}
1
+ .sow-testimonials{display:flex;flex-wrap:wrap}.sow-testimonials *{box-sizing:border-box}.sow-testimonials .sow-testimonial-wrapper{padding:10px}.sow-testimonials .sow-testimonial-wrapper.sow-layout-side .sow-testimonial{display:flex}.sow-testimonials .sow-testimonial-user{position:relative}.sow-testimonials .sow-testimonial-user .sow-round-image-frame{background-size:cover;display:inline-block}.sow-testimonials .sow-testimonial-user .sow-image-wrapper{display:block}.sow-testimonials .sow-testimonial-user .sow-text strong{display:block}.sow-testimonials .sow-testimonial-user .sow-caret{position:absolute;height:24px;width:14px;top:20px;right:-3px;fill:#f0f0f0}.sow-testimonials .sow-testimonial-text>*:first-child{margin-top:0}.sow-testimonials .sow-testimonial-text>*:last-child{margin-bottom:0}.sow-testimonials .sow-user-left .sow-testimonial-user{text-align:left}.sow-testimonials .sow-user-right .sow-image-wrapper{float:right}.sow-testimonials .sow-user-right .sow-text{clear:both}.sow-testimonials .sow-user-right .sow-testimonial-user{text-align:right}.sow-testimonials .sow-user-right .sow-testimonial{flex-direction:row-reverse}.sow-testimonials .sow-user-middle .sow-image-wrapper{margin:0 auto}.sow-testimonials .sow-user-middle .sow-testimonial-user{text-align:center}
widgets/testimonial/styles/default.less CHANGED
@@ -8,6 +8,7 @@
8
  @text_background: #f0f0f0;
9
  @text_color: #666;
10
  @text_border_radius: 4px;
 
11
 
12
  @title_font_family: default;
13
  @title_font_weight: default;
@@ -105,10 +106,28 @@
105
  // All the specific layouts
106
 
107
  .sow-testimonial-wrapper {
108
- .clearfix();
 
109
 
110
- &.sow-layout-side {
 
 
 
 
 
 
111
 
 
 
 
 
 
 
 
 
 
 
 
112
  &.sow-user-left,
113
  &.sow-user-middle {
114
  .sow-testimonial-user {
@@ -122,9 +141,6 @@
122
  }
123
  }
124
 
125
- .sow-testimonial-text {
126
- margin-left: 33%;
127
- }
128
  }
129
 
130
  &.sow-user-right {
@@ -141,10 +157,6 @@
141
  }
142
  }
143
 
144
- .sow-testimonial-text {
145
- margin-right: 33%;
146
- }
147
-
148
  }
149
 
150
  }
8
  @text_background: #f0f0f0;
9
  @text_color: #666;
10
  @text_border_radius: 4px;
11
+ @equalize_testimonial_height: default;
12
 
13
  @title_font_family: default;
14
  @title_font_weight: default;
106
  // All the specific layouts
107
 
108
  .sow-testimonial-wrapper {
109
+ & when (@equalize_testimonial_height = true) {
110
+ display: flex;
111
 
112
+ .sow-testimonial {
113
+ display: flex;
114
+
115
+ }
116
+ &.sow-layout-text-above,
117
+ &.sow-layout-text-below {
118
+ .sow-testimonial {
119
 
120
+ flex-direction: column;
121
+ }
122
+ }
123
+
124
+ .sow-testimonial-text {
125
+ display: flex;
126
+ height: 100%;
127
+ }
128
+ }
129
+
130
+ &.sow-layout-side {
131
  &.sow-user-left,
132
  &.sow-user-middle {
133
  .sow-testimonial-user {
141
  }
142
  }
143
 
 
 
 
144
  }
145
 
146
  &.sow-user-right {
157
  }
158
  }
159
 
 
 
 
 
160
  }
161
 
162
  }
widgets/testimonial/testimonial.php CHANGED
@@ -269,6 +269,11 @@ class SiteOrigin_Widgets_Testimonials_Widget extends SiteOrigin_Widget {
269
  ),
270
  'default' => 'side',
271
  ),
 
 
 
 
 
272
  ),
273
  ),
274
  );
@@ -312,6 +317,7 @@ class SiteOrigin_Widgets_Testimonials_Widget extends SiteOrigin_Widget {
312
  'testimonial_size' => round(100/$instance['settings']['per_line'], 4) . '%',
313
  'testimonial_padding' => intval($instance['design']['padding']) . 'px',
314
  'testimonial_background' => $instance['design']['colors']['testimonial_background'],
 
315
 
316
  // The text block
317
  'text_border_radius' => intval($instance['design']['border_radius']) . 'px',
269
  ),
270
  'default' => 'side',
271
  ),
272
+
273
+ 'equalize_testimonial_height' => array(
274
+ 'type' => 'checkbox',
275
+ 'label' => __('Equalize testimonial height', 'so-widgets-bundle'),
276
+ ),
277
  ),
278
  ),
279
  );
317
  'testimonial_size' => round(100/$instance['settings']['per_line'], 4) . '%',
318
  'testimonial_padding' => intval($instance['design']['padding']) . 'px',
319
  'testimonial_background' => $instance['design']['colors']['testimonial_background'],
320
+ 'equalize_testimonial_height' => ! empty( $instance['design']['equalize_testimonial_height'] ) ? 'true' : 'false',
321
 
322
  // The text block
323
  'text_border_radius' => intval($instance['design']['border_radius']) . 'px',