<script src="${login.appDataPath}/resources/bootstrap.bundle.min.js?v=50efbf3d"></script>
<script src="${login.appDataPath}/resources/window-onload.js?v=0e43b633"></script>

#if ($gui.name == "oauth_consent")
    <script src="${login.appDataPath}/resources/oauth_consent.js?v=339b6d0d"></script>
#end

#if ($gui.name == "mauth_onboard")
    <script src="${login.appDataPath}/resources/qrious.min.js?v=db99dcaf"></script>
    <script src="${login.appDataPath}/resources/mauth_onboard.js?v=38723856"></script>
#end

#if ($gui.name == "mauth_link_qr")
    <script src="${login.appDataPath}/resources/qrious.min.js?v=db99dcaf"></script>
    <script src="${login.appDataPath}/resources/mauth_link_qr.js?v=fd5fd826"></script>
#end

#if ($gui.name == "mauth_push_qr")
    <script src="${login.appDataPath}/resources/qrious.min.js?v=db99dcaf"></script>
    <script src="${login.appDataPath}/resources/mauth_push_qr.js?v=3c6a82b5"></script>
#end

#if ($gui.name == "mauth_usernameless")
    <script src="${login.appDataPath}/resources/qrious.min.js?v=db99dcaf"></script>
    <script src="${login.appDataPath}/resources/mauth_usernameless.js?v=919f0910"></script>
#end

#if ($gui.name.startsWith("fido2"))
  <script src="${login.appDataPath}/resources/fido2_utils.js?v=e32b17fe"></script>
#end

#if ($gui.name == "fido2_auth")
  <script src="${login.appDataPath}/resources/base64.js?v=eee75ab4"></script>
  <script src="${login.appDataPath}/resources/fido2_auth.js?v=0025098b"></script>
#end

#if ($gui.name == "fido2_auth_std")
    #set ($authenticationOptionsPath = $login.requestHeaders["fido2AuthenticationOptionsPath"])
    #set ($authenticationPath = $login.requestHeaders["fido2AuthenticationPath"])
    #set ($statusServicePath = $login.requestHeaders["fido2StatusServicePath"])
    #set ($userVerification = $login.requestHeaders["fido2UserVerification"])
    <script>
        let params = {
            authenticationOptionsEndpoint: "$authenticationOptionsPath",
            authenticationEndpoint: "$authenticationPath",
            statusServiceEndpoint: "$statusServicePath",
            userVerification: "$userVerification",
       };
    </script>
    <script src="${login.appDataPath}/resources/simplewebauthn-browser@7.1.0.min.js?v=2178ec68"></script>
    <script src="${login.appDataPath}/resources/fido2_utils.js?v=e32b17fe"></script>
    <script src="${login.appDataPath}/resources/fido2_auth_std.js?v=576c17e9"></script>
#end

#if ($gui.name == "fido2_onboard")
  <script src="${login.appDataPath}/resources/base64.js?v=eee75ab4"></script>
  <script src="${login.appDataPath}/resources/fido2_onboard.js?v=701888a8"></script>
#end

#if ($gui.name == "fido2_check")
  <script src="${login.appDataPath}/resources/fido2_check.js?v=41e0e891"></script>
  ## Hide the login container while check in progress
  #set ($loginContainerHidden = true)
#end

#if ($gui.name == "authcloud_onboard")
  <script src="${login.appDataPath}/resources/qrious.min.js?v=db99dcaf"></script>
  <script src="${login.appDataPath}/resources/authcloud_onboard.js?v=58fe635a"></script>
#end

#if ($gui.name == "authcloud_login")
  <script src="${login.appDataPath}/resources/qrious.min.js?v=db99dcaf"></script>
  <script src="${login.appDataPath}/resources/authcloud_login.js?v=999ceb11"></script>
#end

#if ($gui.getGuiElem("fido2_attestation_options"))
  <script src="${login.appDataPath}/resources/simplewebauthn-browser@13.1.0.min.js?v=1127fa91"></script>
  <script src="${login.appDataPath}/resources/passkey_autofill.js?v=b694a7c4"></script>
#end

#if ($gui.name == "recovery_code_onboarding")
  <script src="${login.appDataPath}/resources/display-recovery-codes.js?v=7b02cbaa"></script>
  <script src="${login.appDataPath}/resources/download-recovery-codes.js?v=d48fb5c1"></script>
  <script src="${login.appDataPath}/resources/copy-to-clipboard.js?v=8169a8e6"></script>
#end

#if ($gui.name == "OATH_Share")
  <script src="${login.appDataPath}/resources/copy-to-clipboard.js?v=8169a8e6"></script>
#end
