1"use strict";(self.webpackChunkmsm=self.webpackChunkmsm||[]).push([[3679],{93099:(P,I,i)=>{i.d(I,{d:()=>f});var s=i(36895),b=i(35985),l=i(1319),_=i(97392),u=i(33231),g=i(99818),S=i(28034),y=i(83574),e=i(51291),x=i(77987),p=i(94650);let f=(()=>{const v=class{};let E=v;return v.\u0275fac=function(O){return new(O||v)},v.\u0275mod=p.\u0275\u0275defineNgModule({type:v}),v.\u0275inj=p.\u0275\u0275defineInjector({imports:[s.CommonModule,x.l,b.K,l.x,_.Ps,g.yu,u.Co,S.n,y.N,e.h]}),E})()},23679:(P,I,i)=>{i.r(I),i.d(I,{KnowledgeCentreModule:()=>He});var s=i(36895),b=i(34793),l=i(26342),_=i(49095),u=i(47057),g=i(67065),S=i(75327),y=i(1319),e=i(94650),x=i(26682),p=i(7053),f=i(92340),E=i(80529);let v=(()=>{const r=class{constructor(n){this.http=n,this.APIURL=f.NZ.apiurl+"KnowledgeCategory/"}add(n){return this.http.post(this.APIURL+"Add",n)}update(n){return this.http.post(this.APIURL+"Update",n)}delete(n){return this.http.post(this.APIURL+"Delete?CategoryId="+n,{})}get(n){return this.http.get(this.APIURL+"Get?CategoryId="+n,{})}list(){return this.http.get(this.APIURL+"List")}};let o=r;return r.\u0275fac=function(a){return new(a||r)(e.\u0275\u0275inject(E.HttpClient))},r.\u0275prov=e.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),o})();var M=i(96882),C=i(24006),O=i(99818),T=i(18455),A=i(29203),R=i(46289),K=i(24363),L=i(97392),U=i(52073),F=i(33231),B=i(68669),V=i(34002),h=i(17805),N=i(87911),j=i(42624),k=i(54755);function Q(o,r){if(1&o&&(e.\u0275\u0275element(0,"dxi-column",25),e.\u0275\u0275pipe(1,"sentenceCase")),2&o){const d=r.$implicit;e.\u0275\u0275property("dataField",d.dataField)("minWidth",100)("caption",e.\u0275\u0275pipeBind1(1,5,d.title))("dataType",d.type)("format",d.format)}}function H(o,r){1&o&&e.\u0275\u0275element(0,"dxi-column",26),2&o&&e.\u0275\u0275property("allowExporting",!1)("minWidth",50)("fixed",!0)}function J(o,r){if(1&o){const d=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"button",27),e.\u0275\u0275listener("click",function(a){const m=e.\u0275\u0275restoreView(d).$implicit,c=e.\u0275\u0275nextContext();return a.stopPropagation(),e.\u0275\u0275resetView(c.delete(m.data.CategoryId))}),e.\u0275\u0275elementStart(2,"mat-icon"),e.\u0275\u0275text(3,"close"),e.\u0275\u0275elementEnd()()()}}function Z(o,r){if(1&o){const d=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",30),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(d);const a=e.\u0275\u0275nextContext(2),t=e.\u0275\u0275reference(1);return e.\u0275\u0275resetView(a.add(t))}),e.\u0275\u0275elementStart(1,"mat-icon"),e.\u0275\u0275text(2,"add"),e.\u0275\u0275elementEnd()()}}function Y(o,r){if(1&o){const d=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,Z,3,0,"button",28),e.\u0275\u0275elementStart(2,"button",29),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(d);const a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.showFilterRow=!a.showFilterRow)}),e.\u0275\u0275elementStart(3,"mat-icon"),e.\u0275\u0275text(4,"filter_list"),e.\u0275\u0275elementEnd()()()}if(2&o){const d=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1===d.currentUser.RoleId)}}function X(o,r){1&o&&(e.\u0275\u0275elementStart(0,"mat-error"),e.\u0275\u0275text(1,"Enter category name"),e.\u0275\u0275elementEnd())}function q(o,r){if(1&o&&(e.\u0275\u0275elementStart(0,"mat-option",39),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&o){const d=r.$implicit;e.\u0275\u0275property("value",d.CategoryId),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(d.CategoryName)}}function ee(o,r){if(1&o&&(e.\u0275\u0275elementStart(0,"button",44),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&o){const d=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("disabled",d.flagdisabled)("hidden",!d.showForm),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",d.formdata.CategoryId?"Update":"Add"," ")}}function te(o,r){if(1&o){const d=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",31)(1,"div",7)(2,"div",32)(3,"mat-form-field")(4,"mat-label"),e.\u0275\u0275text(5,"Category"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"input",33,34),e.\u0275\u0275listener("ngModelChange",function(a){e.\u0275\u0275restoreView(d);const t=e.\u0275\u0275nextContext();
1return e.\u0275\u0275resetView(t.formdata.CategoryName=a)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(8,X,2,0,"mat-error",35),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(9,"div",32)(10,"mat-form-field")(11,"mat-label"),e.\u0275\u0275text(12,"Parent Category"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"mat-select",36,37),e.\u0275\u0275listener("ngModelChange",function(a){e.\u0275\u0275restoreView(d);const t=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(t.formdata.ParentCategoryId=a)}),e.\u0275\u0275elementStart(15,"mat-option")(16,"ngx-mat-select-search",38),e.\u0275\u0275listener("ngModelChange",function(a){e.\u0275\u0275restoreView(d);const t=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(t.categoryFilter=a)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(17,"mat-option",39),e.\u0275\u0275text(18,"None"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(19,q,2,2,"mat-option",40),e.\u0275\u0275pipe(20,"stringFilterBy"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(21,"div",41)(22,"button",42),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(d);const a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.resetForm())}),e.\u0275\u0275text(23," Cancel "),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(24,ee,2,3,"button",43),e.\u0275\u0275elementEnd()()}if(2&o){const d=e.\u0275\u0275reference(7),n=e.\u0275\u0275nextContext();e.\u0275\u0275property("hidden",!n.showForm),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngModel",n.formdata.CategoryName),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",d.hasError("required")),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngModel",n.formdata.ParentCategoryId),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngModel",n.categoryFilter)("placeholderL
1abel","Search...")("noEntriesFoundLabel","Not found"),e.\u0275\u0275advance(1),e.\u0275\u0275property("value",0),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",e.\u0275\u0275pipeBind3(20,11,n.categoryList,n.categoryFilter,"CategoryName"))("ngForTrackByProperty","CategoryId"),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",1===n.currentUser.RoleId)}}const ne=function(o,r){return{"col-md-6 col-sm-12":o,"col-md-12":r}},oe=function(){return[5,10,25,50,100]};let ae=(()=>{const r=class{constructor(n,a,t,m,c){this.toasterService=n,this.knowledgeCategoryService=t,this.matDialog=m,this.activityLog=c,this.formdata={CategoryName:null,ParentCategory:null,CategoryId:0},this.columns=[{dataField:"CategoryName",title:"Category Name",type:"",format:""},{dataField:"ParentCategory",title:"Parent Category",type:"",format:""}],this.gridMessage="No data",this.showFilterRow=!1,this.flagdisabled=!1,this.isChange=!1,this.isDisplayed=!0,this.onDestroy$=new u.Subject,this.showForm=!1,this.excel_permisson=0,this.currentUser=a.currentUserSubject.getValue(),this.excel_permisson=a.checkPermission(l.vf.Excel_Export)}ngOnInit(){this.list()}submitform(n){n.invalid||(this.flagdisabled=!0,this.formdata.CategoryId?this.knowledgeCategoryService.update(this.formdata).pipe((0,g.takeUntil)(this.onDestroy$)).subscribe(a=>{a&&(this.toasterService.pop("success","Knowledge category updated successfully."),this.isChange=!0,this.flagdisabled=!1,this.resetForm(n),this.list())},a=>{this.flagdisabled=!1}):this.knowledgeCategoryService.add(this.formdata).pipe((0,g.takeUntil)(this.onDestroy$)).subscribe(a=>{a&&(this.toasterService.pop("success","Knowledge category saved successfully."),this.isChange=!0,this.flagdisabled=!1,this.resetForm(n),this.list())},a=>{this.flagdisabled=!1}))}ngOnDestroy(){this.onDestroy$.next(),this.onDestroy$.complete()}resetForm(n){this.formdata={CategoryName:null,ParentCategory:null},n&&n.resetForm(this.formdata),this.showForm=!1}list(){this.gridMessage="Loading...",this.knowledgeCategoryService.list().pipe((0,g.takeUntil)(this.onDestroy$)).subscribe(n=>{this.dataList=n,this.gridMessage="No data",this.categoryList=n})}delete(n){this.matDialog.open(S.i).afterClosed().pipe((0,g.takeUntil)(this.onDestroy$)).subscribe(a=>{a&&this.knowledgeCategoryService.delete(n).pipe((0,g.takeUntil)(this.onDestroy$)).subscribe(t=>{this.toasterService.pop("success","Knowledge category deleted successfully."),this.isChange=!0,this.resetForm(),this.list()})})}edit(n){this.knowledgeCategoryService.get(n).pipe((0,g.takeUntil)(this.onDestroy$)).subscribe(a=>{this.formdata=a,this.showForm=!0})}add(n){this.resetForm(n),this.showForm=!0}activitylog(){this.activityLog.activitylog(0,"Knowledge Base","Knowledge Category Export").pipe((0,g.takeUntil)(this.onDestroy$)).subscribe()}onToolbarPreparing(n){n.toolbarOptions.items.unshift({location:"after",template:"toolbarButton"})}getItemsCount(n){this.dataGrid&&this.dataGrid.instance&&(this.numberOfItemsCount=this.dataGrid.instance.totalCount())}};let o=r;return r.\u0275fac=function(a){return new(a||r)(e.\u0275\u0275directiveInject(x.MJ),e.\u0275\u0275directiveInject(p.$),e.\u0275\u0275directiveInject(v),e.\u0275\u0275directiveInject(_.on),e.\u0275\u0275directiveInject(M.t))},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["app-add-category-dialog"]],viewQuery:function(a,t){if(1&a&&e.\u0275\u0275viewQuery(y.e,5),2&a){let m;e.\u0275\u0275queryRefresh(m=e.\u0275\u0275loadQuery())&&(t.dataGrid=m.first)}},decls:31,vars:37,consts:[[1,"new-design",3,"submit"],["form","ngForm"],["mat-dialog-title",""],["type","button","aria-label","Close",1,"close","text-white",3,"mat-dialog-close"],["aria-hidden","true"],["mat-dialog-content",""],[1,"container-fluid"],[1,"row"],[1,"col-md-6","col-sm-12",3,"ngClass"],[3,"dataSource","showBorders","allowColumnResizing","showColumnLines","showRowLines","rowAlternationEnabled","noDataText","columnAutoWidth","allowColumnReordering","onToolbarPreparing","onRowPrepared","onRowClick","onExporting","onContentReady"],[3,"enabled"],[3,"visible"],["type","localStorage",3,"enabled","storageKey"],[3,"enabled","pageSize"],[3,"showPageSizeSelector","allowedPageSizes","showInfo"],[3,"visible","allowSearch"],["fileName","Knowledge Category",3,"enabled"],["mode","select",3,"enabled","allowSearch"],[3,"dataField","minWidth","caption","dataType","format",4,"ngFor","ngForOf"],["caption","Action","cssClass","action-center","cellTemplate","actionCellTemplate","fixedPosition","right",3,"allowExporting","minWidth","fixed",4,"ngIf"],[4,"dxTemplate","dxTemplateOf"],[1,"number-of-items-count"],["class","col-md-6 col-sm-12",3,"hidden",4,"ngIf"],["mat-dialog-footer","","align","center",1,"btn-close"],["type","button",1,"btn","btn-sm","btn-primary","modalclose",3,"mat-dialog-close"],[3,"dataField","minWidth","caption","dataType","format"],["caption","Action","cssClass","action-center","cellTemplate","actionCellTemplate","fixedPosition","right",3,"allowExporting","minWidth","fixed"],["type","button","mat-icon-button","","data-toggle","tooltip","title","Delete",1,"text-danger",3,"click"],["type","button","class","text-danger","mat-icon-button","","data-toggle","tooltip","title","New",3,"click",4,"ngIf"],["mat-icon-button","","data-toggle","tooltip","title","Apply Filter",1,"text-danger",3,"click"],["type","button","mat-icon-button","","data-toggle","tooltip","title","New",1,"text-danger",3,"click"],[1,"col-md-6","col-sm-12",3,"hidden"],[1,"col-md-12"],["matInput","","placeholder","Category","type","text","name","CategoryName","required","","maxlength","50",3,"ngModel","ngModelChange"],["CategoryName","ngModel"],[4,"ngIf"],["matInput","","placeholder","Parent Category","name","ParentCategoryId",3,"ngModel","ngModelChange"],["ParentCategoryId","ngModel"],["name","categoryFilter",3,"ngModel","placeholderL
1abel","noEntriesFoundLabel","ngModelChange"],[3,"value"],[3,"value",4,"ngFor","ngForOf","ngForTrackByProperty"],["align","center"],["type","button",1,"btn","btn-sm","btn-primary","btn-cust","mr10",3,"click"],["type","submit","class","btn btn-sm btn-primary btn-cust",3,"disabled","hidden",4,"ngIf"],["type","submit",1,"btn","btn-sm","btn-primary","btn-cust",3,"disabled","hidden"]],template:function(a,t){if(1&a){const m=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"form",0,1),e.\u0275\u0275listener("submit",function(){e.\u0275\u0275restoreView(m);const w=e.\u0275\u0275reference(1);return e.\u0275\u0275resetView(t.submitform(w))}),e.\u0275\u0275elementStart(2,"div",2),e.\u0275\u0275text(3," Knowledge Category "),e.\u0275\u0275elementStart(4,"button",3)(5,"span",4),e.\u0275\u0275text(6,"\xd7"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(7,"div",5)(8,"div",6)(9,"div",7)(10,"div",8)(11,"dx-data-grid",9),e.\u0275\u0275listener("onToolbarPreparing",function(w){return t.onToolbarPreparing(w)})("onRowPrepared",function(w){return t.getItemsCount(w)})("onRowClick",function(w){return 1===(null==t.currentUser?null:t.currentUser.RoleId)?t.edit(w.data.CategoryId):""})("onExporting",function(){return t.activitylog()})("onContentReady",function(w){return t.getItemsCount(w)}),e.\u0275\u0275element(12,"dxo-load-panel",10)(13,"dxo-filter-panel",11)(14,"dxo-state-storing",12)(15,"dxo-paging",13)(16,"dxo-pager",14)(17,"dxo-filter-row",11)(18,"dxo-header-filter",15)(19,"dxo-export",16)(20,"dxo-column-chooser",17),e.\u0275\u0275template(21,Q,2,7,"dxi-column",18),e.\u0275\u0275template(22,H,1,3,"dxi-column",19),e.\u0275\u0275template(23,J,4,0,"div",20),e.\u0275\u0275template(24,Y,5,1,"div",20),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(25,"div",21),e.\u0275\u0275text(26),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(27,te,25,15,"div",22),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(28,"div",23)(29,"button",24),e.\u0275\u0275text(30,"Close"),e.\u0275\u0275elementEnd()()()}2&a&&(e.\u0275\u0275advance(4),e.\u0275\u0275property("mat-dialog-close",t.isChange),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(33,ne,t.showForm,!t.showForm)),e.\u0275\u0275advance(1),e.\u0275\u0275property("dataSource",t.dataList)("showBorders",!0)("allowColumnResizing",!0)("showColumnLines",!0)("showRowLines",!0)("rowAlternationEnabled",!0)("noDataText",t.gridMessage)("columnAutoWidth",!0)("allowColumnReordering",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("enabled",!1),e.\u0275\u0275advance(1),e.\u0275\u0275property("visible",!0),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate1("storageKey","Knowledge_category_",t.currentUser.RoleId,""),e.\u0275\u0275property("enabled",(null==t.columns?null:t.columns.length)>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("enabled",!0)("pageSize",10),e.\u0275\u0275advance(1),e.\u0275\u0275property("showPageSizeSelector",!0)("allowedPageSizes",e.\u0275\u0275pureFunction0(36,oe))("showInfo",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("visible",t.showFilterRow),e.\u0275\u0275advance(1),e.\u0275\u0275property("visible",!0)("allowSearch",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("enabled",t.excel_permisson>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("enabled",!0)("allowSearch",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.columns),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1===t.currentUser.RoleId&&(null==t.columns?null:t.columns.length)>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("dxTemplateOf","actionCellTemplate"),e.\u0275\u0275advance(1),e.\u0275\u0275property("dxTemplateOf","toolbarButton"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" Number of items: ",t.numberOfItemsCount," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1===t.currentUser.RoleId),e.\u0275\u0275advance(2),e.\u0275\u0275property("mat-dialog-close",t.isChange))},dependencies:[s.NgClass,s.NgForOf,s.NgIf,C._Y,C.Fj,C.JJ,C.JL,C.Q7,C.nD,C.On,C.F,O.eB,T.nI,T.v_,T.$V,A.k0,R.x8,K.CK,_.aO,_.YS,_.Rb,L.Hw,U.S,F.nu,B.e,V.p6,y.e,h.Auv,h.qvW,h.tZE,h.Ak0,h.ecQ,h.I62,h.mKI,h.ilc,h.sXh,h.C9T,N.t,j.U,k.L],styles:[".btn-close[_ngcontent-%COMP%]{margin-bottom:10px}.number-of-items-count[_ngcontent-%COMP%]{left:15px;font-size:15px}"]}),o})();var W=i(18138),ie=i(74757),re=i(63128),le=i(24404),se=i(87799),de=i(4460),$=i(30632),z=i(78635),G=i(75016);function pe(o,r){if(1&o&&(e.\u0275\u0275elementStart(0,"mat-option",34),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&o){const d=r.$implicit;e.\u0275\u0275property("value",d.CategoryId),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(d.CategoryName)}}function ce(o,r){1&o&&(e.\u0275\u0275elementStart(0,"mat-error"),e.\u0275\u0275text(1,"Select category"),e.\u0275\u0275elementEnd())}function me(o,r){if(1&o&&(e.\u0275\u0275elementStart(0,"mat-option",34),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&o){const d=r.$implicit;e.\u0275\u0275property("value",d.value),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",d.viewValue," ")}}function ge(o,r){1&o&&(e.\u0275\u0275elementStart(0,"mat-error"),e.\u0275\u0275text(1,"Title is required"),e.\u0275\u0275elementEnd())}function ue(o,r){1&o&&(e.\u0275\u0275elementStart(0,"mat-error"),e.\u0275\u0275text(1,"Enter valid title"),e.\u0275\u0275elementEnd())}function he(o,r){1&o&&(e.\u0275\u0275elementStart(0,"mat-error",35),e.\u0275\u0275text(1,"Description is required"),e.\u0275\u0275elementEnd())}function Ce(o,r){if(1&o){const d=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",36)(1,"app-display-files-local",37),e.\u0275\u0275listener("onArrayUpdate",function(a){e.\u0275\u0275restoreView(d);const t=e.\u0275\u0275nextContext();
1return e.\u0275\u0275resetView(t.getArray(a))}),e.\u0275\u0275elementEnd()()}if(2&o){const d=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("uploadDir",d.uploadDir)("parentId",d.formdata.KnowledgeCID)("parentType",13)("permission",d.permission)}}function _e(o,r){if(1&o&&(e.\u0275\u0275elementStart(0,"div",36),e.\u0275\u0275element(1,"app-display-files",38),e.\u0275\u0275elementEnd()),2&o){const d=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("uploadDir",d.uploadDir)("showRemark",!1)("parentId",d.formdata.KnowledgeCID)("parentType",13)("permission",d.permission)}}function fe(o,r){if(1&o){const d=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",39),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(d);const a=e.\u0275\u0275nextContext(),t=e.\u0275\u0275reference(1);return e.\u0275\u0275resetView(a.add(t))}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&o){const d=e.\u0275\u0275nextContext();e.\u0275\u0275property("disabled",d.flagdisabled),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(d.btnLabel)}}const ve=function(){return[]},ye=function(){return{"font-size":"10px",position:"relative",bottom:"9px"}};let we=(()=>{const r=class{constructor(n,a,t,m,c,w,D,Je){this.knowledgeCentreService=n,this.mandatoryfieldCheckService=a,this.KnowledgeCategoryService=t,this.matDialog=c,this.matDialogRef=w,this.studentDocumentService=Je,this.uploadDir="knowledge-centre",this.formdata={KnowledgeCID:0,CategoryID:null,CategoryName:"",DocumentTitle:"",DocumentDescription:"",DocumentStatus:!1,DisplayTo:0},this.docList=[],this.modelPattern=l.xh,this.displaytoList=[{value:0,viewValue:"All"},{value:2,viewValue:"Agent"},{value:1,viewValue:"Institution"},{value:3,viewValue:"Team"}],this.flagdisabled=!1,this.permission=0,this.isAdd=!1,this.desError=!1,this.btnLabel="Add",this.items=Object.assign([],l.NI),this.onDestroy$=new u.Subject,this.currentUser=D.currentUserSubject.getValue(),this.permission=D.checkPermission(l.vf.KnowledgeCentre),m&&m.KnowledgeCID&&(this.formdata.KnowledgeCID=m.KnowledgeCID)}ngOnInit(){this.get(),this.items.push({text:"Show markup",stylingMode:"text",onClick:()=>this.popupVisible=!0}),this.list()}add(n){if(n&&!n.valid)return this.mandatoryfieldCheckService.setinvalidFields(),void(this.desError=!0);this.flagdisabled=!0,this.formdata.KnowledgeCID>0?this.knowledgeCentreService.update(this.formdata).pipe((0,g.takeUntil)(this.onDestroy$)).subscribe(a=>{this.flagdisabled=!1,this.matDialogRef.close(!0)},a=>{this.flagdisabled=!1}):this.knowledgeCentreService.add(this.formdata).pipe((0,g.takeUntil)(this.onDestroy$)).subscribe(a=>{this.flagdisabled=!1;let t={ParentId:+a,ParentType:13,Documents:this.docList};t.Documents.length>0&&this.studentDocumentService.AddBulkWithName(t).pipe((0,g.takeUntil)(this.onDestroy$)).subscribe(m=>{}),this.matDialogRef.close(!0)},a=>{this.flagdisabled=!1})}list(){this.KnowledgeCategoryService.list().pipe((0,g.takeUntil)(this.onDestroy$)).subscribe(n=>{this.categoryList=n})}getArray(n){this.docList=n}get(){this.formdata.KnowledgeCID>0&&this.knowledgeCentreService.get(this.formdata.KnowledgeCID).pipe((0,g.takeUntil)(this.onDestroy$)).subscribe(n=>{this.formdata=n,this.btnLabel="Update"})}showcategory(){this.matDialog.open(ae).afterClosed().pipe((0,g.takeUntil)(this.onDestroy$)).subscribe(n=>{n&&this.list()})}checkDescription(n){this.desError="Show markup\n\n\n"==n.element.innerText,this.formdata.DocumentDescription=this.formdata.DocumentDescription.replace(/(<p>\s+)/g,"<p>").replace(/(\s+<\/p>)/g,"</p>")}ngOnDestroy(){this.onDestroy$.next(),this.onDestroy$.complete()}};let o=r;return r.\u0275fac=function(a){return new(a||r)(e.\u0275\u0275directiveInject(W.j),e.\u0275\u0275directiveInject(ie.F),e.\u0275\u0275directiveInject(v),e.\u0275\u0275directiveInject(_.eJ),e.\u0275\u0275directiveInject(_.on),e.\u0275\u0275directiveInject(_.hV),e.\u0275\u0275directiveInject(p.$),e.\u0275\u0275directiveInject(re.P))},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["app-add-knowledge-centre"]],decls:64,vars:32,consts:[["form","",1,"new-design"],["form","ngForm"],["mat-dialog-title",""],["type","button","mat-dialog-close","","aria-label","Close",1,"close","text-white"],["aria-hidden","true"],["mat-dialog-content",""],[1,"container-fluid"],[1,"row"],[1,"col-md"],["matInput","","placeholder","Category","name","CategoryID","required","",3,"ngModel","ngModelChange"],["CategoryID","ngModel"],["name","categoryFilter",3,"ngModel","placeholderL
1abel","noEntriesFoundLabel","ngModelChange"],[3,"value",4,"ngFor","ngForOf","ngForTrackByProperty"],[4,"ngIf"],[1,"float-right",3,"routerLink","ngStyle","click"],["placeholder","For","name","DisplayTo",3,"ngModel","ngModelChange"],["DisplayTo","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","placeholder","Title","name","DocumentTitle","required","","maxlength","100",3,"ngModel","pattern","ngModelChange"],["DocumentTitle","ngModel"],["name","Document Status",1,"example-margin",3,"ngModel","ngModelChange"],[1,"form-group"],[2,"color","red"],["tagName","textarea","placeholder","Description","rows","5","name","DocumentDescription","required","",3,"ngModel","ngModelChange","onBlur"],["DocumentDescription","ngModel"],[3,"items"],["type","required","message",""],["style","margin-top: 5px; margin-left: 5px;",4,"ngIf"],["class","col-12",4,"ngIf"],["title","Markup",3,"showTitle","visible","showCloseButton","visibleChange"],["name","viewItem",2,"height","100% !important","width","100%","display","block","border","0px",3,"ngModel","ngModelChange"],["mat-dialog-actions","","align","center"],["type","button","mat-dialog-close","",1,"btn","btn-admin-red","btn-sm","modalclose","mr10"],["type","submit","class","btn btn-admin-red btn-sm btn-cust",3,"disabled","click",4,"ngIf"],[3,"value"],[2,"margin-top","5px","margin-left","5px"],[1,"col-12"],[3,"uploadDir","parentId","parentType","permission","onArrayUpdate"],["parentName","Knowledge Base","exportTitle","Knowledge Article",3,"uploadDir","showRemark","parentId","parentType","permission"],["type","submit",1,"btn","btn-admin-red","btn-sm","btn-cust",3,"disabled","click"]],template:function(a,t){if(1&a&&(e.\u0275\u0275elementStart(0,"form",0,1)(2,"div",2),e.\u0275\u0275text(3," Knowledge Article "),e.\u0275\u0275elementStart(4,"button",3)(5,"span",4),e.\u0275\u0275text(6,"\xd7"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(7,"div",5)(8,"div",6)(9,"div",7)(10,"div",8)(11,"mat-form-field")(12,"mat-label"),e.\u0275\u0275text(13,"Category"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(14,"mat-select",9,10),e.\u0275\u0275listener("ngModelChange",function(c){return t.formdata.CategoryID=c}),e.\u0275\u0275elementStart(16,"mat-option")(17,"ngx-mat-select-search",11),e.\u0275\u0275listener("ngModelChange",function(c){return t.categoryFilter=c}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(18,pe,2,2,"mat-option",12),e.\u0275\u0275pipe(19,"stringFilterBy"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(20,ce,2,0,"mat-error",13),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(21,"a",14),e.\u0275\u0275listener("click",function(){return t.showcategory()}),e.\u0275\u0275text(22,"Manage Category"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(23,"div",7)(24,"div",8)(25,"mat-form-field")(26,"mat-label"),e.\u0275\u0275text(27,"For"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(28,"mat-select",15,16),e.\u0275\u0275listener("ngModelChange",function(c){return t.formdata.DisplayTo=c}),e.\u0275\u0275template(30,me,2,2,"mat-option",17),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(31,"div",7)(32,"div",8)(33,"mat-form-field")(34,"mat-label"),e.\u0275\u0275text(35,"Title"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(36,"input",18,19),e.\u0275\u0275listener("ngModelChange",function(c){return t.formdata.DocumentTitle=c}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(38,ge,2,0,"mat-error",13),e.\u0275\u0275template(39,ue,2,0,"mat-error",13),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(40,"div",7)(41,"div",8)(42,"section")(43,"mat-checkbox",20),e.\u0275\u0275listener("ngModelChange",function(c){return t.formdata.DocumentStatus=c}),e.\u0275\u0275text(44,"Enable"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(45,"div",21)(46,"label"),e.\u0275\u0275text(47,"Description"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(48,"span",22),e.\u0275\u0275text(49," *"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(50,"dx-html-editor",23,24),e.\u0275\u0275listener("ngModelChange",function(c){return t.formdata.DocumentDescription=c})("onBlur",function(c){return t.checkDescription(c)}),e.\u0275\u0275element(52,"dxo-toolbar",25),e.\u0275\u0275elementStart(53,"dx-vali
1dator"),e.\u0275\u0275element(54,"dxi-validation-rule",26),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(55,he,2,0,"mat-error",27),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(56,Ce,2,4,"div",28),e.\u0275\u0275template(57,_e,2,5,"div",28),e.\u0275\u0275elementStart(58,"dx-popup",29),e.\u0275\u0275listener("visibleChange",function(c){return t.popupVisible=c}),e.\u0275\u0275elementStart(59,"textarea",30),e.\u0275\u0275listener("ngModelChange",function(c){return t.formdata.DocumentDescription=c}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(60,"div",31)(61,"button",32),e.\u0275\u0275text(62,"Close"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(63,fe,2,2,"button",33),e.\u0275\u0275elementEnd()()),2&a){const m=e.\u0275\u0275reference(15),c=e.\u0275\u0275reference(37),w=e.\u0275\u0275reference(51);e.\u0275\u0275advance(14),e.\u0275\u0275property("ngModel",t.formdata.CategoryID),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngModel",t.categoryFilter)("placeholderLabel","Search...")("noEntriesFoundLabel","Not found"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",e.\u0275\u0275pipeBind3(19,26,t.categoryList,t.categoryFilter,"CategoryName"))("ngForTrackByProperty","CategoryId"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",m.hasError("required")),e.\u0275\u0275advance(1),e.\u0275\u0275property("routerLink",e.\u0275\u0275pureFunction0(30,ve))("ngStyle",e.\u0275\u0275pureFunction0(31,ye)),e.\u0275\u0275advance(7),e.\u0275\u0275property("ngModel",t.formdata.DisplayTo),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.displaytoList),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngModel",t.formdata.DocumentTitle)("pattern",t.modelPattern.programName),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",c.hasError("required")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",c.hasError("pattern")||c.hasError("maxlength")),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngModel",t.formdata.DocumentStatus),e.\u0275\u0275advance(7),e.\u0275\u0275property("ngModel",t.formdata.DocumentDescription),e.\u0275\u0275advance(2),e.\u0275\u0275property("items",t.items),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",w.hasError("required")&&t.desError),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0===t.formdata.KnowledgeCID),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.formdata.KnowledgeCID>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("showTitle",!0)("visible",t.popupVisible)("showCloseButton",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",t.formdata.DocumentDescription),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",t.permission>1)}},dependencies:[s.NgForOf,s.NgIf,s.NgStyle,C._Y,C.Fj,C.JJ,C.JL,C.Q7,C.nD,C.c5,C.On,C.F,T.nI,T.v_,T.$V,A.k0,R.x8,K.CK,_.aO,_.YS,_.Rb,_.ev,le.FC,U.S,b.rH,se.b,de.O,F.nu,B.e,$.C,h.y1f,h.vrV,z.x,G.S,N.t,k.L]}),o})();var xe=i(35226),De=i.n(xe),be=i(11796),Ee=i(58259),Ie=i(34063);function Te(o,r){if(1&o&&(e.\u0275\u0275element(0,"dxi-column",16),e.\u0275\u0275pipe(1,"sentenceCase")),2&o){const d=r.$implicit;e.\u0275\u0275property("fixed",d.allowFixing)("dataField",d.dataField)("caption",e.\u0275\u0275pipeBind1(1,5,d.title))("dataType",d.type)("format",d.format)}}function Se(o,r){1&o&&e.\u0275\u0275element(0,"dxi-column",17),2&o&&e.\u0275\u0275property("allowExporting",!1)("fixed",!0)("minWidth",50)}const Oe=function(o){return{"modal-view":o}};function Me(o,r){if(1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"span",18),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&o){const d=r.$implicit,n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(2,Oe,n.isDescriptionField(d.column.dataField)&&n.getString(d).length>n.maxDescLen)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",n.getString(d)," ")}}function Ae(o,r){if(1&o){const d=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",20),e.\u0275\u0275listener("click",function(a){e.\u0275\u0275restoreView(d);const t=e.\u0275\u0275nextContext().$implicit,m=e.\u0275\u0275nextContext();
1return a.stopPropagation(),e.\u0275\u0275resetView(m.delete(t.data.KnowledgeCID))}),e.\u0275\u0275elementStart(1,"mat-icon"),e.\u0275\u0275text(2,"close"),e.\u0275\u0275elementEnd()()}}function Pe(o,r){if(1&o&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,Ae,3,0,"button",19),e.\u0275\u0275elementEnd()),2&o){const d=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",d.permission>2)}}function Re(o,r){if(1&o){const d=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",23),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(d);const a=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(a.add())}),e.\u0275\u0275elementStart(1,"mat-icon"),e.\u0275\u0275text(2,"add"),e.\u0275\u0275elementEnd()()}}function Fe(o,r){if(1&o){const d=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,Re,3,0,"button",21),e.\u0275\u0275elementStart(2,"button",22),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(d);const a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.showFilterRow=!a.showFilterRow)}),e.\u0275\u0275elementStart(3,"mat-icon"),e.\u0275\u0275text(4,"filter_list"),e.\u0275\u0275elementEnd()()()}if(2&o){const d=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",d.permission>1)}}const Ke=function(){return[5,10,25,50,100]},Le=["DocumentTitle"],Ve=[{path:"",component:(()=>{const r=class{constructor(n,a,t,m,c,w){this.knowledgeCentreService=n,this.matDialog=a,this.authService=t,this.toasterService=m,this.helper=c,this.activityLog=w,this.permission=0,this.preventRowClick=!1,this.gridMessage="No data",this.columns=[{dataField:"DocumentTitle",title:"Title",type:"",format:"",allowFixing:!0},{dataField:"CategoryName",title:"Category",type:"",format:""},{dataField:"DisplayTo",title:"For",type:"",format:""},{dataField:"DocumentStatus",title:"Status",type:"",format:""},{dataField:"UserName",title:"Upload By",type:"",format:""}],this.showFilterRow=!1,this.onDestroy$=new u.Subject,this.excel_permisson=0,this.numberOfItemsCount=0,this.maxDescLen=50,this.isDescriptionField=D=>!!Le.includes(D),this.getString=D=>this.helper.getTrimmedString(this.isDescriptionField(D.column.dataField),D),this.onCellClick=D=>{D.event.target.classList.contains("modal-view")&&D.data[D.column.dataField].length>this.maxDescLen&&(De().fire({title:D.column.caption,html:D.data[D.column.dataField],showCloseButton:!0,showCancelButton:!0,showConfirmButton:!1,cancelButtonColor:"#f22112",focusConfirm:!1,cancelButtonText:"Close",allowOutsideClick:!1,cancelButtonAriaLabel:"Close",customClass:{popup:"swal-wide"}}),this.preventRowClick=!0)},this.currentUser=this.authService.currentUserSubject.getValue(),this.permission=t.checkPermission(l.vf.KnowledgeCentre),this.excel_permisson=t.checkExcelPermission(l.vf.KnowledgeCentre)}ngOnInit(){this.list()}add(n){this.preventRowClick?this.preventRowClick=!1:this.matDialog.open(we,{data:{KnowledgeCID:n}}).afterClosed().pipe((0,g.takeUntil)(this.onDestroy$)).subscribe(a=>{a&&(this.toasterService.pop("success",n?"Article updated successfully.":"Article saved successfully."),this.list())})}delete(n){this.matDialog.open(S.i).afterClosed().pipe((0,g.takeUntil)(this.onDestroy$)).subscribe(a=>{a&&this.knowledgeCentreService.delete(n).pipe((0,g.takeUntil)(this.onDestroy$)).subscribe(t=>{this.toasterService.pop("success","Article deleted successfully."),this.list()})})}list(){this.gridMessage="Loading...",this.knowledgeCentreService.list().pipe((0,g.takeUntil)(this.onDestroy$)).subscribe(n=>{this.dataList=n.map(a=>({DocumentTitle:a.DocumentTitle,CategoryName:a.CategoryName,DisplayTo:this.getDisplayToName(a.DisplayTo),DocumentStatus:a.DocumentStatus,UserName:a.UserName,KnowledgeCID:a.KnowledgeCID})),this.gridMessage="No data"})}getDisplayToName(n){return 0===n?"All":1===n?"Institution":2===n?"Agent":3===n?"Team":"None"}getItemsCount(){this.dataGrid&&this.dataGrid.instance&&(this.numberOfItemsCount=this.dataGrid.instance.totalCount())}activitylog(){this.activityLog.activitylog(0,"Knowledge Base","Export").pipe((0,g.takeUntil)(this.onDestroy$)).subscribe()}onToolbarPreparing(n){n.toolbarOptions.items.unshift({location:"after",template:"toolbarButton"})}fixScrollBar(){const n=document.querySelector(".main-panel");new be.Z(n).update(),Ee(".main-panel").stop().animate({scrollTop:0},100)}ngOnDestroy(){this.onDestroy$.next(),this.onDestroy$.complete()}};let o=r;return r.\u0275fac=function(a){return new(a||r)(e.\u0275\u0275directiveInject(W.
1j),e.\u0275\u0275directiveInject(_.on),e.\u0275\u0275directiveInject(p.$),e.\u0275\u0275directiveInject(x.MJ),e.\u0275\u0275directiveInject(Ie.W),e.\u0275\u0275directiveInject(M.t))},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["app-show-knowlege-centre"]],viewQuery:function(a,t){if(1&a&&e.\u0275\u0275viewQuery(y.e,5),2&a){let m;e.\u0275\u0275queryRefresh(m=e.\u0275\u0275loadQuery())&&(t.dataGrid=m.first)}},decls:21,vars:32,consts:[[1,"main-content","new-design"],[1,"card"],[1,"card-body"],[3,"dataSource","showBorders","allowColumnResizing","showColumnLines","showRowLines","rowAlternationEnabled","noDataText","columnAutoWidth","allowColumnReordering","onToolbarPreparing","onCellClick","onRowClick","onExporting","onRowPrepared","onContentReady"],[3,"enabled"],[3,"visible"],[3,"enabled","pageSize"],[3,"showPageSizeSelector","allowedPageSizes","showInfo"],["type","localStorage",3,"enabled","storageKey"],[3,"visible","allowSearch"],["fileName","Knowledge Base",3,"enabled"],["mode","select",3,"enabled","allowSearch"],["cellTemplate","cellTemplate",3,"fixed","dataField","caption","dataType","format",4,"ngFor","ngForOf"],["caption","Action","cssClass","action-center","fixedPosition","right","cellTemplate","actionCellTemplate",3,"allowExporting","fixed","minWidth",4,"ngIf"],[4,"dxTemplate","dxTemplateOf"],[1,"number-of-items-count",2,"padding-left","20px","padding-bottom","25px"],["cellTemplate","cellTemplate",3,"fixed","dataField","caption","dataType","format"],["caption","Action","cssClass","action-center","fixedPosition","right","cellTemplate","actionCellTemplate",3,"allowExporting","fixed","minWidth"],[3,"ngClass"],["type","button","mat-icon-button","","class","text-danger","data-toggle","tooltip","title","Delete",3,"click",4,"ngIf"],["type","button","mat-icon-button","","data-toggle","tooltip","title","Delete",1,"text-danger",3,"click"],["class","text-danger","mat-icon-button","","data-toggle","tooltip","title","New",3,"click",4,"ngIf"],["mat-icon-button","","data-toggle","tooltip","title","Apply Filter",1,"text-danger",3,"click"],["mat-icon-button","","data-toggle","tooltip","title","New",1,"text-danger",3,"click"]],template:function(a,t){1&a&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"dx-data-grid",3),e.\u0275\u0275listener("onToolbarPreparing",function(c){return t.onToolbarPreparing(c)})("onCellClick",function(c){return t.onCellClick(c)})("onRowClick",function(c){return t.add(c.data.KnowledgeCID)})("onExporting",function(){return t.activitylog()})("onRowPrepared",function(){return t.getItemsCount()})("onContentReady",function(){return t.getItemsCount(),t.fixScrollBar()}),e.\u0275\u0275element(4,"dxo-load-panel",4)(5,"dxo-filter-panel",5)(6,"dxo-paging",6)(7,"dxo-pager",7)(8,"dxo-filter-row",5)(9,"dxo-state-storing",8)(10,"dxo-header-filter",9)(11,"dxo-export",10)(12,"dxo-column-fixing",4)(13,"dxo-column-chooser",11),e.\u0275\u0275template(14,Te,2,7,"dxi-column",12),e.\u0275\u0275template(15,Se,1,3,"dxi-column",13),e.\u0275\u0275template(16,Me,3,4,"ng-container",14),e.\u0275\u0275template(17,Pe,2,1,"div",14),e.\u0275\u0275template(18,Fe,5,1,"div",14),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"div",15),e.\u0275\u0275text(20),e.\u0275\u0275elementEnd()()()()),2&a&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("dataSource",t.dataList)("showBorders",!0)("allowColumnResizing",!0)("showColumnLines",!0)("showRowLines",!0)("rowAlternationEnabled",!0)("noDataText",t.gridMessage)("columnAutoWidth",!0)("allowColumnReordering",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("enabled",!1),e.\u0275\u0275advance(1),e.\u0275\u0275property("visible",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("enabled",!0)("pageSize",10),e.\u0275\u0275advance(1),e.\u0275\u0275property("showPageSizeSelector",!0)("allowedPageSizes",e.\u0275\u0275pureFunction0(31,Ke))("showInfo",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("visible",t.showFilterRow),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate1("storageKey","share_knowldge_base_",t.currentUser.RoleId,""),e.\u0275\u0275property("enabled",(null==t.columns?null:t.columns.length)>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("visible",!0)("allowSearch",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("enabled",t.excel_permisson>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("enabled",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("enabled",!0)("allowSearch",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.columns),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.permission>2&&(null==t.columns?null:t.columns.length)>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("dxTemplateOf","cellTemplate"),e.\u0275\u0275advance(1),e.\u0275\u0275property("dxTemplateOf","actionCellTemplate"),e.\u0275\u0275advance(1),e.\u0275\u0275property("dxTemplateOf","toolbarButton"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" Number of items: ",t.numberOfItemsCount," "))},dependencies:[s.NgClass,s.NgForOf,s.NgIf,O.eB,L.Hw,V.p6,y.e,h.Auv,h.QIp,h.qvW,h.tZE,h.Ak0,h.ecQ,h.I62,h.mKI,h.ilc,h.sXh,h.C9T,j.U],styles:[".dx-datagrid .dx-column-lines>td:nth-child(4), .dx-row td:nth-child(4){text-align:center!important}"]}),o})(),canActivate:[i(73357).X],data:{entityId:l.vf.KnowledgeCentre}}];let Ne=(()=>{const r=class{};let o=r;return r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=e.\u0275\u0275defineNgModule({type:r}),r.\u0275inj=e.\u0275\u0275defineInjector({imports:[b.Bz.forChild(Ve),b.Bz]}),o})();var je=i(28034),ke=i(83574),We=i(35985),$e=i(93099),ze=i(51291),Ge=i(77987),Qe=i(86805);let He=(()=>{const r=class{};let o=r;return r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=e.\u0275\u0275defineNgModule({type:r}),r.\u0275inj=e.\u0275\u0275defineInjector({imports:[s.CommonModule,We.K,Ge.l,Ne,R.uw,$e.d,F.Co,je.n,ke.N,$.O,y.x,z.C,G.B,ze.h,Qe.M]}),o})()},96882:(P,I,i)=>{i.d(I,{t:()=>_});var s=i(92340),b=i(94650),l=i(80529);let _=(()=>{const g=class{constructor(y){this.http=y,this.APIURL=s.NZ.apiurl+"ActivityLog/",this.AGENTLOGURL=s.NZ.apiurl+"Agent/"}activitylog(y,e,x){return this.http.post(this.APIURL+"Add",{EntityId:y,EntityName:e,ActionType:x})}agentActivitylog(y,e,x){this.http.post(this.AGENTLOGURL+"AgentRecentActivitiesAdd",{EntityID:e,EntityType:y,EntityDesc:x}).subscribe(p=>{})}getAgentActivities(){return this.http.get(this.AGENTLOGURL+"AgentRecentActivitiesGet")}};let u=g;return g.\u0275fac=function(e){return new(e||g)(b.\u0275\u0275inject(l.HttpClient))},g.\u0275prov=b.\u0275\u0275defineInjectable({token:g,factory:g.\u0275fac,providedIn:"root"}),u})()},75016:(P,I,i)=>{i.d(I,{B:()=>y,S:()=>S});var s=i(61547),b=i(11481),l=i(94650),_=i(64634),u=i(34002),g=i(17805);let S=(()=>{let e=class extends u.VB{constructor(p,f,E,v,M,C,O,T,A){super(p,f,E,v,T,A),this._watcherHelper=v,this._idh=M,this._createEventEmitters([{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"validated",emit:"onValidated"},{emit:"adapterChange"},{emit:"elementAttrChange"},{emit:"heightChange"},{emit:"nameChange"},{emit:"validationGroupChange"},{emit:"validationRulesChange"},{emit:"widthChange"}]),this.parentElement=this.getParentElement(C),this._idh.setHost(this),O.setHost(this)}get adapter(){return this._getOption("adapter")}set adapter(p){this._setOption("adapter",p)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(p){this._setOption("elementAttr",p)}get height(){return this._getOption("height")}set height(p){this._setOption("height",p)}get name(){return this._getOption("name")}set name(p){this._setOption("name",p)}get validationGroup(){return this._getOption("validationGroup")}set validationGroup(p){this._setOption("validationGroup",p)}get validationRules(){return this._getOption("validationRules")}set validationRules(p){this._setOption("validationRules",p)}get width(){return this._getOption("width")}set width(p){this._setOption("width",p)}get validationRulesChildren(){return this._getOption("validationRules")}set validationRulesChildren(p){this.setChildren("validationRules",p)}_createInstance(p,f){return new _.Z(this.parentElement?this.parentElement:p,f)}getParentElement(p){if(p)return p.getHost().element.nativeElement}ngOnDestroy(){this._destroyWidget()}ngOnChanges(p){super.ngOnChanges(p),this.setupChanges("validationRules",p)}setupChanges(p,f){p in this._optionsToUpdate||this._idh.setup(p,f)}
1ngDoCheck(){this._idh.doCheck("validationRules"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(p,f){let E=this._idh.setupSingle(p,f),v=null!==this._idh.getChanges(p,f);(E||v)&&super._setOption(p,f)}};return e.\u0275fac=function(p){return new(p||e)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(l.NgZone),l.\u0275\u0275directiveInject(u._5),l.\u0275\u0275directiveInject(u._h),l.\u0275\u0275directiveInject(u.i9),l.\u0275\u0275directiveInject(u.al,13),l.\u0275\u0275directiveInject(u.al),l.\u0275\u0275directiveInject(b.TransferState),l.\u0275\u0275directiveInject(l.PLATFORM_ID))},e.\u0275cmp=l.\u0275\u0275defineComponent({type:e,selectors:[["dx-validator"]],contentQueries:function(p,f,E){if(1&p&&l.\u0275\u0275contentQuery(E,g.vrV,4),2&p){let v;l.\u0275\u0275queryRefresh(v=l.\u0275\u0275loadQuery())&&(f.validationRulesChildren=v)}},inputs:{adapter:"adapter",elementAttr:"elementAttr",height:"height",name:"name",validationGroup:"validationGroup",validationRules:"validationRules",width:"width"},outputs:{onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValidated:"onValidated",adapterChange:"adapterChange",elementAttrChange:"elementAttrChange",heightChange:"heightChange",nameChange:"nameChange",validationGroupChange:"validationGroupChange",validationRulesChange:"validationRulesChange",widthChange:"widthChange"},features:[l.\u0275\u0275ProvidersFeature([u._5,u._h,u.al,u.i9]),l.\u0275\u0275InheritDefinitionFeature,l.\u0275\u0275NgOnChangesFeature],decls:0,vars:0,template:function(p,f){},encapsulation:2}),(0,s.gn)([(0,l.Input)(),(0,s.w6)("design:type",Object),(0,s.w6)("design:paramtypes",[Object])],e.prototype,"adapter",null),(0,s.gn)([(0,l.Input)(),(0,s.w6)("design:type",Object),(0,s.w6)("design:paramtypes",[Object])],e.prototype,"elementAttr",null),(0,s.gn)([(0,l.Input)(),(0,s.w6)("design:type",Object),(0,s.w6)("design:paramtypes",[Object])],e.prototype,"height",null),(0,s.gn)([(0,l.Input)(),(0,s.w6)("design:type",String),(0,s.w6)("design:paramtypes",[String])],e.prototype,"name",null),(0,s.gn)([(0,l.Input)(),(0,s.w6)("design:type",String),(0,s.w6)("design:paramtypes",[String])],e.prototype,"validationGroup",null),(0,s.gn)([(0,l.Input)(),(0,s.w6)("design:type",Array),(0,s.w6)("design:paramtypes",[Array])],e.prototype,"validationRules",null),(0,s.gn)([(0,l.Input)(),(0,s.w6)("design:type",Object),(0,s.w6)("design:paramtypes",[Object])],e.prototype,"width",null),(0,s.gn)([(0,l.Output)(),(0,s.w6)("design:type",l.EventEmitter)],e.prototype,"onDisposing",void 0),(0,s.gn)([(0,l.Output)(),(0,s.w6)("design:type",l.EventEmitter)],e.prototype,"onInitialized",void 0),(0,s.gn)([(0,l.Output)(),(0,s.w6)("design:type",l.EventEmitter)],e.prototype,"onOptionChanged",void 0),(0,s.gn)([(0,l.Output)(),(0,s.w6)("design:type",l.EventEmitter)],e.prototype,"onValidated",void 0),(0,s.gn)([(0,l.Output)(),(0,s.w6)("design:type",l.EventEmitter)],e.prototype,"adapterChange",void 0),(0,s.gn)([(0,l.Output)(),(0,s.w6)("design:type",l.EventEmitter)],e.prototype,"elementAttrChange",void 0),(0,s.gn)([(0,l.Output)(),(0,s.w6)("design:type",l.EventEmitter)],e.prototype,"heightChange",void 0),(0,s.gn)([(0,l.Output)(),(0,s.w6)("design:type",l.EventEmitter)],e.prototype,"nameChange",void 0),(0,s.gn)([(0,l.Output)(),(0,s.w6)("design:type",l.EventEmitter)],e.prototype,"validationGroupChange",void 0),(0,s.gn)([(0,l.Output)(),(0,s.w6)("design:type",l.EventEmitter)],e.prototype,"validationRulesChange",void 0),(0,s.gn)([(0,l.Output)(),(0,s.w6)("design:type",l.EventEmitter)],e.prototype,"widthChange",void 0),(0,s.gn)([(0,l.ContentChildren)(g.vrV),(0,s.w6)("design:type",l.QueryList),(0,s.w6)("design:paramtypes",[Object])],e.prototype,"validationRulesChildren",null),e=(0,s.gn)([(0,s.fM)(5,(0,l.SkipSelf)()),(0,s.fM)(5,(0,l.Optional)()),(0,s.fM)(5,(0,l.Host)()),(0,s.fM)(8,(0,l.Inject)(l.PLATFORM_ID)),(0,s.w6)("design:paramtypes",[l.ElementRef,l.NgZone,u._5,u._h,u.i9,u.al,u.al,b.TransferState,Object])],e),e})(),y=(()=>{let e=class{};return e.\u0275fac=function(p){return new(p||e)},e.\u0275mod=l.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=l.\u0275\u0275defineInjector({imports:[g.Vp2,g.$D5,u.Lz,u.ie,b.BrowserTransferStateModule,g.Vp2,g.$D5,u.ie]}),e})()}}]);
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.