"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[98818],{98818:(e,t,r)=>{r.r(t),r.d(t,{CoreReportBuilderReportSummaryComponent:()=>b});var o=r(86654),i=r(59528),n=r(52749),a=r(79555),l=r(54438),p=r(60177),m=r(2910),s=r(86198),c=r(58197),d=r(88246),u=r(43570),f=r(73955);const _c0=e=>({$a:e});function CoreReportBuilderReportSummaryComponent_ion_item_16_Template(e,t){if(1&e&&(l.j41(0,"ion-item",14)(1,"ion-label")(2,"p"),l.EFF(3),l.nI1(4,"translate"),l.k0s(),l.nrm(5,"core-format-text",8),l.k0s()()),2&e){const e=t.$implicit,r=l.XpG();l.Y8G("detail",!1),l.R7$(3),l.JRh(l.bMT(4,4,e.title)),l.R7$(2),l.Y8G("text",e.text)("contextInstanceId",r.reportDetail.id)}}let b=(()=>{var e;class CoreReportBuilderReportSummaryComponent{ngOnInit(){const e=new i.f,t=n.CoreSites.getRequiredCurrentSite();this.reportUrl=`${t.getURL()}/reportbuilder/view.php?id=${this.reportDetail.id}`,this.reportDetailToDisplay=[{title:"core.reportbuilder.reportsource",text:this.reportDetail.sourcename},{title:"core.reportbuilder.timecreated",text:e.transform(1e3*this.reportDetail.timecreated)},{title:"addon.mod_data.timemodified",text:e.transform(1e3*this.reportDetail.timemodified)},{title:"core.reportbuilder.modifiedby",text:this.reportDetail.modifiedby.fullname}]}closeModal(){a.W3.dismiss()}}return(e=CoreReportBuilderReportSummaryComponent).ɵfac=function CoreReportBuilderReportSummaryComponent_Factory(t){return new(t||e)},e.ɵcmp=l.VBU({type:e,selectors:[["core-report-builder-report-summary"]],inputs:{reportDetail:"reportDetail"},standalone:!0,features:[l.aNF],decls:24,vars:17,consts:[[1,"no-title"],["slot","start"],[3,"text"],["slot","end"],["fill","clear",3,"click","ariaLabel"],["slot","icon-only","name","fas-xmark","aria-hidden","true"],[1,"list-item-limited-width"],[1,"ion-text-wrap","course-name"],["contextLevel","report",3,"text","contextInstanceId"],["class","ion-text-wrap",3,"detail",4,"ngFor","ngForOf"],[1,"ion-no-border"],[1,"ion-text-wrap","filters-info"],["name","fas-circle-info","aria-hidden","true"],[3,"text","filter","captureLinks"],[1,"ion-text-wrap",3,"detail"]],template:function CoreReportBuilderReportSummaryComponent_Template(e,t){1&e&&(l.j41(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-buttons",1),l.nrm(3,"ion-back-button",2),l.nI1(4,"translate"),l.k0s(),l.nrm(5,"ion-title"),l.j41(6,"ion-buttons",3)(7,"ion-button",4),l.nI1(8,"translate"),l.bIt("click",(function CoreReportBuilderReportSummaryComponent_Template_ion_button_click_7_listener(){return t.closeModal()})),l.nrm(9,"ion-icon",5),l.k0s()()()(),l.j41(10,"ion-content")(11,"div",6)(12,"ion-item",7)(13,"ion-label")(14,"h1"),l.nrm(15,"core-format-text",8),l.k0s()()(),l.DNE(16,CoreReportBuilderReportSummaryComponent_ion_item_16_Template,6,6,"ion-item",9),l.k0s()(),l.j41(17,"ion-footer",10)(18,"ion-item",11)(19,"ion-label")(20,"p"),l.nrm(21,"ion-icon",12)(22,"core-format-text",13),l.nI1(23,"translate"),l.k0s()()()()),2&e&&(l.R7$(3),l.Y8G("text",l.bMT(4,8,"core.back")),l.R7$(4),l.Y8G("ariaLabel",l.bMT(8,10,"core.close")),l.R7$(8),l.Y8G("text",t.reportDetail.name)("contextInstanceId",t.reportDetail.id),l.R7$(),l.Y8G("ngForOf",t.reportDetailToDisplay),l.R7$(6),l.Y8G("text",l.i5U(23,12,"core.reportbuilder.filtersapplied",l.eq3(15,_c0,t.reportUrl)))("filter",!1)("captureLinks",!1))},dependencies:[o.n,p.Sq,m.Jm,m.QW,m.W9,m.M0,m.eU,m.iq,m.uz,m.he,m.BC,m.ai,m.el,s.t,c.B,d.i,u.T,f.D9],styles:[".filters-info[_ngcontent-%COMP%]{padding-bottom:1rem}ion-footer[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{font-size:var(--mdl-typography-icon-fontSize-sm);color:#0f6cbf;margin-right:.3rem;vertical-align:middle}"],changeDetection:0}),CoreReportBuilderReportSummaryComponent})()}}]);