1"use strict";(self.webpackChunkminostech_admin_angular=self.webpackChunkminostech_admin_angular||[]).push([[490],{42490:(I,r,s)=>{s.r(r),s.d(r,{GptQuestionModule:()=>y});var l=s(36895),c=s(19347),e=s(94650),h=s(51491),f=s(64383),v=s(90457);function C(t,i){1&t&&e.\u0275\u0275element(0,"app-gpt-question",8),2&t&&e.\u0275\u0275property("que",i.$implicit)}const G=function(t,i){return{itemsPerPage:10,currentPage:t,totalItems:i}};let d=(()=>{class t{constructor(n,o,g){this.apiService=n,this.toastr=o,this.adminService=g,this.p=1,this.getGptQuestions=p=>{this.apiService.get(`chat?page=${p}`).then(a=>{this.totalRecords=a.count,this.questions=a.rows}).catch(a=>{this.toastr.error(a.message,"GPT question error")})}}ngOnInit(){this.admin=this.adminService.admin,this.getGptQuestions(1)}pageChanged(n){this.p=n,this.getGptQuestions(n)}}return t.\u0275fac=function(n){return new(n||t)(e.\u0275\u0275directiveInject(h.t),e.\u0275\u0275directiveInject(f._W),e.\u0275\u0275directiveInject(v.l))},t.\u0275cmp=e.\u0275\u0275defineComponent({type:t,selectors:[["app-gpt-questions"]],decls:12,vars:10,consts:[[1,"content-wrapper"],[1,"content"],[1,"container"],[1,"card"],[1,"card-header"],[1,"card-body"],[3,"que",4,"ngFor","ngForOf"],[3,"pageChange"],[3,"que"]],template:function(n,o){1&n&&(e.\u0275\u0275elementStart(0,"div",0)(1,"section",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h3"),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"div",5),e.\u0275\u0275template(9,C,1,1,"app-gpt-question",6),e.\u0275\u0275pipe(10,"paginate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(11,"pagination-controls",7),e.\u0275\u0275listener("pageChange",function(p){return o.pageChanged(p)}),e.\u0275\u0275elementEnd()()()()),2&n&&(e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(7,2,"GENERAL.GPT_QUESTION_ASKED_BY_USERS")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",e.\u0275\u0275pipeBind2(10,4,o.questions,e.\u0275\u0275pureFunction2(7,G,o.p,o.totalRecords))))}}),t})();const Q=[{path:"gpt-questions",component:d}];let q=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=e.\u0275\u0275defineInjector({imports:[c.Bz.forChild(Q),c.Bz]}),t})(),S=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.\u0275\u0275defineComponent({type:t,selectors:[["app-gpt-question"]],inputs:{que:"que"},decls:6,vars:5,consts:[[1,"card"],[1,"card-header"],[1,"card-body"]],template:function(n,o){1&n&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"h6"),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(4,"div",2),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()()),2&n&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate4(" ",null==o.que?null:o.que.firstName," ",null==o.que?null:o.que.lastName," | ",null==o.que?null:o.que.email," | ",null==o.que?null:o.que.company," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",null==o.que?null:o.que.text," "))}}),t})();var u=s(68567),m=s(4484);let y=(()=>{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,q,u.JX,m.aw.forChild({isolate:!1})]}),t})();e.\u0275\u0275setComponentScope(d,function(){return[l.NgForOf,u.LS,S]},function(){return[u._s,m.X$]})}}]);
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.