1
!function(t){"function"==typeof define&&define.amd?define("scripts",t):t()}
2
(function(){"use strict";function n(t,e,n){var o=n?((o=new Date).setTime(o.getTime()+24*n*60*60*1e3),"; expires="+o.toGMTString()):"";document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+o+"; path=/"}
3
var o,i,a;function St(t){return 0===t?"":t}
4
window.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),window.isSearchBot=/Bot/i.test(navigator.userAgent),window.isMobile&&document.body.classList.add("is-mobile"),jQuery(function(t){var e=t(window).width(),n=t(".js-scrolltop");n.on("click",function(){return t("body,html").animate({scrollTop:0}
5
,500)}
6
),t(window).on("scroll",function(){100<t(this).scrollTop()?e<991&&"on"!==n.data("mob")||n.fadeIn():n.fadeOut()}
7
)}
8
),jQuery(function(t){t(document).on("click",".js-spoiler-box-title",function(){t(this).toggleClass("active").next().slideToggle()}
9
)}
10
),o=window,i=document,(a=jQuery)&&(a.fn.wpshoplightbox=function(t){var e=a(this),n=a('<div class="wpshoplightbox-container" role="dialog" tabindex="-1"><div class="wpshoplightbox-bg"></div><div class="wpshoplightbox-inner"><div class="wpshoplightbox-close"><svg width="17" height="17" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M-1-1h19v19h-19z"/><path fill="#fff" d="M8.485 7.071l-7.071-7.071-1.414 1.414 7.071 7.071-7.071 7.071 1.414 1.414 7.071-7.071 7.071 7.071 1.414-1.414-7.071-7.071 7.071-7.071-1.414-1.414-7.071 7.071z"/></svg></div><div class="wpshoplightbox-body"><div class="wpshoplightbox-image"></div></div><div class="wpshoplightbox-caption"></div></div></div>');e.on("click",function(){var t=a(this).attr("href"),e=i.createElement("img"),e=a(e);if(t.match(/(\.jpg|\.gif|\.jpeg|\.png|\.webp|\.svg)$/i)){e.attr("src",t);n.appendTo("body")[0];return a("head").append('<style id="wpshoplightbox-scroll-style" type="text/css">.wpshoplightbox-scroll{margin-right:'+(o.innerWidth-i.documentElement.clientWidth)+"px;}
11
</style>"),a("body").addClass("wpshoplightbox-scroll"),n.find(".wpshoplightbox-image").html(e),setTimeout(function(){n.addClass("wpshoplightbox--open")}
12
,10),!1}
13
}
14
),a(i).on("click",".wpshoplightbox-body, .wpshoplightbox-close",function(){a(i).find(".wpshoplightbox-container").removeClass("wpshoplightbox--open"),setTimeout(function(){a(i).find(".wpshoplightbox-container").remove()}
15
,400),a("body").removeClass("wpshoplightbox-scroll"),a("#wpshoplightbox-scroll-style").remove()}
16
)}
17
),jQuery(function(d){d(document).on("click",".js-star-rating-item",function(){var o=d(this),i=o.parent(),a=o.data("score"),t=i.data("post-id"),r=i.data("rating-count"),c=i.data("rating-sum"),s=i.data("rating-value");function l(t,e){return e[4<t%100&&t%100<20?2:[2,0,1,1,1,2][t%10<5?t%10:5]]}
18
i.hasClass("disabled")||(i.addClass("disabled process"),t={action:"wpshop_star_rating_submit",nonce:wps_ajax.nonce,post_id:t,score:a,rating_count:r,rating_sum:c,rating_value:s}
19
,jQuery.post(wps_ajax.url,t,function(t){var e,n;t.success?(s=((c+=a)/++r).toFixed(2),e="assessment",n=d("html").attr("lang"),"undefined"!=typeof rating_count_text_filter?e=rating_count_text_filter:("ru-RU"===n&&(e=l(r,["оценка","оценки","оценок"])),"uk"===n&&(e=l(r,["оцінка","оцінки","оцінок"]))),o.parent().parent().find(".star-rating-text").html("<em>( <strong>"+r+"</strong> "+e+", "+settings_array.rating_text_average+" <strong>"+s+"</strong> "+settings_array.rating_text_from+" <strong>5</strong> )</em></div>")):(t.data,console.log(t)),i.removeClass("process")}
20
))}
21
),d(".js-star-rating-item").on({mouseenter:function(){d(this).parent().hasClass("disabled")||(d(this).parent().addClass("hover"),d(this).addClass("hover").prevAll().addClass("hover"))}
22
,mouseleave:function(){d(this).parent().hasClass("disabled")||(d(this).parent().removeClass("hover"),d(".js-star-rating-item").removeClass("hover"))}
23
}
24
)}
25
),jQuery(document).ready(function(d){function o(t){if(0!==t.length){var e=d(window).scrollTop(),n=e+d(window).height();if(d("body").is(":animated"))for(console.log("animated"),s=0;s<t.length;s++)t[s].curTopOffset<=e&&(console.log("body anim"),d(t[s]).removeClass("w-animate w-animate_no-hover"));!function(t,e){if(t.length)for(var n=0;n<t.length;n++){var o=h(d(t[n]),e);t[n].curTopOffset<o&&(d(t[n]).removeClass("w-animate--wait"),d(t[n]).addClass("w-animate--started"))}
26
}
27
(t,n)}
28
}
29
function t(){var t,s,l,e=d(".w-animate");function n(){!function(t){for(var e=0;e<t.length;e++)t[e].curTopOffset=d(t[e]).offset().top}
30
(e)}
31
t=e,s=d(window).scrollTop(),l=s+d(window).height(),t.each(function(){var t=d(this),e=t.offset().top;e<s-450&&t.removeClass("w-animate w-animate_no-hover");var n,o,i,a,r,c=h(t,l);o=e,i=l,a=(n=t).attr("data-animate-style"),0!==(r=n.attr("data-animate-distance"))&&""!==r&&(void 0===r&&(r="40"),r=r.replace("px",""),n.css({"transition-duration":"0s","transition-delay":"0s"}
32
),"fadeinup"===a&&n.css("transform","translate3d(0,"+r+"px,0)"),"fadeindown"===a&&n.css("transform","translate3d(0,-"+r+"px,0)"),"fadeinleft"===a&&n.css("transform","translate3d("+r+"px,0,0)"),"fadeinright"===a&&n.css("transform","translate3d(-"+r+"px,0,0)"),u(n,o,i),n.css({"transition-duration":"","transition-delay":""}
33
)),0!==(r=n.attr("data-animate-scale"))&&""!==r&&(n.css({"transition-duration":"0s","transition-delay":"0s"}
34
),n.css("transform","scale("+r+")"),u(n,o,i),n.css({"transition-duration":"","transition-delay":""}
35
)),0!==(i=n.attr("data-animate-delay"))&&""!==i&&(void 0===i&&(i=Math.random()/4),n.css("transition-delay",i+"s")),void 0===(i=n.attr("data-animate-duration"))&&(i="1.5"),0!==i&&""!==i&&n.css("transition-duration",i+"s"),e<c&&(t.addClass("w-animate--started"),t.is('[data-animate-style="animatednumber"]')),c<=e&&t.addClass("w-animate--wait")}
36
),e=e.filter(".w-animate--wait"),n(),d(window).bind("resize",i(n,200)),d(window).bind("scroll",i(function(){o(e)}
37
,200))}
38
function u(t,e,n){return e<n+450&&t[0].offsetHeight}
39
function h(t,e){var n=t.attr("data-animate-trigger-offset"),o=e;return void 0===n&&(n=(t.innerHeight()/3).toString()),void 0!==n&&""!==n&&(o=e-+(n=n.replace("px",""))),o}
40
function i(o,i,a){var r,c;return i=i||250,function(){var t=a||this,e=+new Date,n=arguments;r&&e<r+i?(clearTimeout(c),c=setTimeout(function(){r=e,o.apply(t,n)}
...
</html>