class CheckoutComponent {
	constructor ()
	{
		this.name = "Checkout";
		this.attributes = ["data-v-component-checkout"],

		this.image ="icons/checkout.svg";
		this.html = '<div class="form-group"><label>Your response:</label><textarea class="form-control"></textarea></div>';
		
		this.properties = [];
	}

    init(node)
	{
		$('.form-group[data-v-group]').attr('style','display:none !important');
		if (node.dataset.type != undefined)
		{
			$('.form-group[data-v-group="'+ node.dataset.type + '"]').attr('style','');
		} else
		{		
			$('.form-group[data-v-group]:first').attr('style','');
		}
	}
}

let checkoutComponent = new CheckoutComponent;

export {
  checkoutComponent
};
