1"use strict";(self.webpackChunknew_portal_js=self.webpackChunknew_portal_js||[]).push([[4608],{57438:(n,e,a)=>{a.d(e,{A:()=>l});a(27565);var t=a(55464);const c="Loader_backdrop__usPed",i="Loader_loadingSpinner__KKB4y";var o=a(27929);const l=n=>(0,o.jsx)("div",{children:n.loading&&(0,o.jsx)("div",{className:c,children:(0,o.jsx)(t.A,{className:i,size:"large"})})})},72569:(n,e,a)=>{a.d(e,{A:()=>i});a(27565);const t="PageTitle_pageTitle__Z2Hrv";var c=a(27929);const i=n=>{let{title:e}=n;return(0,c.jsx)("div",{className:t,children:e})}},84608:(n,e,a)=>{a.r(e),a.d(e,{default:()=>an});var t=a(89379),c=a(27565),i=a(80345),o=a(23163),l=a.n(o),r=a(58168),d=a(64467),s=a(5544),u=a(80045),h=a(47496),g=a(72887),p=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],m=c.forwardRef(function(n,e){var a,t=n.prefixCls,i=void 0===t?"rc-switch":t,o=n.className,m=n.checked,b=n.defaultChecked,S=n.disabled,k=n.loadingIcon,v=n.checkedChildren,I=n.unCheckedChildren,w=n.onClick,f=n.onChange,C=n.onKeyDown,x=(0,u.A)(n,p),_=(0,h.A)(!1,{value:m,defaultValue:b}),y=(0,s.A)(_,2),A=y[0],j=y[1];function E(n,e){var a=A;return S||(j(a=n),null===f||void 0===f||f(a,e)),a}var M=l()(i,o,(a={},(0,d.A)(a,"".concat(i,"-checked"),A),(0,d.A)(a,"".concat(i,"-disabled"),S),a));return c.createElement("button",(0,r.A)({},x,{type:"button",role:"switch","aria-checked":A,disabled:S,className:M,ref:e,onKeyDown:function(n){n.which===g.A.LEFT?E(!1,n):n.which===g.A.RIGHT&&E(!0,n),null===C||void 0===C||C(n)},onClick:function(n){var e=E(!A,n);null===w||void 0===w||w(e,n)}}),k,c.createElement("span",{className:"".concat(i,"-inner")},c.createElement("span",{className:"".concat(i,"-inner-checked")},v),c.createElement("span",{className:"".concat(i,"-inner-unchecked")},I)))});m.displayName="Switch";const b=m;var S=a(81781),k=a(3718),v=a(30718),I=a(404),w=a(40627),f=a(69487),C=a(57988),x=a(59389),_=a(52572);const y=n=>{const{componentCls:e,trackHeightSM:a,trackPadding:t,trackMinWidthSM:c,innerMinMarginSM:i,innerMaxMarginSM:o,handleSizeSM:l,calc:r}=n,d="".concat(e,"-inner"),s=(0,w.unit)(r(l).add(r(t).mul(2)).equal()),u=(0,w.unit)(r(o).mul(2).equal());return{[e]:{["&".concat(e,"-small")]:{minWidth:c,height:a,lineHeight:(0,w.unit)(a),["".concat(e,"-inner")]:{paddingInlineStart:o,paddingInlineEnd:i,["".concat(d,"-checked, ").concat(d,"-unchecked")]:{minHeight:a},["".concat(d,"-checked")]:{marginInlineStart:"calc(-100% + ".concat(s," - ").concat(u,")"),marginInlineEnd:"calc(100% - ".concat(s," + ").concat(u,")")},["".concat(d,"-unchecked")]:{marginTop:r(a).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},["".concat(e,"-handle")]:{width:l,height:l},["".concat(e,"-loading-icon")]:{top:r(r(l).sub(n.switchLoadingIconSize)).div(2).equal(),fontSize:n.switchLoadingIconSize},["&".concat(e,"-checked")]:{["".concat(e,"-inner")]:{paddingInlineStart:i,paddingInlineEnd:o,["".concat(d,"-checked")]:{marginInlineStart:0,marginInlineEnd:0},["".concat(d,"-unchecked")]:{marginInlineStart:"calc(100% - ".concat(s," + ").concat(u,")"),marginInlineEnd:"calc(-100% + ".concat(s," - ").concat(u,")")}},["".concat(e,"-handle")]:{insetInlineStart:"calc(100% - ".concat((0,w.unit)(r(l).add(t).equal()),")")}},["&:not(".concat(e,"-disabled):active")]:{["&:not(".concat(e,"-checked) ").concat(d)]:{["".concat(d,"-unchecked")]:{marginInlineStart:r(n.marginXXS).div(2).equal(),marginInlineEnd:r(n.marginXXS).mul(-1).div(2).equal()}},["&".concat(e,"-checked ").concat(d)]:{["".concat(d,"-checked")]:{marginInlineStart:r(n.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:r(n.marginXXS).div(2).equal()}}}}}}},A=n=>{const{componentCls:e,handleSize:a,calc:t}=n;return{[e]:{["".concat(e,"-loading-icon").concat(n.iconCls)]:{position:"relative",top:t(t(a).sub(n.fontSize)).div(2).equal(),color:n.switchLoadingIconColor,verticalAlign:"top"},["&".concat(e,"-checked ").concat(e,"-loading-icon")]:{color:n.switchColor}}}},j=n=>{const{componentCls:e,trackPadding:a,handleBg:t,handleShadow:c,handleSize:i,calc:o}=n,l="".concat(e,"-handle");return{[e]:{[l]:{position:"absolute",top:a,insetInlineStart:a,width:i,height:i,transition:"all ".concat(n.switchDuration," ease-in-out"),"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:t,borderRadius:o(i).div(2).equal(),boxSh
1adow:c,transition:"all ".concat(n.switchDuration," ease-in-out"),content:'""'}},["&".concat(e,"-checked ").concat(l)]:{insetInlineStart:"calc(100% - ".concat((0,w.unit)(o(i).add(a).equal()),")")},["&:not(".concat(e,"-disabled):active")]:{["".concat(l,"::before")]:{insetInlineEnd:n.switchHandleActiveInset,insetInlineStart:0},["&".concat(e,"-checked ").concat(l,"::before")]:{insetInlineEnd:0,insetInlineStart:n.switchHandleActiveInset}}}}},E=n=>{const{componentCls:e,trackHeight:a,trackPadding:t,innerMinMargin:c,innerMaxMargin:i,handleSize:o,calc:l}=n,r="".concat(e,"-inner"),d=(0,w.unit)(l(o).add(l(t).mul(2)).equal()),s=(0,w.unit)(l(i).mul(2).equal());return{[e]:{[r]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:c,transition:"padding-inline-start ".concat(n.switchDuration," ease-in-out, padding-inline-end ").concat(n.switchDuration," ease-in-out"),["".concat(r,"-checked, ").concat(r,"-unchecked")]:{display:"block",color:n.colorTextLightSolid,fontSize:n.fontSizeSM,transition:"margin-inline-start ".concat(n.switchDuration," ease-in-out, margin-inline-end ").concat(n.switchDuration," ease-in-out"),pointerEvents:"none",minHeight:a},["".concat(r,"-checked")]:{marginInlineStart:"calc(-100% + ".concat(d," - ").concat(s,")"),marginInlineEnd:"calc(100% - ".concat(d," + ").concat(s,")")},["".concat(r,"-unchecked")]:{marginTop:l(a).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},["&".concat(e,"-checked ").concat(r)]:{paddingInlineStart:c,paddingInlineEnd:i,["".concat(r,"-checked")]:{marginInlineStart:0,marginInlineEnd:0},["".concat(r,"-unchecked")]:{marginInlineStart:"calc(100% - ".concat(d," + ").concat(s,")"),marginInlineEnd:"calc(-100% + ".concat(d," - ").concat(s,")")}},["&:not(".concat(e,"-disabled):active")]:{["&:not(".concat(e,"-checked) ").concat(r)]:{["".concat(r,"-unchecked")]:{marginInlineStart:l(t).mul(2).equal(),marginInlineEnd:l(t).mul(-1).mul(2).equal()}},["&".concat(e,"-checked ").concat(r)]:{["".concat(r,"-checked")]:{marginInlineStart:l(t).mul(-1).mul(2).equal(),marginInlineEnd:l(t).mul(2).equal()}}}}}},M=n=>{const{componentCls:e,trackHeight:a,trackMinWidth:t}=n;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,C.dF)(n)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:t,height:a,lineHeight:(0,w.unit)(a),verticalAlign:"middle",background:n.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:"all ".concat(n.motionDurationMid),userSelect:"none",["&:hover:not(".concat(e,"-disabled)")]:{background:n.colorTextTertiary}}),(0,C.K8)(n)),{["&".concat(e,"-checked")]:{background:n.switchColor,["&:hover:not(".concat(e,"-disabled)")]:{background:n.colorPrimaryHover}},["&".concat(e,"-loading, &").concat(e,"-disabled")]:{cursor:"not-allowed",opacity:n.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},["&".concat(e,"-rtl")]:{direction:"rtl"}})}},N=(0,x.OF)("Switch",n=>{const e=(0,_.mergeToken)(n,{switchDuration:n.motionDurationMid,switchColor:n.colorPrimary,switchDisabledOpacity:n.opacityLoading,switchLoadingIconSize:n.calc(n.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:"rgba(0, 0, 0, ".concat(n.opacityLoading,")"),switchHandleActiveInset:"-30%"});return[M(e),E(e),j(e),A(e),y(e)]},n=>{const{fontSize:e,lineHeight:a,controlHeight:t,colorWhite:c}=n,i=e*a,o=t/2,l=i-4,r=o-4;return{trackHeight:i,trackHeightSM:o,trackMinWidth:2*l+8,trackMinWidthSM:2*r+4,trackPadding:2,handleBg:c,handleSize:l,handleSizeSM:r,handleShadow:"0 2px 4px 0 ".concat(new f.FastColor("#00230b").setA(.2).toRgbString()),innerMinMargin:l/2,innerMaxMargin:l+2+4,innerMinMarginSM:r/2,innerMaxMarginSM:r+2+4}});var H=function(n,e){var a={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(a[t]=n[t]);if(null!=n&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(t=Object.getOwnPropertySymbols(n);c<t.length;c++)e.indexOf(t[c])<0&&Object.prototype.propertyIsEnumerable.call(n,t[c])&&(a[t[c]]=n[t[c]])}return a};const z=c.forwardRef((n,e)=>{const{prefixCls:a,size:t,disabled:o,loading:r,className:d,rootClassName:s,style:u,checked:g,value:p,defaultChecked:m,defaultValue:w,onChange:f}=n,C=H(n,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[x,_]=(0,h.A)(!1,{value:null!==g&&void 0!==g?g:p,defaultValue:null!==m&&void 0!==m?m:w}),{getPrefixCls:y,direction:A,switch:j}=c.useContext(k.QO),E=c.useContext(v.A),M=(null!==o&&void 0!==o?o:E)||r,z=y("switch",a),O=c.createElement("div",{className:"".concat(z,"-handle")},r&&c.createElement(i.A,{className:"".concat(z,"-loading-icon")})),[q,D,T]=N(z),L=(0,I.A)(t),P=l()(null===j||void 0===j?void 0:j.className,{["".concat(z,"-small")]:"small"===L,["".concat(z,"-loading")]:r,["".concat(z,"-rtl")]:"rtl"===A},d,s,D,T),W=Object.assign(Object.assign({},null===j||void 0===j?void 0:j.style),u);return q(c.createElement(S.A,{component:"Switch"},c.createElement(b,Object.assign({},C,{checked:x,onChange:function(){for(var n=arguments.length,e=new Array(n),a=0;a<n;a++)e[a]=arguments[a];_(e[0]),null===f||void 0===f||f.apply(void 0,e)},prefixCls:z,className:P,style:W,disabled:M,ref:e,loadingIcon:O}))))}),O=z;O.__ANT_SWITCH=!0;const q=O;var D=a(32565),T=a(37953),L=a(52580),P=a(74702),W=a(11030);const R="SubgroupSeparator_subgroup-separator__tGplz",X="SubgroupSeparator_subgroup-separator__student--no-subgroup__4boNq",K="SubgroupSeparator_subgroup-separator__table__TOEeQ",F="SubgroupSeparator_subgroup-separator__menu-buttons__NJJHA",J="SubgroupSeparator_subgroup-separator__save__AiJHk",Q="SubgroupSeparator_subgroup-separator__back-button__4KObQ",V="SubgroupSeparator_subgroup-separator__wave__JW8fg";var B=a(45607),G=a(60983),Z=a(39425),U=a(91186),Y=a(30987),$=a(57438),nn=a(72569),en=a(27929);const an=()=>{const[n,e]=(0,c.useState)([]),[a,i]=(0,c.useState)(!0),[o,l]=(0,c.useState)(null),r=(0,W.zy)(),d=(0,P.wA)(),s=(0,W.Zp)(),u=r.state.lesson;(0,c.useEffect)(()=>{let n=!1;return G.A.get("/employee-gradebook/students",{params:{lessonId:u.id}}).then(a=>{n||e(a.data)}).catch(e=>{n||d((0,U.yH)({type:"warning",text:"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443"}))}).finally(()=>{n||i(!1)}),()=>{n=!0}},[d,u.id]);const h=(e,a)=>2===e.subgroup||!e.subgroup&&a>=n.length/2,g=[{title:"\u0424\u0418\u041e",dataIndex:"fio",render:(n,e,a)=>(0,en.jsxs)("div",{className:"".concat(!e.subgroup&&X),children:[(0,en.jsx)("span",{style:{marginRight:"10px"},children:a+1}),(0,en.jsx)("span",{children:(0,Z.nW)(e.fullName)})]})},{title:"\u041f\u043e\u0434\u0433\u0440\u0443\u043f\u043f\u0430",dataIndex:"subgroups",render:(n,a,c)=>(0,en.jsx)("div",{children:(0,en.jsx)(q,{checkedChildren:2,unCheckedChildren:1,defaultChecked:h(a,c),onChange:n=>{return c=a.id,i=n,void e(n=>n.map(n=>n.id===c?(0,t.A)((0,t.A)({},n),{},{subgroup:i?2:1}):n));var c,i}},a.id)}),width:"40%"}
1];return(0,en.jsxs)(c.Fragment,{children:[(0,en.jsx)(T.m,{children:(0,en.jsx)("title",{children:B[27].D})}),(0,en.jsxs)("div",{className:R,children:[(0,en.jsx)($.A,{loading:a}),(0,en.jsx)(nn.A,{title:"\u041f\u043e\u0434\u0433\u0440\u0443\u043f\u043f\u044b"}),(0,en.jsxs)("div",{className:F,children:[(0,en.jsx)("div",{children:(0,en.jsx)(L.pyl,{size:35,className:"".concat(Q," ").concat(o),onAnimationEnd:()=>{s("/personal-account/by-lesson",{state:{selectedLesson:u}}),l(null)},onClick:()=>{l(V)}})}),(0,en.jsx)("div",{className:J,children:(0,en.jsx)(Y.A,{onClick:()=>{const e=n.length/2,a={termHoursId:u.group.termHoursId,students:n.map((n,a)=>{let t=n.subgroup;return null!==t&&void 0!==t||(t=a<e?1:2),{studentId:n.id,subgroup:t}})};i(!0),G.A.put("/employee-gradebook/assign-subgroups",a).then(n=>{s("/personal-account/by-lesson",{state:{selectedLesson:u}})}).catch(()=>{d((0,U.yH)({type:"warning",text:"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u043f\u043e\u0434\u0433\u0440\u0443\u043f\u043f\u044b"}))}).finally(()=>{i(!1)})},children:"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c"})})]}),(0,en.jsx)(D.A,{className:K,dataSource:n,columns:g,pagination:!1})]})]})}}}]); 2//# sourceMappingURL=4608.9ff56277.chunk.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.