1import{a as lt}from"./chunk-KH7BRNI5.js";import{a as ve}from"./chunk-QMM4MEJJ.js";import{$g as ot,$h as st,B as le,Bi as x,C as y,Ci as at,D as ce,G as X,Gc as et,Gi as ue,H as U,Hi as ge,J as qe,Jb as ke,M as de,P as pe,Q as Je,Qi as rt,R as Xe,U as Ye,Vi as fe,W as F,X as me,Xi as Ce,af as tt,dg as nt,kf as it,x as re,z as Qe}from"./chunk-IZOFIS7S.js";import{ca as he,da as Q,i as Ke,t as Ue,w as ae}from"./chunk-L4QU7KOY.js";import{$a as z,$c as $,Ca as te,Da as De,Gc as f,H as Ie,Hc as m,Ic as B,J as Te,Jc as L,Ka as H,Mb as Ne,Nc as ze,Ob as l,Oc as Be,Pa as h,Pb as b,Pc as Le,Qd as $e,Sa as Re,Sc as oe,Tc as d,Ub as je,Uc as g,Vc as Z,Wd as C,Za as ie,_a as G,_c as W,ad as K,bd as se,cd as u,dc as w,g as Se,gc as c,hb as _,ic as T,mb as ne,mc as A,n as v,na as Ae,nd as E,od as Ze,p as j,pc as we,pd as N,qc as ye,rc as a,sc as r,tc as R,td as We,uc as He,vc as Ge,wa as Fe,xc as J}from"./chunk-PFEXNFNC.js";import{a as Ve,b as Oe}from"./chunk-VOSPIT4N.js";j();C();C();var k,ct=(k=class{get className(){if(!this.chosenClassId||this.classes.length<1)return"";let e=this.classes.find(i=>i.id===this.chosenClassId);return e?e.name:""}constructor(e,i,t){this._journalService=e,this._userService=i,this._glossaryService=t,this.selectedClass=new _,this.classes=[],this.disabled=!1,this.touched=!1,this.nushViewModes=ke,this.glossaryKey=ue,this.glossary=this._glossaryService.glossary(),this.noClassesMessage=this._glossaryService.getNoDataMessage(this.glossaryKey.Class,["\u043A\u043B\u0430\u0441\u0456\u0432","\u043D\u0430\u0432\u0447\u0430\u043B\u044C\u043D\u0438\u0445 \u0433\u0440\u0443\u043F"]),this.onChange=()=>{},this.onTouched=()=>{}}ngOnChanges(e){e.scheduleId&&this.scheduleId&&this.viewMode!==this.nushViewModes.Child&&this.viewMode!==this.nushViewModes.Parent&&!e.scheduleId.firstChange&&this._getClasses()}ngOnInit(){this.viewMode!==this.nushViewModes.Child&&this.viewMode!==this.nushViewModes.Parent&&(this.classes.length||this._getClasses()),this.classIds=this._userService.getClassTeacherClassIds()}canAccessAchievement(e){return this.classes.find(t=>t.id===this.chosenClassId).subjects.some(t=>t.subject===e)}canShowAchievement(e){return this.classes.find(o=>o.id===this.chosenClassId).subjects.filter(o=>o.subject===e)?.length>0}writeValue(e){this.chosenClassId=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}markAsTouched(){this.touched||(this.onTouched(),this.touched=!0)}setDisabledState(e){this.disabled=e}changeClass(e){this.chosenClassId=e,this.onChange(this.chosenClassId),this._findSelectedClass()}_getClasses(){this.classes=[],this.currentClass=null,this._journalService.getNushClasses(this.scheduleId,this.myClassesOnly).subscribe(e=>{let i=e.data.naturalSort("name");this.classes=this.viewMode===ke.ClassTeacher?i.filter(t=>this.classIds.includes(t.id)):i,this.chosenClassId&&this.changeClass(this.chosenClassId)})}_findSelectedClass(){let e=this.classes.find(i=>i.id===this.chosenClassId);this.selectedClass.emit(e)}},k.\u0275fac=function(i){return new(i||k)(b(it),b(nt),b(ge))},k.\u0275cmp=h({type:k,selectors:[["nit-class-dropdown"]],inputs:{scheduleId:"scheduleId",myClassesOnly:"myClassesOnly",viewMode:"viewMode"},outputs:{selectedClass:"selectedClass"},standalone:!0,features:[se([{provide:re,multi:!0,useExisting:te(()=>k)}]),ie,u],decls:2,vars:4,consts:[[3,"label"],["textField","name",3,"ngModelChange","valueChange","emptyText","data","ngModel"]],template:function(i,t){i&1&&(a(0,"nit-field-wrapper",0)(1,"nit-dropdown",1),K("ngModelChange",function(n){return $(t.currentClass,n)||(t.currentClass=n),n}),f("valueChange",function(n){return t.changeClass(n.id)}),r()()),i&2&&(c("label",t.glossary[t.glossaryKey.Class]),l(),c("emptyText",t.noClassesMessage)("data",t.classes),W("ngModel",t.currentClass))},dependencies:[fe,ve,F,y,U],styles:["nit-field-wrapper[_ngcontent-%COMP%]{margin-right:30px;display:block;min-width:85px}"]}),k);ct=v([x({checkProperties:!0})],ct);j();C();C();var P,dt=(P=class{constructor(){this._glossaryService=H(ge),this.disabled=!1,this.touched=!1,this.glossaryKey=ue,this.glossary=this._glossaryService.glossary(),this.noSubjectsMessage=this._glossaryService.getNoDataMessage(this.glossaryKey.Subject,["\u043F\u0440\u0435\u0434\u043C\u0435\u0442\u0456\u0432","\u0434\u0438\u0441\u0446\u0438\u043F\u043B\u0456\u043D"]),this.onChange=e=>{this._value=e},this.onTouched=()=>{}}writeValue(e){this.chosenSubject=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}markAsTouched(){this.touched||(this.onTouched(),this.touched=!0)}setDisabledState(e){this.disabled=e}changeSubject(e){this.chosenSubject=e,this.onChange(this.chosenSubject)}},P.\u0275fac=function(i){return new(i||P)},P.\u0275cmp=h({type:P,selectors:[["nit-subject-dropdown"]],inputs:{subjects:"subjects"},standalone:!0,features:[se([{provide:re,multi:!0,useExisting:te(()=>P)}]),u],decls:2,vars:4,consts:[[3,"label"],["textField","name",3,"ngModelChange","valueChange","emptyText","data","ngModel"]],template:function(i,t){i&1&&(a(0,"nit-field-wrapper",0)(1,"nit-dropdown",1),K("ngModelChange",function(n){return $(t.chosenSubject,n)||(t.chosenSubject=n),n}),f("valueChange",function(n){return t.changeSubject(n)}),r()()),i&2&&(c("label",t.glossary[t.glossaryKey.Subject]),l(),c("emptyText",t.noSubjectsMessage)("data",t.subjects),W("ngModel",t.chosenSubject))},dependencies:[fe,ve,F,y,U],styles:["nit-field-wrapper[_ngcontent-%COMP%]{margin-right:30px;display:block;min-width:260px}
1.subject-name[_ngcontent-%COMP%]{display:block;overflow-x:hidden;text-overflow:ellipsis}"]}),P);dt=v([x()],dt);C();var vt=["*"],di=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=h({type:e,selectors:[["nit-table-controls-wrapper"]],standalone:!0,features:[u],ngContentSelectors:vt,decls:3,vars:0,consts:[[1,"table-controls"],[1,"table-controls-wrapper"]],template:function(o,n){o&1&&(B(),a(0,"div",0)(1,"div",1),L(2),r()())},styles:[".table-controls[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.table-controls-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:24px;margin-top:-40px}@media (max-width: 995px){.table-controls-wrapper[_ngcontent-%COMP%]{margin-top:-20px}}"]});let s=e;return s})();C();function bt(s,e){if(s&1&&(a(0,"div")(1,"span",4),d(2),r(),a(3,"span",4),d(4),r(),a(5,"span",4),d(6),r(),a(7,"span",4),d(8),r(),a(9,"span",4),d(10),r(),a(11,"span",4),d(12),r(),a(13,"span",4),d(14),r(),a(15,"span",4),d(16),r(),a(17,"span",4),d(18),r(),a(19,"span",4),d(20),r()(),a(21,"div"),R(22,"img",5),d(23),r()),s&2){let i=m().$implicit;l(2),g(i("release")),l(2),g(i("notAttested")),l(2),g(i("admitted")),l(2),g(i("notAdmitted")),l(2),g(i("studied")),l(2),g(i("notEvaluated")),l(2),g(i("elementary")),l(2),g(i("average")),l(2),g(i("sufficient")),l(2),g(i("high")),l(3),Z(" - ",i("formed")," ")}}function xt(s,e){if(s&1&&(a(0,"div",2)(1,"div",3),d(2),r(),w(3,bt,24,11,"ng-template",null,0,We),r()),s&2){let i=e.$implicit,t=oe(4);c("tooltipTemplate",t)("tooltipClass","mark-inform-tooltip")("tooltipWidth",205),l(2),g(i("mark"))}}var ui=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=h({type:e,selectors:[["nit-mark-inform"]],standalone:!0,features:[u],decls:1,vars:1,consts:[["template",""],["kendoTooltip","","filter",".mark-inform","showOn","click",3,"tooltipTemplate","tooltipClass","tooltipWidth",4,"transloco","translocoPrefix"],["kendoTooltip","","filter",".mark-inform","showOn","click",3,"tooltipTemplate","tooltipClass","tooltipWidth"],[1,"mark-inform"],[1,"option"],["src","/assets/icons/green-tick.svg","alt","Green tick",1,"green-tick"]],template:function(o,n){o&1&&w(0,xt,5,4,"div",1),o&2&&c("translocoPrefix","nush.markInform")},dependencies:[Ce,Q],styles:[`.mark-inform[_ngcontent-%COMP%]{font-style:normal;font-weight:500;font-size:14px;line-height:22px;text-decoration-line:underline;color:var(--icon-primary);position:relative;padding-right:24px;cursor:pointer}.mark-inform[_ngcontent-%COMP%]:before{content:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 14.3213C10.4045 14.3213 10.7324 13.9934 10.7324 13.5889C10.7324 13.1843 10.4045 12.8564 10 12.8564C9.59549 12.8564 9.26758 13.1843 9.26758 13.5889C9.26758 13.9934 9.59549 14.3213 10 14.3213Z' fill='%233947D8'/%3E%3Cpath d='M10 2.5C5.85496 2.5 2.5 5.8544 2.5 10C2.5 14.145 5.8544 17.5 10 17.5C14.145 17.5 17.5 14.1456 17.5 10C17.5 5.85496 14.1456 2.5 10 2.5ZM10 16.3281C6.50263 16.3281 3.67188 13.4978 3.67188 10C3.67188 6.50263 6.50216 3.67188 10 3.67188C13.4974 3.67188 16.3281 6.50216 16.3281 10C16.3281 13.4974 13.4978 16.3281 10 16.3281Z' fill='%233947D8'/%3E%3Cpath d='M10 6.26465C8.70766 6.26465 7.65625 7.31606 7.65625 8.6084C7.65625 8.93202 7.91858 9.19434 8.24219 9.19434C8.5658 9.19434 8.82812 8.93202 8.82812 8.6084C8.82812 7.96223 9.35383 7.43652 10 7.43652C10.6462 7.43652 11.1719 7.96223 11.1719 8.6084C11.1719 9.25457 10.6462 9.78027 10 9.78027C9.67639 9.78027 9.41406 10.0426 9.41406 10.3662V11.8311C9.41406 12.1547 9.67639 12.417 10 12.417C10.3236 12.417 10.5859 12.1547 10.5859 11.8311V10.878C11.5957 10.6172 12.3438 9.69851 12.3438 8.6084C12.3438 7.31606 11.2923 6.26465 10 6.26465Z' fill='%233947D8'/%3E%3C/svg%3E%0A");position:absolute;right:0;top:1px}`]});let s=e;return s})();j();C();Fe();j();C();var V,be=(V=class{constructor(e){this.ngControl=e,this.formControlName="",this.disabled=!1,this.touched=!1,this.focused=!1,this.onChange=i=>{this._value=i},this.onTouched=()=>{},e.valueAccessor=this}focus(){this.focused=!0}focusout(){this.focused=!1,this.startValue!==this.value&&(this.startValue=this.value,this.change())}change(){this.onChange(this.value)}writeValue(e){this.value=e,this.startValue=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}markAsTouched(){this.touched||(this.onTouched(),this.touched=!0)}setDisabledState(e){this.disabled=e}},V.\u0275fac=function(i){return new(i||V)(b(le,2))},V.\u0275cmp=h({type:V,selectors:[["nit-mark-input"]],inputs:{id:"id",formControlName:"formControlName",disabled:"disabled",value:"value",maxRating:"maxRating"},standalone:!0,features:[u],decls:1,vars:4,consts:[["kendoTextBox","","type","number","inputmode","numeric","pattern","\\d*","min","1","oninput","validity.valid || (value='')",3,"ngModelChange","change","focus","focusout","max","id","disabled","ngModel"]],template:function(i,t){i&1&&(a(0,"input",0),K("ngModelChange",function(n){return $(t.value,n)||(t.value=n),n}),f("change",function(){return t.focusout()})("focus",function(){return t.focus()})("focusout",function(){return t.focusout()}),r()),i&2&&(c("max",t.maxRating||12)("id",t.id)("disabled",t.disabled),W("ngModel",t.value))},dependencies:[ot,F,Qe,qe,y,Ye,Xe,Je,U],styles:["input[_ngcontent-%COMP%]{font-weight:700;text-align:center;font-size:var(--font-size-h5);line-height:var(--text-colors-title-300);color:var(--primary-300);position:absolute;inset:0;opacity:1;width:auto;border:none}input.hide[_ngcontent-%COMP%]{opacity:0}
1"]}),V);be=v([x()],be);C();var pt=(()=>{let e=class e{transform(t,o){let p=Object.keys(t).find(D=>o.get(D)?.value!==null);if(p)return t[p]?.controls?.find(D=>o.get(p)?.value===D.value)?.name}};e.\u0275fac=function(o){return new(o||e)},e.\u0275pipe=Re({name:"selectedPopoverValue",type:e,pure:!1,standalone:!0});let s=e;return s})();C();function _t(s,e){if(s&1){let i=J();a(0,"label",3),E(1,"selectedPopoverValue"),f("click",function(){G(i);let o=m();return z(o.showPopover())}),a(2,"div",4),E(3,"selectedPopoverValue"),E(4,"selectedPopoverValue"),E(5,"selectedPopoverValue"),E(6,"selectedPopoverValue"),d(7),E(8,"selectedPopoverValue"),r(),R(9,"nit-mark-input",5,0),r()}if(s&2){let i,t,o=oe(10),n=m();T("empty",!(o!=null&&o.value)&&!(o!=null&&o.focused)&&!N(1,23,n.configControls,n.form)&&!n.readOnly)("read-only",n.readOnly)("input-focused",o==null?null:o.focused),c("for",n.id)("formGroup",n.form),l(2),T("type-value-0",N(3,26,n.configControls,n.form)===n.formed()&&((i=n.form.get("isVerbalFormed"))==null?null:i.value)&&(!n.isGeneralCharacteristics||n.is1To4Grade||n.rate.type===n.generalAchievementValue))("type-value-2",N(4,29,n.configControls,n.form)&&n.grading.isLeveledGradingActive)("type-value-3",N(5,32,n.configControls,n.form)&&n.grading.isDigitalGradingActive)("show",N(6,35,n.configControls,n.form))("absent",((t=n.form.get("absense"))==null?null:t.value)!==null),l(5),Z(" ",n.form.get("isVerbalFormed").value?"":N(8,38,n.configControls,n.form)," "),l(2),T("hide",n.isMarkInputHidden),c("id",n.id)("maxRating",n.maxRating)}}function wt(s,e){if(s&1&&R(0,"div",2),s&2){let i=m();c("title",i.form.get("description").value)}}var yt={isVerbalFormed:{type:"isVerbalGradingActive",controls:[{name:"\u0421\u0444\u043E\u0440\u043C\u043E\u0432\u0430\u043D\u043E",value:!0}]},customDigitalRating:{type:"isDigitalGradingActive",controls:[{name:"\u0437\u0432.",value:0},{name:"\u043D/\u0430",value:1},{name:"\u0437\u0430\u0440\u0430\u0445.",value:2},{name:"\u0432\u0438\u0432\u0447.",value:3},{name:"\u043D/\u043E",value:4},{name:"\u043D\u0435 \u0437\u0430\u0440\u0430\u0445.",value:5}]},absense:{type:"absense",controls:[{name:"H",value:0}]},leveledAssessmentType:{type:"isLeveledGradingActive",controls:[{name:"\u041F",value:0},{name:"\u0421",value:1},{name:"\u0414",value:2},{name:"\u0412",value:3}]}},O,mt=(O=class{constructor(e,i,t){this._elementRef=e,this._translocoService=i,this._toast=t,this.isGeneralCharacteristics=!1,this.isAbsenseSupported=!1,this.additionalValues={},this.rate=new et,this.is1To4Grade=!0,this.hasComment=!1,this.isAllowedWithoutRate=!1,this.isOpened=!1,this.ignoreGrading=!1,this.openPopover=new _,this.submitted=new _,this.commentAddEditEmitted=new _,this.deleteCommentEmitted=new _,this.showMarkInput$=new Se(!1),this.isMarkInputHidden=!0,this.subscriptions=[],this.id=lt(),this.configControls=yt,this.formed=$e(()=>this._translocoService.translate("nush.markInform.formed")),this._initForm()}onClick(e){this._elementRef.nativeElement.contains(e)?!this.form.get("rating").value&&!this.readOnly&&(this.ignoreGrading||this.grading.isDigitalGradingActive)&&this.showMarkInput$.next(!0):this.showMarkInput$.next(!1)}ngOnChanges(e){if(e.marksOfRow?.currentValue?.length){let i=this.marksOfRow.find(t=>t.type===this.generalAchievementValue);this.form.patchValue(i,{emitEvent:!1})}!this.marksOfRow?.length&&e.rate?.currentValue&&(this.form.reset(),this.rate.customMark!==null&&this.rate.customMark!==void 0&&(this.rate.customDigitalRating=this.rate.customMark),this.form.patchValue(this.rate,{emitEvent:!1}),this.readOnly&&this.form.get("rating").disable({emitEvent:!1})),this._checkMarkInputVisibility()}ngOnInit(){this._handleAbsenseAllowance(),this._trackFormChages(),this.configControls.isVerbalFormed.controls[0].name=this.formed()}ngOnDestroy(){this.subscriptions.forEach(e=>e?.unsubscribe())}showPopover(){if(!this.readOnly&&!this.isOpened){let e={rowId:this.rowId,colId:this.colId,hasComment:this.hasComment,grading:this.grading,rate:this.rate,form:this.form,additionalValues:this.additionalValues,generalAchievementValue:this.generalAchievementValue,cellRef:this._elementRef};this.isGeneralCharacteristics&&(e.type=this.rate?.type),this.openPopover.emit(e),this.isOpened=!0}}_handleAbsenseAllowance(){this.isAbsenseSupported?this.configControls.absense={type:"absense",controls:[{name:"H",value:0}]}:(delete this.configControls.absense,this.form.removeControl("absense"))}_initForm(){this.form=new rt({id:new X,description:new X,rating:new X});let e=Object.keys(this.configControls);for(let i of e)this.form.addControl(i,new X)}_checkMarkInputVisibility(){this.showMarkInput$.subscribe(e=>{this.isMarkInputHidden=!e&&!this.form.get("rating").value||!!this._getSelectedPopoverValue()||!this.form.get("rating").value&&!this.grading.isDigitalGradingActive}),this.showMarkInput$.next(!!this.form.get("rating").value)}_getValues(e){return Object.assign(e,Oe(Ve({},this.additionalValues),{[this.colKey]:this.colId,[this.rowKey]:this.rowId}))}_getControlsWithValue(){let e=Object.keys(this.configControls);return e.push("rating"),e.filter(i=>this.form.get(i)?.value!==null)}_submit(e){let i=this._getControlsWithValue(),t=[],o=this.form.value;(this.ignoreGrading||this.grading.isDigitalGradingActive)&&e==="digital"&&(t=i.filter(p=>p!=="rating"&&p!=="customDigitalRating"),o.leveledAssessmentType=null,o.isVerbalFormed=null),(this.ignoreGrading||this.grading.isLeveledGradingActive)&&e==="leveled"&&(t=i.filter(p=>p!=="leveledAssessmentType"),o.rating=null,o.customDigitalRating=null,o.isVerbalFormed=null),(this.ignoreGrading||this.grading.isVerbalGradingActive)&&e==="verbal"&&(t=i.filter(p=>p!=="isVerbalFormed"),o.rating=null,o.customDigitalRating=null,o.leveledAssessmentType=null),e==="absent"&&(o.rating=null,o.customDigitalRating=null,o.isVerbalFormed=null,o.leveledAssessmentType=null);let n=this._getValues(o);if(n.isVerbalFormed&&this.generalAchievementValue!=null&&(delete n.isVerbalFormed,n.type=this.generalAchievementValue),t?.length){this.markService.delete(n?.id).subscribe(()=>{this.markService.create(n).subscribe(()=>{this._toast.success(this._translocoService.translate("nush.messages.dataSaved")),this._resetForm(),this.submitted.emit()})});return}n?.id?!i.length&&!n.description?this.markService.delete(n?.id).subscribe(()=>{this._toast.success(this._translocoService.translate("nush.messages.markDeleted")),this._resetForm(),this.submitted.emit(this.rowId)}):this.markService.update(n?.id,n).subscribe(()=>{this._toast.success(!i.length&&n.description?this._translocoService.translate("nush.messages.markDeleted"):this._translocoService.translate("nush.messages.dataChanged")),this._resetForm(),this.submitted.emit()}):this.isGeneralCharacteristics&&this.marksOfRow?.length&&this.marksOfRow?.[0]?.type!==this.generalAchievementValue?this.markService.update(this.marksOfRow?.[0]?.id,n).subscribe(()=>{this._toast.success(this._translocoService.translate("nush.messages.dataChanged")),this._resetForm(),this.form.get("isVerbalFormed").setValue(null,{emitEvent:!1}),this.submitted.emit()}):this.markService.create(n).subscribe({next:()=>{this._toast.success(this._translocoService.translate("nush.messages.dataSaved")),this._resetForm(),this.submitted.emit()},error:()=>{this._resetForm(),this.submitted.emit()}})}_resetForm(){this.form.get("id").patchValue(null,{emitEvent:!1}),this.form.get("description").setValue(null,{emitEvent:!1}),this.form.get("rating").setValue(null,{emitEvent:!1}),this.form.get("rating").enable({emitEvent:!1}),this.form.get("customDigitalRating").enable({emitEvent:!1}),this.form.get("leveledAssessmentType").enable({emitEvent:!1}),this.form.get("isVerbalFormed").enable({emitEvent:!1})}_trackFormChages(){let e=this.form?.get("rating").valueChanges.subscribe(n=>{this.form?.get("customDigitalRating")?.setValue(null,{emitEvent:!1}),this.form?.get("isVerbalFormed")?.setValue(null,{emitEvent:!1}),this.form?.get("leveledAssessmentType")?.setValue(null,{emitEvent:!1}),this.isAbsenseSupported&&this.form?.get("absense")?.setValue(null,{emitEvent:!1}),(this.form.value.id||n!==null)&&(this.showMarkInput$.next(!1),this._submit("digital"))}),i=this.form?.get("customDigitalRating")?.valueChanges.subscribe(n=>{this.form?.get("rating")?.setValue(null,{emitEvent:!1}),this.form?.get("isVerbalFormed")?.setValue(null,{emitEvent:!1}),this.form?.get("leveledAssessmentType")?.setValue(null,{emitEvent:!1}),this.isAbsenseSupported&&this.form?.get("absense")?.setValue(null,{emitEvent:!1}),(this.form.value.id||n!==null)&&(this.showMarkInput$.next(!1),this._submit("digital"))});if(this.isAbsenseSupported){let n=this.form?.get("absense")?.valueChanges?.subscribe(p=>{this.form?.get("rating")?.setValue(null,{emitEvent:!1}),this.form?.get("customDigitalRating")?.setValue(null,{emitEvent:!1}),this.form?.get("isVerbalFormed")?.setValue(null,{emitEvent:!1}),this.form?.get("leveledAssessmentType")?.setValue(null,{emitEvent:!1}),(this.form.value.id||p!==null)&&this._submit("absent")});this.subscriptions.push(n)}let t=this.form?.get("isVerbalFormed").valueChanges.subscribe(n=>{this.form?.get("customDigitalRating")?.setValue(null,{emitEvent:!1}),this.form?.get("rating")?.setValue(null,{emitEvent:!1}),this.form?.get("leveledAssessmentType")?.setValue(null,{emitEvent:!1}),this.form?.get("absense")?.setValue(null,{emitEvent:!1}),(this.form.value.id||n!==null)&&(this.showMarkInput$.next(!1),this._submit("verbal"))}),o=this.form?.get("leveledAssessmentType").valueChanges.subscribe(n=>{this.form?.get("customDigitalRating")?.setValue(null,{emitEvent:!1}),this.form?.get("rating")?.setValue(null,{emitEvent:!1}),this.form?.get("isVerbalFormed")?.setValue(null,{emitEvent:!1}),this.form?.get("absense")?.setValue(null,{emitEvent:!1}),(this.form.value.id||n!==null)&&(this.showMarkInput$.next(!1),this._submit("leveled"))});this.subscriptions.push(o,t,i,e)}_getSelectedPopoverValue(){let i=Object.keys(this.configControls).find(t=>this.form.get(t)?.value!==null);if(i)return this.configControls[i]?.controls?.find(t=>this.form.get(i)?.value===t.value)?.name}},O.\u0275fac=function(i){return new(i||O)(b(ne),b(he),b(tt))},O.\u0275cmp=h({type:O,selectors:[["nit-mark"]],hostBindings:function(i,t){i&1&&f("click",function(n){return t.onClick(n.target)},!1,Ne)},inputs:{isGeneralCharacteristics:"isGeneralCharacteristics",isAbsenseSupported:"isAbsenseSupported",readOnly:"readOnly",rowId:"rowId",colId:"colId",markService:"markService",additionalValues:"additionalValues",rate:"rate",marksOfRow:"marksOfRow",grading:"grading",colKey:"c
1olKey",rowKey:"rowKey",index:"index",is1To4Grade:"is1To4Grade",hasComment:"hasComment",isAllowedWithoutRate:"isAllowedWithoutRate",isOpened:"isOpened",generalAchievementValue:"generalAchievementValue",ignoreGrading:"ignoreGrading",maxRating:"maxRating"},outputs:{openPopover:"openPopover",submitted:"submitted",commentAddEditEmitted:"commentAddEditEmitted",deleteCommentEmitted:"deleteCommentEmitted"},standalone:!0,features:[ie,u],decls:2,vars:2,consts:[["inputControl",""],["id","achievement-mark","class","td-rate",3,"for","empty","read-only","input-focused","formGroup","click",4,"transloco","translocoPrefix"],["kendoTooltip","","tooltipClass","nit-tooltip",1,"comment",3,"title"],["id","achievement-mark",1,"td-rate",3,"click","for","formGroup"],[1,"value"],["formControlName","rating",3,"id","maxRating"]],template:function(i,t){i&1&&w(0,_t,11,41,"label",1)(1,wt,1,1,"div",2),i&2&&(c("translocoPrefix","nush.mark"),l(),A(t.form.value.description?1:-1))},dependencies:[st,F,y,ce,me,de,pe,be,ae,Ce,pt,Q],styles:[`.td-rate[_ngcontent-%COMP%]{cursor:pointer;position:absolute;inset:0;border:1px solid var(--border-checkbox);transition:.4s}.td-rate[aria-describedby][_ngcontent-%COMP%]{border:1px solid var(--support-success-200)}.td-rate.read-only[_ngcontent-%COMP%]{border:1px solid var(--border-checkbox);cursor:initial;pointer-events:none}.td-rate[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .td-rate[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-weight:700;text-align:center;font-size:var(--font-size-h5);line-height:var(--text-colors-title-300);color:var(--primary-300);position:absolute;inset:0}.td-rate[_ngcontent-%COMP%] nit-mark-input.hide[_ngcontent-%COMP%]{opacity:0;visibility:hidden}.td-rate[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{opacity:0;display:flex;align-items:center;justify-content:center}.td-rate[_ngcontent-%COMP%] .value.show[_ngcontent-%COMP%]{opacity:1;background:var(--white)}.td-rate[_ngcontent-%COMP%] .value.show.type-value-0[_ngcontent-%COMP%]{color:transparent}.td-rate[_ngcontent-%COMP%] .value.show.type-value-0[_ngcontent-%COMP%]:after{position:absolute;content:url("data:image/svg+xml,%3Csvg width='16' height='12' viewBox='0 0 16 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.2899 11.0898C6.60982 11.7698 5.50635 11.7698 4.8266 11.0898L1.01005 7.27321C0.329982 6.59347 0.329982 5.48999 1.01005 4.81024C1.6898 4.13017 2.79328 4.13017 3.47335 4.81024L5.74726 7.08383C5.91892 7.25516 6.19758 7.25516 6.36957 7.08383L12.5267 0.926741C13.2064 0.246669 14.3099 0.246669 14.9899 0.926741C15.3165 1.25332 15.5 1.69642 15.5 2.15822C15.5 2.62003 15.3165 3.06313 14.9899 3.38971L7.2899 11.0898Z' fill='%230AAB7B'/%3E%3C/svg%3E%0A");left:50%;top:50%;transform:translate(-50%,-50%)}.td-rate[_ngcontent-%COMP%] .value.absent[_ngcontent-%COMP%]{color:var(--statistics-02);font-weight:700}.td-rate.empty[_ngcontent-%COMP%]:hover:before, .td-rate.empty[_ngcontent-%COMP%]:hover:after{opacity:1;visibility:visible}.td-rate[_ngcontent-%COMP%]:before, .td-rate[_ngcontent-%COMP%]:after{position:absolute;color:var(--primary-300);font-weight:400;transition:.4s;opacity:0;z-index:1;visibility:hidden}.td-rate[_ngcontent-%COMP%]:before{content:"";inset:0;background:var(--secondary-100)}.td-rate[_ngcontent-%COMP%]:after{content:"+";font-size:var(--font-size-h2);line-height:24px;top:50%;left:50%;transform:translate(-50%,-50%)}.comment[_ngcontent-%COMP%]{position:absolute;width:15px;height:15px;right:3px;top:3px;z-index:9;cursor:pointer;background-repeat:no-repeat;background-position:center;background-image:url("data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 13 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0)'%3E%3Cpath d='M13.0003 9.47949V9.88574C13.0003 9.99407 12.957 10.097 12.8812 10.1728L10.1728 12.8812C10.097 12.957 9.99408 13.0003 9.88574 13.0003H9.47949V9.88574C9.47949 9.66366 9.66366 9.47949 9.88574 9.47949H13.0003Z' fill='%233947D8'/%3E%3Cpath d='M11.5104 2.70801H7.44792V3.92676C7.44792 4.44946 7.02271 4.87467 6.5 4.87467C5.97729 4.87467 5.55208 4.44946 5.55208 3.92676V2.70801H1.48958C0.66625 2.70801 0 3.37426 0 4.19759V11.5101C0 12.3334 0.66625 12.9997 1.48958 12.9997H8.9375V9.88508C8.9375 9.36237 9.36271 8.93716 9.88542 8.93716H13V4.19759C13 3.37426 12.3338 2.70801 11.5104 2.70801ZM7.58333 10.5622H2.57292C2.34867 10.5622 2.16667 10.3802 2.16667 10.1559C2.16667 9.93166 2.34867 9.74966 2.57292 9.74966H7.58333C7.80758 9.74966 7.98958 9.93166 7.98958 10.1559C7.98958 10.3802 7.80758 10.5622 7.58333 10.5622ZM10.4271 8.3955H2.57292C2.34867 8.3955 2.16667 8.2135 2.16667 7.98925C2.16667 7.765 2.34867 7.583 2.57292 7.583H10.4271C10.6513 7.583 10.8333 7.765 10.8333 7.98925C10.8333 8.2135 10.6513 8.3955 10.4271 8.3955ZM10.4271 6.22883H2.57292C2.34867 6.22883 2.16667 6.04683 2.16667 5.82259C2.16667 5.59834 2.34867 5.41634 2.57292 5.41634H10.4271C10.6513 5.41634 10.8333 5.59834 10.8333 5.82259C10.8333 6.04683 10.6513 6.22883 10.4271 6.22883Z' fill='%233947D8'/%3E%3Cpath d='M6.5 4.33301C6.27575 4.33301 6.09375 4.15101 6.09375 3.92676V1.89551C6.09375 1.67126 6.27575 1.48926 6.5 1.48926C6.72425 1.48926 6.90625 1.67126 6.90625 1.89551V3.92676C6.90625 4.15101 6.72425 4.33301 6.5 4.33301Z' fill='%233947D8'/%3E%3Cpath d='M6.50032 2.16667C5.90287 2.16667 5.41699 1.68079 5.41699 1.08333C5.41699 0.485875 5.90287 0 6.50032 0C7.09778 0 7.58365 0.485875 7.58365 1.08333C7.583
165 1.68079 7.09778 2.16667 6.50032 2.16667Z' fill='%233947D8'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0'%3E%3Crect width='13' height='13' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A")}`]}),O);mt=v([x({checkProperties:!0})],mt);j();C();j();C();var kt=["*"],S,xe=(S=class{get isChecked(){return this.model===this.value}constructor(e){this.ngControl=e,this.controlName="",this.value=!1,this.isVerbalControl=!1,this.disabled=!1,this.touched=!1,this.onChange=i=>{this._value=i},this.onTouched=()=>{},e.valueAccessor=this}ngOnInit(){this.ngControl.control?.valueChanges.subscribe(e=>{this.model!==e&&(this.form.get("rating").setValue(null,{emitEvent:!1}),this.writeValue(e))})}change(){this.model=this.isChecked?null:this.value,this.onChange(this.model)}writeValue(e){this.model=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}markAsTouched(){this.touched||(this.onTouched(),this.touched=!0)}setDisabledState(e){this.disabled=e}},S.\u0275fac=function(i){return new(i||S)(b(le,2))},S.\u0275cmp=h({type:S,selectors:[["nit-mark-item"]],inputs:{controlName:"controlName",value:"value",form:"form",isVerbalControl:"isVerbalControl"},standalone:!0,features:[u],ngContentSelectors:kt,decls:5,vars:7,consts:[[1,"small-block"],[1,"checkbox-horizontal"],["type","checkbox",3,"change","name","checked","disabled"]],template:function(i,t){i&1&&(B(),a(0,"label",0)(1,"div",1)(2,"input",2),f("change",function(){return t.change()}),r(),a(3,"span"),L(4),r()()()),i&2&&(T("disabled",t.disabled)("verbal-formed",t.isVerbalControl),l(2),c("name",t.controlName)("checked",t.isChecked)("disabled",t.disabled))},styles:[`.small-block[_ngcontent-%COMP%]{cursor:pointer;display:block;min-width:110px;padding:10px 10px 10px 34px;background:var(--white);box-shadow:0 4px 15px #7f89a733;border-radius:6px;margin-top:5px;position:relative}.small-block.disabled[_ngcontent-%COMP%]{cursor:default}.small-block.disabled[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:default;opacity:.6}.small-block.verbal-formed[_ngcontent-%COMP%]{height:34px;padding-top:6px}.small-block[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:pointer}.small-block[_ngcontent-%COMP%] .checkbox-horizontal[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{position:absolute;opacity:0}.small-block[_ngcontent-%COMP%] .checkbox-horizontal[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span[_ngcontent-%COMP%]:before{background:var(--primary-300);border-color:var(--primary-300)}.small-block[_ngcontent-%COMP%] .checkbox-horizontal[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span[_ngcontent-%COMP%]:after{opacity:1}.small-block[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:500;font-size:12px;line-height:14px;display:inherit}.small-block[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{content:"";background:#fff;border:1px solid var(--additional-grey-300);border-radius:4px;width:16px;height:16px;position:absolute;left:8px;top:8px;transition:.4s}.small-block[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:after{content:url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.50293 7.56282C5.02688 8.03887 4.25444 8.03887 3.77862 7.56282L1.10704 4.89123C0.630987 4.41541 0.630987 3.64298 1.10704 3.16716C1.58286 2.69111 2.35529 2.69111 2.83134 3.16716L4.42308 4.75867C4.54324 4.8786 4.7383 4.8786 4.8587 4.75867L9.16866 0.448705C9.64448 -0.0273455 10.4169 -0.0273455 10.893 0.448705C11.1216 0.677311 11.25 0.987479 11.25 1.31074C11.25 1.63401 11.1216 1.94418 10.893 2.17278L5.50293 7.56282Z' fill='white'/%3E%3C/svg%3E%0A");position:absolute;left:10px;top:10px;transition:.4s;opacity:0}`]}),S);xe=v([x()],xe);Fe();C();var Mt=["nusPopover"],Pt=(s,e)=>e.key,Et=(s,e)=>e.value;function Vt(s,e){if(s&1&&d(0),s&2){let i=m().$implicit;Z(" ",i.name," ")}}function Ot(s,e){s&1&&(a(0,"span",6),d(1,"H"),r())}function St(s,e){s&1&&R(0,"img",7)}function It(s,e){if(s&1&&(a(0,"nit-mark-item",5),w(1,Vt,1,1)(2,Ot,2,0,"span",6)(3,St,1,0,"img",7),r()),s&2){let i=e.$implicit,t=m(2).$implicit,o=m(2);c("form",o.form)("formControlName",t==null?null:t.key)("controlName",t==null?null:t.key)("isVerbalControl",(t==null?null:t.key)==="isVerbalFormed")("value",i.value),l(),A((t==null?null:t.key)!=="absense"&&(t==null?null:t.key)!=="isVerbalFormed"?1:-1),l(),A((t==null?null:t.key)==="absense"?2:-1),l(),A((t==null?null:t.key)==="isVerbalFormed"?3:-1)}}function Tt(s,e){if(s&1&&(He(0,3),we(1,It,4,8,"nit-mark-item",5,Et),Ge()),s&2){let i=m().$implicit,t=m(2);c("formGroup",t.form),l(),ye(i.value==null?null:i.value.controls)}}function At(s,e){if(s&1&&w(0,Tt,3,1,"ng-container",4),s&2){let i=e.$implicit,t=m(2);c("ngIf",t.grading[i==null||i.value==null?null:i.value.type]||(i==null?null:i.key)==="absense"&&t.isAbsenseAllowed)}}function Ft(s,e){if(s&1){let i=J();a(0,"div",9),f("click",function(){G(i);let o=m(3);
1return z(o.editComment())}),a(1,"span"),d(2),r()(),a(3,"div",10),f("click",function(){G(i);let o=m(3);return z(o.removeComment())}),a(4,"span"),d(5),r()()}if(s&2){let i=m(2).$implicit;l(2),g(i("editComment")),l(3),g(i("deleteComment"))}}function Dt(s,e){if(s&1){let i=J();a(0,"div",9),f("click",function(){G(i);let o=m(3);return z(o.addComment())}),a(1,"span"),d(2),r()()}if(s&2){let i=m(2).$implicit;l(2),g(i("addComment"))}}function Rt(s,e){if(s&1&&w(0,Ft,6,2)(1,Dt,3,1,"div",8),s&2){let i,t=m(2);A(!(t.form==null||(i=t.form.get("description"))==null)&&i.value?0:1)}}function Nt(s,e){if(s&1&&(a(0,"div",2,0),we(2,At,1,1,"ng-container",3,Pt),E(4,"keyvalue"),w(5,Rt,2,1),r()),s&2){let i=m();l(2),ye(Ze(4,1,i.configControls)),l(3),A(i.isCommentAllowed?5:-1)}}var I,_e=(I=class{constructor(){this.commentAddEditEmitted=new _,this.deleteCommentEmitted=new _,this.hidePopover=new _,this.isAbsenseAllowed=!1,this.isCommentAllowed=!1,this.configControls={isVerbalFormed:{type:"isVerbalGradingActive",controls:[{name:"\u0421\u0444\u043E\u0440\u043C\u043E\u0432\u0430\u043D\u043E",value:!0}]},customDigitalRating:{type:"isDigitalGradingActive",controls:[{name:"\u0437\u0432.",value:0},{name:"\u043D/\u0430",value:1},{name:"\u0437\u0430\u0440\u0430\u0445.",value:2},{name:"\u0432\u0438\u0432\u0447.",value:3},{name:"\u043D/\u043E",value:4},{name:"\u043D\u0435 \u0437\u0430\u0440\u0430\u0445.",value:5}]},absense:{type:"absense",controls:[{name:"H",value:0}]},leveledAssessmentType:{type:"isLeveledGradingActive",controls:[{name:"\u041F",value:0},{name:"\u0421",value:1},{name:"\u0414",value:2},{name:"\u0412",value:3}]}},this._elementRef=H(ne),this._renderer=H(je),this._translocoService=H(he)}ngOnInit(){Ie(document,"click").pipe(Ae(Te(500)),at(this)).subscribe(e=>{let i=!this.container.nativeElement.contains(e.target),t=this.cellRef.nativeElement.contains(e.target);i&&!t&&this.hidePopover.emit()})}ngAfterViewInit(){let e=this._elementRef.nativeElement.childNodes[0].offsetWidth,i=this._elementRef.nativeElement.childNodes[0].offsetHeight,t=this.cellRef.nativeElement.getBoundingClientRect(),o=t.right+e+51>=window.innerWidth,n=t.left-e-51<0,p=t.bottom+i>=window.innerHeight,D=o&&!n?t.left-e-51+"px":t.right+51+"px",ee=p?t.top-i+30+"px":t.bottom-34+"px";this._renderer.setStyle(this._elementRef.nativeElement,"position","fixed"),this._renderer.setStyle(this._elementRef.nativeElement,"top",ee),this._renderer.setStyle(this._elementRef.nativeElement,"left",D),this._renderer.setStyle(this._elementRef.nativeElement,"z-index","100")}addComment(){this.commentAddEditEmitted.emit({data:{title:"\u0414\u043E\u0434\u0430\u0442\u0438 \u043A\u043E\u043C\u0435\u043D\u0442\u0430\u0440",rate:this.rate,additionalValues:this.additionalValues},rowId:this.rowId,colId:this.colId,grading:this.grading}),this.hidePopover.emit()}editComment(){this.commentAddEditEmitted.emit({data:{title:this._translocoService.translate("nush.popover.editComment"),rate:this.rate,additionalValues:this.additionalValues},rowId:this.rowId,colId:this.colId,grading:this.grading}),this.hidePopover.emit()}removeComment(){this.deleteCommentEmitted.emit({data:{rate:this.rate,configControls:this.configControls},rowId:this.rowId,colId:this.colId}),this.hidePopover.emit()}},I.\u0275fac=function(i){return new(i||I)},I.\u0275cmp=h({type:I,selectors:[["nit-nus-popover"]],viewQuery:function(i,t){if(i&1&&ze(Mt,5),i&2){let o;Be(o=Le())&&(t.container=o.first)}},outputs:{commentAddEditEmitted:"commentAddEditEmitted",deleteCommentEmitted:"deleteCommentEmitted",hidePopover:"hidePopover"},standalone:!0,features:[u],decls:1,vars:1,consts:[["nusPopover",""],["class","container-checkbox",4,"transloco","translocoPrefix"],[1,"container-checkbox"],[3,"formGroup"],[3,"formGroup",4,"ngIf"],[3,"form","formControlName","controlName","isVerbalControl","value"],[1,"absent"],["src","/assets/icons/green-tick.svg","alt","Green tick"],[1,"large-block","simple-text","add-comment"],[1,"large-block","simple-text","add-comment",3,"click"],[1,"large-block","simple-text","delete-comment",3,"click"]],template:function(i,t){i&1&&w(0,Nt,6,3,"div",1),i&2&&c("translocoPrefix","nush.popover")},dependencies:[xe,ae,Ke,Ue,me,y,ce,de,pe,Q],styles:[`.container-checkbox[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;width:225px;justify-content:space-between;box-shadow:none}.container-checkbox.right-end[_ngcontent-%COMP%]{justify-content:space-between}.container-checkbox[_ngcontent-%COMP%] .absent[_ngcontent-%COMP%]{color:var(--statistics-02);font-weight:700}.container-checkbox[_ngcontent-%COMP%] .large-block[_ngcontent-%COMP%], .container-checkbox[_ngcontent-%COMP%] .special-block[_ngcontent-%COMP%]{cursor:pointer;max-width:166px;width:100%;min-width:166px;padding:10px;background:var(--white);box-shadow:0 4px 15px #7f89a733;border-radius:6px;margin-top:5px;font-weight:500;font-size:12px;line-height:14px}.container-checkbox[_ngcontent-%COMP%] .special-block[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:8px}.container-checkbox[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{display:flex;align-items:center;padding-left:34px}.container-checkbox[_ngcontent-%COMP%] .add-comment[_ngcontent-%COMP%]{position:relative}.container-checkbox[_ngcontent-%COMP%] .add-comment[_ngcontent-%COMP%]:before{position:absolute;top:8px;left:10px;content:"";width:16px;height:16px;background-repeat:no-repeat;background-position:center;background-image:url("data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 13 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0)'%3E%3Cpath d='M13.0003 9.47949V9.88574C13.0003 9.99407 12.957 10.097 12.8812 10.1728L10.1728 12.8812C10.097 12.957 9.99408 13.0003 9.88574 13.0003H9.47949V9.88574C9.47949 9.66366 9.66366 9.47949 9.88574 9.47949H13.0003Z' fill='%233947D8'/%3E%3Cpath d='M11.5104 2.70801H7.44792V3.92676C7.44792 4.44946 7.02271 4.87467 6.5 4.87467C5.97729 4.87467 5.55208 4.44946 5.55208 3.92676V2.70801H1.48958C0.66625 2.70801 0 3.37426 0 4.19759V11.5101C0 12.3334 0.66625 12.9997 1.48958 12.9997H8.9375V9.88508C8.9375 9.36237 9.36271 8.93716 9.88542 8.93716H13V4.19759C13 3.37426 12.3338 2.70801 11.5104 2.70801ZM7.58333 10.5622H2.57292C2.34867 10.5622 2.16667 10.3802 2.16667 10.1559C2.16667 9.93166 2.34867 9.74966 2.57292 9.74966H7.58333C7.80758 9.74966 7.98958 9.93166 7.98958 10.1559C7.98958 10.3802 7.80758 10.5622 7.58333 10.5622ZM10.4271 8.3955H2.57292C2.34867 8.3955 2.16667 8.2135 2.16667 7.98925C2.16667 7.765 2.34867 7.583 2.57292 7.583H10.4271C10.6513 7.583 10.8333 7.765 10.8333 7.98925C10.8333 8.2135 10.6513 8.3955 10.4271 8.3955ZM10.4271 6.22883H2.57292C2.34867 6.22883 2.16667 6.04683 2.16667 5.82259C2.16667 5.59834 2.34867 5.41634 2.57292 5.41634H10.4271C10.6513 5.41634 10.8333 5.59834 10.8333 5.82259C10.8333 6.04683 10.6513 6.22883 10.4271 6.22883Z' fill='%233947D8'/%3E%3Cpath d='M6.5 4.33301C6.27575 4.33301 6.09375 4.15101 6.09375 3.92676V1.89551C6.09375 1.67126 6.27575 1.48926 6.5 1.48926C6.72425 1.48926 6.90625 1.67126 6.90625 1.89551V3.92676C6.90625 4.15101 6.72425 4.33301 6.5 4.33301Z' fill='%233947D8'/%3E%3Cpath d='M6.50032 2.16667C5.90287 2.16667 5.41699 1.68079 5.41699 1.08333C5.41699 0.485875 5.90287 0 6.50032 0C7.09778 0 7.58365 0.485875 7.58365 1.08333C7.583
165 1.68079 7.09778 2.16667 6.50032 2.16667Z' fill='%233947D8'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0'%3E%3Crect width='13' height='13' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A")}.container-checkbox[_ngcontent-%COMP%] .delete-comment[_ngcontent-%COMP%]{position:relative}.container-checkbox[_ngcontent-%COMP%] .delete-comment[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--support-danger-200)}.container-checkbox[_ngcontent-%COMP%] .delete-comment[_ngcontent-%COMP%]:before{position:absolute;top:10px;left:10px;content:"";width:13px;height:13px;background-repeat:no-repeat;background-position:center;background-image:url("./media/delete-LXIC6AVS.svg")}.container-checkbox[_ngcontent-%COMP%] .edit-mark[_ngcontent-%COMP%]{position:relative}.container-checkbox[_ngcontent-%COMP%] .edit-mark[_ngcontent-%COMP%]:before{position:absolute;top:10px;left:10px;content:"";width:13px;height:13px;background-repeat:no-repeat;background-position:center}.container-checkbox[_ngcontent-%COMP%] .adding-mark[_ngcontent-%COMP%]{position:relative}.container-checkbox[_ngcontent-%COMP%] .adding-mark[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:flex}.container-checkbox[_ngcontent-%COMP%] .adding-mark[_ngcontent-%COMP%] span[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:12px;line-height:14px}.container-checkbox[_ngcontent-%COMP%] .adding-mark[_ngcontent-%COMP%]:before{position:absolute;top:10px;left:10px;content:"";width:13px;height:13px;border-radius:50%;background-repeat:no-repeat;background-position:center}.container-checkbox[_ngcontent-%COMP%] .delete-mark[_ngcontent-%COMP%]{position:relative;cursor:pointer}.container-checkbox[_ngcontent-%COMP%] .delete-mark[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:flex;color:var(--support-danger-300)}.container-checkbox[_ngcontent-%COMP%] .delete-mark[_ngcontent-%COMP%]:before{position:absolute;top:8px;left:10px;content:"";width:15px;height:15px;background-repeat:no-repeat;background-position:center}`]}),I);_e=v([x({checkProperties:!0})],_e);C();var cn=(()=>{let e=class e{constructor(){this.isOpenedStatuses={}}openPopover(t,o,n,p,D=!0){if(!o?.viewContainerRef)return;this.dynamicComponentDirective=o,this.clearPopoverSubscriptions();let{form:ee,additionalValues:ht,rowId:Me,colId:Pe,type:ut,rate:gt,hasComment:Ee,grading:ft,cellRef:Ct,generalAchievementValue:q}=t;this.isOpenedStatuses[`_${Me}|${Pe}${q!=null?"|"+q:""}`]=!0,this.popoverRef=this.dynamicComponentDirective.viewContainerRef.createComponent(_e),this.popoverRef.instance.form=ee,this.popoverRef.instance.rowId=Me,this.popoverRef.instance.colId=Pe,this.popoverRef.instance.isCommentAllowed=Ee,this.popoverRef.instance.isAbsenseAllowed=D,this.popoverRef.instance.additionalValues=ht,this.popoverRef.instance.rate=gt,this.popoverRef.instance.grading=ft,this.popoverRef.instance.cellRef=Ct,this.popoverRef.instance.generalAchievementValue=q,q!=null&&ut!==q&&ee.get("isVerbalFormed").patchValue(!1,{emitEvent:!1}),Ee&&(this.addEditRateCommentModal=n,this.deleteRateCommentModal=p,this._subscribeToAddEditComment(this.popoverRef),this._subscribeToDeleteComment(this.popoverRef)),this._subscribeToHidePopover(this.popoverRef)}clearPopoverSubscriptions(){this.dynamicComponentDirective?.viewContainerRef.clear(),this._clearOpenedStatuses(),this.addEditCommentSubscription?.unsubscribe(),this.deleteCommentSubscription?.unsubscribe(),this.addEditCommentSubscription?.unsubscribe(),this.hidePopoverSubscription?.unsubscribe()}_subscribeToAddEditComment(t){this.addEditCommentSubscription=t.instance.commentAddEditEmitted.subscribe(({data:o,rowId:n,colId:p})=>{this.addEditRateCommentModal.open(o,p,n),this.clearPopoverSubscriptions()})}_subscribeToDeleteComment(t){this.deleteCommentSubscription=t.instance.deleteCommentEmitted.subscribe(({data:o,rowId:n,colId:p})=>{this.deleteRateCommentModal.open(o,p,n),this.clearPopoverSubscriptions()})}_subscribeToHidePopover(t){this.hidePopoverSubscription=t.instance.hidePopover.subscribe(()=>{this.clearPopoverSubscriptions()})}_clearOpenedStatuses(){Object.keys(this.isOpenedStatuses).forEac
1h(t=>{this.isOpenedStatuses[t]=!1})}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();C();var jt=["*"],pn=(()=>{let e=class e{constructor(){this.isFooter=!1}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=h({type:e,selectors:[["nit-table"]],inputs:{isFooter:"isFooter"},standalone:!0,features:[u],ngContentSelectors:jt,decls:3,vars:2,consts:[[1,"nush-table-wrapper","table-footer"],[1,"nush-table"]],template:function(o,n){o&1&&(B(),a(0,"div",0)(1,"table",1),L(2),r()()),o&2&&T("table-footer",n.isFooter)},styles:[`.diagnostic-works-student-table .nush-table-wrapper{max-width:430px}.nush-table-wrapper{box-shadow:2px 2px 10px #7f89a726;border-radius:20px 5px 5px 20px;margin-bottom:16px;padding-right:6px;overflow:auto;background:var(--additional-page-bg);max-height:600px;position:relative;z-index:99}.nush-table-wrapper::-webkit-scrollbar{width:8px;height:8px;background:var(--additional-page-bg)}.nush-table-wrapper::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0)}.nush-table-wrapper::-webkit-scrollbar-thumb{border-radius:4px;outline:1px solid transparent}.nush-table-wrapper .add-row{cursor:pointer;background:var(--secondary-300);box-shadow:0 2px 9px #001d1026;border-radius:6px;font-weight:700;font-size:14px;line-height:16px;text-align:center;color:var(--white);border:none;width:100%;position:relative;width:max-content;min-height:40px;padding:12px 24px 12px 46px}.nush-table-wrapper .add-row:hover{background:var(--secondary-300);border:none}.nush-table-wrapper .add-row:before{position:absolute;left:24px;top:12px;content:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z' fill='%23DFF4F6'/%3E%3Cpath d='M7.4452 10.6667V8.52798H5.33325V7.49874H7.4452V5.33333H8.55464V7.49874H10.6666V8.52798H8.55464V10.6667H7.4452Z' fill='%2328B4C3'/%3E%3C/svg%3E%0A")}.nush-table-wrapper .add-column{cursor:pointer;background:var(--secondary-300);box-shadow:0 2px 9px #001d1026;border-radius:6px;font-weight:700;font-size:14px;line-height:16px;text-align:center;color:var(--white);border:none;padding:12px;width:100%;position:relative;width:max-content;min-width:40px;min-height:40px;margin-left:2px}.nush-table-wrapper .add-column:not(.small){padding:12px 24px 12px 46px;margin-left:10px}.nush-table-wrapper .add-column:not(.small):before{left:24px}.nush-table-wrapper .add-column:hover{background:var(--secondary-300);border:none}.nush-table-wrapper .add-column:before{position:absolute;left:12px;top:12px;content:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z' fill='%23DFF4F6'/%3E%3Cpath d='M7.4452 10.6667V8.52798H5.33325V7.49874H7.4452V5.33333H8.55464V7.49874H10.6666V8.52798H8.55464V10.6667H7.4452Z' fill='%2328B4C3'/%3E%3C/svg%3E%0A")}.nush-table{border-spacing:0px;width:100%}.nush-table .hide-header{position:absolute;visibility:hidden}.nush-table tr th:first-child,.nush-table tr td:first-child{min-width:238px;background:var(--white);padding-left:20px;padding-right:10px;border-right:6px solid var(--additional-page-bg);position:sticky!important;top:0;left:0;z-index:99;width:50%}@media all and (max-width: 580px){.nush-table tr th:first-child,.nush-table tr td:first-child{min-width:150px;max-width:150px;padding-left:15px}}.nush-table tr:nth-child(n+2) td:first-child{height:62px}.table-footer .nush-table tr:last-child td{height:72px}.nush-table tr:last-child td:first-child{padding-bottom:3px}.nush-table tr:last-child td:nth-child(n+2){height:65px}.nush-table tr:last-child td:nth-child(n+2)>span{bottom:4px}.table-footer .nush-table tr:last-child td:nth-child(n+2)>span{bottom:6px;top:6px}.nush-table tr nit-table-add-column{min-width:max-content!important;max-width:max-content!important;padding-top:5px!important}.nush-table tr th,.nush-table tr nit-table-add-column{display:table-cell;position:sticky;cursor:pointer;padding:0;top:0;z-index:99;font-size:var(--font-size-body);line-height:16px}.nush-table tr th:nth-child(n+2),.nush-table tr nit-table-add-column:nth-child(n+2){padding-top:4px;padding-bottom:3px;min-width:104px;max-width:240px;color:var(--white);border-radius:4px}.nush-table tr th:nth-child(n+2) .overflow,.nush-table tr nit-table-add-column:nth-child(n+2) .overflow{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:absolute;inset:14px 12px}.nush-table tr th:nth-child(n+2) span,.nush-table tr nit-table-add-column:nth-child(n+2) span{position:relative;display:flex;justify-content:center;align-items:center;text-align:center;height:100%;background:var(--additional-grey-300);border-radius:4px;padding:14px 12px;margin-left:1px;margin-right:1px;min-height:44px}.nush-table tr th:nth-child(n+2) span.practice-column,.nush-table tr nit-table-add-column:nth-child(n+2) span.practice-column{max-width:100px;width:100%;margin:0 auto}.nush-table tr th:first-child,.nush-table tr nit-table-add-column:first-child{z-index:100;position:relative;font-weight:700;font-size:var(--font-size-h5);line-height:18px;color:var(--primary-300);text-align:left;padding:22px 80px 11px 20px}.nush-table tr th:first-child:not(.footer-th):before,.nush-table tr nit-table-add-column:first-child:not(.footer-th):before{content:url(/assets/images/notepads.svg);position:absolute;right:22px;top:5px;width:69px;height:49px}@media all and (max-width: 580px){.nush-table tr th:first-child:not(.footer-th):before,.nush-table tr nit-table-add-column:first-child:not(.footer-th):before{display:none}}@media all and (max-width: 580px){.nush-table tr th,.nush-table tr nit-table-add-column{max-width:70px;min-width:70px;font-size:var(--font-size-h6);line-height:14px;font-weight:400}.nush-table tr th.student,.nush-table tr nit-table-add-column.student{padding:10px 0 10px 15px}}.nush-table tr td{font-size:var(--font-size-body);color:var(--text-colors-title-300);line-height:24px;font-weight:500}.nush-table tr td:nth-child(n+2){font-weight:700;padding:0;text-align:center;font-size:var(--font-size-h5);line-height:var(--text-colors-title-300);color:var(--primary-300);position:relative;height:62px}.nush-table tr td:nth-child(n+2)>span{height:auto;width:auto;position:absolute;inset:1px;display:flex;justify-content:center;align-items:center;border-radius:1px}@media all and (max-width: 580px){.nush-table tr td:nth-child(n+2){max-width:70px;min-width:70px;height:42px}}@media all and (max-width: 580px){.nush-table tr td{font-weight:500;font-size:12px;line-height:18px}} 2`],encapsulation:2});let s=e;return s})();export{ct as a,di as b,ui as c,mt as d,cn as e,pn as f,dt as g};
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.