1import{Cf as I,Df as H,Ef as tt,Gc as Z,Ib as W,Nc as G,Ub as X,Va as w,Xa as T,ab as U,ha as S,ja as J,ma as K}from"./chunk-XKEW5C3F.js";import{$c as P,Ab as s,Bb as h,Cc as F,Dc as k,Fb as v,Lb as f,Lc as $,Ld as q,Nb as m,Ra as o,Sa as g,Ub as j,Vb as A,Wb as z,Zc as Q,_c as O,ac as x,bb as b,bc as M,cb as L,fb as N,ga as B,ib as l,ob as a,qc as Y,ra as u,rb as D,sa as _,uc as R,za as V,zb as c}from"./chunk-BZNCKEIH.js";function mt(i,p){i&1&&h(0,"r-icon",8),i&2&&a("icon","angle-down")}function ct(i,p){if(i&1){let t=v();c(0,"div",11)(1,"r-action-button",5),f("action",function(e){u(t);let r=m(4);return _(r.onaction(e))}),s()()}if(i&2){let t=p.$implicit;o(),a("actionButton",t)}}function pt(i,p){if(i&1&&(c(0,"div",9),l(1,ct,2,1,"div",10),s()),i&2){let t=m().$implicit;o(),a("ngForOf",t.subItems)}}function lt(i,p){if(i&1){let t=v();c(0,"div",4)(1,"div")(2,"r-action-button",5),f("action",function(e){u(t);let r=m(2);return _(r.onaction(e))}),l(3,mt,1,1,"r-icon",6),s()(),l(4,pt,2,1,"div",7),s()}if(i&2){let t=p.$implicit;o(2),a("actionButton",t.btn),o(),a("ngIf",t.subItems!=null),o(),a("ngIf",t.subItems!=null)}}function dt(i,p){if(i&1&&(c(0,"div",2),l(1,lt,5,3,"div",3),s()),i&2){let t=m();o(),a("ngForOf",t.subMenu)}}var it=(()=>{class i{constructor(t,n){this.formService=t,this.layoutService=n,this.load=new V,this.action=new V,this.small=!1,this.small=n.isMediumAndDown}ngOnInit(){this.fetchSecondMenu()}fetchSecondMenu(){this.formService.post("BiuldSecondMenu",this.params,t=>{this.subMenu=t.subMenu,this.ptActionButton=t.ptHome,this.pmActionButton=t.pmHome,this.load.emit()})}onaction(t){this.action.emit(t)}static{this.\u0275fac=function(n){return new(n||i)(g(w),g(T))}}static{this.\u0275cmp=b({type:i,selectors:[["secondMenu"]],inputs:{params:"params",type:"type"},outputs:{load:"load",action:"action"},standalone:!1,decls:4,vars:1,consts:[[1,"sub-menu-wrapper","box"],["class","links",4,"ngIf"],[1,"links"],["class","link text-primary",4,"ngFor","ngForOf"],[1,"link","text-primary"],[3,"action","actionButton"],[3,"icon",4,"ngIf"],["class","list-subitem",4,"ngIf"],[3,"icon"],[1,"list-subitem"],["class","subitem text-primary",4,"ngFor","ngForOf"],[1,"subitem","text-primary"]],template:function(n,e){n&1&&(h(0,"form-header"),c(1,"div",0),l(2,dt,2,1,"div",1),s(),h(3,"form-footer")),n&2&&(o(2),a("ngIf",e.subMenu))},dependencies:[O,P,I,H,W,S],styles:[".sub-menu-wrapper[_ngcontent-%COMP%]{margin:0 0 1rem}.sub-menu-wrapper[_ngcontent-%COMP%] .links[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:0 -.59rem}.sub-menu-wrapper[_ngcontent-%COMP%] .links[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{position:relative;margin:0 .59rem}.sub-menu-wrapper[_ngcontent-%COMP%] .links[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] .list-subitem[_ngcontent-%COMP%]{position:absolute;background:#fff;z-index:9;width:100%}.sub-menu-wrapper[_ngcontent-%COMP%] .links[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] .list-subitem[_ngcontent-%COMP%] .subitem[_ngcontent-%COMP%]{opacity:0;visibility:hidden;transition:all .5s ease;display:none}.sub-menu-wrapper[_ngcontent-%COMP%] .links[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]:hover .list-subitem[_ngcontent-%COMP%] .subitem[_ngcontent-%COMP%]{visibility:visible;opacity:1;display:block}[_nghost-%COMP%] .link .subitem r-action-button .action-button-wrapper{min-width:100%}[_nghost-%COMP%] .link .subitem r-action-button .action-button-wrapper a{min-width:100%}"]})}}return i})();var _t=["sm"],ft=(i,p)=>({opened:i,box:p});function ht(i,p){if(i&1){let t=v();c(0,"secondMenu",8,0),f("action",function(e){u(t);let r=m();return _(r.onaction(e))})("load",function(){u(t);let e=m();return _(e.afterMenuLoad())}),s()}if(i&2){let t=m();a("params",t.btnParams)("type",t.type)}}function vt(i,p){if(i&1&&(c(0,"div",11),x(1),s()),i&2){let t=m(2);o(),M(t.data.secondTitle)}}function gt(i,p){if(i&1){let t=v();c(0,"div")(1,"r-button",19),f("click",function(){u(t);let e=m().index,r=m(3);return _(r.doChart(e,"bar",!0))}),x(2),F(3,"tr"),s()()}i&2&&(o(),D("accent"),a("type","prominent"),o(),M(k(3,4,"*.MultiYearView")))}function Ct(i,p){if(i&1){let t=v();
1c(0,"div")(1,"r-button",17),f("click",function(){u(t);let e=m().index,r=m(3);return _(r.doChart(e,r.defaultTypeChart,!1))}),x(2),F(3,"tr"),s()()}i&2&&(o(),D("accent"),a("type","link")("inline",!0),o(),M(k(3,5,"*.YearView")))}function yt(i,p){if(i&1){let t=v();c(0,"div",15)(1,"div",16)(2,"div")(3,"r-button",17),f("click",function(){let e=u(t).$implicit,r=m(3);return r.loadFrameByClickOnChart(r.charts[e].type),_(r.openFrame=!1)}),x(4),s()(),l(5,gt,4,6,"div",3)(6,Ct,4,7,"div",3),s(),c(7,"r-charts",18,1),f("legendItemAction",function(e){let r=u(t),d=r.$implicit,C=r.index,y=m(3);return _(y.legendItemClick(e,y.charts[d],C))}),s()()}if(i&2){let t=p.$implicit,n=m(3);o(3),a("type","link")("inline",!0),o(),M(n.charts[t]._Title.text),o(),a("ngIf",n.charts[t].multiYear!=null&&!n.charts[t].multiYear),o(),a("ngIf",n.charts[t].multiYear),o(),a("chartsViewItem",n.charts[t])("translateTextFields",!0)}}function xt(i,p){if(i&1&&(c(0,"div",12)(1,"div",13),l(2,yt,9,7,"div",14),s()()),i&2){let t=m(2);o(2),a("ngForOf",t.chartsNames.sort())}}function Mt(i,p){if(i&1&&(c(0,"div"),l(1,vt,2,1,"div",9)(2,xt,3,1,"div",10),s()),i&2){let t=m();o(),a("ngIf",t.data.secondTitle),o(),a("ngIf",t.isHome&&t.rechiveType!="staff")}}function wt(i,p){if(i&1){let t=v();c(0,"div",20)(1,"div",21),x(2),F(3,"tr"),s(),c(4,"div",22)(5,"r-button",23),f("click",function(){u(t);let e=m();return _(e.openFrame=!e.openFrame)}),h(6,"r-icon",24),s()()()}if(i&2){let t=m();o(2),M(k(3,3,"*."+t.rechiveType)),o(3),a("shrink",!0),o(),a("icon",t.openFrame?"chevron-up":"chevron-down")}}var E=(()=>{class i extends X{get isHome(){return this.formService.router.urlParameters.type.toLowerCase()=="home"}get btnParams(){return this.parameters}constructor(t,n,e){super(t),this.formService=t,this.layoutService=n,this.cdr=e,this.rFrameSettings={},this.small=!1,this.showAll=!1,this.charts={},this.chartsNames=[],this.defaultTypeChart="pie",this.rechiveType="Students",this.mzvHrsm=[{key:"\u05D4",value:"\u05D4\u05EA\u05E7\u05D1\u05DC\u05D5"},{key:"\u05E0",value:"\u05E0\u05D3\u05D7\u05D5"},{key:"\u05E2",value:"\u05E2\u05DC \u05EA\u05E0\u05D0\u05D9"},{key:"\u05D7",value:"\u05D7\u05E8\u05D9\u05D2"},{key:"\u05EA",value:"\u05DE\u05DE\u05EA\u05D9\u05E0\u05D9\u05DD"},{key:"\u05DE",value:"\u05D8\u05E8\u05DD \u05E0\u05E7\u05D1\u05E2"},{key:"\u05E8",value:"\u05D1\u05D8\u05DC\u05D5"}],this.afterInitData=()=>{this.isHome?(this.fetchChart(),this.openFrame=!1):this.openFrame=!0},this.small=n.isMediumAndDown}fetchChart(){if(this.chartsNames=[],this.data._LinkParams!=null){var t=this.data._LinkParams.length;for(let e=0;e<t;e++){var n=this.data._LinkParams[e].dataSourceType;(n=="4"||n=="5")&&(this.defaultTypeChart="bar"),this.doChart(e,this.defaultTypeChart,!1)}}}doChart(t,n=this.defaultTypeChart,e){var r="chart"+t;this.formService.post("BiuldChart",{Option:this.data._LinkParams[t].params,Type:n,OneYear:!e},d=>{if(this.charts[r]=d.chartViewItem,this.data._LinkParams[t]){var C=this.data._LinkParams[t].dataSourceType;C!="4"&&C!="5"&&(this.charts[r].multiYear=e)}this.charts[r].type=d.type,(this.chartsNames.length==0||this.chartsNames.find(y=>y==r)==null)&&this.chartsNames.push(r)})}afterMenuLoad(){this.initFrameSettings(!1,"",null)}loadFrameByClickOnChart(t="students"){if(this.rechiveType=t,this.rechiveType!="students"){this.type=t;var n=this.sm.subMenu.find(r=>r.btn.href.indexOf("pt")>=0),e=n.subItems.find(r=>r.href.indexOf(t)>=0);e&&(this.rFrameSettings.routeData=e.routeData)}else this.type="home";this.initFrameSettings(!0,"",null)}onaction(t){var n="",e;switch(t.tag){case"pm":case"home":case"pt":case"candidates":case"graduates":case"courses-hit":case"hit-exams":case"schedule":case"hit-msv":n=t.tag,e=t.routeData;break}this.initFrameSettings(!1,n,e)}initFrameSettings(t=!1,n="",e=null){switch(this.rFrameSettings.module="",t||(this.rFrameSettings.routeData=e??this.parameters,this.type=n!=""?n:this.formService.router.urlParameters.type),this.openFrame=!0,this.type){case"pm":this.rFrameSettings.module="HitPm";break;case"home":this.openFrame=!1,this.sm.ptActionButton!=null?(this.rFrameSettings.module="HitPt",this.rFrameSettings.routeData=this.sm.ptActionButton.routeData):(this.rFrameSettings.module="HitPm",this.rFrameSettings.routeData=this.sm.pmActionButton.routeData,this.rechiveType="staff",this.openFrame=!0);break;case"pt":case"candidates":case"graduates":this.rFrameSettings.module="HitPt";break;case"courses-hit":this.rFrameSettings.module="coursesHit";break;case"hit-exams":this.rFrameSettings.module="HitExams";break;case"schedule":this.rFrameSettings.module="StaffScheduleView";break;case"hit-msv":this.rFrameSettings.module="HitMsv";break}}legendItemClick(t,n,e){if(n.type=="candidates"&&!this.charts["chart"+e].multiYear){var r=this.data._LinkParams[e].params.indexOf("DataSourceType=11")>0,d=this.data._LinkParams[e].params.split(";");r?this.changeMinToMaxLegendByCat(d,t.text,e):this.changeMaxToMinLegend(d,e)}}changeMinToMaxLegendByCat(t,n,e){var r=t[0],d=this.mzvHrsm.find(y=>y.value==n);if(d!=null){var C="MashmautMzv="+d.key+"~";r+=C,r=r.replace("DataSourceType=11","DataSourceType=1"),t[0]=r,this.data._LinkParams[e].params=t.join(";"),this.doChart(e,this.defaultTypeChart,!1)}}changeMaxToMinLegend(t,n){var e=t[0],r=e.split("~");r=r.filter(d=>d.indexOf("MashmautMzv")<0),t[0]=r.join("~"),t[0]=t[0].replace("DataSourceType=1","DataSourceType=11"),this.data._LinkParams[n].params=t.join(";"),this.doChart(n,this.defaultTypeChart,!1)}static{this.\u0275fac=function(n){return new(n||i)(g(w),g(T),g($))}}static{this.\u0275cmp=b({type:i,selectors:[["ng-component"]],viewQuery:function(n,e){if(n&1&&j(_t,5),n&2){let r;A(r=z())&&(e.sm=r.first)}},standalone:!1,features:[Y([w]),N],decls:9,vars:9,consts:[["sm",""],["chart",""],[3,"params","type","action","load",4,"ngIf"],[4,"ngIf"],[1,"frame-wrapper",3,"ngClass"],["class","collapsed-frame item",4,"ngIf"],[1,"content-frame"],[3,"module","routeData"],[3,"action","load","params","type"],["class","second-title text-primary",4,"ngIf"],["class","flex",4,"ngIf"],[1,"second-title","text-primary"],[1,"flex"],[1,"components"],["class","chart box",4,"ngFor","ngForOf"],[1,"chart","box"],[1,"title","chart
1-title","text-light"],[3,"click","type","inline"],[3,"legendItemAction","chartsViewItem","translateTextFields"],[1,"btn-view",3,"click","type"],[1,"collapsed-frame","item"],[1,"title-frame","text-accent"],[1,"button-wrapper","text-light","f-reverse"],[3,"click","shrink"],[3,"icon"]],template:function(n,e){n&1&&(h(0,"form-header"),c(1,"div"),l(2,ht,2,2,"secondMenu",2),s(),l(3,Mt,3,2,"div",3),c(4,"div",4),l(5,wt,7,5,"div",5),c(6,"div",6),h(7,"r-frame",7),s()(),h(8,"form-footer")),n&2&&(o(2),a("ngIf",e.isInitialized),o(),a("ngIf",e.isHome),o(),a("ngClass",R(6,ft,e.openFrame,e.type!="pm")),o(),a("ngIf",e.isHome&&e.rechiveType!="staff"),o(2),a("module",e.rFrameSettings.module)("routeData",e.rFrameSettings.routeData))},dependencies:[Q,O,P,I,H,J,S,U,Z,it,K],styles:[".second-title[_ngcontent-%COMP%]{font-size:1.2rem;margin-bottom:2rem;font-weight:700}.flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.components[_ngcontent-%COMP%]{flex:3;display:flex;flex-wrap:wrap;justify-content:space-around;position:relative}.components[_ngcontent-%COMP%] .chart-title[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.components[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:1.1rem;padding:.5rem;border-bottom:1px solid #f1f1f1}.frame-wrapper[_ngcontent-%COMP%]{margin-top:1rem;height:50px}.frame-wrapper[_ngcontent-%COMP%] .collapsed-frame[_ngcontent-%COMP%]{display:flex;padding:1rem}.frame-wrapper[_ngcontent-%COMP%] .collapsed-frame[_ngcontent-%COMP%] .title-frame[_ngcontent-%COMP%]{flex:1;font-weight:700;font-size:1.2rem}.frame-wrapper.opened[_ngcontent-%COMP%]{margin-top:1rem;height:auto}.frame-wrapper.opened[_ngcontent-%COMP%] .content-frame[_ngcontent-%COMP%]{transform:scaleY(1);overflow:visible;transform-origin:top;max-height:10000px}.frame-wrapper[_ngcontent-%COMP%] .content-frame[_ngcontent-%COMP%]{overflow:hidden;transition:max-height .5s cubic-bezier(0,1,0,2);transform:scaleY(0);max-height:0;height:auto;padding:.5rem;margin-top:1rem}.loading[_ngcontent-%COMP%]{position:relative;height:4rem}[_nghost-%COMP%] .k-chart{height:296px}[_nghost-%COMP%] r-button.btn-view button{line-height:inherit}"]})}}return i})();var bt=[{path:"",component:E}],Rt=(()=>{class i{static{this.entry=E}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=L({type:i})}static{this.\u0275inj=B({imports:[q.forChild(bt),tt,G]})}}return i})();export{Rt as HitModule};
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.