(function ($) {
	"use strict";

	$(document).ready(function () {
		$('.f4w-card .f4w-btn-action').on('click', function () {
			var card = $(this).parent('.f4w-card');
			var icon = $(this).children('i');
			icon.addClass('fa-spin-fast');

			if (card.hasClass('f4w-active')) {
				card.removeClass('f4w-active');

				window.setTimeout(function () {
					icon
						.removeClass('fa-arrow-left')
						.removeClass('fa-spin-fast')
						.addClass('fa-bars');

				}, 800);
			} else {
				card.addClass('f4w-active');

				window.setTimeout(function () {
					icon
						.removeClass('fa-bars')
						.removeClass('fa-spin-fast')
						.addClass('fa-arrow-left');

				}, 800);
			}
		});

	});

})(jQuery);



