(()=>{"use strict";jQuery(document).ready((function(e){var o=e("#w4os_provide_search"),n=e("#w4os_search_url"),r=e("#w4os_search_register"),c=o.data("helpers-internal"),a=o.data("helpers-external"),d=n.val();""===d&&(d=a+"query.php");var t=r.val();""===t&&(t=a+"register.php"),o.on("change",(function(){o.prop("checked")?(n.prop("readonly",!0).val(c+"query.php"),r.prop("readonly",!0).val(c+"register.php")):(n.prop("readonly",!1).val(d),r.prop("readonly",!1).val(t))})).trigger("change")})),jQuery(document).ready((function(e){function o(){e(this).next(".form-control").select(),document.execCommand("copy")}e(".copyable .rwmb-input input").each((function(){var n=e(this),r=e("<span>",{class:"dashicons dashicons-admin-page copy-icon",click:o});n.addClass("form-control").before(r)}))})),jQuery(document).ready((function(e){function o(e){var o=e.closest(".w4osdb-field-group").find(".w4osdb-field:not(.db-field-use_default)");e.prop("checked")?o.hide():o.show()}e(".w4osdb-field-group").each((function(){o(e(this).find('.db-field-use_default input[type="checkbox"]'))})),e(document).on("change",'.w4osdb-field-group .db-field-use_default input[type="checkbox"]',(function(){o(e(this))}))}))})();