use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("");$this->out(Zen::PerlHandler->get("II7ea162da3258f2fa48309e6a1f31f639->mnt_helpticket")->do($this->{C}));$this->out("\n<div class=\"card my-4 py-3 border-bottom-warning\">\n	<div class=\"card-body\">\n");if ( $C->{INPUT}{newtid} ) {$this->out("		<p>Your inquiry has been sent. Your ticket number is $C->{INPUT}{newtid}.</p>\n		<p>You can review it using the link below. If you don`t have an account with us, the password is sent to your email address.</p>\n");$C->{url} = "$C->{SYS}{URI}/member/account/helptickets.html";$this->out("		<a href=\"$C->{url}\">$C->{url}</a>\n");} else {$this->out("		$C->{SubmitInstr}\n");}$this->out("	</div>\n</div>\n\n");if ( $C->{Form}{errors} ) {$this->out("	<div class=\"card mb-4 py-3 border-bottom-danger\">\n		<div class=\"card-body\">\n");my $in = $C->{Form}{errors};my $loop = ref($in) eq "ARRAY" ? $in : ref($in) eq "CODE" ? &{$in} : [];$C->{ITERATION}{error} = -1;for my $f (@$loop) {$C->{ITERATION}{error}++;$C->{error} = $f;$this->out("				$C->{error}{message}\n");}$this->out("		</div>\n	</div>\n");}$this->out("\n");if ( $C->{MembershipError} ) {$this->out("	<div class=\"card mb-4 py-3 border-bottom-danger\">\n		<div class=\"card-body\">$C->{MembershipError}</div>\n	</div>\n");}$this->out("	\n<form method=POST action=\"$C->{SELF_URL_NO_QS}\">\n	<div class=\"card shadow mb-4\">\n		<div class=\"card-header py-3\">\n			<h6 class=\"m-0 font-weight-bold text-primary\">Support ticket</h6>\n		</div>\n		<div class=\"card-body\">\n			<div class=\"form-group row\">\n				<label class=\"col-sm-12 col-md-4 col-form-label\">E-mail</label>\n				<div class=\"col-sm-12 col-md-8\">$C->{Form}{email}</div>\n			</div>\n			<div class=\"form-group row\">\n				<label class=\"col-sm-12 col-md-4 col-form-label\">First name</label>\n				<div class=\"col-sm-12 col-md-8\">$C->{Form}{fname}</div>\n			</div>\n			<div class=\"form-group row\">\n				<label class=\"col-sm-12 col-md-4 col-form-label\">Last name</label>\n				<div class=\"col-sm-12 col-md-8\">$C->{Form}{lname}</div>\n			</div>\n			<div class=\"form-group row\">\n				<label class=\"col-sm-12 col-md-4 col-form-label\">Subject</label>\n				<div class=\"col-sm-12 col-md-8\">$C->{Form}{subject}</div>\n			</div>\n			<div class=\"form-group row\">\n				<label class=\"col-sm-12 col-md-4 col-form-label\">Message</label>\n				<div class=\"col-sm-12 col-md-8\">$C->{Form}{message}</div>\n			</div>\n			<div class=\"form-group row\">\n				<label class=\"col-sm-12 col-md-4 col-form-label\">Category</label>\n				<div class=\"col-sm-12 col-md-8\">$C->{Form}{category}</div>\n			</div>\n			<div class=\"form-group row\">\n				<label class=\"col-sm-12 col-md-4 col-form-label\"></label>\n				<div class=\"col-sm-12 col-md-8\">\n					<input class=\"btn btn-primary\" type=submit name=do_it value=\"Submit ticket\">\n					<input class=\"btn btn-primary\" type=button value=\"View my tickets\" onClick=\"document.location=\'$C->{SYS}{URI}/member/account/helptickets.html\'\">\n				</div>\n			</div>\n		</div>\n</div>\n\n</form>\n\n");{my $G = (ref $this)->get("/headfoot/hf_auth.html", $this->{param}) or die "no skel /headfoot/hf_auth.html";my $out1 = $this->getOutput;$C->{central_content} = join('', @$out1);@$out1 = ();my $out2 = $G->execute($C);$this->out(@$out2) if $out2;}$this->out("");}