1!function(e){"use strict";let o,t,r,i=!1,s="",c="",a="",n=-1,d=0;function l(){e(".shortcode-wcpr-enable-box-shadow").addClass("shortcode-wcpr-fix-box-shadow"),e("img.jetpack-lazy-image").next("img").remove(),shortcode_wcpr_resize_masonry_items()}function h(){wcpr_enable_scroll(),e(".shortcode-wcpr-modal-light-box").fadeOut(200),n=-1,t=""}function w(t){d=0,n=t,t>=o.length&&(n=0),t<0&&(n=o.length-1);let r=window.innerWidth>600,i=e("#shortcode-reviews-content-left-modal"),s=e("#shortcode-reviews-content-left-main");i.html(""),s.html(""),e("#shortcode-reviews-content-right .shortcode-wcpr-single-product-summary").html("");let c=e(o[n]);if(0===c.find(".shortcode-reviews-images-container").length)e(".shortcode-wcpr-modal-light-box").addClass("shortcode-wcpr-no-images");else{c.find(".shortcode-reviews-images-wrap-left .shortcode-reviews-images").length>1&&i.html(c.find(".shortcode-reviews-images-wrap-left").html());let o,t=c.find(".shortcode-reviews-images-wrap-right").eq(0).html();void 0===t&&(t=c.find(".shortcode-reviews-images-wrap:first-child > a").html(),o=c.find(".shortcode-reviews-images-wrap:first-child > a").attr("href")),t&&(e(".shortcode-wcpr-modal-light-box").removeClass("shortcode-wcpr-no-images"),s.html(t),s.find("img").attr("src",o||s.find("img").data("original_src")||s.find("img").attr("src")).css({width:"auto",height:"auto"}),s.find(".reviews-videos").css({"min-height":"400px"}),s.find(".reviews-videos.reviews-videos-youtube").css({width:"500px"})),i.find(".shortcode-reviews-images").map(function(){let o=e(this).data("src");o&&e(this).attr("src",o)}),i.find(".shortcode-reviews-images").parent().on("click",function(){d=e(this).data("image_index");let o="",t=e(this).attr("href");return e(this).hasClass("reviews-iframe")||e(this).find(".reviews-iframe").length?o=e(`<iframe class="shortcode-reviews-images reviews-iframe" data-original_src="${t}" src="${t}" frameborder="0" allowfullscreen></iframe>`):e(this).hasClass("reviews-videos")||e(this).find(".reviews-videos").length?o=e(`<video class="shortcode-reviews-images reviews-videos" data-original_src="${t}" src="${t}" controls></video>`):(t=e(this).data("image_src")||t,o=e(`<img class="shortcode-reviews-images" data-original_src="${t}" src="${t}">`),o.attr("title",s.find(".shortcode-reviews-images").attr("title"))),o.css({width:"auto",height:"auto"}),s.find(".shortcode-reviews-images").replaceWith(o),s.find("source").attr("srcset",t),s.find(".shortcode-wcpr-review-image-caption").html(e(this).data("image_caption")),r&&s.find(".shortcode-reviews-images").one("load",function(){e("#shortcode-wcpr-modal-wrap").outerHeight()-s.outerHeight()>100?(e("#shortcode-reviews-content-left").css({position:"unset"}),i.css({position:"absolute",bottom:0,left:0,width:"500px"})):(e("#shortcode-reviews-content-left").css({position:"relative"}),i.css({position:"unset"}))}),!1})}let a=e("#shortcode-reviews-content-right .shortcode-reviews-content-right-meta");if(a.html(c.find(".shortcode-review-content-container").html()),e("#shortcode-reviews-content-right .shortcode-wcpr-single-product-summary").html(c.find(".shortcode-wcpr-single-product-summary-content-wrapper").html()),!a.find(".shortcode-wcpr-comment-author").length&&c.find(".shortcode-review-author-container").length&&(a.prepend('<div class="shortcode-review-author-container">'+c.find(".shortcode-review-author-container").html()+"</div>"),a.find(".wcpr-review-rating").remove(),a.find(".shortcode-review-author-container .wcpr-review-date").replaceWith('<div class="wcpr-comment-author-rating"><div class="wcpr-review-rating">'+c.find(".wcpr-review-rating").html()+'</div><div class="wcpr-review-date">'+c.find(".wcpr-review-date").html()+"</div></div>")),!a.find(" > .wcpr-wrap-review-helpfull").length&&a.find(".shortcode-wcpr-wrap-review-helpfull").length){let e=a.find(".shortcode-wcpr-wrap-review-helpfull").clone();a.find(".shortcode-wcpr-wrap-review-helpfull").remove(),a.append(e)}e(".shortcode-wcpr-modal-light-box").fadeIn(200),function(o){e(".shortcode-wcpr-single-product-summary").find(".shortcode-wcpr-variations_form").each(function(){e(this).addClass("variations_form vi_wpvs_variation_form"),e(this).find("select").each(function(t,r){e(this).val(e(o).find("select").eq(t).val()).trigger("change")}),e(this).wc_variation_form(),e(document.body).trigger("vi_wpvs_variation_form"),e(document.body).trigger("wc_price_based_country_ajax_geolocation")})}(c),e("img.jetpack-lazy-image:not(.jetpack-lazy-image--handled)").length&&document.querySelector("body").dispatchEvent(new Event("jetpack-lazy-images-load")),e("img.jetpack-lazy-image").next("img").remove(),r&&(i.find(".shortcode-reviews-images").length?(console.log("sdfe"),s.find(".shortcode-reviews-images").one("load",function(){console.log("a",e("#shortcode-wcpr-modal-wrap").outerHeight()),console.log("$left_main.outerHeight()",s.outerHeight()),e("#shortcode-wcpr-modal-wrap").outerHeight()-s.outerHeight()>100?(e("#shortcode-reviews-content-left").css({position:"unset"}),i.css({position:"absolute",bottom:0,left:0,width:"500px"})):(e("#shortcode-reviews-content-left").css({position:"relative"}),i.css({position:"unset"}))})):(e("#shortcode-reviews-content-left").css({position:"relative"}),i.css({position:"unset"})))}window.shortcode_wcpr_resize_masonry_items=function(o=!1){e(".shortcode-wcpr-grid-item.wcpr-grid-item-init").removeClass("wcpr-grid-item-init");let t,r=20;e(".wcpr-grid-loadmore .shortcode-wcpr-grid-item:not(.wcpr-grid-item-init)").each(function(){if(!e(this).is(":visible"))return!0;t=e(this).closest(".woocommerce-photo-reviews-shortcode").data("reviews_shortcode"),t?.cols_gap?r=parseInt(t.cols_gap):"yes"===t?.is_elementor&&(r=15),shortcode_wcpr_resize_masonry_item(e(this),1,r)})},window.shortcode_wcpr_resize_masonry_item=function(o,t,r){let i,s=0;if((o=e(o)).find(".shortcode-reviews-images-wrap-right .shortcode-reviews-images").length&&(i=o.find(".shortcode-reviews-images-wrap-right .shortcode-reviews-images"),s=i.outerHeight(),0===s)){let e=o.find(".shortcode-wcpr-content").outerWidth(),t=i.attr("width")||0,r=i.attr("height")||0;s=0!==r?Math.round(e/t*r):e}let c=o.find(".shortcode-wcpr-content").outerHeight(),a=o.find(".shortcode-review-content-container").outerHeight();c<a+s&&(c=a+s);let n=Math.ceil((c+r)/(t+r));o.addClass("wcpr-grid-item-init").css("grid-row-end","span "+n)},window.wcpr_enable_scroll=function(){let o=parseInt(e("html").css("top"));e("html").removeClass("shortcode-wcpr-noscroll"),window.scrollTo({top:-o,behavior:"instant"})},window.wcpr_disable_scroll=function(){if(e(document).height()>e(window).height()){let o=e("html").scrollTop()?e("html").scrollTop():e("body").scrollTop();e("html").addClass("shortcode-wcpr-noscroll").css("top",-o)}},e(window).on("resize",function(){let o=e("body").width();r||(r=o),r!=o&&(r=o,shortcode_wcpr_resize_masonry_items(!0))}),e(window).on("elementor/frontend/init",()=>{elementorFrontend.hooks.addAction("frontend/element_ready/woocommerce-photo-reviews.default",function(o){window.elementor&&(e(".shortcode-wcpr-single-product-summary-meta-shop .variations_form").each(function(){e(this).addClass("shortcode-wcpr-variations_form").removeClass("variations_form")}),l())})}),e(document).on("scroll",function(e){setTimeout(function(){shortcode_wcpr_resize_masonry_items()},100)}),e(document).on("click","a",function(e){setTimeout(function(){shortcode_wcpr_resize_masonry_items()},100)}),e(document).ready(function(e){e(".shortcode-wcpr-single-product-summary-meta-shop .variations_form").each(function(){e(this).addClass("shortcode-wcpr-variations_form").removeClass("variations_form")}),l()}),e(document).on("click",".shortcode-wcpr-load-more-reviews-button:not(.wcpr-loading)",function(o){let t=e(this),r=t.closest(".woocommerce-photo-reviews-shortcode");s=r.data("wcpr_image"),c=r.data("wcpr_verified"),a=r.data("wcpr_rating");let n=r.data("reviews_shortcode");if(i)return!1;i=!0,o.preventDefault(),r.addClass("woocommerce-photo-reviews-shortcode-loading"),t.addClass("wcpr-loading"),e.ajax({url:woocommerce_photo_reviews_shortcode_params.ajaxurl,type:"get",data:{action:"woocommerce_photo_reviews_shortcode_ajax_get_reviews",nonce:woocommerce_photo_reviews_shortcode_params.nonce,reviews_shortcode:JSON.stringify(n),wcpr_page:t.data("cpage"),wcpr_image:s,wcpr_verified:c,wcpr_rating:a},success:function(o){let t=e('<div class="woocommerce_photo_reviews_shortcode_ajax_get_reviews"></div>');t.css("display","none").html(o.html),["masonry","grid","grid_layout_2"].includes(n?.style)?r.find(".shortcode-wcpr-grid").append(t.find(".shortcode-wcpr-grid").html()):["list_1","list_2"].includes(n?.style)?r.find(".shortcode-wcpr-list").append(t.find(".shortcode-wcpr-list").html()):r.find(".commentlist").append(t.find(".commentlist").html()),r.find(".wcpr-load-more-reviews-button-container").replaceWith(t.find(".wcpr-load-more-reviews-button-container")),r.data("wcpr_image",s),r.data("wcpr_verified",c),r.data("wcpr_rating",a)},complete:function(){n.hasOwnProperty("style")&&"masonry"===n.style&&n.hasOwnProperty("masonry_popup")&&"image"===n.masonry_popup&&triggerReviewImageClick(),l(),e(document.body).trigger("woocommerce_photo_reviews_shortcode_ajax_get_reviews"),i=!1,t.removeClass("wcpr-loading"),r.removeClass("woocommerce-photo-reviews-shortcode-loading")}})}),e(document).on("click","a.wcpr-page-numbers.wcpr-page-numbers-nav",function(o){let t=e(this).closest(".woocommerce-photo-reviews-shortcode").data("reviews_shortcode");if(!t.hasOwnProperty("pagination_ajax")||"on"!==t.pagination_ajax)return!0;o.preventDefault(),o.stopPropagation();let r=e(this).closest(".shortcode-wcpr-pagination"),i=r.find(".wcpr-page-numbers").index(r.find(".wcpr-page-numbers.wcpr-current"));if(e(this).hasClass("wcpr-page-numbers-next")?i++:i--,0===i||i===r.find(".wcpr-page-numbers:not
1(.wcpr-page-numbers-nav)").length)return!1;r.find(".wcpr-page-numbers").eq(i).trigger("click")}),e(document).on("click","a.wcpr-page-numbers:not(.wcpr-page-numbers-nav)",function(o){let t=e(this),r=t.closest(".woocommerce-photo-reviews-shortcode");s=r.data("wcpr_image"),c=r.data("wcpr_verified"),a=r.data("wcpr_rating");let n=r.data("reviews_shortcode");if(!n.hasOwnProperty("pagination_ajax")||"on"!==n.pagination_ajax)return!0;if(i)return!1;let d=parseInt(r.offset().top);window.scrollTo({top:d,behavior:"smooth"}),i=!0,o.preventDefault(),r.addClass("woocommerce-photo-reviews-shortcode-loading"),e.ajax({url:woocommerce_photo_reviews_shortcode_params.ajaxurl,type:"get",data:{action:"woocommerce_photo_reviews_shortcode_ajax_get_reviews",nonce:woocommerce_photo_reviews_shortcode_params.nonce,reviews_shortcode:JSON.stringify(n),wcpr_page:parseInt(t.html()),wcpr_image:s,wcpr_verified:c,wcpr_rating:a},success:function(e){r.html(e.html),r.data("wcpr_image",s),r.data("wcpr_verified",c),r.data("wcpr_rating",a)},error:function(e){},complete:function(){n.hasOwnProperty("style")&&"masonry"===n.style&&n.hasOwnProperty("masonry_popup")&&"image"===n.masonry_popup&&triggerReviewImageClick(),l(),e(document.body).trigger("woocommerce_photo_reviews_shortcode_ajax_get_reviews"),i=!1,r.removeClass("woocommerce-photo-reviews-shortcode-loading")}})}),e(document).on("click","a.shortcode-wcpr-filter-button",function(o){let t=e(this),r=t.closest(".woocommerce-photo-reviews-shortcode"),n=r.data("reviews_shortcode");if(!n.hasOwnProperty("pagination_ajax")||"on"!==n.pagination_ajax)return;if(i||0===parseInt(t.find(".shortcode-wcpr-filter-button-count").html())&&!t.hasClass("shortcode-wcpr-active"))return!1;s=r.data("wcpr_image"),c=r.data("wcpr_verified"),a=r.data("wcpr_rating");let d=t.data("filter_type");switch(d){case"all":if(t.hasClass("shortcode-wcpr-active"))return!1;a="";break;case"image":s=t.hasClass("shortcode-wcpr-active")?"":1;break;case"verified":c=t.hasClass("shortcode-wcpr-active")?"":1;break;default:if(t.hasClass("shortcode-wcpr-active"))return!1;a=d}let h=parseInt(r.offset().top);window.scrollTo({top:h,behavior:"smooth"}),i=!0,o.preventDefault(),r.addClass("woocommerce-photo-reviews-shortcode-loading"),e.ajax({url:woocommerce_photo_reviews_shortcode_params.ajaxurl,type:"get",data:{action:"woocommerce_photo_reviews_shortcode_ajax_get_reviews",nonce:woocommerce_photo_reviews_shortcode_params.nonce,reviews_shortcode:JSON.stringify(n),wcpr_image:s,wcpr_verified:c,wcpr_rating:a},success:function(e){r.html(e.html),r.data("wcpr_image",s),r.data("wcpr_verified",c),r.data("wcpr_rating",a)},error:function(e){},complete:function(){n.hasOwnProperty("style")&&"masonry"===n.style&&n.hasOwnProperty("masonry_popup")&&"image"===n.masonry_popup&&triggerReviewImageClick(),l(),r.hasClass("woocommerce-photo-reviews-slide-init")&&(r.removeClass("woocommerce-photo-reviews-slide woocommerce-photo-reviews-slide-init woocommerce-photo-reviews-slide-none"),viwcpr_flexslider()),e(document.body).trigger("woocommerce_photo_reviews_shortcode_ajax_get_reviews"),i=!1,r.removeClass("woocommerce-photo-reviews-shortcode-loading")}})}),e(document).on("click",".shortcode-wcpr-read-more",function(o){o.stopPropagation();let t=e(this).closest(".shortcode-wcpr-review-content"),r=t.find(".shortcode-wcpr-review-content-full").html();r&&t.html(r),t.closest(".shortcode-wcpr-grid-item").removeClass("wcpr-grid-item-init"),shortcode_wcpr_resize_masonry_items(!0)}),e(document).on("click",".shortcode-wcpr-close",function(){h()}),e(document).on("keydown",function(o){let t=e(".shortcode-wcpr-modal-light-box");0!==e(".woocommerce-photo-reviews-shortcode").length&&(e.swipebox.isOpen||"none"!==t.css("display")&&(27===o.keyCode&&h(),-1!==n&&(37===o.keyCode&&w(n-=1),39===o.keyCode&&w(n+=1))))}),e(document).on("click",".shortcode-wcpr-next",function(){w(n+=1)}),e(document).on("click",".shortcode-wcpr-prev",function(){w(n-=1)}),e(document).on("click",".shortcode-wcpr-modal-light-box .shortcode-wcpr-overlay",function(){h()}),e(document).on("click","#shortcode-reviews-content-left-main .shortcode-reviews-images",function(){let o=e(this),t=[];e("#shortcode-reviews-content-left-modal").find("a").map(function(){let o=e(this).find(".shortcode-reviews-images"),r=e(this).data("image_src")?e(this).data("image_src"):o.attr("src"),i=e(this).data("image_caption")?e(this).data("image_caption"):parseInt(e(this).data("image_index"))+1+"/"+e("#shortcode-reviews-content-left-modal").find("a").length;t.push({href:r,title:i})}),0===t.length&&t.push({href:o.data("original_src")?o.data("original_src"):o.attr("src"),title:o.parent().find(".shortcode-wcpr-review-image-caption").html()}),e.swipebox(t,{hideBarsDelay:1e5,initialIndexOnArray:d})}),e(document).on("click",".shortcode-wcpr-grid-item,.shortcode-wcpr-grid-style-item,.shortcode-wcpr-grid-layout-2-style-item,.shortcode-wcpr-list-style-item",function(r){r.preventDefault(),r.stopPropagation();let i=e(this).closest(".woocommerce-photo-reviews-shortcode"),s=i.data("reviews_shortcode");switch(s?.masonry_popup){case"review":switch(s.hasOwnProperty("full_screen_mobile")&&"on"===s.full_screen_mobile?e(".
1shortcode-wcpr-modal-light-box").addClass("shortcode-wcpr-full-screen-mobile"):e(".shortcode-wcpr-modal-light-box").removeClass("shortcode-wcpr-full-screen-mobile"),s?.style){case"grid":o=i.find(".shortcode-wcpr-grid-style-item");break;case"grid_layout_2":o=i.find(".shortcode-wcpr-grid-layout-2-style-item");break;case"list_1":case"list_2":o=i.find(".shortcode-wcpr-list-style-item");break;default:o=i.find(".shortcode-wcpr-grid-item")}let r=o.index(e(this));r>=0&&(e(".shortcode-wcpr-modal-light-box").removeClass(t+"-modal"),t=i.attr("id"),e(".shortcode-wcpr-modal-light-box").addClass(t+"-modal"),w(r),wcpr_disable_scroll());break;case"image":let c=[],a=e(this);return a.find(".shortcode-reviews-images-wrap-left").find("a").map(function(){let o=e(this).find(".shortcode-reviews-images"),t=e(this).data("image_src")||e(this).attr("href")||o.attr("src"),r=e(this).data("image_caption")?e(this).data("image_caption"):parseInt(e(this).data("image_index"))+1+"/"+a.find(".reviews-images-wrap-left").find("a").length;c.push({href:t,title:r})}),c.length&&e.swipebox(c,{hideBarsDelay:1e5,initialIndexOnArray:0}),!1}})}(jQuery);
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.