PageSourceSearch

https://midlandsoccerclub.com/chunk-CZLZ6ID6.js

js midlandsoccerclub.com collected 2026-10-09 22:40:59 UTC 47,565 bytes, 176 lines download raw bytes

1import{a as f}from"./chunk-4PHIHL6P.js";import{a as Y}from"./chunk-4CVZBQNN.js";import"./chunk-U22BTVEZ.js";import{Gb as ve,Hd as we,Ne as Re,Pe as Te,Se as Oe,Vb as D,Xb as v,d as fe,jb as De,k as xe,kd as Ie,kh as Ae,lc as be,ve as Se}from"./chunk-X5J6QTCG.js";import{$ as z,$a as g,Ad as de,Da as ue,Db as ie,Eb as B,Fa as m,Gb as ye,Ib as n,Jb as Fe,Ka as I,Kb as U,Lc as _e,Ma as j,Na as H,Qb as ne,Rb as re,Sb as oe,U as C,Wb as Ee,_ as q,ac as he,ba as k,bb as M,cc as le,d as R,db as N,dc as K,eb as L,fa as y,fb as V,fi as ge,ga as F,gb as E,hb as s,ib as a,ij as se,jb as x,jj as Me,pj as T,qb as b,sb as h,tb as u,u as te,vd as X,wd as Ce,xd as G,yd as J}from"./chunk-SMW7PHYX.js";import{a as S,b as W,h as ee}from"./chunk-BMIYOSOG.js";var ae=ee(se());var Q=(()=>{let l=class l{constructor(e){this.webAPI=e}getAllTables(){return this.webAPI.getData("admin/custom-report-model-admin/tables")}getAllModels(){return this.webAPI.getData("admin/custom-report-model-admin/models")}getModel(e){return this.webAPI.getData(`admin/custom-report-model-admin/models/${e}`)}getModelMetaData(){return this.webAPI.getData("admin/custom-report-model-admin/metadata")}getFilterMetaData(){return this.webAPI.getData("admin/custom-report-model-admin/filters/metadata")}updateModel(e,t){return this.webAPI.putData(`admin/custom-report-model-admin/models/${e}`,t)}getFilters(){return this.webAPI.getData("admin/custom-report-model-admin/filters")}getReportFieldDataTypes(){return this.webAPI.getData("admin/custom-report-model-admin/field-data-types")}};l.\u0275fac=function(t){return new(t||l)(k(ge))},l.\u0275prov=q({token:l,factory:l.\u0275fac});let o=l;return o})();var O=(()=>{let l=class l extends Me{constructor(e,t,i,r){super(),this.modelAdminService=e,this.route=t,this.router=i,this.siteDataService=r,this.unsubscribe$=new R}initialize(){this.reset(),this.set(e=>{e.loading=!0}),te([this.modelAdminService.getAllTables(),this.modelAdminService.getAllModels(),this.modelAdminService.getModelMetaData(),this.modelAdminService.getFilterMetaData(),this.modelAdminService.getFilters(),this.modelAdminService.getReportFieldDataTypes()]).pipe(C(this.unsubscribe$)).subscribe(e=>{this.set(t=>{t.loading=!1,t.models=e[1],t.lookupTypeOptions=e[2].lookupOptions,t.filterFields=e[3].fields,t.filterTypes=e[4],t.fieldDataTypes=e[5];for(let i=0;i<t.models.length;i++){let r=t.models[i];r.reportEntities=r.reportEntities?.sort((p,c)=>p.sortOrder-c.sortOrder);for(let p=0;p<r.reportEntities.length;p++){let c=r.reportEntities[p];c.entityFields=c.entityFields?.sort((w,_)=>w.sortOrder-_.sortOrder)}}t.reportTableAliases={},t.reportFieldAliases={};for(let i=0;i<e[0]?.length;i++){let r=e[0][i];t.reportTableAliases[r.tableAliasID]=r;for(let p=0;p<r.reportFields?.length;p++){let c=r.reportFields[p];t.reportFieldAliases[c.reportFieldID]=c}}})})}loadModel(e){this.set(t=>{t.currentModel=null,t.loading=!0}),te([this.modelAdminService.getModel(e),this.modelAdminService.getModelMetaData()]).pipe(C(this.unsubscribe$)).subscribe(t=>{this.set(i=>{i.loading=!1,i.currentModel=t[0],i.lookupTypeOptions=t[1].lookupOptions,i.currentModel.reportEntities=i.currentModel.reportEntities?.sort((p,c)=>p.sortOrder-c.sortOrder);for(let p=0;p<i.currentModel.reportEntities.length;p++){let c=i.currentModel.reportEntities[p];c.entityFields=c.entityFields?.sort((w,_)=>w.sortOrder-_.sortOrder)}let r=i.models.findIndex(p=>p.reportModelID===e);r>-1?i.models[r]=i.currentModel:i.models.push(i.currentModel)})})}editModel(e){let t=this.state.models?.find(i=>i.reportModelID===e);this.set(i=>{i.currentModel=null}),t?this.set(i=>{i.currentModel=i.models?.find(r=>r.reportModelID===e)}):(this.siteDataService.showSiteErrorAlert("Model not found"),this.router.navigate(["/admin/custom-report-model-admin"]))}showReportEntityEditModal(e){this.set(t=>{t.reportEntityFormFields=[],t.reportEntityFormFields.push(new v({label:"Name",required:!0,key:"name",name:"name",controlName:"name",dynamicFormFieldTypeID:D.TEXT}));let i=t.currentModel.reportEntities?.find(p=>p.reportEntityID===e?.reportEntityID&&e?.reportEntityID>0),r=t.currentModel.reportEntities?.find(p=>p.tempNewID===e?.tempNewID&&e?.tempNewID>0);if(i)t.currentReportEntity=i;else if(r)t.currentReportEntity=r;else{let p=Math.max(...t.currentModel.reportEntities?.map(c=>c.tempNewID))+1;t.currentReportEntity={reportModelID:t.currentModel.reportModelID,reportEntityID:0,name:"",tempNewID:p,expanded:!1,entityFields:[],sortOrder:t.currentModel.reportEntities.length}}})}showReportEntityCopyModal(){this.set(e=>{e.reportEntityCopyFormFields=[],e.reportEntityCopyFormFields.push(new v({label:"Report Entity",required:!0,key:"reportEntityID",name:"reportEntityID",controlName:"reportEntityID",dynamicFormFieldTypeID:D.MULTISELECT,maxLength:1,options:e.models.map(t=>t.reportEntities).flat().map(t=>({label:e.models.find(i=>i.reportEntities.includes(t)).name+" : "+t.name,value:t.reportEntityID}))}))})}saveReportEntity(e){this.set(t=>{let i=t.currentModel.reportEntities?.findIndex(p=>p.reportEntityID===e.reportEntityID),r=t.currentModel.reportEntities?.findIndex(p=>p.tempNewID===e.tempNewID&&e?.tempNewID>0);i>-1?t.currentModel.reportEntities[i]=e:r>-1?t.currentModel.reportEntities[r]=e:(t.currentModel.reportEntities||(t.currentModel.reportEntities=[]),t.currentModel.reportEntities.push(e)),t.currentModel.pendingChanges=!0,t.currentReportEntity=null}),this.sequenceCurrentModelBasedOnIndexPositions()}copyReportEntity(e){this.set(t=>{let i=t.models.flatMap(r=>r.reportEntities);e.forEach(r=>{let p=S({},i.find(c=>c.reportEntityID===r));p.reportEntityID=0,p.tempNewID=Math.max(...t.currentModel.reportEntities?.map(c=>c.tempNewID))+1,p.sortOrder=t.currentModel.reportEntities.length,t.currentModel.reportEntities.push(p)}),t.currentModel.pendingChanges=!0,t.reportEntityCopyFormFields=null}),this.sequenceCurrentModelBasedOnIndexPositions()}extractEntityFieldType(e){return e.fieldLookupTypeID>0?f.LOOKUP:e.expression?.length>0?f.CALCULATED:f.SIMPLE}showEntityFieldEditModal(e){this.set(t=>{let i=t.currentModel.reportEntities?.find(c=>c.reportEntityID===e.reportEntityID),r=i.entityFields?.find(c=>c.reportEntityFieldID===e.entityField?.reportEntityFieldID),p=i.entityFields?.find(c=>c.tempNewID===e.entityField?.tempNewID&&e.entityField?.tempNewID>0);if(r)t.currentReportEntityField=r,t.currentReportEntityField.entityFieldTypeID=this.extractEntityFieldType(r),this.buildEntityFieldFormFields(t,r.entityFieldTypeID);else if(p)t.currentReportEntityField=p,t.currentReportEntityField.entityFieldTypeID=this.extractEntityFieldType(r),this.buildEntityFieldFormFields(t,t.currentReportEntityField.entityFieldTypeID,!0);else{let c=t.currentModel.reportEntities?.map(_=>_.entityFields).flat().filter(_=>_.tempNewID>0).map(_=>_.tempNewID),w=c?.length>0?Math.max(...c)+1:1;t.currentReportEntityField={entityFieldTypeID:f.SIMPLE,reportEntityFieldID:0,reportEntityID:i.reportEntityID,childReportEntityFields:[],tempNewID:w,sortOrder:i.entityFields?.length},this.buildEntityFieldFormFields(t,f.SIMPLE,!0)}})}onEntityFieldTypeChange(e){this.set(t=>{t.currentReportEntityField.entityFieldTypeID=e.newEntityFieldType,this.buildEntityFieldFormFields(t,e.newEntityFieldType,t.currentReportEntityField.reportFieldID===null||t.currentReportEntityField.reportFieldID===void 0)})}onEntityFieldDisplayNameOverrideChange(e){this.set(t=>{t.currentReportEntityField.displayNameOverride=e})}onEntityFieldExpressionChange(e){this.set(t=>{t.currentReportEntityField.expression=e}),this.set(t=>{let i=0,r=/\{(param_\d)\}/g;i=[...e.matchAll(r)].map(_=>_[1]).filter((_,P,Z)=>Z.indexOf(_)===P).length;let c=this.state.currentReportEntityField.childReportEntityFields?.length??0,w=Math.abs(i-c);for(let _=0;_<w;_++)if(i>c){t.currentReportEntityField.childReportEntityFields||(t.currentReportEntityField.childReportEntityFields=[]);let Z={sortOrder:t.currentReportEntityField.childReportEntityFields.length+1,reportEntityFieldID:0,reportEntityID:t.currentReportEntityField.reportEntityID,reportFieldID:void 0,entityFieldTypeID:f.SIMPLE};t.currentReportEntityField.childReportEntityFields.push(Z),t.currentModel.pendingChanges=!0}else if(c>i&&t.currentReportEntityField.childReportEntityFields.length>0){t.currentReportEntityField.childReportEntityFields.splice(t.currentReportEntityField.childReportEntityFields.length-1,1);for(let P=0;P<t.currentReportEntityField.childReportEntityFields.length;P++)t.currentReportEntityField.childReportEntityFields[P].sortOrder=P+1;t.currentModel.pendingChanges=!0}})}removeLastChildEntityField(){this.set(e=>{if(e.currentReportEntityField.childReportEntityFields.length>0){e.currentReportEntityField.childReportEntityFields.splice(e.currentReportEntityField.childReportEntityFields.length-1,1);for(let t=0;t<e.currentReportEntityField.childReportEntityFields.length;t++)e.currentReportEntityField.childReportEntityFields[t].sortOrder=t+1;e.currentModel.pendingChanges=!0}})}addChildEntityField(e){this.set(t=>{t.currentReportEntityField.childReportEntityFields||(t.currentReportEntityField.childReportEntityFields=[]);let r={sortOrder:t.currentReportEntityField.childReportEntityFields.length+1,reportEntityFieldID:0,reportEntityID:t.currentReportEntityField.reportEntityID,reportFieldID:e,entityFieldTypeID:f.SIMPLE};t.currentReportEntityField.childReportEntityFields.push(r),t.currentModel.pendingChanges=!0})}editChildEntityField(e,t){this.set(i=>{i.currentReportEntityField.childReportEntityFields.length>e&&(i.currentReportEntityField.childReportEntityFields[e].reportFieldID=t),i.currentModel.pendingChanges=!0})}getEntityFieldTypeOptions(e=!1){let t=[];return t.push({label:"Simple",value:f.SIMPLE}),t.push({label:"Calculated",value:f.CALCULATED}),t.push({label:"Lookup",value:f.LOOKUP}),e&&t.push({label:"Multiple",value:f.MULTIPLE}),t}buildEntityFieldFormFields(e,t,i=!1){e.entityFieldFormFields=[],e.entityFieldFormFields.push(new v({label:"Field Type",required:!0,key:"entityFieldTypeID",name:"entityFieldTypeID",controlName:"entityFieldTypeID",dynamicFormFieldTypeID:D.DROPDOWN,options:this.getEntityFieldTypeOptions(i)})),e.entityFieldFormFields.push(new v({label:"Convert from UTC",required:!1,key:"convertFromUTC",name:"convertFromUTC",controlName:"convertFromUTC",dynamicFormFieldTypeID:D.CHECKBOX})),t!==f.CALCULATED&&e.entityFieldFormFields.push(new v({label:"Report Field",required:!1,key:"reportFieldID",name:"reportFieldID",controlName:"reportFieldID",dynamicFormFieldTypeID:D.MULTISELECT,maxLength:1,options:(0,ae.sortBy)(Object.values(e.reportFieldAliases),[r=>r.tableAliasID]).map(r=>({label:e.reportTableAliases[r.tableAliasID].displayName+" : "+r.displayName,value:r.reportFieldID}))})),t===f.LOOKUP&&e.entityFieldFormFields.push(new v({label:"Lookup Type",required:!0,key:"fieldLookupTypeID",name:"fieldLookupTypeID",controlName:"fieldLookupTypeID",dynamicFormFieldTypeID:D.DROPDOWN,options:e.lookupTypeOptions.map(r=>({label:r.label,value:r.value}))})),t!==f.MULTIPLE&&e.entityFieldFormFields.push(new v({label:"Display Name Override",required:!1,key:"displayNameOverride",name:"displayNameOverride",controlName:"displayNameOverride",dynamicFormFieldTypeID:D.TEXT}),new v({label:"Display Format Override",required:!1,key:"displayFormatOverride",name:"displayFormatOverride",controlName:"displayFormatOverride",dynamicFormFieldTypeID:D.TEXT})),t===f.CALCULATED&&e.entityFieldFormFields.push(new v({label:"Expression",required:t===f.CALCULATED,key:"expression",name:"expression",controlName:"expression",dynamicFormFieldTypeID:D.TEXT}),new v({label:"Data Type",required:t===f.CALCULATED,key:"expressionDataTypeID",name:"expressionDataTypeID",controlName:"expressionDataTypeID",dynamicFormFieldTypeID:D.DROPDOWN,options:e.fieldDataTypes.map(r=>({label:r.label,value:r.value}))}),new v({label:"Supports Totals",required:!1,key:"expressionSupportsTotals",name:"expressionSupportsTotals",controlName:"expressionSupportsTotals",dynamicFormFieldTypeID:D.CHECKBOX}),new v({label:"Report Field used for Display Name",required:!1,key:"displayReportFieldID",name:"displayReportFieldID",controlName:"displayReportFieldID",dynamicFormFieldTypeID:D.DROPDOWN,maxLength:1,options:(0,ae.sortBy)(Object.values(e.reportFieldAliases),[r=>r.tableAliasID]).map(r=>({label:e.reportTableAliases[r.tableAliasID].displayName+" : "+r.displayName,value:r.reportFieldID}))}))}saveReportEntityField(e){this.set(t=>{let i=t.currentModel.reportEntities?.find(c=>c.reportEntityID===e.reportEntityID),r=i.entityFields?.findIndex(c=>c.reportEntityFieldID===e?.reportEntityFieldID&&e?.reportEntityFieldID>0),p=i.entityFields?.findIndex(c=>c.tempNewID===e?.tempNewID&&e?.tempNewID>0);r>-1?i.entityFields[r]=e:p>-1?i.entityFields[p]=e:(i.entityFields||(i.entityFields=[]),i.entityFields.push(e)),t.currentReportEntityField=null,t.currentModel.pendingChanges=!0}),this.sequenceCurrentModelBasedOnIndexPositions()}saveMultipleReportEntityFields(e){this.set(t=>{let i=t.currentModel.reportEntities?.find(r=>r.reportEntityID===e[0].reportEntityID);i.entityFields||(i.entityFields=[]),i.entityFields.push(...e),t.currentReportEntityField=null,t.currentModel.pendingChanges=!0}),this.sequenceCurrentModelBasedOnIndexPositions()}cancelReportEntityEdit(){this.set(e=>{e.currentReportEntity=null})}cancelReportEntityCopy(){this.set(e=>{e.reportEntityCopyFormFields=null})}cancelEntityFieldEdit(){this.set(e=>{e.currentReportEntityField=null})}cancelFilterEdit(){this.set(e=>{e.currentReportFilter=null})}toggleEntityExpanded(e){this.set(t=>{if(t.currentModel){let i=t.currentModel.reportEntities?.find(r=>r.reportEntityID===e);i&&(i.expanded=!i.expanded)}})}moveEntityFieldToNewEntity(e,t,i,r){this.set(p=>{if(p.currentModel){let c=p.currentModel.reportEntities?.find(_=>_.reportEntityID===i),w=p.currentModel.reportEntities?.find(_=>_.reportEntityID===r);if(c&&w){let _=c.entityFields?.splice(e,1)[0];w.entityFields?.splice(t,0,_)}p.currentModel.pendingChanges=!0}}),this.sequenceCurrentModelBasedOnIndexPositions()}moveEntityWithinModel(e,t){this.set(i=>{if(i.currentModel){let r=i.currentModel.reportEntities?.splice(e,1)[0];i.currentModel.reportEntities?.splice(t,0,r),i.currentModel.pendingChanges=!0}}),this.sequenceCurrentModelBasedOnIndexPositions()}removeEntityFieldFromEntity(e,t){this.set(i=>{if(i.currentModel){let r=i.currentModel.reportEntities?.find(p=>p.reportEntityID===t);r&&r.entityFields?.splice(e,1),i.currentModel.pendingChanges=!0}}),this.sequenceCurrentModelBasedOnIndexPositions()}removeEntityFromModel(){this.set(e=>{if(e.currentModel&&e.currentReportEntity){let t=e.currentModel.reportEntities.findIndex(i=>i.reportEntityID===e.currentReportEntity.reportEntityID||i.tempNewID===e.currentReportEntity.tempNewID);e.currentModel.reportEntities?.splice(t,1),e.currentReportEntity=null,e.currentModel.pendingChanges=!0}}),this.sequenceCurrentModelBasedOnIndexPositions()}moveEntityFieldWithinEntity(e,t,i){this.set(r=>{if(r.currentModel){let p=r.currentModel.reportEntities?.find(c=>c.reportEntityID===i);if(p){let c=p.entityFields?.splice(e,1)[0];p.entityFields?.splice(t,0,c)}r.currentModel.pendingChanges=!0}}),this.sequenceCurrentModelBasedOnIndexPositions()}sequenceCurrentModelBasedOnIndexPositions(){this.set(e=>{if(e.currentModel)for(let t=0;t<e.currentModel.reportEntities.length;t++){e.currentModel.reportEntities[t].sortOrder=t+1;for(let i=0;i<e.currentModel.reportEntities[t].entityFields.length;i++)e.currentModel.reportEntities[t].entityFields[i].sortOrder=i+1}})}showFilterEditModal(e){this.set(t=>{let i=t.currentModel.reportFilters?.find(p=>p.reportFilterID===e?.reportFilterID),r=t.currentModel.reportFilters?.find(p=>p.tempNewID===e?.tempNewID&&e?.tempNewID>0);if(i)t.currentReportFilter=i;else if(r)t.currentReportFilter=r;else{let p=t.currentModel.reportFilters?.length>0?t.currentModel.reportFilters?.length+1:1;t.currentReportFilter={reportModelID:t.currentModel.reportModelID,tempNewID:p,reportFilterID:0,customReportFilterTypeID:null,value:null,overrideLabel:null}}})}saveReportFilter(e){this.set(t=>{let i=t.currentModel.reportFilters?.findIndex(p=>p.reportFilterID===e?.reportFilterID&&e?.reportFilterID>0),r=t.currentModel.reportFilters?.findIndex(p=>p.tempNewID===e?.tempNewID&&e?.tempNewID>0);i>-1?t.currentModel.reportFilters[i]=e:r>-1?t.currentModel.reportFilters[r]=e:(t.currentModel.reportFilters||(t.currentModel.reportFilters=[]),t.currentModel.reportFilters.push(e)),t.currentModel.pendingChanges=!0,t.currentReportFilter=n
1ull}),this.sequenceCurrentModelBasedOnIndexPositions()}removeFilter(e){this.set(t=>{t.currentModel&&(t.currentModel.reportFilters?.splice(e,1),t.currentModel.pendingChanges=!0)}),this.sequenceCurrentModelBasedOnIndexPositions()}saveModel(){this.set(e=>{e.savingModel=!0}),this.modelAdminService.updateModel(this.state.currentModel.reportModelID,this.state.currentModel).subscribe({next:()=>{this.siteDataService.showSiteSuccessAlert("Model saved successfully"),this.set(e=>{e.savingModel=!1}),this.loadModel(this.state.currentModel.reportModelID)}})}ngOnDestroy(){this.unsubscribe$.next(null),this.unsubscribe$.complete()}};l.\u0275fac=function(t){return new(t||l)(k(Q),k(X),k(G),k(T))},l.\u0275prov=q({token:l,factory:l.\u0275fac});let o=l;return o})();var Pe=ee(se());var ke=(()=>{let l=class l{constructor(e,t){this.modelAdminStore=e,this.siteDataService=t,this.unsubscribe$=new R}ngOnInit(){this.siteDataService.hideSiteLoader(),this.modelAdminStore.select(e=>({loading:e.loading})).pipe(C(this.unsubscribe$)).subscribe(e=>{this.loading=e.loading}),this.modelAdminStore.select(e=>({models:e.models})).pipe(C(this.unsubscribe$)).subscribe(e=>{this.models=e.models}),this.modelAdminStore.select(e=>({currentModel:e.currentModel})).pipe(C(this.unsubscribe$)).subscribe(e=>{this.currentModel=(0,Pe.cloneDeep)(e.currentModel)}),this.modelAdminStore.initialize()}ngOnDestroy(){this.unsubscribe$.next(null),this.unsubscribe$.complete()}};l.\u0275fac=function(t){return new(t||l)(I(O),I(T))},l.\u0275cmp=j({type:l,selectors:[["ng-component"]],standalone:!1,features:[he([O])],decls:7,vars:4,consts:[["role","main"],[3,"pageTitle","parentLinkUrl","parentLinkText","showBackButton"]],template:function(t,i){t&1&&(s(0,"main",0),n(1,`
2    `),s(2,"app-admin-header",1),n(3,`
3    `),a(),n(4,`
4
5    `),x(5,"router-outlet"),n(6,`
6`),a()),t&2&&(m(2),E("pageTitle",(i.currentModel==null?null:i.currentModel.reportModelID)===null?"Custom Report Model Admin":i.currentModel==null?null:i.currentModel.name)("parentLinkUrl",(i.currentModel==null?null:i.currentModel.reportModelID)>0?"/admin/reports/custom-report-model-admin/":void 0)("parentLinkText",(i.currentModel==null?null:i.currentModel.reportModelID)>0?"Custom Report Model Admin":void 0)("showBackButton",(i.currentModel==null?null:i.currentModel.reportModelID)>0))},dependencies:[Ce,Se],encapsulation:2});let o=l;return o})();var A=ee(se());var qe=o=>({"show-dropzone":o}),je=()=>["./"],Ue=()=>({width:"100%"});function We(o,l){o&1&&(n(0,`
7                            `),x(1,"i",21),n(2,`
8                            `))}function ze(o,l){o&1&&(n(0,`
9                            `),x(1,"i",22),n(2,`
10                            `))}function He(o,l){if(o&1){let d=b();n(0,`
11                                `),s(1,"a",15),h("click",function(){y(d);let t=u().$index,i=u().$implicit,r=u(2);return F(r.removeEntityFieldFromEntity(t,i.reportEntityID))}),n(2,`
12                                    `),x(3,"i",25),n(4,`
13                                `),a(),n(5,`
14                                `)}}function Ke(o,l){if(o&1){let d=b();n(0,`
15                        `),s(1,"div",23,0),h("mouseover",function(){return""})("mouseleave",function(){return""}),n(3,`
16                            `),s(4,"label"),n(5,`
17                                `),s(6,"a",24),h("click",function(){let t=y(d).$implicit,i=u().$implicit,r=u(2);return F(r.editReportEntityField(i.reportEntityID,t))}),n(7),a(),n(8,`
18                                `),g(9,He,6,0),a(),n(10,`
19                        `),a(),n(11,`
20                        `)}if(o&2){let d=l.$implicit,e=ie(2),t=u(3);m(),E("ngClass",e.matches(":hover")?"btn-success":""),m(6),U(`
21                                    `,d.displayNameOverride??t.getReportField(d.displayReportFieldID||d.reportFieldID).displayName,`
22                                `),m(2),M(e.matches(":hover")?9:-1)}}function Xe(o,l){if(o&1){let d=b();n(0,`
23                `),s(1,"div",10),n(2,`
24                    `),s(3,"div",11),n(4,`
25                        `),s(5,"a",14),h("click",function(){let t=y(d).$implicit,i=u(2);return F(i.toggleEntityExpanded(t.reportEntityID))}),n(6,`
26                            `),g(7,We,3,0),g(8,ze,3,0),a(),n(9,`
27                        `),s(10,"label"),n(11,`
28                            `),s(12,"a",15),h("click",function(){let t=y(d).$implicit,i=u(2);return F(i.editReportEntity(t))}),n(13),a(),n(14,`
29                            `),s(15,"span",16)(16,"a",15),h("click",function(){let t=y(d).$index,i=u(2);return F(i.moveEntityUp(t))}),x(17,"i",17),a()(),n(18,`
30                            `),s(19,"span",16)(20,"a",15),h("click",function(){let t=y(d).$index,i=u(2);return F(i.moveEntityDown(t))}),x(21,"i",18),a()(),n(22,`
31                        `),a(),n(23,`
32                    `),a(),n(24,`
33                    `),s(25,"div",19),h("cdkDropListDropped",function(t){y(d);let i=u(2);return F(i.entityFieldDropped(t))})("cdkDropListEntered",function(){y(d);let t=u(2);return F(t.entityFieldIsBeingDraggedEvent())}),n(26,`
34                        `),L(27,Ke,12,3,null,null,N),s(29,"div",20),n(30,`
35                            `),s(31,"label"),n(32,`
36                                `),s(33,"a",15),h("click",function(){let t=y(d).$implicit,i=u(2);return F(i.editReportEntityField(t.reportEntityID))}),n(34,`
37                                    `),x(35,"i",13),n(36,`
38                                    Add Entity Field
39                                `),a(),n(37,`
40                            `),a(),n(38,`
41                        `),a(),n(39,`
42                    `),a(),n(40,`
43                `),a(),n(41,`
44                `)}if(o&2){let d=l.$implicit,e=u(2);m(5),E("title","Toggle entity"+d.name),m(2),M(d.expanded?-1:7),m(),M(d.expanded?8:-1),m(5),U(`
45                                `,d.name,`
46                            `),m(4),E("pTooltip","Move entity up"),m(4),E("pTooltip","Move entity down"),m(4),E("id",Ee(d.reportEntityID))("cdkDropListData",d.entityFields)("cdkDropListConnectedTo",e.allEntityFields())("ngClass",K(12,qe,e.entityFieldIsBeingDragged))("hidden",!d.expanded),m(2),V(d.entityFields)}}function Ge(o,l){if(o&1){let d=b();n(0,`
47`),s(1,"section",5),n(2,`
48    `),s(3,"h3",6),n(4,"Entities"),a(),n(5,`
49    `),s(6,"div",7),n(7,`
50        `),s(8,"div",8),n(9,`
51            `),s(10,"div",9),n(11,`
52                `),L(12,Xe,42,14,null,null,N),s(14,"div",10),n(15,`
53                    `),s(16,"div",11),n(17,`
54                        `),s(18,"label"),n(19,`
55                            `),s(20,"a",12),h("click",function(){y(d);let t=u();return F(t.editReportEntity())}),n(21,`
56                                `),x(22,"i",13),n(23,`
57                                Add Entity
58                            `),a(),n(24,`
59                        `),a(),n(25,`
60                    `),a(),n(26,`
61                `),a(),n(27,`
62                `),s(28,"div",10),n(29,`
63                    `),s(30,"div",11),n(31,`
64                        `),s(32,"label"),n(33,`
65                            `),s(34,"a",12),h("click",function(){y(d);let t=u();return F(t.copyReportEntity())}),n(35,`
66                                `),x(36,"i",13),n(37,`
67                                Copy Existing Entity
68                            `),a(),n(38,`
69                        `),a(),n(39,`
70                    `),a(),n(40,`
71                `),a(),n(41,`
72            `),a(),n(42,`
73        `),a(),n(43,`
74    `),a(),n(44,`
75`),a(),n(45,`
76`)}if(o&2){let d=u();m(12),V(d.model.reportEntities)}}function Je(o,l){if(o&1){let d=b();n(0,`
77            `),s(1,"div",26,0),h("mouseover",function(){return""})("mouseleave",function(){return""}),n(3,`
78                `),s(4,"label"),n(5,`
79                    `),s(6,"a",24),h("click",function(){let t=y(d).$implicit,i=u(2);return F(i.editReportFilter(t))}),n(7),a(),n(8,`
80                    `),n(9,`
81                `),a(),n(10,`
82            `),a(),n(11,`
83            `)}if(o&2){let d=l.$implicit,e=ie(2),t=u(2);m(),E("ngClass",e.matches(":hover")?"btn-success":""),m(6),U(`
84                        `,t.getFilterLabel(d),`
85                    `)}}function Ye(o,l){if(o&1&&(n(0,`
86`),s(1,"section",5),n(2,`
87    `),s(3,"h3",6),n(4,"Filters"),a(),n(5,`
88    `),s(6,"div",7),n(7,`
89        `),s(8,"div",8),n(9,`
90            `),L(10,Je,12,2,null,null,N),a(),n(12,`
91    `),a(),n(13,`
92`),a(),n(14,`
93`)),o&2){let d=u();m(10),V(d.model.reportFilters)}}function Qe(o,l){if(o&1){let d=b();n(0,`
94`),s(1,"div"),n(2,`
95    `),s(3,"button",27),h("click",function(){y(d);let t=u();return F(t.saveModel())}),n(4,"Save"),a(),n(5,`
96    `),s(6,"button",28),n(7,"Cancel"),a(),n(8,`
97`),a(),n(9,`
98`)}o&2&&(m(6),E("routerLink",le(1,je)))}function Ze(o,l){if(o&1){let d=b();n(0,`
99        `),s(1,"app-dynamic-form",29),h("onSubmit",function(t){y(d);let i=u();return F(i.saveReportEntity(t))})("onCancel",function(){y(d);let t=u();return F(t.cancelReportEntityEdit())})("onDelete",function(){y(d);let t=u();return F(t.removeEntityFromModel())}),n(2,`
100            `),s(3,"app-dynamic-form-field",30),n(4,`
101            `),a(),n(5,`
102        `),a(),n(6,`
103        `)}if(o&2){let d=u();m(),E("fields",d.reportEntityFormFields)("entity",d.currentReportEntity)("contentFieldsMode",!0)("horizontalForm",!0)("showCancelButton",!0)("showSubmitButton",!0)("showDeleteButton",!0)("buttonsPosition","left")}}function et(o,l){if(o&1){let d=b();n(0,`
104        `),s(1,"app-dynamic-form",31),h("onSubmit",function(t){y(d);let i=u();return F(i.cloneReportEntities(t))})("onCancel",function(){y(d);let t=u();return F(t.cancelReportEntityCopy())}),n(2,`
105            `),s(3,"app-dynamic-form-field",32),n(4,`
106            `),a(),n(5,`
107        `),a(),n(6,`
108        `)}if(o&2){let d=u();m(),E("fields",d.reportEntityCopyFormFields)("entity",d.currentReportEntity)("contentFieldsMode",!0)("horizontalForm",!0)("showCancelButton",!0)("showSubmitButton",!0)("buttonsPosition","left"),m(2),E("enableFilter",!0)}}function tt(o,l){o&1&&(n(0,`
109            `),x(1,"app-dynamic-form-field",43),n(2,`
110            `)),o&2&&(m(),E("enableFilter",!0))}function it(o,l){if(o&1){let d=b();n(0,`
111                `),s(1,"div",44),n(2,`
112                    `),s(3,"label",45),n(4,`
113                        `),s(5,"span"),n(6,`
114                            `),s(7,"span",46),n(8,"*"),a(),n(9,`
115                            `),s(10,"span",47),n(11,"required"),a(),n(12,`
116                        `),a(),n(13,`
117                        `),s(14,"span"),n(15),a(),n(16,`
118                    `),a(),n(17,`
119                    `),s(18,"div",48),n(19,`
120                        `),s(20,"p-multiSelect",49),oe("ngModelChange",function(t){let i=y(d).$implicit;return re(i.reportFieldID,t)||(i.reportFieldID=t),F(t)}),h("onChange",function(t){let i=y(d).$index,r=u(3);return F(r.editChildEntityField(i,t.value))}),a(),n(21,`
121                    `),a(),n(22,`
122                `),a(),n(23,`
123                `)}if(o&2){let d=l.$implicit,e=l.$index,t=u(3);m(3),E("for","param_"+(e+1)),m(12),Fe("{param_"+(e+1)+"}"),m(5),ye(le(11,Ue)),E("autofocusFilter",!0)("name","param_"+(e+1))("options",t.reportFieldOptions)("maxSelectedLabels",3)("selectionLimit",1)("filter",!0),ne("ngModel",d.reportFieldID)}}function nt(o,l){if(o&1&&(n(0,`
124            `),s(1,"div"),n(2,`
125                `),L(3,it,24,12,null,null,N),a(),n(5,`
126            `)),o&2){let d=u(2);m(3),V(d.currentReportEntityField.childReportEntityFields)}}function rt(o,l){if(o&1){let d=b();n(0,`
127        `),s(1,"app-dynamic-form",33,1),h("onSubmit",function(t){y(d);let i=u();return F(i.saveReportEntityField(t))})("onCancel",function(){y(d);let t=u();return F(t.cancelReportEntityFieldEdit())}),n(3,`
128            `),s(4,"app-dynamic-form-field",34),h("onChange",function(t){y(d);let i=u();return F(i.onEntityFieldTypeChange(t))}),a(),n(5,`
129            `),x(6,"app-dynamic-form-field",35),n(7,`
130            `),s(8,"app-dynamic-form-field",36),h("onChange",function(t){y(d);let i=u();return F(i.onEntityFieldDisplayNameOverrideChange(t))}),a(),n(9,`
131            `),g(10,tt,3,1),x(11,"app-dynamic-form-field",37),n(12,`
132            `),x(13,"app-dynamic-form-field",38),n(14,`
133            `),s(15,"app-dynamic-form-field",39),h("onChange",function(t){y(d);let i=u();return F(i.validateExpression(t))}),a(),n(16,`
134            `),x(17,"app-dynamic-form-field",40),n(18,`
135            `),x(19,"app-dynamic-form-field",41),n(20,`
136            `),x(21,"app-dynamic-form-field",42),n(22,`
137            `),g(23,nt,6,0),a(),n(24,`
138        `)}if(o&2){let d=u();m(),E("fields",d.entityFieldFormFields)("entity",d.currentReportEntityField)("contentFieldsMode",!0)("horizontalForm",!0)("showCancelButton",!0)("showSubmitButton",!0)("buttonsPosition","left"),m(9),M(d.currentReportEntityField.entityFieldTypeID===d.EntityFieldType.CALCULATED?10:-1),m(),E("enableFilter",!0),m(2),E("enableFilter",!0),m(10),M(d.currentReportEntityField.entityFieldTypeID===d.EntityFieldType.CALCULATED?23:-1)}}function ot(o,l){if(o&1){let d=b();n(0,`
139        `),s(1,"app-dynamic-form",50),h("onSubmit",function(t){y(d);let i=u();return F(i.saveReportFilter(t))})("onCancel",function(){y(d);let t=u();return F(t.cancelReportFilterEdit())}),n(2,`
140            `),s(3,"app-dynamic-form-field",51),n(4,`
141            `),a(),n(5,`
142            `),s(6,"app-dynamic-form-field",52),n(7,`
143            `),a(),n(8,`
144            `),s(9,"app-dynamic-form-field",53),n(10,`
145            `),a(),n(11,`
146        `),a(),n(12,`
147        `)}if(o&2){let d=u();m(),E("fields",d.filterFormFields)("entity",d.currentReportFilter)("contentFieldsMode",!0)("horizontalForm",!0)("showCancelButton",!0)("showSubmitButton",!0)("buttonsPosition","left"),m(2),E("enableFilter",!0)}}var Ne=(()=>{let l=class l{constructor(e,t,i,r){this.modelAdminStore=e,this.route=t,this.router=i,this.siteDataService=r,this.unsubscribe$=new R,this.entityFieldIsBeingDragged=!1,this.EntityFieldType=f}ngOnInit(){this.modelAdminStore.select(e=>({currentModel:e.currentModel,currentReportEntity:e.currentReportEntity,currentReportEntityField:e.currentReportEntityField,reportEntityFormFields:e.reportEntityFormFields,reportEntityCopyFormFields:e.reportEntityCopyFormFields,entityFieldFormFields:e.entityFieldFormFields,filterFields:e.filterFields,reportFilterTypes:e.filterTypes,currentReportFilter:e.currentReportFilter})).pipe(C(this.unsubscribe$)).subscribe(e=>{this.model=(0,A.cloneDeep)(e.currentModel),this.reportFilterTypes=e.reportFilterTypes,this.filterFormFields=e.filterFields,this.currentReportEntity=(0,A.cloneDeep)(e.currentReportEntity),this.currentReportFilter=(0,A.cloneDeep)(e.currentReportFilter),this.currentReportEntityField=e.currentReportEntityField?W(S({},(0,A.cloneDeep)(e.currentReportEntityField)),{reportFieldID:e.currentReportEntityField?.reportFieldID?[e.currentReportEntityField?.reportFieldID]:[],childReportEntityFields:e.currentReportEntityField?.childReportEntityFields?.map(t=>W(S({},t),{reportFieldID:t.reportFieldID?[t.reportFieldID]:[]}))}):void 0,this.reportEntityFormFields=(0,A.cloneDeep)(e.reportEntityFormFields),this.reportEntityCopyFormFields=(0,A.cloneDeep)(e.reportEntityCopyFormFields),this.entityFieldFormFields=(0,A.cloneDeep)(e.entityFieldFormFields)}),this.modelAdminStore.select(e=>({allTables:e.reportTableAliases,allFields:e.reportFieldAliases})).pipe(C(this.unsubscribe$)).subscribe(e=>{this.reportTableAliases=e.allTables,this.reportFieldAliases=e.allFields,this.reportFieldOptions=this.getReportFieldOptions()}),this.siteDataService.hideSiteLoader(),this.modelAdminStore.select(e=>({loading:e.loading})).pipe(C(this.unsubscribe$)).subscribe(e=>{this.loading=e.loading,this.loading||this.initialize()})}allEntityFields(){return this.model.reportEntities.map(e=>e.reportEntityID.toString())}initialize(){this.route.params.pipe(C(this.unsubscribe$)).subscribe(e=>{let t=+e.modelID;this.modelAdminStore.editModel(t)})}editReportEntity(e){this.modelAdminStore.showReportEntityEditModal(e)}copyReportEntity(){this.modelAdminStore.showReportEntityCopyModal()}cancelReportEntityEdit(){this.modelAdminStore.cancelReportEntityEdit()}cancelReportEntityCopy(){this.modelAdminStore.cancelReportEntityCopy()}saveReportEntity(e){this.modelAdminStore.saveReportEntity(S(S({},this.currentReportEntity),e))}cloneReportEntities(e){this.modelAdminStore.copyReportEntity(e.reportEntityID)}editReportEntityField(e,t){this.modelAdminStore.showEntityFieldEditModal({entityField:t,reportEntityID:e})}cancelReportEntityFieldEdit(){this.modelAdminStore.cancelEntityFieldEdit()}saveReportEntityField(e){if(this.currentReportEntityField.entityFieldTypeID===f.MULTIPLE&&e.reportFieldID.length>1){let t=[];
147e.reportFieldID.forEach(i=>{t.push({sortOrder:this.currentReportEntityField.sortOrder,reportEntityID:this.currentReportEntityField.reportEntityID,tempNewID:this.currentReportEntityField.tempNewID,reportEntityFieldID:this.currentReportEntityField.reportEntityFieldID,reportFieldID:i,entityFieldTypeID:f.SIMPLE,childReportEntityFields:this.currentReportEntityField.childReportEntityFields})}),this.modelAdminStore.saveMultipleReportEntityFields(t);return}e.reportFieldID&&(e.reportFieldID=e.reportFieldID[0]);for(let t=0;t<this.currentReportEntityField.childReportEntityFields?.length;t++)this.currentReportEntityField.childReportEntityFields[t].reportFieldID=this.currentReportEntityField.childReportEntityFields[t].reportFieldID[0];this.modelAdminStore.saveReportEntityField(W(S({sortOrder:this.currentReportEntityField.sortOrder,reportEntityID:this.currentReportEntityField.reportEntityID,tempNewID:this.currentReportEntityField.tempNewID,reportEntityFieldID:this.currentReportEntityField.reportEntityFieldID},e),{childReportEntityFields:this.currentReportEntityField.childReportEntityFields}))}editReportFilter(e){this.modelAdminStore.showFilterEditModal(e)}cancelReportFilterEdit(){this.modelAdminStore.cancelFilterEdit()}saveReportFilter(e){this.modelAdminStore.saveReportFilter(S({reportModelID:this.model.reportModelID,tempNewID:this.currentReportFilter.tempNewID,reportFilterID:this.currentReportFilter.reportFilterID},e))}removeFilter(e){this.modelAdminStore.removeFilter(e)}getFilterLabel(e){return e.overrideLabel??this.reportFilterTypes.find(t=>t.value===e.customReportFilterTypeID).label}moveEntityUp(e){let t=e===0?0:e-1;this.modelAdminStore.moveEntityWithinModel(e,t)}moveEntityDown(e){let t=e===this.model.reportEntities.length-1?this.model.reportEntities.length-1:e+1;this.modelAdminStore.moveEntityWithinModel(e,t)}entityFieldDropped(e){this.entityFieldIsBeingDragged=!1;let t=e.currentIndex,i=e.previousIndex,r=+e.container.id,p=+e.previousContainer.id;r===p?this.modelAdminStore.moveEntityFieldWithinEntity(i,t,+e.container.id):this.modelAdminStore.moveEntityFieldToNewEntity(i,t,p,r)}getReportFieldOptions(){let e={label:"Choose Field",value:void 0},t=this.reportFieldAliases?Object.values(this.reportFieldAliases)?.map(i=>({label:this.reportTableAliases[i.tableAliasID].displayName+" : "+i.displayName,value:i.reportFieldID})):[];return[e,...t]}getParameterFormFields(){return this.entityFieldFormFields?.filter(e=>e.name.includes("param_"))??[]}editChildEntityField(e,t){let i=t.length>0?t[0]:void 0;this.modelAdminStore.editChildEntityField(e,i)}entityFieldIsBeingDraggedEvent(){this.entityFieldIsBeingDragged=!0}toggleEntityExpanded(e){this.modelAdminStore.toggleEntityExpanded(e)}getReportField(e){return this.reportFieldAliases[e]}removeEntityFieldFromEntity(e,t){this.modelAdminStore.removeEntityFieldFromEntity(e,t)}removeEntityFromModel(){this.modelAdminStore.removeEntityFromModel()}onEntityFieldTypeChange(e){this.modelAdminStore.onEntityFieldTypeChange({newEntityFieldType:e})}validateExpression(e){this.modelAdminStore.onEntityFieldExpressionChange(e.target.value)}onEntityFieldDisplayNameOverrideChange(e){this.modelAdminStore.onEntityFieldDisplayNameOverrideChange(e.target.value)}saveModel(){this.modelAdminStore.saveModel()}ngOnDestroy(){this.unsubscribe$.next(null),this.unsubscribe$.complete()}canDeactivate(){return this.model.pendingChanges?(this.siteDataService.hideSiteLoader(),!1):!0}};l.\u0275fac=function(t){return new(t||l)(I(O),I(X),I(G),I(T))},l.\u0275cmp=j({type:l,selectors:[["ng-component"]],hostBindings:function(t,i){t&1&&h("beforeunload",function(){return i.canDeactivate()},ue)},standalone:!1,decls:30,vars:39,consts:[["entityFieldElement",""],["form",""],["header","Report Entity","styleClass","standardWidthDialog",3,"visibleChange","visible","showHeader","closable","modal","draggable"],["header","Report Entity Field","styleClass","standardWidthDialog",3,"visibleChange","visible","showHeader","closable","modal","draggable"],["header","Report Filter","styleClass","standardWidthDialog",3,"visibleChange","visible","showHeader","closable","modal","draggable"],[1,"card"],[1,"card-subheading","mb-2"],[1,"entity-panel-container"],[1,"entity-panel"],[1,"entity-children"],[1,"entity"],[1,"entity-header"],["href","javascript:void(0)",1,"entity-header-button",3,"click"],[1,"fa","fa-plus"],["href","javascript:void(0)",1,"entity-header-button",3,"click","title"],[3,"click"],[1,"ml-2"],["tooltipPosition","top",1,"fa","fa-caret-up",3,"pTooltip"],["tooltipPosition","top",1,"fa","fa-caret-down",3,"pTooltip"],["cdkDropList","",1,"entity-fields",3,"cdkDropListDropped","cdkDropListEntered","cdkDropListData","id","cdkDropListConnectedTo","ngClass","hidden"],[1,"entity-field"],[1,"fa","fa-caret-right"],[1,"fa","fa-caret-down"],["cdkDrag","",1,"entity-field",3,"mouseover","mouseleave","ngClass"],[1,"ml-2",3,"click"],[1,"fa","fa-rectangle-xmark"],[1,"entity-header",3,"mouseover","mouseleave","ngClass"],[1,"btn","btn-lg","btn-primary",3,"click"],[1,"btn","btn-lg",3,"routerLink"],["formID","user-form",3,"onSubmit","onCancel","onDelete","fields","entity","contentFieldsMode","horizontalForm","showCancelButton","showSubmitButton","showDeleteButton","buttonsPosition"],["fieldName","name"],["formID","entity-form",3,"onSubmit","onCancel","fields","entity","contentFieldsMode","horizontalForm","showCancelButton","showSubmitButton","buttonsPosition"],["fieldName","reportEntityID",3,"enableFilter"],[3,"onSubmit","onCancel","fields","entity","contentFieldsMode","horizontalForm","showCancelButton","showSubmitButton","buttonsPosition"],["fieldName","entityFieldTypeID",3,"onChange"],["fieldName","convertFromUTC"],["fieldName","displayNameOverride",3,"onChange"],["fieldName","reportFieldID",3,"enableFilter"],["fieldName","fieldLookupTypeID",3,"enableFilter"],["fieldName","expression",3,"onChange"],["fieldName","expressionDataTypeID"],["fieldName","displayFormatOverride"],["fieldName","expressionSupportsTotals"],["fieldName","displayReportFieldID",3,"enableFilter"],[1,"form-group"],[3,"for"],["aria-hidden","true",1,"required-asterisk"],[1,"sr-only"],[1,"form-dropdown"],["selectedItemsLabel","({0} items selected)","appendTo","body",3,"ngModelChange","onChange","autofocusFilter","name","options","maxSelectedLabels","selectionLimit","filter","ngModel"],["formID","filter-form",3,"onSubmit","onCancel","fields","entity","contentFieldsMode","horizontalForm","showCancelButton","showSubmitButton","buttonsPosition"],["fieldName","customReportFilterTypeID","formID","filter-form",3,"enableFilter"],["fieldName","value","formID","filter-form"],["fieldName","overrideLabel","formID","filter-form"]],template:function(t,i){t&1&&(g(0,Ge,46,0),g(1,Ye,15,0),g(2,Qe,10,2),s(3,"p-dialog",2),h("visibleChange",function(p){return!p&&i.cancelReportEntityEdit()}),n(4,`
148    `),s(5,"div"),n(6,`
149        `),g(7,Ze,7,8),a(),n(8,`
150`),a(),n(9,`
151
152`),s(10,"p-dialog",2),h("visibleChange",function(p){return!p&&i.cancelReportEntityCopy()}),n(11,`
153    `),s(12,"div"),n(13,`
154        `),g(14,et,7,8),a(),n(15,`
155`),a(),n(16,`
156
157
158`),s(17,"p-dialog",3),oe("visibleChange",function(p){return re(i.currentReportEntityField,p)||(i.currentReportEntityField=p),p}),n(18,`
159    `),s(19,"div"),n(20,`
160        `),g(21,rt,25,11),a(),n(22,`
161`),a(),n(23,`
162
163`),s(24,"p-dialog",4),h("visibleChange",function(p){return!p&&i.cancelReportFilterEdit()}),n(25,`
164    `),s(26,"div"),n(27,`
165        `),g(28,ot,13,8),a(),n(29,`
166`),a()),t&2&&(M(i.loading?-1:0),m(),M(i.loading?-1:1),m(),M(i.model!=null&&i.model.pen
166dingChanges?2:-1),m(),B("min-height","500px"),E("visible",!!i.currentReportEntity)("showHeader",!0)("closable",!0)("modal",!0)("draggable",!1),m(2),B("min-height","500px"),m(2),M(i.currentReportEntity&&i.reportEntityFormFields?7:-1),m(3),B("min-height","500px"),E("visible",!!i.reportEntityCopyFormFields)("showHeader",!0)("closable",!0)("modal",!0)("draggable",!1),m(2),B("min-height","500px"),m(2),M(i.reportEntityCopyFormFields?14:-1),m(3),ne("visible",i.currentReportEntityField),E("showHeader",!0)("closable",!0)("modal",!0)("draggable",!1),m(2),B("min-height","500px"),m(2),M(i.currentReportEntityField&&i.entityFieldFormFields?21:-1),m(3),E("visible",!!i.currentReportFilter)("showHeader",!0)("closable",!0)("modal",!0)("draggable",!1),m(2),B("min-height","500px"),m(2),M(i.currentReportFilter&&i.filterFormFields?28:-1))},dependencies:[J,_e,we,Ie,fe,xe,ve,be,De,Te,Re],styles:[".entity-panel[_ngcontent-%COMP%], .query-panel[_ngcontent-%COMP%]{flex-basis:0;flex-grow:1;overflow:auto;height:600px}.filter-panel[_ngcontent-%COMP%]{flex-basis:0;flex-grow:1;overflow:auto;border-radius:var(--border-radius)}.entity-panel-container[_ngcontent-%COMP%], .query-filter-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:0;border:var(--border);border-radius:var(--border-radius);background:var(--grey-50);position:relative}.query-panel[_ngcontent-%COMP%]{padding-top:5px}.entity-children[_ngcontent-%COMP%]{float:left;width:100%}.entity[_ngcontent-%COMP%]{clear:both}.entity-header[_ngcontent-%COMP%]{border-bottom:1px solid var(--grey-300);padding:3px 0;white-space:nowrap}.entity-header[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{display:inline-block;cursor:pointer;font:700 15px Calibri;white-space:nowrap;margin:0}.entity-header[_ngcontent-%COMP%]   .entity-header-button[_ngcontent-%COMP%]{display:inline-block;padding:4px 10px 7px}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:var(--border-radius);background:var(--color-white);
166box-shadow:var(--box-shadow)}.entity-fields[_ngcontent-%COMP%]{float:left;width:100%;min-height:20px}.show-dropzone[_ngcontent-%COMP%]{border:2px solid var(--green-300)!important}.entity-field[_ngcontent-%COMP%]{outline:none!important}.entity-field[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:var(--grey-900);font-size:var(--text-medium);font-weight:400;padding:0 0 0 5px;display:inline-block;cursor:pointer;white-space:nowrap;margin-left:30px}.level_2[_ngcontent-%COMP%], .level_3[_ngcontent-%COMP%], .level_4[_ngcontent-%COMP%]{border-left:var(--border)}.level_2[_ngcontent-%COMP%]{padding-left:1.5rem;margin-right:.5rem}.title-button-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-left:1rem}"]});let o=l;return o})();var lt=o=>[o];function dt(o,l){if(o&1&&(n(0,`
167      `),s(1,"div",2),n(2,`
168        `),s(3,"a",3),n(4),a(),n(5,`
169      `),a(),n(6,`
170    `)),o&2){let d=l.$implicit;m(3),E("routerLink",K(2,lt,"./"+d.reportModelID)),m(),U(`
171          `,d.name,`
172        `)}}function st(o,l){if(o&1&&(n(0,`
173  `),s(1,"section",0),n(2,`
174    `),s(3,"div",1),n(4,"Model"),a(),n(5,`
175    `),L(6,dt,7,4,null,null,N),a(),n(8,`
176`)),o&2){let d=u();m(6),V(d.models)}}var Le=(()=>{let l=class l{constructor(e,t){this.modelAdminStore=e,this.siteDataService=t,this.unsubscribe$=new R}ngOnInit(){this.siteDataService.hideSiteLoader(),this.modelAdminStore.select(e=>({loading:e.loading})).pipe(C(this.unsubscribe$)).subscribe(e=>{this.loading=e.loading}),this.modelAdminStore.select(e=>({models:e.models})).pipe(C(this.unsubscribe$)).subscribe(e=>{this.models=e.models})}ngOnDestroy(){this.unsubscribe$.next(null),this.unsubscribe$.complete()}};l.\u0275fac=function(t){return new(t||l)(I(O),I(T))},l.\u0275cmp=j({type:l,selectors:[["ng-component"]],standalone:!1,decls:1,vars:1,consts:[[1,"card","col-md-9"],[1,"text-h4","mb-2"],[1,"report-category-item","bg-grey-lt"],[1,"full-width",3,"routerLink"]],template:function(t,i){t&1&&g(0,st,9,0),t&2&&M(i.loading?-1:0)},dependencies:[J],styles:[".entity-panel[_ngcontent-%COMP%], .query-panel[_ngcontent-%COMP%]{flex-basis:0;flex-grow:1;overflow:auto;height:600px}.filter-panel[_ngcontent-%COMP%]{flex-basis:0;flex-grow:1;overflow:auto;border-radius:var(--border-radius)}.entity-panel-container[_ngcontent-%COMP%], .query-filter-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:0;border:var(--border);border-radius:var(--border-radius);background:var(--grey-50);position:relative}.query-panel[_ngcontent-%COMP%]{padding-top:5px}.entity-children[_ngcontent-%COMP%]{float:left;width:100%}.entity[_ngcontent-%COMP%]{clear:both}.entity-header[_ngcontent-%COMP%]{border-bottom:1px solid var(--grey-300);padding:3px 0;white-space:nowrap}.entity-header[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{display:inline-block;cursor:pointer;font:700 15px Calibri;white-space:nowrap;margin:0}.entity-header[_ngcontent-%COMP%]   .entity-header-button[_ngcontent-%COMP%]{display:inline-block;padding:4px 10px 7px}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:var(--border-radius);background:var(--color-white);
176box-shadow:var(--box-shadow)}.entity-fields[_ngcontent-%COMP%]{float:left;width:100%;min-height:20px}.show-dropzone[_ngcontent-%COMP%]{border:2px solid var(--green-300)!important}.entity-field[_ngcontent-%COMP%]{outline:none!important}.entity-field[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:var(--grey-900);font-size:var(--text-medium);font-weight:400;padding:0 0 0 5px;display:inline-block;cursor:pointer;white-space:nowrap;margin-left:30px}.level_2[_ngcontent-%COMP%], .level_3[_ngcontent-%COMP%], .level_4[_ngcontent-%COMP%]{border-left:var(--border)}.level_2[_ngcontent-%COMP%]{padding-left:1.5rem;margin-right:.5rem}.title-button-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-left:1rem}",".report-category-item[_ngcontent-%COMP%]{padding:.35rem .5rem;display:flex;justify-content:space-between;align-items:center;font-size:var(--text-medium);margin-bottom:.25rem}.report-category-item[_ngcontent-%COMP%]:hover   .report-category-item--actions[_ngcontent-%COMP%]{opacity:1}.report-category-item[_ngcontent-%COMP%]   .report-category-item--actions[_ngcontent-%COMP%]{opacity:0;transition:opacity .1s linear}.report-category-item[_ngcontent-%COMP%]   .btn-sm[_ngcontent-%COMP%]{padding:4px 8px}"]});let o=l;return o})();var Ve=(()=>{let l=class l{canDeactivate(e){return e.canDeactivate()?!0:confirm("WARNING: You have unsaved changes. Press Cancel to go back and save these changes, or OK to lose these changes.")}};l.\u0275fac=function(t){return new(t||l)},l.\u0275prov=q({token:l,factory:l.\u0275fac,providedIn:"root"});let o=l;return o})();var Be=(()=>{let l=class l{};l.\u0275fac=function(t){return new(t||l)},l.\u0275mod=H({type:l}),l.\u0275inj=z({imports:[de.forChild([{path:"",component:ke,canActivateChild:[Y],children:[{path:":modelID",component:Ne,canActivateChild:[Y],canDeactivate:[Ve]},{path:"",component:Le,canActivateChild:[Y]}]}]),de]});let o=l;return o})();var ui=(()=>{let l=class l{};l.\u0275fac=function(t){return new(t||l)},l.\u0275mod=H({type:l}),l.\u0275inj=z({providers:[Q],imports:[Be,Ae,Oe]});let o=l;return o})();export{ui as ModelAdminModule};

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.