<%- include('_layout_start') %>
<link rel="stylesheet" href="/operations-home.css?v=8.177">
<% const sections=typeof hubSections!=='undefined'?hubSections:operationsSections;const groups=sections.flatMap(s=>s.groups);const menuCount=groups.length;const newCount=groups.filter(g=>g.fresh).length; %>
<div id="operationsHome">
<div class="oh-stats"><article><i class="oh-blue"><svg class="ui-icon" viewBox="0 0 24 24"><rect x="3" y="3" width="7" height="7" rx="1.5"/><rect x="14" y="3" width="7" height="7" rx="1.5"/><rect x="3" y="14" width="7" height="7" rx="1.5"/><rect x="14" y="14" width="7" height="7" rx="1.5"/></svg></i><div><strong><%= menuCount %></strong><b>Menu Tersedia</b><small>Total fitur di workspace ini</small></div></article><article><i class="oh-gold"><svg class="ui-icon" viewBox="0 0 24 24"><path d="m12 3 10 5-10 5L2 8l10-5Zm-10 9 10 5 10-5M2 16l10 5 10-5"/></svg></i><div><strong><%= sections.length %></strong><b>Kategori Menu</b><small>Kelompok menu utama</small></div></article><article><i class="oh-green"><svg class="ui-icon" viewBox="0 0 24 24"><path d="m10 4 2 6 6 2-6 2-2 6-2-6-6-2 6-2 2-6Zm9-2 1 3 3 1-3 1-1 3-1-3-3-1 3-1 1-3Z"/></svg></i><div><strong><%= newCount %></strong><b>Menu Baru</b><small>Fitur terbaru untuk Anda</small></div></article></div>
<div class="oh-filter"><label><svg class="ui-icon"><use href="#i-search"/></svg><input type="search" id="ohSearch" placeholder="Cari menu…" aria-label="Cari menu operasional"></label><select id="ohCategory" aria-label="Kategori menu"><option value="">Semua Kategori</option><% for(const section of sections){ %><option value="<%= section.key %>"><%= section.name %></option><% } %></select></div>
<div class="oh-grid"><% for(const section of sections){ %><section class="oh-card" data-oh-section="<%= section.key %>"><div class="oh-card-heading"><i class="oh-mark"><% if(section.key==='data-situs'){ %><svg class="ui-icon" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><ellipse cx="12" cy="12" rx="4" ry="9"/><path d="M3 12h18"/></svg><% }else if(section.key==='sosial'){ %><svg class="ui-icon" viewBox="0 0 24 24"><circle cx="6" cy="12" r="3"/><circle cx="18" cy="5" r="3"/><circle cx="18" cy="19" r="3"/><path d="m9 10 6-4M9 14l6 4"/></svg><% }else if(section.key==='umum'){ %><svg class="ui-icon" viewBox="0 0 24 24"><path d="m9 3-1 3-3 1-2 3 2 2-1 3 3 3 3-1 2 2 3-1 1-3 3-1 1-4-3-1-1-3-3-1Z"/><circle cx="12" cy="12" r="3"/></svg><% }else{ %><svg class="ui-icon"><use href="#<%= section.icon %>"/></svg><% } %></i><div><h2><%= section.name %></h2><p><%= section.description %></p></div></div><div class="oh-rows"><% for(const group of section.groups){ %><div data-oh-menu data-own-label="<%= section.name+' '+group.name %>" data-label="<%= section.name+' '+group.name+' '+group.items.map(i=>i[1]).join(' ') %>"><% if(group.items.length===1){const item=group.items[0]; %><a class="oh-row" href="<%= item[0] %>"><svg class="ui-icon"><use href="#<%= group.icon %>"/></svg><span><%= group.name %></span><% if(group.fresh){ %><small class="oh-new">Baru</small><% } %><svg class="ui-icon oh-arrow"><use href="#i-chevron-right"/></svg></a><% }else{ %><details><summary class="oh-row"><svg class="ui-icon"><use href="#<%= group.icon %>"/></svg><span><%= group.name %></span><small><%= group.items.length %></small><svg class="ui-icon oh-arrow"><use href="#i-chevron-down"/></svg></summary><div class="oh-children"><% for(const item of group.items){ %><a href="<%= item[0] %>" data-oh-child="<%= item[1] %>"><%= item[1] %><svg class="ui-icon"><use href="#i-chevron-right"/></svg></a><% } %></div></details><% } %></div><% } %></div></section><% } %></div>
<p class="oh-empty" id="ohEmpty" role="status" <%- menuCount?'hidden':'' %>>Tidak ada menu yang sesuai. <button class="btn" id="ohReset" type="button">Reset pencarian</button></p>
</div><script src="/operations-home.js?v=8.170"></script>
<%- include('_layout_end') %>
