1"use strict";(self.webpackChunkminostech_admin_angular=self.webpackChunkminostech_admin_angular||[]).push([[850],{26850:(C,u,r)=>{r.r(u),r.d(u,{RequestFeatureModule:()=>S});var l=r(36895),d=r(19347),e=r(94650),m=r(51491),E=r(68567),p=r(4484);function g(t,i){if(1&t&&(e.\u0275\u0275elementStart(0,"tr")(1,"td"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"td"),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"td"),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"td"),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"date"),e.\u0275\u0275elementEnd()()),2&t){const n=i.$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(n.id),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate4(" ",n.user.firstName," ",n.user.lastName," | ",n.user.email," | ",n.user.company," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(n.description),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(9,7,n.createdAt,"yyyy-MM-dd HH:mm"))}}function h(t,i){if(1&t&&(e.\u0275\u0275elementStart(0,"div",7)(1,"div",8)(2,"table",9)(3,"colgroup"),e.\u0275\u0275element(4,"col",10)(5,"col",11)(6,"col",12)(7,"col",13),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"thead")(9,"tr")(10,"th"),e.\u0275\u0275text(11),e.\u0275\u0275pipe(12,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"th"),e.\u0275\u0275text(14),e.\u0275\u0275pipe(15,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"th"),e.\u0275\u0275text(17),e.\u0275\u0275pipe(18,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"th"),e.\u0275\u0275text(20),e.\u0275\u0275pipe(21,"translate"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(22,"tbody"),e.\u0275\u0275template(23,g,10,10,"tr",14),e.\u0275\u0275elementEnd()()()()),2&t){const n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(11),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(12,5,"FEATURE_REQUEST.TABLE.ID")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(15,7,"FEATURE_REQUEST.TABLE.USER")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(18,9,"FEATURE_REQUEST.TABLE.DESCRIPTION")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(21,11,"FEATURE_REQUEST.TABLE.TIME")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",n.requests)}}function f(t,i){1&t&&(e.\u0275\u0275elementStart(0,"div",15),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&t&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,1,"FEATURE_REQUEST.LOADING")," "))}let R=(()=>{class t{constructor(n,a,o){this.router=n,this.route=a,this.api=o,this.p=1,this.total=0,this.limit=10,this.loading=!1,this.requests=[]}ngOnInit(){this.fetchRequests()}pageChanged(n){this.fetchRequests(n)}goToAddRequest(){this.router.navigate(["add"],{relativeTo:this.route})}fetchRequests(n=1){this.loading=!0,this.api.get(`request-feature?page=${n}&limit=${this.limit}`).then(a=>{this.requests=a.data,this.total=a.total,this.p=a.page,this.loading=!1}).catch(a=>{console.error(a),this.loading=!1})}}return t.\u0275fac=function(n){return new(n||t)(e.\u0275\u0275directiveInject(d.F0),e.\u0275\u0275directiveInject(d.gz),e.\u0275\u0275directiveInject(m.t))},t.\u0275cmp=e.\u0275\u0275defineComponent({type:t,selectors:[["app-list-request-feature"]],decls:14,vars:17,consts:[[1,"content-wrapper"],[1,"Header-section"],[1,"title-container","mb-0"],[1,"btn","btn-primary",3,"click"],["class","card-body",4,"ngIf","ngIfElse"],[3,"maxSize","directionLinks","autoHide","previousLabel","nextLabel","pageChange"],["loadingTemplate",""],[1,"card-body"],[1,"table-responsive"],[1,"table","table-bordered","table-hover","custom-table","no-top-border"],[2,"width","8%"],[2,"width","30%"],[2,"width","44%"],[2,"width","18%"],[4,"ngFor","ngForOf"],[1,"text-center","p-4"]],template:function(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"h2",2),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"button",3),e.\u0275\u0275listener("click",function(){return a.goToAddRequest()}),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(8,h,24,13,"div",4),e.\u0275\u0275elementStart(9,"pagination-controls",5),e.\u0275\u0275listener("pageChange",function(c){return a.pageChanged(c)}),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275pipe(11,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(12,f,3,3,"ng-template",null,6,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&n){const o=e.\u0275\u0275reference(13);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,9,"FEATURE_REQUEST.TITLE")," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(7,11,"FEATURE_REQUEST.ADD_BUTTON")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!a.loading)("ngIfElse",o),e.\u0275\u0275advance(1),e.\u0275\u0275property("maxSize",5)("directionLinks",!0)("autoHide",!0)("previousLabel",e.\u0275\u0275pipeBind1(10,13,"PAGINATION.PREV"))("nextLabel",e.\u0275\u0275pipeBind1(11,15,"PAGINATION.NEXT"))}},dependencies:[l.NgForOf,l.NgIf,E.LS,l.DatePipe,p.X$],styles:['@charset "UTF-8";.title-container[_ngcontent-%COMP%]{font-size:24px;padding:0}.Header-section[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:20px}.custom-table[_ngcontent-%COMP%]{table-layout:fixed;width:100%;border-collapse:collapse}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{white-space:normal!important;word-break:break-word;overflow-wrap:anywhere;vertical-align:middle;text-align:left}.no-top-border[_ngcontent-%COMP%], .no-top-border[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:none!important}']}),t})();var T=r(64383),s=r(24006);const v=[{path:"",component:R},{path:"add",component:(()=>{class t{constructor(n,a,o){this.api=n,this.toastr=a,this.translate=o,this.description="",this.loading=!1}ngOnInit(){}submitRequest(){!this.description.trim()||(this.loading=!0,this.api.post("request-feature",{description:this.description}).then(n=>{this.toastr.success(this.translate.instant("FEATURE_REQUEST.SUBMIT_SUCCESS")),this.description="",this.loading=!1}
1).catch(n=>{console.error(n),this.toastr.error(this.translate.instant("FEATURE_REQUEST.SUBMIT_FAILED")),this.loading=!1}))}}return t.\u0275fac=function(n){return new(n||t)(e.\u0275\u0275directiveInject(m.t),e.\u0275\u0275directiveInject(T._W),e.\u0275\u0275directiveInject(p.sK))},t.\u0275cmp=e.\u0275\u0275defineComponent({type:t,selectors:[["app-add-request-feature"]],decls:18,vars:16,consts:[[1,"content-wrapper","d-flex","justify-content-center","align-items-center",2,"height","90vh"],[1,"card","shadow-sm","p-4","rounded","col-8"],[1,"mb-3","text-center"],[3,"ngSubmit"],["requestForm","ngForm"],[1,"form-group","mb-3"],["for","featureDescription",1,"form-label","fw-bold"],["id","featureDescription","rows","4","required","","name","description",1,"form-control",3,"placeholder","ngModel","ngModelChange"],[1,"d-flex","justify-content-center"],["type","submit",1,"btn","btn-primary","px-4",3,"disabled"]],template:function(n,a){1&n&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"h4",2),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"form",3,4),e.\u0275\u0275listener("ngSubmit",function(){return a.submitRequest()}),e.\u0275\u0275elementStart(7,"div",5)(8,"label",6),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"textarea",7),e.\u0275\u0275listener("ngModelChange",function(c){return a.description=c}),e.\u0275\u0275pipe(12,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(13,"div",8)(14,"button",9),e.\u0275\u0275text(15),e.\u0275\u0275pipe(16,"translate"),e.\u0275\u0275pipe(17,"translate"),e.\u0275\u0275elementEnd()()()()()),2&n&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,6,"FEATURE_REQUEST.ADD_TITLE")," "),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(10,8,"FEATURE_REQUEST.LABEL_DETAILS")),e.\u0275\u0275advance(2),e.\u0275\u0275property("placeholder",e.\u0275\u0275pipeBind1(12,10,"FEATURE_REQUEST.PLACEHOLDER_ENTER"))("ngModel",a.description),e.\u0275\u0275advance(3),e.\u0275\u0275property("disabled",!a.description||a.loading),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",a.loading?e.\u0275\u0275pipeBind1(16,12,"FEATURE_REQUEST.SUBMITTING"):e.\u0275\u0275pipeBind1(17,14,"FEATURE_REQUEST.SUBMIT")," "))},dependencies:[s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.On,s.F,p.X$]}),t})()}];let F=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=e.\u0275\u0275defineInjector({imports:[d.Bz.forChild(v),d.Bz]}),t})(),S=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=e.\u0275\u0275defineInjector({imports:[l.CommonModule,F,s.u5,E.JX,p.aw.forChild({isolate:!1})]}),t})()}}]);
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.