use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("");$this->out(Zen::PerlHandler->get("II1b7f5cd35f00c93f234e8e1273dbac2a->mnt_registry")->do($this->{C}));$this->out("\n<div class=\"card shadow mb-4\">\n	<!-- Card Header - Accordion -->\n	<a href=\"#collapseAffiliateSettings\" class=\"d-block card-header py-3\" data-toggle=\"collapse\" role=\"button\" aria-expanded=\"true\" aria-controls=\"collapseCardExample\">\n		<h6 class=\"m-0 font-weight-bold text-primary\">JV & Affiliate Information</h6>\n	</a>\n	<!-- Card Content - Collapse -->\n	<div class=\"collapse $C->{cardsCollapsed}\" id=\"collapseAffiliateSettings\">\n		<div class=\"card-body\">\n\n	<h6 class=\"mb-6 font-weight-bold text-primary\">Notify a JV Partner on a sale</h6>\n	\n");if ( $C->{Object}{isTypeJventure} ) {$this->out("		<div class=\"form-group\">\n			<label for=\"text\">&lt;$C->{View}{owner_email}&gt;</label>\n			$C->{View}{owner_name}\n		</div>\n");} else {$this->out("			<div class=\"form-group\">\n			<label for=\"text\">Name</label>\n			$C->{Form}{owner_name}\n			</div>\n			<div class=\"form-group\">\n			<label for=\"text\">E-mail</label>\n			$C->{Form}{owner_email}\n		</div>\n");}$this->out("\n<div class=\"form-group\">\n	<label for=\"text\">Affiliate prevailing mode</label> \n		$C->{Form}{aff_prevailing_mode}\n</div>\n\n<div class=\"form-group\">\n	$C->{Form}{commission_aff}\n</div>\n\n");if ( $C->{SpecfeatRegistry}{productpro} ) {$this->out("	<div class=\"form-group\">\n");{my $G = (ref $this)->get("/master/store/products/form_instcomm.html", $this->{param}) or die "no skel /master/store/products/form_instcomm.html";my $ctx = $this->{C};my $out = $G->execute($ctx);$this->out(@$out) if $out;}$this->out("	</div>\n	<div class=\"form-group\">\n		$C->{Form}{commission_charity}\n	</div>\n");}$this->out("<div class=\"form-group\">\n	<label for=\"text\">Guarantee period (days)</label> \n	$C->{Form}{period_guarantee}\n	<div class=\"custom-control custom-checkbox\">\n		$C->{Form}{period_guarantee_no4recur}\n        <label for=\"chbox_period_guarantee_no4recur\" class=\"custom-control-label\">do not apply for recurring sales</label>\n    </div>\n</div>\n");if ( $C->{SpecfeatRegistry}{productpro} ) {$this->out("	<div class=\"form-group\">\n		<label for=\"text\">Limit recurring commissions</label> \n		$C->{Form}{comm_recur_stop}\n		<span id=\"textHelpBlock\" class=\"form-text small text-muted\">\n			Stop crediting recurring commissions after N installments (0 to credit on all installments)</span>\n	</div>\n");}$this->out("</div>\n</div></div>\n");}