import $ from 'jquery';

let required_element_ids: string[] = [];

export const set_required_element_ids = () => {
	required_element_ids = [];
	$( '.update-product-dimensions input[required]' ).each( (_index, element) => {
		if ( element.id && !required_element_ids.includes( element.id ) ) {
			required_element_ids.push( element.id );
		}
	})
}

export const get_required_element_ids = () => {
	return required_element_ids;
}
