setInputValue(input, value) {
      if (input.type === "checkbox" || input.type === "radio") {
        input.checked = Boolean(value);
      } else {
        input.value = value;
      }
    }
Sets the value of the input element based on the provided value.
For checkboxes and radio buttons, it sets the `checked` property.
For other input types, it sets the `value` property.

@param {HTMLInputElement} input - The input element to update.
@param {*} value - The value to set for the input. For checkboxes and radio buttons, it should be a boolean.