<div class="row">
	<div class="col-12">
		<form id="frmBypassLimit" method="post">
			<div class="form-group">
				<label for="gdrive_id">Google Drive ID</label>
				<input type="text" name="gdrive_id" id="gdrive_id" class="form-control" placeholder="1KPtwrGMyjC9c_ZpOID4eLaSDErrA5x3O or https://drive.google.com/file/d/1KPtwrGMyjC9c_ZpOID4eLaSDErrA5x3O/view" required>
			</div>
			<div class="form-group text-center">
				{% if recaptcha_site_key %}
					<div id="g-recaptcha" class="g-recaptcha" data-sitekey="{{ recaptcha_site_key }}" data-size="invisible" data-callback="gCallback"></div>
					<input type="hidden" id="captcha" name="captcha">
				{% endif %}
				<input type="hidden" name="action" value="gdriveBypassLimit">
				<button id="submit" type="submit" class="btn btn-custom btn-block">
					<em class="fab fa-google-drive mr-2"></em>Get Bypassed URL
				</button>
			</div>
		</form>
		{% if enable_ajax_downloader %}
			<div class="form-group">
				<div class="alert alert-info">The file name may be different than the original file name. If you find something like that, rename the file when you download it.</div>
			</div>
			<div class="form-group">
				<div class="alert alert-warning">
					<strong>If the direct link doesn't work then download the file via the Download Now button.</strong>
				</div>
			</div>
			<form id="frmDownloadGDrive" method="post" class="form-group mb-0">
				{% if recaptcha_site_key %}
					<div id="g-recaptcha" class="g-recaptcha" data-sitekey="{{ recaptcha_site_key }}" data-size="invisible" data-callback="gCallback"></div>
					<input type="hidden" id="captcha" name="captcha">
				{% endif %}
				<input type="hidden" name="action" value="gdriveAccessToken">
				<label for="result">Direct Link</label>
				<div class="input-group">
					<input id="bypassedLink" type="text" onfocus="this.select()" data-id="" class="form-control" placeholder="The direct link is here!" aria-describedby="bypassedLinkDL">
					<div class="input-group-append">
						<button type="submit" class="btn btn-outline-custom" type="button" id="bypassedLinkDL" disabled>
							<em class="fas fa-download mr-2"></em>
							Download Now
						</button>
					</div>
				</div>
				<div id="bypassedLinkProgress" class="d-none mt-3">
					<div class="progress">
						<div class="progress-bar" role="progressbar" style="width: 0%;" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">0%</div>
					</div>
					<div class="alert alert-warning mt-3">
						<em class="fas fa-exclamation-triangle mr-2"></em>
						Do not reload or close this page during the download process!</div>
				</div>
			</form>
		{% else %}
			<div class="form-group">
				<div class="alert alert-info">The file name may be different than the original file name. If you find something like that, rename the file when you download it.</div>
			</div>
			<div class="form-group mb-0">
				<input id="bypassedLink" type="text" onfocus="this.select()" data-id="" class="form-control" placeholder="The direct link is here!" readonly>
			</div>
		{% endif %}
	</div>
</div>
