<!DOCTYPE html>
<html lang="ru">
	<head>
		<meta charset="utf-8" />
		<title>{{@page_data.title}}</title>
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

		<base href="{{@SCHEME.'://'.@HOST.':'.@PORT.$BASE.'/'}}" />
		<link rel="stylesheet" href="/ui/vendor/bootstrap/css/bootstrap.css?v={{@site_version}}" type="text/css" />
		<link rel="stylesheet" href="/ui/css/shop_themes/{{@base_settings.kiosk_theme}}.css?v={{@site_version}}" type="text/css" />
		<link rel="stylesheet" href="/ui/kiosk/{{@base_settings.kiosk_type}}/css/kiosk.css?v={{@site_version}}" type="text/css" />

		<link rel="apple-touch-icon" sizes="180x180" href="/ui/css/img/apple-touch-icon.png?v={{@site_version}}">
		<link rel="icon" type="image/png" sizes="32x32" href="/ui/css/img/favicon-32x32.png?v={{@site_version}}">
		<link rel="icon" type="image/png" sizes="16x16" href="/ui/css/img/favicon-16x16.png?v={{@site_version}}">
		<link rel="manifest" href="/ui/css/img/site.webmanifest?v={{@site_version}}">
		<link rel="mask-icon" href="/ui/css/img/safari-pinned-tab.svg?v={{@site_version}}" color="#5bbad5">
		<meta name="apple-mobile-web-app-title" content="Агорта.Касса">
		<meta name="application-name" content="Агорта.Касса">
		<meta name="msapplication-TileColor" content="#ffffff">
		<meta name="theme-color" content="#ffffff">

		<link rel="stylesheet" href="/ui/css/all.css">
		<link rel="stylesheet" href="/ui/css/agortaicon.css">
		<script type="text/javascript" src="/ui/scripts/jquery-3.3.1.min.js"></script>
		<script type="text/javascript">
			var synchronization_start=1;
		</script>
	</head>
	<body style="zoom: {{isset(@base_settings.zoom) && is_numeric(@base_settings.zoom)?@base_settings.zoom:100}}%;">
	<div id="screen">
		<div id="screen_window">
			<check if="{{@base_settings.kiosk_logo || @base_settings.kiosk_title}}">
			<nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-dark fixed-top sb-navbar">
			  <div class="container">
			    <div class="navbar-brand w-100">
			      <check if="{{@base_settings.kiosk_logo}}">
			        <img id="logo" src="{{@base_settings.kiosk_logo}}" style="{{@base_settings.kiosk_logo_height>0?'height: '.@base_settings.kiosk_logo_height.'px;':''}}">
			      </check>
			      <check if="{{@base_settings.kiosk_title}}">
			        <div class="navbar-brand" style="{{@base_settings.kiosk_title_size>0?'font-size: '.@base_settings.kiosk_title_size.'px;':''}}">{{@base_settings.kiosk_title}}</div>
			      </check>
			    </div>    
			  </div>
			</nav>
			</check>

			<div id="content">
				<include href="{{'kiosk/'.@base_settings.kiosk_type.'/'.@page_data.inc}}" />
			</div>
		</div>
	</div>
	<div id="exit"></div>
	<check if="{{@base_settings.kiosk_scroll_button}}">
	<div id="scrollbutton">
		<a id="scrollup" class="btn btn-light border border-secondary" data-k="-1">
			<i class="fas fa-caret-up"></i>
		</a>
		<br>
		<a id="scrolldown" class="btn btn-light border border-secondary" data-k="1">
			<i class="fas fa-caret-down"></i>
		</a>
	</div>
	</check>
	</body>
</html>
<script type="text/javascript">
var set_timeout_popup={{isset(@base_settings.timeout_popup)?@base_settings.timeout_popup:0}};
var path='{{@JAR.domain}}';
var synchronization_timer={{@synchronization_timer}};
var show_virtual_keyboard={{isset(@base_settings.virtual_keyboard)?@base_settings.virtual_keyboard:1}};
{~if(!@authorization_user):~}
var auto_logout=0;
var auto_remote_fiscalization=0;
{~else:~}
var auto_logout={{isset(@base_settings.auto_logout) && @base_settings.auto_logout>=0?@base_settings.auto_logout*60:0}};
var auto_remote_fiscalization={{isset(@base_settings.auto_fiscalization) && @base_settings.auto_fiscalization>=0?@base_settings.auto_fiscalization*60:0}};
{~endif~}
var auto_replacekey={{isset(@base_settings.auto_replacekey)?@base_settings.auto_replacekey:0}};
var show_discount_keyboard={{isset(@authorization_user.module) && in_array('receipts/select_discount', @authorization_user.module) && !in_array('receipts/discount', @authorization_user.module)?1:0}};
var add_discount={{isset(@authorization_user.module) && in_array('receipts/discount', @authorization_user.module)?1:0}};
</script>
<script type="text/javascript" src="/ui/scripts/js.js?v={{@site_version}}"></script>
<script type="text/javascript" src="/ui/kiosk/{{@base_settings.kiosk_type}}/scripts/kiosk.js?v={{@site_version}}"></script>
<check if="{{@base_settings['multikassa']==1 && !@AJAX && (@PATH=='/' || @PATH=='/receipts/sales')}}">
<script type="text/javascript">
scan_cashboxes();
setInterval(scan_cashboxes, 270000);
</script>
</check>
<check if="{{!@base_settings.animation || (int)@base_settings.animation==0}}">
<link rel="stylesheet" type="text/css" href="/ui/css/no_animation.css?v={{@site_version}}" />
</check>
<script type="text/javascript" src="/ui/scripts/for_no_copy.js?v={{@site_version}}"></script>
