// source --> https://thecrosbystore.com/wp-content/plugins/mabel-shoppable-images-lite/public/js/public.min.js?ver=1.3 
var SIWCPublic;!function(t){var i=function(){function t(t){var i=this;t.find(".mabel-siwc-img-wrapper").each(function(t,a){var e=jQuery(a),s=e.data("sw-icon"),n=e.data("sw-tags"),o=e.data("sw-text"),r=e.data("sw-size"),c='<div class="mb-siwc-popup-inner"><div class="siwc-thumb-wrapper"></div><div class="siwc-inner-text"><h1></h1><h2></h2><a target="_blank" href="#">'+o+"</a></div></div>";n.forEach(function(t,a){var n=(jQuery('<span class="mb-siwc-tag"><i class="'+s+'"></i></span>').css({top:t.posY+"%",left:t.posX+"%"}).on("click",function(t){t.preventDefault();var i=jQuery(t.currentTarget),a=e.find(".mb-siwc-tag");i.toggleClass("active"),a.not(i).removeClass("active"),a.not(i).next().addClass("mabel-invisible"),i.next().toggleClass("mabel-invisible")}).appendTo(e),jQuery(c));t.thumb&&n.find(".siwc-thumb-wrapper").css("backgroundImage","url("+t.thumb+")"),n.find("h1").html(t.title),n.find("h2").html(t.price),n.find("a").attr("href",t.link);var o=jQuery('<div class="mb-siwc-popup mabel-invisible">');t.thumb||o.addClass("siwc-no-thumb"),o.append(n).appendTo(e).css({top:t.posY+"%",left:t.posX+"%",marginLeft:-o.width()/2,marginTop:r/2+15});var p=i.getPopupPosition(t.posX,t.posY,o,e);if("bottom"!=p)switch(p){case"top":o.css("marginTop",-1*(o.height()+15+r/2));break;case"top left":o.css({marginTop:-1*(o.height()-10),marginLeft:-1*(o.width()+15+r/2)});break;case"top right":o.css({marginTop:-1*(o.height()-10),marginLeft:r/2+15});break;case"bottom left":o.css({marginTop:-10,marginLeft:-1*(o.width()+15+r/2)});break;case"bottom right":o.css({marginTop:-10,marginLeft:r/2+15})}o.addClass("mb-siwc-"+p.replace(" ","-"))})})}return t.prototype.getPopupPosition=function(t,i,a,e){void 0===e&&(e=null),null==e&&(e=jQuery(document.body));var s=a.height(),n=a.width(),o=e.height(),r=e.width(),c=s/o*100,p=n/r*100,l=i+c>100,d=t-p<0,u=t+p>100,h=l?"top":"bottom";return d&&(h+=" right"),u&&(h+=" left"),h},t}();t.Main=i}(SIWCPublic||(SIWCPublic={})),window.addEventListener("load",function(){new SIWCPublic.Main(jQuery(document.body))});
// source --> https://thecrosbystore.com/wp-content/plugins/woocommerce/assets/js/zoom/jquery.zoom.min.js?ver=1.7.21-wc.10.7.0 
/*!
	Zoom 1.7.21
	license: MIT
	http://www.jacklmoore.com/zoom
*/
!function(o){var t={url:!1,callback:!1,target:!1,duration:120,on:"mouseover",touch:!0,onZoomIn:!1,onZoomOut:!1,magnify:1};o.zoom=function(t,e,n,i){var u,a,c,r,l,m,f,s=o(t),h=s.css("position"),d=o(e);return t.style.position=/(absolute|fixed)/.test(h)?h:"relative",t.style.overflow="hidden",n.style.width=n.style.height="",o(n).addClass("zoomImg").css({position:"absolute",top:0,left:0,opacity:0,width:n.width*i,height:n.height*i,border:"none",maxWidth:"none",maxHeight:"none"}).appendTo(t),{init:function(){a=s.outerWidth(),u=s.outerHeight(),e===t?(r=a,c=u):(r=d.outerWidth(),c=d.outerHeight()),l=(n.width-a)/r,m=(n.height-u)/c,f=d.offset()},move:function(o){var t=o.pageX-f.left,e=o.pageY-f.top;e=Math.max(Math.min(e,c),0),t=Math.max(Math.min(t,r),0),n.style.left=t*-l+"px",n.style.top=e*-m+"px"}}},o.fn.zoom=function(e){return this.each(function(){var n=o.extend({},t,e||{}),i=n.target&&o(n.target)[0]||this,u=this,a=o(u),c=document.createElement("img"),r=o(c),l="mousemove.zoom",m=!1,f=!1;if(!n.url){var s=u.querySelector("img");if(s&&(n.url=s.getAttribute("data-src")||s.currentSrc||s.src,n.alt=s.getAttribute("data-alt")||s.alt),!n.url)return}a.one("zoom.destroy",function(o,t){a.off(".zoom"),i.style.position=o,i.style.overflow=t,c.onload=null,r.remove()}.bind(this,i.style.position,i.style.overflow)),c.onload=function(){var t=o.zoom(i,u,c,n.magnify);function e(e){t.init(),t.move(e),r.stop().fadeTo(o.support.opacity?n.duration:0,1,"function"==typeof n.onZoomIn&&n.onZoomIn.call(c))}function s(){r.stop().fadeTo(n.duration,0,"function"==typeof n.onZoomOut&&n.onZoomOut.call(c))}"grab"===n.on?a.on("mousedown.zoom",function(n){1===n.which&&(o(document).one("mouseup.zoom",function(){s(),o(document).off(l,t.move)}),e(n),o(document).on(l,t.move),n.preventDefault())}):"click"===n.on?a.on("click.zoom",function(n){return m?void 0:(m=!0,e(n),o(document).on(l,t.move),o(document).one("click.zoom",function(){s(),m=!1,o(document).off(l,t.move)}),!1)}):"toggle"===n.on?a.on("click.zoom",function(o){m?s():e(o),m=!m}):"mouseover"===n.on&&(t.init(),a.on("mouseenter.zoom",e).on("mouseleave.zoom",s).on(l,t.move)),n.touch&&a.on("touchstart.zoom",function(o){o.preventDefault(),f?(f=!1,s()):(f=!0,e(o.originalEvent.touches[0]||o.originalEvent.changedTouches[0]))}).on("touchmove.zoom",function(o){o.preventDefault(),t.move(o.originalEvent.touches[0]||o.originalEvent.changedTouches[0])}).on("touchend.zoom",function(o){o.preventDefault(),f&&(f=!1,s())}),"function"==typeof n.callback&&n.callback.call(c)},c.setAttribute("role","presentation"),c.alt=n.alt||"",c.src=n.url})},o.fn.zoom.defaults=t}(window.jQuery);