Real Testimonials - Version 2.3.0

Version Description

  • Oct 09, 2021 =
  • New: Live Preview option.
  • Fix: Few sites case, different plugin_dir issues.
  • Fix: Adaptive height issue to carousel layout when multi-column(s) is used.
  • Fix: Accessibility issues.
  • Fix: Several minor issues.
  • Improved: Shortcode settings panel text.
Download this release

Release Info

Developer shapedplugin
Plugin Icon 128x128 Real Testimonials
Version 2.3.0
Comparing to
See all releases

Code changes from version 2.2.19 to 2.3.0

admin/assets/css/admin.css CHANGED
@@ -990,4 +990,31 @@ div.sp-tfree-help .sp-tfree-upgrade-sticky-footer a.button{
990
  font-size: 14px;
991
  margin-right: 2px;
992
  color: #5db62e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
993
  }
990
  font-size: 14px;
991
  margin-right: 2px;
992
  color: #5db62e
993
+ }
994
+
995
+ /* Live preview */
996
+ .post-type-spt_shortcodes #sp_tpro-show-preview {
997
+ position: fixed;
998
+ right: 144px;
999
+ bottom: 30px;
1000
+ z-index: 1001;
1001
+ width: 155px;
1002
+ text-align: center;
1003
+ padding: 10px 0px;
1004
+ background: #54b154;
1005
+ color: #fff;
1006
+ border-radius: 3px;
1007
+ text-decoration: none;
1008
+ display: block;
1009
+ font-weight: 500;
1010
+ text-transform: uppercase;
1011
+ letter-spacing: 0.2px;
1012
+ margin: 0;
1013
+ box-sizing: border-box;
1014
+ border-color: #44a944;
1015
+ overflow: hidden;
1016
+ }
1017
+ .post-type-spt_testimonial #sp_tpro-show-preview,
1018
+ .post-type-spt_testimonial_form #sp_tpro-show-preview {
1019
+ display: none;
1020
  }
admin/assets/css/admin.min.css CHANGED
@@ -1 +1 @@
1
- .text-center{text-align:center}.spt-main-class .spftestimonial-header-inner h1{color:#444;font-size:22px;font-weight:600}.spt-main-class .spftestimonial-sticky .spftestimonial-header-inner{z-index:20}.spt-main-class .spftestimonial-metabox .spftestimonial-nav{position:inherit;float:none;width:100%;background:#f1f1f1}.spt-main-class .spftestimonial-metabox .spftestimonial-nav ul li{display:inline-block}.spt-main-class .spftestimonial-nav ul li a{text-transform:uppercase;font-weight:600}.spt-main-class .spftestimonial-metabox .spftestimonial-content{margin-left:0}.spt-main-class .spftestimonial-metabox{margin:-6px -12px -12px -12px}.spt-main-class .spftestimonial-metabox .spftestimonial-nav ul li a{background-color:#1595ce;font-size:14px;padding:15px 15px;line-height:1.4;color:#fff;border-right:1px solid #e2e2e1;font-weight:600;border-bottom:0}#sp_tpro_shortcode_options_new .spftestimonial-metabox .spftestimonial-nav ul li a{font-size:13px;text-transform:uppercase;padding:16px 15px}.spt-main-class .spftestimonial-nav ul li .spftestimonial-section-active:after{display:none}.spt-main-class .spftestimonial-metabox .spftestimonial-nav ul li .spftestimonial-section-active{color:#444;background-color:#fff;box-shadow:0 3px 0 0 #1595ce inset}.spt-main-class .spftestimonial-metabox .spftestimonial-nav ul li .spftestimonial-section-active .fa{color:#1595ce}.spt-main-class .spftestimonial-metabox .spftestimonial-nav-background{display:none}.spt-main-class.spftestimonial-theme-light .spftestimonial-container{border:1px solid #ccd0d4}.spt-main-class.spftestimonial-theme-light .spftestimonial-header-inner{border-bottom:1px solid #ccd0d4}.spt-main-class.spftestimonial-theme-light .spftestimonial-nav ul li a{color:#464646;background-color:#f5f5f5;border-top:0;border-right:0;border-bottom:1px solid #ccd0d4!important;margin-bottom:0;padding:15px 15px}.spt-main-class.spftestimonial-theme-light .spftestimonial-nav ul li .spftestimonial-section-active{box-shadow:3px 0 0 0 #1595ce inset;background-color:#fff;color:#1595ce}.spt-main-class.spftestimonial-theme-light .spftestimonial-nav ul ul li a{background-color:#f8fdff;padding:13px 15px 13px 24px}.spt-main-class.spftestimonial-theme-light .spftestimonial-nav-background{border-right:1px solid #ccd0d4}.spt-main-class .spftestimonial-field-border .spftestimonial--input,.spt-main-class .spftestimonial-field-dimensions .spftestimonial--input,.spt-main-class .spftestimonial-field-spacing .spftestimonial--input{margin-right:10px;margin-bottom:7px}.spt-main-class .spftestimonial-field-border .spftestimonial--input select,.spt-main-class .spftestimonial-field-dimensions .spftestimonial--input select,.spt-main-class .spftestimonial-field-spacing .spftestimonial--input select{line-height:26px}.spt-main-class .spftestimonial-field-border .spftestimonial--input input,.spt-main-class .spftestimonial-field-dimensions .spftestimonial--input input,.spt-main-class .spftestimonial-field-spacing .spftestimonial--input input{line-height:30px;float:left;padding:0;border-radius:0}.spt-main-class .spftestimonial-field-border .spftestimonial--label,.spt-main-class .spftestimonial-field-dimensions .spftestimonial--label,.spt-main-class .spftestimonial-field-spacing .spftestimonial--label{max-width:100%;font-size:12px;line-height:30px;vertical-align:top;text-align:center;color:#555;border:1px solid #ddd;background-color:#eee;padding:0 6px;min-height:30px}.spt-main-class .spftestimonial-field-border .spftestimonial--label-icon,.spt-main-class .spftestimonial-field-dimensions .spftestimonial--label-icon,.spt-main-class .spftestimonial-field-spacing .spftestimonial--label-icon{min-width:20px;border-radius:2px 0 0 2px}.spt-main-class .spftestimonial-field-border .spftestimonial--label-unit,.spt-main-class .spftestimonial-field-dimensions .spftestimonial--label-unit,.spt-main-class .spftestimonial-field-spacing .spftestimonial--label-unit{color:#999;border-radius:0 2px 2px 0}.spt-main-class .spftestimonial-field-spinner .spftestimonial--unit{float:right;height:30px;line-height:26px;text-align:center;border-left:none;color:#999;border:1px solid #ddd;border-left:0;background-color:#eee;padding:0 6px;margin:0;box-sizing:border-box}.spt-main-class .spftestimonial-field-spinner .ui-spinner-button{cursor:pointer;position:relative;overflow:hidden;margin:0;padding:0;width:30px;height:30px;line-height:30px;text-align:center;border:1px solid #ddd;color:#555;background-color:#eee;box-sizing:border-box}.spt-main-class .spftestimonial-field-spinner .ui-spinner-button:before{font-family:FontAwesome;font-size:16px;line-height:16px}.spt-main-class .spftestimonial-field-spinner .ui-spinner-down{float:left;border-right:0;border-radius:2px 0 0 2px;box-shadow:0 0 0}.spt-main-class .spftestimonial-field-spinner .ui-spinner-up{float:right;border-left:0;border-radius:0 2px 2px 0;box-shadow:0 0 0}.spt-main-class .spftestimonial-field-spinner input{width:60px;text-align:center;margin:0;padding:0 8px;height:31px;line-height:31px;border:1px solid #ddd;border-radius:0}.spt-main-class .spftestimonial-field-spinner input:focus{outline:0}.spt-main-class .spftestimonial-field-tabbed .spftestimonial-tabbed-section{border:1px solid #eee}.spt-main-class .spftestimonial-field-text input,.spt-main-class .spftestimonial-field-text_f input{width:340px;max-width:100%}.spt-main-class .control-section .spftestimonial-field .spftestimonial-title{margin-bottom:10px}.spt-main-class .control-section .spftestimonial-field .spftestimonial-title h4{font-size:14px}.spt-main-class .control-section .spftestimonial-field-background .spftestimonial--select{width:100%}.spt-main-class .control-section .spftestimonial-field-border select,.spt-main-class .control-section .spftestimonial-field-dimensions select,.spt-main-class .control-section .spftestimonial-field-spacing select{width:auto}.spt-main-class .spftestimonial-text-desc,.spt-main-class .spftestimonial-text-subtitle{font-style:italic}@media only screen and (max-width:1200px){.spt-main-class .spftestimonial-metabox .spftestimonial-field .spftestimonial-title{float:none;width:100%;margin-bottom:10px}.spt-main-class .spftestimonial-metabox .spftestimonial-field .spftestimonial-fieldset{margin-left:0}}@media only screen and (max-width:782px){.spt-main-class .spftestimonial-header-inner{text-align:center}.spt-main-class .spftestimonial-header-inner h1{width:100%;margin-bottom:10px}.spt-main-class .spftestimonial-header-left,.spt-main-class .spftestimonial-header-right,.spt-main-class .spftestimonial-search{width:100%}.spt-main-class .spftestimonial-search{text-align:center;margin-bottom:15px}.spt-main-class .spftestimonial-footer{text-align:center}.spt-main-class .spftestimonial-buttons{float:none}.spt-main-class .spftestimonial-copyright{float:none;margin-top:10px}.spt-main-class .spftestimonial-expand-all,.spt-main-class .spftestimonial-nav,.spt-main-class .spftestimonial-nav-background,.spt-main-class .spftestimonial-reset-section{display:none!important}.spt-main-class .spftestimonial-content{margin-left:0}.spt-main-class .spftestimonial-section,.spt-main-class .spftestimonial-section-title{display:block!important}.spt-main-class .spftestimonial-field .spftestimonial-title{float:none;width:100%;margin-bottom:10px}.spt-main-class .spftestimonial-field .spftestimonial-fieldset{margin-left:0}.spt-main-class .spftestimonial-modal-inner{width:350px;height:380px}.spt-main-class .spftestimonial-modal-content{height:282px}.spt-main-class .spftestimonial-icon-dialog .spftestimonial-modal-inner{width:305px;height:380px}.spt-main-class .spftestimonial-icon-dialog .spftestimonial-modal-content{height:267px}.spt-main-class .spftestimonial-modal-icon .spftestimonial-modal-inner{width:330px;height:385px}.spt-main-class .spftestimonial-modal-icon .spftestimonial-modal-content{height:252px}.spt-main-class .spftestimonial-profile>.spftestimonial-field>.spftestimonial-title{float:none;width:100%;margin-bottom:10px}.spt-main-class .spftestimonial-profile>.spftestimonial-field>.spftestimonial-fieldset{margin-left:0}}.sp-tpro-client-rating{float:left}.sp-tpro-client-rating:not(:checked)>input{visibility:hidden;display:none;width:0;height:0;float:right;top:100%;clip:rect(0,0,0,0);margin:0;padding:0;border:10px #fff solid}.sp-tpro-client-rating:not(:checked)>label{float:right;display:block;padding:0;margin:0;cursor:pointer;font-size:150%;line-height:1.2;color:#d4d4d4;width:1em}.sp-tpro-client-rating>input:checked~label{color:#f3bb00}.sp-tpro-client-rating:not(:checked)>label:hover,.sp-tpro-client-rating:not(:checked)>label:hover~label{color:#de7202}.sp-tpro-client-rating>input:checked+label:hover,.sp-tpro-client-rating>input:checked+label:hover~label,.sp-tpro-client-rating>input:checked~label:hover,.sp-tpro-client-rating>input:checked~label:hover~label,.sp-tpro-client-rating>label:hover~input:checked~label{color:#de7202}.spftestimonial-metabox .sp-tpro-banner{background-color:#0a73a7;padding:22px 28px;overflow:hidden;background-image:-webkit-gradient(linear,left top,right top,from(#0a73a7),to(#1595ce));background-image:linear-gradient(to right,#0a73a7,#1595ce)}.spftestimonial-metabox .sp-tpro-logo{float:left}.spftestimonial-metabox .sp-tpro-logo img{display:block;width:182px}.spftestimonial-metabox .sp-tpro-short-links{float:right;line-height:30px}.spftestimonial-metabox .sp-tpro-short-links a{color:#fff;text-decoration:none;margin-left:16px;font-size:15px;font-weight:600}.spftestimonial-metabox .sp-tpro-short-links a i.fa{margin-right:7px}.sp-testimonial-shortcode-divider{height:20px;background:#f1f1f1;border-top:1px solid #ddd}.spftestimonial-metabox .tpro_shortcode{display:inline-flex;width:100%;background-color:#fffdfd}.tpro_shortcode .tpro-col-lg-6{border-right:1px solid #ddd;width:50%}.tpro_shortcode .tpro-col-lg-6 .tpro_shortcode_content{padding:42px 16px}.tpro_shortcode .tpro-col-lg-6:last-child .tpro_shortcode_content{padding:42px 16px 0 16px}.shortcode.column-shortcode .sp_tfree_input{border:1px solid #cbcbcb;cursor:pointer}.tpro_shortcode .tpro-col-lg-6 .tpro_shortcode_content .tpro-sc-code{background-color:rgba(82,179,217,.11);padding:10px 15px 10px 30px;display:inline-block;border:1px solid #d1e4ef;border-radius:2px;cursor:pointer;background-image:url(../images/copy.svg);background-size:16px;background-position:10px center;background-repeat:no-repeat}.tpro_shortcode .tpro-col-lg-6:last-child{border-right:none}.tpro_shortcode .tpro-col-lg-6 .tpro-shortcode-title{font-weight:500;font-size:17px!important;padding-top:0!important;color:#4c5158}.tpro_shortcode .tpro-col-lg-6 p{margin-top:2px;color:#4c5158}.tpro_shortcode .tpro-col-lg-6 .back-image{max-width:100%;display:block;margin:0 auto}.tpro_shortcode .tpro-col-lg-6 textarea{border-color:transparent;box-shadow:none;background-color:#eee;padding:4px 6px;resize:none;text-align:center;max-width:100%}.post-type-spt_shortcodes td.shortcode.column-shortcode input{border-width:1px;border-style:solid;border-color:#cbcbcb;cursor:pointer}@media (max-width:1200px){.spftestimonial-metabox .tpro_shortcode{display:block}.tpro_shortcode .tpro-col-lg-6{width:100%;display:block;border-bottom:1px solid #ddd;border-right:none}.tpro_shortcode .tpro-col-lg-6:last-child{padding-bottom:42px}}.sp-testimonial-shortcode{background-color:rgba(82,179,217,.11);padding:8px 12px;display:inline-block;margin-left:8px}.selectable{-webkit-touch-callout:all;-webkit-user-select:all;-khtml-user-select:all;-moz-user-select:all;-ms-user-select:all;user-select:all}.js #sp_tpro_meta_options.postbox .handlediv,.js #sp_tpro_meta_options.postbox .hndle,.js #sp_tpro_meta_options.postbox .postbox-header,.js #sp_tpro_shortcode_options.postbox .handlediv,.js #sp_tpro_shortcode_options.postbox .hndle,.js #sp_tpro_shortcode_options.postbox .postbox-header{display:none}.sp-testimonial-font-color .wp-picker-container,.sp-testimonial-font-load .spftestimonial--switcher,.spftestimonial-field-typography .spftestimonial--block .chosen-container,.spftestimonial-field-typography .spftestimonial--block input.spftestimonial--font-size,.spftestimonial-field-typography .spftestimonial--block input.spftestimonial--letter-spacing,.spftestimonial-field-typography .spftestimonial--block input.spftestimonial--line-height,.spftestimonial-field-typography .spftestimonial--block input.spftestimonial--margin-bottom,.spftestimonial-field-typography .spftestimonial--block input.spftestimonial--margin-left,.spftestimonial-field-typography .spftestimonial--block input.spftestimonial--margin-right,.spftestimonial-field-typography .spftestimonial--block input.spftestimonial--margin-top{pointer-events:none;opacity:.6}.sp-tfree-text-center{text-align:center}div.sp-tfree-help .wp-badge{border:none;background:url(../images/icon-256.png) right no-repeat;background-size:128px 128px;box-shadow:none;height:auto;padding-top:128px}.about-wrap.sp-tfree-help [class$="-col"]{display:flex;justify-content:space-between;flex-wrap:wrap}.about-wrap [class$="-col"]{display:flex;justify-content:space-between;flex-wrap:wrap}.sp-tfree-help [class$="-col"] .col{flex:1;align-self:flex-start}.sp-tfree-help .col{margin-top:40px}.sp-tfree-help.about-wrap [class$="-col"] .col+.col{margin-left:0}.sp-tfree-help.about-wrap .help-section[class$="-col"] .col+.col{margin-left:20px}div.sp-tfree-help .headline-feature.feature-video{position:relative;margin:40px 0;padding-bottom:56.25%;width:100%;max-width:100%;height:0;text-align:center}div.sp-tfree-help .headline-feature.feature-video iframe{position:absolute;top:0;left:0;width:100%;height:100%}div.sp-tfree-help .feature-section .sp-tfree-feature{background-color:#fff;padding:20px 20px;border:1px solid #ddd}div.sp-tfree-help .feature-section .sp-tfree-feature h3{font-size:16px;margin-top:18px}div.sp-tfree-help .feature-section i.sp-tfree-font-icon{font-size:30px;display:block;color:#1595ce}div.sp-tfree-help .sp-tfree-pro-features .feature-section span.dashicons{font-size:22px;color:#fff;background-color:#1595ce;width:28px;height:28px;line-height:28px;border-radius:50%;margin-right:10px}div.sp-tfree-help .sp-tfree-pro-features .feature-section{margin-bottom:40px;margin-left:-2%}div.sp-tfree-help .sp-tfree-pro-features .feature-section .sp-tfree-feature h3{margin-top:0}div.sp-tfree-help .sp-tfree-pro-features .feature-section .sp-tfree-feature p{margin-bottom:0}div.sp-tfree-help .sp-tfree-pro-features .feature-section .sp-tfree-feature{box-shadow:0 0 10px 0 #ddd;margin:4px;border:0 solid}div.sp-tfree-help .sp-tfree-pro-features .feature-section.three-col .col{min-width:31.3%;max-width:31.3%;margin-top:20px;padding-left:2%}div.sp-tfree-help .sp-tfree-pro-features .sp-tfree-pro-subtitle{font-size:1.2em;margin-bottom:26px}div.sp-tfree-help .sp-tfree-upgrade-sticky-footer{position:fixed;bottom:0;background:#fff;width:calc(100% - 195px);z-index:9;margin-left:-25px;text-align:center;border:1px solid #dfdfdf;padding:15px 0;border-bottom:none}div.sp-tfree-help .sp-tfree-pro-features h2{font-size:2.5em;font-weight:400}div.sp-tfree-help .sp-tfree-upgrade-sticky-footer h3{margin-top:17px;margin-bottom:20px}div.sp-tfree-help .sp-tfree-upgrade-sticky-footer a.button{margin:0 8px}.sp-tfree-upgrade>h1{font-size:2.5em;color:#444;font-weight:300}.sp-tfree-upgrade>h1 span{font-weight:400}.sp-tfree-upgrade .about-text{margin-bottom:0}.sp-tfree-upgrade ul{margin-top:0}.about-wrap.sp-tfree-upgrade .about-text{min-height:60px}.about-wrap.sp-tfree-upgrade hr{order:0;height:0;margin:0;border-top:1px solid rgba(0,0,0,.1)}.sp-tfree-upgrade .sp-tfree-pro-features .feature-section{margin-bottom:40px;display:flex;flex-wrap:wrap}.sp-tfree-upgrade .sp-tfree-pro-features .feature-section .sp-tfree-feature h3{margin-top:0}.sp-tfree-upgrade .sp-tfree-pro-features .feature-section .sp-tfree-feature p{margin-bottom:0}.sp-tfree-upgrade .sp-tfree-pro-features .feature-section .sp-tfree-feature{box-shadow:0 0 10px 0 #ddd;margin:4px;border:0 solid}.sp-tfree-upgrade .sp-tfree-pro-features .feature-section.three-col .col{min-width:32%;max-width:32%;margin-top:20px;display:flex;align-self:auto}.sp-tfree-upgrade .sp-tfree-pro-features .sp-tfree-pro-subtitle{font-size:1.2em;margin-bottom:26px}.sp-tfree-upgrade .sp-tfree-pro-features h2,.sp-tfree-upgrade .sp-tfree-promo-video-title{font-size:2.2em;font-weight:400}.sp-tfree-join-community h2{font-size:2em}.sp-tfree-upgrade .sp-tfree-upgrade-sticky-footer h3{margin-top:17px;margin-bottom:20px}.sp-tfree-upgrade .sp-tfree-upgrade-sticky-footer a.button{margin:0 8px}.sp-tfree-upgrade .tfree-upgrade-btn{display:inline-block;padding:0 20px 0 0}.sp-tfree-upgrade .tfree-upgrade-btn a,.sp-tfree-upgrade a.tfree-upgrade-btn{text-decoration:none;text-align:center;font-size:16px}.sp-tfree-upgrade .tfree-upgrade-btn a:focus{outline:0}.sp-tfree-upgrade a.tfree-upgrade-btn,.sp-tfree-upgrade ul li.tfree-upgrade-btn:first-child a{background:#1595ce;padding:0 15px;line-height:46px;display:block;color:#fff;border-radius:3px;font-weight:500}.sp-tfree-upgrade ul li.tfree-upgrade-btn:last-child a{text-decoration:underline}.sp-tfree-upgrade ul li.tfree-upgrade-btn a i{margin-left:4px}.sp-tfree-upgrade ul li.tfree-upgrade-btn:last-child a i{font-size:14px}.sp-tfree-upgrade a.tfree-upgrade-btn{display:inline-block}#sp-tfree-review-notice{padding:15px 15px 15px 0;background-color:#fff;border-radius:3px;margin:20px 20px 0 0;margin-bottom:20px}#sp-tfree-review-notice .sp-tfree-plugin-icon{float:left;line-height:90px;text-align:center;width:100px;height:100px;margin-right:15px}#sp-tfree-review-notice .sp-tfree-plugin-icon img{max-width:83px;vertical-align:middle}#sp-tfree-review-notice .sp-tfree-notice-text{overflow:hidden}#sp-tfree-review-notice .sp-tfree-notice-text h3{font-size:24px;margin:0 0 5px;font-weight:400;line-height:1}#sp-tfree-review-notice .sp-tfree-notice-text p{margin:10px 0 10px 0;font-size:13px}#sp-tfree-review-notice .sp-tfree-notice-text p.sp-tfree-review-actions{margin:10px 0 2px 0}#sp-tfree-review-notice .sp-tfree-notice-text .sp-tfree-review-actions a{text-decoration:none;margin-right:8px;color:#63a37b;display:inline-block;position:relative}#sp-tfree-review-notice .sp-tfree-notice-text .sp-tfree-review-actions a span{padding-right:2px}#sp-tfree-review-notice .sp-tfree-notice-text .sp-tfree-review-actions a.button{color:#fff}@media (max-width:960px){div.sp-tfree-help .sp-tfree-upgrade-sticky-footer{width:calc(100%)}}@media screen and (max-width:782px){div.sp-tfree-help .three-col .col{min-width:48%!important;max-width:48%!important;margin-left:0!important}}@media (max-width:500px){div.sp-tfree-help .wp-badge{background-position-x:center}div.sp-tfree-help .three-col .col{min-width:100%!important;max-width:100%!important;margin-top:1em}}.post-type-spt_shortcodes td.shortcode.column-shortcode input{border:1px solid #cbcbcb}.trpo-copy-btn{display:inline-block;height:15px;line-height:38px;margin-bottom:-4px;margin-right:-30px;cursor:pointer;position:relative;z-index:99}.sptpro-after-copy-text{bottom:0;opacity:0;z-index:9999999;position:fixed;width:230px;left:180px;text-align:center;padding:15px 15px;line-height:15px;color:#fff;border-radius:3px;background:#32373c;border:1px solid #32373c}.sptpro-after-copy-text .fa-check-circle{font-size:14px;margin-right:2px;color:#5db62e}
1
+ .text-center{text-align:center}.spt-main-class .spftestimonial-header-inner h1{color:#444;font-size:22px;font-weight:600}.spt-main-class .spftestimonial-sticky .spftestimonial-header-inner{z-index:20}.spt-main-class .spftestimonial-metabox .spftestimonial-nav{position:inherit;float:none;width:100%;background:#f1f1f1}.spt-main-class .spftestimonial-metabox .spftestimonial-nav ul li{display:inline-block}.spt-main-class .spftestimonial-nav ul li a{text-transform:uppercase;font-weight:600}.spt-main-class .spftestimonial-metabox .spftestimonial-content{margin-left:0}.spt-main-class .spftestimonial-metabox{margin:-6px -12px -12px -12px}.spt-main-class .spftestimonial-metabox .spftestimonial-nav ul li a{background-color:#1595ce;font-size:14px;padding:15px 15px;line-height:1.4;color:#fff;border-right:1px solid #e2e2e1;font-weight:600;border-bottom:0}#sp_tpro_shortcode_options_new .spftestimonial-metabox .spftestimonial-nav ul li a{font-size:13px;text-transform:uppercase;padding:16px 15px}.spt-main-class .spftestimonial-nav ul li .spftestimonial-section-active:after{display:none}.spt-main-class .spftestimonial-metabox .spftestimonial-nav ul li .spftestimonial-section-active{color:#444;background-color:#fff;box-shadow:0 3px 0 0 #1595ce inset}.spt-main-class .spftestimonial-metabox .spftestimonial-nav ul li .spftestimonial-section-active .fa{color:#1595ce}.spt-main-class .spftestimonial-metabox .spftestimonial-nav-background{display:none}.spt-main-class.spftestimonial-theme-light .spftestimonial-container{border:1px solid #ccd0d4}.spt-main-class.spftestimonial-theme-light .spftestimonial-header-inner{border-bottom:1px solid #ccd0d4}.spt-main-class.spftestimonial-theme-light .spftestimonial-nav ul li a{color:#464646;background-color:#f5f5f5;border-top:0;border-right:0;border-bottom:1px solid #ccd0d4!important;margin-bottom:0;padding:15px 15px}.spt-main-class.spftestimonial-theme-light .spftestimonial-nav ul li .spftestimonial-section-active{box-shadow:3px 0 0 0 #1595ce inset;background-color:#fff;color:#1595ce}.spt-main-class.spftestimonial-theme-light .spftestimonial-nav ul ul li a{background-color:#f8fdff;padding:13px 15px 13px 24px}.spt-main-class.spftestimonial-theme-light .spftestimonial-nav-background{border-right:1px solid #ccd0d4}.spt-main-class .spftestimonial-field-border .spftestimonial--input,.spt-main-class .spftestimonial-field-dimensions .spftestimonial--input,.spt-main-class .spftestimonial-field-spacing .spftestimonial--input{margin-right:10px;margin-bottom:7px}.spt-main-class .spftestimonial-field-border .spftestimonial--input select,.spt-main-class .spftestimonial-field-dimensions .spftestimonial--input select,.spt-main-class .spftestimonial-field-spacing .spftestimonial--input select{line-height:26px}.spt-main-class .spftestimonial-field-border .spftestimonial--input input,.spt-main-class .spftestimonial-field-dimensions .spftestimonial--input input,.spt-main-class .spftestimonial-field-spacing .spftestimonial--input input{line-height:30px;float:left;padding:0;border-radius:0}.spt-main-class .spftestimonial-field-border .spftestimonial--label,.spt-main-class .spftestimonial-field-dimensions .spftestimonial--label,.spt-main-class .spftestimonial-field-spacing .spftestimonial--label{max-width:100%;font-size:12px;line-height:30px;vertical-align:top;text-align:center;color:#555;border:1px solid #ddd;background-color:#eee;padding:0 6px;min-height:30px}.spt-main-class .spftestimonial-field-border .spftestimonial--label-icon,.spt-main-class .spftestimonial-field-dimensions .spftestimonial--label-icon,.spt-main-class .spftestimonial-field-spacing .spftestimonial--label-icon{min-width:20px;border-radius:2px 0 0 2px}.spt-main-class .spftestimonial-field-border .spftestimonial--label-unit,.spt-main-class .spftestimonial-field-dimensions .spftestimonial--label-unit,.spt-main-class .spftestimonial-field-spacing .spftestimonial--label-unit{color:#999;border-radius:0 2px 2px 0}.spt-main-class .spftestimonial-field-spinner .spftestimonial--unit{float:right;height:30px;line-height:26px;text-align:center;border-left:none;color:#999;border:1px solid #ddd;border-left:0;background-color:#eee;padding:0 6px;margin:0;box-sizing:border-box}.spt-main-class .spftestimonial-field-spinner .ui-spinner-button{cursor:pointer;position:relative;overflow:hidden;margin:0;padding:0;width:30px;height:30px;line-height:30px;text-align:center;border:1px solid #ddd;color:#555;background-color:#eee;box-sizing:border-box}.spt-main-class .spftestimonial-field-spinner .ui-spinner-button:before{font-family:FontAwesome;font-size:16px;line-height:16px}.spt-main-class .spftestimonial-field-spinner .ui-spinner-down{float:left;border-right:0;border-radius:2px 0 0 2px;box-shadow:0 0 0}.spt-main-class .spftestimonial-field-spinner .ui-spinner-up{float:right;border-left:0;border-radius:0 2px 2px 0;box-shadow:0 0 0}.spt-main-class .spftestimonial-field-spinner input{width:60px;text-align:center;margin:0;padding:0 8px;height:31px;line-height:31px;border:1px solid #ddd;border-radius:0}.spt-main-class .spftestimonial-field-spinner input:focus{outline:0}.spt-main-class .spftestimonial-field-tabbed .spftestimonial-tabbed-section{border:1px solid #eee}.spt-main-class .spftestimonial-field-text input,.spt-main-class .spftestimonial-field-text_f input{width:340px;max-width:100%}.spt-main-class .control-section .spftestimonial-field .spftestimonial-title{margin-bottom:10px}.spt-main-class .control-section .spftestimonial-field .spftestimonial-title h4{font-size:14px}.spt-main-class .control-section .spftestimonial-field-background .spftestimonial--select{width:100%}.spt-main-class .control-section .spftestimonial-field-border select,.spt-main-class .control-section .spftestimonial-field-dimensions select,.spt-main-class .control-section .spftestimonial-field-spacing select{width:auto}.spt-main-class .spftestimonial-text-desc,.spt-main-class .spftestimonial-text-subtitle{font-style:italic}@media only screen and (max-width:1200px){.spt-main-class .spftestimonial-metabox .spftestimonial-field .spftestimonial-title{float:none;width:100%;margin-bottom:10px}.spt-main-class .spftestimonial-metabox .spftestimonial-field .spftestimonial-fieldset{margin-left:0}}@media only screen and (max-width:782px){.spt-main-class .spftestimonial-header-inner{text-align:center}.spt-main-class .spftestimonial-header-inner h1{width:100%;margin-bottom:10px}.spt-main-class .spftestimonial-header-left,.spt-main-class .spftestimonial-header-right,.spt-main-class .spftestimonial-search{width:100%}.spt-main-class .spftestimonial-search{text-align:center;margin-bottom:15px}.spt-main-class .spftestimonial-footer{text-align:center}.spt-main-class .spftestimonial-buttons{float:none}.spt-main-class .spftestimonial-copyright{float:none;margin-top:10px}.spt-main-class .spftestimonial-expand-all,.spt-main-class .spftestimonial-nav,.spt-main-class .spftestimonial-nav-background,.spt-main-class .spftestimonial-reset-section{display:none!important}.spt-main-class .spftestimonial-content{margin-left:0}.spt-main-class .spftestimonial-section,.spt-main-class .spftestimonial-section-title{display:block!important}.spt-main-class .spftestimonial-field .spftestimonial-title{float:none;width:100%;margin-bottom:10px}.spt-main-class .spftestimonial-field .spftestimonial-fieldset{margin-left:0}.spt-main-class .spftestimonial-modal-inner{width:350px;height:380px}.spt-main-class .spftestimonial-modal-content{height:282px}.spt-main-class .spftestimonial-icon-dialog .spftestimonial-modal-inner{width:305px;height:380px}.spt-main-class .spftestimonial-icon-dialog .spftestimonial-modal-content{height:267px}.spt-main-class .spftestimonial-modal-icon .spftestimonial-modal-inner{width:330px;height:385px}.spt-main-class .spftestimonial-modal-icon .spftestimonial-modal-content{height:252px}.spt-main-class .spftestimonial-profile>.spftestimonial-field>.spftestimonial-title{float:none;width:100%;margin-bottom:10px}.spt-main-class .spftestimonial-profile>.spftestimonial-field>.spftestimonial-fieldset{margin-left:0}}.sp-tpro-client-rating{float:left}.sp-tpro-client-rating:not(:checked)>input{visibility:hidden;display:none;width:0;height:0;float:right;top:100%;clip:rect(0,0,0,0);margin:0;padding:0;border:10px #fff solid}.sp-tpro-client-rating:not(:checked)>label{float:right;display:block;padding:0;margin:0;cursor:pointer;font-size:150%;line-height:1.2;color:#d4d4d4;width:1em}.sp-tpro-client-rating>input:checked~label{color:#f3bb00}.sp-tpro-client-rating:not(:checked)>label:hover,.sp-tpro-client-rating:not(:checked)>label:hover~label{color:#de7202}.sp-tpro-client-rating>input:checked+label:hover,.sp-tpro-client-rating>input:checked+label:hover~label,.sp-tpro-client-rating>input:checked~label:hover,.sp-tpro-client-rating>input:checked~label:hover~label,.sp-tpro-client-rating>label:hover~input:checked~label{color:#de7202}.spftestimonial-metabox .sp-tpro-banner{background-color:#0a73a7;padding:22px 28px;overflow:hidden;background-image:-webkit-gradient(linear,left top,right top,from(#0a73a7),to(#1595ce));background-image:linear-gradient(to right,#0a73a7,#1595ce)}.spftestimonial-metabox .sp-tpro-logo{float:left}.spftestimonial-metabox .sp-tpro-logo img{display:block;width:182px}.spftestimonial-metabox .sp-tpro-short-links{float:right;line-height:30px}.spftestimonial-metabox .sp-tpro-short-links a{color:#fff;text-decoration:none;margin-left:16px;font-size:15px;font-weight:600}.spftestimonial-metabox .sp-tpro-short-links a i.fa{margin-right:7px}.sp-testimonial-shortcode-divider{height:20px;background:#f1f1f1;border-top:1px solid #ddd}.spftestimonial-metabox .tpro_shortcode{display:inline-flex;width:100%;background-color:#fffdfd}.tpro_shortcode .tpro-col-lg-6{border-right:1px solid #ddd;width:50%}.tpro_shortcode .tpro-col-lg-6 .tpro_shortcode_content{padding:42px 16px}.tpro_shortcode .tpro-col-lg-6:last-child .tpro_shortcode_content{padding:42px 16px 0 16px}.shortcode.column-shortcode .sp_tfree_input{border:1px solid #cbcbcb;cursor:pointer}.tpro_shortcode .tpro-col-lg-6 .tpro_shortcode_content .tpro-sc-code{background-color:rgba(82,179,217,.11);padding:10px 15px 10px 30px;display:inline-block;border:1px solid #d1e4ef;border-radius:2px;cursor:pointer;background-image:url(../images/copy.svg);background-size:16px;background-position:10px center;background-repeat:no-repeat}.tpro_shortcode .tpro-col-lg-6:last-child{border-right:none}.tpro_shortcode .tpro-col-lg-6 .tpro-shortcode-title{font-weight:500;font-size:17px!important;padding-top:0!important;color:#4c5158}.tpro_shortcode .tpro-col-lg-6 p{margin-top:2px;color:#4c5158}.tpro_shortcode .tpro-col-lg-6 .back-image{max-width:100%;display:block;margin:0 auto}.tpro_shortcode .tpro-col-lg-6 textarea{border-color:transparent;box-shadow:none;background-color:#eee;padding:4px 6px;resize:none;text-align:center;max-width:100%}.post-type-spt_shortcodes td.shortcode.column-shortcode input{border-width:1px;border-style:solid;border-color:#cbcbcb;cursor:pointer}@media (max-width:1200px){.spftestimonial-metabox .tpro_shortcode{display:block}.tpro_shortcode .tpro-col-lg-6{width:100%;display:block;border-bottom:1px solid #ddd;border-right:none}.tpro_shortcode .tpro-col-lg-6:last-child{padding-bottom:42px}}.sp-testimonial-shortcode{background-color:rgba(82,179,217,.11);padding:8px 12px;display:inline-block;margin-left:8px}.selectable{-webkit-touch-callout:all;-webkit-user-select:all;-khtml-user-select:all;-moz-user-select:all;-ms-user-select:all;user-select:all}.js #sp_tpro_meta_options.postbox .handlediv,.js #sp_tpro_meta_options.postbox .hndle,.js #sp_tpro_meta_options.postbox .postbox-header,.js #sp_tpro_shortcode_options.postbox .handlediv,.js #sp_tpro_shortcode_options.postbox .hndle,.js #sp_tpro_shortcode_options.postbox .postbox-header{display:none}.sp-testimonial-font-color .wp-picker-container,.sp-testimonial-font-load .spftestimonial--switcher,.spftestimonial-field-typography .spftestimonial--block .chosen-container,.spftestimonial-field-typography .spftestimonial--block input.spftestimonial--font-size,.spftestimonial-field-typography .spftestimonial--block input.spftestimonial--letter-spacing,.spftestimonial-field-typography .spftestimonial--block input.spftestimonial--line-height,.spftestimonial-field-typography .spftestimonial--block input.spftestimonial--margin-bottom,.spftestimonial-field-typography .spftestimonial--block input.spftestimonial--margin-left,.spftestimonial-field-typography .spftestimonial--block input.spftestimonial--margin-right,.spftestimonial-field-typography .spftestimonial--block input.spftestimonial--margin-top{pointer-events:none;opacity:.6}.sp-tfree-text-center{text-align:center}div.sp-tfree-help .wp-badge{border:none;background:url(../images/icon-256.png) right no-repeat;background-size:128px 128px;box-shadow:none;height:auto;padding-top:128px}.about-wrap.sp-tfree-help [class$="-col"]{display:flex;justify-content:space-between;flex-wrap:wrap}.about-wrap [class$="-col"]{display:flex;justify-content:space-between;flex-wrap:wrap}.sp-tfree-help [class$="-col"] .col{flex:1;align-self:flex-start}.sp-tfree-help .col{margin-top:40px}.sp-tfree-help.about-wrap [class$="-col"] .col+.col{margin-left:0}.sp-tfree-help.about-wrap .help-section[class$="-col"] .col+.col{margin-left:20px}div.sp-tfree-help .headline-feature.feature-video{position:relative;margin:40px 0;padding-bottom:56.25%;width:100%;max-width:100%;height:0;text-align:center}div.sp-tfree-help .headline-feature.feature-video iframe{position:absolute;top:0;left:0;width:100%;height:100%}div.sp-tfree-help .feature-section .sp-tfree-feature{background-color:#fff;padding:20px 20px;border:1px solid #ddd}div.sp-tfree-help .feature-section .sp-tfree-feature h3{font-size:16px;margin-top:18px}div.sp-tfree-help .feature-section i.sp-tfree-font-icon{font-size:30px;display:block;color:#1595ce}div.sp-tfree-help .sp-tfree-pro-features .feature-section span.dashicons{font-size:22px;color:#fff;background-color:#1595ce;width:28px;height:28px;line-height:28px;border-radius:50%;margin-right:10px}div.sp-tfree-help .sp-tfree-pro-features .feature-section{margin-bottom:40px;margin-left:-2%}div.sp-tfree-help .sp-tfree-pro-features .feature-section .sp-tfree-feature h3{margin-top:0}div.sp-tfree-help .sp-tfree-pro-features .feature-section .sp-tfree-feature p{margin-bottom:0}div.sp-tfree-help .sp-tfree-pro-features .feature-section .sp-tfree-feature{box-shadow:0 0 10px 0 #ddd;margin:4px;border:0 solid}div.sp-tfree-help .sp-tfree-pro-features .feature-section.three-col .col{min-width:31.3%;max-width:31.3%;margin-top:20px;padding-left:2%}div.sp-tfree-help .sp-tfree-pro-features .sp-tfree-pro-subtitle{font-size:1.2em;margin-bottom:26px}div.sp-tfree-help .sp-tfree-upgrade-sticky-footer{position:fixed;bottom:0;background:#fff;width:calc(100% - 195px);z-index:9;margin-left:-25px;text-align:center;border:1px solid #dfdfdf;padding:15px 0;border-bottom:none}div.sp-tfree-help .sp-tfree-pro-features h2{font-size:2.5em;font-weight:400}div.sp-tfree-help .sp-tfree-upgrade-sticky-footer h3{margin-top:17px;margin-bottom:20px}div.sp-tfree-help .sp-tfree-upgrade-sticky-footer a.button{margin:0 8px}.sp-tfree-upgrade>h1{font-size:2.5em;color:#444;font-weight:300}.sp-tfree-upgrade>h1 span{font-weight:400}.sp-tfree-upgrade .about-text{margin-bottom:0}.sp-tfree-upgrade ul{margin-top:0}.about-wrap.sp-tfree-upgrade .about-text{min-height:60px}.about-wrap.sp-tfree-upgrade hr{order:0;height:0;margin:0;border-top:1px solid rgba(0,0,0,.1)}.sp-tfree-upgrade .sp-tfree-pro-features .feature-section{margin-bottom:40px;display:flex;flex-wrap:wrap}.sp-tfree-upgrade .sp-tfree-pro-features .feature-section .sp-tfree-feature h3{margin-top:0}.sp-tfree-upgrade .sp-tfree-pro-features .feature-section .sp-tfree-feature p{margin-bottom:0}.sp-tfree-upgrade .sp-tfree-pro-features .feature-section .sp-tfree-feature{box-shadow:0 0 10px 0 #ddd;margin:4px;border:0 solid}.sp-tfree-upgrade .sp-tfree-pro-features .feature-section.three-col .col{min-width:32%;max-width:32%;margin-top:20px;display:flex;align-self:auto}.sp-tfree-upgrade .sp-tfree-pro-features .sp-tfree-pro-subtitle{font-size:1.2em;margin-bottom:26px}.sp-tfree-upgrade .sp-tfree-pro-features h2,.sp-tfree-upgrade .sp-tfree-promo-video-title{font-size:2.2em;font-weight:400}.sp-tfree-join-community h2{font-size:2em}.sp-tfree-upgrade .sp-tfree-upgrade-sticky-footer h3{margin-top:17px;margin-bottom:20px}.sp-tfree-upgrade .sp-tfree-upgrade-sticky-footer a.button{margin:0 8px}.sp-tfree-upgrade .tfree-upgrade-btn{display:inline-block;padding:0 20px 0 0}.sp-tfree-upgrade .tfree-upgrade-btn a,.sp-tfree-upgrade a.tfree-upgrade-btn{text-decoration:none;text-align:center;font-size:16px}.sp-tfree-upgrade .tfree-upgrade-btn a:focus{outline:0}.sp-tfree-upgrade a.tfree-upgrade-btn,.sp-tfree-upgrade ul li.tfree-upgrade-btn:first-child a{background:#1595ce;padding:0 15px;line-height:46px;display:block;color:#fff;border-radius:3px;font-weight:500}.sp-tfree-upgrade ul li.tfree-upgrade-btn:last-child a{text-decoration:underline}.sp-tfree-upgrade ul li.tfree-upgrade-btn a i{margin-left:4px}.sp-tfree-upgrade ul li.tfree-upgrade-btn:last-child a i{font-size:14px}.sp-tfree-upgrade a.tfree-upgrade-btn{display:inline-block}#sp-tfree-review-notice{padding:15px 15px 15px 0;background-color:#fff;border-radius:3px;margin:20px 20px 0 0;margin-bottom:20px}#sp-tfree-review-notice .sp-tfree-plugin-icon{float:left;line-height:90px;text-align:center;width:100px;height:100px;margin-right:15px}#sp-tfree-review-notice .sp-tfree-plugin-icon img{max-width:83px;vertical-align:middle}#sp-tfree-review-notice .sp-tfree-notice-text{overflow:hidden}#sp-tfree-review-notice .sp-tfree-notice-text h3{font-size:24px;margin:0 0 5px;font-weight:400;line-height:1}#sp-tfree-review-notice .sp-tfree-notice-text p{margin:10px 0 10px 0;font-size:13px}#sp-tfree-review-notice .sp-tfree-notice-text p.sp-tfree-review-actions{margin:10px 0 2px 0}#sp-tfree-review-notice .sp-tfree-notice-text .sp-tfree-review-actions a{text-decoration:none;margin-right:8px;color:#63a37b;display:inline-block;position:relative}#sp-tfree-review-notice .sp-tfree-notice-text .sp-tfree-review-actions a span{padding-right:2px}#sp-tfree-review-notice .sp-tfree-notice-text .sp-tfree-review-actions a.button{color:#fff}@media (max-width:960px){div.sp-tfree-help .sp-tfree-upgrade-sticky-footer{width:calc(100%)}}@media screen and (max-width:782px){div.sp-tfree-help .three-col .col{min-width:48%!important;max-width:48%!important;margin-left:0!important}}@media (max-width:500px){div.sp-tfree-help .wp-badge{background-position-x:center}div.sp-tfree-help .three-col .col{min-width:100%!important;max-width:100%!important;margin-top:1em}}.post-type-spt_shortcodes td.shortcode.column-shortcode input{border:1px solid #cbcbcb}.trpo-copy-btn{display:inline-block;height:15px;line-height:38px;margin-bottom:-4px;margin-right:-30px;cursor:pointer;position:relative;z-index:99}.sptpro-after-copy-text{bottom:0;opacity:0;z-index:9999999;position:fixed;width:230px;left:180px;text-align:center;padding:15px 15px;line-height:15px;color:#fff;border-radius:3px;background:#32373c;border:1px solid #32373c}.sptpro-after-copy-text .fa-check-circle{font-size:14px;margin-right:2px;color:#5db62e}.post-type-spt_shortcodes #sp_tpro-show-preview{position:fixed;right:144px;bottom:30px;z-index:1001;width:155px;text-align:center;padding:10px 0;background:#54b154;color:#fff;border-radius:3px;text-decoration:none;display:block;font-weight:500;text-transform:uppercase;letter-spacing:.2px;margin:0;box-sizing:border-box;border-color:#44a944;overflow:hidden}.post-type-spt_testimonial #sp_tpro-show-preview,.post-type-spt_testimonial_form #sp_tpro-show-preview{display:none}
admin/preview/class-testimonial-free-preview.php ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The admin preview.
4
+ *
5
+ * @link http://shapedplugin.com
6
+ * @since 2.1.4
7
+ *
8
+ * @package Testimonial_free
9
+ * @subpackage Testimonial_free/admin
10
+ */
11
+
12
+ /**
13
+ * The admin preview.
14
+ *
15
+ * @package Testimonial_free
16
+ * @subpackage Testimonial_free/admin
17
+ * @author ShapedPlugin <support@shapedplugin.com>
18
+ */
19
+ class Testimonial_Free_Preview {
20
+ /**
21
+ * Initialize the class and set its properties.
22
+ *
23
+ * @since 2.1.4
24
+ */
25
+ public function __construct() {
26
+ $this->testimonial_preview_action();
27
+ }
28
+
29
+ /**
30
+ * Public Action
31
+ *
32
+ * @return void
33
+ */
34
+ private function testimonial_preview_action() {
35
+ // admin Preview.
36
+ add_action( 'wp_ajax_sp_tpro_preview_meta_box', array( $this, 'sp_tpro_preview_meta_box' ) );
37
+
38
+ }
39
+
40
+ /**
41
+ * Function Backed preview.
42
+ *
43
+ * @since 2.2.5
44
+ */
45
+ public function sp_tpro_preview_meta_box() {
46
+ $nonce = isset( $_POST['ajax_nonce'] ) ? sanitize_text_field( wp_unslash( $_POST['ajax_nonce'] ) ) : '';
47
+ if ( ! wp_verify_nonce( $nonce, 'spftestimonial_metabox_nonce' ) ) {
48
+ return;
49
+ }
50
+
51
+ $setting = array();
52
+ // XSS ok.
53
+ // No worries, This "POST" requests is sanitizing in the below array map.
54
+ $data = ! empty( $_POST['data'] ) ? wp_unslash( $_POST['data'] ) : ''; // phpcs:ignore
55
+ parse_str( $data, $setting );
56
+ // Preset Layouts.
57
+ $post_id = $setting['post_ID'];
58
+ $setting_options = get_option( 'sp_testimonial_pro_options' );
59
+ $shortcode_data = $setting['sp_tpro_shortcode_options'];
60
+ $main_section_title = $setting['post_title'];
61
+
62
+ $tfree_one_star = TFREE_Shortcode_Render::$tfree_one_star;
63
+ $tfree_two_star = TFREE_Shortcode_Render::$tfree_two_star;
64
+ $tfree_three_star = TFREE_Shortcode_Render::$tfree_three_star;
65
+ $tfree_four_star = TFREE_Shortcode_Render::$tfree_four_star;
66
+ $tfree_five_star = TFREE_Shortcode_Render::$tfree_five_star;
67
+
68
+ TFREE_Shortcode_Render::sp_tpro_html_show( $post_id, $setting_options, $shortcode_data, $tfree_one_star, $tfree_two_star, $tfree_three_star, $tfree_four_star, $tfree_five_star, $main_section_title );
69
+ ?>
70
+ <script src="<?php echo esc_url( SP_TFREE_URL . 'public/assets/js/slick.min.js' ); ?>" ></script>
71
+ <script src="<?php echo esc_url( SP_TFREE_URL . 'public/assets/js/sp-slick-active.js' ); ?>" ></script>
72
+ <?php
73
+ die();
74
+ }
75
+
76
+ }
77
+ new Testimonial_Free_Preview();
admin/views/framework/assets/css/spftestimonial.css CHANGED
@@ -699,6 +699,7 @@
699
  .spftestimonial-field .spftestimonial-title h4 {
700
  margin: 0;
701
  color: #23282d;
 
702
  }
703
  .spftestimonial-field .spftestimonial-fieldset {
704
  margin-left: 25%;
@@ -3832,6 +3833,10 @@ span.spftestimonial-shortcode-selectable ~ button {
3832
  right: auto;
3833
  top: auto;
3834
  }
 
 
 
 
3835
  /* Pro only submessage */
3836
 
3837
  .spftestimonial-field.spftestimonial-field-submessage.pro_only_field {
699
  .spftestimonial-field .spftestimonial-title h4 {
700
  margin: 0;
701
  color: #23282d;
702
+ display: inline-block;
703
  }
704
  .spftestimonial-field .spftestimonial-fieldset {
705
  margin-left: 25%;
3833
  right: auto;
3834
  top: auto;
3835
  }
3836
+ .spftestimonial-field.spftestimonial-field-checkbox .spftestimonial-help.spftestimonial-title-help {
3837
+ position: relative;
3838
+ bottom: 0;
3839
+ }
3840
  /* Pro only submessage */
3841
 
3842
  .spftestimonial-field.spftestimonial-field-submessage.pro_only_field {
admin/views/framework/assets/css/spftestimonial.min.css CHANGED
@@ -1 +1 @@
1
- .spftestimonial{position:relative}.spftestimonial label{padding:0;margin:0;display:inline-block}.spftestimonial-ab-icon{top:2px}#screen-meta-links+.spftestimonial-options{margin-top:40px}.spftestimonial-options{margin-top:20px;margin-right:20px}.spftestimonial-header{position:relative}.spftestimonial-header-inner{padding:25px}.spftestimonial-header-inner h1 img{height:24px;width:24px;margin-right:8px;margin-bottom:-4px}.spftestimonial-header-inner h1{color:#444;float:left;font-size:20px;line-height:35px;font-weight:600;margin:0}.spftestimonial-header-inner h1 small{font-size:11px;font-weight:500}.spftestimonial-sticky .spftestimonial-header-inner{position:fixed;z-index:99999;top:32px;-moz-box-shadow:0 5px 25px rgba(0,0,0,.125);-webkit-box-shadow:0 5px 25px rgba(0,0,0,.125);box-shadow:0 5px 25px rgba(0,0,0,.125)}.spftestimonial-header-left{float:left}.spftestimonial-header-right{float:right}.spftestimonial-buttons .button{margin:0 4px;padding:0 16px;border-radius:0;height:38px;font-size:13px;font-weight:500;text-transform:uppercase;color:#fff}.spftestimonial-buttons .button.spftestimonial-save-ajax{background-color:#02cc7b;border-color:transparent;color:#fff!important;-webkit-box-shadow:none;box-shadow:none;text-shadow:none;border-radius:4px;height:38px;width:75px;-webkit-transition:background-color .2s;transition:background-color .2s}.spftestimonial-buttons .button.spftestimonial-save-ajax:hover{background-color:#02bb71}.spftestimonial-buttons .button.spftestimonial-save-ajax:focus{color:#fff}.spftestimonial-buttons .button.spftestimonial-save-ajax[disabled]{background-color:#02bb71!important;border:none}.spftestimonial-buttons .button.spftestimonial-reset-all,.spftestimonial-buttons .button.spftestimonial-reset-section{background-color:#cd3c3c!important;border-color:transparent!important;-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:none!important;border-radius:4px;height:38px;-webkit-transition:background-color .2s;transition:background-color .2s}.spftestimonial-buttons .button.spftestimonial-reset-all:hover,.spftestimonial-buttons .button.spftestimonial-reset-section:hover{background-color:#b82f2f!important}.spftestimonial-buttons .button.spftestimonial-reset-section{background-color:#77777c!important}.spftestimonial-buttons .button.spftestimonial-reset-section:hover{background-color:#616166!important;color:#fff}.spftestimonial-nav{display:block;position:relative;z-index:10;float:left;width:225px}.spftestimonial-nav ul{clear:left;margin:0;list-style-type:none}.spftestimonial-nav ul li{margin-bottom:0}.spftestimonial-nav ul li a{font-size:13px;position:relative;display:block;padding:14px 12px;text-decoration:none;-moz-transition:all .3s ease;-o-transition:all .3s ease;-webkit-transition:all .3s ease;transition:all .3s ease}.spftestimonial-nav ul li a:focus{outline:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.spftestimonial-nav ul li .spftestimonial-section-active:after{content:" ";position:absolute;right:0;top:50%;height:0;width:0;pointer-events:none;border:solid transparent;border-right-color:#fff;border-width:4px;margin-top:-4px}.spftestimonial-nav ul li .spftestimonial-arrow:after{content:"\f054";display:inline-block;font-family:FontAwesome;font-size:9px;line-height:1;position:absolute;right:10px;top:50%;margin-top:-4px;-moz-transform:rotate(0);-ms-transform:rotate(0);-webkit-transform:rotate(0);transform:rotate(0)}.spftestimonial-nav ul li.spftestimonial-tab-active .spftestimonial-arrow:after{-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-webkit-transform:rotate(90deg);transform:rotate(90deg)}.spftestimonial-nav ul li.spftestimonial-tab-active ul{display:block}.spftestimonial-nav ul ul{display:none;position:relative}.spftestimonial-nav ul ul li a{font-size:12px;padding:12px 14px 12px 24px}.spftestimonial-nav .fa{width:20px;margin-right:5px;font-size:14px;text-align:center}.spftestimonial-nav .spftestimonial-label-error{margin-left:4px;vertical-align:top}.spftestimonial-nav-background{position:absolute;top:0;left:0;bottom:0;z-index:9;width:225px}.spftestimonial-wrapper{position:relative}.spftestimonial-content{position:relative;margin-left:225px;background-color:#fff;-moz-transition:opacity .2s;-o-transition:opacity .2s;-webkit-transition:opacity .2s;transition:opacity .2s}.spftestimonial-sections{float:left;width:100%}.spftestimonial-section{display:none}.spftestimonial-section-title{display:none;padding:20px 30px;background-color:#f5f5f5;border-top:1px solid #eee;border-bottom:1px solid #eee}.spftestimonial-section-title h3{margin:0;padding:0;font-size:13px;font-weight:700;text-transform:uppercase}.spftestimonial-section-title .fa{margin-right:5px}.spftestimonial-footer{padding:20px;font-size:11px}.spftestimonial-copyright{float:left;margin-top:5px}.spftestimonial-search-all .spftestimonial-nav,.spftestimonial-search-all .spftestimonial-nav-background,.spftestimonial-show-all .spftestimonial-nav,.spftestimonial-show-all .spftestimonial-nav-background{display:none}.spftestimonial-search-all .spftestimonial-content,.spftestimonial-show-all .spftestimonial-content{margin-left:0}.spftestimonial-search-all .spftestimonial-section,.spftestimonial-search-all .spftestimonial-section-title,.spftestimonial-show-all .spftestimonial-section,.spftestimonial-show-all .spftestimonial-section-title{display:block!important}.spftestimonial-search-all .spftestimonial-section-title{display:none!important}.spftestimonial-expand-all{float:left;padding:0 8px;margin-right:4px;z-index:1;font-size:14px;line-height:28px;cursor:pointer;user-select:none;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-transition:all .2s;-o-transition:all .2s;-webkit-transition:all .2s;transition:all .2s}.spftestimonial-expand-all span{font-size:11px;vertical-align:middle}.spftestimonial-search{float:left}.spftestimonial-search input{margin:0 2px 0 0;border:none;font-size:12px;line-height:28px;min-height:28px;text-align:inherit;padding:0 10px;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.spftestimonial-search input:focus{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.spftestimonial-saving .spftestimonial-buttons,.spftestimonial-saving .spftestimonial-content{cursor:default;pointer-events:none;opacity:.5}.spftestimonial-metabox{margin:-6px -12px -12px -12px}.spftestimonial-metabox .spftestimonial-section-title{padding:20px}.block-editor-page .spftestimonial-metabox{margin:-6px -14px -12px -14px}.spftestimonial-restore-wrapper{text-align:right;padding:10px;border-top:1px solid #eee}.spftestimonial-restore-wrapper .spftestimonial-button-cancel,.spftestimonial-restore-wrapper input{display:none}.spftestimonial-restore-wrapper span{-webkit-user-select:none;user-select:none}.spftestimonial-restore-wrapper input:checked~.spftestimonial-button-restore{display:none}.spftestimonial-restore-wrapper input:checked~.spftestimonial-button-cancel{display:inline-block}#side-sortables .spftestimonial-section-title{padding:12px}#side-sortables .spftestimonial-field{padding:12px}#side-sortables .spftestimonial-field .spftestimonial-title{float:none;width:100%;margin-bottom:10px}#side-sortables .spftestimonial-field .spftestimonial-fieldset{margin-left:0}#side-sortables .spftestimonial-notice{padding:12px 12px 12px 0}.spftestimonial-tooltip{position:absolute;z-index:5000001;font-size:12px;line-height:1.4;text-align:left;text-decoration:none;padding:6px 12px;max-width:200px;color:#fff;background-color:#000;background-color:rgba(0,0,0,.85);-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}.spftestimonial-theme-dark .spftestimonial-header-inner{background-color:#050505}.spftestimonial-theme-dark .spftestimonial-header-inner h1{color:#fff}.spftestimonial-theme-dark .spftestimonial-header-inner h1 small{color:#555}.spftestimonial-theme-dark .spftestimonial-expand-all{color:#999;background-color:#222}.spftestimonial-theme-dark .spftestimonial-expand-all:hover{color:#fff;background-color:#333}.spftestimonial-theme-dark .spftestimonial-search input{color:#fff;background-color:#222}.spftestimonial-theme-dark .spftestimonial-search:focus{background-color:#444}.spftestimonial-theme-dark .spftestimonial-search::-webkit-input-placeholder{color:#666}.spftestimonial-theme-dark .spftestimonial-nav ul li a{color:#999;background-color:#222;border-bottom:1px solid #2f2f2f}.spftestimonial-theme-dark .spftestimonial-nav ul li a:hover{color:#fff}.spftestimonial-theme-dark .spftestimonial-nav ul li .spftestimonial-section-active{color:#fff;background-color:#111}.spftestimonial-theme-dark .spftestimonial-nav ul ul li a{background-color:#191919;border-bottom:1px solid #2f2f2f}.spftestimonial-theme-dark .spftestimonial-nav ul ul li .spftestimonial-section-active{background-color:#101010}.spftestimonial-theme-dark .spftestimonial-nav ul ul:before{background-color:rgba(34,34,34,.75)}.spftestimonial-theme-dark .spftestimonial-nav>ul>li:last-child>a{border-bottom:none}.spftestimonial-theme-dark .spftestimonial-nav-background{background-color:#222}.spftestimonial-theme-dark .spftestimonial-footer{color:#555;background-color:#050505}.spftestimonial-theme-light .spftestimonial-container{border:1px solid #e5e5e5;-moz-box-shadow:0 0 15px rgba(0,0,0,.04);-webkit-box-shadow:0 0 15px rgba(0,0,0,.04);box-shadow:0 0 15px rgba(0,0,0,.04)}.spftestimonial-theme-light .spftestimonial-header-inner{border-bottom:1px solid #e5e5e5;background-color:#f5f5f5;background:linear-gradient(#fefefe,#f5f5f5)}.spftestimonial-theme-light .spftestimonial-header-inner h1 small{color:#999}.spftestimonial-theme-light .spftestimonial-expand-all{color:#999;background-color:#fff;-moz-box-shadow:0 1px 1px rgba(0,0,0,.05);-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.spftestimonial-theme-light .spftestimonial-expand-all:hover{color:#555}.spftestimonial-theme-light .spftestimonial-search input{color:#555;background-color:#fff;-moz-box-shadow:0 1px 1px rgba(0,0,0,.05);-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.spftestimonial-theme-light .spftestimonial-search input::-webkit-input-placeholder{color:#bbb}.spftestimonial-theme-light .spftestimonial-nav ul li a{color:#666;background-color:#f5f5f5;border-bottom:1px solid #e5e5e5}.spftestimonial-theme-light .spftestimonial-nav ul li a:hover{color:#222}.spftestimonial-theme-light .spftestimonial-nav ul li .spftestimonial-section-active{color:#222;background-color:#fff}.spftestimonial-theme-light .spftestimonial-nav ul li .spftestimonial-section-active:after{display:none}.spftestimonial-theme-light .spftestimonial-nav ul ul li a{background-color:#eee;border-bottom:1px solid #e5e5e5}.spftestimonial-theme-light .spftestimonial-nav>ul>li:last-child>a{border-bottom:none}.spftestimonial-theme-light .spftestimonial-nav-background{background-color:#f5f5f5}.spftestimonial-theme-light .spftestimonial-footer{color:#555;border-top:1px solid #e5e5e5;background-color:#f5f5f5;background:linear-gradient(#fafafa,#f5f5f5)}.spftestimonial-field{position:relative;padding:20px 30px}.spftestimonial-field p:first-child{margin-top:0}.spftestimonial-field p:last-child{margin-bottom:0}.spftestimonial-field:after,.spftestimonial-field:before{content:" ";display:table}.spftestimonial-field:after{clear:both}.spftestimonial-field h4{margin-top:0}.spftestimonial-field .spftestimonial-title{position:relative;width:20%;float:left}.spftestimonial-field .spftestimonial-title h4{margin:0;color:#23282d}.spftestimonial-field .spftestimonial-fieldset{margin-left:25%}.spftestimonial-pseudo-field{padding:0 5px 0 0!important;display:inline-block}.spftestimonial-pseudo-field+.spftestimonial-pseudo-field{border:0}.spftestimonial-pseudo-field pre{display:none}.spftestimonial-field-accordion .spftestimonial-accordion-item{position:relative;margin-bottom:5px}.spftestimonial-field-accordion .spftestimonial-accordion-item h4{font-size:1em}.spftestimonial-field-accordion .spftestimonial-accordion-title{display:block;cursor:pointer;position:relative;margin:0;padding:15px;min-height:0;font-size:100%;user-select:none;border:1px solid #ccd0d4;background-color:#fafafa;box-shadow:0 1px 1px rgba(0,0,0,.04);transition:border-color .15s}.spftestimonial-field-accordion .spftestimonial-accordion-title:active,.spftestimonial-field-accordion .spftestimonial-accordion-title:focus,.spftestimonial-field-accordion .spftestimonial-accordion-title:hover{outline:0;border-color:#999}.spftestimonial-field-accordion .spftestimonial-accordion-icon{width:14px;text-align:center}.spftestimonial-field-accordion .spftestimonial--icon{width:20px;text-align:center}.spftestimonial-field-accordion .spftestimonial-accordion-content{display:none;padding:0;border:1px solid #ccd0d4;border-top:none;background-color:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.spftestimonial-field-accordion .spftestimonial-accordion-content>.spftestimonial-field{padding:15px}.spftestimonial-field-accordion .spftestimonial-accordion-open{display:block}.spftestimonial-field-background .spftestimonial-field{border:0!important;padding:0;margin-bottom:6px;margin-right:6px}.spftestimonial-field-background .spftestimonial--title{color:#777;font-size:12px}.spftestimonial-field-background .spftestimonial--background-colors{display:flex}.spftestimonial-field-background .spftestimonial--background-attributes{display:flex;flex-wrap:wrap}.spftestimonial-field-background .spftestimonial--background-attributes select{min-width:100%;margin:0}.spftestimonial-field-background .spftestimonial--background-attributes .spftestimonial-field{flex:1}.spftestimonial-field-background .spftestimonial--attributes-hidden{display:none}.spftestimonial-field-background .wp-color-result.button{margin-bottom:0}.spftestimonial-field-backup textarea{width:100%;min-height:200px;margin-bottom:5px}.spftestimonial-field-backup small{display:inline-block;margin:5px}.spftestimonial-field-backup hr{margin:20px 0;border:none;border-bottom:1px solid #e5e5e5}.spftestimonial-field-custom_size.disabled .spftestimonial-fieldset{pointer-events:none;opacity:.7}.spftestimonial-field-custom_size.disabled .spftestimonial-fieldset .spftestimonial--input:after{content:'Pro';text-transform:uppercase;line-height:30px;margin-left:6px;color:#444}.spftestimonial-field-column .spftestimonial--input input,.spftestimonial-field-custom_size .spftestimonial--input input{border-radius:0 4px 4px 0}.spftestimonial-field-column .spftestimonial--input{float:left}.spftestimonial-field-custom_size .spftestimonial--input{float:left;margin-right:10px;margin-bottom:7px}.spftestimonial-field-custom_size .spftestimonial--input input{line-height:30px;float:left;margin:0;padding:0;width:65px;max-width:100%;text-align:center;border-radius:0}.spftestimonial-field-custom_size .spftestimonial--label.spftestimonial--label-unit{border-right:1px solid #ddd;border-left:0;border-radius:0 2px 2px 0}.spftestimonial-field-column .spftestimonial--label,.spftestimonial-field-custom_size .spftestimonial--label{float:left;max-width:100%;font-size:12px;line-height:30px;vertical-align:top;text-align:center;color:#555;border:1px solid #ddd;background-color:#eee;padding:0 6px;min-height:30px;min-width:20px;border-right:0;border-radius:4px 0 0 4px}.spftestimonial-field-border .spftestimonial--inputs,.spftestimonial-field-column .spftestimonial--inputs,.spftestimonial-field-dimensions .spftestimonial--inputs,.spftestimonial-field-spacing .spftestimonial--inputs{float:left;display:flex;flex-wrap:wrap}.spftestimonial-field-border .spftestimonial--input,.spftestimonial-field-column .spftestimonial--input,.spftestimonial-field-dimensions .spftestimonial--input,.spftestimonial-field-spacing .spftestimonial--input{display:flex;padding-right:6px;padding-bottom:4px;box-sizing:border-box}.spftestimonial-field-border .spftestimonial--input select,.spftestimonial-field-dimensions .spftestimonial--input select,.spftestimonial-field-spacing .spftestimonial--input select{margin:0}.spftestimonial-field-border .spftestimonial--input input,.spftestimonial-field-column .spftestimonial--input input,.spftestimonial-field-dimensions .spftestimonial--input input,.spftestimonial-field-spacing .spftestimonial--input input{position:relative;z-index:1;margin:0;width:65px;max-width:100%;padding:0;text-align:center;border:1px solid #ddd}.spftestimonial-field-border .spftestimonial--color,.spftestimonial-field-dimensions .spftestimonial--color,.spftestimonial-field-spacing .spftestimonial--color{float:left}.spftestimonial-field-border .spftestimonial--color .spftestimonial--title{margin-top:-22px}.spftestimonial-field-border .spftestimonial--label,.spftestimonial-field-dimensions .spftestimonial--label,.spftestimonial-field-spacing .spftestimonial--label{display:flex;flex-direction:column;justify-content:center;user-select:none;min-width:20px;max-width:100%;padding:0 4px;font-size:12px;text-align:center;color:#555;border:1px solid #7b776c;background-color:#f5f5f5}.spftestimonial-field-border .spftestimonial--icon,.spftestimonial-field-dimensions .spftestimonial--icon,.spftestimonial-field-spacing .spftestimonial--icon{border-right:0;border-radius:4px 0 0 4px}.spftestimonial-field-border .spftestimonial--icon+input,.spftestimonial-field-dimensions .spftestimonial--icon+input,.spftestimonial-field-spacing .spftestimonial--icon+input{border-top-left-radius:0;border-bottom-left-radius:0}.spftestimonial-field-border .spftestimonial--unit,.spftestimonial-field-dimensions .spftestimonial--unit,.spftestimonial-field-spacing .spftestimonial--unit{border-left:0;border-radius:0 4px 4px 0}.spftestimonial-field-border .spftestimonial--is-unit,.spftestimonial-field-dimensions .spftestimonial--is-unit,.spftestimonial-field-spacing .spftestimonial--is-unit{border-top-right-radius:0;border-bottom-right-radius:0}.spftestimonial-field-button_set .spftestimonial--buttons{display:inline-block}.spftestimonial-field-button_set .spftestimonial--button{position:relative;z-index:1;float:left;cursor:pointer;padding:7px 14px;min-width:40px;text-align:center;color:#555;border:1px solid #ccc;background-color:#f7f7f7;user-select:none;-webkit-user-select:none;box-shadow:0 1px 0 rgba(0,0,0,.1)}.spftestimonial-field-button_set .spftestimonial--button:first-child{border-radius:4px 0 0 4px}.spftestimonial-field-button_set .spftestimonial--button:last-child{border-radius:0 4px 4px 0}.spftestimonial-field-button_set .spftestimonial--button:not(:first-child){margin-left:-1px}.spftestimonial-field-button_set .spftestimonial--button:hover{background-color:#eee}.spftestimonial-field-button_set .spftestimonial--active,.spftestimonial-field-button_set .spftestimonial--active:hover{z-index:2;color:#fff;border-color:#006799;background-color:#0085ba}.spftestimonial-field-button_set input{display:none}.spftestimonial-field-checkbox ul,.spftestimonial-field-radio ul{margin:0;padding:0 1px;list-style-type:none;overflow-y:auto;max-height:305px}.spftestimonial-field-checkbox ul ul,.spftestimonial-field-radio ul ul{max-height:none}.spftestimonial-field-checkbox .spftestimonial--inline-list li,.spftestimonial-field-radio .spftestimonial--inline-list li{display:inline-block;margin-right:15px}.spftestimonial-field-checkbox input[type=radio]:checked:before,.spftestimonial-field-radio input[type=radio]:checked:before{line-height:10px}.spftestimonial-field-checkbox .spftestimonial-checker,.spftestimonial-field-radio .spftestimonial-checker{cursor:pointer}.spftestimonial-field-code_editor .CodeMirror{width:100%;height:400px}.spftestimonial-field-code_editor .cm-s-default{border:1px solid #ccd0d4}.spftestimonial-field-code_editor textarea{width:100%;height:400px}.spftestimonial-field-color>input{opacity:.75;width:115px;max-width:100%}.spftestimonial-field-color .button.wp-picker-clear{margin-left:6px;padding:2px 8px}.spftestimonial-field-color_group .spftestimonial--left{float:left;margin-right:10px;margin-bottom:5px}.spftestimonial-field-border .spftestimonial--color .spftestimonial--title,.spftestimonial-field-color_group .spftestimonial--title{color:#999;margin-bottom:5px}.spftestimonial-field-fieldset .spftestimonial-fieldset-content{border:1px solid #ccd0d4;background-color:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.spftestimonial-field-fieldset .spftestimonial-fieldset-content>.spftestimonial-field{padding:15px}.spftestimonial-field-fieldset .spftestimonial-field-subheading{font-size:13px}.spftestimonial-field-date input{margin:0}.spftestimonial-field-date .spftestimonial--to{margin-left:7px}.spftestimonial-datepicker-wrapper{margin-top:5px;width:auto;background-color:#fff;z-index:9999999!important;-moz-box-shadow:0 0 30px rgba(0,0,0,.15);-webkit-box-shadow:0 0 30px rgba(0,0,0,.15);box-shadow:0 0 30px rgba(0,0,0,.15)}.spftestimonial-datepicker-wrapper *{float:none;margin:0;padding:0;font-family:inherit;font-weight:400;font-style:normal;text-decoration:none;border:0;border-radius:0;box-shadow:none}.spftestimonial-datepicker-wrapper .ui-datepicker-header,.spftestimonial-datepicker-wrapper .ui-widget-header{color:#fff;background:#00a0d2}.spftestimonial-datepicker-wrapper .ui-datepicker-header .ui-state-hover{cursor:pointer}.spftestimonial-datepicker-wrapper .ui-datepicker-title{font-size:14px;line-height:40px;text-align:center}.spftestimonial-datepicker-wrapper .ui-datepicker-next,.spftestimonial-datepicker-wrapper .ui-datepicker-prev{position:static;top:auto;left:auto;right:auto;font-family:FontAwesome;font-size:12px;text-align:center;width:41px;height:40px;line-height:40px;color:#fff;background-color:rgba(255,255,255,.1);text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.spftestimonial-datepicker-wrapper .ui-datepicker-next span,.spftestimonial-datepicker-wrapper .ui-datepicker-prev span{display:none}.spftestimonial-datepicker-wrapper .ui-datepicker-prev{float:left}.spftestimonial-datepicker-wrapper .ui-datepicker-next{float:right}.spftestimonial-datepicker-wrapper .ui-datepicker-prev:before{content:'\f053'}.spftestimonial-datepicker-wrapper .ui-datepicker-next:before{content:'\f054'}.spftestimonial-datepicker-wrapper .ui-datepicker-next-hover,.spftestimonial-datepicker-wrapper .ui-datepicker-prev-hover{opacity:.75}.spftestimonial-datepicker-wrapper tbody .ui-datepicker-week-col{background-color:#f7f7f7}.spftestimonial-datepicker-wrapper .ui-datepicker-buttonpane{padding:10px;text-align:center;background-color:#f7f7f7}.spftestimonial-datepicker-wrapper .ui-datepicker-buttonpane button{cursor:pointer;margin:0 5px;padding:7px 14px;border:1px solid #eee;background-color:#fff}.spftestimonial-datepicker-wrapper select{margin:0 4px}.spftestimonial-datepicker-wrapper select option{color:#555}.spftestimonial-datepicker-wrapper table{font-size:13px;border-collapse:collapse;width:100%}.spftestimonial-datepicker-wrapper thead{color:#fff;background:#32373c}.spftestimonial-datepicker-wrapper th{text-align:center;padding:7px;border:1px solid #444}.spftestimonial-datepicker-wrapper td{text-align:center;border:1px solid #f4f4f4}.spftestimonial-datepicker-wrapper td.ui-datepicker-other-month{border:transparent}.spftestimonial-datepicker-wrapper td .ui-state-default{color:#555;width:auto;display:block;padding:6px 12px}.spftestimonial-datepicker-wrapper td .ui-state-active,.spftestimonial-datepicker-wrapper td .ui-state-hover{color:#fff;background-color:#0073aa}.spftestimonial-datepicker-wrapper td.ui-state-disabled .ui-state-default{opacity:.5}.spftestimonial-field-gallery input{display:none}.spftestimonial-field-gallery ul{margin:0;padding:0;list-style-type:none}.spftestimonial-field-gallery ul li{display:inline-block;position:relative;padding:4px;margin:0 5px 10px 0;border:1px solid #ccc;background-color:#f9f9f9;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:0 1px 0 rgba(0,0,0,.08);-webkit-box-shadow:0 1px 0 rgba(0,0,0,.08);box-shadow:0 1px 0 rgba(0,0,0,.08)}.spftestimonial-field-gallery ul li img{max-height:60px;display:inline-block;vertical-align:middle}.spftestimonial-field-gallery .button{margin-right:5px;margin-bottom:5px}.spftestimonial-field-group .spftestimonial-cloneable-hidden{display:none!important}.spftestimonial-field-group .spftestimonial-cloneable-wrapper{position:relative}.spftestimonial-field-group .spftestimonial-cloneable-item{display:none;position:relative;margin-bottom:5px}.spftestimonial-field-group .spftestimonial-cloneable-item h4{font-size:1em}.spftestimonial-field-group .ui-accordion .spftestimonial-cloneable-item{display:block}.spftestimonial-field-group .spftestimonial-cloneable-content{border:1px solid #ccd0d4;background-color:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.spftestimonial-field-group .spftestimonial-cloneable-content>.spftestimonial-field{padding:15px}.spftestimonial-field-group .spftestimonial-cloneable-title{display:block;cursor:pointer;position:relative;user-select:none;margin:0;padding:15px 65px 15px 10px;min-height:0;font-size:100%;border:1px solid #ccd0d4;background-color:#fafafa;box-shadow:0 1px 1px rgba(0,0,0,.04);transition:border-color .15s}.spftestimonial-field-group .spftestimonial-cloneable-title:active,.spftestimonial-field-group .spftestimonial-cloneable-title:focus,.spftestimonial-field-group .spftestimonial-cloneable-title:hover{border-color:#999;outline:0}.spftestimonial-field-group .spftestimonial-cloneable-helper{position:absolute;top:12px;right:10px;z-index:1;font-size:14px;line-height:1em}.spftestimonial-field-group .spftestimonial-cloneable-helper i{display:inline-block;cursor:pointer;padding:5px;color:#999}.spftestimonial-field-group .spftestimonial-cloneable-helper i:hover{color:#555}.spftestimonial-field-group .spftestimonial-cloneable-content{padding:0;border-top:0}.spftestimonial-field-group .spftestimonial-cloneable-title-number,.spftestimonial-field-group .spftestimonial-cloneable-title-prefix{margin-right:5px}.spftestimonial-field-group .spftestimonial-cloneable-alert{display:none;margin-bottom:5px;padding:10px 20px;color:#a94442;border:1px solid #ebccd1;background-color:#f2dede}.spftestimonial-field-group .widget-placeholder{margin-bottom:10px;border:1px dashed #f1c40f;background-color:#fffae4}.spftestimonial-field-group .spftestimonial-cloneable-header-icon{display:inline-block;text-align:center;font-size:14px;width:17px;text-indent:0;vertical-align:text-top}.spftestimonial-field-group .spftestimonial-cloneable-placeholder{background-color:#ddd;margin-top:4px;width:100px;height:10px;font-size:10px;line-height:10px;display:inline-block;vertical-align:top;border-radius:2px}.spftestimonial-field-icon_select .spftestimonial--image{width:35px;height:35px;text-align:center;line-height:35px;font-size:20px}.spftestimonial-field-image_select .spftestimonial--image p{margin:6px 0 0 0;font-weight:600}.spftestimonial-field-icon_select .spftestimonial--image,.spftestimonial-field-image_select .spftestimonial--image{cursor:pointer;position:relative;display:inline-block;text-align:center;max-width:100%;margin:0 16px 7px 0;vertical-align:top;background-color:#fff;user-select:none;-webkit-user-select:none;-moz-transition:all .2s;-o-transition:all .2s;-webkit-transition:all .2s;transition:all .2s}.spftestimonial-field-icon_select .spftestimonial--image{border:2px solid #ddd}.spftestimonial-field-icon_select .spftestimonial--image:before,.spftestimonial-field-image_select .spftestimonial--image:before{position:absolute;top:0;right:0;text-align:center;font-size:11px;font-family:FontAwesome;content:"\f00c";width:15px;height:15px;line-height:15px;opacity:0;color:#fff;background-color:#1595ce;transition:opacity .2s}.spftestimonial-field-image_select .spftestimonial--active img{border-color:#1595ce;outline:3px solid #1595ce;outline-offset:-3px}.spftestimonial-field-icon_select .spftestimonial--active{border-color:#1595ce}.spftestimonial-field-image_select .spftestimonial--active:before{opacity:1}.spftestimonial-field-icon_select .spftestimonial--active:before{opacity:0}.spftestimonial-field-image_select img{vertical-align:top;width:110px}.spftestimonial-field-icon_select input,.spftestimonial-field-image_select input{display:none}.spftestimonial-field-link_color .spftestimonial--left{float:left;margin-right:10px;margin-bottom:5px}.spftestimonial-field-link_color .spftestimonial--title{color:#777;margin-bottom:5px}.spftestimonial-field-map input{width:100%}.spftestimonial-field-map input[type=text].ui-autocomplete-loading{background-position-x:calc(100% - 5px)}.spftestimonial-field-map .spftestimonial--map-search+.spftestimonial--map-osm-wrap{margin-top:10px}.spftestimonial-field-map .spftestimonial--map-osm-wrap{position:relative;padding:5px;border:1px solid #eee;background-color:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.spftestimonial-field-map .spftestimonial--map-osm{position:relative;z-index:1;min-height:250px}.spftestimonial-field-map .spftestimonial--map-inputs{margin-top:10px;display:flex;justify-content:space-between}.spftestimonial-field-map .spftestimonial--map-input{flex:1}.spftestimonial-field-map .spftestimonial--map-input:last-child{padding-left:10px}.spftestimonial-field-map label{display:block;color:#777;font-size:12px;margin:0 0 2px 0}.spftestimonial-map-ui-autocomplate{z-index:999999;border-radius:4px;overflow:hidden}.spftestimonial-field-media .spftestimonial--placeholder{display:flex}.spftestimonial-field-media .spftestimonial--placeholder input{width:100%;margin:0}.spftestimonial-field-media .button{margin-left:5px}.spftestimonial-field-media .hidden+.button{margin-left:0}.spftestimonial-field-media .spftestimonial--preview{position:relative}.spftestimonial-field-media .spftestimonial--preview .fa-times{position:absolute;z-index:1;right:4px;top:4px;font-size:14px;width:22px;height:22px;line-height:22px;text-align:center;text-decoration:none;color:#fff;background-color:#d33;opacity:.8;transition:all .2s}.spftestimonial-field-media .spftestimonial--preview .fa-times:hover{opacity:1}.spftestimonial-field-media .spftestimonial--preview .fa-times:focus{box-shadow:none}.spftestimonial-field-palette .spftestimonial--palette{position:relative;display:inline-block;cursor:pointer;border:2px solid #ddd;margin-right:10px;margin-bottom:10px;user-select:none;-webkit-user-select:none;transition:all .2s}.spftestimonial-field-palette .spftestimonial--palette span{vertical-align:middle;display:inline-block;width:22px;height:60px;line-height:60px;overflow:hidden;text-indent:-999px}.spftestimonial-field-palette .spftestimonial--palette:before{position:absolute;top:0;left:0;text-align:center;font-size:11px;font-family:FontAwesome;content:"\f00c";width:15px;height:15px;line-height:15px;opacity:0;color:#fff;background-color:#222;transition:opacity .2s}.spftestimonial-field-palette .spftestimonial--active{border-color:#222;box-shadow:0 0 20px rgba(0,0,0,.2)}.spftestimonial-field-palette .spftestimonial--active:before{opacity:1}.spftestimonial-field-palette input{display:none}.spftestimonial-field-repeater .spftestimonial-field-text input{width:100%}.spftestimonial-field-repeater .spftestimonial-repeater-hidden{display:none!important}.spftestimonial-field-repeater .spftestimonial-repeater-wrapper .spftestimonial-repeater-item{display:table;width:100%;margin-bottom:5px;border:1px solid #eee}.spftestimonial-field-repeater .spftestimonial-repeater-wrapper .spftestimonial-repeater-item h4{font-size:1em}.spftestimonial-field-repeater .spftestimonial-repeater-content{width:100%;display:table-cell;vertical-align:middle;background-color:#fff}.spftestimonial-field-repeater .spftestimonial-repeater-content>.spftestimonial-field{padding:15px}.spftestimonial-field-repeater .spftestimonial-repeater-helper{width:100%;display:table-cell;vertical-align:middle;text-align:center;font-size:14px;line-height:1em;border-left:1px solid #eee;background-color:#f7f7f7}.spftestimonial-field-repeater .spftestimonial-repeater-helper i{display:inline-block;cursor:pointer;color:#999;padding:5px}.spftestimonial-field-repeater .spftestimonial-repeater-helper i:hover{color:#555}.spftestimonial-field-repeater .spftestimonial-repeater-helper-inner{width:75px}.spftestimonial-field-repeater .spftestimonial-repeater-alert{display:none;margin-bottom:5px;padding:10px 20px;color:#a94442;border:1px solid #ebccd1;background-color:#f2dede}.spftestimonial-field-repeater .widget-placeholder{height:50px;margin-bottom:3px;border:1px dashed #f1c40f;background-color:#fffae4}.spftestimonial-field-repeater .ui-sortable-helper{height:50px!important;overflow:hidden!important;border-color:#ccc!important;background-color:#eee!important;opacity:.5}.spftestimonial-field-repeater .ui-sortable-helper .spftestimonial-repeater-content,.spftestimonial-field-repeater .ui-sortable-helper .spftestimonial-repeater-helper{display:none}.spftestimonial-field-select .spftestimonial-fieldset{min-height:30px}.spftestimonial-field-select .spftestimonial-chosen{display:none}.spftestimonial-field-select select{max-width:100%;margin:0}.spftestimonial-field-slider .spftestimonial--wrap{display:flex;align-items:center}.spftestimonial-field-slider .spftestimonial--input{display:flex}.spftestimonial-field-slider .spftestimonial--unit{display:flex;justify-content:center;flex-direction:column;user-select:none;padding:0 6px;font-size:11px;line-height:1;border-radius:0 4px 4px 0;color:#555;border:1px solid #7e8993;border-left:0;background-color:#f5f5f5}.spftestimonial-field-slider input[type=number]{position:relative;z-index:1;width:50px;margin:0 0 0 15px;text-align:center}.spftestimonial-field-slider .spftestimonial--is-unit{border-top-right-radius:0;border-bottom-right-radius:0}.spftestimonial-field-slider .ui-slider{position:relative;width:100%;height:3px;border:none;background:#ddd;border-radius:2px}.spftestimonial-field-slider .ui-slider-range{height:3px;border:none;background:#333;border-radius:2px}.spftestimonial-field-slider .ui-slider-handle{position:absolute;width:16px;height:16px;top:-7px;margin-left:-8px;border:none;background:#333;border-radius:2px}.spftestimonial-field-slider .ui-slider-handle:hover,.spftestimonial-field-slider .ui-state-active{cursor:pointer;background:#111}.spftestimonial-field-sortable .spftestimonial-field-text input{width:100%;max-width:100%}.spftestimonial-field-sortable .spftestimonial--sortable .spftestimonial--sortable-item{display:table;width:100%;margin-bottom:5px;border:1px solid #eee}.spftestimonial-field-sortable .spftestimonial--sortable .spftestimonial--sortable-item h4{font-size:1em}.spftestimonial-field-sortable .spftestimonial--sortable-content{width:100%;display:table-cell;vertical-align:middle;background-color:#fff}.spftestimonial-field-sortable .spftestimonial--sortable-content>.spftestimonial-field{padding:15px}.spftestimonial-field-sortable .spftestimonial--sortable-helper{width:100%;display:table-cell;vertical-align:middle;text-align:center;font-size:14px;line-height:1em;border-left:1px solid #eee;background-color:#f7f7f7}.spftestimonial-field-sortable .spftestimonial--sortable-helper .fa{display:inline-block;cursor:pointer;width:50px;color:#555}.spftestimonial-field-sortable .spftestimonial--sortable-helper .fa:hover{opacity:.5}.spftestimonial-field-sortable .widget-placeholder{height:50px;margin-bottom:3px;border:1px dashed #f1c40f;background-color:#fffae4}.spftestimonial-field-sortable .ui-sortable-helper{height:50px!important;overflow:hidden!important;border-color:#ccc!important;background-color:#eee!important;opacity:.5}.spftestimonial-field-sortable .ui-sortable-helper .spftestimonial--sortable-content,.spftestimonial-field-sortable .ui-sortable-helper .spftestimonial--sortable-helper{display:none}.spftestimonial-field-sorter .ui-sortable-placeholder{height:20px;border:1px dashed #f1c40f;background-color:#fffae4}.spftestimonial-field-sorter .spftestimonial-modules{float:left;width:50%;box-sizing:border-box}.spftestimonial-field-sorter .spftestimonial-modules:first-child{padding-right:15px}.spftestimonial-field-sorter .spftestimonial-modules:last-child{padding-left:15px}.spftestimonial-field-sorter .spftestimonial-disabled,.spftestimonial-field-sorter .spftestimonial-enabled{padding:5px 15px;border:1px dashed #ddd;background-color:#fff}.spftestimonial-field-sorter .spftestimonial-disabled li{-moz-transition:opacity .15s;-o-transition:opacity .15s;-webkit-transition:opacity .15s;transition:opacity .15s;opacity:.5}.spftestimonial-field-sorter .spftestimonial-disabled .ui-sortable-helper{opacity:1}.spftestimonial-field-sorter .spftestimonial-sorter-title{font-size:13px;font-weight:600;padding:10px;text-align:center;border:1px dashed #ddd;border-bottom:none;background-color:#f8f8f8;text-transform:uppercase}.spftestimonial-field-sorter ul{list-style-type:none;margin:0;padding:0;min-height:62px}.spftestimonial-field-sorter ul li{margin:10px 0;padding:10px 15px;cursor:move;font-weight:700;text-align:center;border:1px solid #e5e5e5;background-color:#fafafa;-moz-transition:border-color .15s;-o-transition:border-color .15s;-webkit-transition:border-color .15s;transition:border-color .15s}.spftestimonial-field-sorter ul li:hover{border-color:#bbb}.spftestimonial-field-spinner .spftestimonial--spin{display:flex}.spftestimonial-field-spinner .ui-spinner{display:flex}.spftestimonial-field-spinner .ui-button-text-only{display:flex;flex-direction:column;justify-content:center;text-align:center;min-width:20px;padding:0 4px;color:#555;border:1px solid #7e8993;background-color:#f5f5f5}.spftestimonial-field-spinner .ui-button{cursor:pointer}.spftestimonial-field-spinner .ui-button:hover{background-color:#e7e7e7}.spftestimonial-field-spinner .ui-button:active{background-color:#ddd}.spftestimonial-field-spinner .ui-button:before{font-family:FontAwesome;font-size:14px}.spftestimonial-field-spinner .ui-spinner-down{order:1;border-right:0;border-radius:4px 0 0 4px}.spftestimonial-field-spinner .ui-spinner-down:before{content:"\f0d9"}.spftestimonial-field-spinner .ui-spinner-input{order:2}.spftestimonial-field-spinner .spftestimonial--unit{order:3;border-left:0;user-select:none}.spftestimonial-field-spinner .ui-spinner-up{order:4;border-left:0;border-radius:0 4px 4px 0}.spftestimonial-field-spinner .ui-spinner-up:before{content:"\f0da"}.spftestimonial-field-spinner input{position:relative;z-index:1;width:50px;text-align:center;margin:0;padding:0 8px;border-radius:0}.spftestimonial-field-spinner .ui-button-text{display:none}.spftestimonial-field-switcher .spftestimonial--switcher{float:left;cursor:pointer;position:relative;width:60px;height:26px;padding:0;margin:0;overflow:hidden;border-radius:4px;background-color:#ed6f6f;user-select:none;-webkit-user-select:none}.spftestimonial-field-switcher .spftestimonial--ball{position:absolute;top:4px;left:4px;width:24px;height:18px;background-color:#fff;border-radius:4px;transition:all .1s;box-shadow:1px 1px 1px rgba(0,0,0,.15)}.spftestimonial-field-switcher .spftestimonial--off,.spftestimonial-field-switcher .spftestimonial--on{position:absolute;top:0;left:0;right:0;font-size:11px;line-height:26px;font-weight:500;font-style:normal;text-align:center;text-transform:uppercase;color:#fff;padding-right:28px;opacity:0;transition:all .1s}.spftestimonial-field-switcher .spftestimonial--off{padding-right:0;padding-left:28px;opacity:1}.spftestimonial-field-switcher .spftestimonial--active{background:#4fb845}.spftestimonial-field-switcher .spftestimonial--active .spftestimonial--on{opacity:1}.spftestimonial-field-switcher .spftestimonial--active .spftestimonial--off{opacity:0}.spftestimonial-field-switcher .spftestimonial--active .spftestimonial--ball{left:100%;margin-left:-28px}.spftestimonial-field-switcher .spftestimonial--label{float:left;margin-top:4px;margin-left:8px;font-weight:400;color:#999}.spftestimonial-field-switcher input{display:none}.spftestimonial-field-tabbed .spftestimonial-tabbed-section{border:1px solid #ccd0d4;background-color:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.spftestimonial-field-tabbed .spftestimonial-tabbed-section>.spftestimonial-field{padding:15px}.spftestimonial-field-tabbed .spftestimonial-tabbed-nav .spftestimonial--icon{padding-right:5px}.spftestimonial-field-tabbed .spftestimonial-tabbed-nav a{display:inline-block;padding:12px 15px;margin-top:1px;margin-right:5px;margin-bottom:-1px;position:relative;text-decoration:none;color:#444;font-weight:600;border:1px solid #ccd0d4;background-color:#f3f3f3;transition:all .2s}.spftestimonial-field-tabbed .spftestimonial-tabbed-nav a:hover{background-color:#f9f9f9}.spftestimonial-field-tabbed .spftestimonial-tabbed-nav a.spftestimonial-tabbed-active{background-color:#fff;border-bottom-color:#fff}.spftestimonial-field-tabbed .spftestimonial-tabbed-nav a:focus{outline:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.spftestimonial-field-text input{width:50%;max-width:100%;margin:0}.spftestimonial-field-textarea textarea{width:100%;max-width:100%;min-height:125px}.spftestimonial-field-typography select,.spftestimonial-field-typography textarea{margin:0;width:100%}.spftestimonial-field-typography .spftestimonial--title{color:#999;margin:0 0 2px 0}.spftestimonial-field-typography .spftestimonial--title small{vertical-align:top}.spftestimonial-field-typography .spftestimonial--blocks{display:flex;flex-wrap:wrap}.spftestimonial-field-typography .spftestimonial--block{padding-right:5px;padding-bottom:10px;box-sizing:border-box}.spftestimonial-field-typography .spftestimonial--block .spftestimonial--block{padding-right:0;padding-bottom:0}.spftestimonial-field-typography .spftestimonial--blocks-selects .spftestimonial--block{flex:1 33.3%}.spftestimonial-field-typography .spftestimonial--blocks-inputs .spftestimonial--input-area{max-width:100px}.spftestimonial-field-typography .spftestimonial--blocks-inputs .spftestimonial--block .spftestimonial--block{flex:1}.spftestimonial-field-typography .spftestimonial--input{margin:0;width:100%;padding:2px 8px;border-radius:4px 0 0 4px}.spftestimonial-field-typography .spftestimonial--unit{min-width:40px;max-width:40px;font-size:12px;font-weight:400;text-align:center;color:#777;border:1px solid #ddd;background-color:#eee;border-radius:0 2px 2px 0;border-left:0;line-height:30px}.spftestimonial-field-typography .spftestimonial--preview{font-size:16px;line-height:20px;padding:20px;color:#222;border:1px solid #eee;background-color:#fff;border-radius:2.5px;user-select:none;-webkit-user-select:none;transition:background-color .2s,border-color .2s}.spftestimonial-field-typography .spftestimonial--block-preview{cursor:pointer;position:relative;overflow:hidden;margin-top:10px;max-width:100%}.spftestimonial-field-typography .spftestimonial--black-background{border-color:#000;background-color:#000}.spftestimonial-field-typography .spftestimonial--toggle{position:absolute;top:5px;right:10px;color:#999}.spftestimonial-field-typography .spftestimonial--block-extra-styles{margin-top:5px}.spftestimonial-field-upload input{width:100%;margin:0}.spftestimonial-field-upload .spftestimonial--wrap{display:flex}.spftestimonial-field-upload .button{margin-left:5px}.spftestimonial-field-wp_editor .spftestimonial-wp-editor{float:left;width:100%}.spftestimonial-field-wp_editor .mce-toolbar-grp{border:none}.spftestimonial-field-wp_editor .mce-btn.mce-active button,.spftestimonial-field-wp_editor .mce-btn.mce-active i,.spftestimonial-field-wp_editor .mce-btn.mce-active:hover button,.spftestimonial-field-wp_editor .mce-btn.mce-active:hover i{color:#23282d}.spftestimonial-field-wp_editor .wp-media-buttons{position:relative;z-index:2}.spftestimonial-field-wp_editor .wp-editor-tabs{position:relative;z-index:1}.spftestimonial-field-wp_editor .spftestimonial-no-tinymce{border:1px solid #e5e5e5}.spftestimonial-field-wp_editor .spftestimonial-no-quicktags .wp-media-buttons{float:none;display:block}.spftestimonial-field-wp_editor .spftestimonial-no-quicktags .mce-tinymce{box-shadow:none;border:1px solid #e5e5e5}.spftestimonial-field-wp_editor textarea{width:100%;max-width:100%;margin:0;box-shadow:none}.spftestimonial-field-heading{font-size:1.5em;font-weight:700;color:#23282d;background-color:#f5f5f5}.spftestimonial-field-subheading{font-size:14px;font-weight:700;padding-top:17px;padding-bottom:17px;color:#23282d;background-color:#f7f7f7}.spftestimonial-field-submessage{padding:0!important;border:0!important}.spftestimonial-field-submessage+.spftestimonial-field{border-top:0!important}.spftestimonial-submessage{font-size:12px;padding:17px 30px;border-top:1px solid transparent;border-bottom:1px solid transparent}.spftestimonial-submessage-success{color:#3c763d;border-color:#d6e9c6;background-color:#dff0d8}.spftestimonial-submessage-info{color:#31708f;border-color:#bce8f1;background-color:#d9edf7}.spftestimonial-submessage-warning{color:#8a6d3b;border-color:#faebcc;background-color:#fcf8e3}.spftestimonial-submessage-danger{color:#a94442;border-color:#ebccd1;background-color:#f2dede}.spftestimonial-submessage-normal{color:#23282d;border-color:#eee;background-color:#f7f7f7}.spftestimonial-field-notice{background-color:transparent}.spftestimonial-notice{padding:12px;background-color:#fff;border-left-style:solid;border-left-width:0;box-shadow:none}.spftestimonial-notice-success{border-color:#46b450}.spftestimonial-notice-info{border-color:#339fd4;color:#999;font-style:italic;font-size:13px}.spftestimonial-notice-warning{border-color:#ffbc00}.spftestimonial-notice-danger{border-color:#dc3232}.spftestimonial-notice{border-color:#222;color:#999;font-style:italic;font-size:13px;padding:12px 12px 12px 0}.spftestimonial-field-number input{width:100%;margin:0}.spftestimonial-field-number .spftestimonial--wrap{position:relative;float:left;width:100px}.spftestimonial-field-number .spftestimonial--unit{position:absolute;z-index:1;right:4px;top:4px;bottom:4px;padding:2px 6px;color:#666;font-size:11px;line-height:1;border-radius:2px;background:#eee;user-select:none;display:flex;justify-content:center;flex-direction:column}.spftestimonial-help{cursor:help;position:absolute;top:0;right:0;padding:5px;font-size:14px;color:#aaa}.spftestimonial-help .spftestimonial-help-text{display:none}.spftestimonial-image-preview{display:inline-block;position:relative;padding:4px;min-width:44px;min-height:22px;margin-bottom:10px;border:1px solid #ccc;background-color:#f9f9f9;-moz-box-shadow:0 1px 0 rgba(0,0,0,.08);-webkit-box-shadow:0 1px 0 rgba(0,0,0,.08);box-shadow:0 1px 0 rgba(0,0,0,.08)}.spftestimonial-image-preview img{max-height:90px;display:inline-block;vertical-align:middle}.spftestimonial-field-custom .spftestimonial-field{padding:0}.spftestimonial-field .chosen-container-single .chosen-single{height:28px;line-height:26px}.spftestimonial-field .chosen-container-single .chosen-single abbr{top:0;right:20px;font-family:FontAwesome;font-size:12px;height:100%;width:18px;color:#aaa;text-align:center;background:0 0}.spftestimonial-field .chosen-container-single .chosen-single abbr:before{content:"\f00d"}.spftestimonial-field .chosen-container-single .chosen-single abbr:hover{color:#555}.spftestimonial-field .chosen-container-multi .chosen-choices li.search-choice .search-choice-close{font-family:FontAwesome;font-size:12px;height:100%;width:18px;color:#aaa;text-align:center;background:0 0}.spftestimonial-field .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:before{content:"\f00d";display:inline-block;padding-top:3px}.spftestimonial-field .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover{color:#555}.spftestimonial-field .chosen-container-single .chosen-single div b{font-family:FontAwesome;font-size:14px;color:#aaa;background:0 0}.spftestimonial-field .chosen-container-single .chosen-single div b:before{content:"\f107"}.spftestimonial-field .chosen-container-single .chosen-single div b:hover{color:#555}.spftestimonial-field .chosen-container-multi .chosen-choices li.search-choice-placeholder{border:1px dashed #aaa;margin:3px 5px 3px 0}.spftestimonial-field .chosen-container-multi .ui-sortable li.search-choice span{cursor:move}.spftestimonial-field .chosen-container-active.chosen-with-drop .chosen-single div b:before{content:"\f106"}.spftestimonial-field .chosen-container-single .chosen-single-with-deselect span{margin-right:40px}.spftestimonial-field .chosen-container-single .chosen-search input[type=text]{background:0 0}.spftestimonial-field .chosen-container-single .chosen-search:before{font-family:FontAwesome;position:absolute;content:"\f002";font-size:11px;right:10px;top:7px;color:#aaa}.spftestimonial-field .wp-picker-container{display:inline-block}.spftestimonial-field .spftestimonial--transparent-wrap{display:none;position:relative;top:-1px;width:235px;padding:9px 10px;border:1px solid #dfdfdf;border-top:none;background-color:#fff}.spftestimonial-field .wp-picker-active .spftestimonial--transparent-wrap{display:block}.spftestimonial-field .spftestimonial--transparent-slider{position:absolute;width:190px;margin-left:2px;height:18px}.spftestimonial-field .spftestimonial--transparent-slider .ui-slider-handle{position:absolute;top:-3px;bottom:-3px;z-index:5;border-color:#aaa;border-style:solid;border-width:4px 3px;width:10px;height:16px;margin:0 -5px;background:0 0;cursor:ew-resize;opacity:.9;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;-moz-box-shadow:0 1px 2px rgba(0,0,0,.2);-webkit-box-shadow:0 1px 2px rgba(0,0,0,.2);box-shadow:0 1px 2px rgba(0,0,0,.2)}.spftestimonial-field .spftestimonial--transparent-slider .ui-slider-handle:before{content:" ";position:absolute;left:-2px;right:-2px;top:-3px;bottom:-3px;border:2px solid #fff;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.spftestimonial-field .spftestimonial--transparent-offset{height:18px;width:200px;background:url(../images/checkerboard.png) repeat-y center left scroll #fff;-moz-box-shadow:0 0 5px rgba(0,0,0,.4) inset;-webkit-box-shadow:0 0 5px rgba(0,0,0,.4) inset;box-shadow:0 0 5px rgba(0,0,0,.4) inset;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.spftestimonial-field .spftestimonial--transparent-text{position:absolute;top:12px;right:10px;width:30px;font-size:12px;line-height:12px;text-align:center;color:#999}.spftestimonial-field .spftestimonial--transparent-button{cursor:pointer;user-select:none;margin-top:10px;font-size:11px;text-align:center;border-radius:2px;padding:3px 7px;box-shadow:0 1px 0 rgba(0,0,0,.1);letter-spacing:.2px;color:#777;border:1px solid #ccc;background-color:#f7f7f7;transition:background-color .2s,border-color .2s,color .2s}.spftestimonial-field .spftestimonial--transparent-active .wp-color-result{background-image:url(../images/checkerboard.png);background-size:135px;background-position:center left;background-color:transparent!important}.spftestimonial-field .spftestimonial--transparent-active .spftestimonial--transparent-button{color:#fff;border-color:#3ea032;background-color:#4fb845}.spftestimonial-field .spftestimonial--transparent-active .fa:before{content:"\f205"}.spftestimonial-widgets>.spftestimonial-field{position:relative;top:-1px;margin-right:-15px;margin-left:-15px;padding:12px 15px}.spftestimonial-widgets>.spftestimonial-field .spftestimonial-field{margin-left:0;margin-right:0}.spftestimonial-widgets>.spftestimonial-field .spftestimonial-title{float:none;width:100%;margin-bottom:5px}.spftestimonial-widgets>.spftestimonial-field .spftestimonial-fieldset{margin-left:0}.spftestimonial-widgets .spftestimonial-field-text input{width:100%}.spftestimonial-widgets .spftestimonial-field-notice .spftestimonial-notice{padding:15px}.control-section .spftestimonial-widgets>.spftestimonial-field{margin-right:-10px;margin-left:-10px;padding:10px 12px}.control-section .spftestimonial-field{padding:0}.control-section .spftestimonial-field .spftestimonial-title{float:none;width:100%;margin-bottom:6px}.control-section .spftestimonial-field .spftestimonial-title h4{display:block;font-size:13px;line-height:1;font-weight:600;color:inherit}.control-section .spftestimonial-field .spftestimonial-fieldset{margin-left:0}.control-section .spftestimonial-help{top:-5px;right:-5px}.control-section .spftestimonial-field-select select{width:100%}.control-section .spftestimonial-field-heading{color:inherit;font-size:14px;line-height:1em;margin-right:-15px;margin-left:-15px;padding:15px}.control-section .spftestimonial-field-subheading{color:inherit;font-size:11px;margin-right:-15px;margin-left:-15px;padding:10px 15px}.control-section .spftestimonial-text-subtitle{margin-top:4px;font-size:12px}.control-section .spftestimonial-field-submessage .spftestimonial-submessage{margin-right:-15px;margin-left:-15px;padding:15px}.control-section .spftestimonial-fieldset .spftestimonial-field-heading,.control-section .spftestimonial-fieldset .spftestimonial-field-subheading,.control-section .spftestimonial-fieldset .spftestimonial-field-submessage .spftestimonial-submessage{margin-left:0;margin-right:0}.control-section .spftestimonial-field-date .spftestimonial--to{margin-left:0}.control-section .spftestimonial-field-sorter ul li{padding:5px}.control-section .spftestimonial-field-sorter .spftestimonial-modules{float:none;width:100%}.control-section .spftestimonial-field-sorter .spftestimonial-modules:first-child{padding-right:0;padding-bottom:15px}.control-section .spftestimonial-field-background .spftestimonial--background-attributes{flex-direction:column}.control-section .spftestimonial-field-spacing input{width:90px}.control-section .spftestimonial-field-border .spftestimonial--input{flex:1 50%}.control-section .spftestimonial-field-border input,.control-section .spftestimonial-field-border select{width:100%}.control-section .spftestimonial-field-spinner input{width:50px}.control-section .spftestimonial-field-number .spftestimonial--wrap{width:100%}.control-section .spftestimonial-field-backup .spftestimonial-export-data{display:none}.control-section .spftestimonial-field-fieldset .spftestimonial-fieldset-content{border-color:#e5e5e5}.control-section .spftestimonial-field-fieldset .spftestimonial-field{padding:10px}.control-section .spftestimonial-field-fieldset .spftestimonial-field .spftestimonial-title{margin-bottom:5px}.control-section .spftestimonial-field-fieldset .spftestimonial-field h4{font-size:12px}.control-section .spftestimonial-field-accordion .spftestimonial-field,.control-section .spftestimonial-field-group .spftestimonial-field,.control-section .spftestimonial-field-repeater .spftestimonial-field,.control-section .spftestimonial-field-sortable .spftestimonial-field,.control-section .spftestimonial-field-tabbed .spftestimonial-field{padding:10px}.control-section .spftestimonial-field-accordion .spftestimonial-field .spftestimonial-title,.control-section .spftestimonial-field-group .spftestimonial-field .spftestimonial-title,.control-section .spftestimonial-field-repeater .spftestimonial-field .spftestimonial-title,.control-section .spftestimonial-field-sortable .spftestimonial-field .spftestimonial-title,.control-section .spftestimonial-field-tabbed .spftestimonial-field .spftestimonial-title{margin-bottom:5px}.control-section .spftestimonial-field-accordion .spftestimonial-field h4,.control-section .spftestimonial-field-group .spftestimonial-field h4,.control-section .spftestimonial-field-repeater .spftestimonial-field h4,.control-section .spftestimonial-field-sortable .spftestimonial-field h4,.control-section .spftestimonial-field-tabbed .spftestimonial-field h4{font-size:12px}.control-section .spftestimonial-dependency-control.hidden{display:none!important}.spftestimonial-modal{display:none;position:fixed;z-index:100101;top:0;left:0;width:100%;height:100%}.spftestimonial-modal-icon{z-index:100102}.spftestimonial-modal-table{display:table;width:100%;height:100%}.spftestimonial-modal-table-cell{display:table-cell;vertical-align:middle;margin:100px 0}.spftestimonial-modal-inner{position:relative;z-index:10;width:760px;height:750px;margin:0 auto;background-color:#fff}.spftestimonial-modal-content{position:relative;overflow:hidden;overflow-y:auto;height:595px}.spftestimonial-modal-content .spftestimonial-fieldset{margin-left:25%}.spftestimonial-modal-content .spftestimonial-title{width:20%}.spftestimonial-modal-content .spftestimonial-field{padding:15px 30px 15px 15px}.spftestimonial-modal-content a:active,.spftestimonial-modal-content a:focus{outline:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.spftestimonial-modal-content h4{font-size:13px}.spftestimonial-modal-content h4 small{font-style:italic;font-weight:400;color:#aaa}.spftestimonial-modal-title{position:relative;background-color:#fcfcfc;border-bottom:1px solid #ddd;height:36px;font-size:16px;font-weight:600;line-height:36px;margin:0;padding:0 36px 0 16px}.spftestimonial-modal-header{width:100%;padding:14px 0;background-color:#f5f5f5;border-bottom:1px solid #eee}.spftestimonial-modal-header select{display:block;width:250px;margin:0 auto;font-size:13px;line-height:1;height:30px;min-height:30px;background-color:#fff}.spftestimonial-modal-close{color:#666;padding:0;position:absolute;top:0;right:0;width:36px;height:36px;text-align:center;background:0 0;border:none;cursor:pointer}.spftestimonial-modal-close:before{font:normal 20px/36px dashicons;content:"\f158";vertical-align:top;width:36px;height:36px}.spftestimonial-modal-close:hover{opacity:.5}.spftestimonial-modal-insert-wrapper{text-align:center;width:100%;padding:15px 0;background-color:#f5f5f5;border-top:1px solid #eee}.spftestimonial-modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000;opacity:.5}.spftestimonial-text-desc,.spftestimonial-text-subtitle{font-weight:400;margin-top:0;color:#999}.spftestimonial-text-success{color:#2b542c}.spftestimonial-text-error{color:#d02c21}.spftestimonial-text-info{color:#31708f}.spftestimonial-text-warning{color:#ffb900}.spftestimonial-text-muted{color:#aaa}.spftestimonial-text-left{text-align:left}.spftestimonial-text-center{text-align:center}.spftestimonial-text-right{text-align:right}.spftestimonial-block-left{float:left}.spftestimonial-block-right{float:right}.spftestimonial-full-width{width:100%}.spftestimonial-full-half{width:50%}.spftestimonial-table{width:100%;display:table}.spftestimonial-table-cell{display:table-cell;vertical-align:middle}.spftestimonial-table-expanded{width:100%}.spftestimonial-nowrap{white-space:nowrap}.spftestimonial-text-highlight{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.spftestimonial-text-highlight-gray{padding:2px 4px;font-size:90%;background-color:#f0f0f0;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.spftestimonial-hidden{display:none}.spftestimonial-hide{display:none!important}.spftestimonial-show{display:block!important}.spftestimonial-opacity{opacity:.5}.spftestimonial-warning-primary{color:#fff!important;border-color:#dc3545!important;background:#dc3545!important}.spftestimonial-warning-primary:focus,.spftestimonial-warning-primary:hover{border-color:#bd2130!important;background:#bd2130!important}.spftestimonial-warning-primary:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #bd2130!important}.spftestimonial-warning-primary:active{border-color:#bd2130!important;background:#bd2130!important}.spftestimonial-form-result{display:none;padding:12px;margin:15px 0 15px 0;background-color:#fff;border-left:4px solid #555;box-shadow:0 1px 1px rgb(0 0 0 / 10%);border-left-color:#46b450}.spftestimonial-form-show{display:block}.spftestimonial-form-warning{color:#8a6d3b;background-color:#faebcc}.spftestimonial-label-error{position:relative;top:-2px;display:inline-block;font-size:10px;line-height:10px;height:10px;width:10px;padding:1px;font-style:normal;text-align:center;color:#fff;vertical-align:middle;background-color:#e10000;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.spftestimonial-no-option{padding:30px}.spftestimonial-input-number{-moz-appearance:textfield}.spftestimonial-input-number::-webkit-inner-spin-button,.spftestimonial-input-number::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.spftestimonial-scode-wrap-side{pointer-events:none;opacity:.7;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}span.spftestimonial-shortcode-selectable{background-color:rgba(82,179,217,.11);padding:10px 10px 10px 30px;display:inline-block;border:1px solid #d1e4ef;border-radius:2px;cursor:pointer;border-radius:3px;word-break:break-word;position:relative;width:80%}span.spftestimonial-shortcode-selectable::after{content:url(../images/copy.svg);width:16px;left:10px;top:50%;position:absolute;margin-top:-6px}.spftestimonial-scode-wrap-side:nth-child(2) span.spftestimonial-shortcode-selectable::after{margin-top:-15px}span.spftestimonial-shortcode-selectable~button:focus,span.spftestimonial-shortcode-selectable~button:hover{background:#e6e6e6;outline:0}span.spftestimonial-shortcode-selectable~button{background:#f5f5f5;padding:7px 12px;border:none;margin-left:8px;font-size:17px;display:inline-block;position:relative;cursor:pointer;border-radius:3px;border:1px solid #dbdbdb}.spftestimonial-scode-wrap-side p{margin-top:0}.spftestimonial-scode-wrap-side{margin-top:0;margin-bottom:16px;overflow:hidden}.spftestimonial-scode-wrap-side .spftestimonial-sc-title{margin-top:0;margin-bottom:7px;font-size:1.2em}.spftestimonial-scode-wrap-side .spftestimonial-tooltip{border-radius:4px;-webkit-border-radius:4px;position:absolute;top:-35px;left:-3px;background-color:#2f2e2e;text-transform:capitalize;font-weight:600;display:block;transition:all .2s;padding:0;height:24px;line-height:24px;width:46px;color:#fff;font-size:11px;text-align:center;display:none}.spftestimonial-scode-wrap-side .spftestimonial-tooltip::after{content:"";width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #2f2e2e;position:absolute;top:98%;left:16px}.spftestimonial-scode-wrap-side .spftestimonial-tooltip{z-index:9999}.spftestimonial-scode-wrap-side button:hover .spftestimonial-tooltip{display:block}.spftestimonial-scode-wrap-side .spftestimonial-tooltip:hover{display:block;opacity:1}@media only screen and (max-width:1200px){.spftestimonial-metabox .spftestimonial-field .spftestimonial-title{float:none;width:100%;margin-bottom:10px}.spftestimonial-metabox .spftestimonial-field .spftestimonial-fieldset{margin-left:0}}@media only screen and (max-width:782px){.spftestimonial-header-inner{text-align:center}.spftestimonial-header-inner h1{width:100%;margin-bottom:10px}.spftestimonial-header-left,.spftestimonial-header-right,.spftestimonial-search{width:100%}.spftestimonial-search{text-align:center;margin-bottom:15px}.spftestimonial-footer{text-align:center}.spftestimonial-buttons{float:none}.spftestimonial-copyright{float:none;margin-top:10px}.spftestimonial-expand-all,.spftestimonial-nav,.spftestimonial-nav-background,.spftestimonial-reset-section{display:none!important}.spftestimonial-content{margin-left:0}.spftestimonial-section,.spftestimonial-section-title{display:block!important}.spftestimonial-field .spftestimonial-title{float:none;width:100%;margin-bottom:10px}.spftestimonial-field .spftestimonial-fieldset{margin-left:0}.spftestimonial-modal-inner{width:350px;height:400px}.spftestimonial-modal-content{height:237px}.spftestimonial-icon-dialog .spftestimonial-modal-inner{width:305px;height:380px}.spftestimonial-icon-dialog .spftestimonial-modal-content{height:267px}.spftestimonial-modal-icon .spftestimonial-modal-inner{width:330px;height:385px}.spftestimonial-modal-icon .spftestimonial-modal-content{height:252px}}.chosen-container{position:relative;display:inline-block;vertical-align:middle;font-size:13px;user-select:none}.chosen-container *{box-sizing:border-box}.chosen-container .chosen-drop{position:absolute;top:100%;z-index:1010;width:100%;border:1px solid #aaa;border-top:0;background:#fff;box-shadow:0 4px 5px rgba(0,0,0,.15);clip:rect(0,0,0,0);clip-path:inset(100% 100%)}.chosen-container.chosen-with-drop .chosen-drop{clip:auto;clip-path:none}.chosen-container a{cursor:pointer}.chosen-container .chosen-single .group-name,.chosen-container .search-choice .group-name{margin-right:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:400;color:#999}.chosen-container .chosen-single .group-name:after,.chosen-container .search-choice .group-name:after{content:":";padding-left:2px;vertical-align:top}.chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:25px;border:1px solid #aaa;border-radius:5px;background-color:#fff;background:linear-gradient(#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background-clip:padding-box;box-shadow:0 0 3px #fff inset,0 1px 1px rgba(0,0,0,.1);color:#444;text-decoration:none;white-space:nowrap;line-height:24px}.chosen-container-single .chosen-default{color:#999}.chosen-container-single .chosen-single span{display:block;overflow:hidden;margin-right:26px;text-overflow:ellipsis;white-space:nowrap}.chosen-container-single .chosen-single-with-deselect span{margin-right:38px}.chosen-container-single .chosen-single abbr{position:absolute;top:6px;right:26px;display:block;width:12px;height:12px;font-size:1px}.chosen-container-single .chosen-single div{position:absolute;top:0;right:0;display:block;width:18px;height:100%}.chosen-container-single .chosen-single div b{display:block;width:100%;height:100%}.chosen-container-single .chosen-search{position:relative;z-index:1010;margin:0;padding:3px 4px;white-space:nowrap}.chosen-container-single .chosen-search input[type=text]{margin:1px 0;padding:4px 20px 4px 5px;width:100%;height:auto;outline:0;border:1px solid #aaa;font-size:1em;font-family:sans-serif;line-height:normal;border-radius:0}.chosen-container-single .chosen-drop{margin-top:-1px;border-radius:0 0 4px 4px;background-clip:padding-box}.chosen-container-single.chosen-container-single-nosearch .chosen-search{position:absolute;clip:rect(0,0,0,0);clip-path:inset(100% 100%)}.chosen-container .chosen-results{color:#444;position:relative;overflow-x:hidden;overflow-y:auto;margin:0 4px 4px 0;padding:0 0 0 4px;max-height:240px;-webkit-overflow-scrolling:touch}.chosen-container .chosen-results li{display:none;margin:0;padding:5px 6px;list-style:none;line-height:15px;word-wrap:break-word;-webkit-touch-callout:none}.chosen-container .chosen-results li.active-result{display:list-item;cursor:pointer}.chosen-container .chosen-results li.disabled-result{display:list-item;color:#ccc;cursor:default}.chosen-container .chosen-results li.highlighted{background-color:#3875d7;background-image:linear-gradient(#3875d7 20%,#2a62bc 90%);color:#fff}.chosen-container .chosen-results li.no-results{color:#777;display:list-item;background:#f4f4f4}.chosen-container .chosen-results li.group-result{display:list-item;font-weight:700;cursor:default}.chosen-container .chosen-results li.group-option{padding-left:15px}.chosen-container .chosen-results li em{font-style:normal;text-decoration:underline}.chosen-container-multi .chosen-choices{position:relative;overflow:hidden;margin:0;padding:0 5px;width:100%;height:auto;border:1px solid #aaa;background-color:#fff;background-image:linear-gradient(#eee 1%,#fff 15%);cursor:text}.chosen-container-multi .chosen-choices li{float:left;list-style:none}.chosen-container-multi .chosen-choices li.search-field{margin:0;padding:0;white-space:nowrap}.chosen-container-multi .chosen-choices li.search-field input[type=text]{margin:1px 0;padding:0;outline:0;border:0!important;background:0 0!important;box-shadow:none;color:#999;font-size:100%;font-family:sans-serif;line-height:normal;border-radius:0;width:25px;height:25px;min-height:25px}.chosen-container-multi .chosen-choices li.search-choice{position:relative;margin:3px 5px 3px 0;padding:3px 20px 3px 6px;border:1px solid #aaa;max-width:100%;border-radius:3px;background-color:#eee;background-image:linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-size:100% 19px;background-repeat:repeat-x;background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);color:#333;line-height:13px;cursor:default}.chosen-container-multi .chosen-choices li.search-choice span{word-wrap:break-word;white-space:nowrap}.chosen-container-multi .chosen-choices li.search-choice .search-choice-close{position:absolute;top:0;right:0;display:block;width:12px;height:12px;font-size:1px}.chosen-container-multi .chosen-choices li.search-choice-disabled{padding-right:5px;border:1px solid #ccc;background-color:#e4e4e4;background-image:linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);color:#666}.chosen-container-multi .chosen-choices li.search-choice-focus{background:#d4d4d4}.chosen-container-multi .chosen-results{margin:0;padding:0}.chosen-container-active .chosen-single{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.chosen-container-active.chosen-with-drop .chosen-single{border:1px solid #aaa;border-bottom-right-radius:0;border-bottom-left-radius:0;background-image:linear-gradient(#eee 20%,#fff 80%);box-shadow:0 1px 0 #fff inset}.chosen-container-active.chosen-with-drop .chosen-single div{border-left:none;background:0 0}.chosen-container-active .chosen-choices{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.chosen-container-active .chosen-choices li.search-field input[type=text]{color:#222!important}.chosen-disabled{opacity:.5!important;cursor:default}.chosen-disabled .chosen-single{cursor:default}.chosen-disabled .chosen-choices .search-choice .search-choice-close{cursor:default}.chosen-rtl{text-align:right}.chosen-rtl .chosen-single{overflow:visible;padding:0 8px 0 0}.chosen-rtl .chosen-single span{margin-right:0;margin-left:26px;direction:rtl}.chosen-rtl .chosen-single-with-deselect span{margin-left:38px}.chosen-rtl .chosen-single div{right:auto;left:3px}.chosen-rtl .chosen-single abbr{right:auto;left:26px}.chosen-rtl .chosen-choices li{float:right}.chosen-rtl .chosen-choices li.search-field input[type=text]{direction:rtl}.chosen-rtl .chosen-choices li.search-choice{margin:3px 5px 3px 0;padding:3px 5px 3px 19px}.chosen-rtl .chosen-choices li.search-choice .search-choice-close{right:auto;left:4px}.chosen-rtl.chosen-container-single .chosen-results{margin:0 0 4px 4px;padding:0 4px 0 0}.chosen-rtl .chosen-results li.group-option{padding-right:15px;padding-left:0}.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div{border-right:none}.chosen-rtl .chosen-search input[type=text]{padding:4px 5px 4px 20px;direction:rtl}.spftestimonial--image.pro-feature{position:relative;pointer-events:none}.spftestimonial--image.pro-feature::after{position:absolute;top:1px;right:1px;color:#a5a5a5;background-color:#e0e0e0;font-weight:500;padding:0 4px;content:'PRO';text-align:center;font-size:8px}.spftestimonial-field-subheading.pro_heading{opacity:.7}.pro_only_field,.sp-field-icon-select.spftestimonial-pro-only,.spftestimonial-field-button_set .spftestimonial--button.spftestimonial-pro-only,.spftestimonial-field-checkbox.pro_only_field,.spftestimonial-field-color.pro_only_field,.spftestimonial-field-image_select .spftestimonial--image.spftestimonial-pro-only,.spftestimonial-field.spftestimonial-field-text.pro_only_field{pointer-events:none;opacity:.8}.sp-field-icon-select.spftestimonial-pro-only{opacity:.5}.spftestimonial-field-repeater.social-profile-repeater .spftestimonial-repeater-wrapper .spftestimonial-repeater-item{display:grid;grid-template-columns:9fr 1fr}.spftestimonial-field-repeater.social-profile-repeater .spftestimonial-repeater-content{display:grid;grid-template-columns:1fr 5fr}.spftestimonial-field-repeater.social-profile-repeater .spftestimonial-repeater-item{max-width:600px}.spftestimonial-field-repeater.social-profile-repeater .spftestimonial-repeater-helper{border-left:0;background-color:transparent}.spftestimonial-field-repeater.social-profile-repeater .spftestimonial-repeater-helper-inner{width:100px;line-height:4em}.spftestimonial-field.spftestimonial-field-image_select.theme_style img{width:400px}.spftestimonial-field.spftestimonial-field-image_select.theme_style .spftestimonial-fieldset{margin-left:0}.spftestimonial-field.spftestimonial-field-image_select.theme_style .spftestimonial-title{width:100%;margin-bottom:30px;float:none}.spftestimonial-field.spftestimonial-field-image_select.theme_style .spftestimonial--image{margin:0 24px 24px 0}.spftestimonial-field-switcher.pro_switcher .spftestimonial--ball::after{content:"PRO";position:relative;text-align:center;width:24px;float:right;font-weight:600;font-size:8px;color:#a5a5a5;opacity:1;line-height:18px}.pro_switcher .spftestimonial--switcher{background-color:#cbcfd0;pointer-events:none}.sp-field-icon-select.spftestimonial-pro-only:last-child:after,.spftestimonial-field-button_set .spftestimonial--button.spftestimonial-pro-only:after{position:absolute;content:'';top:0;right:0;color:#999;background-color:#e0e0e0;font-weight:500;padding:0 4px;content:"PRO";text-align:center;font-size:8px;line-height:11px;opacity:1}.client_image_style.spftestimonial-field-image_select img{width:70px}.sp-field-icon-select.spftestimonial-pro-only:last-child:after{content:"PRO";color:#444}.spftestimonial-field.spftestimonial-field-checkbox .spftestimonial-help{bottom:15px;right:auto;top:auto}.spftestimonial-field.spftestimonial-field-submessage.pro_only_field{opacity:.7}.spftestimonial-field-sortable.form_fields .spftestimonial--sortable .spftestimonial--sortable-item{margin:0;border:0}.spftestimonial-field-sortable.form_fields .spftestimonial--sortable-content>.spftestimonial-field{padding:0}.spftestimonial-field-sortable.form_fields .spftestimonial--sortable-helper{display:none}.form_fields .spftestimonial-accordion-items{position:relative}.form_fields .spftestimonial-accordion-item::after{position:absolute;top:18px;right:16px;content:"\f0b2";display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.spftestimonial-field-form_upper_section{background:#f5fcff;padding:50px 0 70px}.spftestimonial-field-form_upper_section .sp-tfree-help .sp-tfree-pro-features .feature-section span.dashicons{height:22px;width:22px;font-size:16px;line-height:22px}.spftestimonial-field-form_upper_section div.sp-tfree-help .sp-tfree-pro-features .feature-section{margin-bottom:40px;margin-left:auto;margin-right:auto;text-align:center;max-width:1200px}.spftestimonial-field-form_upper_section div.sp-tfree-help .sp-tfree-pro-features .feature-section .sp-tfree-feature{box-shadow:none;margin:0;border:0 solid;background-color:transparent}div.sp-tfree-help .sp-tfree-pro-features h1{font-size:30px;font-weight:500;color:#444}div.sp-tfree-help .sp-tfree-pro-features .sp-tfree-pro-subtitle{font-size:18px;font-weight:400}.spftestimonial-field-form_upper_section .sp-tfree-upgrade a.tfree-upgrade-btn:hover{background:#0a73a7}.spftestimonial-field-form_upper_section .sp-tfree-upgrade a.tfree-upgrade-btn{transition:all .5s;background:#1595ce;padding:0 25px;line-height:46px;display:block;color:#fff;border-radius:3px;font-weight:600;display:inline-block;text-align:center}.spftestimonial-field-form_upper_section .sp-tfree-pro-features .feature-section .sp-tfree-feature h3{color:#2d4d5b}.spftestimonial-field-form_upper_section .sp-tfree-help .feature-section .sp-tfree-feature{padding:0 0 10px;text-align:left}#sp_tpro_form_elements_options .handle-actions.hide-if-no-js,#sp_tpro_form_options .postbox-header,div#sp_tfree_form_upper_section .postbox-header,div#sp_tpro_form_elements_options .handle-actions.hide-if-no-js{display:none}#sp_tpro_form_options .spftestimonial-nav-metabox .spftestimonial--sortable-item .spftestimonial-accordion-title{pointer-events:none}#sp_tpro_form_options .spftestimonial-field-accordion .spftestimonial-accordion-title,#sp_tpro_form_options .spftestimonial-field-sortable.form_fields .spftestimonial--sortable-content>.spftestimonial-field,#sp_tpro_form_options .spftestimonial-nav-metabox,#sp_tpro_form_options .spftestimonial-nav-metabox li a{pointer-events:none}div#spftestimonial-section-sp_tpro_form_elements_options_1 .spftestimonial-field-checkbox ul{max-height:100%}#sp_tpro_form_options .spftestimonial-metabox .spftestimonial-nav{display:block;position:relative;z-index:10;float:left;width:225px}#sp_tpro_form_options .spftestimonial-metabox .spftestimonial-content{position:relative;margin-left:225px;background-color:#fff;-moz-transition:opacity .2s;-o-transition:opacity .2s;-webkit-transition:opacity .2s;transition:opacity .2s}#sp_tpro_form_options .spftestimonial-metabox .spftestimonial-nav ul li{display:list-item}#sp_tpro_form_options .spftestimonial-metabox .spftestimonial-nav ul li a{color:#464646;background-color:#f5f5f5;border-top:0;border-right:0;border-bottom:1px solid #ccd0d4;margin-bottom:0;padding:15px 15px;text-transform:uppercase;font-weight:600}#sp_tpro_form_options .spftestimonial-metabox .spftestimonial-nav ul li .spftestimonial-section-active{box-shadow:3px 0 0 0 #1595ce inset;background-color:#fff;color:#1595ce}#sp_tpro_form_options .spftestimonial-metabox .spftestimonial-nav-background{background-color:#f5f5f5;border-right:1px solid #ccd0d4;display:block}#sp_tpro_form_options .spftestimonial-field-sortable .spftestimonial-field-text input{max-width:400px}.spftestimonial-field.spftestimonial-field-button_set.spt_export{margin-top:0;padding-top:0}.spftestimonial-field-button_set.spt_export .spftestimonial--button:hover,.spftestimonial-field.spftestimonial-field-custom_import.spt_import button:hover{background:#135e96;border-color:#135e96;color:#fff}.spftestimonial-field-button_set.spt_export .spftestimonial--button,.spftestimonial-field.spftestimonial-field-custom_import.spt_import button{background:#2271b1;border-color:#2271b1;color:#fff;text-decoration:none;text-shadow:none;display:inline-block;text-decoration:none;font-size:13px;line-height:2.15384615;min-height:30px;margin:0;padding:0 10px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box}.sp-lcp-options .spftestimonial-field-select .spftestimonial-fieldset{position:relative}.spftestimonial-field.spftestimonial-field-custom_import.spt_import .spftestimonial-fieldset{position:relative}.spftestimonial-field.spftestimonial-field-custom_import.spt_import p{padding-bottom:0;margin-bottom:1px}.spftestimonial-field.spftestimonial-field-custom_import.spt_import button{margin-top:10px;padding-bottom:0}.spftestimonial-field.spftestimonial-field-custom_import.spt_import .spftestimonial-help{cursor:help;position:absolute;top:80%;transform:translateY(-50%);padding:5px;font-size:14px;color:#aaa;width:15px;left:64px}.spftestimonial-field.spftestimonial-field-select.spt_post_forms_id .chosen-container .chosen-drop,.spftestimonial-field.spftestimonial-field-select.spt_post_id .chosen-container .chosen-drop{max-width:400px}.spftestimonial-field.spftestimonial-field-select.spt_post_forms_id .chosen-container,.spftestimonial-field.spftestimonial-field-select.spt_post_id .chosen-container{max-width:400px}.spftestimonial-field.spftestimonial-field-select.spt_post_forms_id,.spftestimonial-field.spftestimonial-field-select.spt_post_id{padding-top:0}.spftestimonial_tools .spftestimonial-header-inner h1.export-import img{height:24px}.spftestimonial_tools .spftestimonial-nav-options li:nth-child(1) a{background-image:url(../images/export-icon.svg)}.spftestimonial_tools .spftestimonial-nav-options li:nth-child(2) a{background-image:url(../images/import.svg)}.spftestimonial_tools .spftestimonial-nav-options li:nth-child(1) a.spftestimonial-section-active{background-image:url(../images/file-export-icon1.svg)}.spftestimonial_tools .spftestimonial-nav-options li:nth-child(2) a.spftestimonial-section-active{background-image:url(../images/file-import-icon1.svg)}.spt-main-class.spftestimonial-theme-light.spftestimonial_tools .spftestimonial-nav-options ul li a{padding:15px 30px;background-size:14px;background-position:10px center;background-repeat:no-repeat}
1
+ .spftestimonial{position:relative}.spftestimonial label{padding:0;margin:0;display:inline-block}.spftestimonial-ab-icon{top:2px}#screen-meta-links+.spftestimonial-options{margin-top:40px}.spftestimonial-options{margin-top:20px;margin-right:20px}.spftestimonial-header{position:relative}.spftestimonial-header-inner{padding:25px}.spftestimonial-header-inner h1 img{height:24px;width:24px;margin-right:8px;margin-bottom:-4px}.spftestimonial-header-inner h1{color:#444;float:left;font-size:20px;line-height:35px;font-weight:600;margin:0}.spftestimonial-header-inner h1 small{font-size:11px;font-weight:500}.spftestimonial-sticky .spftestimonial-header-inner{position:fixed;z-index:99999;top:32px;-moz-box-shadow:0 5px 25px rgba(0,0,0,.125);-webkit-box-shadow:0 5px 25px rgba(0,0,0,.125);box-shadow:0 5px 25px rgba(0,0,0,.125)}.spftestimonial-header-left{float:left}.spftestimonial-header-right{float:right}.spftestimonial-buttons .button{margin:0 4px;padding:0 16px;border-radius:0;height:38px;font-size:13px;font-weight:500;text-transform:uppercase;color:#fff}.spftestimonial-buttons .button.spftestimonial-save-ajax{background-color:#02cc7b;border-color:transparent;color:#fff!important;-webkit-box-shadow:none;box-shadow:none;text-shadow:none;border-radius:4px;height:38px;width:75px;-webkit-transition:background-color .2s;transition:background-color .2s}.spftestimonial-buttons .button.spftestimonial-save-ajax:hover{background-color:#02bb71}.spftestimonial-buttons .button.spftestimonial-save-ajax:focus{color:#fff}.spftestimonial-buttons .button.spftestimonial-save-ajax[disabled]{background-color:#02bb71!important;border:none}.spftestimonial-buttons .button.spftestimonial-reset-all,.spftestimonial-buttons .button.spftestimonial-reset-section{background-color:#cd3c3c!important;border-color:transparent!important;-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:none!important;border-radius:4px;height:38px;-webkit-transition:background-color .2s;transition:background-color .2s}.spftestimonial-buttons .button.spftestimonial-reset-all:hover,.spftestimonial-buttons .button.spftestimonial-reset-section:hover{background-color:#b82f2f!important}.spftestimonial-buttons .button.spftestimonial-reset-section{background-color:#77777c!important}.spftestimonial-buttons .button.spftestimonial-reset-section:hover{background-color:#616166!important;color:#fff}.spftestimonial-nav{display:block;position:relative;z-index:10;float:left;width:225px}.spftestimonial-nav ul{clear:left;margin:0;list-style-type:none}.spftestimonial-nav ul li{margin-bottom:0}.spftestimonial-nav ul li a{font-size:13px;position:relative;display:block;padding:14px 12px;text-decoration:none;-moz-transition:all .3s ease;-o-transition:all .3s ease;-webkit-transition:all .3s ease;transition:all .3s ease}.spftestimonial-nav ul li a:focus{outline:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.spftestimonial-nav ul li .spftestimonial-section-active:after{content:" ";position:absolute;right:0;top:50%;height:0;width:0;pointer-events:none;border:solid transparent;border-right-color:#fff;border-width:4px;margin-top:-4px}.spftestimonial-nav ul li .spftestimonial-arrow:after{content:"\f054";display:inline-block;font-family:FontAwesome;font-size:9px;line-height:1;position:absolute;right:10px;top:50%;margin-top:-4px;-moz-transform:rotate(0);-ms-transform:rotate(0);-webkit-transform:rotate(0);transform:rotate(0)}.spftestimonial-nav ul li.spftestimonial-tab-active .spftestimonial-arrow:after{-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-webkit-transform:rotate(90deg);transform:rotate(90deg)}.spftestimonial-nav ul li.spftestimonial-tab-active ul{display:block}.spftestimonial-nav ul ul{display:none;position:relative}.spftestimonial-nav ul ul li a{font-size:12px;padding:12px 14px 12px 24px}.spftestimonial-nav .fa{width:20px;margin-right:5px;font-size:14px;text-align:center}.spftestimonial-nav .spftestimonial-label-error{margin-left:4px;vertical-align:top}.spftestimonial-nav-background{position:absolute;top:0;left:0;bottom:0;z-index:9;width:225px}.spftestimonial-wrapper{position:relative}.spftestimonial-content{position:relative;margin-left:225px;background-color:#fff;-moz-transition:opacity .2s;-o-transition:opacity .2s;-webkit-transition:opacity .2s;transition:opacity .2s}.spftestimonial-sections{float:left;width:100%}.spftestimonial-section{display:none}.spftestimonial-section-title{display:none;padding:20px 30px;background-color:#f5f5f5;border-top:1px solid #eee;border-bottom:1px solid #eee}.spftestimonial-section-title h3{margin:0;padding:0;font-size:13px;font-weight:700;text-transform:uppercase}.spftestimonial-section-title .fa{margin-right:5px}.spftestimonial-footer{padding:20px;font-size:11px}.spftestimonial-copyright{float:left;margin-top:5px}.spftestimonial-search-all .spftestimonial-nav,.spftestimonial-search-all .spftestimonial-nav-background,.spftestimonial-show-all .spftestimonial-nav,.spftestimonial-show-all .spftestimonial-nav-background{display:none}.spftestimonial-search-all .spftestimonial-content,.spftestimonial-show-all .spftestimonial-content{margin-left:0}.spftestimonial-search-all .spftestimonial-section,.spftestimonial-search-all .spftestimonial-section-title,.spftestimonial-show-all .spftestimonial-section,.spftestimonial-show-all .spftestimonial-section-title{display:block!important}.spftestimonial-search-all .spftestimonial-section-title{display:none!important}.spftestimonial-expand-all{float:left;padding:0 8px;margin-right:4px;z-index:1;font-size:14px;line-height:28px;cursor:pointer;user-select:none;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-transition:all .2s;-o-transition:all .2s;-webkit-transition:all .2s;transition:all .2s}.spftestimonial-expand-all span{font-size:11px;vertical-align:middle}.spftestimonial-search{float:left}.spftestimonial-search input{margin:0 2px 0 0;border:none;font-size:12px;line-height:28px;min-height:28px;text-align:inherit;padding:0 10px;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.spftestimonial-search input:focus{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.spftestimonial-saving .spftestimonial-buttons,.spftestimonial-saving .spftestimonial-content{cursor:default;pointer-events:none;opacity:.5}.spftestimonial-metabox{margin:-6px -12px -12px -12px}.spftestimonial-metabox .spftestimonial-section-title{padding:20px}.block-editor-page .spftestimonial-metabox{margin:-6px -14px -12px -14px}.spftestimonial-restore-wrapper{text-align:right;padding:10px;border-top:1px solid #eee}.spftestimonial-restore-wrapper .spftestimonial-button-cancel,.spftestimonial-restore-wrapper input{display:none}.spftestimonial-restore-wrapper span{-webkit-user-select:none;user-select:none}.spftestimonial-restore-wrapper input:checked~.spftestimonial-button-restore{display:none}.spftestimonial-restore-wrapper input:checked~.spftestimonial-button-cancel{display:inline-block}#side-sortables .spftestimonial-section-title{padding:12px}#side-sortables .spftestimonial-field{padding:12px}#side-sortables .spftestimonial-field .spftestimonial-title{float:none;width:100%;margin-bottom:10px}#side-sortables .spftestimonial-field .spftestimonial-fieldset{margin-left:0}#side-sortables .spftestimonial-notice{padding:12px 12px 12px 0}.spftestimonial-tooltip{position:absolute;z-index:5000001;font-size:12px;line-height:1.4;text-align:left;text-decoration:none;padding:6px 12px;max-width:200px;color:#fff;background-color:#000;background-color:rgba(0,0,0,.85);-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}.spftestimonial-theme-dark .spftestimonial-header-inner{background-color:#050505}.spftestimonial-theme-dark .spftestimonial-header-inner h1{color:#fff}.spftestimonial-theme-dark .spftestimonial-header-inner h1 small{color:#555}.spftestimonial-theme-dark .spftestimonial-expand-all{color:#999;background-color:#222}.spftestimonial-theme-dark .spftestimonial-expand-all:hover{color:#fff;background-color:#333}.spftestimonial-theme-dark .spftestimonial-search input{color:#fff;background-color:#222}.spftestimonial-theme-dark .spftestimonial-search:focus{background-color:#444}.spftestimonial-theme-dark .spftestimonial-search::-webkit-input-placeholder{color:#666}.spftestimonial-theme-dark .spftestimonial-nav ul li a{color:#999;background-color:#222;border-bottom:1px solid #2f2f2f}.spftestimonial-theme-dark .spftestimonial-nav ul li a:hover{color:#fff}.spftestimonial-theme-dark .spftestimonial-nav ul li .spftestimonial-section-active{color:#fff;background-color:#111}.spftestimonial-theme-dark .spftestimonial-nav ul ul li a{background-color:#191919;border-bottom:1px solid #2f2f2f}.spftestimonial-theme-dark .spftestimonial-nav ul ul li .spftestimonial-section-active{background-color:#101010}.spftestimonial-theme-dark .spftestimonial-nav ul ul:before{background-color:rgba(34,34,34,.75)}.spftestimonial-theme-dark .spftestimonial-nav>ul>li:last-child>a{border-bottom:none}.spftestimonial-theme-dark .spftestimonial-nav-background{background-color:#222}.spftestimonial-theme-dark .spftestimonial-footer{color:#555;background-color:#050505}.spftestimonial-theme-light .spftestimonial-container{border:1px solid #e5e5e5;-moz-box-shadow:0 0 15px rgba(0,0,0,.04);-webkit-box-shadow:0 0 15px rgba(0,0,0,.04);box-shadow:0 0 15px rgba(0,0,0,.04)}.spftestimonial-theme-light .spftestimonial-header-inner{border-bottom:1px solid #e5e5e5;background-color:#f5f5f5;background:linear-gradient(#fefefe,#f5f5f5)}.spftestimonial-theme-light .spftestimonial-header-inner h1 small{color:#999}.spftestimonial-theme-light .spftestimonial-expand-all{color:#999;background-color:#fff;-moz-box-shadow:0 1px 1px rgba(0,0,0,.05);-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.spftestimonial-theme-light .spftestimonial-expand-all:hover{color:#555}.spftestimonial-theme-light .spftestimonial-search input{color:#555;background-color:#fff;-moz-box-shadow:0 1px 1px rgba(0,0,0,.05);-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.spftestimonial-theme-light .spftestimonial-search input::-webkit-input-placeholder{color:#bbb}.spftestimonial-theme-light .spftestimonial-nav ul li a{color:#666;background-color:#f5f5f5;border-bottom:1px solid #e5e5e5}.spftestimonial-theme-light .spftestimonial-nav ul li a:hover{color:#222}.spftestimonial-theme-light .spftestimonial-nav ul li .spftestimonial-section-active{color:#222;background-color:#fff}.spftestimonial-theme-light .spftestimonial-nav ul li .spftestimonial-section-active:after{display:none}.spftestimonial-theme-light .spftestimonial-nav ul ul li a{background-color:#eee;border-bottom:1px solid #e5e5e5}.spftestimonial-theme-light .spftestimonial-nav>ul>li:last-child>a{border-bottom:none}.spftestimonial-theme-light .spftestimonial-nav-background{background-color:#f5f5f5}.spftestimonial-theme-light .spftestimonial-footer{color:#555;border-top:1px solid #e5e5e5;background-color:#f5f5f5;background:linear-gradient(#fafafa,#f5f5f5)}.spftestimonial-field{position:relative;padding:20px 30px}.spftestimonial-field p:first-child{margin-top:0}.spftestimonial-field p:last-child{margin-bottom:0}.spftestimonial-field:after,.spftestimonial-field:before{content:" ";display:table}.spftestimonial-field:after{clear:both}.spftestimonial-field h4{margin-top:0}.spftestimonial-field .spftestimonial-title{position:relative;width:20%;float:left}.spftestimonial-field .spftestimonial-title h4{margin:0;color:#23282d;display:inline-block}.spftestimonial-field .spftestimonial-fieldset{margin-left:25%}.spftestimonial-pseudo-field{padding:0 5px 0 0!important;display:inline-block}.spftestimonial-pseudo-field+.spftestimonial-pseudo-field{border:0}.spftestimonial-pseudo-field pre{display:none}.spftestimonial-field-accordion .spftestimonial-accordion-item{position:relative;margin-bottom:5px}.spftestimonial-field-accordion .spftestimonial-accordion-item h4{font-size:1em}.spftestimonial-field-accordion .spftestimonial-accordion-title{display:block;cursor:pointer;position:relative;margin:0;padding:15px;min-height:0;font-size:100%;user-select:none;border:1px solid #ccd0d4;background-color:#fafafa;box-shadow:0 1px 1px rgba(0,0,0,.04);transition:border-color .15s}.spftestimonial-field-accordion .spftestimonial-accordion-title:active,.spftestimonial-field-accordion .spftestimonial-accordion-title:focus,.spftestimonial-field-accordion .spftestimonial-accordion-title:hover{outline:0;border-color:#999}.spftestimonial-field-accordion .spftestimonial-accordion-icon{width:14px;text-align:center}.spftestimonial-field-accordion .spftestimonial--icon{width:20px;text-align:center}.spftestimonial-field-accordion .spftestimonial-accordion-content{display:none;padding:0;border:1px solid #ccd0d4;border-top:none;background-color:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.spftestimonial-field-accordion .spftestimonial-accordion-content>.spftestimonial-field{padding:15px}.spftestimonial-field-accordion .spftestimonial-accordion-open{display:block}.spftestimonial-field-background .spftestimonial-field{border:0!important;padding:0;margin-bottom:6px;margin-right:6px}.spftestimonial-field-background .spftestimonial--title{color:#777;font-size:12px}.spftestimonial-field-background .spftestimonial--background-colors{display:flex}.spftestimonial-field-background .spftestimonial--background-attributes{display:flex;flex-wrap:wrap}.spftestimonial-field-background .spftestimonial--background-attributes select{min-width:100%;margin:0}.spftestimonial-field-background .spftestimonial--background-attributes .spftestimonial-field{flex:1}.spftestimonial-field-background .spftestimonial--attributes-hidden{display:none}.spftestimonial-field-background .wp-color-result.button{margin-bottom:0}.spftestimonial-field-backup textarea{width:100%;min-height:200px;margin-bottom:5px}.spftestimonial-field-backup small{display:inline-block;margin:5px}.spftestimonial-field-backup hr{margin:20px 0;border:none;border-bottom:1px solid #e5e5e5}.spftestimonial-field-custom_size.disabled .spftestimonial-fieldset{pointer-events:none;opacity:.7}.spftestimonial-field-custom_size.disabled .spftestimonial-fieldset .spftestimonial--input:after{content:'Pro';text-transform:uppercase;line-height:30px;margin-left:6px;color:#444}.spftestimonial-field-column .spftestimonial--input input,.spftestimonial-field-custom_size .spftestimonial--input input{border-radius:0 4px 4px 0}.spftestimonial-field-column .spftestimonial--input{float:left}.spftestimonial-field-custom_size .spftestimonial--input{float:left;margin-right:10px;margin-bottom:7px}.spftestimonial-field-custom_size .spftestimonial--input input{line-height:30px;float:left;margin:0;padding:0;width:65px;max-width:100%;text-align:center;border-radius:0}.spftestimonial-field-custom_size .spftestimonial--label.spftestimonial--label-unit{border-right:1px solid #ddd;border-left:0;border-radius:0 2px 2px 0}.spftestimonial-field-column .spftestimonial--label,.spftestimonial-field-custom_size .spftestimonial--label{float:left;max-width:100%;font-size:12px;line-height:30px;vertical-align:top;text-align:center;color:#555;border:1px solid #ddd;background-color:#eee;padding:0 6px;min-height:30px;min-width:20px;border-right:0;border-radius:4px 0 0 4px}.spftestimonial-field-border .spftestimonial--inputs,.spftestimonial-field-column .spftestimonial--inputs,.spftestimonial-field-dimensions .spftestimonial--inputs,.spftestimonial-field-spacing .spftestimonial--inputs{float:left;display:flex;flex-wrap:wrap}.spftestimonial-field-border .spftestimonial--input,.spftestimonial-field-column .spftestimonial--input,.spftestimonial-field-dimensions .spftestimonial--input,.spftestimonial-field-spacing .spftestimonial--input{display:flex;padding-right:6px;padding-bottom:4px;box-sizing:border-box}.spftestimonial-field-border .spftestimonial--input select,.spftestimonial-field-dimensions .spftestimonial--input select,.spftestimonial-field-spacing .spftestimonial--input select{margin:0}.spftestimonial-field-border .spftestimonial--input input,.spftestimonial-field-column .spftestimonial--input input,.spftestimonial-field-dimensions .spftestimonial--input input,.spftestimonial-field-spacing .spftestimonial--input input{position:relative;z-index:1;margin:0;width:65px;max-width:100%;padding:0;text-align:center;border:1px solid #ddd}.spftestimonial-field-border .spftestimonial--color,.spftestimonial-field-dimensions .spftestimonial--color,.spftestimonial-field-spacing .spftestimonial--color{float:left}.spftestimonial-field-border .spftestimonial--color .spftestimonial--title{margin-top:-22px}.spftestimonial-field-border .spftestimonial--label,.spftestimonial-field-dimensions .spftestimonial--label,.spftestimonial-field-spacing .spftestimonial--label{display:flex;flex-direction:column;justify-content:center;user-select:none;min-width:20px;max-width:100%;padding:0 4px;font-size:12px;text-align:center;color:#555;border:1px solid #7b776c;background-color:#f5f5f5}.spftestimonial-field-border .spftestimonial--icon,.spftestimonial-field-dimensions .spftestimonial--icon,.spftestimonial-field-spacing .spftestimonial--icon{border-right:0;border-radius:4px 0 0 4px}.spftestimonial-field-border .spftestimonial--icon+input,.spftestimonial-field-dimensions .spftestimonial--icon+input,.spftestimonial-field-spacing .spftestimonial--icon+input{border-top-left-radius:0;border-bottom-left-radius:0}.spftestimonial-field-border .spftestimonial--unit,.spftestimonial-field-dimensions .spftestimonial--unit,.spftestimonial-field-spacing .spftestimonial--unit{border-left:0;border-radius:0 4px 4px 0}.spftestimonial-field-border .spftestimonial--is-unit,.spftestimonial-field-dimensions .spftestimonial--is-unit,.spftestimonial-field-spacing .spftestimonial--is-unit{border-top-right-radius:0;border-bottom-right-radius:0}.spftestimonial-field-button_set .spftestimonial--buttons{display:inline-block}.spftestimonial-field-button_set .spftestimonial--button{position:relative;z-index:1;float:left;cursor:pointer;padding:7px 14px;min-width:40px;text-align:center;color:#555;border:1px solid #ccc;background-color:#f7f7f7;user-select:none;-webkit-user-select:none;box-shadow:0 1px 0 rgba(0,0,0,.1)}.spftestimonial-field-button_set .spftestimonial--button:first-child{border-radius:4px 0 0 4px}.spftestimonial-field-button_set .spftestimonial--button:last-child{border-radius:0 4px 4px 0}.spftestimonial-field-button_set .spftestimonial--button:not(:first-child){margin-left:-1px}.spftestimonial-field-button_set .spftestimonial--button:hover{background-color:#eee}.spftestimonial-field-button_set .spftestimonial--active,.spftestimonial-field-button_set .spftestimonial--active:hover{z-index:2;color:#fff;border-color:#006799;background-color:#0085ba}.spftestimonial-field-button_set input{display:none}.spftestimonial-field-checkbox ul,.spftestimonial-field-radio ul{margin:0;padding:0 1px;list-style-type:none;overflow-y:auto;max-height:305px}.spftestimonial-field-checkbox ul ul,.spftestimonial-field-radio ul ul{max-height:none}.spftestimonial-field-checkbox .spftestimonial--inline-list li,.spftestimonial-field-radio .spftestimonial--inline-list li{display:inline-block;margin-right:15px}.spftestimonial-field-checkbox input[type=radio]:checked:before,.spftestimonial-field-radio input[type=radio]:checked:before{line-height:10px}.spftestimonial-field-checkbox .spftestimonial-checker,.spftestimonial-field-radio .spftestimonial-checker{cursor:pointer}.spftestimonial-field-code_editor .CodeMirror{width:100%;height:400px}.spftestimonial-field-code_editor .cm-s-default{border:1px solid #ccd0d4}.spftestimonial-field-code_editor textarea{width:100%;height:400px}.spftestimonial-field-color>input{opacity:.75;width:115px;max-width:100%}.spftestimonial-field-color .button.wp-picker-clear{margin-left:6px;padding:2px 8px}.spftestimonial-field-color_group .spftestimonial--left{float:left;margin-right:10px;margin-bottom:5px}.spftestimonial-field-border .spftestimonial--color .spftestimonial--title,.spftestimonial-field-color_group .spftestimonial--title{color:#999;margin-bottom:5px}.spftestimonial-field-fieldset .spftestimonial-fieldset-content{border:1px solid #ccd0d4;background-color:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.spftestimonial-field-fieldset .spftestimonial-fieldset-content>.spftestimonial-field{padding:15px}.spftestimonial-field-fieldset .spftestimonial-field-subheading{font-size:13px}.spftestimonial-field-date input{margin:0}.spftestimonial-field-date .spftestimonial--to{margin-left:7px}.spftestimonial-datepicker-wrapper{margin-top:5px;width:auto;background-color:#fff;z-index:9999999!important;-moz-box-shadow:0 0 30px rgba(0,0,0,.15);-webkit-box-shadow:0 0 30px rgba(0,0,0,.15);box-shadow:0 0 30px rgba(0,0,0,.15)}.spftestimonial-datepicker-wrapper *{float:none;margin:0;padding:0;font-family:inherit;font-weight:400;font-style:normal;text-decoration:none;border:0;border-radius:0;box-shadow:none}.spftestimonial-datepicker-wrapper .ui-datepicker-header,.spftestimonial-datepicker-wrapper .ui-widget-header{color:#fff;background:#00a0d2}.spftestimonial-datepicker-wrapper .ui-datepicker-header .ui-state-hover{cursor:pointer}.spftestimonial-datepicker-wrapper .ui-datepicker-title{font-size:14px;line-height:40px;text-align:center}.spftestimonial-datepicker-wrapper .ui-datepicker-next,.spftestimonial-datepicker-wrapper .ui-datepicker-prev{position:static;top:auto;left:auto;right:auto;font-family:FontAwesome;font-size:12px;text-align:center;width:41px;height:40px;line-height:40px;color:#fff;background-color:rgba(255,255,255,.1);text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.spftestimonial-datepicker-wrapper .ui-datepicker-next span,.spftestimonial-datepicker-wrapper .ui-datepicker-prev span{display:none}.spftestimonial-datepicker-wrapper .ui-datepicker-prev{float:left}.spftestimonial-datepicker-wrapper .ui-datepicker-next{float:right}.spftestimonial-datepicker-wrapper .ui-datepicker-prev:before{content:'\f053'}.spftestimonial-datepicker-wrapper .ui-datepicker-next:before{content:'\f054'}.spftestimonial-datepicker-wrapper .ui-datepicker-next-hover,.spftestimonial-datepicker-wrapper .ui-datepicker-prev-hover{opacity:.75}.spftestimonial-datepicker-wrapper tbody .ui-datepicker-week-col{background-color:#f7f7f7}.spftestimonial-datepicker-wrapper .ui-datepicker-buttonpane{padding:10px;text-align:center;background-color:#f7f7f7}.spftestimonial-datepicker-wrapper .ui-datepicker-buttonpane button{cursor:pointer;margin:0 5px;padding:7px 14px;border:1px solid #eee;background-color:#fff}.spftestimonial-datepicker-wrapper select{margin:0 4px}.spftestimonial-datepicker-wrapper select option{color:#555}.spftestimonial-datepicker-wrapper table{font-size:13px;border-collapse:collapse;width:100%}.spftestimonial-datepicker-wrapper thead{color:#fff;background:#32373c}.spftestimonial-datepicker-wrapper th{text-align:center;padding:7px;border:1px solid #444}.spftestimonial-datepicker-wrapper td{text-align:center;border:1px solid #f4f4f4}.spftestimonial-datepicker-wrapper td.ui-datepicker-other-month{border:transparent}.spftestimonial-datepicker-wrapper td .ui-state-default{color:#555;width:auto;display:block;padding:6px 12px}.spftestimonial-datepicker-wrapper td .ui-state-active,.spftestimonial-datepicker-wrapper td .ui-state-hover{color:#fff;background-color:#0073aa}.spftestimonial-datepicker-wrapper td.ui-state-disabled .ui-state-default{opacity:.5}.spftestimonial-field-gallery input{display:none}.spftestimonial-field-gallery ul{margin:0;padding:0;list-style-type:none}.spftestimonial-field-gallery ul li{display:inline-block;position:relative;padding:4px;margin:0 5px 10px 0;border:1px solid #ccc;background-color:#f9f9f9;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:0 1px 0 rgba(0,0,0,.08);-webkit-box-shadow:0 1px 0 rgba(0,0,0,.08);box-shadow:0 1px 0 rgba(0,0,0,.08)}.spftestimonial-field-gallery ul li img{max-height:60px;display:inline-block;vertical-align:middle}.spftestimonial-field-gallery .button{margin-right:5px;margin-bottom:5px}.spftestimonial-field-group .spftestimonial-cloneable-hidden{display:none!important}.spftestimonial-field-group .spftestimonial-cloneable-wrapper{position:relative}.spftestimonial-field-group .spftestimonial-cloneable-item{display:none;position:relative;margin-bottom:5px}.spftestimonial-field-group .spftestimonial-cloneable-item h4{font-size:1em}.spftestimonial-field-group .ui-accordion .spftestimonial-cloneable-item{display:block}.spftestimonial-field-group .spftestimonial-cloneable-content{border:1px solid #ccd0d4;background-color:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.spftestimonial-field-group .spftestimonial-cloneable-content>.spftestimonial-field{padding:15px}.spftestimonial-field-group .spftestimonial-cloneable-title{display:block;cursor:pointer;position:relative;user-select:none;margin:0;padding:15px 65px 15px 10px;min-height:0;font-size:100%;border:1px solid #ccd0d4;background-color:#fafafa;box-shadow:0 1px 1px rgba(0,0,0,.04);transition:border-color .15s}.spftestimonial-field-group .spftestimonial-cloneable-title:active,.spftestimonial-field-group .spftestimonial-cloneable-title:focus,.spftestimonial-field-group .spftestimonial-cloneable-title:hover{border-color:#999;outline:0}.spftestimonial-field-group .spftestimonial-cloneable-helper{position:absolute;top:12px;right:10px;z-index:1;font-size:14px;line-height:1em}.spftestimonial-field-group .spftestimonial-cloneable-helper i{display:inline-block;cursor:pointer;padding:5px;color:#999}.spftestimonial-field-group .spftestimonial-cloneable-helper i:hover{color:#555}.spftestimonial-field-group .spftestimonial-cloneable-content{padding:0;border-top:0}.spftestimonial-field-group .spftestimonial-cloneable-title-number,.spftestimonial-field-group .spftestimonial-cloneable-title-prefix{margin-right:5px}.spftestimonial-field-group .spftestimonial-cloneable-alert{display:none;margin-bottom:5px;padding:10px 20px;color:#a94442;border:1px solid #ebccd1;background-color:#f2dede}.spftestimonial-field-group .widget-placeholder{margin-bottom:10px;border:1px dashed #f1c40f;background-color:#fffae4}.spftestimonial-field-group .spftestimonial-cloneable-header-icon{display:inline-block;text-align:center;font-size:14px;width:17px;text-indent:0;vertical-align:text-top}.spftestimonial-field-group .spftestimonial-cloneable-placeholder{background-color:#ddd;margin-top:4px;width:100px;height:10px;font-size:10px;line-height:10px;display:inline-block;vertical-align:top;border-radius:2px}.spftestimonial-field-icon_select .spftestimonial--image{width:35px;height:35px;text-align:center;line-height:35px;font-size:20px}.spftestimonial-field-image_select .spftestimonial--image p{margin:6px 0 0 0;font-weight:600}.spftestimonial-field-icon_select .spftestimonial--image,.spftestimonial-field-image_select .spftestimonial--image{cursor:pointer;position:relative;display:inline-block;text-align:center;max-width:100%;margin:0 16px 7px 0;vertical-align:top;background-color:#fff;user-select:none;-webkit-user-select:none;-moz-transition:all .2s;-o-transition:all .2s;-webkit-transition:all .2s;transition:all .2s}.spftestimonial-field-icon_select .spftestimonial--image{border:2px solid #ddd}.spftestimonial-field-icon_select .spftestimonial--image:before,.spftestimonial-field-image_select .spftestimonial--image:before{position:absolute;top:0;right:0;text-align:center;font-size:11px;font-family:FontAwesome;content:"\f00c";width:15px;height:15px;line-height:15px;opacity:0;color:#fff;background-color:#1595ce;transition:opacity .2s}.spftestimonial-field-image_select .spftestimonial--active img{border-color:#1595ce;outline:3px solid #1595ce;outline-offset:-3px}.spftestimonial-field-icon_select .spftestimonial--active{border-color:#1595ce}.spftestimonial-field-image_select .spftestimonial--active:before{opacity:1}.spftestimonial-field-icon_select .spftestimonial--active:before{opacity:0}.spftestimonial-field-image_select img{vertical-align:top;width:110px}.spftestimonial-field-icon_select input,.spftestimonial-field-image_select input{display:none}.spftestimonial-field-link_color .spftestimonial--left{float:left;margin-right:10px;margin-bottom:5px}.spftestimonial-field-link_color .spftestimonial--title{color:#777;margin-bottom:5px}.spftestimonial-field-map input{width:100%}.spftestimonial-field-map input[type=text].ui-autocomplete-loading{background-position-x:calc(100% - 5px)}.spftestimonial-field-map .spftestimonial--map-search+.spftestimonial--map-osm-wrap{margin-top:10px}.spftestimonial-field-map .spftestimonial--map-osm-wrap{position:relative;padding:5px;border:1px solid #eee;background-color:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.spftestimonial-field-map .spftestimonial--map-osm{position:relative;z-index:1;min-height:250px}.spftestimonial-field-map .spftestimonial--map-inputs{margin-top:10px;display:flex;justify-content:space-between}.spftestimonial-field-map .spftestimonial--map-input{flex:1}.spftestimonial-field-map .spftestimonial--map-input:last-child{padding-left:10px}.spftestimonial-field-map label{display:block;color:#777;font-size:12px;margin:0 0 2px 0}.spftestimonial-map-ui-autocomplate{z-index:999999;border-radius:4px;overflow:hidden}.spftestimonial-field-media .spftestimonial--placeholder{display:flex}.spftestimonial-field-media .spftestimonial--placeholder input{width:100%;margin:0}.spftestimonial-field-media .button{margin-left:5px}.spftestimonial-field-media .hidden+.button{margin-left:0}.spftestimonial-field-media .spftestimonial--preview{position:relative}.spftestimonial-field-media .spftestimonial--preview .fa-times{position:absolute;z-index:1;right:4px;top:4px;font-size:14px;width:22px;height:22px;line-height:22px;text-align:center;text-decoration:none;color:#fff;background-color:#d33;opacity:.8;transition:all .2s}.spftestimonial-field-media .spftestimonial--preview .fa-times:hover{opacity:1}.spftestimonial-field-media .spftestimonial--preview .fa-times:focus{box-shadow:none}.spftestimonial-field-palette .spftestimonial--palette{position:relative;display:inline-block;cursor:pointer;border:2px solid #ddd;margin-right:10px;margin-bottom:10px;user-select:none;-webkit-user-select:none;transition:all .2s}.spftestimonial-field-palette .spftestimonial--palette span{vertical-align:middle;display:inline-block;width:22px;height:60px;line-height:60px;overflow:hidden;text-indent:-999px}.spftestimonial-field-palette .spftestimonial--palette:before{position:absolute;top:0;left:0;text-align:center;font-size:11px;font-family:FontAwesome;content:"\f00c";width:15px;height:15px;line-height:15px;opacity:0;color:#fff;background-color:#222;transition:opacity .2s}.spftestimonial-field-palette .spftestimonial--active{border-color:#222;box-shadow:0 0 20px rgba(0,0,0,.2)}.spftestimonial-field-palette .spftestimonial--active:before{opacity:1}.spftestimonial-field-palette input{display:none}.spftestimonial-field-repeater .spftestimonial-field-text input{width:100%}.spftestimonial-field-repeater .spftestimonial-repeater-hidden{display:none!important}.spftestimonial-field-repeater .spftestimonial-repeater-wrapper .spftestimonial-repeater-item{display:table;width:100%;margin-bottom:5px;border:1px solid #eee}.spftestimonial-field-repeater .spftestimonial-repeater-wrapper .spftestimonial-repeater-item h4{font-size:1em}.spftestimonial-field-repeater .spftestimonial-repeater-content{width:100%;display:table-cell;vertical-align:middle;background-color:#fff}.spftestimonial-field-repeater .spftestimonial-repeater-content>.spftestimonial-field{padding:15px}.spftestimonial-field-repeater .spftestimonial-repeater-helper{width:100%;display:table-cell;vertical-align:middle;text-align:center;font-size:14px;line-height:1em;border-left:1px solid #eee;background-color:#f7f7f7}.spftestimonial-field-repeater .spftestimonial-repeater-helper i{display:inline-block;cursor:pointer;color:#999;padding:5px}.spftestimonial-field-repeater .spftestimonial-repeater-helper i:hover{color:#555}.spftestimonial-field-repeater .spftestimonial-repeater-helper-inner{width:75px}.spftestimonial-field-repeater .spftestimonial-repeater-alert{display:none;margin-bottom:5px;padding:10px 20px;color:#a94442;border:1px solid #ebccd1;background-color:#f2dede}.spftestimonial-field-repeater .widget-placeholder{height:50px;margin-bottom:3px;border:1px dashed #f1c40f;background-color:#fffae4}.spftestimonial-field-repeater .ui-sortable-helper{height:50px!important;overflow:hidden!important;border-color:#ccc!important;background-color:#eee!important;opacity:.5}.spftestimonial-field-repeater .ui-sortable-helper .spftestimonial-repeater-content,.spftestimonial-field-repeater .ui-sortable-helper .spftestimonial-repeater-helper{display:none}.spftestimonial-field-select .spftestimonial-fieldset{min-height:30px}.spftestimonial-field-select .spftestimonial-chosen{display:none}.spftestimonial-field-select select{max-width:100%;margin:0}.spftestimonial-field-slider .spftestimonial--wrap{display:flex;align-items:center}.spftestimonial-field-slider .spftestimonial--input{display:flex}.spftestimonial-field-slider .spftestimonial--unit{display:flex;justify-content:center;flex-direction:column;user-select:none;padding:0 6px;font-size:11px;line-height:1;border-radius:0 4px 4px 0;color:#555;border:1px solid #7e8993;border-left:0;background-color:#f5f5f5}.spftestimonial-field-slider input[type=number]{position:relative;z-index:1;width:50px;margin:0 0 0 15px;text-align:center}.spftestimonial-field-slider .spftestimonial--is-unit{border-top-right-radius:0;border-bottom-right-radius:0}.spftestimonial-field-slider .ui-slider{position:relative;width:100%;height:3px;border:none;background:#ddd;border-radius:2px}.spftestimonial-field-slider .ui-slider-range{height:3px;border:none;background:#333;border-radius:2px}.spftestimonial-field-slider .ui-slider-handle{position:absolute;width:16px;height:16px;top:-7px;margin-left:-8px;border:none;background:#333;border-radius:2px}.spftestimonial-field-slider .ui-slider-handle:hover,.spftestimonial-field-slider .ui-state-active{cursor:pointer;background:#111}.spftestimonial-field-sortable .spftestimonial-field-text input{width:100%;max-width:100%}.spftestimonial-field-sortable .spftestimonial--sortable .spftestimonial--sortable-item{display:table;width:100%;margin-bottom:5px;border:1px solid #eee}.spftestimonial-field-sortable .spftestimonial--sortable .spftestimonial--sortable-item h4{font-size:1em}.spftestimonial-field-sortable .spftestimonial--sortable-content{width:100%;display:table-cell;vertical-align:middle;background-color:#fff}.spftestimonial-field-sortable .spftestimonial--sortable-content>.spftestimonial-field{padding:15px}.spftestimonial-field-sortable .spftestimonial--sortable-helper{width:100%;display:table-cell;vertical-align:middle;text-align:center;font-size:14px;line-height:1em;border-left:1px solid #eee;background-color:#f7f7f7}.spftestimonial-field-sortable .spftestimonial--sortable-helper .fa{display:inline-block;cursor:pointer;width:50px;color:#555}.spftestimonial-field-sortable .spftestimonial--sortable-helper .fa:hover{opacity:.5}.spftestimonial-field-sortable .widget-placeholder{height:50px;margin-bottom:3px;border:1px dashed #f1c40f;background-color:#fffae4}.spftestimonial-field-sortable .ui-sortable-helper{height:50px!important;overflow:hidden!important;border-color:#ccc!important;background-color:#eee!important;opacity:.5}.spftestimonial-field-sortable .ui-sortable-helper .spftestimonial--sortable-content,.spftestimonial-field-sortable .ui-sortable-helper .spftestimonial--sortable-helper{display:none}.spftestimonial-field-sorter .ui-sortable-placeholder{height:20px;border:1px dashed #f1c40f;background-color:#fffae4}.spftestimonial-field-sorter .spftestimonial-modules{float:left;width:50%;box-sizing:border-box}.spftestimonial-field-sorter .spftestimonial-modules:first-child{padding-right:15px}.spftestimonial-field-sorter .spftestimonial-modules:last-child{padding-left:15px}.spftestimonial-field-sorter .spftestimonial-disabled,.spftestimonial-field-sorter .spftestimonial-enabled{padding:5px 15px;border:1px dashed #ddd;background-color:#fff}.spftestimonial-field-sorter .spftestimonial-disabled li{-moz-transition:opacity .15s;-o-transition:opacity .15s;-webkit-transition:opacity .15s;transition:opacity .15s;opacity:.5}.spftestimonial-field-sorter .spftestimonial-disabled .ui-sortable-helper{opacity:1}.spftestimonial-field-sorter .spftestimonial-sorter-title{font-size:13px;font-weight:600;padding:10px;text-align:center;border:1px dashed #ddd;border-bottom:none;background-color:#f8f8f8;text-transform:uppercase}.spftestimonial-field-sorter ul{list-style-type:none;margin:0;padding:0;min-height:62px}.spftestimonial-field-sorter ul li{margin:10px 0;padding:10px 15px;cursor:move;font-weight:700;text-align:center;border:1px solid #e5e5e5;background-color:#fafafa;-moz-transition:border-color .15s;-o-transition:border-color .15s;-webkit-transition:border-color .15s;transition:border-color .15s}.spftestimonial-field-sorter ul li:hover{border-color:#bbb}.spftestimonial-field-spinner .spftestimonial--spin{display:flex}.spftestimonial-field-spinner .ui-spinner{display:flex}.spftestimonial-field-spinner .ui-button-text-only{display:flex;flex-direction:column;justify-content:center;text-align:center;min-width:20px;padding:0 4px;color:#555;border:1px solid #7e8993;background-color:#f5f5f5}.spftestimonial-field-spinner .ui-button{cursor:pointer}.spftestimonial-field-spinner .ui-button:hover{background-color:#e7e7e7}.spftestimonial-field-spinner .ui-button:active{background-color:#ddd}.spftestimonial-field-spinner .ui-button:before{font-family:FontAwesome;font-size:14px}.spftestimonial-field-spinner .ui-spinner-down{order:1;border-right:0;border-radius:4px 0 0 4px}.spftestimonial-field-spinner .ui-spinner-down:before{content:"\f0d9"}.spftestimonial-field-spinner .ui-spinner-input{order:2}.spftestimonial-field-spinner .spftestimonial--unit{order:3;border-left:0;user-select:none}.spftestimonial-field-spinner .ui-spinner-up{order:4;border-left:0;border-radius:0 4px 4px 0}.spftestimonial-field-spinner .ui-spinner-up:before{content:"\f0da"}.spftestimonial-field-spinner input{position:relative;z-index:1;width:50px;text-align:center;margin:0;padding:0 8px;border-radius:0}.spftestimonial-field-spinner .ui-button-text{display:none}.spftestimonial-field-switcher .spftestimonial--switcher{float:left;cursor:pointer;position:relative;width:60px;height:26px;padding:0;margin:0;overflow:hidden;border-radius:4px;background-color:#ed6f6f;user-select:none;-webkit-user-select:none}.spftestimonial-field-switcher .spftestimonial--ball{position:absolute;top:4px;left:4px;width:24px;height:18px;background-color:#fff;border-radius:4px;transition:all .1s;box-shadow:1px 1px 1px rgba(0,0,0,.15)}.spftestimonial-field-switcher .spftestimonial--off,.spftestimonial-field-switcher .spftestimonial--on{position:absolute;top:0;left:0;right:0;font-size:11px;line-height:26px;font-weight:500;font-style:normal;text-align:center;text-transform:uppercase;color:#fff;padding-right:28px;opacity:0;transition:all .1s}.spftestimonial-field-switcher .spftestimonial--off{padding-right:0;padding-left:28px;opacity:1}.spftestimonial-field-switcher .spftestimonial--active{background:#4fb845}.spftestimonial-field-switcher .spftestimonial--active .spftestimonial--on{opacity:1}.spftestimonial-field-switcher .spftestimonial--active .spftestimonial--off{opacity:0}.spftestimonial-field-switcher .spftestimonial--active .spftestimonial--ball{left:100%;margin-left:-28px}.spftestimonial-field-switcher .spftestimonial--label{float:left;margin-top:4px;margin-left:8px;font-weight:400;color:#999}.spftestimonial-field-switcher input{display:none}.spftestimonial-field-tabbed .spftestimonial-tabbed-section{border:1px solid #ccd0d4;background-color:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.spftestimonial-field-tabbed .spftestimonial-tabbed-section>.spftestimonial-field{padding:15px}.spftestimonial-field-tabbed .spftestimonial-tabbed-nav .spftestimonial--icon{padding-right:5px}.spftestimonial-field-tabbed .spftestimonial-tabbed-nav a{display:inline-block;padding:12px 15px;margin-top:1px;margin-right:5px;margin-bottom:-1px;position:relative;text-decoration:none;color:#444;font-weight:600;border:1px solid #ccd0d4;background-color:#f3f3f3;transition:all .2s}.spftestimonial-field-tabbed .spftestimonial-tabbed-nav a:hover{background-color:#f9f9f9}.spftestimonial-field-tabbed .spftestimonial-tabbed-nav a.spftestimonial-tabbed-active{background-color:#fff;border-bottom-color:#fff}.spftestimonial-field-tabbed .spftestimonial-tabbed-nav a:focus{outline:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.spftestimonial-field-text input{width:50%;max-width:100%;margin:0}.spftestimonial-field-textarea textarea{width:100%;max-width:100%;min-height:125px}.spftestimonial-field-typography select,.spftestimonial-field-typography textarea{margin:0;width:100%}.spftestimonial-field-typography .spftestimonial--title{color:#999;margin:0 0 2px 0}.spftestimonial-field-typography .spftestimonial--title small{vertical-align:top}.spftestimonial-field-typography .spftestimonial--blocks{display:flex;flex-wrap:wrap}.spftestimonial-field-typography .spftestimonial--block{padding-right:5px;padding-bottom:10px;box-sizing:border-box}.spftestimonial-field-typography .spftestimonial--block .spftestimonial--block{padding-right:0;padding-bottom:0}.spftestimonial-field-typography .spftestimonial--blocks-selects .spftestimonial--block{flex:1 33.3%}.spftestimonial-field-typography .spftestimonial--blocks-inputs .spftestimonial--input-area{max-width:100px}.spftestimonial-field-typography .spftestimonial--blocks-inputs .spftestimonial--block .spftestimonial--block{flex:1}.spftestimonial-field-typography .spftestimonial--input{margin:0;width:100%;padding:2px 8px;border-radius:4px 0 0 4px}.spftestimonial-field-typography .spftestimonial--unit{min-width:40px;max-width:40px;font-size:12px;font-weight:400;text-align:center;color:#777;border:1px solid #ddd;background-color:#eee;border-radius:0 2px 2px 0;border-left:0;line-height:30px}.spftestimonial-field-typography .spftestimonial--preview{font-size:16px;line-height:20px;padding:20px;color:#222;border:1px solid #eee;background-color:#fff;border-radius:2.5px;user-select:none;-webkit-user-select:none;transition:background-color .2s,border-color .2s}.spftestimonial-field-typography .spftestimonial--block-preview{cursor:pointer;position:relative;overflow:hidden;margin-top:10px;max-width:100%}.spftestimonial-field-typography .spftestimonial--black-background{border-color:#000;background-color:#000}.spftestimonial-field-typography .spftestimonial--toggle{position:absolute;top:5px;right:10px;color:#999}.spftestimonial-field-typography .spftestimonial--block-extra-styles{margin-top:5px}.spftestimonial-field-upload input{width:100%;margin:0}.spftestimonial-field-upload .spftestimonial--wrap{display:flex}.spftestimonial-field-upload .button{margin-left:5px}.spftestimonial-field-wp_editor .spftestimonial-wp-editor{float:left;width:100%}.spftestimonial-field-wp_editor .mce-toolbar-grp{border:none}.spftestimonial-field-wp_editor .mce-btn.mce-active button,.spftestimonial-field-wp_editor .mce-btn.mce-active i,.spftestimonial-field-wp_editor .mce-btn.mce-active:hover button,.spftestimonial-field-wp_editor .mce-btn.mce-active:hover i{color:#23282d}.spftestimonial-field-wp_editor .wp-media-buttons{position:relative;z-index:2}.spftestimonial-field-wp_editor .wp-editor-tabs{position:relative;z-index:1}.spftestimonial-field-wp_editor .spftestimonial-no-tinymce{border:1px solid #e5e5e5}.spftestimonial-field-wp_editor .spftestimonial-no-quicktags .wp-media-buttons{float:none;display:block}.spftestimonial-field-wp_editor .spftestimonial-no-quicktags .mce-tinymce{box-shadow:none;border:1px solid #e5e5e5}.spftestimonial-field-wp_editor textarea{width:100%;max-width:100%;margin:0;box-shadow:none}.spftestimonial-field-heading{font-size:1.5em;font-weight:700;color:#23282d;background-color:#f5f5f5}.spftestimonial-field-subheading{font-size:14px;font-weight:700;padding-top:17px;padding-bottom:17px;color:#23282d;background-color:#f7f7f7}.spftestimonial-field-submessage{padding:0!important;border:0!important}.spftestimonial-field-submessage+.spftestimonial-field{border-top:0!important}.spftestimonial-submessage{font-size:12px;padding:17px 30px;border-top:1px solid transparent;border-bottom:1px solid transparent}.spftestimonial-submessage-success{color:#3c763d;border-color:#d6e9c6;background-color:#dff0d8}.spftestimonial-submessage-info{color:#31708f;border-color:#bce8f1;background-color:#d9edf7}.spftestimonial-submessage-warning{color:#8a6d3b;border-color:#faebcc;background-color:#fcf8e3}.spftestimonial-submessage-danger{color:#a94442;border-color:#ebccd1;background-color:#f2dede}.spftestimonial-submessage-normal{color:#23282d;border-color:#eee;background-color:#f7f7f7}.spftestimonial-field-notice{background-color:transparent}.spftestimonial-notice{padding:12px;background-color:#fff;border-left-style:solid;border-left-width:0;box-shadow:none}.spftestimonial-notice-success{border-color:#46b450}.spftestimonial-notice-info{border-color:#339fd4;color:#999;font-style:italic;font-size:13px}.spftestimonial-notice-warning{border-color:#ffbc00}.spftestimonial-notice-danger{border-color:#dc3232}.spftestimonial-notice{border-color:#222;color:#999;font-style:italic;font-size:13px;padding:12px 12px 12px 0}.spftestimonial-field-number input{width:100%;margin:0}.spftestimonial-field-number .spftestimonial--wrap{position:relative;float:left;width:100px}.spftestimonial-field-number .spftestimonial--unit{position:absolute;z-index:1;right:4px;top:4px;bottom:4px;padding:2px 6px;color:#666;font-size:11px;line-height:1;border-radius:2px;background:#eee;user-select:none;display:flex;justify-content:center;flex-direction:column}.spftestimonial-help{cursor:help;position:absolute;top:0;right:0;padding:5px;font-size:14px;color:#aaa}.spftestimonial-help .spftestimonial-help-text{display:none}.spftestimonial-image-preview{display:inline-block;position:relative;padding:4px;min-width:44px;min-height:22px;margin-bottom:10px;border:1px solid #ccc;background-color:#f9f9f9;-moz-box-shadow:0 1px 0 rgba(0,0,0,.08);-webkit-box-shadow:0 1px 0 rgba(0,0,0,.08);box-shadow:0 1px 0 rgba(0,0,0,.08)}.spftestimonial-image-preview img{max-height:90px;display:inline-block;vertical-align:middle}.spftestimonial-field-custom .spftestimonial-field{padding:0}.spftestimonial-field .chosen-container-single .chosen-single{height:28px;line-height:26px}.spftestimonial-field .chosen-container-single .chosen-single abbr{top:0;right:20px;font-family:FontAwesome;font-size:12px;height:100%;width:18px;color:#aaa;text-align:center;background:0 0}.spftestimonial-field .chosen-container-single .chosen-single abbr:before{content:"\f00d"}.spftestimonial-field .chosen-container-single .chosen-single abbr:hover{color:#555}.spftestimonial-field .chosen-container-multi .chosen-choices li.search-choice .search-choice-close{font-family:FontAwesome;font-size:12px;height:100%;width:18px;color:#aaa;text-align:center;background:0 0}.spftestimonial-field .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:before{content:"\f00d";display:inline-block;padding-top:3px}.spftestimonial-field .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover{color:#555}.spftestimonial-field .chosen-container-single .chosen-single div b{font-family:FontAwesome;font-size:14px;color:#aaa;background:0 0}.spftestimonial-field .chosen-container-single .chosen-single div b:before{content:"\f107"}.spftestimonial-field .chosen-container-single .chosen-single div b:hover{color:#555}.spftestimonial-field .chosen-container-multi .chosen-choices li.search-choice-placeholder{border:1px dashed #aaa;margin:3px 5px 3px 0}.spftestimonial-field .chosen-container-multi .ui-sortable li.search-choice span{cursor:move}.spftestimonial-field .chosen-container-active.chosen-with-drop .chosen-single div b:before{content:"\f106"}.spftestimonial-field .chosen-container-single .chosen-single-with-deselect span{margin-right:40px}.spftestimonial-field .chosen-container-single .chosen-search input[type=text]{background:0 0}.spftestimonial-field .chosen-container-single .chosen-search:before{font-family:FontAwesome;position:absolute;content:"\f002";font-size:11px;right:10px;top:7px;color:#aaa}.spftestimonial-field .wp-picker-container{display:inline-block}.spftestimonial-field .spftestimonial--transparent-wrap{display:none;position:relative;top:-1px;width:235px;padding:9px 10px;border:1px solid #dfdfdf;border-top:none;background-color:#fff}.spftestimonial-field .wp-picker-active .spftestimonial--transparent-wrap{display:block}.spftestimonial-field .spftestimonial--transparent-slider{position:absolute;width:190px;margin-left:2px;height:18px}.spftestimonial-field .spftestimonial--transparent-slider .ui-slider-handle{position:absolute;top:-3px;bottom:-3px;z-index:5;border-color:#aaa;border-style:solid;border-width:4px 3px;width:10px;height:16px;margin:0 -5px;background:0 0;cursor:ew-resize;opacity:.9;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;-moz-box-shadow:0 1px 2px rgba(0,0,0,.2);-webkit-box-shadow:0 1px 2px rgba(0,0,0,.2);box-shadow:0 1px 2px rgba(0,0,0,.2)}.spftestimonial-field .spftestimonial--transparent-slider .ui-slider-handle:before{content:" ";position:absolute;left:-2px;right:-2px;top:-3px;bottom:-3px;border:2px solid #fff;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.spftestimonial-field .spftestimonial--transparent-offset{height:18px;width:200px;background:url(../images/checkerboard.png) repeat-y center left scroll #fff;-moz-box-shadow:0 0 5px rgba(0,0,0,.4) inset;-webkit-box-shadow:0 0 5px rgba(0,0,0,.4) inset;box-shadow:0 0 5px rgba(0,0,0,.4) inset;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.spftestimonial-field .spftestimonial--transparent-text{position:absolute;top:12px;right:10px;width:30px;font-size:12px;line-height:12px;text-align:center;color:#999}.spftestimonial-field .spftestimonial--transparent-button{cursor:pointer;user-select:none;margin-top:10px;font-size:11px;text-align:center;border-radius:2px;padding:3px 7px;box-shadow:0 1px 0 rgba(0,0,0,.1);letter-spacing:.2px;color:#777;border:1px solid #ccc;background-color:#f7f7f7;transition:background-color .2s,border-color .2s,color .2s}.spftestimonial-field .spftestimonial--transparent-active .wp-color-result{background-image:url(../images/checkerboard.png);background-size:135px;background-position:center left;background-color:transparent!important}.spftestimonial-field .spftestimonial--transparent-active .spftestimonial--transparent-button{color:#fff;border-color:#3ea032;background-color:#4fb845}.spftestimonial-field .spftestimonial--transparent-active .fa:before{content:"\f205"}.spftestimonial-widgets>.spftestimonial-field{position:relative;top:-1px;margin-right:-15px;margin-left:-15px;padding:12px 15px}.spftestimonial-widgets>.spftestimonial-field .spftestimonial-field{margin-left:0;margin-right:0}.spftestimonial-widgets>.spftestimonial-field .spftestimonial-title{float:none;width:100%;margin-bottom:5px}.spftestimonial-widgets>.spftestimonial-field .spftestimonial-fieldset{margin-left:0}.spftestimonial-widgets .spftestimonial-field-text input{width:100%}.spftestimonial-widgets .spftestimonial-field-notice .spftestimonial-notice{padding:15px}.control-section .spftestimonial-widgets>.spftestimonial-field{margin-right:-10px;margin-left:-10px;padding:10px 12px}.control-section .spftestimonial-field{padding:0}.control-section .spftestimonial-field .spftestimonial-title{float:none;width:100%;margin-bottom:6px}.control-section .spftestimonial-field .spftestimonial-title h4{display:block;font-size:13px;line-height:1;font-weight:600;color:inherit}.control-section .spftestimonial-field .spftestimonial-fieldset{margin-left:0}.control-section .spftestimonial-help{top:-5px;right:-5px}.control-section .spftestimonial-field-select select{width:100%}.control-section .spftestimonial-field-heading{color:inherit;font-size:14px;line-height:1em;margin-right:-15px;margin-left:-15px;padding:15px}.control-section .spftestimonial-field-subheading{color:inherit;font-size:11px;margin-right:-15px;margin-left:-15px;padding:10px 15px}.control-section .spftestimonial-text-subtitle{margin-top:4px;font-size:12px}.control-section .spftestimonial-field-submessage .spftestimonial-submessage{margin-right:-15px;margin-left:-15px;padding:15px}.control-section .spftestimonial-fieldset .spftestimonial-field-heading,.control-section .spftestimonial-fieldset .spftestimonial-field-subheading,.control-section .spftestimonial-fieldset .spftestimonial-field-submessage .spftestimonial-submessage{margin-left:0;margin-right:0}.control-section .spftestimonial-field-date .spftestimonial--to{margin-left:0}.control-section .spftestimonial-field-sorter ul li{padding:5px}.control-section .spftestimonial-field-sorter .spftestimonial-modules{float:none;width:100%}.control-section .spftestimonial-field-sorter .spftestimonial-modules:first-child{padding-right:0;padding-bottom:15px}.control-section .spftestimonial-field-background .spftestimonial--background-attributes{flex-direction:column}.control-section .spftestimonial-field-spacing input{width:90px}.control-section .spftestimonial-field-border .spftestimonial--input{flex:1 50%}.control-section .spftestimonial-field-border input,.control-section .spftestimonial-field-border select{width:100%}.control-section .spftestimonial-field-spinner input{width:50px}.control-section .spftestimonial-field-number .spftestimonial--wrap{width:100%}.control-section .spftestimonial-field-backup .spftestimonial-export-data{display:none}.control-section .spftestimonial-field-fieldset .spftestimonial-fieldset-content{border-color:#e5e5e5}.control-section .spftestimonial-field-fieldset .spftestimonial-field{padding:10px}.control-section .spftestimonial-field-fieldset .spftestimonial-field .spftestimonial-title{margin-bottom:5px}.control-section .spftestimonial-field-fieldset .spftestimonial-field h4{font-size:12px}.control-section .spftestimonial-field-accordion .spftestimonial-field,.control-section .spftestimonial-field-group .spftestimonial-field,.control-section .spftestimonial-field-repeater .spftestimonial-field,.control-section .spftestimonial-field-sortable .spftestimonial-field,.control-section .spftestimonial-field-tabbed .spftestimonial-field{padding:10px}.control-section .spftestimonial-field-accordion .spftestimonial-field .spftestimonial-title,.control-section .spftestimonial-field-group .spftestimonial-field .spftestimonial-title,.control-section .spftestimonial-field-repeater .spftestimonial-field .spftestimonial-title,.control-section .spftestimonial-field-sortable .spftestimonial-field .spftestimonial-title,.control-section .spftestimonial-field-tabbed .spftestimonial-field .spftestimonial-title{margin-bottom:5px}.control-section .spftestimonial-field-accordion .spftestimonial-field h4,.control-section .spftestimonial-field-group .spftestimonial-field h4,.control-section .spftestimonial-field-repeater .spftestimonial-field h4,.control-section .spftestimonial-field-sortable .spftestimonial-field h4,.control-section .spftestimonial-field-tabbed .spftestimonial-field h4{font-size:12px}.control-section .spftestimonial-dependency-control.hidden{display:none!important}.spftestimonial-modal{display:none;position:fixed;z-index:100101;top:0;left:0;width:100%;height:100%}.spftestimonial-modal-icon{z-index:100102}.spftestimonial-modal-table{display:table;width:100%;height:100%}.spftestimonial-modal-table-cell{display:table-cell;vertical-align:middle;margin:100px 0}.spftestimonial-modal-inner{position:relative;z-index:10;width:760px;height:750px;margin:0 auto;background-color:#fff}.spftestimonial-modal-content{position:relative;overflow:hidden;overflow-y:auto;height:595px}.spftestimonial-modal-content .spftestimonial-fieldset{margin-left:25%}.spftestimonial-modal-content .spftestimonial-title{width:20%}.spftestimonial-modal-content .spftestimonial-field{padding:15px 30px 15px 15px}.spftestimonial-modal-content a:active,.spftestimonial-modal-content a:focus{outline:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.spftestimonial-modal-content h4{font-size:13px}.spftestimonial-modal-content h4 small{font-style:italic;font-weight:400;color:#aaa}.spftestimonial-modal-title{position:relative;background-color:#fcfcfc;border-bottom:1px solid #ddd;height:36px;font-size:16px;font-weight:600;line-height:36px;margin:0;padding:0 36px 0 16px}.spftestimonial-modal-header{width:100%;padding:14px 0;background-color:#f5f5f5;border-bottom:1px solid #eee}.spftestimonial-modal-header select{display:block;width:250px;margin:0 auto;font-size:13px;line-height:1;height:30px;min-height:30px;background-color:#fff}.spftestimonial-modal-close{color:#666;padding:0;position:absolute;top:0;right:0;width:36px;height:36px;text-align:center;background:0 0;border:none;cursor:pointer}.spftestimonial-modal-close:before{font:normal 20px/36px dashicons;content:"\f158";vertical-align:top;width:36px;height:36px}.spftestimonial-modal-close:hover{opacity:.5}.spftestimonial-modal-insert-wrapper{text-align:center;width:100%;padding:15px 0;background-color:#f5f5f5;border-top:1px solid #eee}.spftestimonial-modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000;opacity:.5}.spftestimonial-text-desc,.spftestimonial-text-subtitle{font-weight:400;margin-top:0;color:#999}.spftestimonial-text-success{color:#2b542c}.spftestimonial-text-error{color:#d02c21}.spftestimonial-text-info{color:#31708f}.spftestimonial-text-warning{color:#ffb900}.spftestimonial-text-muted{color:#aaa}.spftestimonial-text-left{text-align:left}.spftestimonial-text-center{text-align:center}.spftestimonial-text-right{text-align:right}.spftestimonial-block-left{float:left}.spftestimonial-block-right{float:right}.spftestimonial-full-width{width:100%}.spftestimonial-full-half{width:50%}.spftestimonial-table{width:100%;display:table}.spftestimonial-table-cell{display:table-cell;vertical-align:middle}.spftestimonial-table-expanded{width:100%}.spftestimonial-nowrap{white-space:nowrap}.spftestimonial-text-highlight{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.spftestimonial-text-highlight-gray{padding:2px 4px;font-size:90%;background-color:#f0f0f0;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.spftestimonial-hidden{display:none}.spftestimonial-hide{display:none!important}.spftestimonial-show{display:block!important}.spftestimonial-opacity{opacity:.5}.spftestimonial-warning-primary{color:#fff!important;border-color:#dc3545!important;background:#dc3545!important}.spftestimonial-warning-primary:focus,.spftestimonial-warning-primary:hover{border-color:#bd2130!important;background:#bd2130!important}.spftestimonial-warning-primary:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #bd2130!important}.spftestimonial-warning-primary:active{border-color:#bd2130!important;background:#bd2130!important}.spftestimonial-form-result{display:none;padding:12px;margin:15px 0 15px 0;background-color:#fff;border-left:4px solid #555;box-shadow:0 1px 1px rgb(0 0 0 / 10%);border-left-color:#46b450}.spftestimonial-form-show{display:block}.spftestimonial-form-warning{color:#8a6d3b;background-color:#faebcc}.spftestimonial-label-error{position:relative;top:-2px;display:inline-block;font-size:10px;line-height:10px;height:10px;width:10px;padding:1px;font-style:normal;text-align:center;color:#fff;vertical-align:middle;background-color:#e10000;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.spftestimonial-no-option{padding:30px}.spftestimonial-input-number{-moz-appearance:textfield}.spftestimonial-input-number::-webkit-inner-spin-button,.spftestimonial-input-number::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.spftestimonial-scode-wrap-side{pointer-events:none;opacity:.7;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}span.spftestimonial-shortcode-selectable{background-color:rgba(82,179,217,.11);padding:10px 10px 10px 30px;display:inline-block;border:1px solid #d1e4ef;border-radius:2px;cursor:pointer;border-radius:3px;word-break:break-word;position:relative;width:80%}span.spftestimonial-shortcode-selectable::after{content:url(../images/copy.svg);width:16px;left:10px;top:50%;position:absolute;margin-top:-6px}.spftestimonial-scode-wrap-side:nth-child(2) span.spftestimonial-shortcode-selectable::after{margin-top:-15px}span.spftestimonial-shortcode-selectable~button:focus,span.spftestimonial-shortcode-selectable~button:hover{background:#e6e6e6;outline:0}span.spftestimonial-shortcode-selectable~button{background:#f5f5f5;padding:7px 12px;border:none;margin-left:8px;font-size:17px;display:inline-block;position:relative;cursor:pointer;border-radius:3px;border:1px solid #dbdbdb}.spftestimonial-scode-wrap-side p{margin-top:0}.spftestimonial-scode-wrap-side{margin-top:0;margin-bottom:16px;overflow:hidden}.spftestimonial-scode-wrap-side .spftestimonial-sc-title{margin-top:0;margin-bottom:7px;font-size:1.2em}.spftestimonial-scode-wrap-side .spftestimonial-tooltip{border-radius:4px;-webkit-border-radius:4px;position:absolute;top:-35px;left:-3px;background-color:#2f2e2e;text-transform:capitalize;font-weight:600;display:block;transition:all .2s;padding:0;height:24px;line-height:24px;width:46px;color:#fff;font-size:11px;text-align:center;display:none}.spftestimonial-scode-wrap-side .spftestimonial-tooltip::after{content:"";width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #2f2e2e;position:absolute;top:98%;left:16px}.spftestimonial-scode-wrap-side .spftestimonial-tooltip{z-index:9999}.spftestimonial-scode-wrap-side button:hover .spftestimonial-tooltip{display:block}.spftestimonial-scode-wrap-side .spftestimonial-tooltip:hover{display:block;opacity:1}@media only screen and (max-width:1200px){.spftestimonial-metabox .spftestimonial-field .spftestimonial-title{float:none;width:100%;margin-bottom:10px}.spftestimonial-metabox .spftestimonial-field .spftestimonial-fieldset{margin-left:0}}@media only screen and (max-width:782px){.spftestimonial-header-inner{text-align:center}.spftestimonial-header-inner h1{width:100%;margin-bottom:10px}.spftestimonial-header-left,.spftestimonial-header-right,.spftestimonial-search{width:100%}.spftestimonial-search{text-align:center;margin-bottom:15px}.spftestimonial-footer{text-align:center}.spftestimonial-buttons{float:none}.spftestimonial-copyright{float:none;margin-top:10px}.spftestimonial-expand-all,.spftestimonial-nav,.spftestimonial-nav-background,.spftestimonial-reset-section{display:none!important}.spftestimonial-content{margin-left:0}.spftestimonial-section,.spftestimonial-section-title{display:block!important}.spftestimonial-field .spftestimonial-title{float:none;width:100%;margin-bottom:10px}.spftestimonial-field .spftestimonial-fieldset{margin-left:0}.spftestimonial-modal-inner{width:350px;height:400px}.spftestimonial-modal-content{height:237px}.spftestimonial-icon-dialog .spftestimonial-modal-inner{width:305px;height:380px}.spftestimonial-icon-dialog .spftestimonial-modal-content{height:267px}.spftestimonial-modal-icon .spftestimonial-modal-inner{width:330px;height:385px}.spftestimonial-modal-icon .spftestimonial-modal-content{height:252px}}.chosen-container{position:relative;display:inline-block;vertical-align:middle;font-size:13px;user-select:none}.chosen-container *{box-sizing:border-box}.chosen-container .chosen-drop{position:absolute;top:100%;z-index:1010;width:100%;border:1px solid #aaa;border-top:0;background:#fff;box-shadow:0 4px 5px rgba(0,0,0,.15);clip:rect(0,0,0,0);clip-path:inset(100% 100%)}.chosen-container.chosen-with-drop .chosen-drop{clip:auto;clip-path:none}.chosen-container a{cursor:pointer}.chosen-container .chosen-single .group-name,.chosen-container .search-choice .group-name{margin-right:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:400;color:#999}.chosen-container .chosen-single .group-name:after,.chosen-container .search-choice .group-name:after{content:":";padding-left:2px;vertical-align:top}.chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:25px;border:1px solid #aaa;border-radius:5px;background-color:#fff;background:linear-gradient(#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background-clip:padding-box;box-shadow:0 0 3px #fff inset,0 1px 1px rgba(0,0,0,.1);color:#444;text-decoration:none;white-space:nowrap;line-height:24px}.chosen-container-single .chosen-default{color:#999}.chosen-container-single .chosen-single span{display:block;overflow:hidden;margin-right:26px;text-overflow:ellipsis;white-space:nowrap}.chosen-container-single .chosen-single-with-deselect span{margin-right:38px}.chosen-container-single .chosen-single abbr{position:absolute;top:6px;right:26px;display:block;width:12px;height:12px;font-size:1px}.chosen-container-single .chosen-single div{position:absolute;top:0;right:0;display:block;width:18px;height:100%}.chosen-container-single .chosen-single div b{display:block;width:100%;height:100%}.chosen-container-single .chosen-search{position:relative;z-index:1010;margin:0;padding:3px 4px;white-space:nowrap}.chosen-container-single .chosen-search input[type=text]{margin:1px 0;padding:4px 20px 4px 5px;width:100%;height:auto;outline:0;border:1px solid #aaa;font-size:1em;font-family:sans-serif;line-height:normal;border-radius:0}.chosen-container-single .chosen-drop{margin-top:-1px;border-radius:0 0 4px 4px;background-clip:padding-box}.chosen-container-single.chosen-container-single-nosearch .chosen-search{position:absolute;clip:rect(0,0,0,0);clip-path:inset(100% 100%)}.chosen-container .chosen-results{color:#444;position:relative;overflow-x:hidden;overflow-y:auto;margin:0 4px 4px 0;padding:0 0 0 4px;max-height:240px;-webkit-overflow-scrolling:touch}.chosen-container .chosen-results li{display:none;margin:0;padding:5px 6px;list-style:none;line-height:15px;word-wrap:break-word;-webkit-touch-callout:none}.chosen-container .chosen-results li.active-result{display:list-item;cursor:pointer}.chosen-container .chosen-results li.disabled-result{display:list-item;color:#ccc;cursor:default}.chosen-container .chosen-results li.highlighted{background-color:#3875d7;background-image:linear-gradient(#3875d7 20%,#2a62bc 90%);color:#fff}.chosen-container .chosen-results li.no-results{color:#777;display:list-item;background:#f4f4f4}.chosen-container .chosen-results li.group-result{display:list-item;font-weight:700;cursor:default}.chosen-container .chosen-results li.group-option{padding-left:15px}.chosen-container .chosen-results li em{font-style:normal;text-decoration:underline}.chosen-container-multi .chosen-choices{position:relative;overflow:hidden;margin:0;padding:0 5px;width:100%;height:auto;border:1px solid #aaa;background-color:#fff;background-image:linear-gradient(#eee 1%,#fff 15%);cursor:text}.chosen-container-multi .chosen-choices li{float:left;list-style:none}.chosen-container-multi .chosen-choices li.search-field{margin:0;padding:0;white-space:nowrap}.chosen-container-multi .chosen-choices li.search-field input[type=text]{margin:1px 0;padding:0;outline:0;border:0!important;background:0 0!important;box-shadow:none;color:#999;font-size:100%;font-family:sans-serif;line-height:normal;border-radius:0;width:25px;height:25px;min-height:25px}.chosen-container-multi .chosen-choices li.search-choice{position:relative;margin:3px 5px 3px 0;padding:3px 20px 3px 6px;border:1px solid #aaa;max-width:100%;border-radius:3px;background-color:#eee;background-image:linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-size:100% 19px;background-repeat:repeat-x;background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);color:#333;line-height:13px;cursor:default}.chosen-container-multi .chosen-choices li.search-choice span{word-wrap:break-word;white-space:nowrap}.chosen-container-multi .chosen-choices li.search-choice .search-choice-close{position:absolute;top:0;right:0;display:block;width:12px;height:12px;font-size:1px}.chosen-container-multi .chosen-choices li.search-choice-disabled{padding-right:5px;border:1px solid #ccc;background-color:#e4e4e4;background-image:linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);color:#666}.chosen-container-multi .chosen-choices li.search-choice-focus{background:#d4d4d4}.chosen-container-multi .chosen-results{margin:0;padding:0}.chosen-container-active .chosen-single{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.chosen-container-active.chosen-with-drop .chosen-single{border:1px solid #aaa;border-bottom-right-radius:0;border-bottom-left-radius:0;background-image:linear-gradient(#eee 20%,#fff 80%);box-shadow:0 1px 0 #fff inset}.chosen-container-active.chosen-with-drop .chosen-single div{border-left:none;background:0 0}.chosen-container-active .chosen-choices{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.chosen-container-active .chosen-choices li.search-field input[type=text]{color:#222!important}.chosen-disabled{opacity:.5!important;cursor:default}.chosen-disabled .chosen-single{cursor:default}.chosen-disabled .chosen-choices .search-choice .search-choice-close{cursor:default}.chosen-rtl{text-align:right}.chosen-rtl .chosen-single{overflow:visible;padding:0 8px 0 0}.chosen-rtl .chosen-single span{margin-right:0;margin-left:26px;direction:rtl}.chosen-rtl .chosen-single-with-deselect span{margin-left:38px}.chosen-rtl .chosen-single div{right:auto;left:3px}.chosen-rtl .chosen-single abbr{right:auto;left:26px}.chosen-rtl .chosen-choices li{float:right}.chosen-rtl .chosen-choices li.search-field input[type=text]{direction:rtl}.chosen-rtl .chosen-choices li.search-choice{margin:3px 5px 3px 0;padding:3px 5px 3px 19px}.chosen-rtl .chosen-choices li.search-choice .search-choice-close{right:auto;left:4px}.chosen-rtl.chosen-container-single .chosen-results{margin:0 0 4px 4px;padding:0 4px 0 0}.chosen-rtl .chosen-results li.group-option{padding-right:15px;padding-left:0}.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div{border-right:none}.chosen-rtl .chosen-search input[type=text]{padding:4px 5px 4px 20px;direction:rtl}.spftestimonial--image.pro-feature{position:relative;pointer-events:none}.spftestimonial--image.pro-feature::after{position:absolute;top:1px;right:1px;color:#a5a5a5;background-color:#e0e0e0;font-weight:500;padding:0 4px;content:'PRO';text-align:center;font-size:8px}.spftestimonial-field-subheading.pro_heading{opacity:.7}.pro_only_field,.sp-field-icon-select.spftestimonial-pro-only,.spftestimonial-field-button_set .spftestimonial--button.spftestimonial-pro-only,.spftestimonial-field-checkbox.pro_only_field,.spftestimonial-field-color.pro_only_field,.spftestimonial-field-image_select .spftestimonial--image.spftestimonial-pro-only,.spftestimonial-field.spftestimonial-field-text.pro_only_field{pointer-events:none;opacity:.8}.sp-field-icon-select.spftestimonial-pro-only{opacity:.5}.spftestimonial-field-repeater.social-profile-repeater .spftestimonial-repeater-wrapper .spftestimonial-repeater-item{display:grid;grid-template-columns:9fr 1fr}.spftestimonial-field-repeater.social-profile-repeater .spftestimonial-repeater-content{display:grid;grid-template-columns:1fr 5fr}.spftestimonial-field-repeater.social-profile-repeater .spftestimonial-repeater-item{max-width:600px}.spftestimonial-field-repeater.social-profile-repeater .spftestimonial-repeater-helper{border-left:0;background-color:transparent}.spftestimonial-field-repeater.social-profile-repeater .spftestimonial-repeater-helper-inner{width:100px;line-height:4em}.spftestimonial-field.spftestimonial-field-image_select.theme_style img{width:400px}.spftestimonial-field.spftestimonial-field-image_select.theme_style .spftestimonial-fieldset{margin-left:0}.spftestimonial-field.spftestimonial-field-image_select.theme_style .spftestimonial-title{width:100%;margin-bottom:30px;float:none}.spftestimonial-field.spftestimonial-field-image_select.theme_style .spftestimonial--image{margin:0 24px 24px 0}.spftestimonial-field-switcher.pro_switcher .spftestimonial--ball::after{content:"PRO";position:relative;text-align:center;width:24px;float:right;font-weight:600;font-size:8px;color:#a5a5a5;opacity:1;line-height:18px}.pro_switcher .spftestimonial--switcher{background-color:#cbcfd0;pointer-events:none}.sp-field-icon-select.spftestimonial-pro-only:last-child:after,.spftestimonial-field-button_set .spftestimonial--button.spftestimonial-pro-only:after{position:absolute;content:'';top:0;right:0;color:#999;background-color:#e0e0e0;font-weight:500;padding:0 4px;content:"PRO";text-align:center;font-size:8px;line-height:11px;opacity:1}.client_image_style.spftestimonial-field-image_select img{width:70px}.sp-field-icon-select.spftestimonial-pro-only:last-child:after{content:"PRO";color:#444}.spftestimonial-field.spftestimonial-field-checkbox .spftestimonial-help{bottom:15px;right:auto;top:auto}.spftestimonial-field.spftestimonial-field-checkbox .spftestimonial-help.spftestimonial-title-help{position:relative;bottom:0}.spftestimonial-field.spftestimonial-field-submessage.pro_only_field{opacity:.7}.spftestimonial-field-sortable.form_fields .spftestimonial--sortable .spftestimonial--sortable-item{margin:0;border:0}.spftestimonial-field-sortable.form_fields .spftestimonial--sortable-content>.spftestimonial-field{padding:0}.spftestimonial-field-sortable.form_fields .spftestimonial--sortable-helper{display:none}.form_fields .spftestimonial-accordion-items{position:relative}.form_fields .spftestimonial-accordion-item::after{position:absolute;top:18px;right:16px;content:"\f0b2";display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.spftestimonial-field-form_upper_section{background:#f5fcff;padding:50px 0 70px}.spftestimonial-field-form_upper_section .sp-tfree-help .sp-tfree-pro-features .feature-section span.dashicons{height:22px;width:22px;font-size:16px;line-height:22px}.spftestimonial-field-form_upper_section div.sp-tfree-help .sp-tfree-pro-features .feature-section{margin-bottom:40px;margin-left:auto;margin-right:auto;text-align:center;max-width:1200px}.spftestimonial-field-form_upper_section div.sp-tfree-help .sp-tfree-pro-features .feature-section .sp-tfree-feature{box-shadow:none;margin:0;border:0 solid;background-color:transparent}div.sp-tfree-help .sp-tfree-pro-features h1{font-size:30px;font-weight:500;color:#444}div.sp-tfree-help .sp-tfree-pro-features .sp-tfree-pro-subtitle{font-size:18px;font-weight:400}.spftestimonial-field-form_upper_section .sp-tfree-upgrade a.tfree-upgrade-btn:hover{background:#0a73a7}.spftestimonial-field-form_upper_section .sp-tfree-upgrade a.tfree-upgrade-btn{transition:all .5s;background:#1595ce;padding:0 25px;line-height:46px;display:block;color:#fff;border-radius:3px;font-weight:600;display:inline-block;text-align:center}.spftestimonial-field-form_upper_section .sp-tfree-pro-features .feature-section .sp-tfree-feature h3{color:#2d4d5b}.spftestimonial-field-form_upper_section .sp-tfree-help .feature-section .sp-tfree-feature{padding:0 0 10px;text-align:left}#sp_tpro_form_elements_options .handle-actions.hide-if-no-js,#sp_tpro_form_options .postbox-header,div#sp_tfree_form_upper_section .postbox-header,div#sp_tpro_form_elements_options .handle-actions.hide-if-no-js{display:none}#sp_tpro_form_options .spftestimonial-nav-metabox .spftestimonial--sortable-item .spftestimonial-accordion-title{pointer-events:none}#sp_tpro_form_options .spftestimonial-field-accordion .spftestimonial-accordion-title,#sp_tpro_form_options .spftestimonial-field-sortable.form_fields .spftestimonial--sortable-content>.spftestimonial-field,#sp_tpro_form_options .spftestimonial-nav-metabox,#sp_tpro_form_options .spftestimonial-nav-metabox li a{pointer-events:none}div#spftestimonial-section-sp_tpro_form_elements_options_1 .spftestimonial-field-checkbox ul{max-height:100%}#sp_tpro_form_options .spftestimonial-metabox .spftestimonial-nav{display:block;position:relative;z-index:10;float:left;width:225px}#sp_tpro_form_options .spftestimonial-metabox .spftestimonial-content{position:relative;margin-left:225px;background-color:#fff;-moz-transition:opacity .2s;-o-transition:opacity .2s;-webkit-transition:opacity .2s;transition:opacity .2s}#sp_tpro_form_options .spftestimonial-metabox .spftestimonial-nav ul li{display:list-item}#sp_tpro_form_options .spftestimonial-metabox .spftestimonial-nav ul li a{color:#464646;background-color:#f5f5f5;border-top:0;border-right:0;border-bottom:1px solid #ccd0d4;margin-bottom:0;padding:15px 15px;text-transform:uppercase;font-weight:600}#sp_tpro_form_options .spftestimonial-metabox .spftestimonial-nav ul li .spftestimonial-section-active{box-shadow:3px 0 0 0 #1595ce inset;background-color:#fff;color:#1595ce}#sp_tpro_form_options .spftestimonial-metabox .spftestimonial-nav-background{background-color:#f5f5f5;border-right:1px solid #ccd0d4;display:block}#sp_tpro_form_options .spftestimonial-field-sortable .spftestimonial-field-text input{max-width:400px}.spftestimonial-field.spftestimonial-field-button_set.spt_export{margin-top:0;padding-top:0}.spftestimonial-field-button_set.spt_export .spftestimonial--button:hover,.spftestimonial-field.spftestimonial-field-custom_import.spt_import button:hover{background:#135e96;border-color:#135e96;color:#fff}.spftestimonial-field-button_set.spt_export .spftestimonial--button,.spftestimonial-field.spftestimonial-field-custom_import.spt_import button{background:#2271b1;border-color:#2271b1;color:#fff;text-decoration:none;text-shadow:none;display:inline-block;text-decoration:none;font-size:13px;line-height:2.15384615;min-height:30px;margin:0;padding:0 10px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box}.sp-lcp-options .spftestimonial-field-select .spftestimonial-fieldset{position:relative}.spftestimonial-field.spftestimonial-field-custom_import.spt_import .spftestimonial-fieldset{position:relative}.spftestimonial-field.spftestimonial-field-custom_import.spt_import p{padding-bottom:0;margin-bottom:1px}.spftestimonial-field.spftestimonial-field-custom_import.spt_import button{margin-top:10px;padding-bottom:0}.spftestimonial-field.spftestimonial-field-custom_import.spt_import .spftestimonial-help{cursor:help;position:absolute;top:80%;transform:translateY(-50%);padding:5px;font-size:14px;color:#aaa;width:15px;left:64px}.spftestimonial-field.spftestimonial-field-select.spt_post_forms_id .chosen-container .chosen-drop,.spftestimonial-field.spftestimonial-field-select.spt_post_id .chosen-container .chosen-drop{max-width:400px}.spftestimonial-field.spftestimonial-field-select.spt_post_forms_id .chosen-container,.spftestimonial-field.spftestimonial-field-select.spt_post_id .chosen-container{max-width:400px}.spftestimonial-field.spftestimonial-field-select.spt_post_forms_id,.spftestimonial-field.spftestimonial-field-select.spt_post_id{padding-top:0}.spftestimonial_tools .spftestimonial-header-inner h1.export-import img{height:24px}.spftestimonial_tools .spftestimonial-nav-options li:nth-child(1) a{background-image:url(../images/export-icon.svg)}.spftestimonial_tools .spftestimonial-nav-options li:nth-child(2) a{background-image:url(../images/import.svg)}.spftestimonial_tools .spftestimonial-nav-options li:nth-child(1) a.spftestimonial-section-active{background-image:url(../images/file-export-icon1.svg)}.spftestimonial_tools .spftestimonial-nav-options li:nth-child(2) a.spftestimonial-section-active{background-image:url(../images/file-import-icon1.svg)}.spt-main-class.spftestimonial-theme-light.spftestimonial_tools .spftestimonial-nav-options ul li a{padding:15px 30px;background-size:14px;background-position:10px center;background-repeat:no-repeat}
admin/views/framework/assets/js/spftestimonial.js CHANGED
@@ -3060,4 +3060,45 @@
3060
  }
3061
  });
3062
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3063
  })(jQuery, window, document);
3060
  }
3061
  });
3062
 
3063
+ // Live Preview script.
3064
+ var preview_box = $('#sp_tpro-preview-box');
3065
+ var preview_display = $('#sp_tpro_live_preview').hide();
3066
+ $(document).on('click', '#sp_tpro-show-preview:contains(Hide)', function (e) {
3067
+ e.preventDefault();
3068
+ var _this = $(this);
3069
+ _this.html('<i class="fa fa-eye" aria-hidden="true"></i> Show Preview');
3070
+ preview_box.html('');
3071
+ preview_display.hide();
3072
+ });
3073
+
3074
+ $(document).on('click', '#sp_tpro-show-preview:not(:contains(Hide))', function (e) {
3075
+ e.preventDefault();
3076
+ var _data = $('form#post').serialize();
3077
+ var _this = $(this);
3078
+ var data = {
3079
+ action: 'sp_tpro_preview_meta_box',
3080
+ data: _data,
3081
+ ajax_nonce: $('#spftestimonial_metabox_noncesp_tpro_live_preview').val()
3082
+ };
3083
+ $.ajax({
3084
+ type: "POST",
3085
+ url: ajaxurl,
3086
+ data: data,
3087
+ error: function (response) {
3088
+ console.log(response)
3089
+ },
3090
+ success: function (response) {
3091
+ preview_display.show();
3092
+ preview_box.html(response);
3093
+ _this.html('<i class="fa fa-eye-slash" aria-hidden="true"></i> Hide Preview');
3094
+ $(document).on('keyup change', function (e) {
3095
+ e.preventDefault();
3096
+ _this.html('<i class="fa fa-refresh" aria-hidden="true"></i> Update Preview');
3097
+ });
3098
+ $("html, body").animate({ scrollTop: preview_display.offset().top - 50 }, "slow");
3099
+ $('.tfree-preloader').animate({ opacity: 1 }, 600).hide();
3100
+ }
3101
+ })
3102
+ });
3103
+
3104
  })(jQuery, window, document);
admin/views/framework/assets/js/spftestimonial.min.js CHANGED
@@ -1 +1 @@
1
- !function($,window,document,undefined){"use strict";var SPFTESTIMONIAL=SPFTESTIMONIAL||{};function spftestimonial_copyToClipboard(element){var $temp=$("<input class='hidden'>");$("body").append($temp),$temp.val($(element).text()).select(),document.execCommand("copy")}function spftestimonial_SelectText(element){var r=document.createRange(),w=element.get(0);r.selectNodeContents(w);var sel=window.getSelection();sel.removeAllRanges(),sel.addRange(r)}SPFTESTIMONIAL.funcs={},SPFTESTIMONIAL.vars={onloaded:!1,$body:$("body"),$window:$(window),$document:$(document),$form_warning:null,form_modified:!1,code_themes:[],is_rtl:$("body").hasClass("rtl")},SPFTESTIMONIAL.helper={uid:function(prefix){return(prefix||"")+Math.random().toString(36).substr(2,9)},preg_quote:function(str){return(str+"").replace(/(\[|\-|\])/g,"\\$1")},name_nested_replace:function($selector,field_id){var checks=[],regex=new RegExp("("+SPFTESTIMONIAL.helper.preg_quote(field_id)+")\\[(\\d+)\\]","g");$selector.find(":radio").each((function(){(this.checked||this.orginal_checked)&&(this.orginal_checked=!0)})),$selector.each((function(index){$(this).find(":input").each((function(){this.name=this.name.replace(regex,field_id+"["+index+"]"),this.orginal_checked&&(this.checked=!0)}))}))},debounce:function(callback,threshold,immediate){var timeout;return function(){var context=this,args=arguments,later=function(){timeout=null,immediate||callback.apply(context,args)},callNow=immediate&&!timeout;clearTimeout(timeout),timeout=setTimeout(later,threshold),callNow&&callback.apply(context,args)}},get_cookie:function(name){var e,b,cookie=document.cookie,p=name+"=";if(cookie){if(-1===(b=cookie.indexOf("; "+p))){if(0!==(b=cookie.indexOf(p)))return null}else b+=2;return-1===(e=cookie.indexOf(";",b))&&(e=cookie.length),decodeURIComponent(cookie.substring(b+p.length,e))}},set_cookie:function(name,value,expires,path,domain,secure){var d=new Date;"object"==typeof expires&&expires.toGMTString?expires=expires.toGMTString():parseInt(expires,10)?(d.setTime(d.getTime()+1e3*parseInt(expires,10)),expires=d.toGMTString()):expires="",document.cookie=name+"="+encodeURIComponent(value)+(expires?"; expires="+expires:"")+(path?"; path="+path:"")+(domain?"; domain="+domain:"")+(secure?"; secure":"")},remove_cookie:function(name,path,domain,secure){SPFTESTIMONIAL.helper.set_cookie(name,"",-1e3,path,domain,secure)}},$.fn.spftestimonial_clone=function(){for(var base=$.fn.clone.apply(this,arguments),clone=this.find("select").add(this.filter("select")),cloned=base.find("select").add(base.filter("select")),i=0;i<clone.length;++i)for(var j=0;j<clone[i].options.length;++j)!0===clone[i].options[j].selected&&(cloned[i].options[j].selected=!0);return this.find(":radio").each((function(){this.orginal_checked=this.checked})),base},$.fn.spftestimonial_expand_all=function(){return this.each((function(){$(this).on("click",(function(e){e.preventDefault(),$(".spftestimonial-wrapper").toggleClass("spftestimonial-show-all"),$(".spftestimonial-section").spftestimonial_reload_script(),$(this).find(".fa").toggleClass("fa-indent").toggleClass("fa-outdent")}))}))},$.fn.spftestimonial_nav_options=function(){return this.each((function(){var $nav=$(this),$links=$nav.find("a"),$hidden=$nav.closest(".spftestimonial").find(".spftestimonial-section-id"),$last_section;$(window).on("hashchange",(function(){var hash=window.location.hash.match(new RegExp("tab=([^&]*)")),slug=hash?hash[1]:$links.first().attr("href").replace("#tab=",""),$link=$("#spftestimonial-tab-link-"+slug);if($link.length>0){$link.closest(".spftestimonial-tab-depth-0").addClass("spftestimonial-tab-active").siblings().removeClass("spftestimonial-tab-active"),$links.removeClass("spftestimonial-section-active"),$link.addClass("spftestimonial-section-active"),void 0!==$last_section&&$last_section.hide();var $section=$("#spftestimonial-section-"+slug);$section.css({display:"block"}),$section.spftestimonial_reload_script(),$hidden.val(slug),$last_section=$section}})).trigger("hashchange")}))},$.fn.spftestimonial_nav_metabox=function(){return this.each((function(){var $nav=$(this),$links=$nav.find("a"),unique_id=$nav.data("unique"),post_id=$("#post_ID").val()||"global",$last_section,$last_link;$links.on("click",(function(e){e.preventDefault();var $link=$(this),section_id=$link.data("section");void 0!==$last_link&&$last_link.removeClass("spftestimonial-section-active"),void 0!==$last_section&&$last_section.hide(),$link.addClass("spftestimonial-section-active");var $section=$("#spftestimonial-section-"+section_id);$section.css({display:"block"}),$section.spftestimonial_reload_script(),SPFTESTIMONIAL.helper.set_cookie("spftestimonial-last-metabox-tab-"+post_id+"-"+unique_id,section_id),$last_section=$section,$last_link=$link}));var get_cookie=SPFTESTIMONIAL.helper.get_cookie("spftestimonial-last-metabox-tab-"+post_id+"-"+unique_id);get_cookie?$nav.find('a[data-section="'+get_cookie+'"]').trigger("click"):$links.first("a").trigger("click")}))},$.fn.spftestimonial_page_templates=function(){this.length&&$(document).on("change",".editor-page-attributes__template select, #page_template",(function(){var maybe_value=$(this).val()||"default";$(".spftestimonial-page-templates").removeClass("spftestimonial-show").addClass("spftestimonial-hide"),$(".spftestimonial-page-"+maybe_value.toLowerCase().replace(/[^a-zA-Z0-9]+/g,"-")).removeClass("spftestimonial-hide").addClass("spftestimonial-show")}))},$.fn.spftestimonial_post_formats=function(){this.length&&$(document).on("change",'.editor-post-format select, #formatdiv input[name="post_format"]',(function(){var maybe_value=$(this).val()||"default";maybe_value="0"===maybe_value?"default":maybe_value,$(".spftestimonial-post-formats").removeClass("spftestimonial-show").addClass("spftestimonial-hide"),$(".spftestimonial-post-format-"+maybe_value).removeClass("spftestimonial-hide").addClass("spftestimonial-show")}))},$.fn.spftestimonial_search=function(){return this.each((function(){var $this,$input;$(this).find("input").on("change keyup",(function(){var value=$(this).val(),$wrapper=$(".spftestimonial-wrapper"),$section,$fields=$wrapper.find(".spftestimonial-section").find("> .spftestimonial-field:not(.hidden)"),$titles=$fields.find("> .spftestimonial-title, .spftestimonial-search-tags");value.length>3?($fields.addClass("spftestimonial-hidden"),$wrapper.addClass("spftestimonial-search-all"),$titles.each((function(){var $title=$(this);if($title.text().match(new RegExp(".*?"+value+".*?","i"))){var $field=$title.closest(".spftestimonial-field");$field.removeClass("spftestimonial-hidden"),$field.parent().spftestimonial_reload_script()}}))):($fields.removeClass("spftestimonial-hidden"),$wrapper.removeClass("spftestimonial-search-all"))}))}))},$.fn.spftestimonial_sticky=function(){return this.each((function(){var $this=$(this),$window=$(window),$inner=$this.find(".spftestimonial-header-inner"),padding=parseInt($inner.css("padding-left"))+parseInt($inner.css("padding-right")),offset=32,scrollTop=0,lastTop=0,ticking=!1,stickyUpdate=function(){var offsetTop=$this.offset().top,stickyTop=Math.max(32,offsetTop-scrollTop),winWidth=Math.max(document.documentElement.clientWidth,window.innerWidth||0);stickyTop<=32&&winWidth>782?($inner.css({width:$this.outerWidth()-padding}),$this.css({height:$this.outerHeight()}).addClass("spftestimonial-sticky")):($inner.removeAttr("style"),$this.removeAttr("style").removeClass("spftestimonial-sticky"))},requestTick=function(){ticking||requestAnimationFrame((function(){stickyUpdate(),ticking=!1})),ticking=!0},onSticky=function(){scrollTop=$window.scrollTop(),requestTick()};$window.on("scroll resize",onSticky),onSticky()}))},$.fn.spftestimonial_dependency=function(){return this.each((function(){var $this=$(this),ruleset=$.spftestimonial_deps.createRuleset(),depends=[],is_global=!1;$this.children("[data-controller]").each((function(){var $field=$(this),controllers=$field.data("controller").split("|"),conditions=$field.data("condition").split("|"),values=$field.data("value").toString().split("|"),rules=ruleset;$field.data("depend-global")&&(is_global=!0),$.each(controllers,(function(index,depend_id){var value=values[index]||"",condition=conditions[index]||conditions[0];(rules=rules.createRule('[data-depend-id="'+depend_id+'"]',condition,value)).include($field),depends.push(depend_id)}))})),depends.length&&(is_global?$.spftestimonial_deps.enable(SPFTESTIMONIAL.vars.$body,ruleset,depends):$.spftestimonial_deps.enable($this,ruleset,depends))}))},$.fn.spftestimonial_field_accordion=function(){return this.each((function(){var $titles=$(this).find(".spftestimonial-accordion-title");$titles.on("click",(function(){var $title=$(this),$icon=$title.find(".spftestimonial-accordion-icon"),$content=$title.next();$icon.hasClass("fa-angle-right")?$icon.removeClass("fa-angle-right").addClass("fa-angle-down"):$icon.removeClass("fa-angle-down").addClass("fa-angle-right"),$content.data("opened")||($content.spftestimonial_reload_script(),$content.data("opened",!0)),$content.toggleClass("spftestimonial-accordion-open")})),$(this).hasClass("opened_accordion")&&$titles.trigger("click")}))},$.fn.spftestimonial_field_backup=function(){return this.each((function(){if(void 0!==window.wp.customize){var base=this,$this=$(this),$body=$("body"),$import=$this.find(".spftestimonial-import"),$reset=$this.find(".spftestimonial-reset");base.notification=function(message_text){wp.customize.notifications&&wp.customize.OverlayNotification&&(wp.customize.state("saved").get()||(wp.customize.state("changesetStatus").set("trash"),wp.customize.each((function(setting){setting._dirty=!1})),wp.customize.state("saved").set(!0)),wp.customize.notifications.add(new wp.customize.OverlayNotification("spftestimonial_field_backup_notification",{type:"info",message:message_text,loading:!0})))},$reset.on("click",(function(e){e.preventDefault(),SPFTESTIMONIAL.vars.is_confirm&&(base.notification(window.spftestimonial_vars.i18n.reset_notification),window.wp.ajax.post("spftestimonial-reset",{unique:$reset.data("unique"),nonce:$reset.data("nonce")}).done((function(response){window.location.reload(!0)})).fail((function(response){alert(response.error),wp.customize.notifications.remove("spftestimonial_field_backup_notification")})))})),$import.on("click",(function(e){e.preventDefault(),SPFTESTIMONIAL.vars.is_confirm&&(base.notification(window.spftestimonial_vars.i18n.import_notification),window.wp.ajax.post("spftestimonial-import",{unique:$import.data("unique"),nonce:$import.data("nonce"),import_data:$this.find(".spftestimonial-import-data").val()}).done((function(response){window.location.reload(!0)})).fail((function(response){alert(response.error),wp.customize.notifications.remove("spftestimonial_field_backup_notification")})))}))}}))},$.fn.spftestimonial_field_background=function(){return this.each((function(){$(this).find(".spftestimonial--background-image").spftestimonial_reload_script()}))},$.fn.spftestimonial_field_code_editor=function(){return this.each((function(){if("function"==typeof CodeMirror){var $this=$(this),$textarea=$this.find("textarea"),$inited=$this.find(".CodeMirror"),data_editor=$textarea.data("editor");$inited.length&&$inited.remove();var interval=setInterval((function(){if($this.is(":visible")){var code_editor=CodeMirror.fromTextArea($textarea[0],data_editor);if("default"!==data_editor.theme&&-1===SPFTESTIMONIAL.vars.code_themes.indexOf(data_editor.theme)){var $cssLink=$("<link>");$("#spftestimonial-codemirror-css").after($cssLink),$cssLink.attr({rel:"stylesheet",id:"spftestimonial-codemirror-"+data_editor.theme+"-css",href:data_editor.cdnURL+"/theme/"+data_editor.theme+".min.css",type:"text/css",media:"all"}),SPFTESTIMONIAL.vars.code_themes.push(data_editor.theme)}CodeMirror.modeURL=data_editor.cdnURL+"/mode/%N/%N.min.js",CodeMirror.autoLoadMode(code_editor,data_editor.mode),code_editor.on("change",(function(editor,event){$textarea.val(code_editor.getValue()).trigger("change")})),clearInterval(interval)}}))}}))},$.fn.spftestimonial_field_date=function(){return this.each((function(){var $this=$(this),$inputs=$this.find("input"),settings=$this.find(".spftestimonial-date-settings").data("settings"),wrapper='<div class="spftestimonial-datepicker-wrapper"></div>',$datepicker,defaults={showAnim:"",beforeShow:function(input,inst){$(inst.dpDiv).addClass("spftestimonial-datepicker-wrapper")},onClose:function(input,inst){$(inst.dpDiv).removeClass("spftestimonial-datepicker-wrapper")}};settings=$.extend({},settings,defaults),2===$inputs.length&&(settings=$.extend({},settings,{onSelect:function(selectedDate){var $this=$(this),$from=$inputs.first(),option=$inputs.first().attr("id")===$(this).attr("id")?"minDate":"maxDate",date=$.datepicker.parseDate(settings.dateFormat,selectedDate);$inputs.not(this).datepicker("option",option,date)}})),$inputs.each((function(){var $input=$(this);$input.hasClass("hasDatepicker")&&$input.removeAttr("id").removeClass("hasDatepicker"),$input.datepicker(settings)}))}))},$.fn.spftestimonial_field_fieldset=function(){return this.each((function(){$(this).find(".spftestimonial-fieldset-content").spftestimonial_reload_script()}))},$.fn.spftestimonial_field_gallery=function(){return this.each((function(){var $this=$(this),$edit=$this.find(".spftestimonial-edit-gallery"),$clear=$this.find(".spftestimonial-clear-gallery"),$list=$this.find("ul"),$input=$this.find("input"),$img=$this.find("img"),wp_media_frame;$this.on("click",".spftestimonial-button, .spftestimonial-edit-gallery",(function(e){var $el=$(this),ids=$input.val(),what=$el.hasClass("spftestimonial-edit-gallery")?"edit":"add",state="add"!==what||ids.length?"gallery-edit":"gallery";e.preventDefault(),void 0!==window.wp&&window.wp.media&&window.wp.media.gallery&&("gallery"===state?(wp_media_frame=window.wp.media({library:{type:"image"},frame:"post",state:"gallery",multiple:!0})).open():(wp_media_frame=window.wp.media.gallery.edit('[gallery ids="'+ids+'"]'),"add"===what&&wp_media_frame.setState("gallery-library")),wp_media_frame.on("update",(function(selection){$list.empty();var selectedIds=selection.models.map((function(attachment){var item=attachment.toJSON(),thumb=item.sizes&&item.sizes.thumbnail&&item.sizes.thumbnail.url?item.sizes.thumbnail.url:item.url;return $list.append('<li><img src="'+thumb+'"></li>'),item.id}));$input.val(selectedIds.join(",")).trigger("change"),$clear.removeClass("hidden"),$edit.removeClass("hidden")})))})),$clear.on("click",(function(e){e.preventDefault(),$list.empty(),$input.val("").trigger("change"),$clear.addClass("hidden"),$edit.addClass("hidden")}))}))},$.fn.spftestimonial_field_group=function(){return this.each((function(){var $this=$(this),$fieldset=$this.children(".spftestimonial-fieldset"),$group=$fieldset.length?$fieldset:$this,$wrapper=$group.children(".spftestimonial-cloneable-wrapper"),$hidden=$group.children(".spftestimonial-cloneable-hidden"),$max=$group.children(".spftestimonial-cloneable-max"),$min=$group.children(".spftestimonial-cloneable-min"),field_id=$wrapper.data("field-id"),unique_id=$wrapper.data("unique-id"),is_number=Boolean(Number($wrapper.data("title-number"))),max=parseInt($wrapper.data("max")),min=parseInt($wrapper.data("min"));$wrapper.hasClass("ui-accordion")&&$wrapper.find(".ui-accordion-header-icon").remove();var update_title_numbers=function($selector){$selector.find(".spftestimonial-cloneable-title-number").each((function(index){$(this).html($(this).closest(".spftestimonial-cloneable-item").index()+1+".")}))};$wrapper.accordion({header:"> .spftestimonial-cloneable-item > .spftestimonial-cloneable-title",collapsible:!0,active:!1,animate:!1,heightStyle:"content",icons:{header:"spftestimonial-cloneable-header-icon fa fa-angle-right",activeHeader:"spftestimonial-cloneable-header-icon fa fa-angle-down"},activate:function(event,ui){var $panel=ui.newPanel,$header=ui.newHeader;if($panel.length&&!$panel.data("opened")){var $fields,$first=$panel.children().first().find(":input").first(),$title=$header.find(".spftestimonial-cloneable-value");$first.on("keyup",(function(event){$title.text($first.val())})),$panel.spftestimonial_reload_script(),$panel.data("opened",!0),$panel.data("retry",!1)}else $panel.data("retry")&&($panel.spftestimonial_reload_script_retry(),$panel.data("retry",!1))}}),$wrapper.sortable({axis:"y",handle:".spftestimonial-cloneable-title,.spftestimonial-cloneable-sort",helper:"original",cursor:"move",placeholder:"widget-placeholder",start:function(event,ui){$wrapper.accordion({active:!1}),$wrapper.sortable("refreshPositions"),ui.item.children(".spftestimonial-cloneable-content").data("retry",!0)},update:function(event,ui){SPFTESTIMONIAL.helper.name_nested_replace($wrapper.children(".spftestimonial-cloneable-item"),field_id),$wrapper.spftestimonial_customizer_refresh(),is_number&&update_title_numbers($wrapper)}}),$group.children(".spftestimonial-cloneable-add").on("click",(function(e){e.preventDefault();var count=$wrapper.children(".spftestimonial-cloneable-item").length;if($min.hide(),max&&count+1>max)$max.show();else{var new_field_id=unique_id+field_id+"["+count+"]",$cloned_item=$hidden.spftestimonial_clone(!0);$cloned_item.removeClass("spftestimonial-cloneable-hidden"),$cloned_item.find(':input[name!="_pseudo"]').each((function(){this.name=new_field_id+this.name.replace(this.name.startsWith("_nonce")?"_nonce":unique_id,"")})),$cloned_item.find(".spftestimonial-data-wrapper").each((function(){$(this).attr("data-unique-id",new_field_id)})),$wrapper.append($cloned_item),$wrapper.accordion("refresh"),$wrapper.accordion({active:count}),$wrapper.spftestimonial_customizer_refresh(),$wrapper.spftestimonial_customizer_listen({closest:!0}),is_number&&update_title_numbers($wrapper)}}));var event_clone=function(e){e.preventDefault();var count=$wrapper.children(".spftestimonial-cloneable-item").length;if($min.hide(),max&&count+1>max)$max.show();else{var $this,$parent=$(this).parent().parent(),$cloned_helper=$parent.children(".spftestimonial-cloneable-helper").spftestimonial_clone(!0),$cloned_title=$parent.children(".spftestimonial-cloneable-title").spftestimonial_clone(),$cloned_content=$parent.children(".spftestimonial-cloneable-content").spftestimonial_clone(),cloned_regex=new RegExp("("+SPFTESTIMONIAL.helper.preg_quote(field_id)+")\\[(\\d+)\\]","g");$cloned_content.find(".spftestimonial-data-wrapper").each((function(){var $this=$(this);$this.attr("data-unique-id",$this.attr("data-unique-id").replace(cloned_regex,field_id+"["+($parent.index()+1)+"]"))}));var $cloned=$('<div class="spftestimonial-cloneable-item" />');$cloned.append($cloned_helper),$cloned.append($cloned_title),$cloned.append($cloned_content),$wrapper.children().eq($parent.index()).after($cloned),SPFTESTIMONIAL.helper.name_nested_replace($wrapper.children(".spftestimonial-cloneable-item"),field_id),$wrapper.accordion("refresh"),$wrapper.spftestimonial_customizer_refresh(),$wrapper.spftestimonial_customizer_listen({closest:!0}),is_number&&update_title_numbers($wrapper)}};$wrapper.children(".spftestimonial-cloneable-item").children(".spftestimonial-cloneable-helper").on("click",".spftestimonial-cloneable-clone",event_clone),$group.children(".spftestimonial-cloneable-hidden").children(".spftestimonial-cloneable-helper").on("click",".spftestimonial-cloneable-clone",event_clone);var event_remove=function(e){e.preventDefault();var count=$wrapper.children(".spftestimonial-cloneable-item").length;$max.hide(),$min.hide(),min&&count-1<min?$min.show():($(this).closest(".spftestimonial-cloneable-item").remove(),SPFTESTIMONIAL.helper.name_nested_replace($wrapper.children(".spftestimonial-cloneable-item"),field_id),$wrapper.spftestimonial_customizer_refresh(),is_number&&update_title_numbers($wrapper))};$wrapper.children(".spftestimonial-cloneable-item").children(".spftestimonial-cloneable-helper").on("click",".spftestimonial-cloneable-remove",event_remove),$group.children(".spftestimonial-cloneable-hidden").children(".spftestimonial-cloneable-helper").on("click",".spftestimonial-cloneable-remove",event_remove)}))},$.fn.spftestimonial_field_map=function(){return this.each((function(){if("undefined"!=typeof L){var $this=$(this),$map=$this.find(".spftestimonial--map-osm"),$search_input=$this.find(".spftestimonial--map-search input"),$latitude=$this.find(".spftestimonial--latitude"),$longitude=$this.find(".spftestimonial--longitude"),$zoom=$this.find(".spftestimonial--zoom"),map_data=$map.data("map"),mapInit=L.map($map.get(0),map_data);L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(mapInit);var mapMarker=L.marker(map_data.center,{draggable:!0}).addTo(mapInit),update_latlng=function(data){$latitude.val(data.lat),$longitude.val(data.lng),$zoom.val(mapInit.getZoom())};mapInit.on("click",(function(data){mapMarker.setLatLng(data.latlng),update_latlng(data.latlng)})),mapInit.on("zoom",(function(){update_latlng(mapMarker.getLatLng())})),mapMarker.on("drag",(function(){update_latlng(mapMarker.getLatLng())})),$search_input.length||($search_input=$('[data-depend-id="'+$this.find(".spftestimonial--address-field").data("address-field")+'"]')),$search_input.autocomplete({source:function(request,response){$.get("https://nominatim.openstreetmap.org/search",{format:"json",q:request.term},(function(results){results.length?response(results.map((function(item){return{value:item.display_name,label:item.display_name,lat:item.lat,lon:item.lon}}),"json")):response([{value:"no-data",label:"No Results."}])}))},select:function(event,ui){if("no-data"===ui.item.value)return!1;var latLng=L.latLng(ui.item.lat,ui.item.lon);mapInit.panTo(latLng),mapMarker.setLatLng(latLng),update_latlng(latLng)},create:function(event,ui){$(this).autocomplete("widget").addClass("spftestimonial-map-ui-autocomplate")}});var input_update_latlng=function(){var latLng=L.latLng($latitude.val(),$longitude.val());mapInit.panTo(latLng),mapMarker.setLatLng(latLng)};$latitude.on("change",input_update_latlng),$longitude.on("change",input_update_latlng)}}))},$.fn.spftestimonial_field_media=function(){return this.each((function(){var $this=$(this),$upload_button=$this.find(".spftestimonial--button"),$remove_button=$this.find(".spftestimonial--remove"),$library=$upload_button.data("library")&&$upload_button.data("library").split(",")||"",$auto_attributes=!!$this.hasClass("spftestimonial-assign-field-background")&&$this.closest(".spftestimonial-field-background").find(".spftestimonial--auto-attributes"),wp_media_frame;$upload_button.on("click",(function(e){e.preventDefault(),void 0!==window.wp&&window.wp.media&&window.wp.media.gallery&&(wp_media_frame?wp_media_frame.open():((wp_media_frame=window.wp.media({library:{type:$library}})).on("select",(function(){var thumbnail,attributes=wp_media_frame.state().get("selection").first().attributes,preview_size=$upload_button.data("preview-size")||"thumbnail";$library.length&&-1===$library.indexOf(attributes.subtype)&&-1===$library.indexOf(attributes.type)||($this.find(".spftestimonial--id").val(attributes.id),$this.find(".spftestimonial--width").val(attributes.width),$this.find(".spftestimonial--height").val(attributes.height),$this.find(".spftestimonial--alt").val(attributes.alt),$this.find(".spftestimonial--title").val(attributes.title),$this.find(".spftestimonial--description").val(attributes.description),thumbnail=void 0!==attributes.sizes&&void 0!==attributes.sizes.thumbnail&&"thumbnail"===preview_size?attributes.sizes.thumbnail.url:void 0!==attributes.sizes&&void 0!==attributes.sizes.full?attributes.sizes.full.url:attributes.icon,$auto_attributes&&$auto_attributes.removeClass("spftestimonial--attributes-hidden"),$remove_button.removeClass("hidden"),$this.find(".spftestimonial--preview").removeClass("hidden"),$this.find(".spftestimonial--src").attr("src",thumbnail),$this.find(".spftestimonial--thumbnail").val(thumbnail),$this.find(".spftestimonial--url").val(attributes.url).trigger("change"))})),wp_media_frame.open()))})),$remove_button.on("click",(function(e){e.preventDefault(),$auto_attributes&&$auto_attributes.addClass("spftestimonial--attributes-hidden"),$remove_button.addClass("hidden"),$this.find("input").val(""),$this.find(".spftestimonial--preview").addClass("hidden"),$this.find(".spftestimonial--url").trigger("change")}))}))},$.fn.spftestimonial_field_repeater=function(){return this.each((function(){var $this=$(this),$fieldset=$this.children(".spftestimonial-fieldset"),$repeater=$fieldset.length?$fieldset:$this,$wrapper=$repeater.children(".spftestimonial-repeater-wrapper"),$hidden=$repeater.children(".spftestimonial-repeater-hidden"),$max=$repeater.children(".spftestimonial-repeater-max"),$min=$repeater.children(".spftestimonial-repeater-min"),field_id=$wrapper.data("field-id"),unique_id=$wrapper.data("unique-id"),max=parseInt($wrapper.data("max")),min=parseInt($wrapper.data("min"));$wrapper.children(".spftestimonial-repeater-item").children(".spftestimonial-repeater-content").spftestimonial_reload_script(),$wrapper.sortable({axis:"y",handle:".spftestimonial-repeater-sort",helper:"original",cursor:"move",placeholder:"widget-placeholder",update:function(event,ui){SPFTESTIMONIAL.helper.name_nested_replace($wrapper.children(".spftestimonial-repeater-item"),field_id),$wrapper.spftestimonial_customizer_refresh(),ui.item.spftestimonial_reload_script_retry()}}),$repeater.children(".spftestimonial-repeater-add").on("click",(function(e){e.preventDefault();var count=$wrapper.children(".spftestimonial-repeater-item").length;if($min.hide(),max&&count+1>max)$max.show();else{var new_field_id=unique_id+field_id+"["+count+"]",$cloned_item=$hidden.spftestimonial_clone(!0);$cloned_item.removeClass("spftestimonial-repeater-hidden"),$cloned_item.find(':input[name!="_pseudo"]').each((function(){this.name=new_field_id+this.name.replace(this.name.startsWith("_nonce")?"_nonce":unique_id,"")})),$cloned_item.find(".spftestimonial-data-wrapper").each((function(){$(this).attr("data-unique-id",new_field_id)})),$wrapper.append($cloned_item),$cloned_item.children(".spftestimonial-repeater-content").spftestimonial_reload_script(),$wrapper.spftestimonial_customizer_refresh(),$wrapper.spftestimonial_customizer_listen({closest:!0})}}));var event_clone=function(e){e.preventDefault();var count=$wrapper.children(".spftestimonial-repeater-item").length;if($min.hide(),max&&count+1>max)$max.show();else{var $this,$parent=$(this).parent().parent().parent(),$cloned_content=$parent.children(".spftestimonial-repeater-content").spftestimonial_clone(),$cloned_helper=$parent.children(".spftestimonial-repeater-helper").spftestimonial_clone(!0),cloned_regex=new RegExp("("+SPFTESTIMONIAL.helper.preg_quote(field_id)+")\\[(\\d+)\\]","g");$cloned_content.find(".spftestimonial-data-wrapper").each((function(){var $this=$(this);$this.attr("data-unique-id",$this.attr("data-unique-id").replace(cloned_regex,field_id+"["+($parent.index()+1)+"]"))}));var $cloned=$('<div class="spftestimonial-repeater-item" />');$cloned.append($cloned_content),$cloned.append($cloned_helper),$wrapper.children().eq($parent.index()).after($cloned),$cloned.children(".spftestimonial-repeater-content").spftestimonial_reload_script(),SPFTESTIMONIAL.helper.name_nested_replace($wrapper.children(".spftestimonial-repeater-item"),field_id),$wrapper.spftestimonial_customizer_refresh(),$wrapper.spftestimonial_customizer_listen({closest:!0})}};$wrapper.children(".spftestimonial-repeater-item").children(".spftestimonial-repeater-helper").on("click",".spftestimonial-repeater-clone",event_clone),$repeater.children(".spftestimonial-repeater-hidden").children(".spftestimonial-repeater-helper").on("click",".spftestimonial-repeater-clone",event_clone);var event_remove=function(e){e.preventDefault();var count=$wrapper.children(".spftestimonial-repeater-item").length;$max.hide(),$min.hide(),min&&count-1<min?$min.show():($(this).closest(".spftestimonial-repeater-item").remove(),SPFTESTIMONIAL.helper.name_nested_replace($wrapper.children(".spftestimonial-repeater-item"),field_id),$wrapper.spftestimonial_customizer_refresh())};$wrapper.children(".spftestimonial-repeater-item").children(".spftestimonial-repeater-helper").on("click",".spftestimonial-repeater-remove",event_remove),$repeater.children(".spftestimonial-repeater-hidden").children(".spftestimonial-repeater-helper").on("click",".spftestimonial-repeater-remove",event_remove)}))},$.fn.spftestimonial_field_slider=function(){return this.each((function(){var $this=$(this),$input=$this.find("input"),$slider=$this.find(".spftestimonial-slider-ui"),data=$input.data(),value=$input.val()||0;$slider.hasClass("ui-slider")&&$slider.empty(),$slider.slider({range:"min",value:value,min:data.min,max:data.max,step:data.step,slide:function(e,o){$input.val(o.value).trigger("change")}}),$input.keyup((function(){$slider.slider("value",$input.val())}))}))},$.fn.spftestimonial_field_sortable=function(){return this.each((function(){var $sortable=$(this).find(".spftestimonial--sortable");$sortable.sortable({axis:"y",helper:"original",cursor:"move",placeholder:"widget-placeholder",update:function(event,ui){$sortable.spftestimonial_customizer_refresh()}}),$sortable.find(".spftestimonial--sortable-content").spftestimonial_reload_script(),$(".form_fields").find(".spftestimonial--sortable").sortable("disable")}))},$.fn.spftestimonial_field_sorter=function(){return this.each((function(){var $this=$(this),$enabled=$this.find(".spftestimonial-enabled"),$has_disabled=$this.find(".spftestimonial-disabled"),$disabled=!!$has_disabled.length&&$has_disabled;$enabled.sortable({connectWith:$disabled,placeholder:"ui-sortable-placeholder",update:function(event,ui){var $el=ui.item.find("input");ui.item.parent().hasClass("spftestimonial-enabled")?$el.attr("name",$el.attr("name").replace("disabled","enabled")):$el.attr("name",$el.attr("name").replace("enabled","disabled")),$this.spftestimonial_customizer_refresh()}}),$disabled&&$disabled.sortable({connectWith:$enabled,placeholder:"ui-sortable-placeholder",update:function(event,ui){$this.spftestimonial_customizer_refresh()}})}))},$.fn.spftestimonial_field_spinner=function(){return this.each((function(){var $this=$(this),$input=$this.find("input"),$inited=$this.find(".ui-spinner-button"),$unit=$input.data("unit");$inited.length&&$inited.remove(),$input.spinner({max:$input.data("max")||100,min:$input.data("min")||0,step:$input.data("step")||1,create:function(event,ui){$unit.length&&$this.find(".ui-spinner-up").after('<span class="ui-button-text-only spftestimonial--unit">'+$unit+"</span>")},spin:function(event,ui){$input.val(ui.value).trigger("change")}})}))},$.fn.spftestimonial_field_switcher=function(){return this.each((function(){var $switcher=$(this).find(".spftestimonial--switcher");$switcher.on("click",(function(){var value=0,$input=$switcher.find("input");$switcher.hasClass("spftestimonial--active")?$switcher.removeClass("spftestimonial--active"):(value=1,$switcher.addClass("spftestimonial--active")),$input.val(value).trigger("change")}))}))},$.fn.spftestimonial_field_tabbed=function(){return this.each((function(){var $this=$(this),$links=$this.find(".spftestimonial-tabbed-nav a"),$sections=$this.find(".spftestimonial-tabbed-section");$sections.eq(0).spftestimonial_reload_script(),$links.on("click",(function(e){e.preventDefault();var $link=$(this),index=$link.index(),$section=$sections.eq(index);$link.addClass("spftestimonial-tabbed-active").siblings().removeClass("spftestimonial-tabbed-active"),$section.spftestimonial_reload_script(),$section.removeClass("hidden").siblings().addClass("hidden")}))}))},$.fn.spftestimonial_field_typography=function(){return this.each((function(){var base=this,$this=$(this),loaded_fonts=[],webfonts=spftestimonial_typography_json.webfonts,googlestyles=spftestimonial_typography_json.googlestyles,defaultstyles=spftestimonial_typography_json.defaultstyles;base.sanitize_subset=function(subset){return subset=(subset=subset.replace("-ext"," Extended")).charAt(0).toUpperCase()+subset.slice(1)},base.sanitize_style=function(style){return googlestyles[style]?googlestyles[style]:style},base.load_google_font=function(font_family,weight,style){font_family&&"object"==typeof WebFont&&(weight=weight?weight.replace("normal",""):"",style=style?style.replace("normal",""):"",(weight||style)&&(font_family=font_family+":"+weight+style),-1===loaded_fonts.indexOf(font_family)&&WebFont.load({google:{families:[font_family]}}),loaded_fonts.push(font_family))},base.append_select_options=function($select,options,condition,type,is_multi){$select.find("option").not(":first").remove();var opts="";$.each(options,(function(key,value){var selected,name=value;selected=is_multi?condition&&-1!==condition.indexOf(value)?" selected":"":condition&&condition===value?" selected":"","subset"===type?name=base.sanitize_subset(value):"style"===type&&(name=base.sanitize_style(value)),opts+='<option value="'+value+'"'+selected+">"+name+"</option>"})),$select.append(opts).trigger("spftestimonial.change").trigger("chosen:updated")},base.init=function(){var selected_styles=[],$typography=$this.find(".spftestimonial--typography"),$type=$this.find(".spftestimonial--type"),$styles=$this.find(".spftestimonial--block-font-style"),unit=$typography.data("unit"),exclude_fonts=$typography.data("exclude")?$typography.data("exclude").split(","):[],$chosen_selects;$this.find(".spftestimonial--chosen").length&&$this.find("select").each((function(){var $chosen_select=$(this),$chosen_inited=$chosen_select.parent().find(".chosen-container");$chosen_inited.length&&$chosen_inited.remove(),$chosen_select.chosen({allow_single_deselect:!0,disable_search_threshold:15,width:"100%"})}));var $font_family_select=$this.find(".spftestimonial--font-family"),first_font_family=$font_family_select.val();$font_family_select.find("option").not(":first-child").remove();var opts="";$.each(webfonts,(function(type,group){exclude_fonts&&-1!==exclude_fonts.indexOf(type)||(opts+='<optgroup label="'+group.label+'">',$.each(group.fonts,(function(key,value){var selected;opts+='<option value="'+(value="object"==typeof value?key:value)+'" data-type="'+type+'"'+(value===first_font_family?" selected":"")+">"+value+"</option>"})),opts+="</optgroup>")})),$font_family_select.append(opts).trigger("chosen:updated");var $font_style_block=$this.find(".spftestimonial--block-font-style");if($font_style_block.length){var $font_style_select=$this.find(".spftestimonial--font-style-select"),first_style_value=$font_style_select.val()?$font_style_select.val().replace(/normal/g,""):"";$font_style_select.on("change spftestimonial.change",(function(event){var style_value=$font_style_select.val();!style_value&&selected_styles&&-1===selected_styles.indexOf("normal")&&(style_value=selected_styles[0]);var font_normal=style_value&&"italic"!==style_value&&"normal"===style_value?"normal":"",font_weight=style_value&&"italic"!==style_value&&"normal"!==style_value?style_value.replace("italic",""):font_normal,font_style=style_value&&"italic"===style_value.substr(-6)?"italic":"";$this.find(".spftestimonial--font-weight").val(font_weight),$this.find(".spftestimonial--font-style").val(font_style)}));var $extra_font_style_block=$this.find(".spftestimonial--block-extra-styles");if($extra_font_style_block.length)var $extra_font_style_select=$this.find(".spftestimonial--extra-styles"),first_extra_style_value=$extra_font_style_select.val()}var $subset_block=$this.find(".spftestimonial--block-subset");if($subset_block.length)var $subset_select=$this.find(".spftestimonial--subset"),first_subset_select_value=$subset_select.val(),subset_multi_select=$subset_select.data("multiple")||!1;var $backup_font_family_block=$this.find(".spftestimonial--block-backup-font-family");$font_family_select.on("change spftestimonial.change",(function(event){$subset_block.length&&$subset_block.addClass("hidden"),$extra_font_style_block.length&&$extra_font_style_block.addClass("hidden"),$backup_font_family_block.length&&$backup_font_family_block.addClass("hidden");var $selected=$font_family_select.find(":selected"),value=$selected.val(),type=$selected.data("type");if(type&&value){if("google"!==type&&"custom"!==type||!$backup_font_family_block.length||$backup_font_family_block.removeClass("hidden"),$font_style_block.length){var styles=defaultstyles;"google"===type&&webfonts[type].fonts[value][0]?styles=webfonts[type].fonts[value][0]:"custom"===type&&webfonts[type].fonts[value]&&(styles=webfonts[type].fonts[value]),selected_styles=styles;var set_auto_style=-1!==styles.indexOf("normal")?"normal":styles[0],set_style_value=first_style_value&&-1!==styles.indexOf(first_style_value)?first_style_value:set_auto_style;base.append_select_options($font_style_select,styles,set_style_value,"style"),first_style_value=!1,$font_style_block.removeClass("hidden"),"google"===type&&$extra_font_style_block.length&&styles.length>1&&(base.append_select_options($extra_font_style_select,styles,first_extra_style_value,"style",!0),first_extra_style_value=!1,$extra_font_style_block.removeClass("hidden"))}if("google"===type&&$subset_block.length&&webfonts[type].fonts[value][1]){var subsets=webfonts[type].fonts[value][1],set_auto_subset=subsets.length<2&&"latin"!==subsets[0]?subsets[0]:"",set_subset_value=first_subset_select_value&&-1!==subsets.indexOf(first_subset_select_value)?first_subset_select_value:set_auto_subset;set_subset_value=subset_multi_select&&first_subset_select_value?first_subset_select_value:set_subset_value,base.append_select_options($subset_select,subsets,set_subset_value,"subset",subset_multi_select),first_subset_select_value=!1,$subset_block.removeClass("hidden")}}else $styles.find(":input").val(""),$subset_block.length&&($subset_select.find("option").not(":first-child").remove(),$subset_select.trigger("chosen:updated")),$font_style_block.length&&($font_style_select.find("option").not(":first-child").remove(),$font_style_select.trigger("chosen:updated"));$type.val(type)})).trigger("spftestimonial.change");var $preview_block=$this.find(".spftestimonial--block-preview");if($preview_block.length){var $preview=$this.find(".spftestimonial--preview");$this.on("change",SPFTESTIMONIAL.helper.debounce((function(event){$preview_block.removeClass("hidden");var font_family=$font_family_select.val(),font_weight=$this.find(".spftestimonial--font-weight").val(),font_style=$this.find(".spftestimonial--font-style").val(),font_size=$this.find(".spftestimonial--font-size").val(),font_variant=$this.find(".spftestimonial--font-variant").val(),line_height=$this.find(".spftestimonial--line-height").val(),text_align=$this.find(".spftestimonial--text-align").val(),text_transform=$this.find(".spftestimonial--text-transform").val(),text_decoration=$this.find(".spftestimonial--text-decoration").val(),text_color=$this.find(".spftestimonial--color").val(),word_spacing=$this.find(".spftestimonial--word-spacing").val(),letter_spacing=$this.find(".spftestimonial--letter-spacing").val(),custom_style=$this.find(".spftestimonial--custom-style").val(),type;"google"===$this.find(".spftestimonial--type").val()&&base.load_google_font(font_family,font_weight,font_style);var properties={};font_family&&(properties.fontFamily=font_family),font_weight&&(properties.fontWeight=font_weight),font_style&&(properties.fontStyle=font_style),font_variant&&(properties.fontVariant=font_variant),font_size&&(properties.fontSize=font_size+unit),line_height&&(properties.lineHeight=line_height+unit),letter_spacing&&(properties.letterSpacing=letter_spacing+unit),word_spacing&&(properties.wordSpacing=word_spacing+unit),text_align&&(properties.textAlign=text_align),text_transform&&(properties.textTransform=text_transform),text_decoration&&(properties.textDecoration=text_decoration),text_color&&(properties.color=text_color),$preview.removeAttr("style"),custom_style&&$preview.attr("style",custom_style),$preview.css(properties)}),100)),$preview_block.on("click",(function(){$preview.toggleClass("spftestimonial--black-background");var $toggle=$preview_block.find(".spftestimonial--toggle");$toggle.hasClass("fa-toggle-off")?$toggle.removeClass("fa-toggle-off").addClass("fa-toggle-on"):$toggle.removeClass("fa-toggle-on").addClass("fa-toggle-off")})),$preview_block.hasClass("hidden")||$this.trigger("change")}},base.init()}))},$.fn.spftestimonial_field_upload=function(){return this.each((function(){var $this=$(this),$input=$this.find("input"),$upload_button=$this.find(".spftestimonial--button"),$remove_button=$this.find(".spftestimonial--remove"),$library=$upload_button.data("library")&&$upload_button.data("library").split(",")||"",wp_media_frame;$input.on("change",(function(e){$input.val()?$remove_button.removeClass("hidden"):$remove_button.addClass("hidden")})),$upload_button.on("click",(function(e){e.preventDefault(),void 0!==window.wp&&window.wp.media&&window.wp.media.gallery&&(wp_media_frame?wp_media_frame.open():((wp_media_frame=window.wp.media({library:{type:$library}})).on("select",(function(){var attributes=wp_media_frame.state().get("selection").first().attributes;$library.length&&-1===$library.indexOf(attributes.subtype)&&-1===$library.indexOf(attributes.type)||$input.val(attributes.url).trigger("change")})),wp_media_frame.open()))})),$remove_button.on("click",(function(e){e.preventDefault(),$input.val("").trigger("change")}))}))},$.fn.spftestimonial_field_wp_editor=function(){return this.each((function(){if(void 0!==window.wp.editor&&void 0!==window.tinyMCEPreInit&&void 0!==window.tinyMCEPreInit.mceInit.spftestimonial_wp_editor){var $this=$(this),$editor=$this.find(".spftestimonial-wp-editor"),$textarea=$this.find("textarea"),$has_wp_editor;($this.find(".wp-editor-wrap").length||$this.find(".mce-container").length)&&($editor.empty(),$editor.append($textarea),$textarea.css("display",""));var uid=SPFTESTIMONIAL.helper.uid("spftestimonial-editor-");$textarea.attr("id",uid);var default_editor_settings={tinymce:window.tinyMCEPreInit.mceInit.spftestimonial_wp_editor,quicktags:window.tinyMCEPreInit.qtInit.spftestimonial_wp_editor},field_editor_settings=$editor.data("editor-settings"),editor_on_change=function(editor){editor.on("change",SPFTESTIMONIAL.helper.debounce((function(){editor.save(),$textarea.trigger("change")}),250))},wpEditor=wp.oldEditor?wp.oldEditor:wp.editor;wpEditor&&wpEditor.hasOwnProperty("autop")&&(wp.editor.autop=wpEditor.autop,wp.editor.removep=wpEditor.removep,wp.editor.initialize=wpEditor.initialize),default_editor_settings.tinymce=$.extend({},default_editor_settings.tinymce,{selector:"#"+uid,setup:editor_on_change}),!1===field_editor_settings.tinymce&&(default_editor_settings.tinymce=!1,$editor.addClass("spftestimonial-no-tinymce")),!1===field_editor_settings.quicktags&&(default_editor_settings.quicktags=!1,$editor.addClass("spftestimonial-no-quicktags"));var interval=setInterval((function(){$this.is(":visible")&&(window.wp.editor.initialize(uid,default_editor_settings),clearInterval(interval))}));if(field_editor_settings.media_buttons&&window.spftestimonial_media_buttons){var $editor_buttons=$editor.find(".wp-media-buttons");if($editor_buttons.length)$editor_buttons.find(".spftestimonial-shortcode-button").data("editor-id",uid);else{var $media_buttons=$(window.spftestimonial_media_buttons);$media_buttons.find(".spftestimonial-shortcode-button").data("editor-id",uid),$editor.prepend($media_buttons)}}}}))},$.fn.spftestimonial_confirm=function(){return this.each((function(){$(this).on("click",(function(e){var confirm_text=$(this).data("confirm")||window.spftestimonial_vars.i18n.confirm,confirm_answer=confirm(confirm_text);if(SPFTESTIMONIAL.vars.is_confirm=!0,!confirm_answer)return e.preventDefault(),SPFTESTIMONIAL.vars.is_confirm=!1,!1}))}))},$.fn.serializeObject=function(){var obj={};return $.each(this.serializeArray(),(function(i,o){var n=o.name,v=o.value;obj[n]=void 0===obj[n]?v:$.isArray(obj[n])?obj[n].concat(v):[obj[n],v]})),obj},$.fn.spftestimonial_save=function(){return this.each((function(){var $this=$(this),$buttons=$(".spftestimonial-save"),$panel=$(".spftestimonial-options"),flooding=!1,timeout;$this.on("click",(function(e){if(!flooding){var $text=$this.data("save"),$value=$this.val();$buttons.attr("value",$text),$this.hasClass("spftestimonial-save-ajax")&&(e.preventDefault(),$panel.addClass("spftestimonial-saving"),$buttons.prop("disabled",!0),window.wp.ajax.post("spftestimonial_"+$panel.data("unique")+"_ajax_save",{data:$("#spftestimonial-form").serializeJSONSPFTESTIMONIAL()}).done((function(response){if($(".spftestimonial-error").remove(),Object.keys(response.errors).length){var error_icon='<i class="spftestimonial-label-error spftestimonial-error">!</i>';$.each(response.errors,(function(key,error_message){var $field=$('[data-depend-id="'+key+'"]'),$link=$("#spftestimonial-tab-link-"+($field.closest(".spftestimonial-section").index()+1)),$tab=$link.closest(".spftestimonial-tab-depth-0");$field.closest(".spftestimonial-fieldset").append('<p class="spftestimonial-text-error spftestimonial-error">'+error_message+"</p>"),$link.find(".spftestimonial-error").length||$link.append(error_icon),$tab.find(".spftestimonial-arrow .spftestimonial-error").length||$tab.find(".spftestimonial-arrow").append(error_icon),console.log(error_message)}))}$panel.removeClass("spftestimonial-saving"),$buttons.prop("disabled",!1).attr("value",$value),flooding=!1,SPFTESTIMONIAL.vars.form_modified=!1,SPFTESTIMONIAL.vars.$form_warning.hide(),clearTimeout(timeout);var $result_success=$(".spftestimonial-form-success");$result_success.empty().append(response.notice).fadeIn("fast",(function(){timeout=setTimeout((function(){$result_success.fadeOut("fast")}),1e3)}))})).fail((function(response){alert(response.error)})))}flooding=!0}))}))},$.fn.spftestimonial_options=function(){return this.each((function(){var $this=$(this),$content=$this.find(".spftestimonial-content"),$form_success=$this.find(".spftestimonial-form-success"),$form_warning=$this.find(".spftestimonial-form-warning"),$save_button=$this.find(".spftestimonial-header .spftestimonial-save");SPFTESTIMONIAL.vars.$form_warning=$form_warning,$form_warning.length&&(window.onbeforeunload=function(){return!!SPFTESTIMONIAL.vars.form_modified||void 0},$content.on("change keypress",":input",(function(){SPFTESTIMONIAL.vars.form_modified||($form_success.hide(),$form_warning.fadeIn("fast"),SPFTESTIMONIAL.vars.form_modified=!0)}))),$form_success.hasClass("spftestimonial-form-show")&&setTimeout((function(){$form_success.fadeOut("fast")}),1e3),$(document).keydown((function(event){if((event.ctrlKey||event.metaKey)&&83===event.which)return $save_button.trigger("click"),event.preventDefault(),!1}))}))},"function"==typeof Color&&(Color.fn.toString=function(){if(this._alpha<1)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var hex=parseInt(this._color,10).toString(16);if(this.error)return"";if(hex.length<6)for(var i=6-hex.length-1;i>=0;i--)hex="0"+hex;return"#"+hex}),SPFTESTIMONIAL.funcs.parse_color=function(color){var value=color.replace(/\s+/g,""),trans=-1!==value.indexOf("rgba")?parseFloat(100*value.replace(/^.*,(.+)\)/,"$1")):100,rgba;return{value:value,transparent:trans,rgba:trans<100}},$.fn.spftestimonial_color=function(){return this.each((function(){var $input=$(this),picker_color=SPFTESTIMONIAL.funcs.parse_color($input.val()),palette_color=!window.spftestimonial_vars.color_palette.length||window.spftestimonial_vars.color_palette,$container;$input.hasClass("wp-color-picker")&&$input.closest(".wp-picker-container").after($input).remove(),$input.wpColorPicker({palettes:palette_color,change:function(event,ui){var ui_color_value=ui.color.toString();$container.removeClass("spftestimonial--transparent-active"),$container.find(".spftestimonial--transparent-offset").css("background-color",ui_color_value),$input.val(ui_color_value).trigger("change")},create:function(){$container=$input.closest(".wp-picker-container");var a8cIris=$input.data("a8cIris"),$transparent_wrap=$('<div class="spftestimonial--transparent-wrap"><div class="spftestimonial--transparent-slider"></div><div class="spftestimonial--transparent-offset"></div><div class="spftestimonial--transparent-text"></div><div class="spftestimonial--transparent-button">transparent <i class="fa fa-toggle-off"></i></div></div>').appendTo($container.find(".wp-picker-holder")),$transparent_slider=$transparent_wrap.find(".spftestimonial--transparent-slider"),$transparent_text=$transparent_wrap.find(".spftestimonial--transparent-text"),$transparent_offset=$transparent_wrap.find(".spftestimonial--transparent-offset"),$transparent_button=$transparent_wrap.find(".spftestimonial--transparent-button");"transparent"===$input.val()&&$container.addClass("spftestimonial--transparent-active"),$transparent_button.on("click",(function(){"transparent"!==$input.val()?($input.val("transparent").trigger("change").removeClass("iris-error"),$container.addClass("spftestimonial--transparent-active")):($input.val(a8cIris._color.toString()).trigger("change"),$container.removeClass("spftestimonial--transparent-active"))})),$transparent_slider.slider({value:picker_color.transparent,step:1,min:0,max:100,slide:function(event,ui){var slide_value=parseFloat(ui.value/100);a8cIris._color._alpha=slide_value,$input.wpColorPicker("color",a8cIris._color.toString()),$transparent_text.text(1===slide_value||0===slide_value?"":slide_value)},create:function(){var slide_value=parseFloat(picker_color.transparent/100),text_value=slide_value<1?slide_value:"";$transparent_text.text(text_value),$transparent_offset.css("background-color",picker_color.value),$container.on("click",".wp-picker-clear",(function(){a8cIris._color._alpha=1,$transparent_text.text(""),$transparent_slider.slider("option","value",100),$container.removeClass("spftestimonial--transparent-active"),$input.trigger("change")})),$container.on("click",".wp-picker-default",(function(){var default_color=SPFTESTIMONIAL.funcs.parse_color($input.data("default-color")),default_value=parseFloat(default_color.transparent/100),default_text=default_value<1?default_value:"";a8cIris._color._alpha=default_value,$transparent_text.text(default_text),$transparent_slider.slider("option","value",default_color.transparent)}))}})}})}))},$.fn.spftestimonial_chosen=function(){return this.each((function(){var $this=$(this),$inited=$this.parent().find(".chosen-container"),is_sortable=$this.hasClass("spftestimonial-chosen-sortable")||!1,is_ajax=$this.hasClass("spftestimonial-chosen-ajax")||!1,is_multiple=$this.attr("multiple")||!1,set_width=is_multiple?"100%":"auto",set_options=$.extend({allow_single_deselect:!0,disable_search_threshold:10,width:set_width,no_results_text:window.spftestimonial_vars.i18n.no_results_text},$this.data("chosen-settings"));if($inited.length&&$inited.remove(),is_ajax){var set_ajax_options=$.extend({data:{type:"post",nonce:""},allow_single_deselect:!0,disable_search_threshold:-1,width:"100%",min_length:3,type_delay:500,typing_text:window.spftestimonial_vars.i18n.typing_text,searching_text:window.spftestimonial_vars.i18n.searching_text,no_results_text:window.spftestimonial_vars.i18n.no_results_text},$this.data("chosen-settings"));$this.SPFTESTIMONIALAjaxChosen(set_ajax_options)}else $this.chosen(set_options);if(is_multiple){var $hidden_select=$this.parent().find(".spftestimonial-hidden-select"),$hidden_value=$hidden_select.val()||[];$this.on("change",(function(obj,result){result&&result.selected?$hidden_select.append('<option value="'+result.selected+'" selected="selected">'+result.selected+"</option>"):result&&result.deselected&&$hidden_select.find('option[value="'+result.deselected+'"]').remove(),0===$hidden_select.children().length&&void 0!==window.wp.customize&&window.wp.customize.control($hidden_select.data("customize-setting-link")).setting.set(""),$hidden_select.trigger("change")})),$this.SPFTESTIMONIALChosenOrder($hidden_value,!0)}if(is_sortable){var $chosen_container,$chosen_choices=$this.parent().find(".chosen-container").find(".chosen-choices");$chosen_choices.bind("mousedown",(function(event){$(event.target).is("span")&&event.stopPropagation()})),$chosen_choices.sortable({items:"li:not(.search-field)",helper:"orginal",cursor:"move",placeholder:"search-choice-placeholder",start:function(e,ui){ui.placeholder.width(ui.item.innerWidth()),ui.placeholder.height(ui.item.innerHeight())},update:function(e,ui){var select_options="",chosen_object=$this.data("chosen"),$prev_select=$this.parent().find(".spftestimonial-hidden-select");$chosen_choices.find(".search-choice-close").each((function(){var option_array_index=$(this).data("option-array-index");$.each(chosen_object.results_data,(function(index,data){data.array_index===option_array_index&&(select_options+='<option value="'+data.value+'" selected>'+data.value+"</option>")}))})),$prev_select.children().remove(),$prev_select.append(select_options),$prev_select.trigger("change")}})}}))},$.fn.spftestimonial_checkbox=function(){return this.each((function(){var $this=$(this),$input=$this.find(".spftestimonial--input"),$checkbox=$this.find(".spftestimonial--checkbox");$checkbox.on("click",(function(){$input.val(Number($checkbox.prop("checked"))).trigger("change")}))}))},$.fn.spftestimonial_siblings=function(){return this.each((function(){var $this=$(this),$siblings=$this.find(".spftestimonial--sibling"),multiple=$this.data("multiple")||!1;$siblings.on("click",(function(){var $sibling=$(this);multiple?$sibling.hasClass("spftestimonial--active")?($sibling.removeClass("spftestimonial--active"),$sibling.find("input").prop("checked",!1).trigger("change")):($sibling.addClass("spftestimonial--active"),$sibling.find("input").prop("checked",!0).trigger("change")):($this.find("input").prop("checked",!1),$sibling.find("input").prop("checked",!0).trigger("change"),$sibling.addClass("spftestimonial--active").siblings().removeClass("spftestimonial--active"))}))}))},$.fn.spftestimonial_help=function(){return this.each((function(){var $this=$(this),$tooltip,offset_left;$this.on({mouseenter:function(){$tooltip=$('<div class="spftestimonial-tooltip"></div>').html($this.find(".spftestimonial-help-text").html()).appendTo("body"),offset_left=SPFTESTIMONIAL.vars.is_rtl?$this.offset().left-$tooltip.outerWidth():$this.offset().left+24,$tooltip.css({top:$this.offset().top-($tooltip.outerHeight()/2-14),left:offset_left})},mouseleave:function(){void 0!==$tooltip&&$tooltip.remove()}})}))},$.fn.spftestimonial_customizer_refresh=function(){return this.each((function(){var $this=$(this),$complex=$this.closest(".spftestimonial-customize-complex");if($complex.length){var $input=$complex.find(":input"),$unique=$complex.data("unique-id"),$option=$complex.data("option-id"),obj=$input.serializeObjectSPFTESTIMONIAL(),data=$.isEmptyObject(obj)?"":obj[$unique][$option],control=window.wp.customize.control($unique+"["+$option+"]");control.setting._value=null,control.setting.set(data)}else $this.find(":input").first().trigger("change");$(document).trigger("spftestimonial-customizer-refresh",$this)}))},$.fn.spftestimonial_customizer_listen=function(options){var settings=$.extend({closest:!1},options);return this.each((function(){if(void 0!==window.wp.customize){var $this=settings.closest?$(this).closest(".spftestimonial-customize-complex"):$(this),$input=$this.find(":input"),unique_id=$this.data("unique-id"),option_id=$this.data("option-id");void 0!==unique_id&&$input.on("change keyup",SPFTESTIMONIAL.helper.debounce((function(){var obj=$this.find(":input").serializeObjectSPFTESTIMONIAL(),val=!$.isEmptyObject(obj)&&obj[unique_id]&&obj[unique_id][option_id]?obj[unique_id][option_id]:"";window.wp.customize.control(unique_id+"["+option_id+"]").setting.set(val)}),250))}}))},$(document).on("expanded",".control-section",(function(){var $this=$(this);if($this.hasClass("open")&&!$this.data("inited")){var $fields=$this.find(".spftestimonial-customize-field"),$complex=$this.find(".spftestimonial-customize-complex");$fields.length&&($this.spftestimonial_dependency(),$fields.spftestimonial_reload_script({dependency:!1}),$complex.spftestimonial_customizer_listen()),$this.data("inited",!0)}})),SPFTESTIMONIAL.vars.$window.on("resize spftestimonial.resize",SPFTESTIMONIAL.helper.debounce((function(event){var window_width;(navigator.userAgent.indexOf("AppleWebKit/")>-1?SPFTESTIMONIAL.vars.$window.width():window.innerWidth)<=782&&!SPFTESTIMONIAL.vars.onloaded&&($(".spftestimonial-section").spftestimonial_reload_script(),SPFTESTIMONIAL.vars.onloaded=!0)}),200)).trigger("spftestimonial.resize"),$.fn.spftestimonial_widgets=function(){this.length&&($(document).on("widget-added widget-updated",(function(event,$widget){$widget.find(".spftestimonial-fields").spftestimonial_reload_script()})),$(".widgets-sortables, .control-section-sidebar").on("sortstop",(function(event,ui){ui.item.find(".spftestimonial-fields").spftestimonial_reload_script_retry()})),$(document).on("click",".widget-top",(function(event){$(this).parent().find(".spftestimonial-fields").spftestimonial_reload_script()})))},$.fn.spftestimonial_reload_script_retry=function(){return this.each((function(){var $this=$(this);$this.data("inited")&&$this.children(".spftestimonial-field-wp_editor").spftestimonial_field_wp_editor()}))},$.fn.spftestimonial_reload_script=function(options){var settings=$.extend({dependency:!0},options);return this.each((function(){var $this=$(this);$this.data("inited")||($this.children(".spftestimonial-field-accordion:not(.tfree_pro_only)").spftestimonial_field_accordion(),$this.children(".spftestimonial-field-backup").spftestimonial_field_backup(),$this.children(".spftestimonial-field-background").spftestimonial_field_background(),$this.children(".spftestimonial-field-code_editor").spftestimonial_field_code_editor(),$this.children(".spftestimonial-field-date").spftestimonial_field_date(),$this.children(".spftestimonial-field-fieldset").spftestimonial_field_fieldset(),$this.children(".spftestimonial-field-gallery").spftestimonial_field_gallery(),$this.children(".spftestimonial-field-group").spftestimonial_field_group(),$this.children(".spftestimonial-field-media").spftestimonial_field_media(),$this.children(".spftestimonial-field-map").spftestimonial_field_map(),$this.children(".spftestimonial-field-repeater").spftestimonial_field_repeater(),$this.children(".spftestimonial-field-slider").spftestimonial_field_slider(),$this.children(".spftestimonial-field-sortable").spftestimonial_field_sortable(),$this.children(".spftestimonial-field-sorter").spftestimonial_field_sorter(),$this.children(".spftestimonial-field-spinner").spftestimonial_field_spinner(),$this.children(".spftestimonial-field-switcher").spftestimonial_field_switcher(),$this.children(".spftestimonial-field-tabbed").spftestimonial_field_tabbed(),$this.children(".spftestimonial-field-typography").spftestimonial_field_typography(),$this.children(".spftestimonial-field-upload").spftestimonial_field_upload(),$this.children(".spftestimonial-field-wp_editor").spftestimonial_field_wp_editor(),$this.children(".spftestimonial-field-border").find(".spftestimonial-color").spftestimonial_color(),$this.children(".spftestimonial-field-background").find(".spftestimonial-color").spftestimonial_color(),$this.children(".spftestimonial-field-color").find(".spftestimonial-color").spftestimonial_color(),$this.children(".spftestimonial-field-color_group").find(".spftestimonial-color").spftestimonial_color(),$this.children(".spftestimonial-field-link_color").find(".spftestimonial-color").spftestimonial_color(),$this.children(".spftestimonial-field-typography").find(".spftestimonial-color").spftestimonial_color(),$this.children(".spftestimonial-field-select").find(".spftestimonial-chosen").spftestimonial_chosen(),$this.children(".spftestimonial-field-checkbox").find(".spftestimonial-checkbox").spftestimonial_checkbox(),$this.children(".spftestimonial-field-button_set").find(".spftestimonial-siblings").spftestimonial_siblings(),$this.children(".spftestimonial-field-image_select").find(".spftestimonial-siblings").spftestimonial_siblings(),$this.children(".spftestimonial-field-palette").find(".spftestimonial-siblings").spftestimonial_siblings(),$this.children(".spftestimonial-field").find(".spftestimonial-help").spftestimonial_help(),settings.dependency&&$this.spftestimonial_dependency(),$this.data("inited",!0),$(document).trigger("spftestimonial-reload-script",$this))}))},$(document).ready((function(){$(".spftestimonial-save").spftestimonial_save(),$(".spftestimonial-options").spftestimonial_options(),$(".spftestimonial-sticky-header").spftestimonial_sticky(),$(".spftestimonial-nav-options").spftestimonial_nav_options(),$(".spftestimonial-nav-metabox").spftestimonial_nav_metabox(),$(".spftestimonial-page-templates").spftestimonial_page_templates(),$(".spftestimonial-post-formats").spftestimonial_post_formats(),$(".spftestimonial-search").spftestimonial_search(),$(".spftestimonial-confirm").spftestimonial_confirm(),$(".spftestimonial-expand-all").spftestimonial_expand_all(),$(".spftestimonial-onload").spftestimonial_reload_script(),$(".widget").spftestimonial_widgets()})),$("select option:contains((Pro))").attr("disabled",!0).css("opacity","0.8"),$("label:contains((Pro))").css({"pointer-events":"none"}).css("opacity","0.8"),$(".tpro-sc-code").click((function(e){e.preventDefault(),spftestimonial_copyToClipboard($(this)),spftestimonial_SelectText($(this)),$(this).focus().select(),$(".sptpro-after-copy-text").animate({opacity:1,bottom:25},300),setTimeout((function(){jQuery(".sptpro-after-copy-text").animate({opacity:0},200),jQuery(".sptpro-after-copy-text").animate({bottom:0},0)}),2e3)})),$(".sp_tfree_input").click((function(e){var copyText;e.preventDefault(),$(this).select(),document.execCommand("copy"),$(".sptpro-after-copy-text").animate({opacity:1,bottom:25},300),setTimeout((function(){jQuery(".sptpro-after-copy-text").animate({opacity:0},200),jQuery(".sptpro-after-copy-text").animate({bottom:0},0)}),2e3)}));var $export_type=$(".spt_what_export").find("input:checked").val();$(".spt_what_export").on("change",(function(){$export_type=$(this).find("input:checked").val()})),$(".spt_export .spftestimonial--button").click((function(event){event.preventDefault();var $shortcode_ids=$(".spt_post_id select").val(),$selected_testimonials="selected_spt_shortcodes"===$export_type?$shortcode_ids:"all_spt_shortcodes",$ex_nonce=$("#spftestimonial_options_noncesp_testimonial_pro_tools").val();if("all_testimonial"===$export_type)var data={action:"spt_export_shortcodes",lcp_ids:"all_testimonial",nonce:$ex_nonce};else if("all_spt_shortcodes"===$export_type||"selected_spt_shortcodes"===$export_type)var data={action:"spt_export_shortcodes",lcp_ids:$selected_testimonials,nonce:$ex_nonce};else $(".spftestimonial-form-result.spftestimonial-form-success").text("No testimonials selected.").show(),setTimeout((function(){$(".spftestimonial-form-result.spftestimonial-form-success").hide().text("")}),3e3);$.post(ajaxurl,data,(function(resp){if(resp){var json=JSON.stringify(resp);json=[json];var blob=new Blob(json),link=document.createElement("a"),spt_time=$.now();link.href=window.URL.createObjectURL(blob),link.download="testtimonial-free-export-"+spt_time+".json",link.click(),$(".spftestimonial-form-result.spftestimonial-form-success").text("Exported successfully!").show(),setTimeout((function(){$(".spftestimonial-form-result.spftestimonial-form-success").hide().text(""),$(".spt_post_id select").val("").trigger("chosen:updated")}),3e3)}}))})),$(".spt_import button.import").click((function(event){event.preventDefault();var spt_testimonial=$("#import").prop("files")[0];if(""!=$("#import").val()){var $im_nonce=$("#spftestimonial_options_noncesp_testimonial_pro_tools").val(),reader=new FileReader;reader.readAsText(spt_testimonial),reader.onload=function(event){var jsonObj=JSON.stringify(event.target.result);$.ajax({url:ajaxurl,type:"POST",data:{shortcode:jsonObj,action:"spt_import_shortcodes",nonce:$im_nonce},success:function(resp){$(".spftestimonial-form-result.spftestimonial-form-success").text("Imported successfully!").show(),setTimeout((function(){$(".spftestimonial-form-result.spftestimonial-form-success").hide().text(""),$("#import").val(""),"spt_testimonial"===resp.data?window.location.replace($("#spt_testimonial_link_redirect").attr("href")):window.location.replace($("#spt_shortcode_link_redirect").attr("href"))}),2e3)}})}}else $(".spftestimonial-form-result.spftestimonial-form-success").text("No exported json file chosen.").show(),setTimeout((function(){$(".spftestimonial-form-result.spftestimonial-form-success").hide().text("")}),3e3)}))}(jQuery,window,document);
1
+ !function($,window,document,undefined){"use strict";var SPFTESTIMONIAL=SPFTESTIMONIAL||{};function spftestimonial_copyToClipboard(element){var $temp=$("<input class='hidden'>");$("body").append($temp),$temp.val($(element).text()).select(),document.execCommand("copy")}function spftestimonial_SelectText(element){var r=document.createRange(),w=element.get(0);r.selectNodeContents(w);var sel=window.getSelection();sel.removeAllRanges(),sel.addRange(r)}SPFTESTIMONIAL.funcs={},SPFTESTIMONIAL.vars={onloaded:!1,$body:$("body"),$window:$(window),$document:$(document),$form_warning:null,form_modified:!1,code_themes:[],is_rtl:$("body").hasClass("rtl")},SPFTESTIMONIAL.helper={uid:function(prefix){return(prefix||"")+Math.random().toString(36).substr(2,9)},preg_quote:function(str){return(str+"").replace(/(\[|\-|\])/g,"\\$1")},name_nested_replace:function($selector,field_id){var checks=[],regex=new RegExp("("+SPFTESTIMONIAL.helper.preg_quote(field_id)+")\\[(\\d+)\\]","g");$selector.find(":radio").each((function(){(this.checked||this.orginal_checked)&&(this.orginal_checked=!0)})),$selector.each((function(index){$(this).find(":input").each((function(){this.name=this.name.replace(regex,field_id+"["+index+"]"),this.orginal_checked&&(this.checked=!0)}))}))},debounce:function(callback,threshold,immediate){var timeout;return function(){var context=this,args=arguments,later=function(){timeout=null,immediate||callback.apply(context,args)},callNow=immediate&&!timeout;clearTimeout(timeout),timeout=setTimeout(later,threshold),callNow&&callback.apply(context,args)}},get_cookie:function(name){var e,b,cookie=document.cookie,p=name+"=";if(cookie){if(-1===(b=cookie.indexOf("; "+p))){if(0!==(b=cookie.indexOf(p)))return null}else b+=2;return-1===(e=cookie.indexOf(";",b))&&(e=cookie.length),decodeURIComponent(cookie.substring(b+p.length,e))}},set_cookie:function(name,value,expires,path,domain,secure){var d=new Date;"object"==typeof expires&&expires.toGMTString?expires=expires.toGMTString():parseInt(expires,10)?(d.setTime(d.getTime()+1e3*parseInt(expires,10)),expires=d.toGMTString()):expires="",document.cookie=name+"="+encodeURIComponent(value)+(expires?"; expires="+expires:"")+(path?"; path="+path:"")+(domain?"; domain="+domain:"")+(secure?"; secure":"")},remove_cookie:function(name,path,domain,secure){SPFTESTIMONIAL.helper.set_cookie(name,"",-1e3,path,domain,secure)}},$.fn.spftestimonial_clone=function(){for(var base=$.fn.clone.apply(this,arguments),clone=this.find("select").add(this.filter("select")),cloned=base.find("select").add(base.filter("select")),i=0;i<clone.length;++i)for(var j=0;j<clone[i].options.length;++j)!0===clone[i].options[j].selected&&(cloned[i].options[j].selected=!0);return this.find(":radio").each((function(){this.orginal_checked=this.checked})),base},$.fn.spftestimonial_expand_all=function(){return this.each((function(){$(this).on("click",(function(e){e.preventDefault(),$(".spftestimonial-wrapper").toggleClass("spftestimonial-show-all"),$(".spftestimonial-section").spftestimonial_reload_script(),$(this).find(".fa").toggleClass("fa-indent").toggleClass("fa-outdent")}))}))},$.fn.spftestimonial_nav_options=function(){return this.each((function(){var $nav=$(this),$links=$nav.find("a"),$hidden=$nav.closest(".spftestimonial").find(".spftestimonial-section-id"),$last_section;$(window).on("hashchange",(function(){var hash=window.location.hash.match(new RegExp("tab=([^&]*)")),slug=hash?hash[1]:$links.first().attr("href").replace("#tab=",""),$link=$("#spftestimonial-tab-link-"+slug);if($link.length>0){$link.closest(".spftestimonial-tab-depth-0").addClass("spftestimonial-tab-active").siblings().removeClass("spftestimonial-tab-active"),$links.removeClass("spftestimonial-section-active"),$link.addClass("spftestimonial-section-active"),void 0!==$last_section&&$last_section.hide();var $section=$("#spftestimonial-section-"+slug);$section.css({display:"block"}),$section.spftestimonial_reload_script(),$hidden.val(slug),$last_section=$section}})).trigger("hashchange")}))},$.fn.spftestimonial_nav_metabox=function(){return this.each((function(){var $nav=$(this),$links=$nav.find("a"),unique_id=$nav.data("unique"),post_id=$("#post_ID").val()||"global",$last_section,$last_link;$links.on("click",(function(e){e.preventDefault();var $link=$(this),section_id=$link.data("section");void 0!==$last_link&&$last_link.removeClass("spftestimonial-section-active"),void 0!==$last_section&&$last_section.hide(),$link.addClass("spftestimonial-section-active");var $section=$("#spftestimonial-section-"+section_id);$section.css({display:"block"}),$section.spftestimonial_reload_script(),SPFTESTIMONIAL.helper.set_cookie("spftestimonial-last-metabox-tab-"+post_id+"-"+unique_id,section_id),$last_section=$section,$last_link=$link}));var get_cookie=SPFTESTIMONIAL.helper.get_cookie("spftestimonial-last-metabox-tab-"+post_id+"-"+unique_id);get_cookie?$nav.find('a[data-section="'+get_cookie+'"]').trigger("click"):$links.first("a").trigger("click")}))},$.fn.spftestimonial_page_templates=function(){this.length&&$(document).on("change",".editor-page-attributes__template select, #page_template",(function(){var maybe_value=$(this).val()||"default";$(".spftestimonial-page-templates").removeClass("spftestimonial-show").addClass("spftestimonial-hide"),$(".spftestimonial-page-"+maybe_value.toLowerCase().replace(/[^a-zA-Z0-9]+/g,"-")).removeClass("spftestimonial-hide").addClass("spftestimonial-show")}))},$.fn.spftestimonial_post_formats=function(){this.length&&$(document).on("change",'.editor-post-format select, #formatdiv input[name="post_format"]',(function(){var maybe_value=$(this).val()||"default";maybe_value="0"===maybe_value?"default":maybe_value,$(".spftestimonial-post-formats").removeClass("spftestimonial-show").addClass("spftestimonial-hide"),$(".spftestimonial-post-format-"+maybe_value).removeClass("spftestimonial-hide").addClass("spftestimonial-show")}))},$.fn.spftestimonial_search=function(){return this.each((function(){var $this,$input;$(this).find("input").on("change keyup",(function(){var value=$(this).val(),$wrapper=$(".spftestimonial-wrapper"),$section,$fields=$wrapper.find(".spftestimonial-section").find("> .spftestimonial-field:not(.hidden)"),$titles=$fields.find("> .spftestimonial-title, .spftestimonial-search-tags");value.length>3?($fields.addClass("spftestimonial-hidden"),$wrapper.addClass("spftestimonial-search-all"),$titles.each((function(){var $title=$(this);if($title.text().match(new RegExp(".*?"+value+".*?","i"))){var $field=$title.closest(".spftestimonial-field");$field.removeClass("spftestimonial-hidden"),$field.parent().spftestimonial_reload_script()}}))):($fields.removeClass("spftestimonial-hidden"),$wrapper.removeClass("spftestimonial-search-all"))}))}))},$.fn.spftestimonial_sticky=function(){return this.each((function(){var $this=$(this),$window=$(window),$inner=$this.find(".spftestimonial-header-inner"),padding=parseInt($inner.css("padding-left"))+parseInt($inner.css("padding-right")),offset=32,scrollTop=0,lastTop=0,ticking=!1,stickyUpdate=function(){var offsetTop=$this.offset().top,stickyTop=Math.max(32,offsetTop-scrollTop),winWidth=Math.max(document.documentElement.clientWidth,window.innerWidth||0);stickyTop<=32&&winWidth>782?($inner.css({width:$this.outerWidth()-padding}),$this.css({height:$this.outerHeight()}).addClass("spftestimonial-sticky")):($inner.removeAttr("style"),$this.removeAttr("style").removeClass("spftestimonial-sticky"))},requestTick=function(){ticking||requestAnimationFrame((function(){stickyUpdate(),ticking=!1})),ticking=!0},onSticky=function(){scrollTop=$window.scrollTop(),requestTick()};$window.on("scroll resize",onSticky),onSticky()}))},$.fn.spftestimonial_dependency=function(){return this.each((function(){var $this=$(this),ruleset=$.spftestimonial_deps.createRuleset(),depends=[],is_global=!1;$this.children("[data-controller]").each((function(){var $field=$(this),controllers=$field.data("controller").split("|"),conditions=$field.data("condition").split("|"),values=$field.data("value").toString().split("|"),rules=ruleset;$field.data("depend-global")&&(is_global=!0),$.each(controllers,(function(index,depend_id){var value=values[index]||"",condition=conditions[index]||conditions[0];(rules=rules.createRule('[data-depend-id="'+depend_id+'"]',condition,value)).include($field),depends.push(depend_id)}))})),depends.length&&(is_global?$.spftestimonial_deps.enable(SPFTESTIMONIAL.vars.$body,ruleset,depends):$.spftestimonial_deps.enable($this,ruleset,depends))}))},$.fn.spftestimonial_field_accordion=function(){return this.each((function(){var $titles=$(this).find(".spftestimonial-accordion-title");$titles.on("click",(function(){var $title=$(this),$icon=$title.find(".spftestimonial-accordion-icon"),$content=$title.next();$icon.hasClass("fa-angle-right")?$icon.removeClass("fa-angle-right").addClass("fa-angle-down"):$icon.removeClass("fa-angle-down").addClass("fa-angle-right"),$content.data("opened")||($content.spftestimonial_reload_script(),$content.data("opened",!0)),$content.toggleClass("spftestimonial-accordion-open")})),$(this).hasClass("opened_accordion")&&$titles.trigger("click")}))},$.fn.spftestimonial_field_backup=function(){return this.each((function(){if(void 0!==window.wp.customize){var base=this,$this=$(this),$body=$("body"),$import=$this.find(".spftestimonial-import"),$reset=$this.find(".spftestimonial-reset");base.notification=function(message_text){wp.customize.notifications&&wp.customize.OverlayNotification&&(wp.customize.state("saved").get()||(wp.customize.state("changesetStatus").set("trash"),wp.customize.each((function(setting){setting._dirty=!1})),wp.customize.state("saved").set(!0)),wp.customize.notifications.add(new wp.customize.OverlayNotification("spftestimonial_field_backup_notification",{type:"info",message:message_text,loading:!0})))},$reset.on("click",(function(e){e.preventDefault(),SPFTESTIMONIAL.vars.is_confirm&&(base.notification(window.spftestimonial_vars.i18n.reset_notification),window.wp.ajax.post("spftestimonial-reset",{unique:$reset.data("unique"),nonce:$reset.data("nonce")}).done((function(response){window.location.reload(!0)})).fail((function(response){alert(response.error),wp.customize.notifications.remove("spftestimonial_field_backup_notification")})))})),$import.on("click",(function(e){e.preventDefault(),SPFTESTIMONIAL.vars.is_confirm&&(base.notification(window.spftestimonial_vars.i18n.import_notification),window.wp.ajax.post("spftestimonial-import",{unique:$import.data("unique"),nonce:$import.data("nonce"),import_data:$this.find(".spftestimonial-import-data").val()}).done((function(response){window.location.reload(!0)})).fail((function(response){alert(response.error),wp.customize.notifications.remove("spftestimonial_field_backup_notification")})))}))}}))},$.fn.spftestimonial_field_background=function(){return this.each((function(){$(this).find(".spftestimonial--background-image").spftestimonial_reload_script()}))},$.fn.spftestimonial_field_code_editor=function(){return this.each((function(){if("function"==typeof CodeMirror){var $this=$(this),$textarea=$this.find("textarea"),$inited=$this.find(".CodeMirror"),data_editor=$textarea.data("editor");$inited.length&&$inited.remove();var interval=setInterval((function(){if($this.is(":visible")){var code_editor=CodeMirror.fromTextArea($textarea[0],data_editor);if("default"!==data_editor.theme&&-1===SPFTESTIMONIAL.vars.code_themes.indexOf(data_editor.theme)){var $cssLink=$("<link>");$("#spftestimonial-codemirror-css").after($cssLink),$cssLink.attr({rel:"stylesheet",id:"spftestimonial-codemirror-"+data_editor.theme+"-css",href:data_editor.cdnURL+"/theme/"+data_editor.theme+".min.css",type:"text/css",media:"all"}),SPFTESTIMONIAL.vars.code_themes.push(data_editor.theme)}CodeMirror.modeURL=data_editor.cdnURL+"/mode/%N/%N.min.js",CodeMirror.autoLoadMode(code_editor,data_editor.mode),code_editor.on("change",(function(editor,event){$textarea.val(code_editor.getValue()).trigger("change")})),clearInterval(interval)}}))}}))},$.fn.spftestimonial_field_date=function(){return this.each((function(){var $this=$(this),$inputs=$this.find("input"),settings=$this.find(".spftestimonial-date-settings").data("settings"),wrapper='<div class="spftestimonial-datepicker-wrapper"></div>',$datepicker,defaults={showAnim:"",beforeShow:function(input,inst){$(inst.dpDiv).addClass("spftestimonial-datepicker-wrapper")},onClose:function(input,inst){$(inst.dpDiv).removeClass("spftestimonial-datepicker-wrapper")}};settings=$.extend({},settings,defaults),2===$inputs.length&&(settings=$.extend({},settings,{onSelect:function(selectedDate){var $this=$(this),$from=$inputs.first(),option=$inputs.first().attr("id")===$(this).attr("id")?"minDate":"maxDate",date=$.datepicker.parseDate(settings.dateFormat,selectedDate);$inputs.not(this).datepicker("option",option,date)}})),$inputs.each((function(){var $input=$(this);$input.hasClass("hasDatepicker")&&$input.removeAttr("id").removeClass("hasDatepicker"),$input.datepicker(settings)}))}))},$.fn.spftestimonial_field_fieldset=function(){return this.each((function(){$(this).find(".spftestimonial-fieldset-content").spftestimonial_reload_script()}))},$.fn.spftestimonial_field_gallery=function(){return this.each((function(){var $this=$(this),$edit=$this.find(".spftestimonial-edit-gallery"),$clear=$this.find(".spftestimonial-clear-gallery"),$list=$this.find("ul"),$input=$this.find("input"),$img=$this.find("img"),wp_media_frame;$this.on("click",".spftestimonial-button, .spftestimonial-edit-gallery",(function(e){var $el=$(this),ids=$input.val(),what=$el.hasClass("spftestimonial-edit-gallery")?"edit":"add",state="add"!==what||ids.length?"gallery-edit":"gallery";e.preventDefault(),void 0!==window.wp&&window.wp.media&&window.wp.media.gallery&&("gallery"===state?(wp_media_frame=window.wp.media({library:{type:"image"},frame:"post",state:"gallery",multiple:!0})).open():(wp_media_frame=window.wp.media.gallery.edit('[gallery ids="'+ids+'"]'),"add"===what&&wp_media_frame.setState("gallery-library")),wp_media_frame.on("update",(function(selection){$list.empty();var selectedIds=selection.models.map((function(attachment){var item=attachment.toJSON(),thumb=item.sizes&&item.sizes.thumbnail&&item.sizes.thumbnail.url?item.sizes.thumbnail.url:item.url;return $list.append('<li><img src="'+thumb+'"></li>'),item.id}));$input.val(selectedIds.join(",")).trigger("change"),$clear.removeClass("hidden"),$edit.removeClass("hidden")})))})),$clear.on("click",(function(e){e.preventDefault(),$list.empty(),$input.val("").trigger("change"),$clear.addClass("hidden"),$edit.addClass("hidden")}))}))},$.fn.spftestimonial_field_group=function(){return this.each((function(){var $this=$(this),$fieldset=$this.children(".spftestimonial-fieldset"),$group=$fieldset.length?$fieldset:$this,$wrapper=$group.children(".spftestimonial-cloneable-wrapper"),$hidden=$group.children(".spftestimonial-cloneable-hidden"),$max=$group.children(".spftestimonial-cloneable-max"),$min=$group.children(".spftestimonial-cloneable-min"),field_id=$wrapper.data("field-id"),unique_id=$wrapper.data("unique-id"),is_number=Boolean(Number($wrapper.data("title-number"))),max=parseInt($wrapper.data("max")),min=parseInt($wrapper.data("min"));$wrapper.hasClass("ui-accordion")&&$wrapper.find(".ui-accordion-header-icon").remove();var update_title_numbers=function($selector){$selector.find(".spftestimonial-cloneable-title-number").each((function(index){$(this).html($(this).closest(".spftestimonial-cloneable-item").index()+1+".")}))};$wrapper.accordion({header:"> .spftestimonial-cloneable-item > .spftestimonial-cloneable-title",collapsible:!0,active:!1,animate:!1,heightStyle:"content",icons:{header:"spftestimonial-cloneable-header-icon fa fa-angle-right",activeHeader:"spftestimonial-cloneable-header-icon fa fa-angle-down"},activate:function(event,ui){var $panel=ui.newPanel,$header=ui.newHeader;if($panel.length&&!$panel.data("opened")){var $fields,$first=$panel.children().first().find(":input").first(),$title=$header.find(".spftestimonial-cloneable-value");$first.on("keyup",(function(event){$title.text($first.val())})),$panel.spftestimonial_reload_script(),$panel.data("opened",!0),$panel.data("retry",!1)}else $panel.data("retry")&&($panel.spftestimonial_reload_script_retry(),$panel.data("retry",!1))}}),$wrapper.sortable({axis:"y",handle:".spftestimonial-cloneable-title,.spftestimonial-cloneable-sort",helper:"original",cursor:"move",placeholder:"widget-placeholder",start:function(event,ui){$wrapper.accordion({active:!1}),$wrapper.sortable("refreshPositions"),ui.item.children(".spftestimonial-cloneable-content").data("retry",!0)},update:function(event,ui){SPFTESTIMONIAL.helper.name_nested_replace($wrapper.children(".spftestimonial-cloneable-item"),field_id),$wrapper.spftestimonial_customizer_refresh(),is_number&&update_title_numbers($wrapper)}}),$group.children(".spftestimonial-cloneable-add").on("click",(function(e){e.preventDefault();var count=$wrapper.children(".spftestimonial-cloneable-item").length;if($min.hide(),max&&count+1>max)$max.show();else{var new_field_id=unique_id+field_id+"["+count+"]",$cloned_item=$hidden.spftestimonial_clone(!0);$cloned_item.removeClass("spftestimonial-cloneable-hidden"),$cloned_item.find(':input[name!="_pseudo"]').each((function(){this.name=new_field_id+this.name.replace(this.name.startsWith("_nonce")?"_nonce":unique_id,"")})),$cloned_item.find(".spftestimonial-data-wrapper").each((function(){$(this).attr("data-unique-id",new_field_id)})),$wrapper.append($cloned_item),$wrapper.accordion("refresh"),$wrapper.accordion({active:count}),$wrapper.spftestimonial_customizer_refresh(),$wrapper.spftestimonial_customizer_listen({closest:!0}),is_number&&update_title_numbers($wrapper)}}));var event_clone=function(e){e.preventDefault();var count=$wrapper.children(".spftestimonial-cloneable-item").length;if($min.hide(),max&&count+1>max)$max.show();else{var $this,$parent=$(this).parent().parent(),$cloned_helper=$parent.children(".spftestimonial-cloneable-helper").spftestimonial_clone(!0),$cloned_title=$parent.children(".spftestimonial-cloneable-title").spftestimonial_clone(),$cloned_content=$parent.children(".spftestimonial-cloneable-content").spftestimonial_clone(),cloned_regex=new RegExp("("+SPFTESTIMONIAL.helper.preg_quote(field_id)+")\\[(\\d+)\\]","g");$cloned_content.find(".spftestimonial-data-wrapper").each((function(){var $this=$(this);$this.attr("data-unique-id",$this.attr("data-unique-id").replace(cloned_regex,field_id+"["+($parent.index()+1)+"]"))}));var $cloned=$('<div class="spftestimonial-cloneable-item" />');$cloned.append($cloned_helper),$cloned.append($cloned_title),$cloned.append($cloned_content),$wrapper.children().eq($parent.index()).after($cloned),SPFTESTIMONIAL.helper.name_nested_replace($wrapper.children(".spftestimonial-cloneable-item"),field_id),$wrapper.accordion("refresh"),$wrapper.spftestimonial_customizer_refresh(),$wrapper.spftestimonial_customizer_listen({closest:!0}),is_number&&update_title_numbers($wrapper)}};$wrapper.children(".spftestimonial-cloneable-item").children(".spftestimonial-cloneable-helper").on("click",".spftestimonial-cloneable-clone",event_clone),$group.children(".spftestimonial-cloneable-hidden").children(".spftestimonial-cloneable-helper").on("click",".spftestimonial-cloneable-clone",event_clone);var event_remove=function(e){e.preventDefault();var count=$wrapper.children(".spftestimonial-cloneable-item").length;$max.hide(),$min.hide(),min&&count-1<min?$min.show():($(this).closest(".spftestimonial-cloneable-item").remove(),SPFTESTIMONIAL.helper.name_nested_replace($wrapper.children(".spftestimonial-cloneable-item"),field_id),$wrapper.spftestimonial_customizer_refresh(),is_number&&update_title_numbers($wrapper))};$wrapper.children(".spftestimonial-cloneable-item").children(".spftestimonial-cloneable-helper").on("click",".spftestimonial-cloneable-remove",event_remove),$group.children(".spftestimonial-cloneable-hidden").children(".spftestimonial-cloneable-helper").on("click",".spftestimonial-cloneable-remove",event_remove)}))},$.fn.spftestimonial_field_map=function(){return this.each((function(){if("undefined"!=typeof L){var $this=$(this),$map=$this.find(".spftestimonial--map-osm"),$search_input=$this.find(".spftestimonial--map-search input"),$latitude=$this.find(".spftestimonial--latitude"),$longitude=$this.find(".spftestimonial--longitude"),$zoom=$this.find(".spftestimonial--zoom"),map_data=$map.data("map"),mapInit=L.map($map.get(0),map_data);L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(mapInit);var mapMarker=L.marker(map_data.center,{draggable:!0}).addTo(mapInit),update_latlng=function(data){$latitude.val(data.lat),$longitude.val(data.lng),$zoom.val(mapInit.getZoom())};mapInit.on("click",(function(data){mapMarker.setLatLng(data.latlng),update_latlng(data.latlng)})),mapInit.on("zoom",(function(){update_latlng(mapMarker.getLatLng())})),mapMarker.on("drag",(function(){update_latlng(mapMarker.getLatLng())})),$search_input.length||($search_input=$('[data-depend-id="'+$this.find(".spftestimonial--address-field").data("address-field")+'"]')),$search_input.autocomplete({source:function(request,response){$.get("https://nominatim.openstreetmap.org/search",{format:"json",q:request.term},(function(results){results.length?response(results.map((function(item){return{value:item.display_name,label:item.display_name,lat:item.lat,lon:item.lon}}),"json")):response([{value:"no-data",label:"No Results."}])}))},select:function(event,ui){if("no-data"===ui.item.value)return!1;var latLng=L.latLng(ui.item.lat,ui.item.lon);mapInit.panTo(latLng),mapMarker.setLatLng(latLng),update_latlng(latLng)},create:function(event,ui){$(this).autocomplete("widget").addClass("spftestimonial-map-ui-autocomplate")}});var input_update_latlng=function(){var latLng=L.latLng($latitude.val(),$longitude.val());mapInit.panTo(latLng),mapMarker.setLatLng(latLng)};$latitude.on("change",input_update_latlng),$longitude.on("change",input_update_latlng)}}))},$.fn.spftestimonial_field_media=function(){return this.each((function(){var $this=$(this),$upload_button=$this.find(".spftestimonial--button"),$remove_button=$this.find(".spftestimonial--remove"),$library=$upload_button.data("library")&&$upload_button.data("library").split(",")||"",$auto_attributes=!!$this.hasClass("spftestimonial-assign-field-background")&&$this.closest(".spftestimonial-field-background").find(".spftestimonial--auto-attributes"),wp_media_frame;$upload_button.on("click",(function(e){e.preventDefault(),void 0!==window.wp&&window.wp.media&&window.wp.media.gallery&&(wp_media_frame?wp_media_frame.open():((wp_media_frame=window.wp.media({library:{type:$library}})).on("select",(function(){var thumbnail,attributes=wp_media_frame.state().get("selection").first().attributes,preview_size=$upload_button.data("preview-size")||"thumbnail";$library.length&&-1===$library.indexOf(attributes.subtype)&&-1===$library.indexOf(attributes.type)||($this.find(".spftestimonial--id").val(attributes.id),$this.find(".spftestimonial--width").val(attributes.width),$this.find(".spftestimonial--height").val(attributes.height),$this.find(".spftestimonial--alt").val(attributes.alt),$this.find(".spftestimonial--title").val(attributes.title),$this.find(".spftestimonial--description").val(attributes.description),thumbnail=void 0!==attributes.sizes&&void 0!==attributes.sizes.thumbnail&&"thumbnail"===preview_size?attributes.sizes.thumbnail.url:void 0!==attributes.sizes&&void 0!==attributes.sizes.full?attributes.sizes.full.url:attributes.icon,$auto_attributes&&$auto_attributes.removeClass("spftestimonial--attributes-hidden"),$remove_button.removeClass("hidden"),$this.find(".spftestimonial--preview").removeClass("hidden"),$this.find(".spftestimonial--src").attr("src",thumbnail),$this.find(".spftestimonial--thumbnail").val(thumbnail),$this.find(".spftestimonial--url").val(attributes.url).trigger("change"))})),wp_media_frame.open()))})),$remove_button.on("click",(function(e){e.preventDefault(),$auto_attributes&&$auto_attributes.addClass("spftestimonial--attributes-hidden"),$remove_button.addClass("hidden"),$this.find("input").val(""),$this.find(".spftestimonial--preview").addClass("hidden"),$this.find(".spftestimonial--url").trigger("change")}))}))},$.fn.spftestimonial_field_repeater=function(){return this.each((function(){var $this=$(this),$fieldset=$this.children(".spftestimonial-fieldset"),$repeater=$fieldset.length?$fieldset:$this,$wrapper=$repeater.children(".spftestimonial-repeater-wrapper"),$hidden=$repeater.children(".spftestimonial-repeater-hidden"),$max=$repeater.children(".spftestimonial-repeater-max"),$min=$repeater.children(".spftestimonial-repeater-min"),field_id=$wrapper.data("field-id"),unique_id=$wrapper.data("unique-id"),max=parseInt($wrapper.data("max")),min=parseInt($wrapper.data("min"));$wrapper.children(".spftestimonial-repeater-item").children(".spftestimonial-repeater-content").spftestimonial_reload_script(),$wrapper.sortable({axis:"y",handle:".spftestimonial-repeater-sort",helper:"original",cursor:"move",placeholder:"widget-placeholder",update:function(event,ui){SPFTESTIMONIAL.helper.name_nested_replace($wrapper.children(".spftestimonial-repeater-item"),field_id),$wrapper.spftestimonial_customizer_refresh(),ui.item.spftestimonial_reload_script_retry()}}),$repeater.children(".spftestimonial-repeater-add").on("click",(function(e){e.preventDefault();var count=$wrapper.children(".spftestimonial-repeater-item").length;if($min.hide(),max&&count+1>max)$max.show();else{var new_field_id=unique_id+field_id+"["+count+"]",$cloned_item=$hidden.spftestimonial_clone(!0);$cloned_item.removeClass("spftestimonial-repeater-hidden"),$cloned_item.find(':input[name!="_pseudo"]').each((function(){this.name=new_field_id+this.name.replace(this.name.startsWith("_nonce")?"_nonce":unique_id,"")})),$cloned_item.find(".spftestimonial-data-wrapper").each((function(){$(this).attr("data-unique-id",new_field_id)})),$wrapper.append($cloned_item),$cloned_item.children(".spftestimonial-repeater-content").spftestimonial_reload_script(),$wrapper.spftestimonial_customizer_refresh(),$wrapper.spftestimonial_customizer_listen({closest:!0})}}));var event_clone=function(e){e.preventDefault();var count=$wrapper.children(".spftestimonial-repeater-item").length;if($min.hide(),max&&count+1>max)$max.show();else{var $this,$parent=$(this).parent().parent().parent(),$cloned_content=$parent.children(".spftestimonial-repeater-content").spftestimonial_clone(),$cloned_helper=$parent.children(".spftestimonial-repeater-helper").spftestimonial_clone(!0),cloned_regex=new RegExp("("+SPFTESTIMONIAL.helper.preg_quote(field_id)+")\\[(\\d+)\\]","g");$cloned_content.find(".spftestimonial-data-wrapper").each((function(){var $this=$(this);$this.attr("data-unique-id",$this.attr("data-unique-id").replace(cloned_regex,field_id+"["+($parent.index()+1)+"]"))}));var $cloned=$('<div class="spftestimonial-repeater-item" />');$cloned.append($cloned_content),$cloned.append($cloned_helper),$wrapper.children().eq($parent.index()).after($cloned),$cloned.children(".spftestimonial-repeater-content").spftestimonial_reload_script(),SPFTESTIMONIAL.helper.name_nested_replace($wrapper.children(".spftestimonial-repeater-item"),field_id),$wrapper.spftestimonial_customizer_refresh(),$wrapper.spftestimonial_customizer_listen({closest:!0})}};$wrapper.children(".spftestimonial-repeater-item").children(".spftestimonial-repeater-helper").on("click",".spftestimonial-repeater-clone",event_clone),$repeater.children(".spftestimonial-repeater-hidden").children(".spftestimonial-repeater-helper").on("click",".spftestimonial-repeater-clone",event_clone);var event_remove=function(e){e.preventDefault();var count=$wrapper.children(".spftestimonial-repeater-item").length;$max.hide(),$min.hide(),min&&count-1<min?$min.show():($(this).closest(".spftestimonial-repeater-item").remove(),SPFTESTIMONIAL.helper.name_nested_replace($wrapper.children(".spftestimonial-repeater-item"),field_id),$wrapper.spftestimonial_customizer_refresh())};$wrapper.children(".spftestimonial-repeater-item").children(".spftestimonial-repeater-helper").on("click",".spftestimonial-repeater-remove",event_remove),$repeater.children(".spftestimonial-repeater-hidden").children(".spftestimonial-repeater-helper").on("click",".spftestimonial-repeater-remove",event_remove)}))},$.fn.spftestimonial_field_slider=function(){return this.each((function(){var $this=$(this),$input=$this.find("input"),$slider=$this.find(".spftestimonial-slider-ui"),data=$input.data(),value=$input.val()||0;$slider.hasClass("ui-slider")&&$slider.empty(),$slider.slider({range:"min",value:value,min:data.min,max:data.max,step:data.step,slide:function(e,o){$input.val(o.value).trigger("change")}}),$input.keyup((function(){$slider.slider("value",$input.val())}))}))},$.fn.spftestimonial_field_sortable=function(){return this.each((function(){var $sortable=$(this).find(".spftestimonial--sortable");$sortable.sortable({axis:"y",helper:"original",cursor:"move",placeholder:"widget-placeholder",update:function(event,ui){$sortable.spftestimonial_customizer_refresh()}}),$sortable.find(".spftestimonial--sortable-content").spftestimonial_reload_script(),$(".form_fields").find(".spftestimonial--sortable").sortable("disable")}))},$.fn.spftestimonial_field_sorter=function(){return this.each((function(){var $this=$(this),$enabled=$this.find(".spftestimonial-enabled"),$has_disabled=$this.find(".spftestimonial-disabled"),$disabled=!!$has_disabled.length&&$has_disabled;$enabled.sortable({connectWith:$disabled,placeholder:"ui-sortable-placeholder",update:function(event,ui){var $el=ui.item.find("input");ui.item.parent().hasClass("spftestimonial-enabled")?$el.attr("name",$el.attr("name").replace("disabled","enabled")):$el.attr("name",$el.attr("name").replace("enabled","disabled")),$this.spftestimonial_customizer_refresh()}}),$disabled&&$disabled.sortable({connectWith:$enabled,placeholder:"ui-sortable-placeholder",update:function(event,ui){$this.spftestimonial_customizer_refresh()}})}))},$.fn.spftestimonial_field_spinner=function(){return this.each((function(){var $this=$(this),$input=$this.find("input"),$inited=$this.find(".ui-spinner-button"),$unit=$input.data("unit");$inited.length&&$inited.remove(),$input.spinner({max:$input.data("max")||100,min:$input.data("min")||0,step:$input.data("step")||1,create:function(event,ui){$unit.length&&$this.find(".ui-spinner-up").after('<span class="ui-button-text-only spftestimonial--unit">'+$unit+"</span>")},spin:function(event,ui){$input.val(ui.value).trigger("change")}})}))},$.fn.spftestimonial_field_switcher=function(){return this.each((function(){var $switcher=$(this).find(".spftestimonial--switcher");$switcher.on("click",(function(){var value=0,$input=$switcher.find("input");$switcher.hasClass("spftestimonial--active")?$switcher.removeClass("spftestimonial--active"):(value=1,$switcher.addClass("spftestimonial--active")),$input.val(value).trigger("change")}))}))},$.fn.spftestimonial_field_tabbed=function(){return this.each((function(){var $this=$(this),$links=$this.find(".spftestimonial-tabbed-nav a"),$sections=$this.find(".spftestimonial-tabbed-section");$sections.eq(0).spftestimonial_reload_script(),$links.on("click",(function(e){e.preventDefault();var $link=$(this),index=$link.index(),$section=$sections.eq(index);$link.addClass("spftestimonial-tabbed-active").siblings().removeClass("spftestimonial-tabbed-active"),$section.spftestimonial_reload_script(),$section.removeClass("hidden").siblings().addClass("hidden")}))}))},$.fn.spftestimonial_field_typography=function(){return this.each((function(){var base=this,$this=$(this),loaded_fonts=[],webfonts=spftestimonial_typography_json.webfonts,googlestyles=spftestimonial_typography_json.googlestyles,defaultstyles=spftestimonial_typography_json.defaultstyles;base.sanitize_subset=function(subset){return subset=(subset=subset.replace("-ext"," Extended")).charAt(0).toUpperCase()+subset.slice(1)},base.sanitize_style=function(style){return googlestyles[style]?googlestyles[style]:style},base.load_google_font=function(font_family,weight,style){font_family&&"object"==typeof WebFont&&(weight=weight?weight.replace("normal",""):"",style=style?style.replace("normal",""):"",(weight||style)&&(font_family=font_family+":"+weight+style),-1===loaded_fonts.indexOf(font_family)&&WebFont.load({google:{families:[font_family]}}),loaded_fonts.push(font_family))},base.append_select_options=function($select,options,condition,type,is_multi){$select.find("option").not(":first").remove();var opts="";$.each(options,(function(key,value){var selected,name=value;selected=is_multi?condition&&-1!==condition.indexOf(value)?" selected":"":condition&&condition===value?" selected":"","subset"===type?name=base.sanitize_subset(value):"style"===type&&(name=base.sanitize_style(value)),opts+='<option value="'+value+'"'+selected+">"+name+"</option>"})),$select.append(opts).trigger("spftestimonial.change").trigger("chosen:updated")},base.init=function(){var selected_styles=[],$typography=$this.find(".spftestimonial--typography"),$type=$this.find(".spftestimonial--type"),$styles=$this.find(".spftestimonial--block-font-style"),unit=$typography.data("unit"),exclude_fonts=$typography.data("exclude")?$typography.data("exclude").split(","):[],$chosen_selects;$this.find(".spftestimonial--chosen").length&&$this.find("select").each((function(){var $chosen_select=$(this),$chosen_inited=$chosen_select.parent().find(".chosen-container");$chosen_inited.length&&$chosen_inited.remove(),$chosen_select.chosen({allow_single_deselect:!0,disable_search_threshold:15,width:"100%"})}));var $font_family_select=$this.find(".spftestimonial--font-family"),first_font_family=$font_family_select.val();$font_family_select.find("option").not(":first-child").remove();var opts="";$.each(webfonts,(function(type,group){exclude_fonts&&-1!==exclude_fonts.indexOf(type)||(opts+='<optgroup label="'+group.label+'">',$.each(group.fonts,(function(key,value){var selected;opts+='<option value="'+(value="object"==typeof value?key:value)+'" data-type="'+type+'"'+(value===first_font_family?" selected":"")+">"+value+"</option>"})),opts+="</optgroup>")})),$font_family_select.append(opts).trigger("chosen:updated");var $font_style_block=$this.find(".spftestimonial--block-font-style");if($font_style_block.length){var $font_style_select=$this.find(".spftestimonial--font-style-select"),first_style_value=$font_style_select.val()?$font_style_select.val().replace(/normal/g,""):"";$font_style_select.on("change spftestimonial.change",(function(event){var style_value=$font_style_select.val();!style_value&&selected_styles&&-1===selected_styles.indexOf("normal")&&(style_value=selected_styles[0]);var font_normal=style_value&&"italic"!==style_value&&"normal"===style_value?"normal":"",font_weight=style_value&&"italic"!==style_value&&"normal"!==style_value?style_value.replace("italic",""):font_normal,font_style=style_value&&"italic"===style_value.substr(-6)?"italic":"";$this.find(".spftestimonial--font-weight").val(font_weight),$this.find(".spftestimonial--font-style").val(font_style)}));var $extra_font_style_block=$this.find(".spftestimonial--block-extra-styles");if($extra_font_style_block.length)var $extra_font_style_select=$this.find(".spftestimonial--extra-styles"),first_extra_style_value=$extra_font_style_select.val()}var $subset_block=$this.find(".spftestimonial--block-subset");if($subset_block.length)var $subset_select=$this.find(".spftestimonial--subset"),first_subset_select_value=$subset_select.val(),subset_multi_select=$subset_select.data("multiple")||!1;var $backup_font_family_block=$this.find(".spftestimonial--block-backup-font-family");$font_family_select.on("change spftestimonial.change",(function(event){$subset_block.length&&$subset_block.addClass("hidden"),$extra_font_style_block.length&&$extra_font_style_block.addClass("hidden"),$backup_font_family_block.length&&$backup_font_family_block.addClass("hidden");var $selected=$font_family_select.find(":selected"),value=$selected.val(),type=$selected.data("type");if(type&&value){if("google"!==type&&"custom"!==type||!$backup_font_family_block.length||$backup_font_family_block.removeClass("hidden"),$font_style_block.length){var styles=defaultstyles;"google"===type&&webfonts[type].fonts[value][0]?styles=webfonts[type].fonts[value][0]:"custom"===type&&webfonts[type].fonts[value]&&(styles=webfonts[type].fonts[value]),selected_styles=styles;var set_auto_style=-1!==styles.indexOf("normal")?"normal":styles[0],set_style_value=first_style_value&&-1!==styles.indexOf(first_style_value)?first_style_value:set_auto_style;base.append_select_options($font_style_select,styles,set_style_value,"style"),first_style_value=!1,$font_style_block.removeClass("hidden"),"google"===type&&$extra_font_style_block.length&&styles.length>1&&(base.append_select_options($extra_font_style_select,styles,first_extra_style_value,"style",!0),first_extra_style_value=!1,$extra_font_style_block.removeClass("hidden"))}if("google"===type&&$subset_block.length&&webfonts[type].fonts[value][1]){var subsets=webfonts[type].fonts[value][1],set_auto_subset=subsets.length<2&&"latin"!==subsets[0]?subsets[0]:"",set_subset_value=first_subset_select_value&&-1!==subsets.indexOf(first_subset_select_value)?first_subset_select_value:set_auto_subset;set_subset_value=subset_multi_select&&first_subset_select_value?first_subset_select_value:set_subset_value,base.append_select_options($subset_select,subsets,set_subset_value,"subset",subset_multi_select),first_subset_select_value=!1,$subset_block.removeClass("hidden")}}else $styles.find(":input").val(""),$subset_block.length&&($subset_select.find("option").not(":first-child").remove(),$subset_select.trigger("chosen:updated")),$font_style_block.length&&($font_style_select.find("option").not(":first-child").remove(),$font_style_select.trigger("chosen:updated"));$type.val(type)})).trigger("spftestimonial.change");var $preview_block=$this.find(".spftestimonial--block-preview");if($preview_block.length){var $preview=$this.find(".spftestimonial--preview");$this.on("change",SPFTESTIMONIAL.helper.debounce((function(event){$preview_block.removeClass("hidden");var font_family=$font_family_select.val(),font_weight=$this.find(".spftestimonial--font-weight").val(),font_style=$this.find(".spftestimonial--font-style").val(),font_size=$this.find(".spftestimonial--font-size").val(),font_variant=$this.find(".spftestimonial--font-variant").val(),line_height=$this.find(".spftestimonial--line-height").val(),text_align=$this.find(".spftestimonial--text-align").val(),text_transform=$this.find(".spftestimonial--text-transform").val(),text_decoration=$this.find(".spftestimonial--text-decoration").val(),text_color=$this.find(".spftestimonial--color").val(),word_spacing=$this.find(".spftestimonial--word-spacing").val(),letter_spacing=$this.find(".spftestimonial--letter-spacing").val(),custom_style=$this.find(".spftestimonial--custom-style").val(),type;"google"===$this.find(".spftestimonial--type").val()&&base.load_google_font(font_family,font_weight,font_style);var properties={};font_family&&(properties.fontFamily=font_family),font_weight&&(properties.fontWeight=font_weight),font_style&&(properties.fontStyle=font_style),font_variant&&(properties.fontVariant=font_variant),font_size&&(properties.fontSize=font_size+unit),line_height&&(properties.lineHeight=line_height+unit),letter_spacing&&(properties.letterSpacing=letter_spacing+unit),word_spacing&&(properties.wordSpacing=word_spacing+unit),text_align&&(properties.textAlign=text_align),text_transform&&(properties.textTransform=text_transform),text_decoration&&(properties.textDecoration=text_decoration),text_color&&(properties.color=text_color),$preview.removeAttr("style"),custom_style&&$preview.attr("style",custom_style),$preview.css(properties)}),100)),$preview_block.on("click",(function(){$preview.toggleClass("spftestimonial--black-background");var $toggle=$preview_block.find(".spftestimonial--toggle");$toggle.hasClass("fa-toggle-off")?$toggle.removeClass("fa-toggle-off").addClass("fa-toggle-on"):$toggle.removeClass("fa-toggle-on").addClass("fa-toggle-off")})),$preview_block.hasClass("hidden")||$this.trigger("change")}},base.init()}))},$.fn.spftestimonial_field_upload=function(){return this.each((function(){var $this=$(this),$input=$this.find("input"),$upload_button=$this.find(".spftestimonial--button"),$remove_button=$this.find(".spftestimonial--remove"),$library=$upload_button.data("library")&&$upload_button.data("library").split(",")||"",wp_media_frame;$input.on("change",(function(e){$input.val()?$remove_button.removeClass("hidden"):$remove_button.addClass("hidden")})),$upload_button.on("click",(function(e){e.preventDefault(),void 0!==window.wp&&window.wp.media&&window.wp.media.gallery&&(wp_media_frame?wp_media_frame.open():((wp_media_frame=window.wp.media({library:{type:$library}})).on("select",(function(){var attributes=wp_media_frame.state().get("selection").first().attributes;$library.length&&-1===$library.indexOf(attributes.subtype)&&-1===$library.indexOf(attributes.type)||$input.val(attributes.url).trigger("change")})),wp_media_frame.open()))})),$remove_button.on("click",(function(e){e.preventDefault(),$input.val("").trigger("change")}))}))},$.fn.spftestimonial_field_wp_editor=function(){return this.each((function(){if(void 0!==window.wp.editor&&void 0!==window.tinyMCEPreInit&&void 0!==window.tinyMCEPreInit.mceInit.spftestimonial_wp_editor){var $this=$(this),$editor=$this.find(".spftestimonial-wp-editor"),$textarea=$this.find("textarea"),$has_wp_editor;($this.find(".wp-editor-wrap").length||$this.find(".mce-container").length)&&($editor.empty(),$editor.append($textarea),$textarea.css("display",""));var uid=SPFTESTIMONIAL.helper.uid("spftestimonial-editor-");$textarea.attr("id",uid);var default_editor_settings={tinymce:window.tinyMCEPreInit.mceInit.spftestimonial_wp_editor,quicktags:window.tinyMCEPreInit.qtInit.spftestimonial_wp_editor},field_editor_settings=$editor.data("editor-settings"),editor_on_change=function(editor){editor.on("change",SPFTESTIMONIAL.helper.debounce((function(){editor.save(),$textarea.trigger("change")}),250))},wpEditor=wp.oldEditor?wp.oldEditor:wp.editor;wpEditor&&wpEditor.hasOwnProperty("autop")&&(wp.editor.autop=wpEditor.autop,wp.editor.removep=wpEditor.removep,wp.editor.initialize=wpEditor.initialize),default_editor_settings.tinymce=$.extend({},default_editor_settings.tinymce,{selector:"#"+uid,setup:editor_on_change}),!1===field_editor_settings.tinymce&&(default_editor_settings.tinymce=!1,$editor.addClass("spftestimonial-no-tinymce")),!1===field_editor_settings.quicktags&&(default_editor_settings.quicktags=!1,$editor.addClass("spftestimonial-no-quicktags"));var interval=setInterval((function(){$this.is(":visible")&&(window.wp.editor.initialize(uid,default_editor_settings),clearInterval(interval))}));if(field_editor_settings.media_buttons&&window.spftestimonial_media_buttons){var $editor_buttons=$editor.find(".wp-media-buttons");if($editor_buttons.length)$editor_buttons.find(".spftestimonial-shortcode-button").data("editor-id",uid);else{var $media_buttons=$(window.spftestimonial_media_buttons);$media_buttons.find(".spftestimonial-shortcode-button").data("editor-id",uid),$editor.prepend($media_buttons)}}}}))},$.fn.spftestimonial_confirm=function(){return this.each((function(){$(this).on("click",(function(e){var confirm_text=$(this).data("confirm")||window.spftestimonial_vars.i18n.confirm,confirm_answer=confirm(confirm_text);if(SPFTESTIMONIAL.vars.is_confirm=!0,!confirm_answer)return e.preventDefault(),SPFTESTIMONIAL.vars.is_confirm=!1,!1}))}))},$.fn.serializeObject=function(){var obj={};return $.each(this.serializeArray(),(function(i,o){var n=o.name,v=o.value;obj[n]=void 0===obj[n]?v:$.isArray(obj[n])?obj[n].concat(v):[obj[n],v]})),obj},$.fn.spftestimonial_save=function(){return this.each((function(){var $this=$(this),$buttons=$(".spftestimonial-save"),$panel=$(".spftestimonial-options"),flooding=!1,timeout;$this.on("click",(function(e){if(!flooding){var $text=$this.data("save"),$value=$this.val();$buttons.attr("value",$text),$this.hasClass("spftestimonial-save-ajax")&&(e.preventDefault(),$panel.addClass("spftestimonial-saving"),$buttons.prop("disabled",!0),window.wp.ajax.post("spftestimonial_"+$panel.data("unique")+"_ajax_save",{data:$("#spftestimonial-form").serializeJSONSPFTESTIMONIAL()}).done((function(response){if($(".spftestimonial-error").remove(),Object.keys(response.errors).length){var error_icon='<i class="spftestimonial-label-error spftestimonial-error">!</i>';$.each(response.errors,(function(key,error_message){var $field=$('[data-depend-id="'+key+'"]'),$link=$("#spftestimonial-tab-link-"+($field.closest(".spftestimonial-section").index()+1)),$tab=$link.closest(".spftestimonial-tab-depth-0");$field.closest(".spftestimonial-fieldset").append('<p class="spftestimonial-text-error spftestimonial-error">'+error_message+"</p>"),$link.find(".spftestimonial-error").length||$link.append(error_icon),$tab.find(".spftestimonial-arrow .spftestimonial-error").length||$tab.find(".spftestimonial-arrow").append(error_icon),console.log(error_message)}))}$panel.removeClass("spftestimonial-saving"),$buttons.prop("disabled",!1).attr("value",$value),flooding=!1,SPFTESTIMONIAL.vars.form_modified=!1,SPFTESTIMONIAL.vars.$form_warning.hide(),clearTimeout(timeout);var $result_success=$(".spftestimonial-form-success");$result_success.empty().append(response.notice).fadeIn("fast",(function(){timeout=setTimeout((function(){$result_success.fadeOut("fast")}),1e3)}))})).fail((function(response){alert(response.error)})))}flooding=!0}))}))},$.fn.spftestimonial_options=function(){return this.each((function(){var $this=$(this),$content=$this.find(".spftestimonial-content"),$form_success=$this.find(".spftestimonial-form-success"),$form_warning=$this.find(".spftestimonial-form-warning"),$save_button=$this.find(".spftestimonial-header .spftestimonial-save");SPFTESTIMONIAL.vars.$form_warning=$form_warning,$form_warning.length&&(window.onbeforeunload=function(){return!!SPFTESTIMONIAL.vars.form_modified||void 0},$content.on("change keypress",":input",(function(){SPFTESTIMONIAL.vars.form_modified||($form_success.hide(),$form_warning.fadeIn("fast"),SPFTESTIMONIAL.vars.form_modified=!0)}))),$form_success.hasClass("spftestimonial-form-show")&&setTimeout((function(){$form_success.fadeOut("fast")}),1e3),$(document).keydown((function(event){if((event.ctrlKey||event.metaKey)&&83===event.which)return $save_button.trigger("click"),event.preventDefault(),!1}))}))},"function"==typeof Color&&(Color.fn.toString=function(){if(this._alpha<1)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var hex=parseInt(this._color,10).toString(16);if(this.error)return"";if(hex.length<6)for(var i=6-hex.length-1;i>=0;i--)hex="0"+hex;return"#"+hex}),SPFTESTIMONIAL.funcs.parse_color=function(color){var value=color.replace(/\s+/g,""),trans=-1!==value.indexOf("rgba")?parseFloat(100*value.replace(/^.*,(.+)\)/,"$1")):100,rgba;return{value:value,transparent:trans,rgba:trans<100}},$.fn.spftestimonial_color=function(){return this.each((function(){var $input=$(this),picker_color=SPFTESTIMONIAL.funcs.parse_color($input.val()),palette_color=!window.spftestimonial_vars.color_palette.length||window.spftestimonial_vars.color_palette,$container;$input.hasClass("wp-color-picker")&&$input.closest(".wp-picker-container").after($input).remove(),$input.wpColorPicker({palettes:palette_color,change:function(event,ui){var ui_color_value=ui.color.toString();$container.removeClass("spftestimonial--transparent-active"),$container.find(".spftestimonial--transparent-offset").css("background-color",ui_color_value),$input.val(ui_color_value).trigger("change")},create:function(){$container=$input.closest(".wp-picker-container");var a8cIris=$input.data("a8cIris"),$transparent_wrap=$('<div class="spftestimonial--transparent-wrap"><div class="spftestimonial--transparent-slider"></div><div class="spftestimonial--transparent-offset"></div><div class="spftestimonial--transparent-text"></div><div class="spftestimonial--transparent-button">transparent <i class="fa fa-toggle-off"></i></div></div>').appendTo($container.find(".wp-picker-holder")),$transparent_slider=$transparent_wrap.find(".spftestimonial--transparent-slider"),$transparent_text=$transparent_wrap.find(".spftestimonial--transparent-text"),$transparent_offset=$transparent_wrap.find(".spftestimonial--transparent-offset"),$transparent_button=$transparent_wrap.find(".spftestimonial--transparent-button");"transparent"===$input.val()&&$container.addClass("spftestimonial--transparent-active"),$transparent_button.on("click",(function(){"transparent"!==$input.val()?($input.val("transparent").trigger("change").removeClass("iris-error"),$container.addClass("spftestimonial--transparent-active")):($input.val(a8cIris._color.toString()).trigger("change"),$container.removeClass("spftestimonial--transparent-active"))})),$transparent_slider.slider({value:picker_color.transparent,step:1,min:0,max:100,slide:function(event,ui){var slide_value=parseFloat(ui.value/100);a8cIris._color._alpha=slide_value,$input.wpColorPicker("color",a8cIris._color.toString()),$transparent_text.text(1===slide_value||0===slide_value?"":slide_value)},create:function(){var slide_value=parseFloat(picker_color.transparent/100),text_value=slide_value<1?slide_value:"";$transparent_text.text(text_value),$transparent_offset.css("background-color",picker_color.value),$container.on("click",".wp-picker-clear",(function(){a8cIris._color._alpha=1,$transparent_text.text(""),$transparent_slider.slider("option","value",100),$container.removeClass("spftestimonial--transparent-active"),$input.trigger("change")})),$container.on("click",".wp-picker-default",(function(){var default_color=SPFTESTIMONIAL.funcs.parse_color($input.data("default-color")),default_value=parseFloat(default_color.transparent/100),default_text=default_value<1?default_value:"";a8cIris._color._alpha=default_value,$transparent_text.text(default_text),$transparent_slider.slider("option","value",default_color.transparent)}))}})}})}))},$.fn.spftestimonial_chosen=function(){return this.each((function(){var $this=$(this),$inited=$this.parent().find(".chosen-container"),is_sortable=$this.hasClass("spftestimonial-chosen-sortable")||!1,is_ajax=$this.hasClass("spftestimonial-chosen-ajax")||!1,is_multiple=$this.attr("multiple")||!1,set_width=is_multiple?"100%":"auto",set_options=$.extend({allow_single_deselect:!0,disable_search_threshold:10,width:set_width,no_results_text:window.spftestimonial_vars.i18n.no_results_text},$this.data("chosen-settings"));if($inited.length&&$inited.remove(),is_ajax){var set_ajax_options=$.extend({data:{type:"post",nonce:""},allow_single_deselect:!0,disable_search_threshold:-1,width:"100%",min_length:3,type_delay:500,typing_text:window.spftestimonial_vars.i18n.typing_text,searching_text:window.spftestimonial_vars.i18n.searching_text,no_results_text:window.spftestimonial_vars.i18n.no_results_text},$this.data("chosen-settings"));$this.SPFTESTIMONIALAjaxChosen(set_ajax_options)}else $this.chosen(set_options);if(is_multiple){var $hidden_select=$this.parent().find(".spftestimonial-hidden-select"),$hidden_value=$hidden_select.val()||[];$this.on("change",(function(obj,result){result&&result.selected?$hidden_select.append('<option value="'+result.selected+'" selected="selected">'+result.selected+"</option>"):result&&result.deselected&&$hidden_select.find('option[value="'+result.deselected+'"]').remove(),0===$hidden_select.children().length&&void 0!==window.wp.customize&&window.wp.customize.control($hidden_select.data("customize-setting-link")).setting.set(""),$hidden_select.trigger("change")})),$this.SPFTESTIMONIALChosenOrder($hidden_value,!0)}if(is_sortable){var $chosen_container,$chosen_choices=$this.parent().find(".chosen-container").find(".chosen-choices");$chosen_choices.bind("mousedown",(function(event){$(event.target).is("span")&&event.stopPropagation()})),$chosen_choices.sortable({items:"li:not(.search-field)",helper:"orginal",cursor:"move",placeholder:"search-choice-placeholder",start:function(e,ui){ui.placeholder.width(ui.item.innerWidth()),ui.placeholder.height(ui.item.innerHeight())},update:function(e,ui){var select_options="",chosen_object=$this.data("chosen"),$prev_select=$this.parent().find(".spftestimonial-hidden-select");$chosen_choices.find(".search-choice-close").each((function(){var option_array_index=$(this).data("option-array-index");$.each(chosen_object.results_data,(function(index,data){data.array_index===option_array_index&&(select_options+='<option value="'+data.value+'" selected>'+data.value+"</option>")}))})),$prev_select.children().remove(),$prev_select.append(select_options),$prev_select.trigger("change")}})}}))},$.fn.spftestimonial_checkbox=function(){return this.each((function(){var $this=$(this),$input=$this.find(".spftestimonial--input"),$checkbox=$this.find(".spftestimonial--checkbox");$checkbox.on("click",(function(){$input.val(Number($checkbox.prop("checked"))).trigger("change")}))}))},$.fn.spftestimonial_siblings=function(){return this.each((function(){var $this=$(this),$siblings=$this.find(".spftestimonial--sibling"),multiple=$this.data("multiple")||!1;$siblings.on("click",(function(){var $sibling=$(this);multiple?$sibling.hasClass("spftestimonial--active")?($sibling.removeClass("spftestimonial--active"),$sibling.find("input").prop("checked",!1).trigger("change")):($sibling.addClass("spftestimonial--active"),$sibling.find("input").prop("checked",!0).trigger("change")):($this.find("input").prop("checked",!1),$sibling.find("input").prop("checked",!0).trigger("change"),$sibling.addClass("spftestimonial--active").siblings().removeClass("spftestimonial--active"))}))}))},$.fn.spftestimonial_help=function(){return this.each((function(){var $this=$(this),$tooltip,offset_left;$this.on({mouseenter:function(){$tooltip=$('<div class="spftestimonial-tooltip"></div>').html($this.find(".spftestimonial-help-text").html()).appendTo("body"),offset_left=SPFTESTIMONIAL.vars.is_rtl?$this.offset().left-$tooltip.outerWidth():$this.offset().left+24,$tooltip.css({top:$this.offset().top-($tooltip.outerHeight()/2-14),left:offset_left})},mouseleave:function(){void 0!==$tooltip&&$tooltip.remove()}})}))},$.fn.spftestimonial_customizer_refresh=function(){return this.each((function(){var $this=$(this),$complex=$this.closest(".spftestimonial-customize-complex");if($complex.length){var $input=$complex.find(":input"),$unique=$complex.data("unique-id"),$option=$complex.data("option-id"),obj=$input.serializeObjectSPFTESTIMONIAL(),data=$.isEmptyObject(obj)?"":obj[$unique][$option],control=window.wp.customize.control($unique+"["+$option+"]");control.setting._value=null,control.setting.set(data)}else $this.find(":input").first().trigger("change");$(document).trigger("spftestimonial-customizer-refresh",$this)}))},$.fn.spftestimonial_customizer_listen=function(options){var settings=$.extend({closest:!1},options);return this.each((function(){if(void 0!==window.wp.customize){var $this=settings.closest?$(this).closest(".spftestimonial-customize-complex"):$(this),$input=$this.find(":input"),unique_id=$this.data("unique-id"),option_id=$this.data("option-id");void 0!==unique_id&&$input.on("change keyup",SPFTESTIMONIAL.helper.debounce((function(){var obj=$this.find(":input").serializeObjectSPFTESTIMONIAL(),val=!$.isEmptyObject(obj)&&obj[unique_id]&&obj[unique_id][option_id]?obj[unique_id][option_id]:"";window.wp.customize.control(unique_id+"["+option_id+"]").setting.set(val)}),250))}}))},$(document).on("expanded",".control-section",(function(){var $this=$(this);if($this.hasClass("open")&&!$this.data("inited")){var $fields=$this.find(".spftestimonial-customize-field"),$complex=$this.find(".spftestimonial-customize-complex");$fields.length&&($this.spftestimonial_dependency(),$fields.spftestimonial_reload_script({dependency:!1}),$complex.spftestimonial_customizer_listen()),$this.data("inited",!0)}})),SPFTESTIMONIAL.vars.$window.on("resize spftestimonial.resize",SPFTESTIMONIAL.helper.debounce((function(event){var window_width;(navigator.userAgent.indexOf("AppleWebKit/")>-1?SPFTESTIMONIAL.vars.$window.width():window.innerWidth)<=782&&!SPFTESTIMONIAL.vars.onloaded&&($(".spftestimonial-section").spftestimonial_reload_script(),SPFTESTIMONIAL.vars.onloaded=!0)}),200)).trigger("spftestimonial.resize"),$.fn.spftestimonial_widgets=function(){this.length&&($(document).on("widget-added widget-updated",(function(event,$widget){$widget.find(".spftestimonial-fields").spftestimonial_reload_script()})),$(".widgets-sortables, .control-section-sidebar").on("sortstop",(function(event,ui){ui.item.find(".spftestimonial-fields").spftestimonial_reload_script_retry()})),$(document).on("click",".widget-top",(function(event){$(this).parent().find(".spftestimonial-fields").spftestimonial_reload_script()})))},$.fn.spftestimonial_reload_script_retry=function(){return this.each((function(){var $this=$(this);$this.data("inited")&&$this.children(".spftestimonial-field-wp_editor").spftestimonial_field_wp_editor()}))},$.fn.spftestimonial_reload_script=function(options){var settings=$.extend({dependency:!0},options);return this.each((function(){var $this=$(this);$this.data("inited")||($this.children(".spftestimonial-field-accordion:not(.tfree_pro_only)").spftestimonial_field_accordion(),$this.children(".spftestimonial-field-backup").spftestimonial_field_backup(),$this.children(".spftestimonial-field-background").spftestimonial_field_background(),$this.children(".spftestimonial-field-code_editor").spftestimonial_field_code_editor(),$this.children(".spftestimonial-field-date").spftestimonial_field_date(),$this.children(".spftestimonial-field-fieldset").spftestimonial_field_fieldset(),$this.children(".spftestimonial-field-gallery").spftestimonial_field_gallery(),$this.children(".spftestimonial-field-group").spftestimonial_field_group(),$this.children(".spftestimonial-field-media").spftestimonial_field_media(),$this.children(".spftestimonial-field-map").spftestimonial_field_map(),$this.children(".spftestimonial-field-repeater").spftestimonial_field_repeater(),$this.children(".spftestimonial-field-slider").spftestimonial_field_slider(),$this.children(".spftestimonial-field-sortable").spftestimonial_field_sortable(),$this.children(".spftestimonial-field-sorter").spftestimonial_field_sorter(),$this.children(".spftestimonial-field-spinner").spftestimonial_field_spinner(),$this.children(".spftestimonial-field-switcher").spftestimonial_field_switcher(),$this.children(".spftestimonial-field-tabbed").spftestimonial_field_tabbed(),$this.children(".spftestimonial-field-typography").spftestimonial_field_typography(),$this.children(".spftestimonial-field-upload").spftestimonial_field_upload(),$this.children(".spftestimonial-field-wp_editor").spftestimonial_field_wp_editor(),$this.children(".spftestimonial-field-border").find(".spftestimonial-color").spftestimonial_color(),$this.children(".spftestimonial-field-background").find(".spftestimonial-color").spftestimonial_color(),$this.children(".spftestimonial-field-color").find(".spftestimonial-color").spftestimonial_color(),$this.children(".spftestimonial-field-color_group").find(".spftestimonial-color").spftestimonial_color(),$this.children(".spftestimonial-field-link_color").find(".spftestimonial-color").spftestimonial_color(),$this.children(".spftestimonial-field-typography").find(".spftestimonial-color").spftestimonial_color(),$this.children(".spftestimonial-field-select").find(".spftestimonial-chosen").spftestimonial_chosen(),$this.children(".spftestimonial-field-checkbox").find(".spftestimonial-checkbox").spftestimonial_checkbox(),$this.children(".spftestimonial-field-button_set").find(".spftestimonial-siblings").spftestimonial_siblings(),$this.children(".spftestimonial-field-image_select").find(".spftestimonial-siblings").spftestimonial_siblings(),$this.children(".spftestimonial-field-palette").find(".spftestimonial-siblings").spftestimonial_siblings(),$this.children(".spftestimonial-field").find(".spftestimonial-help").spftestimonial_help(),settings.dependency&&$this.spftestimonial_dependency(),$this.data("inited",!0),$(document).trigger("spftestimonial-reload-script",$this))}))},$(document).ready((function(){$(".spftestimonial-save").spftestimonial_save(),$(".spftestimonial-options").spftestimonial_options(),$(".spftestimonial-sticky-header").spftestimonial_sticky(),$(".spftestimonial-nav-options").spftestimonial_nav_options(),$(".spftestimonial-nav-metabox").spftestimonial_nav_metabox(),$(".spftestimonial-page-templates").spftestimonial_page_templates(),$(".spftestimonial-post-formats").spftestimonial_post_formats(),$(".spftestimonial-search").spftestimonial_search(),$(".spftestimonial-confirm").spftestimonial_confirm(),$(".spftestimonial-expand-all").spftestimonial_expand_all(),$(".spftestimonial-onload").spftestimonial_reload_script(),$(".widget").spftestimonial_widgets()})),$("select option:contains((Pro))").attr("disabled",!0).css("opacity","0.8"),$("label:contains((Pro))").css({"pointer-events":"none"}).css("opacity","0.8"),$(".tpro-sc-code").click((function(e){e.preventDefault(),spftestimonial_copyToClipboard($(this)),spftestimonial_SelectText($(this)),$(this).focus().select(),$(".sptpro-after-copy-text").animate({opacity:1,bottom:25},300),setTimeout((function(){jQuery(".sptpro-after-copy-text").animate({opacity:0},200),jQuery(".sptpro-after-copy-text").animate({bottom:0},0)}),2e3)})),$(".sp_tfree_input").click((function(e){var copyText;e.preventDefault(),$(this).select(),document.execCommand("copy"),$(".sptpro-after-copy-text").animate({opacity:1,bottom:25},300),setTimeout((function(){jQuery(".sptpro-after-copy-text").animate({opacity:0},200),jQuery(".sptpro-after-copy-text").animate({bottom:0},0)}),2e3)}));var $export_type=$(".spt_what_export").find("input:checked").val();$(".spt_what_export").on("change",(function(){$export_type=$(this).find("input:checked").val()})),$(".spt_export .spftestimonial--button").click((function(event){event.preventDefault();var $shortcode_ids=$(".spt_post_id select").val(),$selected_testimonials="selected_spt_shortcodes"===$export_type?$shortcode_ids:"all_spt_shortcodes",$ex_nonce=$("#spftestimonial_options_noncesp_testimonial_pro_tools").val();if("all_testimonial"===$export_type)var data={action:"spt_export_shortcodes",lcp_ids:"all_testimonial",nonce:$ex_nonce};else if("all_spt_shortcodes"===$export_type||"selected_spt_shortcodes"===$export_type)var data={action:"spt_export_shortcodes",lcp_ids:$selected_testimonials,nonce:$ex_nonce};else $(".spftestimonial-form-result.spftestimonial-form-success").text("No testimonials selected.").show(),setTimeout((function(){$(".spftestimonial-form-result.spftestimonial-form-success").hide().text("")}),3e3);$.post(ajaxurl,data,(function(resp){if(resp){var json=JSON.stringify(resp);json=[json];var blob=new Blob(json),link=document.createElement("a"),spt_time=$.now();link.href=window.URL.createObjectURL(blob),link.download="testtimonial-free-export-"+spt_time+".json",link.click(),$(".spftestimonial-form-result.spftestimonial-form-success").text("Exported successfully!").show(),setTimeout((function(){$(".spftestimonial-form-result.spftestimonial-form-success").hide().text(""),$(".spt_post_id select").val("").trigger("chosen:updated")}),3e3)}}))})),$(".spt_import button.import").click((function(event){event.preventDefault();var spt_testimonial=$("#import").prop("files")[0];if(""!=$("#import").val()){var $im_nonce=$("#spftestimonial_options_noncesp_testimonial_pro_tools").val(),reader=new FileReader;reader.readAsText(spt_testimonial),reader.onload=function(event){var jsonObj=JSON.stringify(event.target.result);$.ajax({url:ajaxurl,type:"POST",data:{shortcode:jsonObj,action:"spt_import_shortcodes",nonce:$im_nonce},success:function(resp){$(".spftestimonial-form-result.spftestimonial-form-success").text("Imported successfully!").show(),setTimeout((function(){$(".spftestimonial-form-result.spftestimonial-form-success").hide().text(""),$("#import").val(""),"spt_testimonial"===resp.data?window.location.replace($("#spt_testimonial_link_redirect").attr("href")):window.location.replace($("#spt_shortcode_link_redirect").attr("href"))}),2e3)}})}}else $(".spftestimonial-form-result.spftestimonial-form-success").text("No exported json file chosen.").show(),setTimeout((function(){$(".spftestimonial-form-result.spftestimonial-form-success").hide().text("")}),3e3)}));var preview_box=$("#sp_tpro-preview-box"),preview_display=$("#sp_tpro_live_preview").hide();$(document).on("click","#sp_tpro-show-preview:contains(Hide)",(function(e){var _this;e.preventDefault(),$(this).html('<i class="fa fa-eye" aria-hidden="true"></i> Show Preview'),preview_box.html(""),preview_display.hide()})),$(document).on("click","#sp_tpro-show-preview:not(:contains(Hide))",(function(e){e.preventDefault();var _data=$("form#post").serialize(),_this=$(this),data={action:"sp_tpro_preview_meta_box",data:_data,ajax_nonce:$("#spftestimonial_metabox_noncesp_tpro_live_preview").val()};$.ajax({type:"POST",url:ajaxurl,data:data,error:function(response){console.log(response)},success:function(response){preview_display.show(),preview_box.html(response),_this.html('<i class="fa fa-eye-slash" aria-hidden="true"></i> Hide Preview'),$(document).on("keyup change",(function(e){e.preventDefault(),_this.html('<i class="fa fa-refresh" aria-hidden="true"></i> Update Preview')})),$("html, body").animate({scrollTop:preview_display.offset().top-50},"slow"),$(".tfree-preloader").animate({opacity:1},600).hide()}})}))}(jQuery,window,document);
admin/views/framework/classes/metabox.class.php CHANGED
@@ -265,6 +265,8 @@ if ( ! class_exists( 'SPFTESTIMONIAL_Metabox' ) ) {
265
 
266
  global $post;
267
 
 
 
268
  $has_nav = ( count( $this->sections ) > 1 && 'side' !== $this->args['context'] ) ? true : false;
269
  $show_all = ( ! $has_nav ) ? ' spftestimonial-show-all' : '';
270
  $errors = ( is_object( $post ) ) ? get_post_meta( $post->ID, '_spftestimonial_errors', true ) : array();
@@ -281,7 +283,7 @@ if ( ! class_exists( 'SPFTESTIMONIAL_Metabox' ) ) {
281
 
282
  $current_screen = get_current_screen();
283
  $the_current_post_type = $current_screen->post_type;
284
- if ( 'spt_shortcodes' === $the_current_post_type ) { ?>
285
  <div class="sptpro-after-copy-text"><i class="fa fa-check-circle"></i> Shortcode Copied to Clipboard! </div>
286
  <div class="sp-tpro-banner">
287
  <div class="sp-tpro-logo"><img src="<?php echo esc_url( SP_TFREE_URL . 'admin/assets/images/testimonial-logo.svg' ); ?>" alt="Testimonial"></div>
@@ -387,6 +389,8 @@ if ( ! class_exists( 'SPFTESTIMONIAL_Metabox' ) ) {
387
 
388
  echo '</div>';
389
 
 
 
390
  echo '<div class="clear"></div>';
391
 
392
  if ( ! empty( $this->args['show_restore'] ) ) {
265
 
266
  global $post;
267
 
268
+ $shortcode_show = isset( $this->args['sp_tpro_shortcode'] ) ? $this->args['sp_tpro_shortcode'] : true;
269
+
270
  $has_nav = ( count( $this->sections ) > 1 && 'side' !== $this->args['context'] ) ? true : false;
271
  $show_all = ( ! $has_nav ) ? ' spftestimonial-show-all' : '';
272
  $errors = ( is_object( $post ) ) ? get_post_meta( $post->ID, '_spftestimonial_errors', true ) : array();
283
 
284
  $current_screen = get_current_screen();
285
  $the_current_post_type = $current_screen->post_type;
286
+ if ( 'spt_shortcodes' === $the_current_post_type && $shortcode_show ) { ?>
287
  <div class="sptpro-after-copy-text"><i class="fa fa-check-circle"></i> Shortcode Copied to Clipboard! </div>
288
  <div class="sp-tpro-banner">
289
  <div class="sp-tpro-logo"><img src="<?php echo esc_url( SP_TFREE_URL . 'admin/assets/images/testimonial-logo.svg' ); ?>" alt="Testimonial"></div>
389
 
390
  echo '</div>';
391
 
392
+ echo '<a class="btn btn-success" id="sp_tpro-show-preview" data-id="' . $post->ID . '"href=""> <i class="fa fa-eye" aria-hidden="true"></i> Show Preview</a>';
393
+
394
  echo '<div class="clear"></div>';
395
 
396
  if ( ! empty( $this->args['show_restore'] ) ) {
admin/views/framework/classes/setup.class.php CHANGED
@@ -242,6 +242,7 @@ if ( ! class_exists( 'SPFTESTIMONIAL' ) ) {
242
  $dirname = wp_normalize_path( dirname( dirname( __FILE__ ) ) );
243
  $theme_dir = wp_normalize_path( get_parent_theme_file_path() );
244
  $plugin_dir = wp_normalize_path( WP_PLUGIN_DIR );
 
245
  $located_plugin = ( preg_match( '#' . self::sanitize_dirname( $plugin_dir ) . '#', self::sanitize_dirname( $dirname ) ) ) ? true : false;
246
  $directory = ( $located_plugin ) ? $plugin_dir : $theme_dir;
247
  $directory_uri = ( $located_plugin ) ? WP_PLUGIN_URL : get_parent_theme_file_uri();
@@ -572,7 +573,9 @@ if ( ! class_exists( 'SPFTESTIMONIAL' ) ) {
572
 
573
  if ( ! empty( $field['title'] ) ) {
574
  $subtitle = ( ! empty( $field['subtitle'] ) ) ? '<p class="spftestimonial-text-subtitle">' . $field['subtitle'] . '</p>' : '';
575
- echo '<div class="spftestimonial-title"><h4>' . wp_kses_post( $field['title'] ) . '</h4>' . wp_kses_post( $subtitle ) . '</div>';
 
 
576
  }
577
 
578
  echo ( ! empty( $field['title'] ) ) ? '<div class="spftestimonial-fieldset">' : '';
242
  $dirname = wp_normalize_path( dirname( dirname( __FILE__ ) ) );
243
  $theme_dir = wp_normalize_path( get_parent_theme_file_path() );
244
  $plugin_dir = wp_normalize_path( WP_PLUGIN_DIR );
245
+ $plugin_dir = str_replace( '/opt/bitnami', '/bitnami', $plugin_dir );
246
  $located_plugin = ( preg_match( '#' . self::sanitize_dirname( $plugin_dir ) . '#', self::sanitize_dirname( $dirname ) ) ) ? true : false;
247
  $directory = ( $located_plugin ) ? $plugin_dir : $theme_dir;
248
  $directory_uri = ( $located_plugin ) ? WP_PLUGIN_URL : get_parent_theme_file_uri();
573
 
574
  if ( ! empty( $field['title'] ) ) {
575
  $subtitle = ( ! empty( $field['subtitle'] ) ) ? '<p class="spftestimonial-text-subtitle">' . $field['subtitle'] . '</p>' : '';
576
+ $title_help = ( ! empty( $field['title_help'] ) ) ? '<span class="spftestimonial-help spftestimonial-title-help"><span class="spftestimonial-help-text">' . $field['title_help'] . '</span><span class="fa fa-question-circle"></span></span>' : '';
577
+ echo '<div class="spftestimonial-title">
578
+ <h4>' . wp_kses_post( $field['title'] ) . '</h4>' . wp_kses_post( $title_help ) . wp_kses_post( $subtitle ) . '</div>';
579
  }
580
 
581
  echo ( ! empty( $field['title'] ) ) ? '<div class="spftestimonial-fieldset">' : '';
admin/views/framework/fields/preview/preview.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Preview field file.
4
+ *
5
+ * @link http://shapedplugin.com
6
+ * @since 2.0.0
7
+ *
8
+ * @package Testimonial_free
9
+ * @subpackage Testimonial_free/Admin
10
+ */
11
+
12
+ if ( ! defined( 'ABSPATH' ) ) {
13
+ die; } // Cannot access directly.
14
+
15
+ if ( ! class_exists( 'SPFTESTIMONIAL_Field_preview' ) ) {
16
+ /**
17
+ *
18
+ * Field: shortcode
19
+ *
20
+ * @since 1.0.0
21
+ * @version 1.0.0
22
+ */
23
+ class SPFTESTIMONIAL_Field_preview extends SPFTESTIMONIAL_Fields {
24
+
25
+ /**
26
+ * Shortcode field constructor.
27
+ *
28
+ * @param array $field The field type.
29
+ * @param string $value The values of the field.
30
+ * @param string $unique The unique ID for the field.
31
+ * @param string $where To where show the output CSS.
32
+ * @param string $parent The parent args.
33
+ */
34
+ public function __construct( $field, $value = '', $unique = '', $where = '', $parent = '' ) {
35
+ parent::__construct( $field, $value, $unique, $where, $parent );
36
+ }
37
+
38
+ /**
39
+ * Render
40
+ *
41
+ * @return void
42
+ */
43
+ public function render() {
44
+ echo '<div class="sp_tpro-preview-box"><div id="sp_tpro-preview-box"></div></div>';
45
+ }
46
+
47
+ }
48
+ }
admin/views/mce-button.php CHANGED
File without changes
admin/views/scripts.php CHANGED
File without changes
admin/views/testimonial-metaboxs.php CHANGED
@@ -33,6 +33,33 @@ if ( ! function_exists( 'spftestimonial_sanitize_text' ) ) {
33
  //
34
  $prefix_shortcode_opts = 'sp_tpro_shortcode_options';
35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  //
37
  // Testimonial metabox.
38
  //
33
  //
34
  $prefix_shortcode_opts = 'sp_tpro_shortcode_options';
35
 
36
+ /**
37
+ * Preview metabox.
38
+ *
39
+ * @param string $prefix The metabox main Key.
40
+ * @return void
41
+ */
42
+ SPFTESTIMONIAL::createMetabox(
43
+ 'sp_tpro_live_preview',
44
+ array(
45
+ 'title' => __( 'Live Preview', 'testimonial-free' ),
46
+ 'post_type' => 'spt_shortcodes',
47
+ 'show_restore' => false,
48
+ 'sp_tpro_shortcode' => false,
49
+ 'context' => 'normal',
50
+ )
51
+ );
52
+ SPFTESTIMONIAL::createSection(
53
+ 'sp_tpro_live_preview',
54
+ array(
55
+ 'fields' => array(
56
+ array(
57
+ 'type' => 'preview',
58
+ ),
59
+ ),
60
+ )
61
+ );
62
+
63
  //
64
  // Testimonial metabox.
65
  //
admin/views/testimonial-settings.php CHANGED
@@ -58,11 +58,11 @@ SPFTESTIMONIAL::createSection(
58
  'icon' => 'fa fa-cogs',
59
  'fields' => array(
60
  array(
61
- 'id' => 'testimonial_data_remove',
62
- 'type' => 'checkbox',
63
- 'title' => __( 'Clean up Data on Deletion', 'testimonial-free' ),
64
- 'help' => __( 'Delete all Testimonial data from the database on plugin deletion.', 'testimonial-free' ),
65
- 'default' => false,
66
  ),
67
  array(
68
  'id' => 'tpro_dequeue_google_fonts',
58
  'icon' => 'fa fa-cogs',
59
  'fields' => array(
60
  array(
61
+ 'id' => 'testimonial_data_remove',
62
+ 'type' => 'checkbox',
63
+ 'title' => __( 'Clean up Data on Deletion', 'testimonial-free' ),
64
+ 'title_help' => __( 'Delete all Testimonial data from the database on plugin deletion.', 'testimonial-free' ),
65
+ 'default' => false,
66
  ),
67
  array(
68
  'id' => 'tpro_dequeue_google_fonts',
admin/views/widget.php CHANGED
File without changes
class/router.php CHANGED
File without changes
class/shortcodes.php CHANGED
File without changes
class/testimonial.php CHANGED
File without changes
includes/free/loader.php CHANGED
@@ -22,6 +22,7 @@ class SP_TFREE_Loader {
22
  require_once SP_TFREE_PATH . 'admin/views/widget.php';
23
  require_once SP_TFREE_PATH . 'public/views/shortcoderender.php';
24
  require_once SP_TFREE_PATH . 'public/views/deprecated-shortcodes.php';
 
25
  require_once SP_TFREE_PATH . 'public/views/scripts.php';
26
  }
27
 
22
  require_once SP_TFREE_PATH . 'admin/views/widget.php';
23
  require_once SP_TFREE_PATH . 'public/views/shortcoderender.php';
24
  require_once SP_TFREE_PATH . 'public/views/deprecated-shortcodes.php';
25
+ require_once SP_TFREE_PATH . 'admin/preview/class-testimonial-free-preview.php';
26
  require_once SP_TFREE_PATH . 'public/views/scripts.php';
27
  }
28
 
includes/functions.php CHANGED
File without changes
public/assets/css/style.css CHANGED
@@ -18,6 +18,7 @@ div.sp-testimonial-free-section.slick-initialized {
18
  will-change: transform;
19
  }
20
 
 
21
  .sp-testimonial-free-wrapper h2.sp-testimonial-free-section-title {
22
  margin: 0;
23
  padding: 0;
@@ -42,6 +43,7 @@ div.sp-testimonial-free-section.slick-initialized {
42
  padding: 0;
43
  margin: 0;
44
  }
 
45
  .sp-testimonial-free-section .tfree-client-testimonial {
46
  font-size: 16px;
47
  line-height: 26px;
@@ -52,7 +54,7 @@ div.sp-testimonial-free-section.slick-initialized {
52
  font-style: normal;
53
  margin: 0px 0px 20px 0px;
54
  }
55
- .sp-testimonial-free-section .tfree-client-testimonial p.tfree-testimonial-content {
56
  display: inline;
57
  margin: 0;
58
  padding: 0;
18
  will-change: transform;
19
  }
20
 
21
+ #poststuff .sp-testimonial-free-wrapper h2.sp-testimonial-free-section-title,
22
  .sp-testimonial-free-wrapper h2.sp-testimonial-free-section-title {
23
  margin: 0;
24
  padding: 0;
43
  padding: 0;
44
  margin: 0;
45
  }
46
+ .sp-testimonial-free-section .tfree-client-testimonial p,
47
  .sp-testimonial-free-section .tfree-client-testimonial {
48
  font-size: 16px;
49
  line-height: 26px;
54
  font-style: normal;
55
  margin: 0px 0px 20px 0px;
56
  }
57
+ .sp-testimonial-free-section .tfree-client-testimonial .tfree-testimonial-content {
58
  display: inline;
59
  margin: 0;
60
  padding: 0;
public/assets/css/style.min.css CHANGED
@@ -1 +1 @@
1
- div.sp-testimonial-free-section{display:none}div.sp-testimonial-free-section .slick-list{margin-right:-24px}div.sp-testimonial-free-section.slick-initialized{display:block}.sp-testimonial-free-section .slick-dots li.slick-active button:focus,.sp-testimonial-free-section .sp-testimonial-free-item:focus{outline:0}.sp-testimonial-free-section .sp-testimonial-free-item{text-align:center;padding-right:24px;will-change:transform}.sp-testimonial-free-wrapper h2.sp-testimonial-free-section-title{margin:0;padding:0;margin-bottom:50px;font-size:25px;line-height:22px;font-weight:600;font-style:normal;text-align:center}.sp-testimonial-free-section .tfree-testimonial-title{margin:0 0 18px 0}.sp-testimonial-free-section .tfree-testimonial-title h3{font-size:20px;line-height:30px;text-transform:none;text-align:center;letter-spacing:normal;font-weight:600;font-style:normal;padding:0;margin:0}.sp-testimonial-free-section .tfree-client-testimonial{font-size:16px;line-height:26px;text-transform:none;text-align:center;letter-spacing:normal;font-weight:400;font-style:normal;margin:0 0 20px 0}.sp-testimonial-free-section .tfree-client-testimonial p.tfree-testimonial-content{display:inline;margin:0;padding:0}.sp-testimonial-free-section .tfree-client-name{font-size:16px;line-height:24px;text-transform:none;text-align:center;letter-spacing:normal;font-weight:700;font-style:normal;margin:0 0 8px 0;padding:0}.sp-testimonial-free-section .tfree-client-rating{margin:0 0 6px 0;text-align:center;line-height:1}.sp-testimonial-free-section .tfree-client-rating i.fa{font-size:19px;margin-right:-1px}.sp-testimonial-free-section .tfree-client-designation{font-size:16px;line-height:24px;text-transform:none;text-align:center;letter-spacing:normal;font-weight:400;font-style:normal}.sp-testimonial-free-section .sp-tfree-client-image{margin:0 0 22px 0}.sp-testimonial-free-section .sp-tfree-client-image img{display:inline-block;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%}.sp-testimonial-free-section .slick-dots{margin:0;margin-top:20px;padding:0;list-style:none;text-align:center}.sp-testimonial-free-section .slick-dots li{display:inline-block;border:0;padding:0;width:13px;height:13px;margin:3px;overflow:hidden}.sp-testimonial-free-section .slick-dots li button{border-radius:50%;text-indent:-999px;width:13px;height:13px;padding:0;border:0;display:block}.sp-testimonial-free-section .slick-next,.sp-testimonial-free-section .slick-prev{top:50%;margin-top:-14px;font-size:20px;line-height:32px;display:block;width:32px;height:32px;padding:0;cursor:pointer;outline:0;position:absolute;text-align:center;z-index:22;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;transition:all .3s ease}.sp-testimonial-free-section .slick-prev{left:0}.sp-testimonial-free-section .slick-next{right:0}.sp-testimonial-free-wrapper{position:relative;overflow:hidden}.tfree-preloader{background-color:#fff;background-repeat:no-repeat;background-position:center center;position:absolute;z-index:90;width:100%;height:100%;text-align:center;top:0;left:0;right:0;border:0}.tfree-preloader img{position:relative;top:50%;display:inline-block;margin-top:-16px}
1
+ div.sp-testimonial-free-section{display:none}div.sp-testimonial-free-section .slick-list{margin-right:-24px}div.sp-testimonial-free-section.slick-initialized{display:block}.sp-testimonial-free-section .slick-dots li.slick-active button:focus,.sp-testimonial-free-section .sp-testimonial-free-item:focus{outline:0}.sp-testimonial-free-section .sp-testimonial-free-item{text-align:center;padding-right:24px;will-change:transform}#poststuff .sp-testimonial-free-wrapper h2.sp-testimonial-free-section-title,.sp-testimonial-free-wrapper h2.sp-testimonial-free-section-title{margin:0;padding:0;margin-bottom:50px;font-size:25px;line-height:22px;font-weight:600;font-style:normal;text-align:center}.sp-testimonial-free-section .tfree-testimonial-title{margin:0 0 18px 0}.sp-testimonial-free-section .tfree-testimonial-title h3{font-size:20px;line-height:30px;text-transform:none;text-align:center;letter-spacing:normal;font-weight:600;font-style:normal;padding:0;margin:0}.sp-testimonial-free-section .tfree-client-testimonial,.sp-testimonial-free-section .tfree-client-testimonial p{font-size:16px;line-height:26px;text-transform:none;text-align:center;letter-spacing:normal;font-weight:400;font-style:normal;margin:0 0 20px 0}.sp-testimonial-free-section .tfree-client-testimonial .tfree-testimonial-content{display:inline;margin:0;padding:0}.sp-testimonial-free-section .tfree-client-name{font-size:16px;line-height:24px;text-transform:none;text-align:center;letter-spacing:normal;font-weight:700;font-style:normal;margin:0 0 8px 0;padding:0}.sp-testimonial-free-section .tfree-client-rating{margin:0 0 6px 0;text-align:center;line-height:1}.sp-testimonial-free-section .tfree-client-rating i.fa{font-size:19px;margin-right:-1px}.sp-testimonial-free-section .tfree-client-designation{font-size:16px;line-height:24px;text-transform:none;text-align:center;letter-spacing:normal;font-weight:400;font-style:normal}.sp-testimonial-free-section .sp-tfree-client-image{margin:0 0 22px 0}.sp-testimonial-free-section .sp-tfree-client-image img{display:inline-block;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%}.sp-testimonial-free-section .slick-dots{margin:0;margin-top:20px;padding:0;list-style:none;text-align:center}.sp-testimonial-free-section .slick-dots li{display:inline-block;border:0;padding:0;width:13px;height:13px;margin:3px;overflow:hidden}.sp-testimonial-free-section .slick-dots li button{border-radius:50%;text-indent:-999px;width:13px;height:13px;padding:0;border:0;display:block}.sp-testimonial-free-section .slick-next,.sp-testimonial-free-section .slick-prev{top:50%;margin-top:-14px;font-size:20px;line-height:32px;display:block;width:32px;height:32px;padding:0;cursor:pointer;outline:0;position:absolute;text-align:center;z-index:22;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;transition:all .3s ease}.sp-testimonial-free-section .slick-prev{left:0}.sp-testimonial-free-section .slick-next{right:0}.sp-testimonial-free-wrapper{position:relative;overflow:hidden}.tfree-preloader{background-color:#fff;background-repeat:no-repeat;background-position:center center;position:absolute;z-index:90;width:100%;height:100%;text-align:center;top:0;left:0;right:0;border:0}.tfree-preloader img{position:relative;top:50%;display:inline-block;margin-top:-16px}
public/assets/js/slick.js ADDED
@@ -0,0 +1,2895 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ _ _ _ _
3
+ ___| (_) ___| | __ (_)___
4
+ / __| | |/ __| |/ / | / __|
5
+ \__ \ | | (__| < _ | \__ \
6
+ |___/_|_|\___|_|\_(_)/ |___/
7
+ |__/
8
+
9
+ Version: 1.6.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 type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',
48
+ nextArrow: '<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="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" data-role="none" role="button" tabindex="0" />').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
+ infinite: true,
65
+ initialSlide: 0,
66
+ lazyLoad: 'ondemand',
67
+ mobileFirst: false,
68
+ pauseOnHover: true,
69
+ pauseOnFocus: true,
70
+ pauseOnDotsHover: false,
71
+ respondTo: 'window',
72
+ responsive: null,
73
+ rows: 1,
74
+ rtl: false,
75
+ slide: '',
76
+ slidesPerRow: 1,
77
+ slidesToShow: 1,
78
+ slidesToScroll: 1,
79
+ speed: 500,
80
+ swipe: true,
81
+ swipeToSlide: false,
82
+ touchMove: true,
83
+ touchThreshold: 5,
84
+ useCSS: true,
85
+ useTransform: true,
86
+ variableWidth: false,
87
+ vertical: false,
88
+ verticalSwiping: false,
89
+ waitForAnimate: true,
90
+ zIndex: 1000
91
+ };
92
+
93
+ _.initials = {
94
+ animating: false,
95
+ dragging: false,
96
+ autoPlayTimer: null,
97
+ currentDirection: 0,
98
+ currentLeft: null,
99
+ currentSlide: 0,
100
+ direction: 1,
101
+ $dots: null,
102
+ listWidth: null,
103
+ listHeight: null,
104
+ loadIndex: 0,
105
+ $nextArrow: null,
106
+ $prevArrow: null,
107
+ slideCount: null,
108
+ slideWidth: null,
109
+ $slideTrack: null,
110
+ $slides: null,
111
+ sliding: false,
112
+ slideOffset: 0,
113
+ swipeLeft: null,
114
+ $list: null,
115
+ touchObject: {},
116
+ transformsEnabled: false,
117
+ unslicked: false
118
+ };
119
+
120
+ $.extend(_, _.initials);
121
+
122
+ _.activeBreakpoint = null;
123
+ _.animType = null;
124
+ _.animProp = null;
125
+ _.breakpoints = [];
126
+ _.breakpointSettings = [];
127
+ _.cssTransitions = false;
128
+ _.focussed = false;
129
+ _.interrupted = false;
130
+ _.hidden = 'hidden';
131
+ _.paused = true;
132
+ _.positionProp = null;
133
+ _.respondTo = null;
134
+ _.rowCount = 1;
135
+ _.shouldClick = true;
136
+ _.$slider = $(element);
137
+ _.$slidesCache = null;
138
+ _.transformType = null;
139
+ _.transitionType = null;
140
+ _.visibilityChange = 'visibilitychange';
141
+ _.windowWidth = 0;
142
+ _.windowTimer = null;
143
+
144
+ dataSettings = $(element).data('slick') || {};
145
+
146
+ _.options = $.extend({}, _.defaults, settings, dataSettings);
147
+
148
+ _.currentSlide = _.options.initialSlide;
149
+
150
+ _.originalSettings = _.options;
151
+
152
+ if (typeof document.mozHidden !== 'undefined') {
153
+ _.hidden = 'mozHidden';
154
+ _.visibilityChange = 'mozvisibilitychange';
155
+ } else if (typeof document.webkitHidden !== 'undefined') {
156
+ _.hidden = 'webkitHidden';
157
+ _.visibilityChange = 'webkitvisibilitychange';
158
+ }
159
+
160
+ _.autoPlay = $.proxy(_.autoPlay, _);
161
+ _.autoPlayClear = $.proxy(_.autoPlayClear, _);
162
+ _.autoPlayIterator = $.proxy(_.autoPlayIterator, _);
163
+ _.changeSlide = $.proxy(_.changeSlide, _);
164
+ _.clickHandler = $.proxy(_.clickHandler, _);
165
+ _.selectHandler = $.proxy(_.selectHandler, _);
166
+ _.setPosition = $.proxy(_.setPosition, _);
167
+ _.swipeHandler = $.proxy(_.swipeHandler, _);
168
+ _.dragHandler = $.proxy(_.dragHandler, _);
169
+ _.keyHandler = $.proxy(_.keyHandler, _);
170
+
171
+ _.instanceUid = instanceUid++;
172
+
173
+ // A simple way to check for HTML strings
174
+ // Strict HTML recognition (must start with <)
175
+ // Extracted from jQuery v1.11 source
176
+ _.htmlExpr = /^(?:\s*(<[\w\W]+>)[^>]*)$/;
177
+
178
+
179
+ _.registerBreakpoints();
180
+ _.init(true);
181
+
182
+ }
183
+
184
+ return Slick;
185
+
186
+ }());
187
+
188
+ Slick.prototype.activateADA = function() {
189
+ var _ = this;
190
+
191
+ _.$slideTrack.find('.slick-active').attr({
192
+ 'aria-hidden': 'false',
193
+ // J.DAY - added tabindex for slide focus
194
+ 'tabindex': '0'
195
+ }).find('a, input, button, select').attr({
196
+ 'tabindex': '0'
197
+ });
198
+
199
+ };
200
+
201
+ Slick.prototype.addSlide = Slick.prototype.slickAdd = function(markup, index, addBefore) {
202
+
203
+ var _ = this;
204
+
205
+ if (typeof(index) === 'boolean') {
206
+ addBefore = index;
207
+ index = null;
208
+ } else if (index < 0 || (index >= _.slideCount)) {
209
+ return false;
210
+ }
211
+
212
+ _.unload();
213
+
214
+ if (typeof(index) === 'number') {
215
+ if (index === 0 && _.$slides.length === 0) {
216
+ $(markup).appendTo(_.$slideTrack);
217
+ } else if (addBefore) {
218
+ $(markup).insertBefore(_.$slides.eq(index));
219
+ } else {
220
+ $(markup).insertAfter(_.$slides.eq(index));
221
+ }
222
+ } else {
223
+ if (addBefore === true) {
224
+ $(markup).prependTo(_.$slideTrack);
225
+ } else {
226
+ $(markup).appendTo(_.$slideTrack);
227
+ }
228
+ }
229
+
230
+ _.$slides = _.$slideTrack.children(this.options.slide);
231
+
232
+ _.$slideTrack.children(this.options.slide).detach();
233
+
234
+ _.$slideTrack.append(_.$slides);
235
+
236
+ _.$slides.each(function(index, element) {
237
+ $(element).attr('data-slick-index', index);
238
+ });
239
+
240
+ _.$slidesCache = _.$slides;
241
+
242
+ _.reinit();
243
+
244
+ };
245
+
246
+ Slick.prototype.animateHeight = function() {
247
+ var _ = this;
248
+ if (_.options.slidesToShow === 1 && _.options.adaptiveHeight === true && _.options.vertical === false) {
249
+ var targetHeight = _.$slides.eq(_.currentSlide).outerHeight(true);
250
+ _.$list.animate({
251
+ height: targetHeight
252
+ }, _.options.speed);
253
+ }
254
+ };
255
+
256
+ Slick.prototype.animateSlide = function(targetLeft, callback) {
257
+
258
+ var animProps = {},
259
+ _ = this;
260
+
261
+ _.animateHeight();
262
+
263
+ if (_.options.rtl === true && _.options.vertical === false) {
264
+ targetLeft = -targetLeft;
265
+ }
266
+ if (_.transformsEnabled === false) {
267
+ if (_.options.vertical === false) {
268
+ _.$slideTrack.animate({
269
+ left: targetLeft
270
+ }, _.options.speed, _.options.easing, callback);
271
+ } else {
272
+ _.$slideTrack.animate({
273
+ top: targetLeft
274
+ }, _.options.speed, _.options.easing, callback);
275
+ }
276
+
277
+ } else {
278
+
279
+ if (_.cssTransitions === false) {
280
+ if (_.options.rtl === true) {
281
+ _.currentLeft = -(_.currentLeft);
282
+ }
283
+ $({
284
+ animStart: _.currentLeft
285
+ }).animate({
286
+ animStart: targetLeft
287
+ }, {
288
+ duration: _.options.speed,
289
+ easing: _.options.easing,
290
+ step: function(now) {
291
+ now = Math.ceil(now);
292
+ if (_.options.vertical === false) {
293
+ animProps[_.animType] = 'translate(' +
294
+ now + 'px, 0px)';
295
+ _.$slideTrack.css(animProps);
296
+ } else {
297
+ animProps[_.animType] = 'translate(0px,' +
298
+ now + 'px)';
299
+ _.$slideTrack.css(animProps);
300
+ }
301
+ },
302
+ complete: function() {
303
+ if (callback) {
304
+ callback.call();
305
+ }
306
+ }
307
+ });
308
+
309
+ } else {
310
+
311
+ _.applyTransition();
312
+ targetLeft = Math.ceil(targetLeft);
313
+
314
+ if (_.options.vertical === false) {
315
+ animProps[_.animType] = 'translate3d(' + targetLeft + 'px, 0px, 0px)';
316
+ } else {
317
+ animProps[_.animType] = 'translate3d(0px,' + targetLeft + 'px, 0px)';
318
+ }
319
+ _.$slideTrack.css(animProps);
320
+
321
+ if (callback) {
322
+ setTimeout(function() {
323
+
324
+ _.disableTransition();
325
+
326
+ callback.call();
327
+ }, _.options.speed);
328
+ }
329
+
330
+ }
331
+
332
+ }
333
+
334
+ };
335
+
336
+ Slick.prototype.getNavTarget = function() {
337
+
338
+ var _ = this,
339
+ asNavFor = _.options.asNavFor;
340
+
341
+ if ( asNavFor && asNavFor !== null ) {
342
+ asNavFor = $(asNavFor).not(_.$slider);
343
+ }
344
+
345
+ return asNavFor;
346
+
347
+ };
348
+
349
+ Slick.prototype.asNavFor = function(index) {
350
+
351
+ var _ = this,
352
+ asNavFor = _.getNavTarget();
353
+
354
+ if ( asNavFor !== null && typeof asNavFor === 'object' ) {
355
+ asNavFor.each(function() {
356
+ var target = $(this).slick('getSlick');
357
+ if(!target.unslicked) {
358
+ target.slideHandler(index, true);
359
+ }
360
+ });
361
+ }
362
+
363
+ };
364
+
365
+ Slick.prototype.applyTransition = function(slide) {
366
+
367
+ var _ = this,
368
+ transition = {};
369
+
370
+ if (_.options.fade === false) {
371
+ transition[_.transitionType] = _.transformType + ' ' + _.options.speed + 'ms ' + _.options.cssEase;
372
+ } else {
373
+ transition[_.transitionType] = 'opacity ' + _.options.speed + 'ms ' + _.options.cssEase;
374
+ }
375
+
376
+ if (_.options.fade === false) {
377
+ _.$slideTrack.css(transition);
378
+ } else {
379
+ _.$slides.eq(slide).css(transition);
380
+ }
381
+
382
+ };
383
+
384
+ Slick.prototype.autoPlay = function() {
385
+
386
+ var _ = this;
387
+
388
+ _.autoPlayClear();
389
+
390
+ if ( _.slideCount > _.options.slidesToShow ) {
391
+ _.autoPlayTimer = setInterval( _.autoPlayIterator, _.options.autoplaySpeed );
392
+ }
393
+
394
+ };
395
+
396
+ Slick.prototype.autoPlayClear = function() {
397
+
398
+ var _ = this;
399
+
400
+ if (_.autoPlayTimer) {
401
+ clearInterval(_.autoPlayTimer);
402
+ }
403
+
404
+ };
405
+
406
+ Slick.prototype.autoPlayIterator = function() {
407
+
408
+ var _ = this,
409
+ slideTo = _.currentSlide + _.options.slidesToScroll;
410
+
411
+ if ( !_.paused && !_.interrupted && !_.focussed ) {
412
+
413
+ if ( _.options.infinite === false ) {
414
+
415
+ if ( _.direction === 1 && ( _.currentSlide + 1 ) === ( _.slideCount - 1 )) {
416
+ _.direction = 0;
417
+ }
418
+
419
+ else if ( _.direction === 0 ) {
420
+
421
+ slideTo = _.currentSlide - _.options.slidesToScroll;
422
+
423
+ if ( _.currentSlide - 1 === 0 ) {
424
+ _.direction = 1;
425
+ }
426
+
427
+ }
428
+
429
+ }
430
+
431
+ _.slideHandler( slideTo );
432
+
433
+ }
434
+
435
+ };
436
+
437
+ Slick.prototype.buildArrows = function() {
438
+
439
+ var _ = this;
440
+
441
+ if (_.options.arrows === true ) {
442
+
443
+ _.$prevArrow = $(_.options.prevArrow).addClass('slick-arrow');
444
+ _.$nextArrow = $(_.options.nextArrow).addClass('slick-arrow');
445
+
446
+ if( _.slideCount > _.options.slidesToShow ) {
447
+
448
+ _.$prevArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');
449
+ _.$nextArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');
450
+
451
+ if (_.htmlExpr.test(_.options.prevArrow)) {
452
+ _.$prevArrow.prependTo(_.options.appendArrows);
453
+ }
454
+
455
+ if (_.htmlExpr.test(_.options.nextArrow)) {
456
+ _.$nextArrow.appendTo(_.options.appendArrows);
457
+ }
458
+
459
+ if (_.options.infinite !== true) {
460
+ _.$prevArrow
461
+ .addClass('slick-disabled')
462
+ .attr('aria-disabled', 'true')
463
+ }
464
+
465
+ } else {
466
+
467
+ _.$prevArrow.add( _.$nextArrow )
468
+
469
+ .addClass('slick-hidden')
470
+ .attr({
471
+ 'aria-disabled': 'true',
472
+ 'tabindex': '-1'
473
+ });
474
+
475
+ }
476
+
477
+ }
478
+
479
+ };
480
+
481
+ Slick.prototype.buildDots = function() {
482
+
483
+ var _ = this,
484
+ i, dot;
485
+
486
+ if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
487
+
488
+ _.$slider.addClass('slick-dotted');
489
+
490
+ dot = $('<ul />').addClass(_.options.dotsClass);
491
+
492
+ for (i = 0; i <= _.getDotCount(); i += 1) {
493
+ dot.append($('<li />').append(_.options.customPaging.call(this, _, i)));
494
+ }
495
+
496
+ _.$dots = dot.appendTo(_.options.appendDots);
497
+
498
+ _.$dots.find('li').first().addClass('slick-active').attr('aria-hidden', 'false');
499
+
500
+ }
501
+
502
+ };
503
+
504
+ Slick.prototype.buildOut = function() {
505
+
506
+ var _ = this;
507
+
508
+ _.$slides =
509
+ _.$slider
510
+ .children( _.options.slide + ':not(.slick-cloned)')
511
+ .addClass('slick-slide');
512
+
513
+ _.slideCount = _.$slides.length;
514
+
515
+ _.$slides.each(function(index, element) {
516
+ $(element)
517
+ .attr('data-slick-index', index)
518
+ .data('originalStyling', $(element).attr('style') || '');
519
+ });
520
+
521
+ _.$slider.addClass('slick-slider');
522
+
523
+ _.$slideTrack = (_.slideCount === 0) ?
524
+ $('<div class="slick-track"/>').appendTo(_.$slider) :
525
+ _.$slides.wrapAll('<div class="slick-track"/>').parent();
526
+
527
+ _.$list = _.$slideTrack.wrap(
528
+ '<div aria-live="polite" class="slick-list"/>').parent();
529
+ _.$slideTrack.css('opacity', 0);
530
+
531
+ if (_.options.centerMode === true || _.options.swipeToSlide === true) {
532
+ _.options.slidesToScroll = 1;
533
+ }
534
+
535
+ $('img[data-lazy]', _.$slider).not('[src]').addClass('slick-loading');
536
+
537
+ _.setupInfinite();
538
+
539
+ _.buildArrows();
540
+
541
+ _.buildDots();
542
+
543
+ _.updateDots();
544
+
545
+
546
+ _.setSlideClasses(typeof _.currentSlide === 'number' ? _.currentSlide : 0);
547
+
548
+ if (_.options.draggable === true) {
549
+ _.$list.addClass('draggable');
550
+ }
551
+
552
+ };
553
+
554
+ Slick.prototype.buildRows = function() {
555
+
556
+ var _ = this, a, b, c, newSlides, numOfSlides, originalSlides,slidesPerSection;
557
+
558
+ newSlides = document.createDocumentFragment();
559
+ originalSlides = _.$slider.children();
560
+
561
+ if(_.options.rows > 1) {
562
+
563
+ slidesPerSection = _.options.slidesPerRow * _.options.rows;
564
+ numOfSlides = Math.ceil(
565
+ originalSlides.length / slidesPerSection
566
+ );
567
+
568
+ for(a = 0; a < numOfSlides; a++){
569
+ var slide = document.createElement('div');
570
+ for(b = 0; b < _.options.rows; b++) {
571
+ var row = document.createElement('div');
572
+ for(c = 0; c < _.options.slidesPerRow; c++) {
573
+ var target = (a * slidesPerSection + ((b * _.options.slidesPerRow) + c));
574
+ if (originalSlides.get(target)) {
575
+ row.appendChild(originalSlides.get(target));
576
+ }
577
+ }
578
+ slide.appendChild(row);
579
+ }
580
+ newSlides.appendChild(slide);
581
+ }
582
+
583
+ _.$slider.empty().append(newSlides);
584
+ _.$slider.children().children().children()
585
+ .css({
586
+ 'width':(100 / _.options.slidesPerRow) + '%',
587
+ 'display': 'inline-block'
588
+ });
589
+
590
+ }
591
+
592
+ };
593
+
594
+ Slick.prototype.checkResponsive = function(initial, forceUpdate) {
595
+
596
+ var _ = this,
597
+ breakpoint, targetBreakpoint, respondToWidth, triggerBreakpoint = false;
598
+ var sliderWidth = _.$slider.width();
599
+ var windowWidth = window.innerWidth || $(window).width();
600
+
601
+ if (_.respondTo === 'window') {
602
+ respondToWidth = windowWidth;
603
+ } else if (_.respondTo === 'slider') {
604
+ respondToWidth = sliderWidth;
605
+ } else if (_.respondTo === 'min') {
606
+ respondToWidth = Math.min(windowWidth, sliderWidth);
607
+ }
608
+
609
+ if ( _.options.responsive &&
610
+ _.options.responsive.length &&
611
+ _.options.responsive !== null) {
612
+
613
+ targetBreakpoint = null;
614
+
615
+ for (breakpoint in _.breakpoints) {
616
+ if (_.breakpoints.hasOwnProperty(breakpoint)) {
617
+ if (_.originalSettings.mobileFirst === false) {
618
+ if (respondToWidth < _.breakpoints[breakpoint]) {
619
+ targetBreakpoint = _.breakpoints[breakpoint];
620
+ }
621
+ } else {
622
+ if (respondToWidth > _.breakpoints[breakpoint]) {
623
+ targetBreakpoint = _.breakpoints[breakpoint];
624
+ }
625
+ }
626
+ }
627
+ }
628
+
629
+ if (targetBreakpoint !== null) {
630
+ if (_.activeBreakpoint !== null) {
631
+ if (targetBreakpoint !== _.activeBreakpoint || forceUpdate) {
632
+ _.activeBreakpoint =
633
+ targetBreakpoint;
634
+ if (_.breakpointSettings[targetBreakpoint] === 'unslick') {
635
+ _.unslick(targetBreakpoint);
636
+ } else {
637
+ _.options = $.extend({}, _.originalSettings,
638
+ _.breakpointSettings[
639
+ targetBreakpoint]);
640
+ if (initial === true) {
641
+ _.currentSlide = _.options.initialSlide;
642
+ }
643
+ _.refresh(initial);
644
+ }
645
+ triggerBreakpoint = targetBreakpoint;
646
+ }
647
+ } else {
648
+ _.activeBreakpoint = targetBreakpoint;
649
+ if (_.breakpointSettings[targetBreakpoint] === 'unslick') {
650
+ _.unslick(targetBreakpoint);
651
+ } else {
652
+ _.options = $.extend({}, _.originalSettings,
653
+ _.breakpointSettings[
654
+ targetBreakpoint]);
655
+ if (initial === true) {
656
+ _.currentSlide = _.options.initialSlide;
657
+ }
658
+ _.refresh(initial);
659
+ }
660
+ triggerBreakpoint = targetBreakpoint;
661
+ }
662
+ } else {
663
+ if (_.activeBreakpoint !== null) {
664
+ _.activeBreakpoint = null;
665
+ _.options = _.originalSettings;
666
+ if (initial === true) {
667
+ _.currentSlide = _.options.initialSlide;
668
+ }
669
+ _.refresh(initial);
670
+ triggerBreakpoint = targetBreakpoint;
671
+ }
672
+ }
673
+
674
+ // only trigger breakpoints during an actual break. not on initialize.
675
+ if( !initial && triggerBreakpoint !== false ) {
676
+ _.$slider.trigger('breakpoint', [_, triggerBreakpoint]);
677
+ }
678
+ }
679
+
680
+ };
681
+
682
+ Slick.prototype.changeSlide = function(event, dontAnimate) {
683
+
684
+ var _ = this,
685
+ $target = $(event.currentTarget),
686
+ indexOffset, slideOffset, unevenOffset;
687
+
688
+ // If target is a link, prevent default action.
689
+ if($target.is('a')) {
690
+ event.preventDefault();
691
+ }
692
+
693
+ // If target is not the <li> element (ie: a child), find the <li>.
694
+ if(!$target.is('li')) {
695
+ $target = $target.closest('li');
696
+ }
697
+
698
+ unevenOffset = (_.slideCount % _.options.slidesToScroll !== 0);
699
+ indexOffset = unevenOffset ? 0 : (_.slideCount - _.currentSlide) % _.options.slidesToScroll;
700
+
701
+ switch (event.data.message) {
702
+
703
+ case 'previous':
704
+ slideOffset = indexOffset === 0 ? _.options.slidesToScroll : _.options.slidesToShow - indexOffset;
705
+ if (_.slideCount > _.options.slidesToShow) {
706
+ _.slideHandler(_.currentSlide - slideOffset, false, dontAnimate);
707
+ }
708
+ break;
709
+
710
+ case 'next':
711
+ slideOffset = indexOffset === 0 ? _.options.slidesToScroll : indexOffset;
712
+ if (_.slideCount > _.options.slidesToShow) {
713
+ _.slideHandler(_.currentSlide + slideOffset, false, dontAnimate);
714
+ }
715
+ break;
716
+
717
+ case 'index':
718
+ var index = event.data.index === 0 ? 0 :
719
+ event.data.index || $target.index() * _.options.slidesToScroll;
720
+
721
+ _.slideHandler(_.checkNavigable(index), false, dontAnimate);
722
+ $target.children().trigger('focus');
723
+ break;
724
+
725
+ default:
726
+ return;
727
+ }
728
+
729
+ };
730
+
731
+ Slick.prototype.checkNavigable = function(index) {
732
+
733
+ var _ = this,
734
+ navigables, prevNavigable;
735
+
736
+ navigables = _.getNavigableIndexes();
737
+ prevNavigable = 0;
738
+ if (index > navigables[navigables.length - 1]) {
739
+ index = navigables[navigables.length - 1];
740
+ } else {
741
+ for (var n in navigables) {
742
+ if (index < navigables[n]) {
743
+ index = prevNavigable;
744
+ break;
745
+ }
746
+ prevNavigable = navigables[n];
747
+ }
748
+ }
749
+
750
+ return index;
751
+ };
752
+
753
+ Slick.prototype.cleanUpEvents = function() {
754
+
755
+ var _ = this;
756
+
757
+ if (_.options.dots && _.$dots !== null) {
758
+
759
+ $('li', _.$dots)
760
+ .off('click.slick', _.changeSlide)
761
+ .off('mouseenter.slick', $.proxy(_.interrupt, _, true))
762
+ .off('mouseleave.slick', $.proxy(_.interrupt, _, false));
763
+
764
+ }
765
+
766
+ _.$slider.off('focus.slick blur.slick');
767
+
768
+ if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
769
+ _.$prevArrow && _.$prevArrow.off('click.slick', _.changeSlide);
770
+ _.$nextArrow && _.$nextArrow.off('click.slick', _.changeSlide);
771
+ }
772
+
773
+ _.$list.off('touchstart.slick mousedown.slick', _.swipeHandler);
774
+ _.$list.off('touchmove.slick mousemove.slick', _.swipeHandler);
775
+ _.$list.off('touchend.slick mouseup.slick', _.swipeHandler);
776
+ _.$list.off('touchcancel.slick mouseleave.slick', _.swipeHandler);
777
+
778
+ _.$list.off('click.slick', _.clickHandler);
779
+
780
+ $(document).off(_.visibilityChange, _.visibility);
781
+
782
+ _.cleanUpSlideEvents();
783
+
784
+ if (_.options.accessibility === true) {
785
+ _.$list.off('keydown.slick', _.keyHandler);
786
+ }
787
+
788
+ if (_.options.focusOnSelect === true) {
789
+ $(_.$slideTrack).children().off('click.slick', _.selectHandler);
790
+ }
791
+
792
+ $(window).off('orientationchange.slick.slick-' + _.instanceUid, _.orientationChange);
793
+
794
+ $(window).off('resize.slick.slick-' + _.instanceUid, _.resize);
795
+
796
+ $('[draggable!=true]', _.$slideTrack).off('dragstart', _.preventDefault);
797
+
798
+ $(window).off('load.slick.slick-' + _.instanceUid, _.setPosition);
799
+ $(document).off('ready.slick.slick-' + _.instanceUid, _.setPosition);
800
+
801
+ };
802
+
803
+ Slick.prototype.cleanUpSlideEvents = function() {
804
+
805
+ var _ = this;
806
+
807
+ _.$list.off('mouseenter.slick', $.proxy(_.interrupt, _, true));
808
+ _.$list.off('mouseleave.slick', $.proxy(_.interrupt, _, false));
809
+
810
+ };
811
+
812
+ Slick.prototype.cleanUpRows = function() {
813
+
814
+ var _ = this, originalSlides;
815
+
816
+ if(_.options.rows > 1) {
817
+ originalSlides = _.$slides.children().children();
818
+ originalSlides.removeAttr('style');
819
+ _.$slider.empty().append(originalSlides);
820
+ }
821
+
822
+ };
823
+
824
+ Slick.prototype.clickHandler = function(event) {
825
+
826
+ var _ = this;
827
+
828
+ if (_.shouldClick === false) {
829
+ event.stopImmediatePropagation();
830
+ event.stopPropagation();
831
+ event.preventDefault();
832
+ }
833
+
834
+ };
835
+
836
+ Slick.prototype.destroy = function(refresh) {
837
+
838
+ var _ = this;
839
+
840
+ _.autoPlayClear();
841
+
842
+ _.touchObject = {};
843
+
844
+ _.cleanUpEvents();
845
+
846
+ $('.slick-cloned', _.$slider).detach();
847
+
848
+ if (_.$dots) {
849
+ _.$dots.remove();
850
+ }
851
+
852
+
853
+ if ( _.$prevArrow && _.$prevArrow.length ) {
854
+
855
+ _.$prevArrow
856
+ .removeClass('slick-disabled slick-arrow slick-hidden')
857
+ .removeAttr('aria-hidden aria-disabled tabindex')
858
+ .css('display','');
859
+
860
+ if ( _.htmlExpr.test( _.options.prevArrow )) {
861
+ _.$prevArrow.remove();
862
+ }
863
+ }
864
+
865
+ if ( _.$nextArrow && _.$nextArrow.length ) {
866
+
867
+ _.$nextArrow
868
+ .removeClass('slick-disabled slick-arrow slick-hidden')
869
+ .removeAttr('aria-hidden aria-disabled tabindex')
870
+ .css('display','');
871
+
872
+ if ( _.htmlExpr.test( _.options.nextArrow )) {
873
+ _.$nextArrow.remove();
874
+ }
875
+
876
+ }
877
+
878
+
879
+ if (_.$slides) {
880
+
881
+ _.$slides
882
+ .removeClass('slick-slide slick-active slick-center slick-visible slick-current')
883
+ .removeAttr('aria-hidden')
884
+ .removeAttr('data-slick-index')
885
+ .each(function(){
886
+ $(this).attr('style', $(this).data('originalStyling'));
887
+ });
888
+
889
+ _.$slideTrack.children(this.options.slide).detach();
890
+
891
+ _.$slideTrack.detach();
892
+
893
+ _.$list.detach();
894
+
895
+ _.$slider.append(_.$slides);
896
+ }
897
+
898
+ _.cleanUpRows();
899
+
900
+ _.$slider.removeClass('slick-slider');
901
+ _.$slider.removeClass('slick-initialized');
902
+ _.$slider.removeClass('slick-dotted');
903
+
904
+ _.unslicked = true;
905
+
906
+ if(!refresh) {
907
+ _.$slider.trigger('destroy', [_]);
908
+ }
909
+
910
+ };
911
+
912
+ Slick.prototype.disableTransition = function(slide) {
913
+
914
+ var _ = this,
915
+ transition = {};
916
+
917
+ transition[_.transitionType] = '';
918
+
919
+ if (_.options.fade === false) {
920
+ _.$slideTrack.css(transition);
921
+ } else {
922
+ _.$slides.eq(slide).css(transition);
923
+ }
924
+
925
+ };
926
+
927
+ Slick.prototype.fadeSlide = function(slideIndex, callback) {
928
+
929
+ var _ = this;
930
+
931
+ if (_.cssTransitions === false) {
932
+
933
+ _.$slides.eq(slideIndex).css({
934
+ zIndex: _.options.zIndex
935
+ });
936
+
937
+ _.$slides.eq(slideIndex).animate({
938
+ opacity: 1
939
+ }, _.options.speed, _.options.easing, callback);
940
+
941
+ } else {
942
+
943
+ _.applyTransition(slideIndex);
944
+
945
+ _.$slides.eq(slideIndex).css({
946
+ opacity: 1,
947
+ zIndex: _.options.zIndex
948
+ });
949
+
950
+ if (callback) {
951
+ setTimeout(function() {
952
+
953
+ _.disableTransition(slideIndex);
954
+
955
+ callback.call();
956
+ }, _.options.speed);
957
+ }
958
+
959
+ }
960
+
961
+ };
962
+
963
+ Slick.prototype.fadeSlideOut = function(slideIndex) {
964
+
965
+ var _ = this;
966
+
967
+ if (_.cssTransitions === false) {
968
+
969
+ _.$slides.eq(slideIndex).animate({
970
+ opacity: 0,
971
+ zIndex: _.options.zIndex - 2
972
+ }, _.options.speed, _.options.easing);
973
+
974
+ } else {
975
+
976
+ _.applyTransition(slideIndex);
977
+
978
+ _.$slides.eq(slideIndex).css({
979
+ opacity: 0,
980
+ zIndex: _.options.zIndex - 2
981
+ });
982
+
983
+ }
984
+
985
+ };
986
+
987
+ Slick.prototype.filterSlides = Slick.prototype.slickFilter = function(filter) {
988
+
989
+ var _ = this;
990
+
991
+ if (filter !== null) {
992
+
993
+ _.$slidesCache = _.$slides;
994
+
995
+ _.unload();
996
+
997
+ _.$slideTrack.children(this.options.slide).detach();
998
+
999
+ _.$slidesCache.filter(filter).appendTo(_.$slideTrack);
1000
+
1001
+ _.reinit();
1002
+
1003
+ }
1004
+
1005
+ };
1006
+
1007
+ Slick.prototype.focusHandler = function() {
1008
+
1009
+ var _ = this;
1010
+
1011
+ _.$slider
1012
+ .off('focus.slick blur.slick')
1013
+ .on('focus.slick blur.slick',
1014
+ '*:not(.slick-arrow)', function(event) {
1015
+
1016
+ event.stopImmediatePropagation();
1017
+ var $sf = $(this);
1018
+
1019
+ setTimeout(function() {
1020
+
1021
+ if( _.options.pauseOnFocus ) {
1022
+ _.focussed = $sf.is(':focus');
1023
+ _.autoPlay();
1024
+ }
1025
+
1026
+ }, 0);
1027
+
1028
+ });
1029
+ };
1030
+
1031
+ Slick.prototype.getCurrent = Slick.prototype.slickCurrentSlide = function() {
1032
+
1033
+ var _ = this;
1034
+ return _.currentSlide;
1035
+
1036
+ };
1037
+
1038
+ Slick.prototype.getDotCount = function() {
1039
+
1040
+ var _ = this;
1041
+
1042
+ var breakPoint = 0;
1043
+ var counter = 0;
1044
+ var pagerQty = 0;
1045
+
1046
+ if (_.options.infinite === true) {
1047
+ while (breakPoint < _.slideCount) {
1048
+ ++pagerQty;
1049
+ breakPoint = counter + _.options.slidesToScroll;
1050
+ counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;
1051
+ }
1052
+ } else if (_.options.centerMode === true) {
1053
+ pagerQty = _.slideCount;
1054
+ } else if(!_.options.asNavFor) {
1055
+ pagerQty = 1 + Math.ceil((_.slideCount - _.options.slidesToShow) / _.options.slidesToScroll);
1056
+ }else {
1057
+ while (breakPoint < _.slideCount) {
1058
+ ++pagerQty;
1059
+ breakPoint = counter + _.options.slidesToScroll;
1060
+ counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;
1061
+ }
1062
+ }
1063
+
1064
+ return pagerQty - 1;
1065
+
1066
+ };
1067
+
1068
+ Slick.prototype.getLeft = function(slideIndex) {
1069
+
1070
+ var _ = this,
1071
+ targetLeft,
1072
+ verticalHeight,
1073
+ verticalOffset = 0,
1074
+ targetSlide;
1075
+
1076
+ _.slideOffset = 0;
1077
+ verticalHeight = _.$slides.first().outerHeight(true);
1078
+
1079
+ if (_.options.infinite === true) {
1080
+ if (_.slideCount > _.options.slidesToShow) {
1081
+ _.slideOffset = (_.slideWidth * _.options.slidesToShow) * -1;
1082
+ verticalOffset = (verticalHeight * _.options.slidesToShow) * -1;
1083
+ }
1084
+ if (_.slideCount % _.options.slidesToScroll !== 0) {
1085
+ if (slideIndex + _.options.slidesToScroll > _.slideCount && _.slideCount > _.options.slidesToShow) {
1086
+ if (slideIndex > _.slideCount) {
1087
+ _.slideOffset = ((_.options.slidesToShow - (slideIndex - _.slideCount)) * _.slideWidth) * -1;
1088
+ verticalOffset = ((_.options.slidesToShow - (slideIndex - _.slideCount)) * verticalHeight) * -1;
1089
+ } else {
1090
+ _.slideOffset = ((_.slideCount % _.options.slidesToScroll) * _.slideWidth) * -1;
1091
+ verticalOffset = ((_.slideCount % _.options.slidesToScroll) * verticalHeight) * -1;
1092
+ }
1093
+ }
1094
+ }
1095
+ } else {
1096
+ if (slideIndex + _.options.slidesToShow > _.slideCount) {
1097
+ _.slideOffset = ((slideIndex + _.options.slidesToShow) - _.slideCount) * _.slideWidth;
1098
+ verticalOffset = ((slideIndex + _.options.slidesToShow) - _.slideCount) * verticalHeight;
1099
+ }
1100
+ }
1101
+
1102
+ if (_.slideCount <= _.options.slidesToShow) {
1103
+ _.slideOffset = 0;
1104
+ verticalOffset = 0;
1105
+ }
1106
+
1107
+ if (_.options.centerMode === true && _.options.infinite === true) {
1108
+ _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2) - _.slideWidth;
1109
+ } else if (_.options.centerMode === true) {
1110
+ _.slideOffset = 0;
1111
+ _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2);
1112
+ }
1113
+
1114
+ if (_.options.vertical === false) {
1115
+ targetLeft = ((slideIndex * _.slideWidth) * -1) + _.slideOffset;
1116
+ } else {
1117
+ targetLeft = ((slideIndex * verticalHeight) * -1) + verticalOffset;
1118
+ }
1119
+
1120
+ if (_.options.variableWidth === true) {
1121
+
1122
+ if (_.slideCount <= _.options.slidesToShow || _.options.infinite === false) {
1123
+ targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex);
1124
+ } else {
1125
+ targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex + _.options.slidesToShow);
1126
+ }
1127
+
1128
+ if (_.options.rtl === true) {
1129
+ if (targetSlide[0]) {
1130
+ targetLeft = (_.$slideTrack.width() - targetSlide[0].offsetLeft - targetSlide.width()) * -1;
1131
+ } else {
1132
+ targetLeft = 0;
1133
+ }
1134
+ } else {
1135
+ targetLeft = targetSlide[0] ? targetSlide[0].offsetLeft * -1 : 0;
1136
+ }
1137
+
1138
+ if (_.options.centerMode === true) {
1139
+ if (_.slideCount <= _.options.slidesToShow || _.options.infinite === false) {
1140
+ targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex);
1141
+ } else {
1142
+ targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex + _.options.slidesToShow + 1);
1143
+ }
1144
+
1145
+ if (_.options.rtl === true) {
1146
+ if (targetSlide[0]) {
1147
+ targetLeft = (_.$slideTrack.width() - targetSlide[0].offsetLeft - targetSlide.width()) * -1;
1148
+ } else {
1149
+ targetLeft = 0;
1150
+ }
1151
+ } else {
1152
+ targetLeft = targetSlide[0] ? targetSlide[0].offsetLeft * -1 : 0;
1153
+ }
1154
+
1155
+ targetLeft += (_.$list.width() - targetSlide.outerWidth()) / 2;
1156
+ }
1157
+ }
1158
+
1159
+ return targetLeft;
1160
+
1161
+ };
1162
+
1163
+ Slick.prototype.getOption = Slick.prototype.slickGetOption = function(option) {
1164
+
1165
+ var _ = this;
1166
+
1167
+ return _.options[option];
1168
+
1169
+ };
1170
+
1171
+ Slick.prototype.getNavigableIndexes = function() {
1172
+
1173
+ var _ = this,
1174
+ breakPoint = 0,
1175
+ counter = 0,
1176
+ indexes = [],
1177
+ max;
1178
+
1179
+ if (_.options.infinite === false) {
1180
+ max = _.slideCount;
1181
+ } else {
1182
+ breakPoint = _.options.slidesToScroll * -1;
1183
+ counter = _.options.slidesToScroll * -1;
1184
+ max = _.slideCount * 2;
1185
+ }
1186
+
1187
+ while (breakPoint < max) {
1188
+ indexes.push(breakPoint);
1189
+ breakPoint = counter + _.options.slidesToScroll;
1190
+ counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;
1191
+ }
1192
+
1193
+ return indexes;
1194
+
1195
+ };
1196
+
1197
+ Slick.prototype.getSlick = function() {
1198
+
1199
+ return this;
1200
+
1201
+ };
1202
+
1203
+ Slick.prototype.getSlideCount = function() {
1204
+
1205
+ var _ = this,
1206
+ slidesTraversed, swipedSlide, centerOffset;
1207
+
1208
+ centerOffset = _.options.centerMode === true ? _.slideWidth * Math.floor(_.options.slidesToShow / 2) : 0;
1209
+
1210
+ if (_.options.swipeToSlide === true) {
1211
+ _.$slideTrack.find('.slick-slide').each(function(index, slide) {
1212
+ if (slide.offsetLeft - centerOffset + ($(slide).outerWidth() / 2) > (_.swipeLeft * -1)) {
1213
+ swipedSlide = slide;
1214
+ return false;
1215
+ }
1216
+ });
1217
+
1218
+ slidesTraversed = Math.abs($(swipedSlide).attr('data-slick-index') - _.currentSlide) || 1;
1219
+
1220
+ return slidesTraversed;
1221
+
1222
+ } else {
1223
+ return _.options.slidesToScroll;
1224
+ }
1225
+
1226
+ };
1227
+
1228
+ Slick.prototype.goTo = Slick.prototype.slickGoTo = function(slide, dontAnimate) {
1229
+
1230
+ var _ = this;
1231
+
1232
+ _.changeSlide({
1233
+ data: {
1234
+ message: 'index',
1235
+ index: parseInt(slide)
1236
+ }
1237
+ }, dontAnimate);
1238
+
1239
+ };
1240
+
1241
+ Slick.prototype.init = function(creation) {
1242
+
1243
+ var _ = this;
1244
+
1245
+ if (!$(_.$slider).hasClass('slick-initialized')) {
1246
+
1247
+ $(_.$slider).addClass('slick-initialized');
1248
+
1249
+ _.buildRows();
1250
+ _.buildOut();
1251
+ _.setProps();
1252
+ _.startLoad();
1253
+ _.loadSlider();
1254
+ _.initializeEvents();
1255
+ _.updateArrows();
1256
+ _.updateDots();
1257
+ _.checkResponsive(true);
1258
+ _.focusHandler();
1259
+
1260
+ }
1261
+
1262
+ if (creation) {
1263
+ _.$slider.trigger('init', [_]);
1264
+ }
1265
+
1266
+ if (_.options.accessibility === true) {
1267
+ _.initADA();
1268
+ }
1269
+
1270
+ if ( _.options.autoplay ) {
1271
+
1272
+ _.paused = false;
1273
+ _.autoPlay();
1274
+
1275
+ }
1276
+
1277
+ };
1278
+
1279
+ Slick.prototype.initADA = function() {
1280
+ var _ = this;
1281
+ _.$slides.add(_.$slideTrack.find('.slick-cloned')).attr({
1282
+ 'aria-hidden': 'true',
1283
+ 'tabindex': '-1'
1284
+ }).find('a, input, button, select').attr({
1285
+ 'tabindex': '-1'
1286
+ });
1287
+
1288
+ _.$slideTrack.attr('role', 'listbox');
1289
+
1290
+ _.$slides.not(_.$slideTrack.find('.slick-cloned')).each(function(i) {
1291
+ $(this).attr({
1292
+ 'role': 'option',
1293
+ 'aria-describedby': 'slick-slide' + _.instanceUid + i + ''
1294
+ });
1295
+ });
1296
+
1297
+ if (_.$dots !== null) {
1298
+ _.$dots.attr('role', 'tablist').find('li').each(function(i) {
1299
+ $(this).attr({
1300
+ 'role': 'tab',
1301
+ 'aria-selected': 'false',
1302
+ 'aria-controls': 'navigation' + _.instanceUid + i + '',
1303
+ 'id': 'slick-slide' + _.instanceUid + i + ''
1304
+ });
1305
+ })
1306
+ //.first().attr('aria-selected', 'true').end()
1307
+ //.find('button').attr('role', 'button').end()
1308
+ .closest('div').attr('role', 'toolbar');
1309
+ }
1310
+ _.activateADA();
1311
+
1312
+ };
1313
+
1314
+ Slick.prototype.initArrowEvents = function() {
1315
+
1316
+ var _ = this;
1317
+
1318
+ if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
1319
+ _.$prevArrow
1320
+ .off('click.slick')
1321
+ .on('click.slick', {
1322
+ message: 'previous'
1323
+ }, _.changeSlide);
1324
+ _.$nextArrow
1325
+ .off('click.slick')
1326
+ .on('click.slick', {
1327
+ message: 'next'
1328
+ }, _.changeSlide);
1329
+ }
1330
+
1331
+ };
1332
+
1333
+ Slick.prototype.initDotEvents = function() {
1334
+
1335
+ var _ = this;
1336
+
1337
+ if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
1338
+ $('li', _.$dots).on('click.slick', {
1339
+ message: 'index'
1340
+ }, _.changeSlide);
1341
+ }
1342
+
1343
+ if ( _.options.dots === true && _.options.pauseOnDotsHover === true ) {
1344
+
1345
+ $('li', _.$dots)
1346
+ .on('mouseenter.slick', $.proxy(_.interrupt, _, true))
1347
+ .on('mouseleave.slick', $.proxy(_.interrupt, _, false));
1348
+
1349
+ }
1350
+
1351
+ };
1352
+
1353
+ Slick.prototype.initSlideEvents = function() {
1354
+
1355
+ var _ = this;
1356
+
1357
+ if ( _.options.pauseOnHover ) {
1358
+
1359
+ _.$list.on('mouseenter.slick', $.proxy(_.interrupt, _, true));
1360
+ _.$list.on('mouseleave.slick', $.proxy(_.interrupt, _, false));
1361
+
1362
+ }
1363
+
1364
+ };
1365
+
1366
+ Slick.prototype.initializeEvents = function() {
1367
+
1368
+ var _ = this;
1369
+
1370
+ _.initArrowEvents();
1371
+
1372
+ _.initDotEvents();
1373
+ _.initSlideEvents();
1374
+
1375
+ _.$list.on('touchstart.slick mousedown.slick', {
1376
+ action: 'start'
1377
+ }, _.swipeHandler);
1378
+ _.$list.on('touchmove.slick mousemove.slick', {
1379
+ action: 'move'
1380
+ }, _.swipeHandler);
1381
+ _.$list.on('touchend.slick mouseup.slick', {
1382
+ action: 'end'
1383
+ }, _.swipeHandler);
1384
+ _.$list.on('touchcancel.slick mouseleave.slick', {
1385
+ action: 'end'
1386
+ }, _.swipeHandler);
1387
+
1388
+ _.$list.on('click.slick', _.clickHandler);
1389
+
1390
+ $(document).on(_.visibilityChange, $.proxy(_.visibility, _));
1391
+
1392
+ if (_.options.accessibility === true) {
1393
+ _.$list.on('keydown.slick', _.keyHandler);
1394
+ }
1395
+
1396
+ if (_.options.focusOnSelect === true) {
1397
+ $(_.$slideTrack).children().on('click.slick', _.selectHandler);
1398
+ }
1399
+
1400
+ $(window).on('orientationchange.slick.slick-' + _.instanceUid, $.proxy(_.orientationChange, _));
1401
+
1402
+ $(window).on('resize.slick.slick-' + _.instanceUid, $.proxy(_.resize, _));
1403
+
1404
+ $('[draggable!=true]', _.$slideTrack).on('dragstart', _.preventDefault);
1405
+
1406
+ $(window).on('load.slick.slick-' + _.instanceUid, _.setPosition);
1407
+ $(document).on('ready.slick.slick-' + _.instanceUid, _.setPosition);
1408
+
1409
+ };
1410
+
1411
+ Slick.prototype.initUI = function() {
1412
+
1413
+ var _ = this;
1414
+
1415
+ if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
1416
+
1417
+ _.$prevArrow.show();
1418
+ _.$nextArrow.show();
1419
+
1420
+ }
1421
+
1422
+ if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
1423
+
1424
+ _.$dots.show();
1425
+
1426
+ }
1427
+
1428
+ };
1429
+
1430
+ Slick.prototype.keyHandler = function(event) {
1431
+
1432
+ var _ = this;
1433
+ //Dont slide if the cursor is inside the form fields and arrow keys are pressed
1434
+ if(!event.target.tagName.match('TEXTAREA|INPUT|SELECT')) {
1435
+ if (event.keyCode === 37 && _.options.accessibility === true) {
1436
+ _.changeSlide({
1437
+ data: {
1438
+ message: _.options.rtl === true ? 'next' : 'previous'
1439
+ }
1440
+ });
1441
+ } else if (event.keyCode === 39 && _.options.accessibility === true) {
1442
+ _.changeSlide({
1443
+ data: {
1444
+ message: _.options.rtl === true ? 'previous' : 'next'
1445
+ }
1446
+ });
1447
+ }
1448
+ }
1449
+
1450
+ };
1451
+
1452
+ Slick.prototype.lazyLoad = function() {
1453
+
1454
+ var _ = this,
1455
+ loadRange, cloneRange, rangeStart, rangeEnd;
1456
+
1457
+ function loadImages(imagesScope) {
1458
+
1459
+ $('img[data-lazy]', imagesScope).each(function() {
1460
+
1461
+ var image = $(this),
1462
+ imageSource = $(this).attr('data-lazy'),
1463
+ imageToLoad = document.createElement('img');
1464
+
1465
+ imageToLoad.onload = function() {
1466
+
1467
+ image
1468
+ .animate({ opacity: 0 }, 100, function() {
1469
+ image
1470
+ .attr('src', imageSource)
1471
+ .animate({ opacity: 1 }, 200, function() {
1472
+ image
1473
+ .removeAttr('data-lazy')
1474
+ .removeClass('slick-loading');
1475
+ });
1476
+ _.$slider.trigger('lazyLoaded', [_, image, imageSource]);
1477
+ });
1478
+
1479
+ };
1480
+
1481
+ imageToLoad.onerror = function() {
1482
+
1483
+ image
1484
+ .removeAttr( 'data-lazy' )
1485
+ .removeClass( 'slick-loading' )
1486
+ .addClass( 'slick-lazyload-error' );
1487
+
1488
+ _.$slider.trigger('lazyLoadError', [ _, image, imageSource ]);
1489
+
1490
+ };
1491
+
1492
+ imageToLoad.src = imageSource;
1493
+
1494
+ });
1495
+
1496
+ }
1497
+
1498
+ if (_.options.centerMode === true) {
1499
+ if (_.options.infinite === true) {
1500
+ rangeStart = _.currentSlide + (_.options.slidesToShow / 2 + 1);
1501
+ rangeEnd = rangeStart + _.options.slidesToShow + 2;
1502
+ } else {
1503
+ rangeStart = Math.max(0, _.currentSlide - (_.options.slidesToShow / 2 + 1));
1504
+ rangeEnd = 2 + (_.options.slidesToShow / 2 + 1) + _.currentSlide;
1505
+ }
1506
+ } else {
1507
+ rangeStart = _.options.infinite ? _.options.slidesToShow + _.currentSlide : _.currentSlide;
1508
+ rangeEnd = Math.ceil(rangeStart + _.options.slidesToShow);
1509
+ if (_.options.fade === true) {
1510
+ if (rangeStart > 0) rangeStart--;
1511
+ if (rangeEnd <= _.slideCount) rangeEnd++;
1512
+ }
1513
+ }
1514
+
1515
+ loadRange = _.$slider.find('.slick-slide').slice(rangeStart, rangeEnd);
1516
+ loadImages(loadRange);
1517
+
1518
+ if (_.slideCount <= _.options.slidesToShow) {
1519
+ cloneRange = _.$slider.find('.slick-slide');
1520
+ loadImages(cloneRange);
1521
+ } else
1522
+ if (_.currentSlide >= _.slideCount - _.options.slidesToShow) {
1523
+ cloneRange = _.$slider.find('.slick-cloned').slice(0, _.options.slidesToShow);
1524
+ loadImages(cloneRange);
1525
+ } else if (_.currentSlide === 0) {
1526
+ cloneRange = _.$slider.find('.slick-cloned').slice(_.options.slidesToShow * -1);
1527
+ loadImages(cloneRange);
1528
+ }
1529
+
1530
+ };
1531
+
1532
+ Slick.prototype.loadSlider = function() {
1533
+
1534
+ var _ = this;
1535
+
1536
+ _.setPosition();
1537
+
1538
+ _.$slideTrack.css({
1539
+ opacity: 1
1540
+ });
1541
+
1542
+ _.$slider.removeClass('slick-loading');
1543
+
1544
+ _.initUI();
1545
+
1546
+ if (_.options.lazyLoad === 'progressive') {
1547
+ _.progressiveLazyLoad();
1548
+ }
1549
+
1550
+ };
1551
+
1552
+ Slick.prototype.next = Slick.prototype.slickNext = function() {
1553
+
1554
+ var _ = this;
1555
+
1556
+ _.changeSlide({
1557
+ data: {
1558
+ message: 'next'
1559
+ }
1560
+ });
1561
+
1562
+ };
1563
+
1564
+ Slick.prototype.orientationChange = function() {
1565
+
1566
+ var _ = this;
1567
+
1568
+ _.checkResponsive();
1569
+ _.setPosition();
1570
+
1571
+ };
1572
+
1573
+ Slick.prototype.pause = Slick.prototype.slickPause = function() {
1574
+
1575
+ var _ = this;
1576
+
1577
+ _.autoPlayClear();
1578
+ _.paused = true;
1579
+
1580
+ };
1581
+
1582
+ Slick.prototype.play = Slick.prototype.slickPlay = function() {
1583
+
1584
+ var _ = this;
1585
+
1586
+ _.autoPlay();
1587
+ _.options.autoplay = true;
1588
+ _.paused = false;
1589
+ _.focussed = false;
1590
+ _.interrupted = false;
1591
+
1592
+ };
1593
+
1594
+ Slick.prototype.postSlide = function(index) {
1595
+
1596
+ var _ = this;
1597
+
1598
+ if( !_.unslicked ) {
1599
+
1600
+ _.$slider.trigger('afterChange', [_, index]);
1601
+
1602
+ _.animating = false;
1603
+
1604
+ _.setPosition();
1605
+
1606
+ _.swipeLeft = null;
1607
+
1608
+ if ( _.options.autoplay ) {
1609
+ _.autoPlay();
1610
+ }
1611
+
1612
+ if (_.options.accessibility === true) {
1613
+ _.initADA();
1614
+ }
1615
+
1616
+ }
1617
+
1618
+ };
1619
+
1620
+ Slick.prototype.prev = Slick.prototype.slickPrev = function() {
1621
+
1622
+ var _ = this;
1623
+
1624
+ _.changeSlide({
1625
+ data: {
1626
+ message: 'previous'
1627
+ }
1628
+ });
1629
+
1630
+ };
1631
+
1632
+ Slick.prototype.preventDefault = function(event) {
1633
+
1634
+ event.preventDefault();
1635
+
1636
+ };
1637
+
1638
+ Slick.prototype.progressiveLazyLoad = function( tryCount ) {
1639
+
1640
+ tryCount = tryCount || 1;
1641
+
1642
+ var _ = this,
1643
+ $imgsToLoad = $( 'img[data-lazy]', _.$slider ),
1644
+ image,
1645
+ imageSource,
1646
+ imageToLoad;
1647
+
1648
+ if ( $imgsToLoad.length ) {
1649
+
1650
+ image = $imgsToLoad.first();
1651
+ imageSource = image.attr('data-lazy');
1652
+ imageToLoad = document.createElement('img');
1653
+
1654
+ imageToLoad.onload = function() {
1655
+
1656
+ image
1657
+ .attr( 'src', imageSource )
1658
+ .removeAttr('data-lazy')
1659
+ .removeClass('slick-loading');
1660
+
1661
+ if ( _.options.adaptiveHeight === true ) {
1662
+ _.setPosition();
1663
+ }
1664
+
1665
+ _.$slider.trigger('lazyLoaded', [ _, image, imageSource ]);
1666
+ _.progressiveLazyLoad();
1667
+
1668
+ };
1669
+
1670
+ imageToLoad.onerror = function() {
1671
+
1672
+ if ( tryCount < 3 ) {
1673
+
1674
+ /**
1675
+ * try to load the image 3 times,
1676
+ * leave a slight delay so we don't get
1677
+ * servers blocking the request.
1678
+ */
1679
+ setTimeout( function() {
1680
+ _.progressiveLazyLoad( tryCount + 1 );
1681
+ }, 500 );
1682
+
1683
+ } else {
1684
+
1685
+ image
1686
+ .removeAttr( 'data-lazy' )
1687
+ .removeClass( 'slick-loading' )
1688
+ .addClass( 'slick-lazyload-error' );
1689
+
1690
+ _.$slider.trigger('lazyLoadError', [ _, image, imageSource ]);
1691
+
1692
+ _.progressiveLazyLoad();
1693
+
1694
+ }
1695
+
1696
+ };
1697
+
1698
+ imageToLoad.src = imageSource;
1699
+
1700
+ } else {
1701
+
1702
+ _.$slider.trigger('allImagesLoaded', [ _ ]);
1703
+
1704
+ }
1705
+
1706
+ };
1707
+
1708
+ Slick.prototype.refresh = function( initializing ) {
1709
+
1710
+ var _ = this, currentSlide, lastVisibleIndex;
1711
+
1712
+ lastVisibleIndex = _.slideCount - _.options.slidesToShow;
1713
+
1714
+ // in non-infinite sliders, we don't want to go past the
1715
+ // last visible index.
1716
+ if( !_.options.infinite && ( _.currentSlide > lastVisibleIndex )) {
1717
+ _.currentSlide = lastVisibleIndex;
1718
+ }
1719
+
1720
+ // if less slides than to show, go to start.
1721
+ if ( _.slideCount <= _.options.slidesToShow ) {
1722
+ _.currentSlide = 0;
1723
+
1724
+ }
1725
+
1726
+ currentSlide = _.currentSlide;
1727
+
1728
+ _.destroy(true);
1729
+
1730
+ $.extend(_, _.initials, { currentSlide: currentSlide });
1731
+
1732
+ _.init();
1733
+
1734
+ if( !initializing ) {
1735
+
1736
+ _.changeSlide({
1737
+ data: {
1738
+ message: 'index',
1739
+ index: currentSlide
1740
+ }
1741
+ }, false);
1742
+
1743
+ }
1744
+
1745
+ };
1746
+
1747
+ Slick.prototype.registerBreakpoints = function() {
1748
+
1749
+ var _ = this, breakpoint, currentBreakpoint, l,
1750
+ responsiveSettings = _.options.responsive || null;
1751
+
1752
+ if ( $.type(responsiveSettings) === 'array' && responsiveSettings.length ) {
1753
+
1754
+ _.respondTo = _.options.respondTo || 'window';
1755
+
1756
+ for ( breakpoint in responsiveSettings ) {
1757
+
1758
+ l = _.breakpoints.length-1;
1759
+ currentBreakpoint = responsiveSettings[breakpoint].breakpoint;
1760
+
1761
+ if (responsiveSettings.hasOwnProperty(breakpoint)) {
1762
+
1763
+ // loop through the breakpoints and cut out any existing
1764
+ // ones with the same breakpoint number, we don't want dupes.
1765
+ while( l >= 0 ) {
1766
+ if( _.breakpoints[l] && _.breakpoints[l] === currentBreakpoint ) {
1767
+ _.breakpoints.splice(l,1);
1768
+ }
1769
+ l--;
1770
+ }
1771
+
1772
+ _.breakpoints.push(currentBreakpoint);
1773
+ _.breakpointSettings[currentBreakpoint] = responsiveSettings[breakpoint].settings;
1774
+
1775
+ }
1776
+
1777
+ }
1778
+
1779
+ _.breakpoints.sort(function(a, b) {
1780
+ return ( _.options.mobileFirst ) ? a-b : b-a;
1781
+ });
1782
+
1783
+ }
1784
+
1785
+ };
1786
+
1787
+ Slick.prototype.reinit = function() {
1788
+
1789
+ var _ = this;
1790
+
1791
+ _.$slides =
1792
+ _.$slideTrack
1793
+ .children(_.options.slide)
1794
+ .addClass('slick-slide');
1795
+
1796
+ _.slideCount = _.$slides.length;
1797
+
1798
+ if (_.currentSlide >= _.slideCount && _.currentSlide !== 0) {
1799
+ _.currentSlide = _.currentSlide - _.options.slidesToScroll;
1800
+ }
1801
+
1802
+ if (_.slideCount <= _.options.slidesToShow) {
1803
+ _.currentSlide = 0;
1804
+ }
1805
+
1806
+ _.registerBreakpoints();
1807
+
1808
+ _.setProps();
1809
+ _.setupInfinite();
1810
+ _.buildArrows();
1811
+ _.updateArrows();
1812
+ _.initArrowEvents();
1813
+ _.buildDots();
1814
+ _.updateDots();
1815
+ _.initDotEvents();
1816
+ _.cleanUpSlideEvents();
1817
+ _.initSlideEvents();
1818
+
1819
+ _.checkResponsive(false, true);
1820
+
1821
+ if (_.options.focusOnSelect === true) {
1822
+ $(_.$slideTrack).children().on('click.slick', _.selectHandler);
1823
+ }
1824
+
1825
+ _.setSlideClasses(typeof _.currentSlide === 'number' ? _.currentSlide : 0);
1826
+
1827
+ _.setPosition();
1828
+ _.focusHandler();
1829
+
1830
+ _.paused = !_.options.autoplay;
1831
+ _.autoPlay();
1832
+
1833
+ _.$slider.trigger('reInit', [_]);
1834
+
1835
+ };
1836
+
1837
+ Slick.prototype.resize = function() {
1838
+
1839
+ var _ = this;
1840
+
1841
+ if ($(window).width() !== _.windowWidth) {
1842
+ clearTimeout(_.windowDelay);
1843
+ _.windowDelay = window.setTimeout(function() {
1844
+ _.windowWidth = $(window).width();
1845
+ _.checkResponsive();
1846
+ if( !_.unslicked ) { _.setPosition(); }
1847
+ }, 50);
1848
+ }
1849
+ };
1850
+
1851
+ Slick.prototype.removeSlide = Slick.prototype.slickRemove = function(index, removeBefore, removeAll) {
1852
+
1853
+ var _ = this;
1854
+
1855
+ if (typeof(index) === 'boolean') {
1856
+ removeBefore = index;
1857
+ index = removeBefore === true ? 0 : _.slideCount - 1;
1858
+ } else {
1859
+ index = removeBefore === true ? --index : index;
1860
+ }
1861
+
1862
+ if (_.slideCount < 1 || index < 0 || index > _.slideCount - 1) {
1863
+ return false;
1864
+ }
1865
+
1866
+ _.unload();
1867
+
1868
+ if (removeAll === true) {
1869
+ _.$slideTrack.children().remove();
1870
+ } else {
1871
+ _.$slideTrack.children(this.options.slide).eq(index).remove();
1872
+ }
1873
+
1874
+ _.$slides = _.$slideTrack.children(this.options.slide);
1875
+
1876
+ _.$slideTrack.children(this.options.slide).detach();
1877
+
1878
+ _.$slideTrack.append(_.$slides);
1879
+
1880
+ _.$slidesCache = _.$slides;
1881
+
1882
+ _.reinit();
1883
+
1884
+ };
1885
+
1886
+ Slick.prototype.setCSS = function(position) {
1887
+
1888
+ var _ = this,
1889
+ positionProps = {},
1890
+ x, y;
1891
+
1892
+ if (_.options.rtl === true) {
1893
+ position = -position;
1894
+ }
1895
+ x = _.positionProp == 'left' ? Math.ceil(position) + 'px' : '0px';
1896
+ y = _.positionProp == 'top' ? Math.ceil(position) + 'px' : '0px';
1897
+
1898
+ positionProps[_.positionProp] = position;
1899
+
1900
+ if (_.transformsEnabled === false) {
1901
+ _.$slideTrack.css(positionProps);
1902
+ } else {
1903
+ positionProps = {};
1904
+ if (_.cssTransitions === false) {
1905
+ positionProps[_.animType] = 'translate(' + x + ', ' + y + ')';
1906
+ _.$slideTrack.css(positionProps);
1907
+ } else {
1908
+ positionProps[_.animType] = 'translate3d(' + x + ', ' + y + ', 0px)';
1909
+ _.$slideTrack.css(positionProps);
1910
+ }
1911
+ }
1912
+
1913
+ };
1914
+
1915
+ Slick.prototype.setDimensions = function() {
1916
+
1917
+ var _ = this;
1918
+
1919
+ if (_.options.vertical === false) {
1920
+ if (_.options.centerMode === true) {
1921
+ _.$list.css({
1922
+ padding: ('0px ' + _.options.centerPadding)
1923
+ });
1924
+ }
1925
+ } else {
1926
+ _.$list.height(_.$slides.first().outerHeight(true) * _.options.slidesToShow);
1927
+ if (_.options.centerMode === true) {
1928
+ _.$list.css({
1929
+ padding: (_.options.centerPadding + ' 0px')
1930
+ });
1931
+ }
1932
+ }
1933
+
1934
+ _.listWidth = _.$list.width();
1935
+ _.listHeight = _.$list.height();
1936
+
1937
+
1938
+ if (_.options.vertical === false && _.options.variableWidth === false) {
1939
+ _.slideWidth = Math.ceil(_.listWidth / _.options.slidesToShow);
1940
+ _.$slideTrack.width(Math.ceil((_.slideWidth * _.$slideTrack.children('.slick-slide').length)));
1941
+
1942
+ } else if (_.options.variableWidth === true) {
1943
+ _.$slideTrack.width(5000 * _.slideCount);
1944
+ } else {
1945
+ _.slideWidth = Math.ceil(_.listWidth);
1946
+ _.$slideTrack.height(Math.ceil((_.$slides.first().outerHeight(true) * _.$slideTrack.children('.slick-slide').length)));
1947
+ }
1948
+
1949
+ var offset = _.$slides.first().outerWidth(true) - _.$slides.first().width();
1950
+ if (_.options.variableWidth === false) _.$slideTrack.children('.slick-slide').width(_.slideWidth - offset);
1951
+
1952
+ };
1953
+
1954
+ Slick.prototype.setFade = function() {
1955
+
1956
+ var _ = this,
1957
+ targetLeft;
1958
+
1959
+ _.$slides.each(function(index, element) {
1960
+ targetLeft = (_.slideWidth * index) * -1;
1961
+ if (_.options.rtl === true) {
1962
+ $(element).css({
1963
+ position: 'relative',
1964
+ right: targetLeft,
1965
+ top: 0,
1966
+ zIndex: _.options.zIndex - 2,
1967
+ opacity: 0
1968
+ });
1969
+ } else {
1970
+ $(element).css({
1971
+ position: 'relative',
1972
+ left: targetLeft,
1973
+ top: 0,
1974
+ zIndex: _.options.zIndex - 2,
1975
+ opacity: 0
1976
+ });
1977
+ }
1978
+ });
1979
+
1980
+ _.$slides.eq(_.currentSlide).css({
1981
+ zIndex: _.options.zIndex - 1,
1982
+ opacity: 1
1983
+ });
1984
+
1985
+ };
1986
+
1987
+ Slick.prototype.setHeight = function() {
1988
+
1989
+ var _ = this;
1990
+
1991
+ if (_.options.slidesToShow === 1 && _.options.adaptiveHeight === true && _.options.vertical === false) {
1992
+ var targetHeight = _.$slides.eq(_.currentSlide).outerHeight(true);
1993
+ _.$list.css('height', targetHeight);
1994
+ }
1995
+
1996
+ };
1997
+
1998
+ Slick.prototype.setOption =
1999
+ Slick.prototype.slickSetOption = function() {
2000
+
2001
+ /**
2002
+ * accepts arguments in format of:
2003
+ *
2004
+ * - for changing a single option's value:
2005
+ * .slick("setOption", option, value, refresh )
2006
+ *
2007
+ * - for changing a set of responsive options:
2008
+ * .slick("setOption", 'responsive', [{}, ...], refresh )
2009
+ *
2010
+ * - for updating multiple values at once (not responsive)
2011
+ * .slick("setOption", { 'option': value, ... }, refresh )
2012
+ */
2013
+
2014
+ var _ = this, l, item, option, value, refresh = false, type;
2015
+
2016
+ if( $.type( arguments[0] ) === 'object' ) {
2017
+
2018
+ option = arguments[0];
2019
+ refresh = arguments[1];
2020
+ type = 'multiple';
2021
+
2022
+ } else if ( $.type( arguments[0] ) === 'string' ) {
2023
+
2024
+ option = arguments[0];
2025
+ value = arguments[1];
2026
+ refresh = arguments[2];
2027
+
2028
+ if ( arguments[0] === 'responsive' && $.type( arguments[1] ) === 'array' ) {
2029
+
2030
+ type = 'responsive';
2031
+
2032
+ } else if ( typeof arguments[1] !== 'undefined' ) {
2033
+
2034
+ type = 'single';
2035
+
2036
+ }
2037
+
2038
+ }
2039
+
2040
+ if ( type === 'single' ) {
2041
+
2042
+ _.options[option] = value;
2043
+
2044
+
2045
+ } else if ( type === 'multiple' ) {
2046
+
2047
+ $.each( option , function( opt, val ) {
2048
+
2049
+ _.options[opt] = val;
2050
+
2051
+ });
2052
+
2053
+
2054
+ } else if ( type === 'responsive' ) {
2055
+
2056
+ for ( item in value ) {
2057
+
2058
+ if( $.type( _.options.responsive ) !== 'array' ) {
2059
+
2060
+ _.options.responsive = [ value[item] ];
2061
+
2062
+ } else {
2063
+
2064
+ l = _.options.responsive.length-1;
2065
+
2066
+ // loop through the responsive object and splice out duplicates.
2067
+ while( l >= 0 ) {
2068
+
2069
+ if( _.options.responsive[l].breakpoint === value[item].breakpoint ) {
2070
+
2071
+ _.options.responsive.splice(l,1);
2072
+
2073
+ }
2074
+
2075
+ l--;
2076
+
2077
+ }
2078
+
2079
+ _.options.responsive.push( value[item] );
2080
+
2081
+ }
2082
+
2083
+ }
2084
+
2085
+ }
2086
+
2087
+ if ( refresh ) {
2088
+
2089
+ _.unload();
2090
+ _.reinit();
2091
+
2092
+ }
2093
+
2094
+ };
2095
+
2096
+ Slick.prototype.setPosition = function() {
2097
+
2098
+ var _ = this;
2099
+
2100
+ _.setDimensions();
2101
+
2102
+ _.setHeight();
2103
+
2104
+ if (_.options.fade === false) {
2105
+ _.setCSS(_.getLeft(_.currentSlide));
2106
+ } else {
2107
+ _.setFade();
2108
+ }
2109
+
2110
+ _.$slider.trigger('setPosition', [_]);
2111
+
2112
+ };
2113
+
2114
+ Slick.prototype.setProps = function() {
2115
+
2116
+ var _ = this,
2117
+ bodyStyle = document.body.style;
2118
+
2119
+ _.positionProp = _.options.vertical === true ? 'top' : 'left';
2120
+
2121
+ if (_.positionProp === 'top') {
2122
+ _.$slider.addClass('slick-vertical');
2123
+ } else {
2124
+ _.$slider.removeClass('slick-vertical');
2125
+ }
2126
+
2127
+ if (bodyStyle.WebkitTransition !== undefined ||
2128
+ bodyStyle.MozTransition !== undefined ||
2129
+ bodyStyle.msTransition !== undefined) {
2130
+ if (_.options.useCSS === true) {
2131
+ _.cssTransitions = true;
2132
+ }
2133
+ }
2134
+
2135
+ if ( _.options.fade ) {
2136
+ if ( typeof _.options.zIndex === 'number' ) {
2137
+ if( _.options.zIndex < 3 ) {
2138
+ _.options.zIndex = 3;
2139
+ }
2140
+ } else {
2141
+ _.options.zIndex = _.defaults.zIndex;
2142
+ }
2143
+ }
2144
+
2145
+ if (bodyStyle.OTransform !== undefined) {
2146
+ _.animType = 'OTransform';
2147
+ _.transformType = '-o-transform';
2148
+ _.transitionType = 'OTransition';
2149
+ if (bodyStyle.perspectiveProperty === undefined && bodyStyle.webkitPerspective === undefined) _.animType = false;
2150
+ }
2151
+ if (bodyStyle.MozTransform !== undefined) {
2152
+ _.animType = 'MozTransform';
2153
+ _.transformType = '-moz-transform';
2154
+ _.transitionType = 'MozTransition';
2155
+ if (bodyStyle.perspectiveProperty === undefined && bodyStyle.MozPerspective === undefined) _.animType = false;
2156
+ }
2157
+ if (bodyStyle.webkitTransform !== undefined) {
2158
+ _.animType = 'webkitTransform';
2159
+ _.transformType = '-webkit-transform';
2160
+ _.transitionType = 'webkitTransition';
2161
+ if (bodyStyle.perspectiveProperty === undefined && bodyStyle.webkitPerspective === undefined) _.animType = false;
2162
+ }
2163
+ if (bodyStyle.msTransform !== undefined) {
2164
+ _.animType = 'msTransform';
2165
+ _.transformType = '-ms-transform';
2166
+ _.transitionType = 'msTransition';
2167
+ if (bodyStyle.msTransform === undefined) _.animType = false;
2168
+ }
2169
+ if (bodyStyle.transform !== undefined && _.animType !== false) {
2170
+ _.animType = 'transform';
2171
+ _.transformType = 'transform';
2172
+ _.transitionType = 'transition';
2173
+ }
2174
+ _.transformsEnabled = _.options.useTransform && (_.animType !== null && _.animType !== false);
2175
+ };
2176
+
2177
+
2178
+ Slick.prototype.setSlideClasses = function(index) {
2179
+
2180
+ var _ = this,
2181
+ centerOffset, allSlides, indexOffset, remainder;
2182
+
2183
+ allSlides = _.$slider
2184
+ .find('.slick-slide')
2185
+ .removeClass('slick-active slick-center slick-current')
2186
+ .attr('aria-hidden', 'true');
2187
+
2188
+ _.$slides
2189
+ .eq(index)
2190
+ .addClass('slick-current');
2191
+
2192
+ if (_.options.centerMode === true) {
2193
+
2194
+ centerOffset = Math.floor(_.options.slidesToShow / 2);
2195
+
2196
+ if (_.options.infinite === true) {
2197
+
2198
+ if (index >= centerOffset && index <= (_.slideCount - 1) - centerOffset) {
2199
+
2200
+ _.$slides
2201
+ .slice(index - centerOffset, index + centerOffset + 1)
2202
+ .addClass('slick-active')
2203
+ .attr('aria-hidden', 'false');
2204
+
2205
+ } else {
2206
+
2207
+ indexOffset = _.options.slidesToShow + index;
2208
+ allSlides
2209
+ .slice(indexOffset - centerOffset + 1, indexOffset + centerOffset + 2)
2210
+ .addClass('slick-active')
2211
+ .attr('aria-hidden', 'false');
2212
+
2213
+ }
2214
+
2215
+ if (index === 0) {
2216
+
2217
+ allSlides
2218
+ .eq(allSlides.length - 1 - _.options.slidesToShow)
2219
+ .addClass('slick-center');
2220
+
2221
+ } else if (index === _.slideCount - 1) {
2222
+
2223
+ allSlides
2224
+ .eq(_.options.slidesToShow)
2225
+ .addClass('slick-center');
2226
+
2227
+ }
2228
+
2229
+ }
2230
+
2231
+ _.$slides
2232
+ .eq(index)
2233
+ .addClass('slick-center');
2234
+
2235
+ } else {
2236
+
2237
+ if (index >= 0 && index <= (_.slideCount - _.options.slidesToShow)) {
2238
+
2239
+ _.$slides
2240
+ .slice(index, index + _.options.slidesToShow)
2241
+ .addClass('slick-active')
2242
+ .attr('aria-hidden', 'false');
2243
+
2244
+ } else if (allSlides.length <= _.options.slidesToShow) {
2245
+
2246
+ allSlides
2247
+ .addClass('slick-active')
2248
+ .attr('aria-hidden', 'false');
2249
+
2250
+ } else {
2251
+
2252
+ remainder = _.slideCount % _.options.slidesToShow;
2253
+ indexOffset = _.options.infinite === true ? _.options.slidesToShow + index : index;
2254
+
2255
+ if (_.options.slidesToShow == _.options.slidesToScroll && (_.slideCount - index) < _.options.slidesToShow) {
2256
+
2257
+ allSlides
2258
+ .slice(indexOffset - (_.options.slidesToShow - remainder), indexOffset + remainder)
2259
+ .addClass('slick-active')
2260
+ .attr('aria-hidden', 'false');
2261
+
2262
+ } else {
2263
+
2264
+ allSlides
2265
+ .slice(indexOffset, indexOffset + _.options.slidesToShow)
2266
+ .addClass('slick-active')
2267
+ .attr('aria-hidden', 'false');
2268
+
2269
+ }
2270
+
2271
+ }
2272
+
2273
+ }
2274
+
2275
+ if (_.options.lazyLoad === 'ondemand') {
2276
+ _.lazyLoad();
2277
+ }
2278
+
2279
+ };
2280
+
2281
+ Slick.prototype.setupInfinite = function() {
2282
+
2283
+ var _ = this,
2284
+ i, slideIndex, infiniteCount;
2285
+
2286
+ if (_.options.fade === true) {
2287
+ _.options.centerMode = false;
2288
+ }
2289
+
2290
+ if (_.options.infinite === true && _.options.fade === false) {
2291
+
2292
+ slideIndex = null;
2293
+
2294
+ if (_.slideCount > _.options.slidesToShow) {
2295
+
2296
+ if (_.options.centerMode === true) {
2297
+ infiniteCount = _.options.slidesToShow + 1;
2298
+ } else {
2299
+ infiniteCount = _.options.slidesToShow;
2300
+ }
2301
+
2302
+ for (i = _.slideCount; i > (_.slideCount -
2303
+ infiniteCount); i -= 1) {
2304
+ slideIndex = i - 1;
2305
+ $(_.$slides[slideIndex]).clone(true).attr('id', '')
2306
+ .attr('data-slick-index', slideIndex - _.slideCount)
2307
+ .prependTo(_.$slideTrack).addClass('slick-cloned');
2308
+ }
2309
+ for (i = 0; i < infiniteCount; i += 1) {
2310
+ slideIndex = i;
2311
+ $(_.$slides[slideIndex]).clone(true).attr('id', '')
2312
+ .attr('data-slick-index', slideIndex + _.slideCount)
2313
+ .appendTo(_.$slideTrack).addClass('slick-cloned');
2314
+ }
2315
+ _.$slideTrack.find('.slick-cloned').find('[id]').each(function() {
2316
+ $(this).attr('id', '');
2317
+ });
2318
+
2319
+ }
2320
+
2321
+ }
2322
+
2323
+ };
2324
+
2325
+ Slick.prototype.interrupt = function( toggle ) {
2326
+
2327
+ var _ = this;
2328
+
2329
+ if( !toggle ) {
2330
+ _.autoPlay();
2331
+ }
2332
+ _.interrupted = toggle;
2333
+
2334
+ };
2335
+
2336
+ Slick.prototype.selectHandler = function(event) {
2337
+
2338
+ var _ = this;
2339
+
2340
+ var targetElement =
2341
+ $(event.target).is('.slick-slide') ?
2342
+ $(event.target) :
2343
+ $(event.target).parents('.slick-slide');
2344
+
2345
+ var index = parseInt(targetElement.attr('data-slick-index'));
2346
+
2347
+ if (!index) index = 0;
2348
+
2349
+ if (_.slideCount <= _.options.slidesToShow) {
2350
+
2351
+ _.setSlideClasses(index);
2352
+ _.asNavFor(index);
2353
+ return;
2354
+
2355
+ }
2356
+
2357
+ _.slideHandler(index);
2358
+
2359
+ };
2360
+
2361
+ Slick.prototype.slideHandler = function(index, sync, dontAnimate) {
2362
+
2363
+ var targetSlide, animSlide, oldSlide, slideLeft, targetLeft = null,
2364
+ _ = this, navTarget;
2365
+
2366
+ sync = sync || false;
2367
+
2368
+ if (_.animating === true && _.options.waitForAnimate === true) {
2369
+ return;
2370
+ }
2371
+
2372
+ if (_.options.fade === true && _.currentSlide === index) {
2373
+ return;
2374
+ }
2375
+
2376
+ if (_.slideCount <= _.options.slidesToShow) {
2377
+ return;
2378
+ }
2379
+
2380
+ if (sync === false) {
2381
+ _.asNavFor(index);
2382
+ }
2383
+
2384
+ targetSlide = index;
2385
+ targetLeft = _.getLeft(targetSlide);
2386
+ slideLeft = _.getLeft(_.currentSlide);
2387
+
2388
+ _.currentLeft = _.swipeLeft === null ? slideLeft : _.swipeLeft;
2389
+
2390
+ if (_.options.infinite === false && _.options.centerMode === false && (index < 0 || index > _.getDotCount() * _.options.slidesToScroll)) {
2391
+ if (_.options.fade === false) {
2392
+ targetSlide = _.currentSlide;
2393
+ if (dontAnimate !== true) {
2394
+ _.animateSlide(slideLeft, function() {
2395
+ _.postSlide(targetSlide);
2396
+ });
2397
+ } else {
2398
+ _.postSlide(targetSlide);
2399
+ }
2400
+ }
2401
+ return;
2402
+ } else if (_.options.infinite === false && _.options.centerMode === true && (index < 0 || index > (_.slideCount - _.options.slidesToScroll))) {
2403
+ if (_.options.fade === false) {
2404
+ targetSlide = _.currentSlide;
2405
+ if (dontAnimate !== true) {
2406
+ _.animateSlide(slideLeft, function() {
2407
+ _.postSlide(targetSlide);
2408
+ });
2409
+ } else {
2410
+ _.postSlide(targetSlide);
2411
+ }
2412
+ }
2413
+ return;
2414
+ }
2415
+
2416
+ if ( _.options.autoplay ) {
2417
+ clearInterval(_.autoPlayTimer);
2418
+ }
2419
+
2420
+ if (targetSlide < 0) {
2421
+ if (_.slideCount % _.options.slidesToScroll !== 0) {
2422
+ animSlide = _.slideCount - (_.slideCount % _.options.slidesToScroll);
2423
+ } else {
2424
+ animSlide = _.slideCount + targetSlide;
2425
+ }
2426
+ } else if (targetSlide >= _.slideCount) {
2427
+ if (_.slideCount % _.options.slidesToScroll !== 0) {
2428
+ animSlide = 0;
2429
+ } else {
2430
+ animSlide = targetSlide - _.slideCount;
2431
+ }
2432
+ } else {
2433
+ animSlide = targetSlide;
2434
+ }
2435
+
2436
+ _.animating = true;
2437
+
2438
+ _.$slider.trigger('beforeChange', [_, _.currentSlide, animSlide]);
2439
+
2440
+ oldSlide = _.currentSlide;
2441
+ _.currentSlide = animSlide;
2442
+
2443
+ _.setSlideClasses(_.currentSlide);
2444
+
2445
+ if ( _.options.asNavFor ) {
2446
+
2447
+ navTarget = _.getNavTarget();
2448
+ navTarget = navTarget.slick('getSlick');
2449
+
2450
+ if ( navTarget.slideCount <= navTarget.options.slidesToShow ) {
2451
+ navTarget.setSlideClasses(_.currentSlide);
2452
+ }
2453
+
2454
+ }
2455
+
2456
+ _.updateDots();
2457
+ _.updateArrows();
2458
+
2459
+ if (_.options.fade === true) {
2460
+ if (dontAnimate !== true) {
2461
+
2462
+ _.fadeSlideOut(oldSlide);
2463
+
2464
+ _.fadeSlide(animSlide, function() {
2465
+ _.postSlide(animSlide);
2466
+ });
2467
+
2468
+ } else {
2469
+ _.postSlide(animSlide);
2470
+ }
2471
+ _.animateHeight();
2472
+ return;
2473
+ }
2474
+
2475
+ if (dontAnimate !== true) {
2476
+ _.animateSlide(targetLeft, function() {
2477
+ _.postSlide(animSlide);
2478
+ });
2479
+ } else {
2480
+ _.postSlide(animSlide);
2481
+ }
2482
+
2483
+ };
2484
+
2485
+ Slick.prototype.startLoad = function() {
2486
+
2487
+ var _ = this;
2488
+
2489
+ if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
2490
+
2491
+ _.$prevArrow.hide();
2492
+ _.$nextArrow.hide();
2493
+
2494
+ }
2495
+
2496
+ if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
2497
+
2498
+ _.$dots.hide();
2499
+
2500
+ }
2501
+
2502
+ _.$slider.addClass('slick-loading');
2503
+
2504
+ };
2505
+
2506
+ Slick.prototype.swipeDirection = function() {
2507
+
2508
+ var xDist, yDist, r, swipeAngle, _ = this;
2509
+
2510
+ xDist = _.touchObject.startX - _.touchObject.curX;
2511
+ yDist = _.touchObject.startY - _.touchObject.curY;
2512
+ r = Math.atan2(yDist, xDist);
2513
+
2514
+ swipeAngle = Math.round(r * 180 / Math.PI);
2515
+ if (swipeAngle < 0) {
2516
+ swipeAngle = 360 - Math.abs(swipeAngle);
2517
+ }
2518
+
2519
+ if ((swipeAngle <= 45) && (swipeAngle >= 0)) {
2520
+ return (_.options.rtl === false ? 'left' : 'right');
2521
+ }
2522
+ if ((swipeAngle <= 360) && (swipeAngle >= 315)) {
2523
+ return (_.options.rtl === false ? 'left' : 'right');
2524
+ }
2525
+ if ((swipeAngle >= 135) && (swipeAngle <= 225)) {
2526
+ return (_.options.rtl === false ? 'right' : 'left');
2527
+ }
2528
+ if (_.options.verticalSwiping === true) {
2529
+ if ((swipeAngle >= 35) && (swipeAngle <= 135)) {
2530
+ return 'down';
2531
+ } else {
2532
+ return 'up';
2533
+ }
2534
+ }
2535
+
2536
+ return 'vertical';
2537
+
2538
+ };
2539
+
2540
+ Slick.prototype.swipeEnd = function(event) {
2541
+
2542
+ var _ = this,
2543
+ slideCount,
2544
+ direction;
2545
+
2546
+ _.dragging = false;
2547
+ _.interrupted = false;
2548
+ _.shouldClick = ( _.touchObject.swipeLength > 10 ) ? false : true;
2549
+
2550
+ if ( _.touchObject.curX === undefined ) {
2551
+ return false;
2552
+ }
2553
+
2554
+ if ( _.touchObject.edgeHit === true ) {
2555
+ _.$slider.trigger('edge', [_, _.swipeDirection() ]);
2556
+ }
2557
+
2558
+ if ( _.touchObject.swipeLength >= _.touchObject.minSwipe ) {
2559
+
2560
+ direction = _.swipeDirection();
2561
+
2562
+ switch ( direction ) {
2563
+
2564
+ case 'left':
2565
+ case 'down':
2566
+
2567
+ slideCount =
2568
+ _.options.swipeToSlide ?
2569
+ _.checkNavigable( _.currentSlide + _.getSlideCount() ) :
2570
+ _.currentSlide + _.getSlideCount();
2571
+
2572
+ _.currentDirection = 0;
2573
+
2574
+ break;
2575
+
2576
+ case 'right':
2577
+ case 'up':
2578
+
2579
+ slideCount =
2580
+ _.options.swipeToSlide ?
2581
+ _.checkNavigable( _.currentSlide - _.getSlideCount() ) :
2582
+ _.currentSlide - _.getSlideCount();
2583
+
2584
+ _.currentDirection = 1;
2585
+
2586
+ break;
2587
+
2588
+ default:
2589
+
2590
+
2591
+ }
2592
+
2593
+ if( direction != 'vertical' ) {
2594
+
2595
+ _.slideHandler( slideCount );
2596
+ _.touchObject = {};
2597
+ _.$slider.trigger('swipe', [_, direction ]);
2598
+
2599
+ }
2600
+
2601
+ } else {
2602
+
2603
+ if ( _.touchObject.startX !== _.touchObject.curX ) {
2604
+
2605
+ _.slideHandler( _.currentSlide );
2606
+ _.touchObject = {};
2607
+
2608
+ }
2609
+
2610
+ }
2611
+
2612
+ };
2613
+
2614
+ Slick.prototype.swipeHandler = function(event) {
2615
+
2616
+ var _ = this;
2617
+
2618
+ if ((_.options.swipe === false) || ('ontouchend' in document && _.options.swipe === false)) {
2619
+ return;
2620
+ } else if (_.options.draggable === false && event.type.indexOf('mouse') !== -1) {
2621
+ return;
2622
+ }
2623
+
2624
+ _.touchObject.fingerCount = event.originalEvent && event.originalEvent.touches !== undefined ?
2625
+ event.originalEvent.touches.length : 1;
2626
+
2627
+ _.touchObject.minSwipe = _.listWidth / _.options
2628
+ .touchThreshold;
2629
+
2630
+ if (_.options.verticalSwiping === true) {
2631
+ _.touchObject.minSwipe = _.listHeight / _.options
2632
+ .touchThreshold;
2633
+ }
2634
+
2635
+ switch (event.data.action) {
2636
+
2637
+ case 'start':
2638
+ _.swipeStart(event);
2639
+ break;
2640
+
2641
+ case 'move':
2642
+ _.swipeMove(event);
2643
+ break;
2644
+
2645
+ case 'end':
2646
+ _.swipeEnd(event);
2647
+ break;
2648
+
2649
+ }
2650
+
2651
+ };
2652
+
2653
+ Slick.prototype.swipeMove = function(event) {
2654
+
2655
+ var _ = this,
2656
+ edgeWasHit = false,
2657
+ curLeft, swipeDirection, swipeLength, positionOffset, touches;
2658
+
2659
+ touches = event.originalEvent !== undefined ? event.originalEvent.touches : null;
2660
+
2661
+ if (!_.dragging || touches && touches.length !== 1) {
2662
+ return false;
2663
+ }
2664
+
2665
+ curLeft = _.getLeft(_.currentSlide);
2666
+
2667
+ _.touchObject.curX = touches !== undefined ? touches[0].pageX : event.clientX;
2668
+ _.touchObject.curY = touches !== undefined ? touches[0].pageY : event.clientY;
2669
+
2670
+ _.touchObject.swipeLength = Math.round(Math.sqrt(
2671
+ Math.pow(_.touchObject.curX - _.touchObject.startX, 2)));
2672
+
2673
+ if (_.options.verticalSwiping === true) {
2674
+ _.touchObject.swipeLength = Math.round(Math.sqrt(
2675
+ Math.pow(_.touchObject.curY - _.touchObject.startY, 2)));
2676
+ }
2677
+
2678
+ swipeDirection = _.swipeDirection();
2679
+
2680
+ if (swipeDirection === 'vertical') {
2681
+ return;
2682
+ }
2683
+
2684
+ if (event.originalEvent !== undefined && _.touchObject.swipeLength > 4) {
2685
+ event.preventDefault();
2686
+ }
2687
+
2688
+ positionOffset = (_.options.rtl === false ? 1 : -1) * (_.touchObject.curX > _.touchObject.startX ? 1 : -1);
2689
+ if (_.options.verticalSwiping === true) {
2690
+ positionOffset = _.touchObject.curY > _.touchObject.startY ? 1 : -1;
2691
+ }
2692
+
2693
+
2694
+ swipeLength = _.touchObject.swipeLength;
2695
+
2696
+ _.touchObject.edgeHit = false;
2697
+
2698
+ if (_.options.infinite === false) {
2699
+ if ((_.currentSlide === 0 && swipeDirection === 'right') || (_.currentSlide >= _.getDotCount() && swipeDirection === 'left')) {
2700
+ swipeLength = _.touchObject.swipeLength * _.options.edgeFriction;
2701
+ _.touchObject.edgeHit = true;
2702
+ }
2703
+ }
2704
+
2705
+ if (_.options.vertical === false) {
2706
+ _.swipeLeft = curLeft + swipeLength * positionOffset;
2707
+ } else {
2708
+ _.swipeLeft = curLeft + (swipeLength * (_.$list.height() / _.listWidth)) * positionOffset;
2709
+ }
2710
+ if (_.options.verticalSwiping === true) {
2711
+ _.swipeLeft = curLeft + swipeLength * positionOffset;
2712
+ }
2713
+
2714
+ if (_.options.fade === true || _.options.touchMove === false) {
2715
+ return false;
2716
+ }
2717
+
2718
+ if (_.animating === true) {
2719
+ _.swipeLeft = null;
2720
+ return false;
2721
+ }
2722
+
2723
+ _.setCSS(_.swipeLeft);
2724
+
2725
+ };
2726
+
2727
+ Slick.prototype.swipeStart = function(event) {
2728
+
2729
+ var _ = this,
2730
+ touches;
2731
+
2732
+ _.interrupted = true;
2733
+
2734
+ if (_.touchObject.fingerCount !== 1 || _.slideCount <= _.options.slidesToShow) {
2735
+ _.touchObject = {};
2736
+ return false;
2737
+ }
2738
+
2739
+ if (event.originalEvent !== undefined && event.originalEvent.touches !== undefined) {
2740
+ touches = event.originalEvent.touches[0];
2741
+ }
2742
+
2743
+ _.touchObject.startX = _.touchObject.curX = touches !== undefined ? touches.pageX : event.clientX;
2744
+ _.touchObject.startY = _.touchObject.curY = touches !== undefined ? touches.pageY : event.clientY;
2745
+
2746
+ _.dragging = true;
2747
+
2748
+ };
2749
+
2750
+ Slick.prototype.unfilterSlides = Slick.prototype.slickUnfilter = function() {
2751
+
2752
+ var _ = this;
2753
+
2754
+ if (_.$slidesCache !== null) {
2755
+
2756
+ _.unload();
2757
+
2758
+ _.$slideTrack.children(this.options.slide).detach();
2759
+
2760
+ _.$slidesCache.appendTo(_.$slideTrack);
2761
+
2762
+ _.reinit();
2763
+
2764
+ }
2765
+
2766
+ };
2767
+
2768
+ Slick.prototype.unload = function() {
2769
+
2770
+ var _ = this;
2771
+
2772
+ $('.slick-cloned', _.$slider).remove();
2773
+
2774
+ if (_.$dots) {
2775
+ _.$dots.remove();
2776
+ }
2777
+
2778
+ if (_.$prevArrow && _.htmlExpr.test(_.options.prevArrow)) {
2779
+ _.$prevArrow.remove();
2780
+ }
2781
+
2782
+ if (_.$nextArrow && _.htmlExpr.test(_.options.nextArrow)) {
2783
+ _.$nextArrow.remove();
2784
+ }
2785
+
2786
+ _.$slides
2787
+ .removeClass('slick-slide slick-active slick-visible slick-current')
2788
+ .attr('aria-hidden', 'true')
2789
+ .css('width', '');
2790
+
2791
+ };
2792
+
2793
+ Slick.prototype.unslick = function(fromBreakpoint) {
2794
+
2795
+ var _ = this;
2796
+ _.$slider.trigger('unslick', [_, fromBreakpoint]);
2797
+ _.destroy();
2798
+
2799
+ };
2800
+
2801
+ Slick.prototype.updateArrows = function() {
2802
+
2803
+ var _ = this,
2804
+ centerOffset;
2805
+
2806
+ centerOffset = Math.floor(_.options.slidesToShow / 2);
2807
+
2808
+ if ( _.options.arrows === true &&
2809
+ _.slideCount > _.options.slidesToShow &&
2810
+ !_.options.infinite ) {
2811
+
2812
+ _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2813
+ _.$nextArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2814
+
2815
+ if (_.currentSlide === 0) {
2816
+
2817
+ _.$prevArrow.addClass('slick-disabled').attr('aria-disabled', 'true');
2818
+ _.$nextArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2819
+
2820
+ } else if (_.currentSlide >= _.slideCount - _.options.slidesToShow && _.options.centerMode === false) {
2821
+
2822
+ _.$nextArrow.addClass('slick-disabled').attr('aria-disabled', 'true');
2823
+ _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2824
+
2825
+ } else if (_.currentSlide >= _.slideCount - 1 && _.options.centerMode === true) {
2826
+
2827
+ _.$nextArrow.addClass('slick-disabled').attr('aria-disabled', 'true');
2828
+ _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2829
+
2830
+ }
2831
+
2832
+ }
2833
+
2834
+ };
2835
+
2836
+ Slick.prototype.updateDots = function() {
2837
+
2838
+ var _ = this;
2839
+ console.log("update dots");
2840
+ //if (_.$dots !== null) {
2841
+
2842
+ _.$dots
2843
+ .find('li')
2844
+ .removeClass('slick-active')
2845
+ .attr('aria-hidden','true')
2846
+ .attr('aria-selected', 'false');
2847
+
2848
+ _.$dots
2849
+ .find('li')
2850
+ .eq(Math.floor(_.currentSlide / _.options.slidesToScroll))
2851
+ .addClass('slick-active')
2852
+ .attr('aria-hidden','false')
2853
+ .attr('aria-selected', 'true');
2854
+
2855
+ //}
2856
+
2857
+ };
2858
+
2859
+ Slick.prototype.visibility = function() {
2860
+
2861
+ var _ = this;
2862
+
2863
+ if ( _.options.autoplay ) {
2864
+
2865
+ if ( document[_.hidden] ) {
2866
+
2867
+ _.interrupted = true;
2868
+
2869
+ } else {
2870
+
2871
+ _.interrupted = false;
2872
+
2873
+ }
2874
+
2875
+ }
2876
+
2877
+ };
2878
+ $.fn.slick = function() {
2879
+ var _ = this,
2880
+ opt = arguments[0],
2881
+ args = Array.prototype.slice.call(arguments, 1),
2882
+ l = _.length,
2883
+ i,
2884
+ ret;
2885
+ for (i = 0; i < l; i++) {
2886
+ if (typeof opt == 'object' || typeof opt == 'undefined')
2887
+ _[i].slick = new Slick(_[i], opt);
2888
+ else
2889
+ ret = _[i].slick[opt].apply(_[i].slick, args);
2890
+ if (typeof ret != 'undefined') return ret;
2891
+ }
2892
+ return _;
2893
+ };
2894
+
2895
+ }));
public/assets/js/slick.min.js CHANGED
@@ -1,18 +1 @@
1
- /*
2
- _ _ _ _
3
- ___| (_) ___| | __ (_)___
4
- / __| | |/ __| |/ / | / __|
5
- \__ \ | | (__| < _ | \__ \
6
- |___/_|_|\___|_|\_(_)/ |___/
7
- |__/
8
-
9
- Version: 1.6.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
- !function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.Slick||{};b=function(){function c(c,d){var f,e=this;e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(c),appendDots:a(c),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(b,c){return a('<button type="button" data-role="none" role="button" tabindex="0" />').text(c+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!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},e.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,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},a.extend(e,e.initials),e.activeBreakpoint=null,e.animType=null,e.animProp=null,e.breakpoints=[],e.breakpointSettings=[],e.cssTransitions=!1,e.focussed=!1,e.interrupted=!1,e.hidden="hidden",e.paused=!0,e.positionProp=null,e.respondTo=null,e.rowCount=1,e.shouldClick=!0,e.$slider=a(c),e.$slidesCache=null,e.transformType=null,e.transitionType=null,e.visibilityChange="visibilitychange",e.windowWidth=0,e.windowTimer=null,f=a(c).data("slick")||{},e.options=a.extend({},e.defaults,d,f),e.currentSlide=e.options.initialSlide,e.originalSettings=e.options,"undefined"!=typeof document.mozHidden?(e.hidden="mozHidden",e.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(e.hidden="webkitHidden",e.visibilityChange="webkitvisibilitychange"),e.autoPlay=a.proxy(e.autoPlay,e),e.autoPlayClear=a.proxy(e.autoPlayClear,e),e.autoPlayIterator=a.proxy(e.autoPlayIterator,e),e.changeSlide=a.proxy(e.changeSlide,e),e.clickHandler=a.proxy(e.clickHandler,e),e.selectHandler=a.proxy(e.selectHandler,e),e.setPosition=a.proxy(e.setPosition,e),e.swipeHandler=a.proxy(e.swipeHandler,e),e.dragHandler=a.proxy(e.dragHandler,e),e.keyHandler=a.proxy(e.keyHandler,e),e.instanceUid=b++,e.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,e.registerBreakpoints(),e.init(!0)}var b=0;return c}(),b.prototype.activateADA=function(){var a=this;a.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},b.prototype.addSlide=b.prototype.slickAdd=function(b,c,d){var e=this;if("boolean"==typeof c)d=c,c=null;else if(0>c||c>=e.slideCount)return!1;e.unload(),"number"==typeof c?0===c&&0===e.$slides.length?a(b).appendTo(e.$slideTrack):d?a(b).insertBefore(e.$slides.eq(c)):a(b).insertAfter(e.$slides.eq(c)):d===!0?a(b).prependTo(e.$slideTrack):a(b).appendTo(e.$slideTrack),e.$slides=e.$slideTrack.children(this.options.slide),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.append(e.$slides),e.$slides.each(function(b,c){a(c).attr("data-slick-index",b)}),e.$slidesCache=e.$slides,e.reinit()},b.prototype.animateHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.animate({height:b},a.options.speed)}},b.prototype.animateSlide=function(b,c){var d={},e=this;e.animateHeight(),e.options.rtl===!0&&e.options.vertical===!1&&(b=-b),e.transformsEnabled===!1?e.options.vertical===!1?e.$slideTrack.animate({left:b},e.options.speed,e.options.easing,c):e.$slideTrack.animate({top:b},e.options.speed,e.options.easing,c):e.cssTransitions===!1?(e.options.rtl===!0&&(e.currentLeft=-e.currentLeft),a({animStart:e.currentLeft}).animate({animStart:b},{duration:e.options.speed,easing:e.options.easing,step:function(a){a=Math.ceil(a),e.options.vertical===!1?(d[e.animType]="translate("+a+"px, 0px)",e.$slideTrack.css(d)):(d[e.animType]="translate(0px,"+a+"px)",e.$slideTrack.css(d))},complete:function(){c&&c.call()}})):(e.applyTransition(),b=Math.ceil(b),e.options.vertical===!1?d[e.animType]="translate3d("+b+"px, 0px, 0px)":d[e.animType]="translate3d(0px,"+b+"px, 0px)",e.$slideTrack.css(d),c&&setTimeout(function(){e.disableTransition(),c.call()},e.options.speed))},b.prototype.getNavTarget=function(){var b=this,c=b.options.asNavFor;return c&&null!==c&&(c=a(c).not(b.$slider)),c},b.prototype.asNavFor=function(b){var c=this,d=c.getNavTarget();null!==d&&"object"==typeof d&&d.each(function(){var c=a(this).slick("getSlick");c.unslicked||c.slideHandler(b,!0)})},b.prototype.applyTransition=function(a){var b=this,c={};b.options.fade===!1?c[b.transitionType]=b.transformType+" "+b.options.speed+"ms "+b.options.cssEase:c[b.transitionType]="opacity "+b.options.speed+"ms "+b.options.cssEase,b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.autoPlay=function(){var a=this;a.autoPlayClear(),a.slideCount>a.options.slidesToShow&&(a.autoPlayTimer=setInterval(a.autoPlayIterator,a.options.autoplaySpeed))},b.prototype.autoPlayClear=function(){var a=this;a.autoPlayTimer&&clearInterval(a.autoPlayTimer)},b.prototype.autoPlayIterator=function(){var a=this,b=a.currentSlide+a.options.slidesToScroll;a.paused||a.interrupted||a.focussed||(a.options.infinite===!1&&(1===a.direction&&a.currentSlide+1===a.slideCount-1?a.direction=0:0===a.direction&&(b=a.currentSlide-a.options.slidesToScroll,a.currentSlide-1===0&&(a.direction=1))),a.slideHandler(b))},b.prototype.buildArrows=function(){var b=this;b.options.arrows===!0&&(b.$prevArrow=a(b.options.prevArrow).addClass("slick-arrow"),b.$nextArrow=a(b.options.nextArrow).addClass("slick-arrow"),b.slideCount>b.options.slidesToShow?(b.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),b.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.prependTo(b.options.appendArrows),b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.appendTo(b.options.appendArrows),b.options.infinite!==!0&&b.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):b.$prevArrow.add(b.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},b.prototype.buildDots=function(){var c,d,b=this;if(b.options.dots===!0&&b.slideCount>b.options.slidesToShow){for(b.$slider.addClass("slick-dotted"),d=a("<ul />").addClass(b.options.dotsClass),c=0;c<=b.getDotCount();c+=1)d.append(a("<li />").append(b.options.customPaging.call(this,b,c)));b.$dots=d.appendTo(b.options.appendDots),b.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},b.prototype.buildOut=function(){var b=this;b.$slides=b.$slider.children(b.options.slide+":not(.slick-cloned)").addClass("slick-slide"),b.slideCount=b.$slides.length,b.$slides.each(function(b,c){a(c).attr("data-slick-index",b).data("originalStyling",a(c).attr("style")||"")}),b.$slider.addClass("slick-slider"),b.$slideTrack=0===b.slideCount?a('<div class="slick-track"/>').appendTo(b.$slider):b.$slides.wrapAll('<div class="slick-track"/>').parent(),b.$list=b.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),b.$slideTrack.css("opacity",0),(b.options.centerMode===!0||b.options.swipeToSlide===!0)&&(b.options.slidesToScroll=1),a("img[data-lazy]",b.$slider).not("[src]").addClass("slick-loading"),b.setupInfinite(),b.buildArrows(),b.buildDots(),b.updateDots(),b.setSlideClasses("number"==typeof b.currentSlide?b.currentSlide:0),b.options.draggable===!0&&b.$list.addClass("draggable")},b.prototype.buildRows=function(){var b,c,d,e,f,g,h,a=this;if(e=document.createDocumentFragment(),g=a.$slider.children(),a.options.rows>1){for(h=a.options.slidesPerRow*a.options.rows,f=Math.ceil(g.length/h),b=0;f>b;b++){var i=document.createElement("div");for(c=0;c<a.options.rows;c++){var j=document.createElement("div");for(d=0;d<a.options.slidesPerRow;d++){var k=b*h+(c*a.options.slidesPerRow+d);g.get(k)&&j.appendChild(g.get(k))}i.appendChild(j)}e.appendChild(i)}a.$slider.empty().append(e),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},b.prototype.checkResponsive=function(b,c){var e,f,g,d=this,h=!1,i=d.$slider.width(),j=window.innerWidth||a(window).width();if("window"===d.respondTo?g=j:"slider"===d.respondTo?g=i:"min"===d.respondTo&&(g=Math.min(j,i)),d.options.responsive&&d.options.responsive.length&&null!==d.options.responsive){f=null;for(e in d.breakpoints)d.breakpoints.hasOwnProperty(e)&&(d.originalSettings.mobileFirst===!1?g<d.breakpoints[e]&&(f=d.breakpoints[e]):g>d.breakpoints[e]&&(f=d.breakpoints[e]));null!==f?null!==d.activeBreakpoint?(f!==d.activeBreakpoint||c)&&(d.activeBreakpoint=f,"unslick"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):(d.activeBreakpoint=f,"unslick"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):null!==d.activeBreakpoint&&(d.activeBreakpoint=null,d.options=d.originalSettings,b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b),h=f),b||h===!1||d.$slider.trigger("breakpoint",[d,h])}},b.prototype.changeSlide=function(b,c){var f,g,h,d=this,e=a(b.currentTarget);switch(e.is("a")&&b.preventDefault(),e.is("li")||(e=e.closest("li")),h=d.slideCount%d.options.slidesToScroll!==0,f=h?0:(d.slideCount-d.currentSlide)%d.options.slidesToScroll,b.data.message){case"previous":g=0===f?d.options.slidesToScroll:d.options.slidesToShow-f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide-g,!1,c);break;case"next":g=0===f?d.options.slidesToScroll:f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide+g,!1,c);break;case"index":var i=0===b.data.index?0:b.data.index||e.index()*d.options.slidesToScroll;d.slideHandler(d.checkNavigable(i),!1,c),e.children().trigger("focus");break;default:return}},b.prototype.checkNavigable=function(a){var c,d,b=this;if(c=b.getNavigableIndexes(),d=0,a>c[c.length-1])a=c[c.length-1];else for(var e in c){if(a<c[e]){a=d;break}d=c[e]}return a},b.prototype.cleanUpEvents=function(){var b=this;b.options.dots&&null!==b.$dots&&a("li",b.$dots).off("click.slick",b.changeSlide).off("mouseenter.slick",a.proxy(b.interrupt,b,!0)).off("mouseleave.slick",a.proxy(b.interrupt,b,!1)),b.$slider.off("focus.slick blur.slick"),b.options.arrows===!0&&b.slideCount>b.options.slidesToShow&&(b.$prevArrow&&b.$prevArrow.off("click.slick",b.changeSlide),b.$nextArrow&&b.$nextArrow.off("click.slick",b.changeSlide)),b.$list.off("touchstart.slick mousedown.slick",b.swipeHandler),b.$list.off("touchmove.slick mousemove.slick",b.swipeHandler),b.$list.off("touchend.slick mouseup.slick",b.swipeHandler),b.$list.off("touchcancel.slick mouseleave.slick",b.swipeHandler),b.$list.off("click.slick",b.clickHandler),a(document).off(b.visibilityChange,b.visibility),b.cleanUpSlideEvents(),b.options.accessibility===!0&&b.$list.off("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().off("click.slick",b.selectHandler),a(window).off("orientationchange.slick.slick-"+b.instanceUid,b.orientationChange),a(window).off("resize.slick.slick-"+b.instanceUid,b.resize),a("[draggable!=true]",b.$slideTrack).off("dragstart",b.preventDefault),a(window).off("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).off("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.cleanUpSlideEvents=function(){var b=this;b.$list.off("mouseenter.slick",a.proxy(b.interrupt,b,!0)),b.$list.off("mouseleave.slick",a.proxy(b.interrupt,b,!1))},b.prototype.cleanUpRows=function(){var b,a=this;a.options.rows>1&&(b=a.$slides.children().children(),b.removeAttr("style"),a.$slider.empty().append(b))},b.prototype.clickHandler=function(a){var b=this;b.shouldClick===!1&&(a.stopImmediatePropagation(),a.stopPropagation(),a.preventDefault())},b.prototype.destroy=function(b){var c=this;c.autoPlayClear(),c.touchObject={},c.cleanUpEvents(),a(".slick-cloned",c.$slider).detach(),c.$dots&&c.$dots.remove(),c.$prevArrow&&c.$prevArrow.length&&(c.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.prevArrow)&&c.$prevArrow.remove()),c.$nextArrow&&c.$nextArrow.length&&(c.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.nextArrow)&&c.$nextArrow.remove()),c.$slides&&(c.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){a(this).attr("style",a(this).data("originalStyling"))}),c.$slideTrack.children(this.options.slide).detach(),c.$slideTrack.detach(),c.$list.detach(),c.$slider.append(c.$slides)),c.cleanUpRows(),c.$slider.removeClass("slick-slider"),c.$slider.removeClass("slick-initialized"),c.$slider.removeClass("slick-dotted"),c.unslicked=!0,b||c.$slider.trigger("destroy",[c])},b.prototype.disableTransition=function(a){var b=this,c={};c[b.transitionType]="",b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.fadeSlide=function(a,b){var c=this;c.cssTransitions===!1?(c.$slides.eq(a).css({zIndex:c.options.zIndex}),c.$slides.eq(a).animate({opacity:1},c.options.speed,c.options.easing,b)):(c.applyTransition(a),c.$slides.eq(a).css({opacity:1,zIndex:c.options.zIndex}),b&&setTimeout(function(){c.disableTransition(a),b.call()},c.options.speed))},b.prototype.fadeSlideOut=function(a){var b=this;b.cssTransitions===!1?b.$slides.eq(a).animate({opacity:0,zIndex:b.options.zIndex-2},b.options.speed,b.options.easing):(b.applyTransition(a),b.$slides.eq(a).css({opacity:0,zIndex:b.options.zIndex-2}))},b.prototype.filterSlides=b.prototype.slickFilter=function(a){var b=this;null!==a&&(b.$slidesCache=b.$slides,b.unload(),b.$slideTrack.children(this.options.slide).detach(),b.$slidesCache.filter(a).appendTo(b.$slideTrack),b.reinit())},b.prototype.focusHandler=function(){var b=this;b.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(c){c.stopImmediatePropagation();var d=a(this);setTimeout(function(){b.options.pauseOnFocus&&(b.focussed=d.is(":focus"),b.autoPlay())},0)})},b.prototype.getCurrent=b.prototype.slickCurrentSlide=function(){var a=this;return a.currentSlide},b.prototype.getDotCount=function(){var a=this,b=0,c=0,d=0;if(a.options.infinite===!0)for(;b<a.slideCount;)++d,b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else if(a.options.centerMode===!0)d=a.slideCount;else if(a.options.asNavFor)for(;b<a.slideCount;)++d,b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else d=1+Math.ceil((a.slideCount-a.options.slidesToShow)/a.options.slidesToScroll);return d-1},b.prototype.getLeft=function(a){var c,d,f,b=this,e=0;return b.slideOffset=0,d=b.$slides.first().outerHeight(!0),b.options.infinite===!0?(b.slideCount>b.options.slidesToShow&&(b.slideOffset=b.slideWidth*b.options.slidesToShow*-1,e=d*b.options.slidesToShow*-1),b.slideCount%b.options.slidesToScroll!==0&&a+b.options.slidesToScroll>b.slideCount&&b.slideCount>b.options.slidesToShow&&(a>b.slideCount?(b.slideOffset=(b.options.slidesToShow-(a-b.slideCount))*b.slideWidth*-1,e=(b.options.slidesToShow-(a-b.slideCount))*d*-1):(b.slideOffset=b.slideCount%b.options.slidesToScroll*b.slideWidth*-1,e=b.slideCount%b.options.slidesToScroll*d*-1))):a+b.options.slidesToShow>b.slideCount&&(b.slideOffset=(a+b.options.slidesToShow-b.slideCount)*b.slideWidth,e=(a+b.options.slidesToShow-b.slideCount)*d),b.slideCount<=b.options.slidesToShow&&(b.slideOffset=0,e=0),b.options.centerMode===!0&&b.options.infinite===!0?b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)-b.slideWidth:b.options.centerMode===!0&&(b.slideOffset=0,b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)),c=b.options.vertical===!1?a*b.slideWidth*-1+b.slideOffset:a*d*-1+e,b.options.variableWidth===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow),c=b.options.rtl===!0?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,b.options.centerMode===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow+1),c=b.options.rtl===!0?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,c+=(b.$list.width()-f.outerWidth())/2)),c},b.prototype.getOption=b.prototype.slickGetOption=function(a){var b=this;return b.options[a]},b.prototype.getNavigableIndexes=function(){var e,a=this,b=0,c=0,d=[];for(a.options.infinite===!1?e=a.slideCount:(b=-1*a.options.slidesToScroll,c=-1*a.options.slidesToScroll,e=2*a.slideCount);e>b;)d.push(b),b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;return d},b.prototype.getSlick=function(){return this},b.prototype.getSlideCount=function(){var c,d,e,b=this;return e=b.options.centerMode===!0?b.slideWidth*Math.floor(b.options.slidesToShow/2):0,b.options.swipeToSlide===!0?(b.$slideTrack.find(".slick-slide").each(function(c,f){return f.offsetLeft-e+a(f).outerWidth()/2>-1*b.swipeLeft?(d=f,!1):void 0}),c=Math.abs(a(d).attr("data-slick-index")-b.currentSlide)||1):b.options.slidesToScroll},b.prototype.goTo=b.prototype.slickGoTo=function(a,b){var c=this;c.changeSlide({data:{message:"index",index:parseInt(a)}},b)},b.prototype.init=function(b){var c=this;a(c.$slider).hasClass("slick-initialized")||(a(c.$slider).addClass("slick-initialized"),c.buildRows(),c.buildOut(),c.setProps(),c.startLoad(),c.loadSlider(),c.initializeEvents(),c.updateArrows(),c.updateDots(),c.checkResponsive(!0),c.focusHandler()),b&&c.$slider.trigger("init",[c]),c.options.accessibility===!0&&c.initADA(),c.options.autoplay&&(c.paused=!1,c.autoPlay())},b.prototype.initADA=function(){var b=this;b.$slides.add(b.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),b.$slideTrack.attr("role","listbox"),b.$slides.not(b.$slideTrack.find(".slick-cloned")).each(function(c){a(this).attr({role:"option","aria-describedby":"slick-slide"+b.instanceUid+c})}),null!==b.$dots&&b.$dots.attr("role","tablist").find("li").each(function(c){a(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+b.instanceUid+c,id:"slick-slide"+b.instanceUid+c})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),b.activateADA()},b.prototype.initArrowEvents=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},a.changeSlide),a.$nextArrow.off("click.slick").on("click.slick",{message:"next"},a.changeSlide))},b.prototype.initDotEvents=function(){var b=this;b.options.dots===!0&&b.slideCount>b.options.slidesToShow&&a("li",b.$dots).on("click.slick",{message:"index"},b.changeSlide),b.options.dots===!0&&b.options.pauseOnDotsHover===!0&&a("li",b.$dots).on("mouseenter.slick",a.proxy(b.interrupt,b,!0)).on("mouseleave.slick",a.proxy(b.interrupt,b,!1))},b.prototype.initSlideEvents=function(){var b=this;b.options.pauseOnHover&&(b.$list.on("mouseenter.slick",a.proxy(b.interrupt,b,!0)),b.$list.on("mouseleave.slick",a.proxy(b.interrupt,b,!1)))},b.prototype.initializeEvents=function(){var b=this;b.initArrowEvents(),b.initDotEvents(),b.initSlideEvents(),b.$list.on("touchstart.slick mousedown.slick",{action:"start"},b.swipeHandler),b.$list.on("touchmove.slick mousemove.slick",{action:"move"},b.swipeHandler),b.$list.on("touchend.slick mouseup.slick",{action:"end"},b.swipeHandler),b.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},b.swipeHandler),b.$list.on("click.slick",b.clickHandler),a(document).on(b.visibilityChange,a.proxy(b.visibility,b)),b.options.accessibility===!0&&b.$list.on("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),a(window).on("orientationchange.slick.slick-"+b.instanceUid,a.proxy(b.orientationChange,b)),a(window).on("resize.slick.slick-"+b.instanceUid,a.proxy(b.resize,b)),a("[draggable!=true]",b.$slideTrack).on("dragstart",b.preventDefault),a(window).on("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).on("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.initUI=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.show(),a.$nextArrow.show()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.show()},b.prototype.keyHandler=function(a){var b=this;a.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===a.keyCode&&b.options.accessibility===!0?b.changeSlide({data:{message:b.options.rtl===!0?"next":"previous"}}):39===a.keyCode&&b.options.accessibility===!0&&b.changeSlide({data:{message:b.options.rtl===!0?"previous":"next"}}))},b.prototype.lazyLoad=function(){function g(c){a("img[data-lazy]",c).each(function(){var c=a(this),d=a(this).attr("data-lazy"),e=document.createElement("img");e.onload=function(){c.animate({opacity:0},100,function(){c.attr("src",d).animate({opacity:1},200,function(){c.removeAttr("data-lazy").removeClass("slick-loading")}),b.$slider.trigger("lazyLoaded",[b,c,d])})},e.onerror=function(){c.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),b.$slider.trigger("lazyLoadError",[b,c,d])},e.src=d})}var c,d,e,f,b=this;b.options.centerMode===!0?b.options.infinite===!0?(e=b.currentSlide+(b.options.slidesToShow/2+1),f=e+b.options.slidesToShow+2):(e=Math.max(0,b.currentSlide-(b.options.slidesToShow/2+1)),f=2+(b.options.slidesToShow/2+1)+b.currentSlide):(e=b.options.infinite?b.options.slidesToShow+b.currentSlide:b.currentSlide,f=Math.ceil(e+b.options.slidesToShow),b.options.fade===!0&&(e>0&&e--,f<=b.slideCount&&f++)),c=b.$slider.find(".slick-slide").slice(e,f),g(c),b.slideCount<=b.options.slidesToShow?(d=b.$slider.find(".slick-slide"),g(d)):b.currentSlide>=b.slideCount-b.options.slidesToShow?(d=b.$slider.find(".slick-cloned").slice(0,b.options.slidesToShow),g(d)):0===b.currentSlide&&(d=b.$slider.find(".slick-cloned").slice(-1*b.options.slidesToShow),g(d))},b.prototype.loadSlider=function(){var a=this;a.setPosition(),a.$slideTrack.css({opacity:1}),a.$slider.removeClass("slick-loading"),a.initUI(),"progressive"===a.options.lazyLoad&&a.progressiveLazyLoad()},b.prototype.next=b.prototype.slickNext=function(){var a=this;a.changeSlide({data:{message:"next"}})},b.prototype.orientationChange=function(){var a=this;a.checkResponsive(),a.setPosition()},b.prototype.pause=b.prototype.slickPause=function(){var a=this;a.autoPlayClear(),a.paused=!0},b.prototype.play=b.prototype.slickPlay=function(){var a=this;a.autoPlay(),a.options.autoplay=!0,a.paused=!1,a.focussed=!1,a.interrupted=!1},b.prototype.postSlide=function(a){var b=this;b.unslicked||(b.$slider.trigger("afterChange",[b,a]),b.animating=!1,b.setPosition(),b.swipeLeft=null,b.options.autoplay&&b.autoPlay(),b.options.accessibility===!0&&b.initADA())},b.prototype.prev=b.prototype.slickPrev=function(){var a=this;a.changeSlide({data:{message:"previous"}})},b.prototype.preventDefault=function(a){a.preventDefault()},b.prototype.progressiveLazyLoad=function(b){b=b||1;var e,f,g,c=this,d=a("img[data-lazy]",c.$slider);d.length?(e=d.first(),f=e.attr("data-lazy"),g=document.createElement("img"),g.onload=function(){e.attr("src",f).removeAttr("data-lazy").removeClass("slick-loading"),c.options.adaptiveHeight===!0&&c.setPosition(),c.$slider.trigger("lazyLoaded",[c,e,f]),c.progressiveLazyLoad()},g.onerror=function(){3>b?setTimeout(function(){c.progressiveLazyLoad(b+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),c.$slider.trigger("lazyLoadError",[c,e,f]),c.progressiveLazyLoad())},g.src=f):c.$slider.trigger("allImagesLoaded",[c])},b.prototype.refresh=function(b){var d,e,c=this;e=c.slideCount-c.options.slidesToShow,!c.options.infinite&&c.currentSlide>e&&(c.currentSlide=e),c.slideCount<=c.options.slidesToShow&&(c.currentSlide=0),d=c.currentSlide,c.destroy(!0),a.extend(c,c.initials,{currentSlide:d}),c.init(),b||c.changeSlide({data:{message:"index",index:d}},!1)},b.prototype.registerBreakpoints=function(){var c,d,e,b=this,f=b.options.responsive||null;if("array"===a.type(f)&&f.length){b.respondTo=b.options.respondTo||"window";for(c in f)if(e=b.breakpoints.length-1,d=f[c].breakpoint,f.hasOwnProperty(c)){for(;e>=0;)b.breakpoints[e]&&b.breakpoints[e]===d&&b.breakpoints.splice(e,1),e--;b.breakpoints.push(d),b.breakpointSettings[d]=f[c].settings}b.breakpoints.sort(function(a,c){return b.options.mobileFirst?a-c:c-a})}},b.prototype.reinit=function(){var b=this;b.$slides=b.$slideTrack.children(b.options.slide).addClass("slick-slide"),b.slideCount=b.$slides.length,b.currentSlide>=b.slideCount&&0!==b.currentSlide&&(b.currentSlide=b.currentSlide-b.options.slidesToScroll),b.slideCount<=b.options.slidesToShow&&(b.currentSlide=0),b.registerBreakpoints(),b.setProps(),b.setupInfinite(),b.buildArrows(),b.updateArrows(),b.initArrowEvents(),b.buildDots(),b.updateDots(),b.initDotEvents(),b.cleanUpSlideEvents(),b.initSlideEvents(),b.checkResponsive(!1,!0),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),b.setSlideClasses("number"==typeof b.currentSlide?b.currentSlide:0),b.setPosition(),b.focusHandler(),b.paused=!b.options.autoplay,b.autoPlay(),b.$slider.trigger("reInit",[b])},b.prototype.resize=function(){var b=this;a(window).width()!==b.windowWidth&&(clearTimeout(b.windowDelay),b.windowDelay=window.setTimeout(function(){b.windowWidth=a(window).width(),b.checkResponsive(),b.unslicked||b.setPosition()},50))},b.prototype.removeSlide=b.prototype.slickRemove=function(a,b,c){var d=this;return"boolean"==typeof a?(b=a,a=b===!0?0:d.slideCount-1):a=b===!0?--a:a,d.slideCount<1||0>a||a>d.slideCount-1?!1:(d.unload(),c===!0?d.$slideTrack.children().remove():d.$slideTrack.children(this.options.slide).eq(a).remove(),d.$slides=d.$slideTrack.children(this.options.slide),d.$slideTrack.children(this.options.slide).detach(),d.$slideTrack.append(d.$slides),d.$slidesCache=d.$slides,void d.reinit())},b.prototype.setCSS=function(a){var d,e,b=this,c={};b.options.rtl===!0&&(a=-a),d="left"==b.positionProp?Math.ceil(a)+"px":"0px",e="top"==b.positionProp?Math.ceil(a)+"px":"0px",c[b.positionProp]=a,b.transformsEnabled===!1?b.$slideTrack.css(c):(c={},b.cssTransitions===!1?(c[b.animType]="translate("+d+", "+e+")",b.$slideTrack.css(c)):(c[b.animType]="translate3d("+d+", "+e+", 0px)",b.$slideTrack.css(c)))},b.prototype.setDimensions=function(){var a=this;a.options.vertical===!1?a.options.centerMode===!0&&a.$list.css({padding:"0px "+a.options.centerPadding}):(a.$list.height(a.$slides.first().outerHeight(!0)*a.options.slidesToShow),a.options.centerMode===!0&&a.$list.css({padding:a.options.centerPadding+" 0px"})),a.listWidth=a.$list.width(),a.listHeight=a.$list.height(),a.options.vertical===!1&&a.options.variableWidth===!1?(a.slideWidth=Math.ceil(a.listWidth/a.options.slidesToShow),a.$slideTrack.width(Math.ceil(a.slideWidth*a.$slideTrack.children(".slick-slide").length))):a.options.variableWidth===!0?a.$slideTrack.width(5e3*a.slideCount):(a.slideWidth=Math.ceil(a.listWidth),a.$slideTrack.height(Math.ceil(a.$slides.first().outerHeight(!0)*a.$slideTrack.children(".slick-slide").length)));var b=a.$slides.first().outerWidth(!0)-a.$slides.first().width();a.options.variableWidth===!1&&a.$slideTrack.children(".slick-slide").width(a.slideWidth-b)},b.prototype.setFade=function(){var c,b=this;b.$slides.each(function(d,e){c=b.slideWidth*d*-1,b.options.rtl===!0?a(e).css({position:"relative",right:c,top:0,zIndex:b.options.zIndex-2,opacity:0}):a(e).css({position:"relative",left:c,top:0,zIndex:b.options.zIndex-2,opacity:0})}),b.$slides.eq(b.currentSlide).css({zIndex:b.options.zIndex-1,opacity:1})},b.prototype.setHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.css("height",b)}},b.prototype.setOption=b.prototype.slickSetOption=function(){var c,d,e,f,h,b=this,g=!1;if("object"===a.type(arguments[0])?(e=arguments[0],g=arguments[1],h="multiple"):"string"===a.type(arguments[0])&&(e=arguments[0],f=arguments[1],g=arguments[2],"responsive"===arguments[0]&&"array"===a.type(arguments[1])?h="responsive":"undefined"!=typeof arguments[1]&&(h="single")),"single"===h)b.options[e]=f;else if("multiple"===h)a.each(e,function(a,c){b.options[a]=c});else if("responsive"===h)for(d in f)if("array"!==a.type(b.options.responsive))b.options.responsive=[f[d]];else{for(c=b.options.responsive.length-1;c>=0;)b.options.responsive[c].breakpoint===f[d].breakpoint&&b.options.responsive.splice(c,1),c--;b.options.responsive.push(f[d])}g&&(b.unload(),b.reinit())},b.prototype.setPosition=function(){var a=this;a.setDimensions(),a.setHeight(),a.options.fade===!1?a.setCSS(a.getLeft(a.currentSlide)):a.setFade(),a.$slider.trigger("setPosition",[a])},b.prototype.setProps=function(){var a=this,b=document.body.style;a.positionProp=a.options.vertical===!0?"top":"left","top"===a.positionProp?a.$slider.addClass("slick-vertical"):a.$slider.removeClass("slick-vertical"),(void 0!==b.WebkitTransition||void 0!==b.MozTransition||void 0!==b.msTransition)&&a.options.useCSS===!0&&(a.cssTransitions=!0),a.options.fade&&("number"==typeof a.options.zIndex?a.options.zIndex<3&&(a.options.zIndex=3):a.options.zIndex=a.defaults.zIndex),void 0!==b.OTransform&&(a.animType="OTransform",a.transformType="-o-transform",a.transitionType="OTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.MozTransform&&(a.animType="MozTransform",a.transformType="-moz-transform",a.transitionType="MozTransition",void 0===b.perspectiveProperty&&void 0===b.MozPerspective&&(a.animType=!1)),void 0!==b.webkitTransform&&(a.animType="webkitTransform",a.transformType="-webkit-transform",a.transitionType="webkitTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.msTransform&&(a.animType="msTransform",a.transformType="-ms-transform",a.transitionType="msTransition",void 0===b.msTransform&&(a.animType=!1)),void 0!==b.transform&&a.animType!==!1&&(a.animType="transform",a.transformType="transform",a.transitionType="transition"),a.transformsEnabled=a.options.useTransform&&null!==a.animType&&a.animType!==!1},b.prototype.setSlideClasses=function(a){var c,d,e,f,b=this;d=b.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),b.$slides.eq(a).addClass("slick-current"),b.options.centerMode===!0?(c=Math.floor(b.options.slidesToShow/2),b.options.infinite===!0&&(a>=c&&a<=b.slideCount-1-c?b.$slides.slice(a-c,a+c+1).addClass("slick-active").attr("aria-hidden","false"):(e=b.options.slidesToShow+a,
18
- d.slice(e-c+1,e+c+2).addClass("slick-active").attr("aria-hidden","false")),0===a?d.eq(d.length-1-b.options.slidesToShow).addClass("slick-center"):a===b.slideCount-1&&d.eq(b.options.slidesToShow).addClass("slick-center")),b.$slides.eq(a).addClass("slick-center")):a>=0&&a<=b.slideCount-b.options.slidesToShow?b.$slides.slice(a,a+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):d.length<=b.options.slidesToShow?d.addClass("slick-active").attr("aria-hidden","false"):(f=b.slideCount%b.options.slidesToShow,e=b.options.infinite===!0?b.options.slidesToShow+a:a,b.options.slidesToShow==b.options.slidesToScroll&&b.slideCount-a<b.options.slidesToShow?d.slice(e-(b.options.slidesToShow-f),e+f).addClass("slick-active").attr("aria-hidden","false"):d.slice(e,e+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===b.options.lazyLoad&&b.lazyLoad()},b.prototype.setupInfinite=function(){var c,d,e,b=this;if(b.options.fade===!0&&(b.options.centerMode=!1),b.options.infinite===!0&&b.options.fade===!1&&(d=null,b.slideCount>b.options.slidesToShow)){for(e=b.options.centerMode===!0?b.options.slidesToShow+1:b.options.slidesToShow,c=b.slideCount;c>b.slideCount-e;c-=1)d=c-1,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d-b.slideCount).prependTo(b.$slideTrack).addClass("slick-cloned");for(c=0;e>c;c+=1)d=c,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d+b.slideCount).appendTo(b.$slideTrack).addClass("slick-cloned");b.$slideTrack.find(".slick-cloned").find("[id]").each(function(){a(this).attr("id","")})}},b.prototype.interrupt=function(a){var b=this;a||b.autoPlay(),b.interrupted=a},b.prototype.selectHandler=function(b){var c=this,d=a(b.target).is(".slick-slide")?a(b.target):a(b.target).parents(".slick-slide"),e=parseInt(d.attr("data-slick-index"));return e||(e=0),c.slideCount<=c.options.slidesToShow?(c.setSlideClasses(e),void c.asNavFor(e)):void c.slideHandler(e)},b.prototype.slideHandler=function(a,b,c){var d,e,f,g,j,h=null,i=this;return b=b||!1,i.animating===!0&&i.options.waitForAnimate===!0||i.options.fade===!0&&i.currentSlide===a||i.slideCount<=i.options.slidesToShow?void 0:(b===!1&&i.asNavFor(a),d=a,h=i.getLeft(d),g=i.getLeft(i.currentSlide),i.currentLeft=null===i.swipeLeft?g:i.swipeLeft,i.options.infinite===!1&&i.options.centerMode===!1&&(0>a||a>i.getDotCount()*i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):i.options.infinite===!1&&i.options.centerMode===!0&&(0>a||a>i.slideCount-i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):(i.options.autoplay&&clearInterval(i.autoPlayTimer),e=0>d?i.slideCount%i.options.slidesToScroll!==0?i.slideCount-i.slideCount%i.options.slidesToScroll:i.slideCount+d:d>=i.slideCount?i.slideCount%i.options.slidesToScroll!==0?0:d-i.slideCount:d,i.animating=!0,i.$slider.trigger("beforeChange",[i,i.currentSlide,e]),f=i.currentSlide,i.currentSlide=e,i.setSlideClasses(i.currentSlide),i.options.asNavFor&&(j=i.getNavTarget(),j=j.slick("getSlick"),j.slideCount<=j.options.slidesToShow&&j.setSlideClasses(i.currentSlide)),i.updateDots(),i.updateArrows(),i.options.fade===!0?(c!==!0?(i.fadeSlideOut(f),i.fadeSlide(e,function(){i.postSlide(e)})):i.postSlide(e),void i.animateHeight()):void(c!==!0?i.animateSlide(h,function(){i.postSlide(e)}):i.postSlide(e))))},b.prototype.startLoad=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.hide(),a.$nextArrow.hide()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.hide(),a.$slider.addClass("slick-loading")},b.prototype.swipeDirection=function(){var a,b,c,d,e=this;return a=e.touchObject.startX-e.touchObject.curX,b=e.touchObject.startY-e.touchObject.curY,c=Math.atan2(b,a),d=Math.round(180*c/Math.PI),0>d&&(d=360-Math.abs(d)),45>=d&&d>=0?e.options.rtl===!1?"left":"right":360>=d&&d>=315?e.options.rtl===!1?"left":"right":d>=135&&225>=d?e.options.rtl===!1?"right":"left":e.options.verticalSwiping===!0?d>=35&&135>=d?"down":"up":"vertical"},b.prototype.swipeEnd=function(a){var c,d,b=this;if(b.dragging=!1,b.interrupted=!1,b.shouldClick=b.touchObject.swipeLength>10?!1:!0,void 0===b.touchObject.curX)return!1;if(b.touchObject.edgeHit===!0&&b.$slider.trigger("edge",[b,b.swipeDirection()]),b.touchObject.swipeLength>=b.touchObject.minSwipe){switch(d=b.swipeDirection()){case"left":case"down":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide+b.getSlideCount()):b.currentSlide+b.getSlideCount(),b.currentDirection=0;break;case"right":case"up":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide-b.getSlideCount()):b.currentSlide-b.getSlideCount(),b.currentDirection=1}"vertical"!=d&&(b.slideHandler(c),b.touchObject={},b.$slider.trigger("swipe",[b,d]))}else b.touchObject.startX!==b.touchObject.curX&&(b.slideHandler(b.currentSlide),b.touchObject={})},b.prototype.swipeHandler=function(a){var b=this;if(!(b.options.swipe===!1||"ontouchend"in document&&b.options.swipe===!1||b.options.draggable===!1&&-1!==a.type.indexOf("mouse")))switch(b.touchObject.fingerCount=a.originalEvent&&void 0!==a.originalEvent.touches?a.originalEvent.touches.length:1,b.touchObject.minSwipe=b.listWidth/b.options.touchThreshold,b.options.verticalSwiping===!0&&(b.touchObject.minSwipe=b.listHeight/b.options.touchThreshold),a.data.action){case"start":b.swipeStart(a);break;case"move":b.swipeMove(a);break;case"end":b.swipeEnd(a)}},b.prototype.swipeMove=function(a){var d,e,f,g,h,b=this;return h=void 0!==a.originalEvent?a.originalEvent.touches:null,!b.dragging||h&&1!==h.length?!1:(d=b.getLeft(b.currentSlide),b.touchObject.curX=void 0!==h?h[0].pageX:a.clientX,b.touchObject.curY=void 0!==h?h[0].pageY:a.clientY,b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curX-b.touchObject.startX,2))),b.options.verticalSwiping===!0&&(b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curY-b.touchObject.startY,2)))),e=b.swipeDirection(),"vertical"!==e?(void 0!==a.originalEvent&&b.touchObject.swipeLength>4&&a.preventDefault(),g=(b.options.rtl===!1?1:-1)*(b.touchObject.curX>b.touchObject.startX?1:-1),b.options.verticalSwiping===!0&&(g=b.touchObject.curY>b.touchObject.startY?1:-1),f=b.touchObject.swipeLength,b.touchObject.edgeHit=!1,b.options.infinite===!1&&(0===b.currentSlide&&"right"===e||b.currentSlide>=b.getDotCount()&&"left"===e)&&(f=b.touchObject.swipeLength*b.options.edgeFriction,b.touchObject.edgeHit=!0),b.options.vertical===!1?b.swipeLeft=d+f*g:b.swipeLeft=d+f*(b.$list.height()/b.listWidth)*g,b.options.verticalSwiping===!0&&(b.swipeLeft=d+f*g),b.options.fade===!0||b.options.touchMove===!1?!1:b.animating===!0?(b.swipeLeft=null,!1):void b.setCSS(b.swipeLeft)):void 0)},b.prototype.swipeStart=function(a){var c,b=this;return b.interrupted=!0,1!==b.touchObject.fingerCount||b.slideCount<=b.options.slidesToShow?(b.touchObject={},!1):(void 0!==a.originalEvent&&void 0!==a.originalEvent.touches&&(c=a.originalEvent.touches[0]),b.touchObject.startX=b.touchObject.curX=void 0!==c?c.pageX:a.clientX,b.touchObject.startY=b.touchObject.curY=void 0!==c?c.pageY:a.clientY,void(b.dragging=!0))},b.prototype.unfilterSlides=b.prototype.slickUnfilter=function(){var a=this;null!==a.$slidesCache&&(a.unload(),a.$slideTrack.children(this.options.slide).detach(),a.$slidesCache.appendTo(a.$slideTrack),a.reinit())},b.prototype.unload=function(){var b=this;a(".slick-cloned",b.$slider).remove(),b.$dots&&b.$dots.remove(),b.$prevArrow&&b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.remove(),b.$nextArrow&&b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.remove(),b.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},b.prototype.unslick=function(a){var b=this;b.$slider.trigger("unslick",[b,a]),b.destroy()},b.prototype.updateArrows=function(){var b,a=this;b=Math.floor(a.options.slidesToShow/2),a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&!a.options.infinite&&(a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===a.currentSlide?(a.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):a.currentSlide>=a.slideCount-a.options.slidesToShow&&a.options.centerMode===!1?(a.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):a.currentSlide>=a.slideCount-1&&a.options.centerMode===!0&&(a.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},b.prototype.updateDots=function(){var a=this;null!==a.$dots&&(a.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),a.$dots.find("li").eq(Math.floor(a.currentSlide/a.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},b.prototype.visibility=function(){var a=this;a.options.autoplay&&(document[a.hidden]?a.interrupted=!0:a.interrupted=!1)},a.fn.slick=function(){var f,g,a=this,c=arguments[0],d=Array.prototype.slice.call(arguments,1),e=a.length;for(f=0;e>f;f++)if("object"==typeof c||"undefined"==typeof c?a[f].slick=new b(a[f],c):g=a[f].slick[c].apply(a[f].slick,d),"undefined"!=typeof g)return g;return a}});
1
+ !function(factory){"use strict";"function"==typeof define&&define.amd?define(["jquery"],factory):"undefined"!=typeof exports?module.exports=factory(require("jquery")):factory(jQuery)}((function($){"use strict";var Slick=window.Slick||{};(Slick=function(){var instanceUid=0;function Slick(element,settings){var _=this,dataSettings;_.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:$(element),appendDots:$(element),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(slider,i){return $('<button type="button" data-role="none" role="button" tabindex="0" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!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},_.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,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},$.extend(_,_.initials),_.activeBreakpoint=null,_.animType=null,_.animProp=null,_.breakpoints=[],_.breakpointSettings=[],_.cssTransitions=!1,_.focussed=!1,_.interrupted=!1,_.hidden="hidden",_.paused=!0,_.positionProp=null,_.respondTo=null,_.rowCount=1,_.shouldClick=!0,_.$slider=$(element),_.$slidesCache=null,_.transformType=null,_.transitionType=null,_.visibilityChange="visibilitychange",_.windowWidth=0,_.windowTimer=null,dataSettings=$(element).data("slick")||{},_.options=$.extend({},_.defaults,settings,dataSettings),_.currentSlide=_.options.initialSlide,_.originalSettings=_.options,void 0!==document.mozHidden?(_.hidden="mozHidden",_.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(_.hidden="webkitHidden",_.visibilityChange="webkitvisibilitychange"),_.autoPlay=$.proxy(_.autoPlay,_),_.autoPlayClear=$.proxy(_.autoPlayClear,_),_.autoPlayIterator=$.proxy(_.autoPlayIterator,_),_.changeSlide=$.proxy(_.changeSlide,_),_.clickHandler=$.proxy(_.clickHandler,_),_.selectHandler=$.proxy(_.selectHandler,_),_.setPosition=$.proxy(_.setPosition,_),_.swipeHandler=$.proxy(_.swipeHandler,_),_.dragHandler=$.proxy(_.dragHandler,_),_.keyHandler=$.proxy(_.keyHandler,_),_.instanceUid=instanceUid++,_.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,_.registerBreakpoints(),_.init(!0)}return Slick}()).prototype.activateADA=function(){var _;this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false",tabindex:"0"}).find("a, input, button, select").attr({tabindex:"0"})},Slick.prototype.addSlide=Slick.prototype.slickAdd=function(markup,index,addBefore){var _=this;if("boolean"==typeof index)addBefore=index,index=null;else if(index<0||index>=_.slideCount)return!1;_.unload(),"number"==typeof index?0===index&&0===_.$slides.length?$(markup).appendTo(_.$slideTrack):addBefore?$(markup).insertBefore(_.$slides.eq(index)):$(markup).insertAfter(_.$slides.eq(index)):!0===addBefore?$(markup).prependTo(_.$slideTrack):$(markup).appendTo(_.$slideTrack),_.$slides=_.$slideTrack.children(this.options.slide),_.$slideTrack.children(this.options.slide).detach(),_.$slideTrack.append(_.$slides),_.$slides.each((function(index,element){$(element).attr("data-slick-index",index)})),_.$slidesCache=_.$slides,_.reinit()},Slick.prototype.animateHeight=function(){var _=this;if(1===_.options.slidesToShow&&!0===_.options.adaptiveHeight&&!1===_.options.vertical){var targetHeight=_.$slides.eq(_.currentSlide).outerHeight(!0);_.$list.animate({height:targetHeight},_.options.speed)}},Slick.prototype.animateSlide=function(targetLeft,callback){var animProps={},_=this;_.animateHeight(),!0===_.options.rtl&&!1===_.options.vertical&&(targetLeft=-targetLeft),!1===_.transformsEnabled?!1===_.options.vertical?_.$slideTrack.animate({left:targetLeft},_.options.speed,_.options.easing,callback):_.$slideTrack.animate({top:targetLeft},_.options.speed,_.options.easing,callback):!1===_.cssTransitions?(!0===_.options.rtl&&(_.currentLeft=-_.currentLeft),$({animStart:_.currentLeft}).animate({animStart:targetLeft},{duration:_.options.speed,easing:_.options.easing,step:function(now){now=Math.ceil(now),!1===_.options.vertical?(animProps[_.animType]="translate("+now+"px, 0px)",_.$slideTrack.css(animProps)):(animProps[_.animType]="translate(0px,"+now+"px)",_.$slideTrack.css(animProps))},complete:function(){callback&&callback.call()}})):(_.applyTransition(),targetLeft=Math.ceil(targetLeft),!1===_.options.vertical?animProps[_.animType]="translate3d("+targetLeft+"px, 0px, 0px)":animProps[_.animType]="translate3d(0px,"+targetLeft+"px, 0px)",_.$slideTrack.css(animProps),callback&&setTimeout((function(){_.disableTransition(),callback.call()}),_.options.speed))},Slick.prototype.getNavTarget=function(){var _=this,asNavFor=_.options.asNavFor;return asNavFor&&null!==asNavFor&&(asNavFor=$(asNavFor).not(_.$slider)),asNavFor},Slick.prototype.asNavFor=function(index){var _,asNavFor=this.getNavTarget();null!==asNavFor&&"object"==typeof asNavFor&&asNavFor.each((function(){var target=$(this).slick("getSlick");target.unslicked||target.slideHandler(index,!0)}))},Slick.prototype.applyTransition=function(slide){var _=this,transition={};!1===_.options.fade?transition[_.transitionType]=_.transformType+" "+_.options.speed+"ms "+_.options.cssEase:transition[_.transitionType]="opacity "+_.options.speed+"ms "+_.options.cssEase,!1===_.options.fade?_.$slideTrack.css(transition):_.$slides.eq(slide).css(transition)},Slick.prototype.autoPlay=function(){var _=this;_.autoPlayClear(),_.slideCount>_.options.slidesToShow&&(_.autoPlayTimer=setInterval(_.autoPlayIterator,_.options.autoplaySpeed))},Slick.prototype.autoPlayClear=function(){var _=this;_.autoPlayTimer&&clearInterval(_.autoPlayTimer)},Slick.prototype.autoPlayIterator=function(){var _=this,slideTo=_.currentSlide+_.options.slidesToScroll;_.paused||_.interrupted||_.focussed||(!1===_.options.infinite&&(1===_.direction&&_.currentSlide+1===_.slideCount-1?_.direction=0:0===_.direction&&(slideTo=_.currentSlide-_.options.slidesToScroll,_.currentSlide-1==0&&(_.direction=1))),_.slideHandler(slideTo))},Slick.prototype.buildArrows=function(){var _=this;!0===_.options.arrows&&(_.$prevArrow=$(_.options.prevArrow).addClass("slick-arrow"),_.$nextArrow=$(_.options.nextArrow).addClass("slick-arrow"),_.slideCount>_.options.slidesToShow?(_.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),_.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),_.htmlExpr.test(_.options.prevArrow)&&_.$prevArrow.prependTo(_.options.appendArrows),_.htmlExpr.test(_.options.nextArrow)&&_.$nextArrow.appendTo(_.options.appendArrows),!0!==_.options.infinite&&_.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):_.$prevArrow.add(_.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},Slick.prototype.buildDots=function(){var _=this,i,dot;if(!0===_.options.dots&&_.slideCount>_.options.slidesToShow){for(_.$slider.addClass("slick-dotted"),dot=$("<ul />").addClass(_.options.dotsClass),i=0;i<=_.getDotCount();i+=1)dot.append($("<li />").append(_.options.customPaging.call(this,_,i)));_.$dots=dot.appendTo(_.options.appendDots),_.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},Slick.prototype.buildOut=function(){var _=this;_.$slides=_.$slider.children(_.options.slide+":not(.slick-cloned)").addClass("slick-slide"),_.slideCount=_.$slides.length,_.$slides.each((function(index,element){$(element).attr("data-slick-index",index).data("originalStyling",$(element).attr("style")||"")})),_.$slider.addClass("slick-slider"),_.$slideTrack=0===_.slideCount?$('<div class="slick-track"/>').appendTo(_.$slider):_.$slides.wrapAll('<div class="slick-track"/>').parent(),_.$list=_.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),_.$slideTrack.css("opacity",0),!0!==_.options.centerMode&&!0!==_.options.swipeToSlide||(_.options.slidesToScroll=1),$("img[data-lazy]",_.$slider).not("[src]").addClass("slick-loading"),_.setupInfinite(),_.buildArrows(),_.buildDots(),_.updateDots(),_.setSlideClasses("number"==typeof _.currentSlide?_.currentSlide:0),!0===_.options.draggable&&_.$list.addClass("draggable")},Slick.prototype.buildRows=function(){var _=this,a,b,c,newSlides,numOfSlides,originalSlides,slidesPerSection;if(newSlides=document.createDocumentFragment(),originalSlides=_.$slider.children(),_.options.rows>1){for(slidesPerSection=_.options.slidesPerRow*_.options.rows,numOfSlides=Math.ceil(originalSlides.length/slidesPerSection),a=0;a<numOfSlides;a++){var slide=document.createElement("div");for(b=0;b<_.options.rows;b++){var row=document.createElement("div");for(c=0;c<_.options.slidesPerRow;c++){var target=a*slidesPerSection+(b*_.options.slidesPerRow+c);originalSlides.get(target)&&row.appendChild(originalSlides.get(target))}slide.appendChild(row)}newSlides.appendChild(slide)}_.$slider.empty().append(newSlides),_.$slider.children().children().children().css({width:100/_.options.slidesPerRow+"%",display:"inline-block"})}},Slick.prototype.checkResponsive=function(initial,forceUpdate){var _=this,breakpoint,targetBreakpoint,respondToWidth,triggerBreakpoint=!1,sliderWidth=_.$slider.width(),windowWidth=window.innerWidth||$(window).width();if("window"===_.respondTo?respondToWidth=windowWidth:"slider"===_.respondTo?respondToWidth=sliderWidth:"min"===_.respondTo&&(respondToWidth=Math.min(windowWidth,sliderWidth)),_.options.responsive&&_.options.responsive.length&&null!==_.options.responsive){for(breakpoint in targetBreakpoint=null,_.breakpoints)_.breakpoints.hasOwnProperty(breakpoint)&&(!1===_.originalSettings.mobileFirst?respondToWidth<_.breakpoints[breakpoint]&&(targetBreakpoint=_.breakpoints[breakpoint]):respondToWidth>_.breakpoints[breakpoint]&&(targetBreakpoint=_.breakpoints[breakpoint]));null!==targetBreakpoint?null!==_.activeBreakpoint?(targetBreakpoint!==_.activeBreakpoint||forceUpdate)&&(_.activeBreakpoint=targetBreakpoint,"unslick"===_.breakpointSettings[targetBreakpoint]?_.unslick(targetBreakpoint):(_.options=$.extend({},_.originalSettings,_.breakpointSettings[targetBreakpoint]),!0===initial&&(_.currentSlide=_.options.initialSlide),_.refresh(initial)),triggerBreakpoint=targetBreakpoint):(_.activeBreakpoint=targetBreakpoint,"unslick"===_.breakpointSettings[targetBreakpoint]?_.unslick(targetBreakpoint):(_.options=$.extend({},_.originalSettings,_.breakpointSettings[targetBreakpoint]),!0===initial&&(_.currentSlide=_.options.initialSlide),_.refresh(initial)),triggerBreakpoint=targetBreakpoint):null!==_.activeBreakpoint&&(_.activeBreakpoint=null,_.options=_.originalSettings,!0===initial&&(_.currentSlide=_.options.initialSlide),_.refresh(initial),triggerBreakpoint=targetBreakpoint),initial||!1===triggerBreakpoint||_.$slider.trigger("breakpoint",[_,triggerBreakpoint])}},Slick.prototype.changeSlide=function(event,dontAnimate){var _=this,$target=$(event.currentTarget),indexOffset,slideOffset,unevenOffset;switch($target.is("a")&&event.preventDefault(),$target.is("li")||($target=$target.closest("li")),indexOffset=(unevenOffset=_.slideCount%_.options.slidesToScroll!=0)?0:(_.slideCount-_.currentSlide)%_.options.slidesToScroll,event.data.message){case"previous":slideOffset=0===indexOffset?_.options.slidesToScroll:_.options.slidesToShow-indexOffset,_.slideCount>_.options.slidesToShow&&_.slideHandler(_.currentSlide-slideOffset,!1,dontAnimate);break;case"next":slideOffset=0===indexOffset?_.options.slidesToScroll:indexOffset,_.slideCount>_.options.slidesToShow&&_.slideHandler(_.currentSlide+slideOffset,!1,dontAnimate);break;case"index":var index=0===event.data.index?0:event.data.index||$target.index()*_.options.slidesToScroll;_.slideHandler(_.checkNavigable(index),!1,dontAnimate),$target.children().trigger("focus");break;default:return}},Slick.prototype.checkNavigable=function(index){var _,navigables,prevNavigable;if(prevNavigable=0,index>(navigables=this.getNavigableIndexes())[navigables.length-1])index=navigables[navigables.length-1];else for(var n in navigables){if(index<navigables[n]){index=prevNavigable;break}prevNavigable=navigables[n]}return index},Slick.prototype.cleanUpEvents=function(){var _=this;_.options.dots&&null!==_.$dots&&$("li",_.$dots).off("click.slick",_.changeSlide).off("mouseenter.slick",$.proxy(_.interrupt,_,!0)).off("mouseleave.slick",$.proxy(_.interrupt,_,!1)),_.$slider.off("focus.slick blur.slick"),!0===_.options.arrows&&_.slideCount>_.options.slidesToShow&&(_.$prevArrow&&_.$prevArrow.off("click.slick",_.changeSlide),_.$nextArrow&&_.$nextArrow.off("click.slick",_.changeSlide)),_.$list.off("touchstart.slick mousedown.slick",_.swipeHandler),_.$list.off("touchmove.slick mousemove.slick",_.swipeHandler),_.$list.off("touchend.slick mouseup.slick",_.swipeHandler),_.$list.off("touchcancel.slick mouseleave.slick",_.swipeHandler),_.$list.off("click.slick",_.clickHandler),$(document).off(_.visibilityChange,_.visibility),_.cleanUpSlideEvents(),!0===_.options.accessibility&&_.$list.off("keydown.slick",_.keyHandler),!0===_.options.focusOnSelect&&$(_.$slideTrack).children().off("click.slick",_.selectHandler),$(window).off("orientationchange.slick.slick-"+_.instanceUid,_.orientationChange),$(window).off("resize.slick.slick-"+_.instanceUid,_.resize),$("[draggable!=true]",_.$slideTrack).off("dragstart",_.preventDefault),$(window).off("load.slick.slick-"+_.instanceUid,_.setPosition),$(document).off("ready.slick.slick-"+_.instanceUid,_.setPosition)},Slick.prototype.cleanUpSlideEvents=function(){var _=this;_.$list.off("mouseenter.slick",$.proxy(_.interrupt,_,!0)),_.$list.off("mouseleave.slick",$.proxy(_.interrupt,_,!1))},Slick.prototype.cleanUpRows=function(){var _=this,originalSlides;_.options.rows>1&&((originalSlides=_.$slides.children().children()).removeAttr("style"),_.$slider.empty().append(originalSlides))},Slick.prototype.clickHandler=function(event){var _;!1===this.shouldClick&&(event.stopImmediatePropagation(),event.stopPropagation(),event.preventDefault())},Slick.prototype.destroy=function(refresh){var _=this;_.autoPlayClear(),_.touchObject={},_.cleanUpEvents(),$(".slick-cloned",_.$slider).detach(),_.$dots&&_.$dots.remove(),_.$prevArrow&&_.$prevArrow.length&&(_.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),_.htmlExpr.test(_.options.prevArrow)&&_.$prevArrow.remove()),_.$nextArrow&&_.$nextArrow.length&&(_.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),_.htmlExpr.test(_.options.nextArrow)&&_.$nextArrow.remove()),_.$slides&&(_.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){$(this).attr("style",$(this).data("originalStyling"))})),_.$slideTrack.children(this.options.slide).detach(),_.$slideTrack.detach(),_.$list.detach(),_.$slider.append(_.$slides)),_.cleanUpRows(),_.$slider.removeClass("slick-slider"),_.$slider.removeClass("slick-initialized"),_.$slider.removeClass("slick-dotted"),_.unslicked=!0,refresh||_.$slider.trigger("destroy",[_])},Slick.prototype.disableTransition=function(slide){var _=this,transition={};transition[_.transitionType]="",!1===_.options.fade?_.$slideTrack.css(transition):_.$slides.eq(slide).css(transition)},Slick.prototype.fadeSlide=function(slideIndex,callback){var _=this;!1===_.cssTransitions?(_.$slides.eq(slideIndex).css({zIndex:_.options.zIndex}),_.$slides.eq(slideIndex).animate({opacity:1},_.options.speed,_.options.easing,callback)):(_.applyTransition(slideIndex),_.$slides.eq(slideIndex).css({opacity:1,zIndex:_.options.zIndex}),callback&&setTimeout((function(){_.disableTransition(slideIndex),callback.call()}),_.options.speed))},Slick.prototype.fadeSlideOut=function(slideIndex){var _=this;!1===_.cssTransitions?_.$slides.eq(slideIndex).animate({opacity:0,zIndex:_.options.zIndex-2},_.options.speed,_.options.easing):(_.applyTransition(slideIndex),_.$slides.eq(slideIndex).css({opacity:0,zIndex:_.options.zIndex-2}))},Slick.prototype.filterSlides=Slick.prototype.slickFilter=function(filter){var _=this;null!==filter&&(_.$slidesCache=_.$slides,_.unload(),_.$slideTrack.children(this.options.slide).detach(),_.$slidesCache.filter(filter).appendTo(_.$slideTrack),_.reinit())},Slick.prototype.focusHandler=function(){var _=this;_.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",(function(event){event.stopImmediatePropagation();var $sf=$(this);setTimeout((function(){_.options.pauseOnFocus&&(_.focussed=$sf.is(":focus"),_.autoPlay())}),0)}))},Slick.prototype.getCurrent=Slick.prototype.slickCurrentSlide=function(){var _;return this.currentSlide},Slick.prototype.getDotCount=function(){var _=this,breakPoint=0,counter=0,pagerQty=0;if(!0===_.options.infinite)for(;breakPoint<_.slideCount;)++pagerQty,breakPoint=counter+_.options.slidesToScroll,counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;else if(!0===_.options.centerMode)pagerQty=_.slideCount;else if(_.options.asNavFor)for(;breakPoint<_.slideCount;)++pagerQty,breakPoint=counter+_.options.slidesToScroll,counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;else pagerQty=1+Math.ceil((_.slideCount-_.options.slidesToShow)/_.options.slidesToScroll);return pagerQty-1},Slick.prototype.getLeft=function(slideIndex){var _=this,targetLeft,verticalHeight,verticalOffset=0,targetSlide;return _.slideOffset=0,verticalHeight=_.$slides.first().outerHeight(!0),!0===_.options.infinite?(_.slideCount>_.options.slidesToShow&&(_.slideOffset=_.slideWidth*_.options.slidesToShow*-1,verticalOffset=verticalHeight*_.options.slidesToShow*-1),_.slideCount%_.options.slidesToScroll!=0&&slideIndex+_.options.slidesToScroll>_.slideCount&&_.slideCount>_.options.slidesToShow&&(slideIndex>_.slideCount?(_.slideOffset=(_.options.slidesToShow-(slideIndex-_.slideCount))*_.slideWidth*-1,verticalOffset=(_.options.slidesToShow-(slideIndex-_.slideCount))*verticalHeight*-1):(_.slideOffset=_.slideCount%_.options.slidesToScroll*_.slideWidth*-1,verticalOffset=_.slideCount%_.options.slidesToScroll*verticalHeight*-1))):slideIndex+_.options.slidesToShow>_.slideCount&&(_.slideOffset=(slideIndex+_.options.slidesToShow-_.slideCount)*_.slideWidth,verticalOffset=(slideIndex+_.options.slidesToShow-_.slideCount)*verticalHeight),_.slideCount<=_.options.slidesToShow&&(_.slideOffset=0,verticalOffset=0),!0===_.options.centerMode&&!0===_.options.infinite?_.slideOffset+=_.slideWidth*Math.floor(_.options.slidesToShow/2)-_.slideWidth:!0===_.options.centerMode&&(_.slideOffset=0,_.slideOffset+=_.slideWidth*Math.floor(_.options.slidesToShow/2)),targetLeft=!1===_.options.vertical?slideIndex*_.slideWidth*-1+_.slideOffset:slideIndex*verticalHeight*-1+verticalOffset,!0===_.options.variableWidth&&(targetSlide=_.slideCount<=_.options.slidesToShow||!1===_.options.infinite?_.$slideTrack.children(".slick-slide").eq(slideIndex):_.$slideTrack.children(".slick-slide").eq(slideIndex+_.options.slidesToShow),targetLeft=!0===_.options.rtl?targetSlide[0]?-1*(_.$slideTrack.width()-targetSlide[0].offsetLeft-targetSlide.width()):0:targetSlide[0]?-1*targetSlide[0].offsetLeft:0,!0===_.options.centerMode&&(targetSlide=_.slideCount<=_.options.slidesToShow||!1===_.options.infinite?_.$slideTrack.children(".slick-slide").eq(slideIndex):_.$slideTrack.children(".slick-slide").eq(slideIndex+_.options.slidesToShow+1),targetLeft=!0===_.options.rtl?targetSlide[0]?-1*(_.$slideTrack.width()-targetSlide[0].offsetLeft-targetSlide.width()):0:targetSlide[0]?-1*targetSlide[0].offsetLeft:0,targetLeft+=(_.$list.width()-targetSlide.outerWidth())/2)),targetLeft},Slick.prototype.getOption=Slick.prototype.slickGetOption=function(option){var _;return this.options[option]},Slick.prototype.getNavigableIndexes=function(){var _=this,breakPoint=0,counter=0,indexes=[],max;for(!1===_.options.infinite?max=_.slideCount:(breakPoint=-1*_.options.slidesToScroll,counter=-1*_.options.slidesToScroll,max=2*_.slideCount);breakPoint<max;)indexes.push(breakPoint),breakPoint=counter+_.options.slidesToScroll,counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;return indexes},Slick.prototype.getSlick=function(){return this},Slick.prototype.getSlideCount=function(){var _=this,slidesTraversed,swipedSlide,centerOffset;return centerOffset=!0===_.options.centerMode?_.slideWidth*Math.floor(_.options.slidesToShow/2):0,!0===_.options.swipeToSlide?(_.$slideTrack.find(".slick-slide").each((function(index,slide){if(slide.offsetLeft-centerOffset+$(slide).outerWidth()/2>-1*_.swipeLeft)return swipedSlide=slide,!1})),slidesTraversed=Math.abs($(swipedSlide).attr("data-slick-index")-_.currentSlide)||1):_.options.slidesToScroll},Slick.prototype.goTo=Slick.prototype.slickGoTo=function(slide,dontAnimate){var _;this.changeSlide({data:{message:"index",index:parseInt(slide)}},dontAnimate)},Slick.prototype.init=function(creation){var _=this;$(_.$slider).hasClass("slick-initialized")||($(_.$slider).addClass("slick-initialized"),_.buildRows(),_.buildOut(),_.setProps(),_.startLoad(),_.loadSlider(),_.initializeEvents(),_.updateArrows(),_.updateDots(),_.checkResponsive(!0),_.focusHandler()),creation&&_.$slider.trigger("init",[_]),!0===_.options.accessibility&&_.initADA(),_.options.autoplay&&(_.paused=!1,_.autoPlay())},Slick.prototype.initADA=function(){var _=this;_.$slides.add(_.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),_.$slideTrack.attr("role","listbox"),_.$slides.not(_.$slideTrack.find(".slick-cloned")).each((function(i){$(this).attr({role:"option","aria-describedby":"slick-slide"+_.instanceUid+i})})),null!==_.$dots&&_.$dots.attr("role","tablist").find("li").each((function(i){$(this).attr({role:"tab","aria-selected":"false","aria-controls":"navigation"+_.instanceUid+i,id:"slick-slide"+_.instanceUid+i})})).closest("div").attr("role","toolbar"),_.activateADA()},Slick.prototype.initArrowEvents=function(){var _=this;!0===_.options.arrows&&_.slideCount>_.options.slidesToShow&&(_.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},_.changeSlide),_.$nextArrow.off("click.slick").on("click.slick",{message:"next"},_.changeSlide))},Slick.prototype.initDotEvents=function(){var _=this;!0===_.options.dots&&_.slideCount>_.options.slidesToShow&&$("li",_.$dots).on("click.slick",{message:"index"},_.changeSlide),!0===_.options.dots&&!0===_.options.pauseOnDotsHover&&$("li",_.$dots).on("mouseenter.slick",$.proxy(_.interrupt,_,!0)).on("mouseleave.slick",$.proxy(_.interrupt,_,!1))},Slick.prototype.initSlideEvents=function(){var _=this;_.options.pauseOnHover&&(_.$list.on("mouseenter.slick",$.proxy(_.interrupt,_,!0)),_.$list.on("mouseleave.slick",$.proxy(_.interrupt,_,!1)))},Slick.prototype.initializeEvents=function(){var _=this;_.initArrowEvents(),_.initDotEvents(),_.initSlideEvents(),_.$list.on("touchstart.slick mousedown.slick",{action:"start"},_.swipeHandler),_.$list.on("touchmove.slick mousemove.slick",{action:"move"},_.swipeHandler),_.$list.on("touchend.slick mouseup.slick",{action:"end"},_.swipeHandler),_.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},_.swipeHandler),_.$list.on("click.slick",_.clickHandler),$(document).on(_.visibilityChange,$.proxy(_.visibility,_)),!0===_.options.accessibility&&_.$list.on("keydown.slick",_.keyHandler),!0===_.options.focusOnSelect&&$(_.$slideTrack).children().on("click.slick",_.selectHandler),$(window).on("orientationchange.slick.slick-"+_.instanceUid,$.proxy(_.orientationChange,_)),$(window).on("resize.slick.slick-"+_.instanceUid,$.proxy(_.resize,_)),$("[draggable!=true]",_.$slideTrack).on("dragstart",_.preventDefault),$(window).on("load.slick.slick-"+_.instanceUid,_.setPosition),$(document).on("ready.slick.slick-"+_.instanceUid,_.setPosition)},Slick.prototype.initUI=function(){var _=this;!0===_.options.arrows&&_.slideCount>_.options.slidesToShow&&(_.$prevArrow.show(),_.$nextArrow.show()),!0===_.options.dots&&_.slideCount>_.options.slidesToShow&&_.$dots.show()},Slick.prototype.keyHandler=function(event){var _=this;event.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===event.keyCode&&!0===_.options.accessibility?_.changeSlide({data:{message:!0===_.options.rtl?"next":"previous"}}):39===event.keyCode&&!0===_.options.accessibility&&_.changeSlide({data:{message:!0===_.options.rtl?"previous":"next"}}))},Slick.prototype.lazyLoad=function(){var _=this,loadRange,cloneRange,rangeStart,rangeEnd;function loadImages(imagesScope){$("img[data-lazy]",imagesScope).each((function(){var image=$(this),imageSource=$(this).attr("data-lazy"),imageToLoad=document.createElement("img");imageToLoad.onload=function(){image.animate({opacity:0},100,(function(){image.attr("src",imageSource).animate({opacity:1},200,(function(){image.removeAttr("data-lazy").removeClass("slick-loading")})),_.$slider.trigger("lazyLoaded",[_,image,imageSource])}))},imageToLoad.onerror=function(){image.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),_.$slider.trigger("lazyLoadError",[_,image,imageSource])},imageToLoad.src=imageSource}))}!0===_.options.centerMode?!0===_.options.infinite?rangeEnd=(rangeStart=_.currentSlide+(_.options.slidesToShow/2+1))+_.options.slidesToShow+2:(rangeStart=Math.max(0,_.currentSlide-(_.options.slidesToShow/2+1)),rangeEnd=_.options.slidesToShow/2+1+2+_.currentSlide):(rangeStart=_.options.infinite?_.options.slidesToShow+_.currentSlide:_.currentSlide,rangeEnd=Math.ceil(rangeStart+_.options.slidesToShow),!0===_.options.fade&&(rangeStart>0&&rangeStart--,rangeEnd<=_.slideCount&&rangeEnd++)),loadImages(loadRange=_.$slider.find(".slick-slide").slice(rangeStart,rangeEnd)),_.slideCount<=_.options.slidesToShow?loadImages(cloneRange=_.$slider.find(".slick-slide")):_.currentSlide>=_.slideCount-_.options.slidesToShow?loadImages(cloneRange=_.$slider.find(".slick-cloned").slice(0,_.options.slidesToShow)):0===_.currentSlide&&loadImages(cloneRange=_.$slider.find(".slick-cloned").slice(-1*_.options.slidesToShow))},Slick.prototype.loadSlider=function(){var _=this;_.setPosition(),_.$slideTrack.css({opacity:1}),_.$slider.removeClass("slick-loading"),_.initUI(),"progressive"===_.options.lazyLoad&&_.progressiveLazyLoad()},Slick.prototype.next=Slick.prototype.slickNext=function(){var _;this.changeSlide({data:{message:"next"}})},Slick.prototype.orientationChange=function(){var _=this;_.checkResponsive(),_.setPosition()},Slick.prototype.pause=Slick.prototype.slickPause=function(){var _=this;_.autoPlayClear(),_.paused=!0},Slick.prototype.play=Slick.prototype.slickPlay=function(){var _=this;_.autoPlay(),_.options.autoplay=!0,_.paused=!1,_.focussed=!1,_.interrupted=!1},Slick.prototype.postSlide=function(index){var _=this;_.unslicked||(_.$slider.trigger("afterChange",[_,index]),_.animating=!1,_.setPosition(),_.swipeLeft=null,_.options.autoplay&&_.autoPlay(),!0===_.options.accessibility&&_.initADA())},Slick.prototype.prev=Slick.prototype.slickPrev=function(){var _;this.changeSlide({data:{message:"previous"}})},Slick.prototype.preventDefault=function(event){event.preventDefault()},Slick.prototype.progressiveLazyLoad=function(tryCount){tryCount=tryCount||1;var _=this,$imgsToLoad=$("img[data-lazy]",_.$slider),image,imageSource,imageToLoad;$imgsToLoad.length?(image=$imgsToLoad.first(),imageSource=image.attr("data-lazy"),(imageToLoad=document.createElement("img")).onload=function(){image.attr("src",imageSource).removeAttr("data-lazy").removeClass("slick-loading"),!0===_.options.adaptiveHeight&&_.setPosition(),_.$slider.trigger("lazyLoaded",[_,image,imageSource]),_.progressiveLazyLoad()},imageToLoad.onerror=function(){tryCount<3?setTimeout((function(){_.progressiveLazyLoad(tryCount+1)}),500):(image.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),_.$slider.trigger("lazyLoadError",[_,image,imageSource]),_.progressiveLazyLoad())},imageToLoad.src=imageSource):_.$slider.trigger("allImagesLoaded",[_])},Slick.prototype.refresh=function(initializing){var _=this,currentSlide,lastVisibleIndex;lastVisibleIndex=_.slideCount-_.options.slidesToShow,!_.options.infinite&&_.currentSlide>lastVisibleIndex&&(_.currentSlide=lastVisibleIndex),_.slideCount<=_.options.slidesToShow&&(_.currentSlide=0),currentSlide=_.currentSlide,_.destroy(!0),$.extend(_,_.initials,{currentSlide:currentSlide}),_.init(),initializing||_.changeSlide({data:{message:"index",index:currentSlide}},!1)},Slick.prototype.registerBreakpoints=function(){var _=this,breakpoint,currentBreakpoint,l,responsiveSettings=_.options.responsive||null;if("array"===$.type(responsiveSettings)&&responsiveSettings.length){for(breakpoint in _.respondTo=_.options.respondTo||"window",responsiveSettings)if(l=_.breakpoints.length-1,currentBreakpoint=responsiveSettings[breakpoint].breakpoint,responsiveSettings.hasOwnProperty(breakpoint)){for(;l>=0;)_.breakpoints[l]&&_.breakpoints[l]===currentBreakpoint&&_.breakpoints.splice(l,1),l--;_.breakpoints.push(currentBreakpoint),_.breakpointSettings[currentBreakpoint]=responsiveSettings[breakpoint].settings}_.breakpoints.sort((function(a,b){return _.options.mobileFirst?a-b:b-a}))}},Slick.prototype.reinit=function(){var _=this;_.$slides=_.$slideTrack.children(_.options.slide).addClass("slick-slide"),_.slideCount=_.$slides.length,_.currentSlide>=_.slideCount&&0!==_.currentSlide&&(_.currentSlide=_.currentSlide-_.options.slidesToScroll),_.slideCount<=_.options.slidesToShow&&(_.currentSlide=0),_.registerBreakpoints(),_.setProps(),_.setupInfinite(),_.buildArrows(),_.updateArrows(),_.initArrowEvents(),_.buildDots(),_.updateDots(),_.initDotEvents(),_.cleanUpSlideEvents(),_.initSlideEvents(),_.checkResponsive(!1,!0),!0===_.options.focusOnSelect&&$(_.$slideTrack).children().on("click.slick",_.selectHandler),_.setSlideClasses("number"==typeof _.currentSlide?_.currentSlide:0),_.setPosition(),_.focusHandler(),_.paused=!_.options.autoplay,_.autoPlay(),_.$slider.trigger("reInit",[_])},Slick.prototype.resize=function(){var _=this;$(window).width()!==_.windowWidth&&(clearTimeout(_.windowDelay),_.windowDelay=window.setTimeout((function(){_.windowWidth=$(window).width(),_.checkResponsive(),_.unslicked||_.setPosition()}),50))},Slick.prototype.removeSlide=Slick.prototype.slickRemove=function(index,removeBefore,removeAll){var _=this;if(index="boolean"==typeof index?!0===(removeBefore=index)?0:_.slideCount-1:!0===removeBefore?--index:index,_.slideCount<1||index<0||index>_.slideCount-1)return!1;_.unload(),!0===removeAll?_.$slideTrack.children().remove():_.$slideTrack.children(this.options.slide).eq(index).remove(),_.$slides=_.$slideTrack.children(this.options.slide),_.$slideTrack.children(this.options.slide).detach(),_.$slideTrack.append(_.$slides),_.$slidesCache=_.$slides,_.reinit()},Slick.prototype.setCSS=function(position){var _=this,positionProps={},x,y;!0===_.options.rtl&&(position=-position),x="left"==_.positionProp?Math.ceil(position)+"px":"0px",y="top"==_.positionProp?Math.ceil(position)+"px":"0px",positionProps[_.positionProp]=position,!1===_.transformsEnabled?_.$slideTrack.css(positionProps):(positionProps={},!1===_.cssTransitions?(positionProps[_.animType]="translate("+x+", "+y+")",_.$slideTrack.css(positionProps)):(positionProps[_.animType]="translate3d("+x+", "+y+", 0px)",_.$slideTrack.css(positionProps)))},Slick.prototype.setDimensions=function(){var _=this;!1===_.options.vertical?!0===_.options.centerMode&&_.$list.css({padding:"0px "+_.options.centerPadding}):(_.$list.height(_.$slides.first().outerHeight(!0)*_.options.slidesToShow),!0===_.options.centerMode&&_.$list.css({padding:_.options.centerPadding+" 0px"})),_.listWidth=_.$list.width(),_.listHeight=_.$list.height(),!1===_.options.vertical&&!1===_.options.variableWidth?(_.slideWidth=Math.ceil(_.listWidth/_.options.slidesToShow),_.$slideTrack.width(Math.ceil(_.slideWidth*_.$slideTrack.children(".slick-slide").length))):!0===_.options.variableWidth?_.$slideTrack.width(5e3*_.slideCount):(_.slideWidth=Math.ceil(_.listWidth),_.$slideTrack.height(Math.ceil(_.$slides.first().outerHeight(!0)*_.$slideTrack.children(".slick-slide").length)));var offset=_.$slides.first().outerWidth(!0)-_.$slides.first().width();!1===_.options.variableWidth&&_.$slideTrack.children(".slick-slide").width(_.slideWidth-offset)},Slick.prototype.setFade=function(){var _=this,targetLeft;_.$slides.each((function(index,element){targetLeft=_.slideWidth*index*-1,!0===_.options.rtl?$(element).css({position:"relative",right:targetLeft,top:0,zIndex:_.options.zIndex-2,opacity:0}):$(element).css({position:"relative",left:targetLeft,top:0,zIndex:_.options.zIndex-2,opacity:0})})),_.$slides.eq(_.currentSlide).css({zIndex:_.options.zIndex-1,opacity:1})},Slick.prototype.setHeight=function(){var _=this;if(1===_.options.slidesToShow&&!0===_.options.adaptiveHeight&&!1===_.options.vertical){var targetHeight=_.$slides.eq(_.currentSlide).outerHeight(!0);_.$list.css("height",targetHeight)}},Slick.prototype.setOption=Slick.prototype.slickSetOption=function(){var _=this,l,item,option,value,refresh=!1,type;if("object"===$.type(arguments[0])?(option=arguments[0],refresh=arguments[1],type="multiple"):"string"===$.type(arguments[0])&&(option=arguments[0],value=arguments[1],refresh=arguments[2],"responsive"===arguments[0]&&"array"===$.type(arguments[1])?type="responsive":void 0!==arguments[1]&&(type="single")),"single"===type)_.options[option]=value;else if("multiple"===type)$.each(option,(function(opt,val){_.options[opt]=val}));else if("responsive"===type)for(item in value)if("array"!==$.type(_.options.responsive))_.options.responsive=[value[item]];else{for(l=_.options.responsive.length-1;l>=0;)_.options.responsive[l].breakpoint===value[item].breakpoint&&_.options.responsive.splice(l,1),l--;_.options.responsive.push(value[item])}refresh&&(_.unload(),_.reinit())},Slick.prototype.setPosition=function(){var _=this;_.setDimensions(),_.setHeight(),!1===_.options.fade?_.setCSS(_.getLeft(_.currentSlide)):_.setFade(),_.$slider.trigger("setPosition",[_])},Slick.prototype.setProps=function(){var _=this,bodyStyle=document.body.style;_.positionProp=!0===_.options.vertical?"top":"left","top"===_.positionProp?_.$slider.addClass("slick-vertical"):_.$slider.removeClass("slick-vertical"),void 0===bodyStyle.WebkitTransition&&void 0===bodyStyle.MozTransition&&void 0===bodyStyle.msTransition||!0===_.options.useCSS&&(_.cssTransitions=!0),_.options.fade&&("number"==typeof _.options.zIndex?_.options.zIndex<3&&(_.options.zIndex=3):_.options.zIndex=_.defaults.zIndex),void 0!==bodyStyle.OTransform&&(_.animType="OTransform",_.transformType="-o-transform",_.transitionType="OTransition",void 0===bodyStyle.perspectiveProperty&&void 0===bodyStyle.webkitPerspective&&(_.animType=!1)),void 0!==bodyStyle.MozTransform&&(_.animType="MozTransform",_.transformType="-moz-transform",_.transitionType="MozTransition",void 0===bodyStyle.perspectiveProperty&&void 0===bodyStyle.MozPerspective&&(_.animType=!1)),void 0!==bodyStyle.webkitTransform&&(_.animType="webkitTransform",_.transformType="-webkit-transform",_.transitionType="webkitTransition",void 0===bodyStyle.perspectiveProperty&&void 0===bodyStyle.webkitPerspective&&(_.animType=!1)),void 0!==bodyStyle.msTransform&&(_.animType="msTransform",_.transformType="-ms-transform",_.transitionType="msTransition",void 0===bodyStyle.msTransform&&(_.animType=!1)),void 0!==bodyStyle.transform&&!1!==_.animType&&(_.animType="transform",_.transformType="transform",_.transitionType="transition"),_.transformsEnabled=_.options.useTransform&&null!==_.animType&&!1!==_.animType},Slick.prototype.setSlideClasses=function(index){var _=this,centerOffset,allSlides,indexOffset,remainder;allSlides=_.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),_.$slides.eq(index).addClass("slick-current"),!0===_.options.centerMode?(centerOffset=Math.floor(_.options.slidesToShow/2),!0===_.options.infinite&&(index>=centerOffset&&index<=_.slideCount-1-centerOffset?_.$slides.slice(index-centerOffset,index+centerOffset+1).addClass("slick-active").attr("aria-hidden","false"):(indexOffset=_.options.slidesToShow+index,allSlides.slice(indexOffset-centerOffset+1,indexOffset+centerOffset+2).addClass("slick-active").attr("aria-hidden","false")),0===index?allSlides.eq(allSlides.length-1-_.options.slidesToShow).addClass("slick-center"):index===_.slideCount-1&&allSlides.eq(_.options.slidesToShow).addClass("slick-center")),_.$slides.eq(index).addClass("slick-center")):index>=0&&index<=_.slideCount-_.options.slidesToShow?_.$slides.slice(index,index+_.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):allSlides.length<=_.options.slidesToShow?allSlides.addClass("slick-active").attr("aria-hidden","false"):(remainder=_.slideCount%_.options.slidesToShow,indexOffset=!0===_.options.infinite?_.options.slidesToShow+index:index,_.options.slidesToShow==_.options.slidesToScroll&&_.slideCount-index<_.options.slidesToShow?allSlides.slice(indexOffset-(_.options.slidesToShow-remainder),indexOffset+remainder).addClass("slick-active").attr("aria-hidden","false"):allSlides.slice(indexOffset,indexOffset+_.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===_.options.lazyLoad&&_.lazyLoad()},Slick.prototype.setupInfinite=function(){var _=this,i,slideIndex,infiniteCount;if(!0===_.options.fade&&(_.options.centerMode=!1),!0===_.options.infinite&&!1===_.options.fade&&(slideIndex=null,_.slideCount>_.options.slidesToShow)){for(infiniteCount=!0===_.options.centerMode?_.options.slidesToShow+1:_.options.slidesToShow,i=_.slideCount;i>_.slideCount-infiniteCount;i-=1)slideIndex=i-1,$(_.$slides[slideIndex]).clone(!0).attr("id","").attr("data-slick-index",slideIndex-_.slideCount).prependTo(_.$slideTrack).addClass("slick-cloned");for(i=0;i<infiniteCount;i+=1)slideIndex=i,$(_.$slides[slideIndex]).clone(!0).attr("id","").attr("data-slick-index",slideIndex+_.slideCount).appendTo(_.$slideTrack).addClass("slick-cloned");_.$slideTrack.find(".slick-cloned").find("[id]").each((function(){$(this).attr("id","")}))}},Slick.prototype.interrupt=function(toggle){var _=this;toggle||_.autoPlay(),_.interrupted=toggle},Slick.prototype.selectHandler=function(event){var _=this,targetElement=$(event.target).is(".slick-slide")?$(event.target):$(event.target).parents(".slick-slide"),index=parseInt(targetElement.attr("data-slick-index"));if(index||(index=0),_.slideCount<=_.options.slidesToShow)return _.setSlideClasses(index),void _.asNavFor(index);_.slideHandler(index)},Slick.prototype.slideHandler=function(index,sync,dontAnimate){var targetSlide,animSlide,oldSlide,slideLeft,targetLeft=null,_=this,navTarget;if(sync=sync||!1,(!0!==_.animating||!0!==_.options.waitForAnimate)&&!(!0===_.options.fade&&_.currentSlide===index||_.slideCount<=_.options.slidesToShow))if(!1===sync&&_.asNavFor(index),targetSlide=index,targetLeft=_.getLeft(targetSlide),slideLeft=_.getLeft(_.currentSlide),_.currentLeft=null===_.swipeLeft?slideLeft:_.swipeLeft,!1===_.options.infinite&&!1===_.options.centerMode&&(index<0||index>_.getDotCount()*_.options.slidesToScroll))!1===_.options.fade&&(targetSlide=_.currentSlide,!0!==dontAnimate?_.animateSlide(slideLeft,(function(){_.postSlide(targetSlide)})):_.postSlide(targetSlide));else if(!1===_.options.infinite&&!0===_.options.centerMode&&(index<0||index>_.slideCount-_.options.slidesToScroll))!1===_.options.fade&&(targetSlide=_.currentSlide,!0!==dontAnimate?_.animateSlide(slideLeft,(function(){_.postSlide(targetSlide)})):_.postSlide(targetSlide));else{if(_.options.autoplay&&clearInterval(_.autoPlayTimer),animSlide=targetSlide<0?_.slideCount%_.options.slidesToScroll!=0?_.slideCount-_.slideCount%_.options.slidesToScroll:_.slideCount+targetSlide:targetSlide>=_.slideCount?_.slideCount%_.options.slidesToScroll!=0?0:targetSlide-_.slideCount:targetSlide,_.animating=!0,_.$slider.trigger("beforeChange",[_,_.currentSlide,animSlide]),oldSlide=_.currentSlide,_.currentSlide=animSlide,_.setSlideClasses(_.currentSlide),_.options.asNavFor&&(navTarget=(navTarget=_.getNavTarget()).slick("getSlick")).slideCount<=navTarget.options.slidesToShow&&navTarget.setSlideClasses(_.currentSlide),_.updateDots(),_.updateArrows(),!0===_.options.fade)return!0!==dontAnimate?(_.fadeSlideOut(oldSlide),_.fadeSlide(animSlide,(function(){_.postSlide(animSlide)}))):_.postSlide(animSlide),void _.animateHeight();!0!==dontAnimate?_.animateSlide(targetLeft,(function(){_.postSlide(animSlide)})):_.postSlide(animSlide)}},Slick.prototype.startLoad=function(){var _=this;!0===_.options.arrows&&_.slideCount>_.options.slidesToShow&&(_.$prevArrow.hide(),_.$nextArrow.hide()),!0===_.options.dots&&_.slideCount>_.options.slidesToShow&&_.$dots.hide(),_.$slider.addClass("slick-loading")},Slick.prototype.swipeDirection=function(){var xDist,yDist,r,swipeAngle,_=this;return xDist=_.touchObject.startX-_.touchObject.curX,yDist=_.touchObject.startY-_.touchObject.curY,r=Math.atan2(yDist,xDist),(swipeAngle=Math.round(180*r/Math.PI))<0&&(swipeAngle=360-Math.abs(swipeAngle)),swipeAngle<=45&&swipeAngle>=0?!1===_.options.rtl?"left":"right":swipeAngle<=360&&swipeAngle>=315?!1===_.options.rtl?"left":"right":swipeAngle>=135&&swipeAngle<=225?!1===_.options.rtl?"right":"left":!0===_.options.verticalSwiping?swipeAngle>=35&&swipeAngle<=135?"down":"up":"vertical"},Slick.prototype.swipeEnd=function(event){var _=this,slideCount,direction;if(_.dragging=!1,_.interrupted=!1,_.shouldClick=!(_.touchObject.swipeLength>10),void 0===_.touchObject.curX)return!1;if(!0===_.touchObject.edgeHit&&_.$slider.trigger("edge",[_,_.swipeDirection()]),_.touchObject.swipeLength>=_.touchObject.minSwipe){switch(direction=_.swipeDirection()){case"left":case"down":slideCount=_.options.swipeToSlide?_.checkNavigable(_.currentSlide+_.getSlideCount()):_.currentSlide+_.getSlideCount(),_.currentDirection=0;break;case"right":case"up":slideCount=_.options.swipeToSlide?_.checkNavigable(_.currentSlide-_.getSlideCount()):_.currentSlide-_.getSlideCount(),_.currentDirection=1}"vertical"!=direction&&(_.slideHandler(slideCount),_.touchObject={},_.$slider.trigger("swipe",[_,direction]))}else _.touchObject.startX!==_.touchObject.curX&&(_.slideHandler(_.currentSlide),_.touchObject={})},Slick.prototype.swipeHandler=function(event){var _=this;if(!(!1===_.options.swipe||"ontouchend"in document&&!1===_.options.swipe||!1===_.options.draggable&&-1!==event.type.indexOf("mouse")))switch(_.touchObject.fingerCount=event.originalEvent&&void 0!==event.originalEvent.touches?event.originalEvent.touches.length:1,_.touchObject.minSwipe=_.listWidth/_.options.touchThreshold,!0===_.options.verticalSwiping&&(_.touchObject.minSwipe=_.listHeight/_.options.touchThreshold),event.data.action){case"start":_.swipeStart(event);break;case"move":_.swipeMove(event);break;case"end":_.swipeEnd(event)}},Slick.prototype.swipeMove=function(event){var _=this,edgeWasHit=!1,curLeft,swipeDirection,swipeLength,positionOffset,touches;return touches=void 0!==event.originalEvent?event.originalEvent.touches:null,!(!_.dragging||touches&&1!==touches.length)&&(curLeft=_.getLeft(_.currentSlide),_.touchObject.curX=void 0!==touches?touches[0].pageX:event.clientX,_.touchObject.curY=void 0!==touches?touches[0].pageY:event.clientY,_.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(_.touchObject.curX-_.touchObject.startX,2))),!0===_.options.verticalSwiping&&(_.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(_.touchObject.curY-_.touchObject.startY,2)))),"vertical"!==(swipeDirection=_.swipeDirection())?(void 0!==event.originalEvent&&_.touchObject.swipeLength>4&&event.preventDefault(),positionOffset=(!1===_.options.rtl?1:-1)*(_.touchObject.curX>_.touchObject.startX?1:-1),!0===_.options.verticalSwiping&&(positionOffset=_.touchObject.curY>_.touchObject.startY?1:-1),swipeLength=_.touchObject.swipeLength,_.touchObject.edgeHit=!1,!1===_.options.infinite&&(0===_.currentSlide&&"right"===swipeDirection||_.currentSlide>=_.getDotCount()&&"left"===swipeDirection)&&(swipeLength=_.touchObject.swipeLength*_.options.edgeFriction,_.touchObject.edgeHit=!0),!1===_.options.vertical?_.swipeLeft=curLeft+swipeLength*positionOffset:_.swipeLeft=curLeft+swipeLength*(_.$list.height()/_.listWidth)*positionOffset,!0===_.options.verticalSwiping&&(_.swipeLeft=curLeft+swipeLength*positionOffset),!0!==_.options.fade&&!1!==_.options.touchMove&&(!0===_.animating?(_.swipeLeft=null,!1):void _.setCSS(_.swipeLeft))):void 0)},Slick.prototype.swipeStart=function(event){var _=this,touches;if(_.interrupted=!0,1!==_.touchObject.fingerCount||_.slideCount<=_.options.slidesToShow)return _.touchObject={},!1;void 0!==event.originalEvent&&void 0!==event.originalEvent.touches&&(touches=event.originalEvent.touches[0]),_.touchObject.startX=_.touchObject.curX=void 0!==touches?touches.pageX:event.clientX,_.touchObject.startY=_.touchObject.curY=void 0!==touches?touches.pageY:event.clientY,_.dragging=!0},Slick.prototype.unfilterSlides=Slick.prototype.slickUnfilter=function(){var _=this;null!==_.$slidesCache&&(_.unload(),_.$slideTrack.children(this.options.slide).detach(),_.$slidesCache.appendTo(_.$slideTrack),_.reinit())},Slick.prototype.unload=function(){var _=this;$(".slick-cloned",_.$slider).remove(),_.$dots&&_.$dots.remove(),_.$prevArrow&&_.htmlExpr.test(_.options.prevArrow)&&_.$prevArrow.remove(),_.$nextArrow&&_.htmlExpr.test(_.options.nextArrow)&&_.$nextArrow.remove(),_.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},Slick.prototype.unslick=function(fromBreakpoint){var _=this;_.$slider.trigger("unslick",[_,fromBreakpoint]),_.destroy()},Slick.prototype.updateArrows=function(){var _=this,centerOffset;centerOffset=Math.floor(_.options.slidesToShow/2),!0===_.options.arrows&&_.slideCount>_.options.slidesToShow&&!_.options.infinite&&(_.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),_.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===_.currentSlide?(_.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),_.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):_.currentSlide>=_.slideCount-_.options.slidesToShow&&!1===_.options.centerMode?(_.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),_.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):_.currentSlide>=_.slideCount-1&&!0===_.options.centerMode&&(_.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),_.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},Slick.prototype.updateDots=function(){var _=this;console.log("update dots"),_.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true").attr("aria-selected","false"),_.$dots.find("li").eq(Math.floor(_.currentSlide/_.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false").attr("aria-selected","true")},Slick.prototype.visibility=function(){var _=this;_.options.autoplay&&(document[_.hidden]?_.interrupted=!0:_.interrupted=!1)},$.fn.slick=function(){var _=this,opt=arguments[0],args=Array.prototype.slice.call(arguments,1),l=_.length,i,ret;for(i=0;i<l;i++)if("object"==typeof opt||void 0===opt?_[i].slick=new Slick(_[i],opt):ret=_[i].slick[opt].apply(_[i].slick,args),void 0!==ret)return ret;return _}}));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
public/assets/js/sp-slick-active.js CHANGED
@@ -15,13 +15,73 @@ jQuery(document).ready(function ($) {
15
  }
16
 
17
  var tfree_custom_slider_id = $(this).attr('id');
 
 
18
  if (tfree_custom_slider_id != '') {
19
- jQuery('#' + tfree_custom_slider_id).slick({
 
 
 
 
 
 
 
 
 
 
 
 
20
  pauseOnFocus: false,
21
  slidesToScroll: 1,
22
  prevArrow: "<div class='slick-prev'><i class='fa fa-angle-left'></i></div>",
23
  nextArrow: "<div class='slick-next'><i class='fa fa-angle-right'></i></div>",
24
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  }
26
  });
27
  });
15
  }
16
 
17
  var tfree_custom_slider_id = $(this).attr('id');
18
+ var tpCarouselData = $(this).data('slick');
19
+
20
  if (tfree_custom_slider_id != '') {
21
+ // my slick slider as constant object
22
+ const mySlider = $('#' + tfree_custom_slider_id).on('init', function (slick) {
23
+ if (tpCarouselData.adaptiveHeight == true) {
24
+ // on init run our multi slide adaptive height function
25
+ multiSlideAdaptiveHeight(this);
26
+ }
27
+ }).on('beforeChange', function (slick, currentSlide, nextSlide) {
28
+
29
+ if (tpCarouselData.adaptiveHeight == true) {
30
+ // on init run our multi slide adaptive height function
31
+ multiSlideAdaptiveHeight(this);
32
+ }
33
+ }).slick({
34
  pauseOnFocus: false,
35
  slidesToScroll: 1,
36
  prevArrow: "<div class='slick-prev'><i class='fa fa-angle-left'></i></div>",
37
  nextArrow: "<div class='slick-next'><i class='fa fa-angle-right'></i></div>",
38
  });
39
+
40
+ // our multi slide adaptive height function passing slider object
41
+ function multiSlideAdaptiveHeight(slider) {
42
+
43
+ // set our vars
44
+ let activeSlides = [];
45
+ let tallestSlide = 0;
46
+
47
+ // very short delay in order for us get the correct active slides
48
+ setTimeout(function () {
49
+
50
+ // loop through each active slide for our current slider
51
+ $('.slick-track .slick-active', slider).each(function (i) {
52
+
53
+ // add current active slide height to our active slides array
54
+ activeSlides[i] = $(this).outerHeight();
55
+
56
+ });
57
+
58
+ // for each of the active slides heights
59
+ activeSlides.forEach(function (item) {
60
+
61
+ // if current active slide height is greater than tallest slide height
62
+ if (item > tallestSlide) {
63
+
64
+ // override tallest slide height to current active slide height
65
+ tallestSlide = item;
66
+
67
+ }
68
+ });
69
+
70
+ // set the current slider slick list height to current active tallest slide height
71
+ $('.slick-list', slider).height(tallestSlide).css({
72
+ transition: 'all .5s ease',
73
+ });
74
+ }, 10);
75
+ }
76
+
77
+ // when window is resized
78
+ $(window).on('resize', function () {
79
+ // run our multi slide adaptive height function incase current slider active slides change height responsively
80
+ if (tpCarouselData.adaptiveHeight == true) {
81
+ // on init run our multi slide adaptive height function
82
+ multiSlideAdaptiveHeight(mySlider);
83
+ }
84
+ });
85
  }
86
  });
87
  });
public/assets/js/sp-slick-active.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready((function($){$(".sp-testimonial-free-section").each((function(index){var _this=$(this),custom_id=$(this).attr("id"),preloader;if("1"==_this.data("preloader")){var parents_class,parents_siblings_id=$("#"+custom_id).parent(".sp-testimonial-free-wrapper").find(".tfree-preloader").attr("id");$(window).load((function(){$("#"+parents_siblings_id).animate({opacity:1},600).hide(),$("#"+custom_id).animate({opacity:1},600)}))}var tfree_custom_slider_id=$(this).attr("id");""!=tfree_custom_slider_id&&jQuery("#"+tfree_custom_slider_id).slick({pauseOnFocus:!1,slidesToScroll:1,prevArrow:"<div class='slick-prev'><i class='fa fa-angle-left'></i></div>",nextArrow:"<div class='slick-next'><i class='fa fa-angle-right'></i></div>"})}))}));
1
+ jQuery(document).ready((function($){$(".sp-testimonial-free-section").each((function(index){var _this=$(this),custom_id=$(this).attr("id"),preloader;if("1"==_this.data("preloader")){var parents_class,parents_siblings_id=$("#"+custom_id).parent(".sp-testimonial-free-wrapper").find(".tfree-preloader").attr("id");$(window).load((function(){$("#"+parents_siblings_id).animate({opacity:1},600).hide(),$("#"+custom_id).animate({opacity:1},600)}))}var tfree_custom_slider_id=$(this).attr("id"),tpCarouselData=$(this).data("slick");if(""!=tfree_custom_slider_id){const mySlider=$("#"+tfree_custom_slider_id).on("init",(function(slick){1==tpCarouselData.adaptiveHeight&&multiSlideAdaptiveHeight(this)})).on("beforeChange",(function(slick,currentSlide,nextSlide){1==tpCarouselData.adaptiveHeight&&multiSlideAdaptiveHeight(this)})).slick({pauseOnFocus:!1,slidesToScroll:1,prevArrow:"<div class='slick-prev'><i class='fa fa-angle-left'></i></div>",nextArrow:"<div class='slick-next'><i class='fa fa-angle-right'></i></div>"});function multiSlideAdaptiveHeight(slider){let activeSlides=[],tallestSlide=0;setTimeout((function(){$(".slick-track .slick-active",slider).each((function(i){activeSlides[i]=$(this).outerHeight()})),activeSlides.forEach((function(item){item>tallestSlide&&(tallestSlide=item)})),$(".slick-list",slider).height(tallestSlide).css({transition:"all .5s ease"})}),10)}$(window).on("resize",(function(){1==tpCarouselData.adaptiveHeight&&multiSlideAdaptiveHeight(mySlider)}))}}))}));
public/views/deprecated-shortcodes.php CHANGED
File without changes
public/views/scripts.php CHANGED
@@ -45,6 +45,7 @@ class SP_TFREE_Front_Scripts {
45
  public function __construct() {
46
 
47
  add_action( 'wp_enqueue_scripts', array( $this, 'front_scripts' ) );
 
48
  }
49
 
50
  /**
@@ -72,6 +73,25 @@ class SP_TFREE_Front_Scripts {
72
  wp_register_script( 'tfree-slick-active', SP_TFREE_URL . 'public/assets/js/sp-slick-active.js', array( 'jquery' ), SP_TFREE_VERSION, true );
73
 
74
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
 
76
  }
77
  new SP_TFREE_Front_Scripts();
45
  public function __construct() {
46
 
47
  add_action( 'wp_enqueue_scripts', array( $this, 'front_scripts' ) );
48
+ add_action( 'admin_enqueue_scripts', array( $this, 'admin_front_scripts' ) );
49
  }
50
 
51
  /**
73
  wp_register_script( 'tfree-slick-active', SP_TFREE_URL . 'public/assets/js/sp-slick-active.js', array( 'jquery' ), SP_TFREE_VERSION, true );
74
 
75
  }
76
+ /**
77
+ * Plugin Scripts and Styles
78
+ */
79
+ public function admin_front_scripts() {
80
+ $setting_options = get_option( 'sp_testimonial_pro_options' );
81
+ $dequeue_slick_css = isset( $setting_options['tf_dequeue_slick_css'] ) ? $setting_options['tf_dequeue_slick_css'] : true;
82
+ $dequeue_fa_css = isset( $setting_options['tf_dequeue_fa_css'] ) ? $setting_options['tf_dequeue_fa_css'] : true;
83
+ // CSS Files.
84
+ if ( $dequeue_slick_css ) {
85
+ wp_enqueue_style( 'admin-tfree-slick', SP_TFREE_URL . 'public/assets/css/slick.css', array(), SP_TFREE_VERSION );
86
+ }
87
+ if ( $dequeue_fa_css ) {
88
+ wp_enqueue_style( 'admin-tfree-font-awesome', SP_TFREE_URL . 'public/assets/css/font-awesome.min.css', array(), SP_TFREE_VERSION );
89
+ }
90
+
91
+ wp_enqueue_style( 'admin-tfree-deprecated-style', SP_TFREE_URL . 'public/assets/css/deprecated-style.css', array(), SP_TFREE_VERSION );
92
+ wp_enqueue_style( 'admin-tfree-style', SP_TFREE_URL . 'public/assets/css/style.css', array(), SP_TFREE_VERSION );
93
+
94
+ }
95
 
96
  }
97
  new SP_TFREE_Front_Scripts();
public/views/shortcoderender.php CHANGED
@@ -22,7 +22,7 @@ if ( ! class_exists( 'TFREE_Shortcode_Render' ) ) {
22
  *
23
  * @var string
24
  */
25
- public $tfree_five_star = '<i class="fa fa-star" aria-hidden="true"></i>
26
  <i class="fa fa-star" aria-hidden="true"></i>
27
  <i class="fa fa-star" aria-hidden="true"></i>
28
  <i class="fa fa-star" aria-hidden="true"></i>
@@ -33,7 +33,7 @@ if ( ! class_exists( 'TFREE_Shortcode_Render' ) ) {
33
  *
34
  * @var string
35
  */
36
- public $tfree_four_star = '
37
  <i class="fa fa-star" aria-hidden="true"></i>
38
  <i class="fa fa-star" aria-hidden="true"></i>
39
  <i class="fa fa-star" aria-hidden="true"></i>
@@ -45,7 +45,7 @@ if ( ! class_exists( 'TFREE_Shortcode_Render' ) ) {
45
  *
46
  * @var string
47
  */
48
- public $tfree_three_star = '
49
  <i class="fa fa-star" aria-hidden="true"></i>
50
  <i class="fa fa-star" aria-hidden="true"></i>
51
  <i class="fa fa-star" aria-hidden="true"></i>
@@ -57,7 +57,7 @@ if ( ! class_exists( 'TFREE_Shortcode_Render' ) ) {
57
  *
58
  * @var string
59
  */
60
- public $tfree_two_star = '
61
  <i class="fa fa-star" aria-hidden="true"></i>
62
  <i class="fa fa-star" aria-hidden="true"></i>
63
  <i class="fa fa-star-o" aria-hidden="true"></i>
@@ -69,7 +69,7 @@ if ( ! class_exists( 'TFREE_Shortcode_Render' ) ) {
69
  *
70
  * @var string
71
  */
72
- public $tfree_one_star = '
73
  <i class="fa fa-star" aria-hidden="true"></i>
74
  <i class="fa fa-star-o" aria-hidden="true"></i>
75
  <i class="fa fa-star-o" aria-hidden="true"></i>
@@ -109,29 +109,13 @@ if ( ! class_exists( 'TFREE_Shortcode_Render' ) ) {
109
  }
110
 
111
  /**
112
- * Shorcode render.
113
- *
114
- * @param array $attributes Schortcode attributes.
115
  *
116
- * @return string
117
- * @since 2.0
 
118
  */
119
- public function shortcode_render( $attributes ) {
120
-
121
- shortcode_atts(
122
- array(
123
- 'id' => '',
124
- ),
125
- $attributes,
126
- 'sp_testimonial'
127
- );
128
-
129
- $post_id = $attributes['id'];
130
-
131
- $setting_options = get_option( 'sp_testimonial_pro_options' );
132
- $shortcode_data = get_post_meta( $post_id, 'sp_tpro_shortcode_options', true );
133
-
134
- // General Settings.
135
  $theme_style = isset( $shortcode_data['theme_style'] ) ? $shortcode_data['theme_style'] : 'theme-one';
136
  $number_of_total_testimonials = isset( $shortcode_data['number_of_total_testimonials'] ) ? $shortcode_data['number_of_total_testimonials'] : '10';
137
  $order_by = isset( $shortcode_data['testimonial_order_by'] ) ? $shortcode_data['testimonial_order_by'] : 'date';
@@ -324,7 +308,7 @@ if ( ! class_exists( 'TFREE_Shortcode_Render' ) ) {
324
  $outline .= '<div id="sp-testimonial-free-wrapper-' . $post_id . '" class="sp-testimonial-free-wrapper">';
325
 
326
  if ( $section_title ) {
327
- $outline .= '<h2 class="sp-testimonial-free-section-title">' . get_the_title( $post_id ) . '</h2>';
328
  }
329
  if ( $preloader ) {
330
  $preloader_style = ( $preloader ) ? '' : 'display: none;';
@@ -382,8 +366,41 @@ if ( ! class_exists( 'TFREE_Shortcode_Render' ) ) {
382
 
383
  wp_reset_postdata();
384
 
385
- return $outline;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
386
 
 
 
 
387
  }
388
 
389
  }
22
  *
23
  * @var string
24
  */
25
+ public static $tfree_five_star = '<i class="fa fa-star" aria-hidden="true"></i>
26
  <i class="fa fa-star" aria-hidden="true"></i>
27
  <i class="fa fa-star" aria-hidden="true"></i>
28
  <i class="fa fa-star" aria-hidden="true"></i>
33
  *
34
  * @var string
35
  */
36
+ public static $tfree_four_star = '
37
  <i class="fa fa-star" aria-hidden="true"></i>
38
  <i class="fa fa-star" aria-hidden="true"></i>
39
  <i class="fa fa-star" aria-hidden="true"></i>
45
  *
46
  * @var string
47
  */
48
+ public static $tfree_three_star = '
49
  <i class="fa fa-star" aria-hidden="true"></i>
50
  <i class="fa fa-star" aria-hidden="true"></i>
51
  <i class="fa fa-star" aria-hidden="true"></i>
57
  *
58
  * @var string
59
  */
60
+ public static $tfree_two_star = '
61
  <i class="fa fa-star" aria-hidden="true"></i>
62
  <i class="fa fa-star" aria-hidden="true"></i>
63
  <i class="fa fa-star-o" aria-hidden="true"></i>
69
  *
70
  * @var string
71
  */
72
+ public static $tfree_one_star = '
73
  <i class="fa fa-star" aria-hidden="true"></i>
74
  <i class="fa fa-star-o" aria-hidden="true"></i>
75
  <i class="fa fa-star-o" aria-hidden="true"></i>
109
  }
110
 
111
  /**
112
+ * Full html show.
 
 
113
  *
114
+ * @param array $post_id Shortcode ID.
115
+ * @param array $setting_options get all layout options.
116
+ * @param array $shortcode_data get all meta options.
117
  */
118
+ public static function sp_tpro_html_show( $post_id, $setting_options, $shortcode_data, $tfree_one_star, $tfree_two_star, $tfree_three_star, $tfree_four_star, $tfree_five_star, $main_section_title ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  $theme_style = isset( $shortcode_data['theme_style'] ) ? $shortcode_data['theme_style'] : 'theme-one';
120
  $number_of_total_testimonials = isset( $shortcode_data['number_of_total_testimonials'] ) ? $shortcode_data['number_of_total_testimonials'] : '10';
121
  $order_by = isset( $shortcode_data['testimonial_order_by'] ) ? $shortcode_data['testimonial_order_by'] : 'date';
308
  $outline .= '<div id="sp-testimonial-free-wrapper-' . $post_id . '" class="sp-testimonial-free-wrapper">';
309
 
310
  if ( $section_title ) {
311
+ $outline .= '<h2 class="sp-testimonial-free-section-title">' . $main_section_title . '</h2>';
312
  }
313
  if ( $preloader ) {
314
  $preloader_style = ( $preloader ) ? '' : 'display: none;';
366
 
367
  wp_reset_postdata();
368
 
369
+ echo $outline;
370
+ }
371
+
372
+ /**
373
+ * Shorcode render.
374
+ *
375
+ * @param array $attributes Schortcode attributes.
376
+ *
377
+ * @return string
378
+ * @since 2.0
379
+ */
380
+ public function shortcode_render( $attributes ) {
381
+
382
+ shortcode_atts(
383
+ array(
384
+ 'id' => '',
385
+ ),
386
+ $attributes,
387
+ 'sp_testimonial'
388
+ );
389
+
390
+ $post_id = $attributes['id'];
391
+ $setting_options = get_option( 'sp_testimonial_pro_options' );
392
+ $shortcode_data = get_post_meta( $post_id, 'sp_tpro_shortcode_options', true );
393
+ $main_section_title = get_the_title( $post_id );
394
+
395
+ $tfree_one_star = self::$tfree_one_star;
396
+ $tfree_two_star = self::$tfree_two_star;
397
+ $tfree_three_star = self::$tfree_three_star;
398
+ $tfree_four_star = self::$tfree_four_star;
399
+ $tfree_five_star = self::$tfree_five_star;
400
 
401
+ ob_start();
402
+ self::sp_tpro_html_show( $post_id, $setting_options, $shortcode_data, $tfree_one_star, $tfree_two_star, $tfree_three_star, $tfree_four_star, $tfree_five_star, $main_section_title );
403
+ return ob_get_clean();
404
  }
405
 
406
  }
public/views/templates/theme-one.php CHANGED
@@ -20,7 +20,7 @@ if ( $testimonial_title && ! empty( get_the_title() ) ) {
20
 
21
  if ( $testimonial_text && ! empty( get_the_content() ) ) {
22
  $outline .= '<div class="tfree-client-testimonial">';
23
- $outline .= '<p class="tfree-testimonial-content">' . apply_filters( 'the_content', get_the_content() ) . '</p>';
24
  $outline .= '</div>';
25
  }
26
 
@@ -33,23 +33,23 @@ if ( $star_rating && ! empty( $tfree_rating_star ) ) {
33
  switch ( $tfree_rating_star ) {
34
  case 'five_star':
35
  $rating_value = '5';
36
- $star_rating_data = $this->tfree_five_star;
37
  break;
38
  case 'four_star':
39
  $rating_value = '4';
40
- $star_rating_data = $this->tfree_four_star;
41
  break;
42
  case 'three_star':
43
  $rating_value = '3';
44
- $star_rating_data = $this->tfree_three_star;
45
  break;
46
  case 'two_star':
47
  $rating_value = '2';
48
- $star_rating_data = $this->tfree_two_star;
49
  break;
50
  case 'one_star':
51
  $rating_value = '1';
52
- $star_rating_data = $this->tfree_one_star;
53
  break;
54
  }
55
 
20
 
21
  if ( $testimonial_text && ! empty( get_the_content() ) ) {
22
  $outline .= '<div class="tfree-client-testimonial">';
23
+ $outline .= '<div class="tfree-testimonial-content">' . apply_filters( 'the_content', get_the_content() ) . '</div>';
24
  $outline .= '</div>';
25
  }
26
 
33
  switch ( $tfree_rating_star ) {
34
  case 'five_star':
35
  $rating_value = '5';
36
+ $star_rating_data = $tfree_five_star;
37
  break;
38
  case 'four_star':
39
  $rating_value = '4';
40
+ $star_rating_data = $tfree_four_star;
41
  break;
42
  case 'three_star':
43
  $rating_value = '3';
44
+ $star_rating_data = $tfree_three_star;
45
  break;
46
  case 'two_star':
47
  $rating_value = '2';
48
+ $star_rating_data = $tfree_two_star;
49
  break;
50
  case 'one_star':
51
  $rating_value = '1';
52
+ $star_rating_data = $tfree_one_star;
53
  break;
54
  }
55
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: shapedplugin, rubel_miah, khalilu, shamimmiashuhagh
3
  Donate link: http://shapedplugin.com/donate
4
  Tags: testimonial, testimonials, testimonial showcase, testimonials showcase, testimonial slider, testimonials slider, testimonial carousel, testimonial front-end submission form, testimonials widget, easy testimonial, testimonial rotator, random testimonials, custom testimonial, collect testimonials, social proof, simple testimonial plugin, best testimonials showcase plugin, free testimonial, customers reviews
5
  Requires at least: 4.0
6
- Tested up to: 5.8
7
- Stable tag: 2.2.19
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -194,6 +194,14 @@ Thank you!
194
 
195
  == Changelog ==
196
 
 
 
 
 
 
 
 
 
197
  = 2.2.19 - Sep 16, 2021 =
198
  * Improved: Plugin security.
199
  * Removed: Unused code.
3
  Donate link: http://shapedplugin.com/donate
4
  Tags: testimonial, testimonials, testimonial showcase, testimonials showcase, testimonial slider, testimonials slider, testimonial carousel, testimonial front-end submission form, testimonials widget, easy testimonial, testimonial rotator, random testimonials, custom testimonial, collect testimonials, social proof, simple testimonial plugin, best testimonials showcase plugin, free testimonial, customers reviews
5
  Requires at least: 4.0
6
+ Tested up to: 5.8.1
7
+ Stable tag: 2.3.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
194
 
195
  == Changelog ==
196
 
197
+ = 2.3.0 - Oct 09, 2021 =
198
+ * New: Live Preview option.
199
+ * Fix: Few sites case, different plugin_dir issues.
200
+ * Fix: Adaptive height issue to carousel layout when multi-column(s) is used.
201
+ * Fix: Accessibility issues.
202
+ * Fix: Several minor issues.
203
+ * Improved: Shortcode settings panel text.
204
+
205
  = 2.2.19 - Sep 16, 2021 =
206
  * Improved: Plugin security.
207
  * Removed: Unused code.
testimonial-free.php CHANGED
@@ -12,7 +12,7 @@
12
  * Plugin Name: Testimonial
13
  * Plugin URI: https://shapedplugin.com/plugin/testimonial-pro/?ref=1
14
  * Description: Most Customizable and Powerful Testimonials Showcase Plugin for WordPress that allows you to manage and display Testimonials or Reviews on any page or widget.
15
- * Version: 2.2.19
16
  * Author: ShapedPlugin
17
  * Author URI: https://shapedplugin.com/
18
  * Text Domain: testimonial-free
@@ -59,7 +59,7 @@ if ( ! class_exists( 'SP_Testimonial_FREE' ) ) {
59
  *
60
  * @var string
61
  */
62
- public $version = '2.2.19';
63
 
64
  /**
65
  * Plugin testimonial.
12
  * Plugin Name: Testimonial
13
  * Plugin URI: https://shapedplugin.com/plugin/testimonial-pro/?ref=1
14
  * Description: Most Customizable and Powerful Testimonials Showcase Plugin for WordPress that allows you to manage and display Testimonials or Reviews on any page or widget.
15
+ * Version: 2.3.0
16
  * Author: ShapedPlugin
17
  * Author URI: https://shapedplugin.com/
18
  * Text Domain: testimonial-free
59
  *
60
  * @var string
61
  */
62
+ public $version = '2.3.0';
63
 
64
  /**
65
  * Plugin testimonial.