1import{j as n,v as d,w as u,x,y as m}from"./index-BEbO6xtE.js";function g({label:e,className:t}){return n.jsx("span",{className:`text-[11px] px-1.5 py-0.5 rounded whitespace-nowrap ${t??"bg-slate-100 text-slate-600"}`,children:e})}const p={GRADE:"ÐлаÑÑ",SUBJECT:"ÐÑедмеÑ",AI_MESSAGES:"AI-пакеÑ",TRIAL_SUBJECT:"ÐÑобнÑй доÑÑÑп",FREE_GRADE:"ÐеÑплаÑнÑй клаÑÑ",ADMIN_GRANT_GRADE:"ÐÑдан клаÑÑ (админ)",ADMIN_GRANT_SUBJECT:"ÐÑдан пÑÐµÐ´Ð¼ÐµÑ (админ)"};function f(e){return p[e]??e}function w(e,t,s,r){const a=[],i=d(t);i.length>0&&a.push(`клаÑÑÑ: ${i.join(",")}`);const o=u(s,r);o.length>0&&a.push(o.map(c=>c.nameRu).join(", "));const l=f(e);return a.length>0?`${l} (${a.join(" · ")})`:l}function N(e){return new Date(e).toLocaleString("ru-RU",{day:"2-digit",month:"2-digit",year:"2-digit",hour:"2-digit",minute:"2-digit"})}function y(e){const[,t,s]=e.split("-");return`${s}.${t}`}function A({tabs:e,active:t,onChange:s}){return n.jsx("div",{className:"flex gap-2 mb-3 flex-wrap",children:e.map(({key:r,label:a,badge:i})=>n.jsxs("button",{onClick:()=>s(r),className:`px-3 py-1.5 rounded-lg text-sm font-medium flex items-center gap-2 ${t===r?"bg-brand-600 text-white":"bg-white text-slate-700 border border-slate-200"}`,children:[a,!!i&&n.jsx("span",{className:`text-xs px-1.5 py-0.5 rounded-full ${t===r?"bg-white/25":"bg-yellow-400 text-white"}`,children:i})]},r))})}function E({minWidth:e=640,loading:t=!1,className:s="",children:r}){return n.jsx("div",{className:`transition-opacity ${t?"opacity-50":""} ${s}`,children:n.jsx("div",{className:"overflow-x-auto",children:n.jsx("table",{className:`w-full text-sm ${t?"pointer-events-none":""}`,style:{minWidth:e},children:r})})})}function b(){document.querySelector("main")?.scrollTo({top:0})}function h(e){return(...t)=>{e(...t),b()}}function R(e,t="ÐÑкÑÑÑÑ Ð¿Ð¾Ð´ÑобноÑÑи"){return{onClick:e,onKeyDown:s=>{s.target===s.currentTarget&&(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),e())},tabIndex:0,title:t}}function S({page:e,totalPages:t,loading:s,onChange:r}){if(t<=1)return null;const a=h(r);return n.jsxs("div",{className:"flex items-center justify-center gap-3 mt-4",children:[n.jsxs("button",{onClick:()=>a(Math.max(0,e-1)),disabled:e===0||s,className:"flex items-center gap-1 px-3 py-1.5 text-sm border border-slate-300 rounded disabled:opacity-40 hover:bg-slate-50",children:[n.jsx(x,{size:14})," Ðазад"]}),n.jsxs("span",{className:"text-sm text-slate-500",children:["СÑÑ. ",e+1," из ",t]}),n.jsxs("button",{onClick:()=>a(Math.min(t-1,e+1)),disabled:e+1>=t||s,className:"flex items-center gap-1 px-3 py-1.5 text-sm border border-slate-300 rounded disabled:opacity-40 hover:bg-slate-50",children:["ÐпеÑÑд ",n.jsx(m,{size:14})]})]})}export{E as A,A as F,S as P,g as S,R as a,p as b,w as d,N as f,y as s,h as w};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.