<link rel="stylesheet" href="/operational-history.css?v=8.482">
<div id="operationalHistory" class="oh-entry" hidden data-page="<%= historyMenu %>" data-site="<%= activeSite %>">
 <button type="button" id="ohOpen" class="btn oh-open"><svg class="ui-icon"><use href="#i-clock"/></svg> Riwayat Menu</button>
 <dialog id="ohDialog" class="oh-dialog" data-popup-custom="1" aria-labelledby="ohTitle">
  <header class="oh-header">
   <span class="oh-emblem"><svg class="ui-icon"><use href="#i-clock"/></svg></span>
   <div><small>LOG OPERASIONAL · <%= activeSite %></small><h2 id="ohTitle">Riwayat Menu</h2><p>Waktu WIB · Disimpan selama 14 hari</p></div>
   <button id="ohClose" class="btn oh-close" type="button" aria-label="Tutup riwayat">×</button>
  </header>
  <div id="ohLatest" class="oh-latest" hidden></div>
  <form id="ohFilters" class="oh-filters">
   <label class="oh-search">Pencarian<input type="search" name="search" maxlength="100" placeholder="Cari pelaku, domain, atau ID…"></label>
   <label>Tindakan<select name="action"><option value="">Semua tindakan</option><% for(const [key,label] of Object.entries(historyActions)){ %><option value="<%= key %>"><%= label %></option><% } %></select></label>
   <label>Dari tanggal<input name="from" type="date"></label>
   <label>Sampai tanggal<input name="to" type="date"></label>
   <label>Sumber<select name="source"><option value="">Log tercatat</option><option value="legacy">Data dari sumber lama</option></select></label>
   <div class="oh-filter-buttons"><button class="btn" type="reset">Reset</button><button class="btn primary" type="submit">Terapkan</button></div>
  </form>
  <div id="ohDetailNav" class="oh-detail-nav" hidden>
   <button id="ohBack" class="btn" type="button">‹ Daftar log</button>
   <div class="oh-tabs" role="group" aria-label="Tampilan detail">
    <button id="ohOverview" type="button" aria-pressed="true">Ringkasan</button>
    <button id="ohTech" type="button" aria-pressed="false">Data Teknis / JSON</button>
   </div>
  </div>
  <div class="oh-content">
   <p id="ohMessage" class="oh-message" role="status" aria-live="polite"></p>
   <div id="ohList" class="oh-list"></div>
   <section id="ohDetail" class="oh-detail" hidden></section>
  </div>
  <footer class="oh-footer">
   <small id="ohCount"></small>
   <button id="ohRefresh" class="btn" type="button">↻ Perbarui</button>
   <div id="ohPages"><button id="ohPrev" class="btn" type="button">‹ Sebelumnya</button><button id="ohNext" class="btn" type="button">Berikutnya ›</button></div>
   <div id="ohExports" hidden><button id="ohCopy" class="btn" type="button">Salin JSON</button><button id="ohDownload" class="btn primary" type="button">Unduh JSON</button></div>
  </footer>
 </dialog>
</div>
<script src="/operational-history.js?v=8.482"></script>
