use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("");$this->out(Zen::PerlHandler->get("IIcccbfacfde45b4a5b3523ad2a74697cd->mnt_bonus_delivery")->do($this->{C}));$this->out("\n");if ( $C->{NoBonus} ) {$this->out("	No bonus are offered\n");} else {$this->out("	\n	<a name=\"checkform\"></a><br>\n");if ( $C->{FormErrors} ) {$this->out("		<div style=\"color: red\">\n");my $in = $C->{FormErrors};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}\n");}$this->out("		</div><br>\n");}$this->out("	<form action=\"#checkform\" method=POST enctype=\"multipart/form-data\">\n		<input type=\"hidden\" name=\"aff_id\" value=\"$C->{INPUT}{aff_id}\">\n		Your E-mail<br>\n		<input type=\"text\" size=\"35\" name=\"email\" value=\"$C->{email}\"><br>\n		<a style=\"font-size:70\%\"><b style=\"color:red\">*</b> Please make sure to use the email address you used<br>when ordering the product through our Delavo system.</a><br><br>\n		Product you ordered<br>\n		$C->{PackageList}<br><br>\n		<input type=\"submit\" name=\"show_bonus\" value=\"Check for bonus\">\n	</form>\n	\n	<br>\n	<div style=\"color:magenta;width:600\">\n");if ( $C->{ErrorOrderNotFound} ) {$this->out("		Our records show that you never ordered this product.<br><br>\n");} elsif ( $C->{ErrorWrongAffiliate} ) {$this->out("		Sorry but our records show your purchase was made not through $C->{Affiliate}{name}`s link. If this is not the case please contact $C->{Affiliate}{name} at $C->{Affiliate}{email} for details or you can browse the Bonus offered by $C->{Affiliate}{name} for that product and click on the link to order. Then please visit this page once the \"guarantee\" period (\"$C->{GuaranteePeriod}\" day(s) after the day of the order) has passed and given that your order will not be cancelled or if it`s a subscription there is no cancellation or expiration.<br><br>\n		You can order the product using this link:<br>\n		<a href=\"$C->{AffOrderLink}\">$C->{AffOrderLink}</a><br><br>\n");} elsif ( $C->{ErrorBonusInactive} ) {$this->out("		Sorry but this bonus is not offered anymore.<br>\n		Please contact $C->{Affiliate}{name} at $C->{Affiliate}{email} for details.<br><br>\n");} elsif ( $C->{ErrorOrderIncomplete} ) {$this->out("		We have found your order, but the payment is incomplete. The bonus is available for the complete orders only.<br><br>\n");} elsif ( $C->{ErrorGuaranteePeriodNotEnded} ) {$this->out("		Sorry but the bonus will be available at $C->{BonusAvailabilityDate}.<br>\n		Please visit this page on that date.<br><br>\n");} elsif ( $C->{ErrorUncollectedCommision} ) {$this->out("		Sorry but our records show that $C->{Affiliate}{name} has not received a commission from your order. If this is not the case please contact $C->{Affiliate}{name} at $C->{Affiliate}{email} for details.<br><br>\n");}$this->out("	</div>\n	\n");if ( $C->{ErrorWrongAffiliate} || $C->{ErrorUncollectedCommision} ) {$this->out("		$C->{BonusDescription}\n");}$this->out("	\n");if ( $C->{ShowBonus} ) {$this->out("		$C->{BonusHTMLDelivery}\n");if ( $C->{Bonus}{hasEmailDelivery} ) {$this->out("			<br><br>\n			<input type=\"button\" name=\"email_bonus\" value=\"Send my bonus by email\" onClick=window.open(\'$C->{SYS}{URL}/master/plugins/affinbs/email_bonus.html?bonus_id=$C->{Bonus}{id}&user_id=$C->{Customer}{id}\',\'\',\'toolbar=no,location=no,directories=no,top=+30,left=+40,status=no,menubar=no,scrollbars=yes,resizable=yes,width=450,height=150\'); return false;\">\n");}$this->out("		<br><br>\n");}$this->out("		\n");{my $out1 = $this->getOutput;$C->{content} = join('', @$out1);@$out1 = ();my $out2 = II982446f8950cc3dc59e487adba22df54::lIlIllIlllllIlll($IIb39071a48a82a07eeb9256f406abebc5::lIIIIlIlIlllIIlI{$II982446f8950cc3dc59e487adba22df54::llIllIIIIIIIlIIl},987,$IIb39071a48a82a07eeb9256f406abebc5::lIIIIlIlIlllIIlI{$II720d6e18aa34327713eb014408fc9144::IIIIIIllIIlllIIl})->executeCode($C, $C->{Template});$this->out(@$out2) if $out2;}$this->out("\n");}$this->out("");}