1import{a as D}from"./chunk-TSOVXS6F.js";import{a as C}from"./chunk-MNNEX5QD.js";import{A as G,B as J,C as Q,l as V,m as I,p as N,s as W,t as K,x as $,y as Y,z as q}from"./chunk-JFSVKDZS.js";import{o as U}from"./chunk-YKTVRPTH.js";import{A as B,b as E,f as F,l as H}from"./chunk-3ZCFFTOO.js";import{Ya as A,ib as j,jb as z,r as T}from"./chunk-7ZYBXR4G.js";import{$ as y,Aa as L,Cb as S,Dc as v,Ea as b,H as h,Hc as o,Mc as k,Nc as x,O as _,Oc as w,Sc as O,cc as l,da as M,dc as i,ec as e,f as g,fc as m,jb as n,mc as P,oa as u,rc as R,ua as s,va as p}from"./chunk-KLQGYSUH.js";import"./chunk-QBUHZOWM.js";var Me=(()=>{class c{constructor(){this.dateFrom=null,this.dateTo=null,this.deleteLastPullReportLoading=b(!1),this.deleteReportHistoryLoading=b(!1),this._customerKey="",this._destroyRef=u(L),this._storageService=u(j),this._agentService=u(D),this._deleteLastPullReport$=new g,this._deleteReportHistory$=new g,this._deleteLastPullReport$.pipe(M(()=>this.deleteLastPullReportLoading.set(!0)),h(1e3),y(()=>this._agentService.deleteLastPullReport(this._customerKey).pipe(_(()=>this.deleteLastPullReportLoading.set(!1)))),C(this._destroyRef)).subscribe(),this._deleteReportHistory$.pipe(M(()=>this.deleteReportHistoryLoading.set(!0)),h(1e3),y(()=>this._agentService.deleteReportHistory(this._customerKey,this.dateFrom,this.dateTo).pipe(_(()=>this.deleteReportHistoryLoading.set(!1)))),C(this._destroyRef)).subscribe()}ngOnInit(){this._customerKey=this._storageService.get(z.IMPERSONATION_CUSTOMER_KEY)}deleteLastPullReport(){this._deleteLastPullReport$.next()}deleteReportHistory(){this._deleteReportHistory$.next()}static{this.\u0275fac=function(f){return new(f||c)}}static{this.\u0275cmp=S({type:c,selectors:[["back-office-dashboard"]],features:[O([D])],decls:38,vars:8,consts:[["pickerFrom",""],["pickerTo",""],[1,"dashboard-container"],[1,"efx-type-page-subtitle","my-account-title"],[1,"card-container"],[1,"efx-card","efx-card--box-shadow","efx-l-margin-large--bottom","product-cancellation"],[1,"efx-card_head"],[1,"efx-card_body"],[3,"click","disabled"],["matInput","",3,"ngModelChange","matDatepicker","ngModel"],["matSuffix","",3,"for"]],template:function(f,t){if(f&1){let r=P();i(0,"div",2)(1,"h1",3),o(2,"Back Office Dashboard"),e(),i(3,"div",4)(4,"div")(5,"div",5)(6,"div",6)(7,"h4"),o(8,"Delete Last Eligible Report"),e()(),i(9,"div",7)(10,"button",8),R("click",function(){return s(r),p(t.deleteLastPullReport())}),m(11,"span"),o(12," Delete "),e()()()(),i(13,"div")(14,"div",5)(15,"div",6)(16,"h4"),o(17,"Delete Report History"),e()(),i(18,"div",7)(19,"div")(20,"mat-form-field")(21,"mat-label"),o(22,"FROM"),e(),i(23,"input",9),w("ngModelChange",function(a){return s(r),x(t.dateFrom,a)||(t.dateFrom=a),p(a)}),e(),m(24,"mat-datepicker-toggle",10)(25,"mat-datepicker",null,0),e()(),i(27,"div")(28,"mat-form-field")(29,"mat-label"),o(30,"TO"),e(),i(31,"input",9),w("ngModelChange",function(a){return s(r),x(t.dateTo,a)||(t.dateTo=a),p(a)}),e(),m(32,"mat-datepicker-toggle",10)(33,"mat-datepicker",null,1),e()(),i(35,"button",8),R("click",function(){return s(r),p(t.deleteReportHistory())}),m(36,"span"),o(37," Delete "),e()()()()()()}if(f&2){let r=v(26),d=v(34);n(10),l("disabled",t.deleteLastPullReportLoading()),n(13),l("matDatepicker",r),k("ngModel",t.dateFrom),n(),l("for",r),n(7),l("matDatepicker",d),k("ngModel",t.dateTo),n(),l("for",d),n(3),l("disabled",t.deleteReportHistoryLoading())}},dependencies:[T,B,E,F,H,U,G,$,Y,q,V,K,W,I,N,Q,J,A],styles:[".dashboard-container[_ngcontent-%COMP%]{max-width:1170px;width:90%;margin:0 auto}@media(max-width:991px){.app-section__wrapper[_ngcontent-%COMP%]{width:100%}}.efx-type-page-subtitle[_ngcontent-%COMP%]{font-family:open-sans,sans-serif;font-size:32px;line-height:1.5}.card-container[_ngcontent-%COMP%]{margin-top:24px;display:flex;flex-wrap:wrap;gap:24px;justify-content:flex-start}.card-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:0 1 364px;height:454px}.card-container[_ngcontent-%COMP%] .efx-card[_ngcontent-%COMP%] .efx-card_head[_ngcontent-%COMP%]{text-align:left;text-transform:none}"]})}}return c})();export{Me as BackOfficeDashboardComponent};
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.