(t=>{"function"==typeof define&&define.amd?define("wcProductPage",t):t()})(function(){jQuery(function(o){o.fn.wc_variations_image_update=function(t){var i=this,e=i.closest(".product"),a=e.find(".images"),e=e.find(".gallery-thumb"),r=e.find(".owl-item.active:eq(0) a"),_=a.find(".owl-item.active").eq(0),n=_.find("img"),c=_.find("a").eq(0);if(t&&t.image&&t.image.src&&1<t.image.src.length){0<e.find('.item.slide-thumb[href="'+t.image.full_src+'"]').length&&i.wc_variations_image_reset();e=e.find('.item.slide-thumb[href="'+t.image.full_src+'"]');if(0<e.length)return e.trigger("click"),i.attr("current-image",t.image_id),void window.setTimeout(function(){o(window).trigger("resize"),a.trigger("woocommerce_gallery_init_zoom")},20);n.wc_set_variation_attr("src",t.image.src),n.wc_set_variation_attr("height",t.image.src_h),n.wc_set_variation_attr("width",t.image.src_w),n.wc_set_variation_attr("srcset",t.image.srcset),n.wc_set_variation_attr("sizes",t.image.sizes),n.wc_set_variation_attr("title",t.image.title),n.wc_set_variation_attr("data-caption",t.image.caption),n.wc_set_variation_attr("alt",t.image.alt),n.wc_set_variation_attr("data-src",t.image.full_src),n.wc_set_variation_attr("data-large_image",t.image.full_src),n.wc_set_variation_attr("data-large_image_width",t.image.full_src_w),n.wc_set_variation_attr("data-large_image_height",t.image.full_src_h),_.wc_set_variation_attr("data-thumb",t.image.src),r.wc_set_variation_attr("href",t.image.full_src),r.css("background-image","url("+t.image.full_src+")"),c.wc_set_variation_attr("href",t.image.full_src)}else i.wc_variations_image_reset();window.setTimeout(function(){o(window).trigger("resize"),i.wc_maybe_trigger_slide_position_reset(t),a.trigger("woocommerce_gallery_init_zoom")},20)}}),jQuery(function(i){var e,t;void 0!==window.MyListing_Switch_Config&&i(e="tr.woocommerce-grouped-product-list-item.product-type-job_package_subscription").length&&(t=window.MyListing_Switch_Config,i(".single-product "+e+"#product-"+t.current_plan+" label a").append("<span>"+t.current_plan_text+"</span>"),i(".single_add_to_cart_button").hide(),i(e).click(function(t){t.preventDefault(),i(t.target).find('input[type="checkbox"]').prop("checked",!0),i(e).parents("form").submit()}))})});
