<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" />
	<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">
</body>

<template name="main">
	{{#if subsReady}}
		{{#unless logged}}
			<div class="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">
						<div class="connection-status">
							{{> status}}
						</div>
						<div class="main-content content-background-color {{#if modal}}main-modal{{/if}}">
							{{> Template.dynamic template=center}}
						</div>
						{{#unless modal}}
							{{> sideNav }}
						{{/unless}}
					</div>
					{{> audioNotification }}
				{{/if}}
			{{/unless}}
			{{ CustomScriptLoggedIn }}
			{{> photoswipe}}
		{{/unless}}
	{{else}}
		{{> loading}}
	{{/if}}
</template>
