1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6459],{31065:function(e,n,s){s.d(n,{X:function(){return a}});var t=s(557437),o=s(6520),i=s(902265),l=s(697784),r=s(993499);let a=e=>{let{children:n}=e,[s,a]=(0,i.useState)(!1),{t:u}=(0,l.G)("translation");return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{onClick:()=>a(!0),children:n||(0,t.jsx)(o.Z,{})}),(0,t.jsx)(r.VA,{width:"90%",height:"90%",isFullScreen:!0,title:u("viewContent"),destroyOnClose:!0,visible:s,closable:!0,footer:null,onCancel:()=>a(!1)})]})}},62322:function(e,n,s){s.d(n,{l:function(){return h}});var t=s(557437);s(902265);var o=s(621333),i=s(673002),l=s(697784),r=s(733857),a=s(208869),u=s(886748),m=s(425628),d=s(198049),c=s(31065);let h=()=>{var e,n,s,h,p,v;let{t:x}=(0,l.G)("translation"),b=(0,m.b_)();return null==b||null===(n=b.exerciseSheet)||void 0===n||null===(e=n.sheets)||void 0===e||e.forEach(e=>{e.metadata={url:null==e?void 0:e.url}}),(0,t.jsxs)("div",{children:[(0,t.jsx)(r.O,{label:x("homework_information",{vn:"Th\xf4ng tin vá» phiếu b\xe0i táºp",en:"Hone work information"}),titleTooltip:x("homework_information",{vn:"Th\xf4ng tin vá» phiếu b\xe0i táºp",en:"Hone work information"}),firstIcon:(0,t.jsx)(o.Z,{})}),(0,t.jsx)(a.t,{className:"my-10",leftClassName:"w-320",nextToLeftClassName:"w-320",leftChildren:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.J,{label:x("exercise_name",{vn:"T\xean phiếu b\xe0i t\xe2p",en:"Exercise name"}),value:null==b?void 0:null===(s=b.exerciseSheet)||void 0===s?void 0:s.name}),(0,t.jsx)(u.J,{label:x("subject_name",{vn:"M\xf4n há»c",en:"Subject"}),value:null==b?void 0:null===(h=b.subjects)||void 0===h?void 0:h.map(e=>e.name).join(";")})]}),nextToLeftChildren:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.J,{label:x("submissionTime",{vn:"Hạn ná»p",en:"Submission Time"}),value:d.M.fullDatetimeConverter(null==b?void 0:b.submissionTime)}),(0,t.jsx)(u.J,{value:(0,t.jsx)("span",{children:(0,t.jsx)(c.X,{document:{curriculums:null==b?void 0:null===(p=b.exerciseSheet)||void 0===p?void 0:p.sheets},namespace:"curriculums",children:(0,t.jsx)(i.ZP,{shape:"round",type:"primary",size:"small",className:"flex items-center",children:x("Preview exercise",{vn:"Xem phiếu b\xe0i táºp"})})})})})]}),rightChildren:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(u.J,{label:x("notes",{vn:"Ch\xfa th\xedch",en:"Note"}),value:null==b?void 0:null===(v=b.exerciseSheet)||void 0===v?void 0:v.notes})})})]})}},106459:function(e,n,s){s.r(n),s.d(n,{default:function(){return et}});var t=s(557437),o=s(561403),i=s(502772),l=s(889148),r=s(513065),a=s(896350),u=s(902265),m=s(516726),d=s(628297),c=s(625632),h=s(614018),p=s(697784),v=s(555833),x=s(731335);let b=e=>{var n;let{t:s}=(0,p.G)("translation");return[(0,v.VX)({Component:d.default,label:s("name",{en:"Name",vn:"T\xean"}),colProps:{span:24},name:"name",rules:[{required:!0,message:s("name_require",{vn:"Vui l\xf2ng nháºp t\xean phiếu",en:"Name is required"})}]}),(0,v.VX)({Component:x.z,label:s("Subject",{vn:"M\xf4n há»c"}),name:"subjectIds",colProps:{span:16},rowProps:{gutter:{md:24}},rules:[{required:!0,message:s("subject_require",{vn:"Vui l\xf2ng nháºp t\xean m\xf4n há»c",en:"Subject is required"})}],componentProps:{placeholder:s("Subject",{vn:"M\xf4n há»c"}),showSearch:!0,allowClear:!0,mode:"multiple",optionFilterProp:"children",endpoint:"homerooms/".concat(null==e?void 0:null===(n=e.hiddenValues)||void 0===n?void 0:n.homeroomId,"/subjects"),optionsConverter:e=>(e.label="".concat(null==e?void 0:e.name," - ").concat(e.code),e)}}),(0,v.VX)({Component:c.HDatePicker,colProps:{span:8},label:s("submission_time",{en:"Submission time",vn:"Thá»i gian ná»p"}),name:"submissionTime",rules:[{required:!0,message:s("submission_time_require",{vn:"Vui l\xf2ng chá»n thá»i gian ná»p",en:"Submission time is required"})}],componentProps:{showTime:{format:"HH:mm"},format:"YYYY-MM-DD HH:mm:ss"}}),(0,v.VX)({Component:d.default.TextArea,label:s("Notes",{vn:"Ghi ch\xfa cho b\xe0i táºp"}),colProps:{span:24},name:"notes",componentProps:{rows:3,placeholder:"Enter the notes"}}),(0,v.VX)({Component:h.Qy,name:"sheets",label:s("sheets",{en:"Sheets",vn:"Phiếu b\xe0i táºp"}),colProps:{span:24},componentProps:{accept:".doc,.docx,.xlsx,.xls,image/*,.doc, .docx,.ppt, .pptx,.txt,.pdf,a
1pplication/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document"}})]},j=e=>{let{homeroom:n}=e;return(0,t.jsx)(m.V,{schema:b,hiddenValues:{homeroomId:null==n?void 0:n.id}})};var f=s(903810),C=s(198049),g=s(310365);let w="assigned",P={active:"lime",[w]:"green"},I=()=>{let{t:e}=(0,p.G)("translation");return[g.P4.createTableColumnConfig({title:e("name",{vn:"T\xean phiếu",en:"Name"}),dataIndex:"name"}),g.P4.createTableColumnConfig({title:e("Subjects",{vn:"M\xf4n há»c"}),dataIndex:"subjects",render:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(e=>e.name).join(";")}}),g.P4.createTableColumnConfig({title:e("Status",{vn:"Trạng th\xe1i"}),dataIndex:"status",render:n=>(0,t.jsx)(f.Z,{color:P[n],children:e(n)})}),g.P4.createTableColumnConfig({title:e("submission_time",{vn:"Hạn ná»p",en:"Submission Time"}),dataIndex:"submissionTime",render:e=>C.M.fullDatetimeConverter(e)}),g.P4.createTableColumnConfig({title:e("Notes",{vn:"Ghi ch\xfa"}),dataIndex:"notes"}),g.P4.createEditAndDeleteControlColumn()]};var N=s(100867),k=s(673002),T=s(453918),S=s(190193),V=s(425628),H=s(553898);let _=()=>{let{t:e}=(0,T.G)("translation"),n=(0,V.b_)(),s=(0,H.J2)(),o=(0,V.ZG)(),i=()=>{s(),null==o||o.submit()},l=async()=>{await S.FormUtils.submitForm({status:w,homeroomId:null==n?void 0:n.homeroomId},{nodeName:"exercise-sheets/assign-exercise/".concat(null==n?void 0:n.id),method:"put",onGotSuccess:i})};return(0,t.jsx)(N.default,{placement:"topRight",title:e("Do you want to deliver to students?",{vn:"Bạn c\xf3 muá»n giao b\xe0i táºp Äến há»c sinh"}),onConfirm:l,okText:e("Yes",{vn:"C\xf3"}),cancelText:e("No",{vn:"Kh\xf4ng"}),children:(0,t.jsx)(k.ZP,{type:"primary",danger:!0,children:e("Assign",{vn:"Giao b\xe0i táºp"})})})};var y=s(678464),F=e=>{let{homeroom:n,documentIdName:s}=e;return(0,t.jsxs)(i.HFeature,{featureId:"exercise-sheets",nodeName:"exercise-sheets",documentIdName:s||"exerciseSheetId",useQueryParams:!0,children:[(0,t.jsx)(r.HSearchFormWithCreateButton,{hiddenValues:{filter:{where:{homeroomId:null==n?void 0:n.id}}},resetIfSuccess:!1}),(0,t.jsx)(l.Fj,{width:650,footer:(0,t.jsx)(y.p,{hideSubmitAndContinueButton:!0,hiddenCloseButton:!0,extraFooterControls:(0,t.jsx)(_,{})}),children:(0,t.jsx)(j,{homeroom:n})}),(0,t.jsx)(i.HTable,{schema:I})]})},X=s(528290),G=s(144583),E=s(305411),A=s(476208),D=s(96627),Z=s(792626);let J=e=>{let{homeroom:n}=e,s={...S.FormUtils.createSearchHiddenValues({homeroomId:null==n?void 0:n.id,type:G.Wg.learner}),fields:["user"]};return(0,t.jsxs)(i.HFeature,{featureId:"userInHomeroom",nodeName:"users",documentIdName:"homeroomUserId",useQueryParams:!1,children:[(0,t.jsx)(r.default,{withRelations:[{relation:"user"}],resetIfSuccess:!1,endpoint:E.H.endpointWithApiDomain("/".concat(Z.u,"s")),initialValues:{searchingRule:A.G3.MULTIPLE},hiddenValues:s}),(0,t.jsx)(D.i,{homeroom:n})]})};var M=s(886748);let q=()=>{let{t:e}=(0,p.G)("translation");return[g.P4.createTableColumnConfig({title:e("name",{vn:"T\xean phiếu",en:"Name"}),dataIndex:"name"}),g.P4.createTableColumnConfig({title:e("Subjects",{vn:"M\xf4n há»c"}),dataIndex:"subjects",render:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(e=>e.name).join(";")}}),g.P4.createTableColumnConfig({title:e("status"),dataIndex:"status",render:(n,s)=>(0,t.jsxs)("div",{children:[(0,t.jsx)(M.J,{label:e("total_student_homework",{vn:"Tá»ng sá» hs",en:"Total homework"}),value:s.totalHomework||0,labelClassName:"m-b-0i"}),(0,t.jsx)(M.J,{label:e("total_student_homework_submit",{vn:"Tá»ng sá» hs Ä\xe3 ná»p",en:"Total homework submit"}),value:(null==s?void 0:s.totalHomeworkSubmitted)||0,labelClassName:"m-b-0i"})]})}),g.P4.createTableColumnConfig({title:e("Notes",{vn:"Ghi ch\xfa"}),dataIndex:"notes"}),g.P4.createEditAndDeleteControlColumn()]};var W=s(568575),B=s(520577),L=s(31065);let Q=()=>{let{t:e}=(0,p.G)("translation"),n=(0,V.b_)(),s=null==n?void 0:n.homeworks,t=[];return null==s||s.forEach((n,s)=>{var o,i;t.push((0,v.VX)({Component:z,colProps:{span:4},rowProps:{gutter:{md:24}},componentProps:{subjectName:null==n?void 0:null===(o=n.user)||void 0===o?void 0:o.fullName}}),(0,v.VX)({Component:d.default,colProps:{span:1},name:["homeworks",s,"userId"],initialValue:null==n?void 0:n.userId,hidden:!0})),(null==n?void 0:n.submissions)&&(null==n||null===(i=n.subjects)||void 0===i||i.forEac
1h((o,i)=>{t.push((0,v.VX)({Component:O,colProps:{span:5},componentProps:{submissions:null==n?void 0:n.submissions,subjectId:null==o?void 0:o.id,subjectName:null==o?void 0:o.name}}),(0,v.VX)({Component:B.Z,name:["homeworks",s,"submissions",i,"score"],colProps:{span:6},label:e("score",{vn:"Äiá»m"}),componentProps:{style:{width:"100%"},max:10,min:0,placeholder:e("enter_score",{en:"Enter score",vn:"Nháºp sá» Äiá»m"})}}),(0,v.VX)({Component:d.default,name:["homeworks",s,"submissions",i,"subjectName"],colProps:{span:1},initialValue:null==o?void 0:o.name,hidden:!0}),(0,v.VX)({Component:d.default,name:["homeworks",s,"submissions",i,"subjectId"],colProps:{span:1},initialValue:null==o?void 0:o.id,hidden:!0}),(0,v.VX)({Component:h.Qy,name:["homeworks",s,"submissions",i,"files"],colProps:{span:1},hidden:!0}),(0,v.VX)({Component:h.Qy,name:["homeworks",s,"submissions",i,"createdAt"],colProps:{span:1},hidden:!0}))}))}),t},z=e=>{let{subjectName:n}=e;return(0,t.jsx)("div",{children:(0,t.jsx)("b",{children:n})})},O=e=>{let{submissions:n,subjectId:s,subjectName:o}=e,i=null==n?void 0:n.filter(e=>(null==e?void 0:e.subjectId)===s),l=[];null==i||i.forEach(e=>{l.push(null==e?void 0:e.files)});let r=[...l.flat()].map(e=>(e.metadata={url:null==e?void 0:e.url},e)),{t:a}=(0,p.G)("translation");return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"m-t-10 m-b-10",children:(0,t.jsx)("b",{children:o})}),(0,t.jsx)(L.X,{document:{curriculums:r},namespace:"curriculums",children:(0,t.jsx)(k.ZP,{shape:"round",type:"primary",size:"small",className:"flex items-center",children:a("Preview",{vn:"Xem b\xe0i ná»p"})})})]})};var U=s(62322),Y=s(708931);let R=()=>{let e=(0,V.b_)(),n=(0,W.I0)(),s=(0,H.JJ)(),o=E.H.endpointWithApiDomain("/homeworks/mark-homework/".concat(e.homeroomId)),i=E.H.endpointWithApiDomain("/homeworks/subject-grading/".concat(e.homeroomId));return(0,u.useEffect)(()=>{n((0,Y.t9)({method:"get",endpoint:o,callback:e=>{s({homeworks:null==e?void 0:e.data})}}))},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(U.l,{}),(0,t.jsx)("p",{className:"m-t-20 m-b-20",children:"Chấm Äiá»m"}),(0,t.jsx)(m.V,{endpoint:i,schema:Q})]})};var K=e=>{let{homeroom:n}=e;return(0,t.jsxs)(i.HFeature,{featureId:"mark-homework",nodeName:"exercise-sheets",useQueryParams:!0,children:[(0,t.jsx)(r.default,{hiddenValues:{filter:{where:{homeroomId:null==n?void 0:n.id}}},resetIfSuccess:!1}),(0,t.jsx)(l.Fj,{hideSubmitAndContinueButton:!0,isFullScreen:!0,children:(0,t.jsx)(R,{})}),(0,t.jsx)(i.HTable,{schema:q})]})},$=s(466536);let{TabPane:ee}=a.default,en=()=>{let{t:e}=(0,p.G)("translation"),n=(0,V.b_)();return(0,t.jsxs)(X.O,{children:[(0,t.jsx)($.z,{}),(0,t.jsxs)(a.default,{tabPosition:"left",children:[(0,t.jsx)(ee,{tab:e("student_user",{vn:"Há»c vi\xean trong lá»p",en:"Learners"}),children:(0,t.jsx)(J,{homeroom:n})},"student_user"),(0,t.jsx)(ee,{tab:e("exerciseSheet",{vn:"Phiếu b\xe0i táºp",en:"Exercise sheet"}),children:(0,t.jsx)(F,{homeroom:n,documentIdName:"exerciseSheetId"})},"exerciseSheet"),(0,t.jsx)(ee,{tab:e("homework",{vn:"Phiếu b\xe0i ná»p",en:"Homework"}),children:(0,t.jsx)(K,{homeroom:n})},"homework")]})]})};var es=s(665314),et=()=>{let e=(0,o.x)(),n=null==e?void 0:e.rootOrgId,s={...n?{toppedOrgId:n}:{}};return(0,t.jsx)("div",{className:"ui-course-viewer",children:(0,t.jsxs)(i.HFeature,{className:"offline-course",documentIdName:"homeroomId",featureId:"homeroomsByUser:".concat(e.id),nodeName:"homerooms",children:[(0,t.jsx)(r.default,{endpoint:E.H.endpointWithApiDomain("/homerooms/user/".concat(e.id)),hiddenValues:s}),(0,t.jsx)(l.X$,{className:"course-drawer",children:(0,t.jsx)(en,{})}),(0,t.jsx)(i.HList,{className:"ui-product-list mt-20",grid:{gutter:16,column:4},size:"small",renderItem:e=>(0,t.jsx)(es.h,{course:e})})]})})}},665314:function(e,n,s){s.d(n,{h:function(){return h}});var t=s(557437),o=s(120437);s(902265);var i=s(110321),l=s(35631),r=s(903810),a=s(603112),u=s(305411),m=s(492384),d=s(50557);s(453918),s(425628),s(733857),s(526136);let{Paragraph:c}=i.default,h=e=>{var n,s,i;let{course:h}=e,p=(0,d.k4)(h,{}),v=(null==h?void 0:null===(n=h.avatar)||void 0===n?void 0:n.url.startsWith("http"))?"":u.H.endpointWithApiDomain("");return(0,t.jsxs)(l.Z.Item,{className:"m-t-10",onClick:p,children:[(0,t.jsxs)("div",{className:"mt-15 uppercase flex",children:[(0,t.jsxs)("div",{className:"flex-grow",children:[(0,t.jsx)("b",{className:"m-r-10",children:(0,a.e)(null==h?void 0:h.name)}),(0,t.jsx)(r.Z,{color:"cyan",children:(0,t.jsx)(c,{copyable:!0,className:"m-b-0",children:null==h?void 0:h.code})})]}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Z,{})})]}),(0,t.jsx)("div",{className:"flex-grow flex items-center",children:(null==h?void 0:null===(s=h.avatar)||void 0===s?void 0:s.url)?(0,t.jsx)("img",{src:"".concat(v).concat(null==h?void 0:null===(i=h.avatar)||void 0===i?void 0:i.url)}):(0,t.jsx)(m.S3,{height:"100%"})})]})}}}]);
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.