<!DOCTYPE html>
<html lang="{{HTML_LANG}}">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  {{BOOTSTRAP_CSS}}
  <style>{{DIALOG_CSS}}</style>
</head>
<body class="p-4">
  <div class="container-fluid">
    <div class="text-center mb-2" style="font-size: 2rem;">🔄</div>
    <h2 class="h5 mb-1">{{UPDATE_TITLE}}</h2>
    <p class="text-muted small mb-3">{{UPDATE_SUBTITLE}}</p>

    <div class="d-flex align-items-center justify-content-center gap-3 mb-3">
      <div class="border rounded p-3 text-center flex-fill">
        <div class="small text-muted text-uppercase">{{UPDATE_CURRENT_LABEL}}</div>
        <div class="fw-bold text-secondary">{{CURRENT}}</div>
      </div>
      <span class="text-muted">→</span>
      <div class="border rounded p-3 text-center flex-fill">
        <div class="small text-muted text-uppercase">{{UPDATE_LATEST_LABEL}}</div>
        <div class="fw-bold text-success">{{LATEST}}</div>
      </div>
    </div>

    <div class="border rounded p-3 mb-3 small">
      <strong>{{UPDATE_WHATS_NEW}}</strong>
      <div class="mt-1 text-secondary">{{CHANGELOG}}</div>
    </div>

    <div class="d-flex gap-2">
      <button type="button" class="btn btn-outline-secondary flex-grow-1" onclick="sketchup.dismiss()">{{UPDATE_LATER}}</button>
      <button type="button" class="btn btn-success flex-grow-1" id="btn-update" onclick="sketchup.on_version_switch('{{LATEST_ESC}}')">{{UPDATE_NOW}}</button>
    </div>

    <div id="progress" class="small text-primary text-center py-2 mt-2 d-none">{{UPDATE_DOWNLOADING}}</div>
  </div>
  {{BOOTSTRAP_JS}}
</body>
</html>
