%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/t/r/a/tradesc/www/relax/wp-content/plugins/woocommerce/assets/js/admin/
Upload File :
Create Path :
Current File : /home/t/r/a/tradesc/www/relax/wp-content/plugins/woocommerce/assets/js/admin/settings.min.js

!function(e,t,o){e(function(){function i(){var o=!1;let i=e(".wp-list-table .check-column");e("input, textarea, select, checkbox").on("change input",function(n){i.length&&i.has(n.target).length||o||(window.onbeforeunload=function(){return t.i18n_nav_warning},o=!0,e(".woocommerce-save-button").removeAttr("disabled"))}),e(".iris-picker").on("click",function(){o||(o=!0,e(".woocommerce-save-button").removeAttr("disabled"))}),e(".submit :input, input#search-submit").on("click",function(){window.onbeforeunload=""})}e("select#woocommerce_allowed_countries").on("change",function(){"specific"===e(this).val()?(e(this).closest("tr").next("tr").hide(),e(this).closest("tr").next().next("tr").show()):"all_except"===e(this).val()?(e(this).closest("tr").next("tr").show(),e(this).closest("tr").next().next("tr").hide()):(e(this).closest("tr").next("tr").hide(),e(this).closest("tr").next().next("tr").hide())}).trigger("change"),e("select#woocommerce_ship_to_countries").on("change",function(){"specific"===e(this).val()?e(this).closest("tr").next("tr").show():e(this).closest("tr").next("tr").hide()}).trigger("change"),e("input#woocommerce_manage_stock").on("change",function(){e(this).is(":checked")?e(this).closest("tbody").find(".manage_stock_field").closest("tr").show():e(this).closest("tbody").find(".manage_stock_field").closest("tr").hide()}).trigger("change"),e(".colorpick").iris({change:function(t,o){e(this).parent().find(".colorpickpreview").css({backgroundColor:o.color.toString()})},hide:!0,border:!0}).on("click focus",function(t){t.stopPropagation(),e(".iris-picker").hide(),e(this).closest("td").find(".iris-picker").show(),e(this).data("originalValue",e(this).val())}).on("change",function(){e(this).is(".iris-error")&&(e(this).data("originalValue").match(/^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/)?e(this).val(e(this).data("originalValue")).trigger("change"):e(this).val("").trigger("change"))}),e("body").on("click",function(){e(".iris-picker").hide()}),e(i);const n=t=>!!t.length&&Array.from(t).some(t=>e(t).find("input, textarea, select, checkbox").length),s=document.querySelector("#mainform");new MutationObserver(t=>{for(const o of t)"childList"===o.type&&(n(o.addedNodes)?(i(),e(".woocommerce-save-button").removeAttr("disabled")):n(o.removedNodes)&&e(".woocommerce-save-button").removeAttr("disabled"))}).observe(s,{childList:!0,subtree:!0}),e("table.wc_gateways tbody, table.wc_shipping tbody").sortable({items:"tr",cursor:"move",axis:"y",handle:"td.sort",scrollSensitivity:40,helper:function(t,o){return o.children().each(function(){e(this).width(e(this).width())}),o.css("left","0"),o},start:function(e,t){t.item.css("background-color","#f6f6f6")},stop:function(e,t){t.item.removeAttr("style"),t.item.trigger("updateMoveButtons",{isInitialLoad:!1})}}),e(".woocommerce").on("click",".select_all",function(){return e(this).closest("td").find("select option").prop("selected",!0),e(this).closest("td").find("select").trigger("change"),!1}),e(".woocommerce").on("click",".select_none",function(){return e(this).closest("td").find("select option").prop("selected",!1),e(this).closest("td").find("select").trigger("change"),!1}),e(".wc-item-reorder-nav").find(".wc-move-up, .wc-move-down").on("click",function(){var i=e(this),n=i.closest("tr");i.trigger("focus");var s=i.is(".wc-move-up"),c=i.is(".wc-move-down");if(s){var r=n.prev("tr");r&&r.length&&(r.before(n),o.a11y.speak(t.i18n_moved_up))}else if(c){var a=n.next("tr");a&&a.length&&(a.after(n),o.a11y.speak(t.i18n_moved_down))}i.trigger("focus"),i.closest("table").trigger("updateMoveButtons",{isInitialLoad:!1})}),e(".wc-item-reorder-nav").closest("table").on("updateMoveButtons",function(t,o){var i=e(this),n=e(this).find("tbody tr:last"),s=e(this).find("tbody tr:first");i.find(".wc-item-reorder-nav .wc-move-disabled").removeClass("wc-move-disabled").attr({tabindex:"0","aria-hidden":"false"}),s.find(".wc-item-reorder-nav .wc-move-up").addClass("wc-move-disabled").attr({tabindex:"-1","aria-hidden":"true"}),n.find(".wc-item-reorder-nav .wc-move-down").addClass("wc-move-disabled").attr({tabindex:"-1","aria-hidden":"true"}),o.isInitialLoad||e(".woocommerce-save-button").removeAttr("disabled")}),e(".wc-item-reorder-nav").closest("table").trigger("updateMoveButtons",{isInitialLoad:!0}),e(".submit button").on("click",function(){if("specific"===e("select#woocommerce_allowed_countries").val()&&!e('[name="woocommerce_specific_allowed_countries[]"]').val())return!!window.confirm(woocommerce_settings_params.i18n_no_specific_countries_selected)}),e("#settings-other-payment-methods").on("click",function(t){"undefined"==typeof window.wcTracks.recordEvent&&"undefined"==typeof window.wc.tracks.recordEvent||(window.wc.tracks.recordEvent||window.wcTracks.recordEvent)("settings_payments_recommendations_other_options",{available_payment_methods:e.map(e("td.wc_payment_gateways_wrapper tbody tr[data-gateway_id] "),function(t){return e(t).attr("data-gateway_id")})})}),e(".woocommerce-save-button.components-button").on("click",function(t){e(this).attr("disabled")||e(this).addClass("is-busy")}),document.querySelectorAll("body.woocommerce_page_wc-settings #mainform .conditional.description").forEach(t=>{const o=e(t.dataset.dependsOn),i=t.dataset.showIfEquals;if(undefined===i||0===o.length)return;const n=()=>{t.style.visibility=o.val()===i?"visible":"hidden"};o.on("change",n),n()})})}(jQuery,woocommerce_settings_params,wp);

Zerion Mini Shell 1.0