use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("");if ( $C->{User}{privHandler}{priv}{master_store_oneclickords} ) {$this->out("\n<script language=\"JavaScript\">\n	function atkOneclickordChanged()\n	{\n		var oneclickord = document.getElementById(\'oneclickord\').value;\n		var TxtOneclickordJsCode = document.getElementById(\'TxtOneclickordJsCode\');\n		\n		if (oneclickord != \'\')\n		{\n			var pack_id = oneclickord.substr(0, oneclickord.length - 2);\n			var pack_sig = oneclickord.substr(oneclickord.length - 2, oneclickord.length - 1);\n			TxtOneclickordJsCode.innerHTML = \'&lt;script type=\"text/javascript\" src=\"$C->{SYS}{URI}/order/oneclickord.txt?pack_id=\' + pack_id + \'&signature=\' + pack_sig + \'&prod_id=$C->{Object}{id}\"&gt;&lt;/script&gt;\';\n		}\n		else\n		{\n			TxtOneclickordJsCode.innerHTML = \'Please first select a 1-click order page\';\n		}\n	}\n</script>\n\n<div class=\"card shadow mb-4\">\n	<!-- Card Header - Accordion -->\n	<a href=\"#collapseOCSettings\" 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\">1-click order</h6>\n	</a>\n	<!-- Card Content - Collapse -->\n	<div class=\"collapse $C->{cardsCollapsed}\" id=\"collapseOCSettings\">\n		<div class=\"card-body\">\n<div class=\"form-group\">\n	<label for=\"text\">1-click order page</label> \n		$C->{Form}{oneclickord}\n</div>\n<div class=\"form-group\">\n	<label for=\"text\">JS code to include on other sites</label> \n		<textarea id=\"TxtOneclickordJsCode\" rows=\"3\" cols=\"95\" class=\"form-control\" readOnly></textarea>\n</div>\n</div></div></div>\n\n<script language=\"JavaScript\">\n	atkOneclickordChanged();\n</script>\n");}$this->out("");}