PageSourceSearch

https://clipo.ai/assets/CourseShareViewerCommentsPage-dwuR_MAT.js

js clipo.ai collected 2026-10-05 11:56:28 UTC 4,303 bytes, 2 lines download raw bytes

1import{j as e,an as j,a as f,B as d,T as c,P as i,a9 as p,bp as y,gY as _,b2 as S,gy as u,el as C,r as k,X as h,n as g,gK as w,aO as R,hg as L,f7 as I,f8 as P,hn as z,Q as D}from"./index-aREvobyF.js";import{C as v}from"./CourseShareViewerLayout-DWTwPCDw.js";import"./useHideTeacherFooter-CU0yARvY.js";import"./useTemporaryRecoilState-CiB7Jgny.js";try{let s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new s.Error().stack;n&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[n]="4c5f6de5-e6e9-439d-89f9-4bfd6ea3b885",s._sentryDebugIdIdentifier="sentry-dbid-4c5f6de5-e6e9-439d-89f9-4bfd6ea3b885")}catch{}const O={"수행평가 설계":L,"채점 결과":R,"세특 기록":w},m=({title:s,count:n,children:a})=>{const[r,t]=k.useState(!0),l=O[s];return e.jsxs(h,{align:"stretch",gap:4,bg:"bg.panel",p:5,borderRadius:"xl",boxShadow:"sm",children:[e.jsxs(g,{variant:"plain",justifyContent:"space-between",p:0,h:"2.25rem",borderWidth:0,color:"fg","aria-expanded":r,onClick:()=>t(!r),children:[e.jsxs(i,{gap:3,children:[e.jsx(d,{bg:"blue.subtle",color:"blue.fg",boxSize:"2.25rem",display:"grid",placeItems:"center",borderRadius:"sm",children:e.jsx(l,{size:18})}),e.jsxs(c,{textStyle:"t4-semibold",children:[s,n!==void 0&&` (${n})`]})]}),e.jsx(d,{boxSize:"2.25rem",display:"grid",placeItems:"center",borderRadius:"full",color:"fg.muted",children:r?e.jsx(I,{size:20}):e.jsx(P,{size:20})})]}),r&&e.jsx(h,{align:"stretch",gap:3,children:a})]})},x=({title:s,detail:n,comments:a,onOpen:r,disabled:t})=>e.jsxs(i,{borderWidth:"1px",borderColor:"border",borderRadius:"lg",px:4,py:3,gap:4,children:[e.jsxs(d,{minW:0,flex:1,children:[e.jsx(c,{lineClamp:2,textStyle:"b1-semibold-compact",children:s}),e.jsx(c,{mt:1,textStyle:"b3-regular-compact",color:"fg.muted",children:n})]}),e.jsxs(p,{variant:"subtle",colorPalette:"gray",borderRadius:"full",fontSize:"0.75rem",h:"1.25rem",children:[e.jsx(z,{})," 댓글 ",a]}),e.jsxs(g,{size:"sm",variant:"surface",colorPalette:"blue",px:3,gap:1,borderRadius:"sm",disabled:t,onClick:r,children:["보러가기 ",e.jsx(D,{})]})]}),E=({viewer:s})=>{const{courseKey:n=""}=j(),a=f(),{course:r,cards:t,groups:l}=s;return e.jsxs(e.Fragment,{children:[e.jsxs(d,{bg:"blue.500",color:"blue.contrast",borderRadius:"xl",p:7,minH:"8.875rem",display:"flex",flexDirection:"column",justifyContent:"center",children:[e.jsxs(c,{textStyle:"b2-medium-compact",children:[r.year,"학년도 ",r.semester,"학기 | ",r.subject_title,r.is_group_mode?"(이동수업반)":""," |"," ",r.grade?`${r.grade}학년`:"학년 구분 없음"]}),e.jsxs(i,{mt:6,gap:3,flexWrap:"wrap",children:[e.jsx(c,{as:"h1",textStyle:"g8",children:r.name}),e.jsxs(p,{circle:!0,variant:"outline",colorPalette:"blue",color:"blue.contrast",size:"md",children:[e.jsx(y,{})," 읽기 전용"]}),e.jsxs(i,{ml:"auto",gap:1,children:[e.jsx(_,{}),e.jsxs(c,{textStyle:"b2-medium-compact",children:["참여 학생 ",r.member_count,"명"]})]})]})]}),s.access.project&&e.jsxs(m,{title:"수행평가 설계",count:t.projects.length,children:[t.projects.length===0&&e.jsx(c,{color:"fg.muted",children:"검토할 수행평가 설계가 없어요."}),t.projects.map(o=>e.jsx(x,{title:o.name,detail:`${S(o.updated_at,C)} 수정`,comments:o.comment_count,onOpen:()=>a(u.project(n,o.project_key))},o.project_key))]}),s.access.scoring&&e.jsxs(m,{title:"채점 결과",count:t.scorings.length,children:[t.scorings.length===0&&e.jsx(c,{color:"fg.muted",children:"검토할 채점 결과가 없어요."}),t.scorings.map(o=>e.jsx(x,{title:o.title,detail:`학급 ${o.classroom_count}개`,comments:o.comment_count,disabled:!l[0],onOpen:()=>l[0]&&a(u.scoringGroup(n,o.homework_key,l[0].key))},o.homework_key))]}),s.access.course_record&&e.jsxs(m,{title:"세특 기록",children:[t.course_records.length===0&&e.jsx(c,{color:"fg.muted",children:"검토할 세특 기록이 없어요."}),t.course_records.length>0&&e.jsx(x,{title:"세부능력 및 특기사항 기록",detail:`학급 ${t.course_records.length}개`,comments:t.course_records.reduce((o,b)=>o+b.comment_count,0),onOpen:()=>a(u.records(n,t.course_records[0].group_key))})]})]})},V=()=>e.jsx(v,{scope:"COURSE",children:s=>e.jsx(E,{viewer:s})});export{V as default};
2//# sourceMappingURL=CourseShareViewerCommentsPage-dwuR_MAT.js.map

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.