/**
 * Tiriri - Content Status Meta Box
 *
 * Toggles reviewer/date fields when "AI-generated, human reviewed" is selected.
 */
( function ( $ ) {
	'use strict';

	$( function () {
		var humanReviewed = ( window.tiririMetaBox && window.tiririMetaBox.humanReviewedStatus ) || 'human_reviewed';

		$( '#tiriri_status' ).on( 'change', function () {
			if ( $( this ).val() === humanReviewed ) {
				$( '#tiriri-review-fields' ).slideDown();
			} else {
				$( '#tiriri-review-fields' ).slideUp();
			}
		} );
	} );
} )( jQuery );
