PageSourceSearch

https://distant-nik.psychologos.ru/UserTrainings.page.g598fq9y.js

js psychologos.ru collected 2026-10-02 05:00:08 UTC 1,743 bytes, 1 lines download raw bytes

1import{aY as c,bS as d,bU as u,eT as h,eQ as g,eS as m,eY as p,dI as y,f1 as T,cs as l,cp as e,L,T as b,ax as f,R as x,dm as S,cL as U,cd as C,bQ as P}from"./index.hjxr7fye.js";import{C as v}from"./CompletedMaterialsLayout.lzc2n619.js";async function I(s){return c.get(d.users(`/${s}/trainings`)).then(u)}function N(s){return h({queryKey:["user_trainings",s],queryFn:()=>s?I(s):void 0})}function Q(){const{title:s}=g("Упражнения"),{id:t}=m(),r=p(y),n=r==null?void 0:r.id,o=t?parseInt(t):n,{data:a,isLoading:i}=N(o);return{title:s,trainings:a,trainingsLoading:i,currentUser:r}}const k=()=>{const s=T(),t=D(s),{title:r,trainings:n,trainingsLoading:o}=Q();return l(v,{className:t.UserTrainingsPage,children:[e(L,{align:"left",className:t.heading,children:e("h1",{children:r})}),e("div",{css:t.sprints,children:o?e(b,{delay:500}):n!=null&&n.length?e(f,{responsive:!0,className:t.table,children:l("table",{children:[e("thead",{children:l("tr",{children:[e("th",{children:"Упражнение"}),e("th",{children:"Статус"})]})}),e("tbody",{children:n==null?void 0:n.map(a=>{var i;return l("tr",{children:[e("td",{children:e(x,{to:S.content.url({slug:a.slug,pluralContentTypeName:(i=a.content_type)!=null&&i.name?U(a.content_type.name):"trainings"}),children:a.title})}),e("td",{children:C(a.status).toLowerCase()})]},a.id)})})]})}):e("div",{css:t.empty,children:"Нет данных"})})]})},D=s=>({UserTrainingsPage:{},heading:{marginBottom:20},table:{"& table td a.UserSprintPageActionLink":{textDecoration:"underline","&:hover":{textDecoration:"none"}}},rosenTests:{},createdColumn:{width:170},idleStatus:{display:"flex",alignItems:"center",gap:10},paidBadge:{fontSize:"10px",minHeight:0},empty:{...P(s)}});export{k as default};

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.