!function(n){"function"==typeof define&&define.amd?define("backgroundCarousel",n):n()}(function(){"use strict";MyListing.BackgroundCarousel=function(){jQuery(document).ready(function(n){n(".lf-item-container .pc-slider").each(function(){var e=n(this),i=e.find(".pc-slides .single-slide").length,t=(i<=1&&e.find(".gallery-nav").hide(),0);function c(){var n=e.width(),n="translate3d("+-t*n+"px, 0, 0)";e.find(".pc-slides").css("transform",n)}e.find(".pc-slide-next").click(function(n){n.preventDefault(),t=(t+1)%i,c()}),e.find(".pc-slide-prev").click(function(n){n.preventDefault(),t=(t-1+i)%i,c()}),n(window).resize(c),c()})})},MyListing.BackgroundCarousel()});
