!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isIE7=-1!==c.indexOf("MSIE 7."),b.isIE8=-1!==c.indexOf("MSIE 8."),b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(a,c){if(void 0===c||c===!1)return!0;if(e=a.split("_"),e.length>1){var d=b.find(p+"-"+e[0]);if(d.length>0){var f=e[1];"replaceWith"===f?d[0]!==c[0]&&d.replaceWith(c):"img"===f?d.is("img")?d.attr("src",c):d.replaceWith(''):d.attr(e[1],c)}}else b.find(p+"-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("
");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery",g=Boolean(a.fn.mfpFastClick);return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s),h=g?"mfpFastClick":"click";e[h](function(){b.prev()}),f[h](function(){b.next()}),b.isIE7&&(x("b",e[0],!1,!0),x("a",e[0],!1,!0),x("b",f[0],!1,!0),x("a",f[0],!1,!0)),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowLeft&&g&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b=1e3,c="ontouchstart"in window,d=function(){v.off("touchmove"+f+" touchend"+f)},e="mfpFastClick",f="."+e;a.fn.mfpFastClick=function(e){return a(this).each(function(){var g,h=a(this);if(c){var i,j,k,l,m,n;h.on("touchstart"+f,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],j=m.clientX,k=m.clientY,v.on("touchmove"+f,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-j)>10||Math.abs(m.clientY-k)>10)&&(l=!0,d())}).on("touchend"+f,function(a){d(),l||n>1||(g=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){g=!1},b),e())})})}h.on("click"+f,function(){g||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+f+" click"+f),c&&v.off("touchmove"+f+" touchend"+f)}}(),A()}); (function($){ dokan.login_form_popup={ form_html: '', init: function (){ $('body').on('dokan:login_form_popup:show', this.get_form); $('body').on('submit', '#dokan-login-form-popup-form', this.submit_form); $('body').on('dokan:login_form_popup:working', this.working); $('body').on('dokan:login_form_popup:done_working', this.done_working); }, get_form: function (e, options){ if(dokan.login_form_popup.form_html){ dokan.login_form_popup.show_popup(); return; } options=$.extend(true, { nonce: dokan.nonce, action: 'dokan_get_login_form' }, options); $('body').trigger('dokan:login_form_popup:fetching_form'); $.ajax({ url: dokan.ajaxurl, method: 'get', dataType: 'json', data: { _wpnonce: options.nonce, action: options.action }}).done(function(response){ dokan.login_form_popup.form_html=response.data; dokan.login_form_popup.show_popup(); $('body').trigger('dokan:login_form_popup:fetched_form'); }); }, show_popup: function (){ $.magnificPopup.open({ items: { src: dokan.login_form_popup.form_html, type: 'inline' }, callbacks: { open: function (){ $('body').trigger('dokan:login_form_popup:opened'); }} }); }, submit_form: function(e){ e.preventDefault(); var form_data=$(this).serialize(); var error_section=$('.dokan-login-form-error', '#dokan-login-form-popup-form'); error_section.removeClass('has-error').text(''); $('body').trigger('dokan:login_form_popup:working'); $.ajax({ url: dokan.ajaxurl, method: 'post', dataType: 'json', data: { _wpnonce: dokan.nonce, action: 'dokan_login_user', form_data: form_data }}).done(function(response){ $('body').trigger('dokan:login_form_popup:logged_in', response); $.magnificPopup.close(); }).always(function (){ $('body').trigger('dokan:login_form_popup:done_working'); }).fail(function(jqXHR){ if(jqXHR.responseJSON&&jqXHR.responseJSON.data&&jqXHR.responseJSON.data.message){ error_section.addClass('has-error').text(jqXHR.responseJSON.data.message); }}); }, working: function (){ $('fieldset', '#dokan-login-form-popup-form').prop('disabled', true); $('#dokan-login-form-submit-btn').addClass('dokan-hide'); $('#dokan-login-form-working-btn').removeClass('dokan-hide'); }, done_working: function (){ $('fieldset', '#dokan-login-form-popup-form').prop('disabled', false); $('#dokan-login-form-submit-btn').removeClass('dokan-hide'); $('#dokan-login-form-working-btn').addClass('dokan-hide'); }}; dokan.login_form_popup.init(); })(jQuery); var input=document.getElementById('text_filter'); var filter=document.getElementById('filter'); if(input){ input.addEventListener('keyup', function(event){ if(input.value==""){ filter.setAttribute('uk-filter-control', ''); }else{ filter.setAttribute('uk-filter-control', 'filter:[data-tags*=\'' + input.value + '\'i]'); } filter.click(); }); } jQuery(document).ready(function($){ $('.prev.page-numbers').parents('li').addClass('li-nav li-prev'); $('.next.page-numbers').parents('li').addClass('li-nav li-next'); var select_designatfirst=$('.site-search.mobile-only select#product_cat'), empSearch=$('.site-search.mobile-only input.search-field'); select_designatfirst.change(function(){ empSearch.attr('placeholder', 'Search products in ' + select_designatfirst.find(':selected').text() + '…'); }); if($('ul.product-categories').length > 0){ $('.cat-parent > a').css('cursor', 'pointer'); var pC=$('.product-categories li.cat-parent'), fpC=$('.product-categories li.cat-parent:first-child'), cC=$('.product-categories li.current-cat'), cCp=$('.product-categories li.current-cat-parent'); pC.prepend(''); pC.parent('ul').addClass('has-toggle'); pC.children('ul').hide(); if(pC.hasClass("current-cat-parent")){ cCp.addClass('open'); cCp.children('ul').show(); cCp.children().children('i.dashicons').removeClass('dashicons-arrow-down-alt2'); } else if(pC.hasClass("current-cat")){ cC.addClass('open'); cC.children('ul').show(); cC.children().children('i.dashicons').removeClass('dashicons-arrow-down-alt2'); }else{ fpC.addClass('open'); fpC.children('ul').show(); fpC.children().children('i.dashicons').removeClass('dashicons-arrow-down-alt2'); } $('.has-toggle span.toggle').on('click', function(){ $t=$(this); if($t.parent().hasClass("open")){ $t.parent().removeClass('open'); $t.parent().children('ul').slideUp(); $t.children('i.dashicons').addClass('dashicons-arrow-down-alt2'); }else{ $t.parent().parent().find('ul.children').slideUp(); $t.parent().parent().find('li.cat-parent').removeClass('open'); $t.parent().parent().find('li.cat-parent').children().children('i.dashicons').addClass('dashicons-arrow-down-alt2'); $t.parent().addClass('open'); $t.parent().children('ul').slideDown(); $t.children('i.dashicons').removeClass('dashicons-arrow-down-alt2'); }}); } var $filterCheckboxes=$('input[type="checkbox"]'); var filterFunc=function(){ var selectedFilters={}; $filterCheckboxes.filter(':checked').each(function(){ if(!selectedFilters.hasOwnProperty(this.name)){ selectedFilters[this.name]=[]; } selectedFilters[this.name].push(this.value); }); var $filteredResults=$('.tenant'); $.each(selectedFilters, function(name, filterValues){ $filteredResults=$filteredResults.filter(function(){ var matched=false, currentFilterValues=$(this).data('tags').split(' '); $.each(currentFilterValues, function(_, currentFilterValue){ if($.inArray(currentFilterValue, filterValues)!=-1){ matched=true; return false; }}); return matched; }); }); $('.tenant').hide().filter($filteredResults).show(); } $filterCheckboxes.on('change', filterFunc); }); jQuery(function($){if(typeof wc_single_product_params==="undefined"){return false}$("body").on("click","a.woocommerce-review-link",function(){$(".reviews_tab a").click();return true}).on("init","#rating",function(){$("#rating").hide().before('

\t\t\t\t\t\t\t\t\t\t\t\t\t1\t\t\t\t\t\t\t2\t\t\t\t\t\t\t3\t\t\t\t\t\t\t4\t\t\t\t\t\t\t5\t\t\t\t\t\t\t\t\t\t\t

')}).on("click","#respond p.stars a",function(){var $star=$(this),$rating=$(this).closest("#respond").find("#rating"),$container=$(this).closest(".stars");$rating.val($star.text());$star.siblings("a").removeClass("active");$star.addClass("active");$container.addClass("selected");return false}).on("click","#respond #submit",function(){var $rating=$(this).closest("#respond").find("#rating"),rating=$rating.val();if($rating.length>0&&!rating&&wc_single_product_params.review_rating_required==="yes"){window.alert(wc_single_product_params.i18n_required_rating_text);return false}});$(".wc-tabs-wrapper, .woocommerce-tabs, #rating").trigger("init");var ProductGallery=function($target,args){this.$target=$target;this.$images=$(".woocommerce-product-gallery__image",$target);if(0===this.$images.length){this.$target.css("opacity",1);return}$target.data("product_gallery",this);this.flexslider_enabled=$.isFunction($.fn.flexslider)&&wc_single_product_params.flexslider_enabled;this.zoom_enabled=$.isFunction($.fn.zoom)&&wc_single_product_params.zoom_enabled;this.photoswipe_enabled=typeof PhotoSwipe!=="undefined"&&wc_single_product_params.photoswipe_enabled;if(args){this.flexslider_enabled=false===args.flexslider_enabled?false:this.flexslider_enabled;this.zoom_enabled=false===args.zoom_enabled?false:this.zoom_enabled;this.photoswipe_enabled=false===args.photoswipe_enabled?false:this.photoswipe_enabled}if(1===this.$images.length){this.flexslider_enabled=false}this.initFlexslider=this.initFlexslider.bind(this);this.initZoom=this.initZoom.bind(this);this.initZoomForTarget=this.initZoomForTarget.bind(this);this.initPhotoswipe=this.initPhotoswipe.bind(this);this.onResetSlidePosition=this.onResetSlidePosition.bind(this);this.getGalleryItems=this.getGalleryItems.bind(this);this.openPhotoswipe=this.openPhotoswipe.bind(this);if(this.flexslider_enabled){this.initFlexslider(args.flexslider);$target.on("woocommerce_gallery_reset_slide_position",this.onResetSlidePosition)}else{this.$target.css("opacity",1)}if(this.zoom_enabled){this.initZoom();$target.on("woocommerce_gallery_init_zoom",this.initZoom)}if(this.photoswipe_enabled){this.initPhotoswipe()}};ProductGallery.prototype.initFlexslider=function(args){var $target=this.$target,gallery=this;var options=$.extend({selector:".woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image",start:function(){$target.css("opacity",1)},after:function(slider){gallery.initZoomForTarget(gallery.$images.eq(slider.currentSlide))}},args);$target.flexslider(options);$(".woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:eq(0) .wp-post-image").one("load",function(){var $image=$(this);if($image){setTimeout(function(){var setHeight=$image.closest(".woocommerce-product-gallery__image").height();var $viewport=$image.closest(".flex-viewport");if(setHeight&&$viewport){$viewport.height(setHeight)}},100)}}).each(function(){if(this.complete){$(this).trigger("load")}})};ProductGallery.prototype.initZoom=function(){this.initZoomForTarget(this.$images.first())};ProductGallery.prototype.initZoomForTarget=function(zoomTarget){if(!this.zoom_enabled){return false}var galleryWidth=this.$target.width(),zoomEnabled=false;$(zoomTarget).each(function(index,target){var image=$(target).find("img");if(image.data("large_image_width")>galleryWidth){zoomEnabled=true;return false}});if(zoomEnabled){var zoom_options=$.extend({touch:false},wc_single_product_params.zoom_options);if("ontouchstart"in document.documentElement){zoom_options.on="click"}zoomTarget.trigger("zoom.destroy");zoomTarget.zoom(zoom_options);setTimeout(function(){if(zoomTarget.find(":hover").length){zoomTarget.trigger("mouseover")}},100)}};ProductGallery.prototype.initPhotoswipe=function(){if(this.zoom_enabled&&this.$images.length>0){this.$target.prepend('🔍');this.$target.on("click",".woocommerce-product-gallery__trigger",this.openPhotoswipe);this.$target.on("click",".woocommerce-product-gallery__image a",function(e){e.preventDefault()});if(!this.flexslider_enabled){this.$target.on("click",".woocommerce-product-gallery__image a",this.openPhotoswipe)}}else{this.$target.on("click",".woocommerce-product-gallery__image a",this.openPhotoswipe)}};ProductGallery.prototype.onResetSlidePosition=function(){this.$target.flexslider(0)};ProductGallery.prototype.getGalleryItems=function(){var $slides=this.$images,items=[];if($slides.length>0){$slides.each(function(i,el){var img=$(el).find("img");if(img.length){var large_image_src=img.attr("data-large_image"),large_image_w=img.attr("data-large_image_width"),large_image_h=img.attr("data-large_image_height"),item={src:large_image_src,w:large_image_w,h:large_image_h,title:img.attr("data-caption")?img.attr("data-caption"):img.attr("title")};items.push(item)}})}return items};ProductGallery.prototype.openPhotoswipe=function(e){e.preventDefault();var pswpElement=$(".pswp")[0],items=this.getGalleryItems(),eventTarget=$(e.target),clicked;if(eventTarget.is(".woocommerce-product-gallery__trigger")||eventTarget.is(".woocommerce-product-gallery__trigger img")){clicked=this.$target.find(".flex-active-slide")}else{clicked=eventTarget.closest(".woocommerce-product-gallery__image")}var options=$.extend({index:$(clicked).index(),addCaptionHTMLFn:function(item,captionEl){if(!item.title){captionEl.children[0].textContent="";return false}captionEl.children[0].textContent=item.title;return true}},wc_single_product_params.photoswipe_options);var photoswipe=new PhotoSwipe(pswpElement,PhotoSwipeUI_Default,items,options);photoswipe.init()};$.fn.wc_product_gallery=function(args){new ProductGallery(this,args||wc_single_product_params);return this};$(".woocommerce-product-gallery").each(function(){$(this).trigger("wc-product-gallery-before-init",[this,wc_single_product_params]);$(this).wc_product_gallery(wc_single_product_params);$(this).trigger("wc-product-gallery-after-init",[this,wc_single_product_params])})}); !function(d,l){"use strict";var e=!1,o=!1;if(l.querySelector)if(d.addEventListener)e=!0;if(d.wp=d.wp||{},!d.wp.receiveEmbedMessage)if(d.wp.receiveEmbedMessage=function(e){var t=e.data;if(t)if(t.secret||t.message||t.value)if(!/[^a-zA-Z0-9]/.test(t.secret)){var r,a,i,s,n,o=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),c=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]');for(r=0;r