use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("<script>\n\nfunction AbandoneCheckMainDiv(enabled)\n{\n	document.getElementById(\'AbandoneDiv\').style.display = enabled ? \'\' : \'none\';\n}\n\n</script>\n\n");$C->{checked} = $C->{Object}{abandone_yes} ? 'checked' : '';$this->out("	<div class=\"custom-control custom-checkbox custom-control-inline\">\n		<input id=\"abandone_yes\" type=\"checkbox\" name=\"abandone_yes\" value=\"1\" $C->{checked} class=\"custom-control-input\" onClick=\"AbandoneCheckMainDiv(this.checked)\">\n		<label for=\"abandone_yes\" class=\"custom-control-label\">Enable abandoned orders handling</label>\n		<input type=\"hidden\" name=\"abandone_yes\" value=\"\">\n	</div>\n\n");$C->{Settings} = $C->{Object}->getView->{AbandoneSettingsUnpacked};$this->out("\n<div id=\"AbandoneDiv\" style=\"display: none\">\n	<div class=\"form-group\">\n		<label>Send a message after N hours</label>\n		$C->{Form}{abandone_waithours}\n	</div>\n	<div class=\"form-group\">\n		<label>The message</label>\n		$C->{Form}{abandone_email}\n	</div>\n	<div class=\"form-group\">\n		<a href=\"#\" onClick=\"jinPopWin(\'/help/tagshelp.html?ident=form_package_abandone\'); return false;\">View the list of available tags</a>\n	</div>\n	<div class=\"form-group\">\n		<label>Include to a Follow-Up list</label>\n		$C->{Form}{abandone_fum_id}\n	</div>\n	<script>AbandoneCheckMainDiv($C->{Object}{abandone_yes});</script>\n</div>\n");}