import $ from 'jquery';
import { stepFormSubmitHandler } from '../functions/handlers/stepFormSubmitHandler';
import { keyUpOrderNumberHandler } from '../functions/handlers/keyUpOrderNumberHandler';
import { keyUpQuantityHandler } from '../functions/handlers/keyUpQuantityHandler';

export const assign = () => {
	$(document.body)
		.on('submit', '#wetail-return-portal .wetail-return-portal__form', stepFormSubmitHandler)
		.on('keyup', '#wetail-return-portal .wetail-return-portal__form #order-number', keyUpOrderNumberHandler)
		.on('keyup', '#wetail-return-portal .wetail-return-portal__form .quantity input[type="number"]', keyUpQuantityHandler)
}
