https://figueirinha.pt/wp-content/plugins/yith-woocommerce-advance…/assets/js/front.min.js?ver=89563
1function yith_wapo_replace_image(e,a=!1){var t=".woocommerce-product-gallery .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:first-child img";t+=", .woocommerce-product-gallery .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:first-child source",t+=", .yith_magnifier_zoom img, .yith_magnifier_zoom_magnifier",t+=", .owl-carousel .woocommerce-main-image",t+=", .woocommerce-product-gallery__image .wp-post-image",t+=", .dt-sc-product-image-gallery-container .wp-post-image";var i,o=".yith_magnifier_zoom_magnifier, .zoomWindowContainer .zoomWindow";void 0!==e.data("replace-image")&&""!=e.data("replace-image")&&(i=e.data("replace-image"),void 0===jQuery(t).attr("wapo-original-img")&&(jQuery(t).attr("wapo-original-img",jQuery(t).attr("src")),jQuery(o).length&&jQuery(o).attr("wapo-original-img",jQuery(o).css("background-image").slice(4,-1).replace(/"/g,""))),jQuery(t).attr("src",i),jQuery(t).attr("srcset",i),jQuery(o).css("background-image","url("+i+")"),jQuery("#yith_wapo_product_img").val(i)),a&&void 0!==jQuery(t).attr("wapo-original-img")&&(i=jQuery(t).attr("wapo-original-img"),a=jQuery(o).attr("wapo-original-img"),jQuery(t).attr("src",i),jQuery(t).attr("srcset",i),jQuery(o).css("background-image","url("+a+")"))}function yith_wapo_check_required_fields(a){var t=!1,i=!1,e=yith_wapo.dom.single_add_to_cart_button;return jQuery("form.cart .yith-wapo-addon:not(.hidden) input, form.cart .yith-wapo-addon:not(.hidden) select, form.cart .yith-wapo-addon:not(.hidden) textarea").each(function(){var e=jQuery(this).parent();jQuery(this).css("border",""),e.find(".required-error").css("display","none"),(jQuery(this).attr("required")&&"checkbox"===jQuery(this).attr("type")&&!jQuery(this).parent(".yith-wapo-option").hasClass("selected")||jQuery(this).attr("required")&&(""==jQuery(this).val()||"Required"==jQuery(this).val()))&&
1("highlight"==a&&(jQuery(this).css("border","1px solid #f00"),e.find(".yith-wapo-ajax-uploader").css("border","1px dashed #f00"),e.find(".yith-wapo-ajax-uploader").css("background-color","#fee"),e.find(".required-error").css("display","block")),t=i=!0)}),"hide"==a&&(i?jQuery(e).hide():jQuery(e).fadeIn()),!t}function yith_wapo_conditional_logic_check(){jQuery("form.cart .yith-wapo-addon.conditional_logic").each(function(){for(var e=!0,a=!1,t=(jQuery(this).data("addon_id"),jQuery(this).data("conditional_logic_display")),i=jQuery(this).data("conditional_logic_display_if"),o=String(jQuery(this).data("conditional_rule_addon")).split("|"),r=String(jQuery(this).data("conditional_rule_addon_is")).split("|"),n=0;n<o.length;n++){var d,c=o[n].split("-"),p=!1,s=!1;"v"==c[0]?jQuery(".variation_id").val()==c[2]&&(s=!0):void 0!==c[1]?(s=(jQuery("#yith-wapo-"+c[0]+"-"+c[1]).is(":checked")||jQuery("select#yith-wapo-"+c[0]).val()==c[1])&&!jQuery("#yith-wapo-addon-"+c[0]).hasClass("hidden"),d=jQuery("input#yith-wapo-"+c[0]+"-"+c[1]).val(),c=jQuery("textarea#yith-wapo-"+c[0]+"-"+c[1]).val(),p=void 0!==d&&""!==d||void 0!==c&&""!==c):s=0<jQuery("#yith-wapo-addon-"+o[n]+" input:checkbox:checked").length||0<jQuery("#yith-wapo-addon-"+o[n]+" input:radio:checked").length||0<jQuery("#yith-wapo-addon-"+o[n]+" option:selected").length,"selected"==r[n]?s?a=!0:e=!1:"not-selected"==r[n]?s?e=!1:a=!0:"empty"==r[n]?p?e=!1:a=!0:"not-empty"==r[n]&&(p?a=!0:e=!1)}"all"==i&&e||"any"==i&&a?"show"==t?jQuery(this).fadeIn().removeClass("hidden"):jQuery(this).hide().addClass("hidden"):"show"==t?jQuery(this).hide().addClass("hidden"):jQuery(this).fadeIn().removeClass("hidden")})}function yith_wapo_ajax_upload_file(e,o,r){return jQuery.ajax({url:ajaxurl,type:"POST",contentType:!1,processData:!1,data:e,success:function(e){var a=r.parent();a.find(".yith-wapo-ajax-uploader").hide();var t=parseFloat(o.size/1024/1024).toFixed(2)+" MB",i=e.replace(/^.*[\\\/]/,"");a.find(".yith-wapo-uploaded-file .info").html(i+"<br />"+t),a.find(".yith-wapo-uploaded-file").fadeIn(),a.find("input.option").val(e).change()},error:function(e){}}),!1}function yith_wapo_check_required_min_max(){if(!yith_wapo_check_required_fields("highlight"))return!1;var e,a=0;return jQuery("form.cart .yith-wapo-addon:not(.hidden)").each(function(){0<(e=yith_wapo_check_min_max(jQuery(this),!0))&&(a+=e)}),!(0<a)}function yith_wapo_check_min_max(e,a=!1){var t=e.data("min"),i=e.data("max"),o=e.data("exa"),r=e.find('input:checkbox:checked, input:radio:checked, option:not([value=""]):selected').length;if(0<o){if(o!=r){var n=0;return a&&(n=o-r,e.addClass("required-min"),e.find(".min-error").show(),1==n?e.find(".min-error-an, .min-error-option").show():(e.f
1ind(".min-error-qty, .min-error-options").show(),e.find(".min-error-qty").text(n))),e.find("input:checkbox").not(":checked").attr("disabled",!1),n}e.removeClass("required-min"),e.find(".min-error, .min-error span").hide(),e.find("input:checkbox").not(":checked").attr("disabled",!0)}else if(0<i&&(r<i?e.find("input:checkbox").not(":checked").attr("disabled",!1):e.find("input:checkbox").not(":checked").attr("disabled",!0)),0<t){n=0;return t<=r?(e.removeClass("required-min"),e.find(".min-error, .min-error span").hide()):(n=t-r,a&&(e.addClass("required-min"),e.find(".min-error").show(),1==n?e.find(".min-error-an, .min-error-option").show():(e.find(".min-error-qty, .min-error-options").show(),e.find(".min-error-qty").text(n)))),n}}function yith_wapo_check_multiplied_price(e){var a=e.data("price"),t=e.data("default-price");0<!t&&(t=a,e.data("default-price",t));var i=e.data("price-type");"value_x_product"==e.data("price-method")?(a=parseFloat(jQuery("#yith-wapo-container").data("product-price")),e.data("price",e.val()*a)):"multiplied"==i&&e.data("price",e.val()*t)}function yith_wapo_check_multiplied_length(e){var a=e.data("price"),t=e.data("default-price");0<!t&&(t=a,e.data("default-price",t));a=e.data("price-type"),e.data("price-method");"characters"==a&&e.data("price",e.val().length*t)}jQuery("body").on("change",".yith-wapo-addon-type-checkbox input",function(){var e=jQuery(this).parents(".yith-wapo-option");jQuery(this).is(":checked")?(e.addClass("selected"),e.hasClass("selection-single")&&(e.parent().find("input").prop("checked",!1),e.parent().find(".selected").removeClass("selected"),e.find("input").prop("checked",!0),e.addClass("selected")),yith_wapo_replace_image(e)):(e.removeClass("selected"),yith_wapo_replace_image(e,!0))}),jQuery("body").on("change",".yith-wapo-addon-type-color input",function(){var e=jQuery(this).parent();e.hasClass("yith-wapo-option")||(e=e.parent()),jQuery(this).is(":checked")?(e.addClass("selected"),e.hasClass("selection-single")&&(e.parent().find("input").prop("checked",!1),e.parent().find(".selected").removeClass("selected"),e.find("input").prop("checked",!0),e.addClass("selected")),yith_wapo_replace_image(e)):(e.removeClass("selected"),yith_wapo_replace_image(e,!0))}),jQuery("body").on("change",".yith-wapo-addon-type-label input",function(){var e=jQuery(this).parent();e.hasClass("yith-wapo-option")||(e=e.parent()),jQuery(this).is(":checked")?(e.addClass("selected"),e.hasClass("selection-single")&&(e.parent().find("input").prop("checked",!1),e.parent().find(".selected").removeClass("selected"),e.find("input").prop("checked",!0),e.addClass("selected")),yith_wapo_replace_image(e)):(e.removeClass("selected"),yith_wapo_replace_image(e,!0))}),jQuery("body").on("change",".yith-wapo-addon-type-product input",function(){var e=jQuery(this).parent();e.hasClass("yith-wapo-option")||(e=e.parent()),jQuery(this).is(":checked")?(e.addClass("selected"),e.hasClass("selection-single")&&(e.parent().find("input").prop("checked",!1),e.parent().find(".selected").removeClass("selected"),e.find("input").prop("checked",!0),e.addClass("selected")),yith_wapo_replace_image(e)):(e.removeClass("selected"),yith_wapo_replace_image(e,!0))}),jQuery("body").on("change",".yith-wapo-addon-type-radio input",function(){var e=jQuery(this).parent();e.hasClass("yith-wapo-option")||(e=e.parent()),jQuery(this).is(":checked")?(e.addClass("selected"),yith_wapo_replace_image(e)):e.removeClass("selected")}),jQuery("body").on("change",".yith-wapo-addon-type-select select",function(){var e=jQuery(this).parent(),a=jQuery(this).find("option:selected");e.hasClass("yith-wapo-option")||(e=e.parent());var t=a.data("image"),i=a.data("description");void 0!==t&&(t='<img src="'+t+'" style="max-width: 100%">',e.find("div.option-image").html(t)),console.log(i),e.find("p.option-description").html(i),yith_wapo_replace_image(a)}),jQuery(".yith-wapo-addon-type-select select").trigger("change"),jQuery(document).on("click",".yith-wapo-addon.wapo-toggle .wapo-addon-title",function(){jQuery(this).parent().find(".options").toggle("fast"),jQuery(document).trigger("yith_proteo_inizialize_html_elements")}),window.setInterval(function(){yith_wapo_conditional_logic_check()},1e3),jQuery("form.cart .yith-wapo-addon").on("change","*",function(){yith_wapo_conditional_logic_check()}),jQuery("form.cart").on("yith-wapo-reload-addons",function(e,a=""){jQuery("#yith-wapo-container").css("opacity","0.5");var t={action:"live_print_blocks",addons:jQuery("form.cart").serializeArray()};return""!=a&&(t.price=a),jQuery.ajax({url:ajaxurl,type:"post",data:t,success:function(e){jQuery("#yith-wapo-container").html(e),yith_wapo_conditional_logic_check(),jQuery("#yith-wapo-container").css("opacity","1")}}),!1}),jQuery("form.cart").on("change",".variations",function(){jQuery("form.cart").trigger("yith-wapo-reload-addons")}),jQuery("form.cart").on("change","#price_calculator",function(){var e=(e=jQuery("#price_calculator .product_price .amount").text().replace(",",".")).replace(/[^0-9\.-]+/g,"");jQuery("form.cart").trigger("yith-wapo-reload-addons",[e])}),jQuery("form.cart").on("change",".variation_id",function(){jQuery("form.cart").trigger("yith-wapo-reload-addons")}),jQuery("html").on("dragover",function(e){e.preventDefault(),e.stopPropagation()}),jQuery("html").on("drop",function(e){e.preventDefault(),e.stopPropagation()}),jQuery(".yith-wapo-ajax-uploader").on("dragenter",function(e){e.stopPropagation(),e.preventDefault(),jQuery(this).css("opacity","0.5")}),jQuery(".yith-wapo-ajax-uploader").on("dragover",function(e){e.stopPropagation(),e.preventDefault()}),jQuery(".yith-wapo-ajax-uploader").on("dragleave",function(e){e.stopPropagation(),e.preventDefault(),jQuery(this).css("opacity","1")}),jQuery(".yith-wapo-ajax-uploader").on("drop",function(e){e.stopPropagation(),e.preventDefault();var a=jQuery(this).parent().find("input.file"),t=e.originalEvent.dataTransfer.files[0],e=new FormData;e.append("action","upload_file"),e.append("file",t),wapo_upload_allowed_file_types.includes(t.name.split(".").pop())?t.size<=1024*wapo_upload_max_file_size*1024?yith_wapo_ajax_upload_file(e,t,a):alert("Error: max file size "+wapo_upload_max_file_size+" MB!"):alert("Error: not supported extension!")}),jQuery("#yith-wapo-container").on("click",".yith-wapo-ajax-uploader .button, .yith-wapo-ajax-uploader .link",function(){jQuery(this).parent().parent().find("input.file").click()}),jQuery("#yith-wapo-container").on("change",".yith-wapo-addon-type-file input.file",function(){var e=jQuery(this),a=jQuery(this)[0].files[0],t=new FormData;t.append("action","upload_file"),t.append("file",a),wapo_upload_allowed_file_types.includes(a.name.split(".").pop())?a.size<=1024*wapo_upload_max_file_size*1024?yith_wapo_ajax_upload_file(t,a,e):alert("Error: max file size "+wapo_upload_max_file_size+" MB!"):alert("Error: not supported extension!")}),jQuery("#yith-wapo-container").on("click",".yith-wapo-uploaded-file .remove",function(){jQuery(this).parent().hide(),jQuery(this).parent().parent().find(".yith-wapo-ajax-uploader").fadeIn(),jQuery(this).parent().parent().find("input").val(""),jQuery(this).parent().parent().find("input.option").change()}
1),jQuery("form.cart").on("click","span.checkboxbutton",function(){jQuery(this).find("input").is(":checked")?jQuery(this).addClass("checked"):jQuery(this).removeClass("checked")}),jQuery("form.cart").on("click","span.radiobutton",function(){jQuery(this).find("input").is(":checked")&&(jQuery(this).parent().parent().parent().find("span.radiobutton.checked").removeClass("checked"),jQuery(this).addClass("checked"))}),jQuery(".yith-wapo-addon-type-checkbox, .yith-wapo-addon-type-color, .yith-wapo-addon-type-label, .yith-wapo-addon-type-product").each(function(){yith_wapo_check_min_max(jQuery(this))}),jQuery(".yith-wapo-addon-type-checkbox, .yith-wapo-addon-type-color, .yith-wapo-addon-type-label, .yith-wapo-addon-type-product").on("change",function(){yith_wapo_check_min_max(jQuery(this))}),jQuery("form.cart").on("click","button",function(){return yith_wapo_check_required_min_max()?jQuery("form.cart .yith-wapo-addon.conditional_logic.hidden").remove():jQuery("html, body").animate({scrollTop:jQuery("#yith-wapo-container").offset().top},500),yith_wapo_check_required_min_max()}),jQuery(document).on("click",".add-request-quote-button",function(){yith_wapo_check_required_min_max()||(yith_wapo_general.do_submit=!1)}),jQuery(".yith-wapo-addon-type-number").on("change","input",function(){yith_wapo_check_multiplied_price(jQuery(this))}),jQuery(".yith-wapo-addon-type-text, .yith-wapo-addon-type-textarea").on("change","input, textarea",function(){yith_wapo_check_multiplied_length(jQuery(this))}),jQuery(".wapo-product-qty").keyup(function(){var e="?add-to-cart="+jQuery(this).data("product-id")+"&quantity="+jQuery(this).val();jQuery(this).parent().find("a").attr("href",e)}),jQuery(".single-product").on("change","#wapo-datepicker-time select",function(){var e=jQuery(this).val();jQuery("#temp-time").text(e),jQuery(".ui-state-active").click()}),jQuery(".single-product").on("click","#wapo-datepicker-save button",function(){jQuery(".hasDatepicker").datepicker("hide")});
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.