jQuery(document).ready(function (e) {
    function n() {
        return (
            ($field = e("#twnt_tw_wc_new_payment_method_description")),
            ($new_pm_checkbox = e("#wc-twnt_twint-new-payment-method")),
            ($new_pm_radio = e("#wc-twnt_twint-payment-token-new")),
            !$new_pm_checkbox.is(":visible") ||
            !$new_pm_checkbox.is(":checked") ||
            (e("input[type=radio][name=wc-twnt_twint-payment-token]").length && !$new_pm_radio.is(":checked"))
                ? void $field.hide()
                : void $field.show()
        );
    }
    (n(e("#wc-twnt_twint-new-payment-method")),
        e(document).on("change", "#wc-twnt_twint-new-payment-method", function (e) {
            n();
        }),
        e(document).on("change", "input[type=radio][name=wc-twnt_twint-payment-token]", function (e) {
            n();
        }));
});
