1import{Xa as j}from"./chunk-IZOFIS7S.js";import{da as I,i as F,w as M}from"./chunk-L4QU7KOY.js";import{$a as c,Gc as m,Hc as r,Ic as E,Jc as A,Ob as d,Pa as C,Pb as y,Qc as O,Rc as D,Tc as S,Ub as k,Uc as X,Wd as P,Xb as T,Yb as b,_a as l,cd as h,dc as _,gc as f,hb as g,hc as x,mc as v,rc as s,sc as a,tc as w,uc as B,vc as V,xc as p}from"./chunk-PFEXNFNC.js";P();P();P();function Q(n,e){if(n&1){let i=p();s(0,"button",4),m("click",function(){l(i);let t=r(2);return c(t.submitPdfBtn())}),w(1,"img",5),a()}n&2&&x("cursor","pointer")}function q(n,e){if(n&1){let i=p();s(0,"button",4),m("click",function(){l(i);let t=r(2);return c(t.submitXlsxBtn())}),w(1,"img",6),a()}n&2&&x("cursor","pointer")}function N(n,e){if(n&1&&(B(0),s(1,"div",1)(2,"div",2)(3,"span"),S(4),a(),s(5,"div"),_(6,Q,2,2,"button",3)(7,q,2,2,"button",3),a()()(),V()),n&2){let i=e.$implicit,o=r();d(4),X(o.isForGenerate?i("generate"):i("download")),d(2),f("ngIf",o.pdf),d(),f("ngIf",o.xls)}}var G=(()=>{let e=class e{constructor(){this.submittedPdf=new g,this.submittedXlsx=new g,this.isForGenerate=!1,this.pdf=!0,this.xls=!0}submitPdfBtn(){this.submittedPdf.emit()}submitXlsxBtn(){this.submittedXlsx.emit()}};e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=C({type:e,selectors:[["nit-page-title-download"]],inputs:{isForGenerate:"isForGenerate",pdf:"pdf",xls:"xls"},outputs:{submittedPdf:"submittedPdf",submittedXlsx:"submittedXlsx"},standalone:!0,features:[h],decls:1,vars:0,consts:[[4,"transloco"],["id","title-download"],[1,"download"],[3,"cursor","click",4,"ngIf"],[3,"click"],["src","/assets/icons/class-teacher-office/pdf.svg","alt","pdf"],["src","/assets/icons/class-teacher-office/xls.svg","alt","xls"]],template:function(t,u){t&1&&_(0,N,8,3,"ng-container",0)},dependencies:[M,F,I],styles:["[_nghost-%COMP%]{width:100%}#title-download[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}#title-download[_ngcontent-%COMP%] .download[_ngcontent-%COMP%]{padding:2px;align-items:center;width:100%;display:flex;justify-content:space-between;vertical-align:middle;font-family:GT Walsheim Pro,sans-serif;font-weight:400;font-style:normal;font-size:14px;position:relative;color:var(--additional-key-550, #747FA0)}#title-download[_ngcontent-%COMP%] .download[_ngcontent-%COMP%] .loading-block[_ngcontent-%COMP%]{position:absolute;z-index:999999;right:150px;top:-5px;margin:0 auto}#title-download[_ngcontent-%COMP%] .download[_ngcontent-%COMP%] .loading-block[_ngcontent-%COMP%] .k-i-loading[_ngcontent-%COMP%]:before{margin-top:15px;margin-left:15px;width:10px;height:10px}#title-download[_ngcontent-%COMP%] .download[_ngcontent-%COMP%] .loading-block[_ngcontent-%COMP%] .k-i-loading[_ngcontent-%COMP%]:after{margin-top:10px;margin-left:10px;width:20px;height:20px}#title-download[_ngcontent-%COMP%] .download[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex}#title-download[_ngcontent-%COMP%] .download[_ngcontent-%COMP%] div[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;border:none;background:none}#title-download[_ngcontent-%COMP%] .download[_ngcontent-%COMP%] div[_ngcontent-%COMP%] button[_ngcontent-%COMP%] img.not-active[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}@media all and (max-width: 768px){#title-download[_ngcontent-%COMP%] .download[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:flex-start}#title-download[_ngcontent-%COMP%] .download[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;margin-right:15px}}"]});let n=e;return n})();P();var $=["menu"],H=["toggleButton"],J=["*"];function K(n,e){if(n&1){let i=p();s(0,"div",8)(1,"nit-page-title-download",9),m("submittedPdf",function(){l(i);let t=r(2);return c(t.generateReport.emit({type:t.fileType.Pdf}))})("submittedXlsx",function(){l(i);let t=r(2);return c(t.generateReport.emit({type:t.fileType.Xlsx}))}),a()()}if(n&2){let i=r(2);d(),f("xls",i.withXls)("pdf",i.withPdf)("isForGenerate",!0)}}function L(n,e){if(n&1){let i=p();s(0,"div",6,1),m("click",function(t){return l(i),c(t.stopPropagation())}),s(2,"div",7),A(3),a(),_(4,K,2,3,"div",8),a()}if(n&2){let i=r();x("width",i.maxWidth?i.maxWidth:i.defaultMaxWidth,"px"),d(4),v(i.showBottomButtons?4:-1)}}var ut=(()=>{let e=class e{constructor(o){this._renderer2=o,this.menu=b("menu"),this.toggleButton=b("toggleButton"),this.withXls=!1,this.withPdf=!1,this.showBottomButtons=!0,this.position="top",this.generateReport=new g,this.isActionsMenu=T(!1),this.fileType=j,this.defaultMaxWidth=285,this._renderer2.listen("window","click",t=>{t.target!==this.menu()?.nativeElement&&t.target!==this.toggleButton()?.nativeElement&&this.isActionsMenu.set(!1)})}openActionsMenu(o){o.stopPropagation(),this.isActionsMenu.update(t=>!t)}};e.\u0275fac=function(t){return new(t||e)(y(k))},e.\u0275cmp=C({type:e,selectors:[["nit-header-menu-actions"]],viewQuery:function(t,u){t&1&&(O(u.menu,$,5),O(u.toggleButton,H,5)),t&2&&D(2)},inputs:{fileData:"fileData",withXls:"withXls",withPdf:"withPdf",showBottomButtons:"showBottomButtons",maxWidth:"maxWidth",position:"position"},outputs:{generateReport:"generateReport"},standalone:!0,features:[h],ngContentSelectors:J,decls:5,vars:1,consts:[["toggleButton",""],["menu",""],["id","action-menu-main-container"],[1,"actions-wrapper",3,"click"],["src","/assets/icons/class-journal/menu-dots.svg","alt","dots"],[1,"menu-actions-container",3,"width"],[1,"menu-actions-container",3,"click"],[1,"text-content"],[1,"container-download"],[3,"submittedPdf","submittedXlsx","xls","pdf","isForGenerate"]],template:function(t,u){if(t&1){let W=p();E(),s(0,"div",2)(1,"button",3,0),m("click",function(R){return l(W),c(u.openActionsMenu(R))}),w(3,"img",4),a(),_(4,L,5,3,"div",5),a()}t&2&&(d(4),v(u.isActionsMenu()?4:-1))},dependencies:[M,G],styles:["#action-menu-main-container[_ngcontent-%COMP%]{position:relative}#action-menu-main-container[_ngcontent-%COMP%] .actions-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;cursor:pointer;width:40px;height:40px;background:var(--additional-grey-300);border:none;border-radius:5px}#action-menu-main-container[_ngcontent-%COMP%] .menu-actions-container[_ngcontent-%COMP%]{position:absolute;z-index:9999;right:0;background:var(--input-bg);box-shadow:0 6px 24px #9cb6c933;border-radius:6px;font-size:14px;cursor:pointer}#action-menu-main-container[_ngcontent-%COMP%] .menu-actions-container[_ngcontent-%COMP%] .container-download[_ngcontent-%COMP%]{height:60px;padding:12px 15px;border-radius:6px;background:var(--alice-blue)}#action-menu-main-container[_ngcontent-%COMP%] .menu-actions-container.top[_ngcontent-%COMP%]{top:0}#action-menu-main-container[_ngcontent-%COMP%] .menu-actions-container.bottom[_ngcontent-%COMP%]{top:40}"]});let n=e;return n})();export{ut as a};
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.