use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("");if ( $C->{User}{privHandler}{priv}{master_tools_rewards} ) {$this->out("");if ( ! $C->{Object}{IsShopcartEnabled} ) {$this->out("<div class=\"card shadow mb-4\">\n	<!-- Card Header - Accordion -->\n	<a href=\"#collapsePRSettings\" 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\">Points / Reward program</h6>\n	</a>\n	<!-- Card Content - Collapse -->\n	<div class=\"collapse $C->{cardsCollapsed}\" id=\"collapsePRSettings\">\n		<div class=\"card-body\">\n\n\n<div class=\"form-group\">\n	<label for=\"text\">Grant points to customer</label> \n		$C->{Form}{points_obtain_cust} \n		<div class=\"custom-control custom-checkbox\">\n			$C->{Form}{points_obtain_cust_recur}\n			<label for=\"chbox_points_obtain_cust_recur\" class=\"custom-control-label\">repeat for subscriptions</label>\n		</div>\n</div>\n\n<div class=\"form-group\">\n	<label for=\"text\">Credit points to affiliate</label> \n		$C->{Form}{points_obtain_aff}\n		<div class=\"custom-control custom-checkbox\">\n			$C->{Form}{points_obtain_aff_recur}\n			<label for=\"chbox_points_obtain_aff_recur\" class=\"custom-control-label\">repeat for subscriptions</label>\n		</div>\n</div>\n\n<div class=\"form-group\">\n	<label for=\"text\">Product can be bought with points</label> \n		$C->{Form}{points_price}\n</div>\n\n");if ( $C->{SpecfeatRegistry}{custom_pointscomm} ) {$this->out("	<div class=\"form-group\">\n		<label for=\"text\">Commissions mode</label> \n			$C->{Form}{pointscomm_aff}\n			<span id=\"textHelpBlock\" class=\"form-text small text-muted\">pay Affiliate commissions even if the product was purchased by points</span>\n			$C->{Form}{pointscomm_jvpartner}\n			<span id=\"textHelpBlock\" class=\"form-text small text-muted\">pay JV Partner commissions even if the product was purchased by points</span>\n	</div>\n");}$this->out("\n</div></div></div>\n\n");}$this->out("");}$this->out("");}