<head>
	<meta charset="utf-8" />
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta http-equiv="expires" content="-1" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<meta name="fragment" content="!" />
	<meta name="distribution" content="global" />
	<meta name="rating" content="general" />
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
	<meta name="mobile-web-app-capable" content="yes" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta name="msapplication-TileImage" content="assets/tile_144.png" />
	<meta name="msapplication-config" content="images/browserconfig.xml" />
	<meta property="og:image" content="assets/favicon_512.png">
	<meta property="twitter:image" content="assets/favicon_512.png">
	<link rel="manifest" href="images/manifest.json" />
	<link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/nocfbnnmjnndkbipkabodnheejiegccf" />
	<link rel="mask-icon" href="assets/safari_pinned.svg" color="#04436a">
	<link rel="apple-touch-icon" sizes="180x180" href="assets/touchicon_180.png" />
	<link rel="apple-touch-icon-precomposed" href="assets/touchicon_180_pre.png">
</head>

<body class="global-font-family color-primary-font-color">
	<div id='alert-anchor'></div>
</body>

<template name="main">
	{{#if subsReady}}
		{{#unless showSetupWizard}}
			{{#unless logged}}
				<div class="rc-old connection-status">
					{{> status}}
				</div>
				{{#if useIframe}}
					{{#if iframeUrl}}
						<iframe src="{{iframeUrl}}" style="height: 100%; width: 100%;"></iframe>
					{{/if}}
				{{else}}
					{{> loginLayout center="loginForm"}}
				{{/if}}
				{{ CustomScriptLoggedOut }}
			{{else}}
				{{#unless hasUsername}}
					{{> username}}
				{{else}}
					{{#if requirePasswordChange}}
						{{> loginLayout center="resetPassword"}}
					{{else}}
						{{> videoCall overlay=true}}
						<div id="user-card-popover"></div>
						<div id="rocket-chat" class="{{embeddedVersion}} menu-nav">
							{{#unless removeSidenav}}
								{{> sideNav }}
							{{/unless}}
							<div class="{{#unless $eq old false}} rc-old {{/unless}} main-content content-background-color {{readReceiptsEnabled}} {{#if modal}}main-modal{{/if}}">
								{{> Template.dynamic template=center}}
							</div>
						</div>
						<div class="rc-old connection-status">
							{{> status}}
						</div>
						{{> audioNotification }}
					{{/if}}
				{{/unless}}
				{{ CustomScriptLoggedIn }}
				{{> photoswipe}}
			{{/unless}}
		{{/unless}}
	{{else}}
		{{> loading}}
	{{/if}}
</template>
