use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("");$C->{HTMLTitle} = "Registration";$this->out("");$this->out(Zen::PerlHandler->get("IIc7a1102a58c38cc35c941ca362362583->mnt_register")->do($this->{C}));$this->out("\n<jinmeta:bodyStart/>\n	<div class=\"card o-hidden border-0 shadow-lg my-5\">\n		<div class=\"card-body p-0\">\n		  <!-- Nested Row within Card Body -->\n		  <div class=\"row\">\n			<div class=\"col-lg-5 d-none d-lg-block bg-register-image\"></div>\n			<div class=\"col-lg-7\">\n			  <div class=\"p-5\">\n				<div class=\"text-center\">\n				  <h1 class=\"h4 text-gray-900 mb-4\">Registration</h1>\n				</div>\n\n");if ( $C->{Complete} ) {$this->out("\n	<p>We sent a confirmation to the e-mail address you gave upon\n	registration. Please go to your mailbox, open the message\n	then click that link to finalize your registration<br>\n\n");} else {$this->out("\n");if ( $C->{RegForm}{errors} ) {$this->out("	<div style=\"color: red; font-size: 120\%\">\n");my $in = $C->{RegForm}{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("			<br>* $C->{error}{message}\n");}$this->out("	</div><br>\n");}$this->out("\n");if ( $C->{INPUT}{proxy_mode} ) {$this->out("<form name=\"RegisterForm\" method=post>\n<input type=hidden name=proxy_mode value=\"1\">\n<input type=hidden name=proxy_pass value=\"$C->{SYS}{URI}/auth/register.html\">\n");} else {$this->out("<form name=\"RegisterForm\" method=\"post\" action=\"$C->{SYS}{URI}/auth/register.html\">\n");}$this->out("<input type=\"hidden\" name=\"login_url\" value=\"$C->{INPUT}{login_url}\">\n<input type=\"hidden\" name=\"inv_id\" value=\"$C->{INPUT}{inv_id}\">\n<input type=\"hidden\" name=\"signature\" value=\"$C->{INPUT}{signature}\">\n<input type=\"hidden\" name=\"referer\" value=\"$C->{INPUT}{referer}\">\n\n");my $in = $C->{RegForm}{fields};my $loop = ref($in) eq "ARRAY" ? $in : ref($in) eq "CODE" ? &{$in} : [];$C->{ITERATION}{f} = -1;for my $f (@$loop) {$C->{ITERATION}{f}++;$C->{f} = $f;$this->out("	<div class=\"form-group\">\n");if ( $C->{RegForm}{isRequired}{$C->{f}} ) {$this->out("<b style=\"color:red\">*</b>&nbsp;");}$this->out("$C->{RegForm}{Names}{$C->{f}}\n		$C->{RegForm}{$C->{f}}\n	</div>\n");}$this->out("		<input class=\"btn btn-primary btn-user btn-block\" type=\"submit\" name=\"do_it\" value=\"Register!\">\n</form>\n\n\n");}$this->out("<hr>\n<div class=\"text-center\">\n  <a class=\"small\" href=\"forgot-password.html\">Forgot Password?</a>\n</div>\n<div class=\"text-center\">\n  <a class=\"small\" href=\"login.html\">Already have an account? Login!</a>\n</div>\n</div>\n</div>\n</div>\n</div>\n</div>\n<jinmeta:bodyEnd/>\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("");}