<%- include('_layout_start') %>
<link rel="stylesheet" href="/recording-monitor.css?v=8.409">
<section id="recordingMonitor" data-site="<%= activeSite||'' %>">
<svg class="rm-sprite" aria-hidden="true"><defs><symbol id="rm-sun" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4"/><path d="M12 2v2m0 16v2M2 12h2m16 0h2M5 5l1.5 1.5m11 11L19 19M5 19l1.5-1.5m11-11L19 5"/></symbol><symbol id="rm-moon" viewBox="0 0 24 24"><path d="M21 13A9 9 0 0 1 11 3a9 9 0 1 0 10 10Z"/></symbol><symbol id="rm-calendar" viewBox="0 0 24 24"><rect x="3" y="5" width="18" height="16" rx="3"/><path d="M7 3v4m10-4v4M3 10h18"/></symbol><symbol id="rm-search" viewBox="0 0 24 24"><circle cx="10" cy="10" r="6"/><path d="m15 15 6 6"/></symbol><symbol id="rm-users" viewBox="0 0 24 24"><circle cx="9" cy="8" r="3"/><path d="M3 21v-2a6 6 0 0 1 12 0v2m1-16a3 3 0 0 1 0 6m3 10v-2a6 6 0 0 0-3-5"/></symbol><symbol id="rm-play" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="m10 8 6 4-6 4Z"/></symbol><symbol id="rm-clock" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></symbol><symbol id="rm-eye" viewBox="0 0 24 24"><path d="M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12Z"/><circle cx="12" cy="12" r="3"/></symbol><symbol id="rm-refresh" viewBox="0 0 24 24"><path d="M20 7v5h-5M4 17v-5h5M5 8a8 8 0 0 1 13-3l2 3M4 16l2 3a8 8 0 0 0 13-3"/></symbol><symbol id="rm-download" viewBox="0 0 24 24"><path d="M12 3v12m-5-5 5 5 5-5M4 17v4h16v-4"/></symbol><symbol id="rm-mic" viewBox="0 0 24 24"><rect x="9" y="3" width="6" height="12" rx="3"/><path d="M5 10v2a7 7 0 0 0 14 0v-2m-7 9v3m-4 0h8"/></symbol><symbol id="rm-muted" viewBox="0 0 24 24"><path d="m3 3 18 18M9 9v3a3 3 0 0 0 5 2M9 5a3 3 0 0 1 6 0v5M5 10v2a7 7 0 0 0 12 5m2-7v2m-7 7v3"/></symbol></defs></svg>
<div class="rm-heading"><div><small>OPERASIONAL SITUS › MONITORING RECORDING</small><h1>Monitoring Recording</h1><p>Pantau rekaman dan suara staff sesuai jadwal kerja pada situs aktif.</p></div><div class="rm-head-tools"><label class="rm-date-picker"><svg><use href="#rm-calendar"/></svg><span><small>Tanggal monitoring · WIB</small><input type="date" id="rmDate" aria-label="Tanggal monitoring"></span></label><button id="rmToday">Hari ini</button><span class="rm-current-site"><%= activeSite||'Pilih situs pada header' %></span><button id="rmRefresh"><svg><use href="#rm-refresh"/></svg>Perbarui</button><details class="rm-download-menu"><summary><svg><use href="#rm-download"/></svg>Aplikasi</summary><div><a href="/operasional-situs/live-zoom/desktop/download">Recording Desktop 1.3.7</a><a href="/operasional-situs/live-zoom/desktop/download-android">Recording Android 1.2.4</a></div></details></div></div>
<div class="rm-room"><div class="rm-room-heading"><span class="rm-room-icon"><svg><use href="#rm-mic"/></svg></span><div><b>Ruang suara · <%= activeSite||'Situs belum dipilih' %></b><small id="rmVoiceHint">Peserta yang sudah memulai recording akan bergabung otomatis.</small></div><span id="rmVoiceTotal">0 peserta</span></div><div id="rmVoiceMembers" class="rm-room-members"></div></div>
<p id="rmMessage" role="status"></p><div class="rm-shift-board" id="rmBoard"></div>
<section id="rmManagement" class="rm-management" hidden><div class="rm-management-title"><svg><use href="#rm-users"/></svg><h2>Pengelola · recording tanpa shift</h2><small>Superadmin / Manager / Leader</small></div><div id="rmManagementRows"></div></section>
<div class="rm-bottom-note"><span id="rmUpdated">Menyiapkan monitoring…</span><span>Recording lokal dapat tetap berjalan ketika perangkat kehilangan koneksi.</span></div>
<dialog id="rmDialog" class="rm-detail-dialog"><div class="rm-dialog-head"><div class="rm-detail-avatar" id="rmAvatar">ST</div><div><small>MONITORING · RIWAYAT AKTIVITAS</small><h2>Detail Recording</h2><p>Aktivitas rekaman dan suara pada shift terpilih.</p></div><button id="rmClose" aria-label="Tutup detail">×</button></div><div class="rm-dialog-body"><div class="rm-identity-card"><div><strong id="rmName"></strong><small id="rmDetail"></small></div><span id="rmShiftBadge"></span></div><div id="rmDetailVoice" class="rm-detail-voice"></div><div class="rm-attendance-card"><div><small>Recording pertama</small><strong id="rmFirstRecording">—</strong></div><span id="rmAttendance" class="rm-attendance"></span></div><div class="rm-monitor-stats"><div><small>Durasi recording</small><b id="rmRecordedTotal">00:00:00</b></div><div><small>Tidak ada recording</small><b id="rmMissingTotal">00:00:00</b></div><div><small>Belum terkonfirmasi</small><b id="rmUnknownTotal">00:00:00</b></div></div><div class="rm-dialog-tabs" role="tablist"><button id="rmActivityTab" role="tab" aria-controls="rmActivityPanel" aria-selected="true">Aktivitas recording</button><button id="rmGapsTab" role="tab" aria-controls="rmGapsPanel" aria-selected="false">Jeda tanpa recording</button></div><section id="rmGapsPanel" role="tabpanel" hidden><p class="rm-gap-note">Hanya waktu shift yang telah berlalu dihitung. Jeda koneksi dipisahkan sebagai belum terkonfirmasi; rekaman offline yang terkirim akan memperbarui rekap.</p><div id="rmGapList"></div><button id="rmExportGaps">Unduh detail jeda CSV</button></section><section id="rmActivityPanel" role="tabpanel"><ol id="rmEvents" class="rm-timeline"></ol></section><div class="rm-detail-totals"><div><small>Durasi recording</small><strong id="rmDetailDuration">00:00:00</strong></div><div><small>File diterima</small><strong id="rmDetailFiles">0 file</strong></div></div><p class="rm-detail-note">Waktu mengikuti WIB. Koneksi terputus belum memastikan rekaman lokal berhenti.</p></div><div class="rm-dialog-foot"><a id="rmResults" href="/operasional-situs/live-zoom/rekaman-bertugas">Buka hasil rekaman ↗</a><button id="rmCloseBottom">Tutup</button></div></dialog>
</section><script src="/recording-monitor.js?v=8.409"></script><%- include('_layout_end') %>
