1(self.webpackChunkwpjshop=self.webpackChunkwpjshop||[]).push([[20],{9020:function(){(function(){var t,n;t=this.jQuery||window.jQuery,n=t(window),t.fn.wpjCarousel=function(e){e=t.extend({itemsOnPage:1,gutter:0,controlsText:['<i class="fc icons_caret-left"></i>','<i class="fc icons_caret-right"></i>'],responsive:null},e||{});var o,s,i=this,a=i.find(".container"),c=i.find("[data-wpj-carousel]"),r=c.children(),d=r.length,u=0,l=u,f=e.gutter,h=e.itemsOnPage,p=0,v=function(){var o=n.width(),s=a?a.width():i.width();if(0===s){var c=t("main").find(".container");c[0]&&(s=c.width())}f=e.gutter,h=e.itemsOnPage,e.responsive&&t.each(e.responsive,(function(t,n){o>=t&&(f=n.gutter?n.gutter:e.gutter,h=n.itemsOnPage?n.itemsOnPage:e.itemsOnPage)})),l=u=(s+f)/h,r.css({width:u,paddingRight:f}),b()},g=function(){var t='<div class="wpj-carousel-controls"><button data-controls="prev">'+e.controlsText[0]+'</button><button data-controls="next">'+e.controlsText[1]+"</button></div>";i.append(t),o=i.find('button[data-controls="prev"]'),s=i.find('button[data-controls="next"]'),o.on("click",(function(){w("prev")})),s.on("click",(function(){w("next")})),b()},w=function(t){(p="prev"===t?p-1:p+1)<=0?p=0:p>=d-h&&(p=d-h);var n=p*l*-1;c.css({left:n}),b()},b=function(){p>0?o.removeClass("disabled"):o.addClass("disabled"),p<d-h?s.removeClass("disabled"):s.addClass("disabled")};return n.on("resize",(function(t){v()})),c.on("touchstart",(function(n){var e=n.changedTouches[0].clientX;t(this).on("touchend",(function(t){var n=t.changedTouches[0].clientX-e;n<-30?w("next"):n>30&&w("prev"),c.off("touchmove touchend")}))})),i.addClass("wpj-carousel-container"),c.addClass("wpj-carousel-gallery"),g(),v(),this}}).call(this)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.