PageSourceSearch

https://market.dynamind.co/4603.273c898bc7e1dfc6.js

js dynamind.co collected 2026-09-24 11:16:27 UTC 121,295 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdynaminds=self.webpackChunkdynaminds||[]).push([[4603],{84603:(j,T,c)=>{c.r(T),c.d(T,{MentorAnalyticsModule:()=>Ze});var p=c(36895),s=c(1791),e=c(94650),L=c(14122);let O=(()=>{class r{constructor(){this.SalesReport=!1,this.StudentReport=!1}ngOnInit(){this.SalesReport=!0,this.hideRecaptcha()}updateSelectedTab(t){"ManageAssessment"===t?(this.SalesReport=!0,this.StudentReport=!1):"AddAssessment"===t&&(this.SalesReport=!1,this.StudentReport=!0)}hideRecaptcha(){const t=$(".grecaptcha-badge");if(t.length)return t.css({display:"none"});requestAnimationFrame(()=>this.hideRecaptcha())}static#e=this.\u0275fac=function(n){return new(n||r)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["app-mentor-analytics"]],decls:20,vars:0,consts:[[1,"navbar-expand-sm","navbar-dark"],[1,"top-header"],[1,"d-block","d-sm-flex","d-md-flex","d-lg-flex","d-xl-flex","align-items-left","justify-content-left","align-items-md-left","align-items-lg-left","align-items-xl-left","justify-content-md-left","justify-content-lg-left","justify-content-xl-left"],[1,"card-body","py-2","px-0"],["id","navpills",1,"d-block","d-sm-flex","d-md-flex","d-lg-flex","d-xl-flex","nav","nav-tabs"],[1,"nav-item","mx-0","mx-lg-2","mx-xl-2","mx-md-2","mx-sm-2","mt-xl-0","mt-lg-0","mt-md-0","mt-sm-0","mt-3"],["routerLinkActive","active","routerLink","/navigation-bar/mentor/analytics/student-report",1,"nav-link"],[1,"text-change"],["routerLinkActive","active","routerLink","/navigation-bar/mentor/analytics/sales-report",1,"nav-link"],["routerLinkActive","active","routerLink","/navigation-bar/mentor/analytics/reporting-setup",1,"nav-link"]],template:function(n,a){1&n&&(e.\u0275\u0275element(0,"app-bread-crumb"),e.\u0275\u0275elementStart(1,"nav",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"ul",4),e.\u0275\u0275elementContainerStart(6),e.\u0275\u0275elementStart(7,"li",5)(8,"a",6)(9,"span",7),e.\u0275\u0275text(10,"Mentee Report"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(11,"li",5)(12,"a",8)(13,"span",7),e.\u0275\u0275text(14,"Sales Report"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(15,"li",5)(16,"a",9)(17,"span",7),e.\u0275\u0275text(18,"Reporting Setup"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275element(19,"router-outlet"))},dependencies:[s.lC,s.rH,s.Od,L.N],styles:[".active[_ngcontent-%COMP%]{color:#1e3757!important;border-bottom:5px solid #00E1AC}a[_ngcontent-%COMP%]{font-size:18px;color:#00000054!important;text-align:center}@media screen and (min-width: 300px) and (max-width: 980px){.navbar-nav[_ngcontent-%COMP%]{display:-webkit-inline-box!important;display:-webkit-box!important}.studentReport[_ngcontent-%COMP%]{margin:0 40px}}.nav-tabs[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]{margin-bottom:0}@media screen and (min-width: 577px) and (max-width: 769px){.nav-tabs[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]{margin-top:10px}}.nav-tabs[_ngcontent-%COMP%]   .nav-link.active[_ngcontent-%COMP%], .nav-tabs[_ngcontent-%COMP%]   .show[_ngcontent-%COMP%] > .nav-link[_ngcontent-%COMP%]{text-align:center;border-bottom:5px solid transparent!important;background:#03799C;border-radius:10px 10px 0 0;color:#fff!important;padding:7px 20px}.nav-tabs[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]:not(.active){color:#8796a8!important;background:#ECECEC;border-radius:10px 10px 0 0;padding:9px 20px}@media screen and (min-width: 577px) and (max-width: 768px){.nav-tabs[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]:not(.active){padding:7px 20px}}.text-change[_ngcontent-%COMP%]{font-weight:600;font-size:22px;letter-spacing:1px}@media screen and (min-width: 280px) and (max-width: 360px){.text-change[_ngcontent-%COMP%]{font-size:18px}}@media screen and (min-width: 576px) and (max-width: 767px){.text-change[_ngcontent-%COMP%]{font-size:17px}}.top-header[_ngcontent-%COMP%]{background:#FFFFFF;padding:10px 0;width:100%}"]})}return r})();var V=c(65311);let W=(()=>{class r{constructor(t){this.platformId=t}ngOnInit(){(0,p.NF)(this.platformId)&&window.scrollTo(0,0),new V.Chart("sale-report",{type:"bar",data:{labels:["Red","Blue","Yellow","Green","Purple","Orange"],datasets:[{label:"Student 1",data:[12,19,3,5,2,3],backgroundColor:["rgba(255, 99, 132, 0.5)","rgba(54, 162, 235, 0.5)","rgba(255, 206, 86, 0.5)","rgba(75, 192, 192, 0.5)","rgba(153, 102, 255, 0.5)","rgba(255, 159, 64, 0.5)"],borderColor:["rgba(255, 99, 132, 1)","rgba(54, 162, 235, 1)","rgba(255, 206, 86, 1)","rgba(75, 192, 192, 1)","rgba(153, 102, 255, 1)","rgba(255, 159, 64, 1)"],borderWidth:1}]},options:{scales:{y:{beginAtZero:!0}}}}),this.hideRecaptcha()}hideRecaptcha(){if((0,p.NF)(this.platformId)){const t=$(".grecaptcha-badge");if(t.length)return t.css({display:"none"});requestAnimationFrame(()=>this.hideRecaptcha())}}static#e=this.\u0275fac=function(n){return new(n||r)(e.\u0275\u0275directiveInject(e.PLATFORM_ID))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["app-dashboard"]],decls:2,vars:0,template:function(n,a){1&n&&(e.\u0275\u0275elementStart(0,"p"),e.\u0275\u0275text(1,"dashboard works!"),e.\u0275\u0275elementEnd())},styles:[".grecaptcha-badge[_ngcontent-%COMP%]{display:none}"]})}return r})();var E=c(63234),C=c(25056),F=c(56664),w=c(37865),P=c(97185),k=c(11481),I=c(45626),b=c(89047),M=c(45227);function m(r,d){1&r&&e.\u0275\u0275element(0,"app-loader")}function f(r,d){1&r&&(e.\u0275\u0275elementStart(0,"div",21)(1,"div",22)(2,"div",23),e.\u0275\u0275element(3,"canvas",24),e.\u0275\u0275elementEnd()()())}function l(r,d){if(1&r&&(e.\u0275\u0275elementStart(0,"tr")(1,"td",26)(2,"div",27),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",28),e.\u0275\u0275text(5," Click to preview assessment "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"td",16),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"td",16),e.\u0275\u0275text(9),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"td",16),e.\u0275\u0275text(11),e.\u0275\u0275elementEnd()()),2&r){const t=d.$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",null!=t.assessmentTitle?t.assessmentTitle:"-"," "),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(null!=t.assessmentPrice?t.assessmentPrice:"-"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null!=t.totalOrders?t.totalOrders:"-"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null!=t.totalSales?t.totalSales:"-")}}
1function g(r,d){if(1&r&&(e.\u0275\u0275elementStart(0,"tbody"),e.\u0275\u0275template(1,l,12,4,"tr",25),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.salesByProductData)}}function u(r,d){1&r&&(e.\u0275\u0275elementStart(0,"div")(1,"div",29)(2,"h4",30),e.\u0275\u0275text(3," No Records Found "),e.\u0275\u0275elementEnd()()())}function _(r,d){if(1&r&&(e.\u0275\u0275elementStart(0,"tr")(1,"td",31)(2,"div",27),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(4,"td",16),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"td",16),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"td",16),e.\u0275\u0275text(9),e.\u0275\u0275elementEnd()()),2&r){const t=d.$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",null!=(null==t?null:t.teamName)?null==t?null:t.teamName:"-"," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null!=t.teamPrice?t.teamPrice:"-"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null!=t.totalOrders?t.totalOrders:"-"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null!=t.totalSales?t.totalSales:"-")}}function S(r,d){if(1&r&&(e.\u0275\u0275elementStart(0,"tbody"),e.\u0275\u0275template(1,_,10,4,"tr",25),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.salesByProductDataTeam)}}function N(r,d){1&r&&(e.\u0275\u0275elementStart(0,"div")(1,"div",29)(2,"h4",30),e.\u0275\u0275text(3," No Records Found "),e.\u0275\u0275elementEnd()()())}function J(r,d){1&r&&(e.\u0275\u0275elementStart(0,"div",21)(1,"div",22)(2,"div",23),e.\u0275\u0275element(3,"canvas",32),e.\u0275\u0275elementEnd()()())}function Q(r,d){if(1&r&&(e.\u0275\u0275elementStart(0,"tr")(1,"td",26)(2,"div",27),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",28),e.\u0275\u0275text(5," Click to preview assessment "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"td",16),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"td",16),e.\u0275\u0275text(9),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"td",16),e.\u0275\u0275text(11),e.\u0275\u0275elementEnd()()),2&r){const t=d.$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",null!=t.assessmentTitle?t.assessmentTitle:"-"," "),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(null!=t.assessmentPrice?t.assessmentPrice:"-"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null!=t.totalOrders?t.totalOrders:"-"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null!=t.totalSales?t.totalSales:"-")}}function Z(r,d){if(1&r&&(e.\u0275\u0275elementStart(0,"tbody"),e.\u0275\u0275template(1,Q,12,4,"tr",25),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.salesByProductData)}}function X(r,d){1&r&&(e.\u0275\u0275elementStart(0,"div")(1,"div",29)(2,"h4",30),e.\u0275\u0275text(3," No Records Found "),e.\u0275\u0275elementEnd()()())}function ee(r,d){if(1&r&&(e.\u0275\u0275elementStart(0,"tr")(1,"td",31)(2,"div",27),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(4,"td",16),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"td",16),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"td",16),e.\u0275\u0275text(9),e.\u0275\u0275elementEnd()()),2&r){const t=d.$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",null!=(null==t?null:t.teamName)?null==t?null:t.teamName:"-"," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null!=t.teamPrice?t.teamPrice:"-"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null!=t.totalOrders?t.totalOrders:"-"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null!=t.totalSales?t.totalSales:"-")}}function te(r,d){if(1&r&&(e.\u0275\u0275elementStart(0,"tbody"),e.\u0275\u0275template(1,ee,10,4,"tr",25),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.salesByProductDataTeam)}}function ne(r,d){1&r&&(e.\u0275\u0275elementStart(0,"div")(1,"div",29)(2,"h4",30),e.\u0275\u0275text(3," No Records Found "),e.\u0275\u0275elementEnd()()())}let ae=(()=>
1{class r{constructor(t,n,a,o){this.platformId=t,this.apiService=n,this.toaster=a,this.titleService=o,this.monthlySalesData=new F.tu,this.yearlySalesData=new F.tu,this.salesByProductData=[],this.salesByProductDataTeam=[],this.getDataRequest=new C.l,this.getDataTeamRequest=new C.l,this.totalPages=1,this.currentPage=1,this.totalTeamPages=1,this.currentTeamPage=1,this.monthMode=!0,this.monthTeamMode=!0,this.numberOfRowsPerPage=5,this.numberOfTeamRowsPerPage=5,this.isLoading=!1,this.titleService.setTitle("Dynamind Sales Report")}ngOnInit(){this.hideRecaptcha(),(0,p.NF)(this.platformId)&&window.scrollTo(0,0),this.isLoading=!0,setTimeout(()=>{this.monthlyReportData(),this.salesByProductMonth(null),this.salesByProductTeamMonth(null)},1)}onSortAssessmentClick(t){this.getDataRequest.sortOrder="asc"==this.getDataRequest.sortOrder?"desc":"asc",this.salesByProductMonth(t)}onSortYearAssessmentClick(t){this.getDataRequest.sortOrder="asc"==this.getDataRequest.sortOrder?"desc":"asc",this.salesByProductYear(t)}monthlyReportData(){this.isLoading=!0,this.monthMode=!0,this.getDataRequest.pageNumber=0,this.getDataTeamRequest.pageNumber=0,this.totalPages=1,this.totalTeamPages=1,this.salesByProductMonth(null),this.salesByProductTeamMonth(null),this.yearlyChart&&this.yearlyChart.destroy(),this.monthlyChart&&this.monthlyChart.destroy();let t=[],n=[];this.apiService.getService(this.apiService.apiUrls.getSalesOverTimeForMonth).subscribe(a=>{a&&200==a.statusCode&&a.data?(this.isLoading=!1,this.monthlySalesData=a.data,t=this.monthlySalesData.salesDurations.map(o=>o.month),n=this.monthlySalesData.salesDurations.map(o=>o.salesAmount),this.monthlyChart=new E.Z("monthly-sales-report",{type:"line",data:{labels:t,datasets:[{label:"Sales",data:n,fill:!0,backgroundColor:"rgba(75,192,192,0.4)",borderColor:"rgba(75,192,192,1)",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",pointBorderColor:"rgba(75,192,192,1)",pointBackgroun
1dColor:"#fff",pointBorderWidth:1,pointHoverRadius:5,pointHoverBackgroundColor:"rgba(75,192,192,1)",pointHoverBorderColor:"rgba(220,220,220,1)",pointHoverBorderWidth:2,pointRadius:1,pointHitRadius:10,spanGaps:!0}]},options:{responsive:!0,maintainAspectRatio:!1,scales:{xAxes:{title:{display:!0,text:"Months"}},y:{title:{display:!0,text:"INR / Rupees"},beginAtZero:!0,weight:5}}}})):(this.isLoading=!1,this.toaster.show(a?.message,"Info"))},a=>{401==a.status?(this.isLoading=!1,this.toaster.show(a.message?a.message:"Something Went Wrong","Warning"),(0,p.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(a?.error?.message,"Info"))})}yearlyReportData(){this.monthMode=!1,this.getDataRequest.pageNumber=0,this.getDataTeamRequest.pageNumber=0,this.totalPages=1,this.totalTeamPages=1,this.salesByProductYear(null),this.salesByProductTeamYear(null),this.monthlyChart&&this.monthlyChart.destroy(),this.yearlyChart&&this.yearlyChart.destroy();let t=[],n=[];this.apiService.getService(this.apiService.apiUrls.getSalesOverTimeForYear).subscribe(a=>{a&&200==a.statusCode&&a.data?(this.yearlySalesData=a.data,t=this.yearlySalesData.salesDurations.map(o=>o.year),n=this.yearlySalesData.salesDurations.map(o=>o.salesAmount),this.yearlyChart=new E.Z("yearly-sales-report",{type:"line",data:{labels:t,datasets:[{label:"Sales",data:n,fill:!0,backgroundColor:"rgba(75,192,192,0.4)",borderColor:"rgba(75,192,192,1)",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",pointBorderColor:"rgba(75,192,192,1)",pointBackgroun
1dColor:"#fff",pointBorderWidth:10,pointHoverRadius:15,pointHoverBackgroundColor:"rgba(75,192,192,1)",pointHoverBorderColor:"rgba(220,220,220,1)",pointHoverBorderWidth:2,pointRadius:10,pointHitRadius:1,spanGaps:!1}]},options:{responsive:!0,maintainAspectRatio:!1,scales:{x:{title:{display:!0,text:"Years"}},y:{title:{display:!0,text:"INR / Rupees"},beginAtZero:!0,weight:5}}}})):this.toaster.show(a?.message,"Info")},a=>{401==a.status?(this.isLoading=!1,this.toaster.show(a.message?a.message:"Something Went Wrong","Warning"),(0,p.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(a?.error?.message,"Info"))})}salesByProductYear(t){this.getDataRequest.sortFieldName=t,this.apiService.postService(this.apiService.apiUrls.getSalesDataByYear,this.getDataRequest).subscribe(n=>{n&&200==n.statusCode&&n.data&&n.data.content?(this.salesByProductData=n.data.content,this.totalPages=n.data.totalPages):this.toaster.show(n?.message,"Info")},n=>{401==n.status?(this.isLoading=!1,this.toaster.show(n.message?n.message:"Something Went Wrong","Warning"),(0,p.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(n?.error?.message,"Info"))})}salesByProductTeamYear(t){this.getDataTeamRequest.sortFieldName=t,this.apiService.postService(this.apiService.apiUrls.getProductTeamYear,this.getDataTeamRequest).subscribe(n=>{n&&200==n.statusCode&&n.data&&n.data.content?(this.salesByProductDataTeam=n.data.content,this.totalTeamPages=n.data.totalPages):this.toaster.show(n?.message,"Info")},n=>{401==n.status?(this.isLoading=!1,this.toaster.show(n.message?n.message:"Something Went Wrong","Warning"),(0,p.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(n?.error?.message,"Info"))})}salesByProductMonth(t){this.getDataRequest.sortFieldName=t,this.getDataRequest.pageSize=10,this.apiService.postService(this.apiService.apiUrls.getSalesDataByMonth,this.getDataRequest).subscribe(n=>{n&&200==n.statusCode&&n.data&&n.data.content?(this.isLoading=!1,this.salesByProductData=n.data.content,this.totalPages=n.data.totalPages):(this.isLoading=!1,this.toaster.show(n?.message,"Info"))},n=>{401==n.status?(this.isLoading=!1,this.toaster.show(n.message?n.message:"Something Went Wrong","Warning"),(0,p.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(n?.error?.message,"Info"))})}salesByProductTeamMonth(t){this.getDataTeamRequest.sortFieldName=t,this.getDataTeamRequest.pageSize=10,this.apiService.postService(this.apiService.apiUrls.getProductTeamMonth,this.getDataTeamRequest).subscribe(n=>{n&&200==n.statusCode&&n.data&&n.data.content?(this.isLoading=!1,this.salesByProductDataTeam=n.data.content,this.totalTeamPages=n.data.totalPages):(this.isLoading=!1,this.toaster.show(n?.message,"Info"))},n=>{401==n.status?(this.isLoading=!1,this.toaster.show(n.message?n.message:"Something Went Wrong","Warning"),(0,p.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(n?.error?.message,"Info"))})}getTotalRecords(){return this.totalPages*this.numberOfRowsPerPage}getTotalRecordsTeam(){return this.totalTeamPages*this.numberOfTeamRowsPerPage}paginate(t){this.getDataRequest.pageNumber=t.page,this.monthMode?this.salesByProductMonth(null):this.salesByProductYear(null)}paginateTeam(t){this.getDataTeamRequest.pageNumber=t.page,this.monthTeamMode?this.salesByProductTeamMonth(null):this.salesByProductTeamYear(null)}hideRecaptcha(){if((0,p.NF)(this.platformId)){const t=$(".grecaptcha-badge");if(t.length)return t.css({display:"none"});requestAnimationFrame(()=>this.hideRecaptcha())}}static#e=this.\u0275fac=function(n){return new(n||r)(e.\u0275\u0275directiveInject(e.PLATFORM_ID),e.\u0275\u0275directiveInject(w.s),e.\u0275\u0275directiveInject(P._W),e.\u0275\u0275directiveInject(k.Dx))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["app-sales-report"]],decls:110,vars:19,consts:[[4,"ngIf"],[1,"slaes_overt","mt-4","mb-3"],[1,"d-block","d-sm-flex","d-md-flex","d-lg-flex","d-xl-flex","justify-content-between"],["id","navpills",1,"nav","nav-pills","d-block","d-sm-flex","d-md-flex","d-lg-flex","d-xl-flex"],[1,"nav-item","text-center"],["data-toggle","tab","href","#monthly-report",1,"nav-link","active","pad-5","py-3",3,"click"],[1,"nav-Items"],["data-toggle","tab","href","#yearly-report",1,"nav-link","pad-5","py-3",3,"click"],[1,"tab-content"],["id","monthly-report",1,"tab-pane","active"],["class","card p-0 p-md-4 p-lg-4 p-xl-4 month-border",4,"ngIf"],[1,"row","m-0"],[1,"slaes_overt","mt-5","mb-3"],[1,"table-responsive",2,"background","#F1F4F8","padding","2px 20px"],[1,"table",2,"border-collapse","separate","border-spacing","0 6px"],[1,"tableHead"],[1,"text-center"],[1,"border-0","text-nowrap"],[1,"my-icon","fa","fa-chevron-up",2,"cursor","pointer",3,"click"],[1,"my-3","float-left",3,"rows","totalRecords","onPageChange"],["id","yearly-report",1,"tab-pane"],[1,"card","p-0","p-md-4","p-lg-4","p-xl-4","month-border"],[1,"card"],[1,"card-body","p-0","p-md-4","p-lg-4","p-xl-4"],["id","monthly-sales-report"],[4,"ngFor","ngForOf"],[1,"text-center","txt-ellipsis","hoverForListGroup"],[1,"title","txt-ellipsis","defaultColor"],[1,"preview","defaultColor"],[1,"text-center","card","py-4","mb-3"],[1,"mb-0"],[1,"text-center","txt-ellipsis"],["
1id","yearly-sales-report"]],template:function(n,a){1&n&&(e.\u0275\u0275template(0,m,1,0,"app-loader",0),e.\u0275\u0275elementStart(1,"h4",1),e.\u0275\u0275text(2,"Sales overtime"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",2)(4,"div")(5,"ul",3)(6,"li",4)(7,"a",5),e.\u0275\u0275listener("click",function(){return a.monthlyReportData()}),e.\u0275\u0275elementStart(8,"span",6),e.\u0275\u0275text(9,"Monthly"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(10,"li",4)(11,"a",7),e.\u0275\u0275listener("click",function(){return a.yearlyReportData()}),e.\u0275\u0275elementStart(12,"span",6),e.\u0275\u0275text(13,"Yearly"),e.\u0275\u0275elementEnd()()()()()(),e.\u0275\u0275elementStart(14,"div",8)(15,"div",9),e.\u0275\u0275template(16,f,4,0,"div",10),e.\u0275\u0275elementStart(17,"div",11)(18,"h4",12),e.\u0275\u0275text(19,"Assessments Sales"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(20,"div",13)(21,"table",14)(22,"thead",15)(23,"tr",16)(24,"th",17),e.\u0275\u0275text(25,"Assessment "),e.\u0275\u0275elementStart(26,"i",18),e.\u0275\u0275listener("click",function(){return a.onSortAssessmentClick("assessmentTitle")}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(27,"th",17),e.\u0275\u0275text(28,"Price(In INR) "),e.\u0275\u0275elementStart(29,"i",18),e.\u0275\u0275listener("click",function(){return a.onSortAssessmentClick("totalOrders")}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(30,"th",17),e.\u0275\u0275text(31,"Total Order "),e.\u0275\u0275elementStart(32,"i",18),e.\u0275\u0275listener("click",function(){return a.onSortAssessmentClick("totalOrders")}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(33,"th",17),e.\u0275\u0275text(34,"Total Sales(In INR) "),e.\u0275\u0275elementStart(35,"i",18),e.\u0275\u0275listener("click",function(){return a.onSortAssessmentClick("totalSales")}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275template(36,g,2,1,"tbody",0),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(37,u,4,0,"div",0),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(38,"p-paginator",19),e.\u0275\u0275listener("onPageChange",function(i){return a.paginate(i)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(39,"div",11)(40,"h4",12),e.\u0275\u0275text(41,"Cohort Sales"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(42,"div",13)(43,"table",14)(44,"thead",15)(45,"tr",16)(46,"th",17),e.\u0275\u0275text(47,"Cohort Name "),e.\u0275\u0275elementStart(48,"i",18),e.\u0275\u0275listener("click",function(){return a.onSortAssessmentClick("assessmentTitle")}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(49,"th",17),e.\u0275\u0275text(50,"Price(in INR) "),e.\u0275\u0275elementStart(51,"i",18),e.\u0275\u0275listener("click",function(){return a.onSortAssessmentClick("totalOrders")}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(52,"th",17),e.\u0275\u0275text(53,"Total orders "),e.\u0275\u0275elementStart(54,"i",18),e.\u0275\u0275listener("click",function(){return a.onSortAssessmentClick("totalSales")}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(55,"th",17),e.\u0275\u0275text(56,"Total Sales(in INR) "),e.\u0275\u0275elementStart(57,"i",18),e.\u0275\u0275listener("click",function(){return a.onSortAssessmentClick("totalSales")}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275template(58,S,2,1,"tbody",0),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(59,N,4,0,"div",0),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(60,"p-paginator",19),e.\u0275\u0275listener("onPageChange",function(i){return a.paginateTeam(i)}),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(61,"div",20),e.\u0275\u0275template(62,J,4,0,"div",10),e.\u0275\u0275elementStart(63,"div",11)(64,"h4",12),e.\u0275\u0275text(65,"Assessments Sales"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(66,"div",13)(67,"table",14)(68,"thead",15)(69,"tr",16)(70,"th",17),e.\u0275\u0275text(71,"Assessment "),e.\u0275\u0275elementStart(72,"i",18),e.\u0275\u0275listener("click",function(){return a.onSortYearAssessmentClick("assessmentTitle")}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(73,"th",17),e.\u0275\u0275text(74,"Price(in INR) "),e.\u0275\u0275elementStart(75,"i",18),e.\u0275\u0275listener("click",function(){return a.onSortYearAssessmentClick("totalSales")}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(76,"th",17),e.\u0275\u0275text(77,"Total Order "),e.\u0275\u0275elementStart(78,"i",18),e.\u0275\u0275listener("click",function(){return a.onSortYearAssessmentClick("totalOrders")}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(79,"th",17),e.\u0275\u0275text(80,"Total Sales(in INR) "),e.\u0275\u0275elementStart(81,"i",18),e.\u0275\u0275listener("click",function(){return a.onSortYearAssessmentClick("totalSales")}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275template(82,Z,2,1,"tbody",0),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(83,X,4,0,"div",0),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(84,"p-paginator",19),e.\u0275\u0275listener("onPageChange",function(i){return a.paginate(i)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(85,"div",11)(86,"h4",12),e.\u0275\u0275text(87,"Team Sales"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(88,"div",13)(89,"table",14)(90,"thead",15)(91,"tr",16)(92,"th",17),e.\u0275\u0275text(93,"Team Name "),e.\u0275\u0275elementStart(94,"i",18),e.\u0275\u0275listener("click",function(){return a.onSortAssessmentClick("assessmentTitle")}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(95,"th",17),e.\u0275\u0275text(96,"Price(in INR) "),e.\u0275\u0275elementStart(97,"i",18),e.\u0275\u0275listener("click",function(){return a.onSortAssessmentClick("totalOrders")}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(98,"th",17),e.\u0275\u0275text(99,"Total orders "),e.\u0275\u0275elementStart(100,"i",18),e.\u0275\u0275listener("click",function(){return a.onSortAssessmentClick("totalSales")}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(101,"th",17),e.\u0275\u0275text(102,"Total Sales(in INR) "),e.\u0275\u0275elementStart(103,"i",18),e.\u0275\u0275listener("click",function(){return a.onSortAssessmentClick("totalSales")}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275template(104,te,2,1,"tbody",0),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(105,ne,4,0,"div",0),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(106,"p-paginator",19),e.\u0275\u0275listener("onPageChange",function(i){return a.paginateTeam(i)}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275element(107,"app-footer")(108,"br")(109,"br")),2&n&&(e.\u0275\u0275property("ngIf",a.isLoading),e.\u0275\u0275advance(16),e.\u0275\u0275property("ngIf",a.monthlySalesData),e.\u0275\u0275advance(20),e.\u0275\u0275property("ngIf",a.salesByProductData&&(null==a.salesByProductData?null:a.salesByProductData.length)>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0==a.salesByProductData.length&&0==a.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("rows",a.numberOfRowsPerPage)("totalRecords",a.getTotalRecords()),e.\u0275\u0275advance(20),e.\u0275\u0275property("ngIf",a.salesByProductDataTeam&&(null==a.salesByProductDataTeam?null:a.salesByProductDataTeam.length)>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0==a.salesByProductDataTeam.length&&0==a.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("rows",a.numberOfTeamRowsPerPage)("totalRecords",a.getTotalRecordsTeam()),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",a.yearlySalesData),e.\u0275\u0275advance(20),e.\u0275\u0275property("ngIf",a.salesByProductData&&(null==a.salesByProductData?null:a.salesByProductData.length)>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0==a.salesByProductData.length&&0==a.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("rows",a.numberOfRowsPerPage)("totalRecords",a.getTotalRecords()),e.\u0275\u0275advance(20),e.\u0275\u0275property("ngIf",a.salesByProductDataTeam&&(null==a.salesByProductDataTeam?null:a.salesByProductDataTeam.length)>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0==a.salesByProductDataTeam.length&&0==a.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("rows",a.numberOfTeamRowsPerPage)("totalRecords",a.getTotalRecordsTeam()))},dependencies:[p.sg,p.O5,I.D,b.R,M.c],styles:["canvas[_ngcontent-%COMP%]{width:100%!important;height:400px!important}.nav-pills[_ngcontent-%COMP%]   .nav-link.active[_ngcontent-%COMP%], .nav-pills[_ngcontent-%COMP%]   .show[_ngcontent-%COMP%] > .nav-link[_ngcontent-%COMP%]{background-color:#fff;background:-webkit-linear-gradient(#1DD1FC,#1DD1FC)!important;-webkit-background-clip:text!important;-webkit-text-fill-color:transparent!important;box-shadow:0 4px 20px #00000026!important}.nav-Items[_ngcontent-%COMP%]{font-weight:600;font-size:16px;line-height:19px;text-align:center}a[_ngcontent-%COMP%]{color:#00000052;text-decoration:none;background-color:transparent}.tableHead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{width:33%!important}.grecaptcha-badge[_ngcontent-%COMP%], .preview[_ngcontent-%COMP%]{display:none}.txt-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;max-width:290px;white-space:nowrap}.title[_ngcontent-%COMP%]{display:block}.hoverForListGroup[_ngcontent-%COMP%]:hover   .title[_ngcontent-%COMP%]{display:none}.hoverForListGroup[_ngcontent-%COMP%]:hover   .preview[_ngcontent-%COMP%]{display:inline-block;background:-webkit-linear-gradient(90deg,#10c69b 23.49%,#03799c 72.57%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-overflow:ellipsis;overflow:hidden;max-width:250px;white-space:nowrap}.defaultColor[_ngcontent-%COMP%]{color:#1e3757}.hyperLink[_ngcontent-%COMP%]{color:#00e1ac!important;text-decoration:underline;text-align:end;margin-right:30px;cursor:pointer}.month-border[_ngcontent-%COMP%]{background:#FFFFFF;border:0px solid;box-shadow:0 5px 8px #0000004d;border-radius:0 0 20px 20px}.nav-pills[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]{background:#CCCCCC!important;color:#666!important}.month-border[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{border:0px solid!important}.pad-5[_ngcontent-%COMP%]{padding-left:5rem;padding-right:5rem}.nav-pills[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]{border-top-left-radius:10px;border-top-right-radius:10px}.slaes_overt[_ngcontent-%COMP%]{color:#1e3757;font-size:30px;font-weight:800}"]})}return r})();var y=c(2110),oe=c(42680),q=c(96166),re=c(4159),z=c.n(re),U=c(33739),ie=c(84207),x=c(84719),H=c(22883);const se=["aa"],le=["bb"],de=["cc"],pe=["dd"],ce=["htmlData"];function me(r,d){1&r&&e.\u0275\u0275element(0,"app-loader")}function he(r,d){1&r&&(e.\u0275\u0275elementStart(0,"div",19)(1,"h3"),e.\u0275\u0275text(2,"Mentee Report"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",20)(4,"div",21)(5,"h3"),e.\u0275\u0275text(6,"Mentee report not found !"),e.\u0275\u0275elementEnd()()()())}function ge(r,d){if(1&r&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&r){const t=d.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.assessmentTitle," ")}}function ue(r,d){1&r&&(e.\u0275\u0275elementStart(0,"span",55),e.\u0275\u0275element(1,"i",56),e.\u0275\u0275elementEnd())}function fe(r,d){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",57),e.\u0275\u0275listener("click",function(){const o=e.\u0275\u0275restoreView(t).$implicit,i=e.\u0275\u0275nextContext().index,h=e.\u0275\u0275nextContext(2);
1return e.\u0275\u0275resetView(h.selectedCode(o,i))}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&r){const t=d.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",t.phoneCode," (",t.iso3,") ")}}function _e(r,d){1&r&&(e.\u0275\u0275elementStart(0,"div")(1,"p",58),e.\u0275\u0275text(2,"No Records Found "),e.\u0275\u0275elementEnd()())}function xe(r,d){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tr",39)(1,"td",11),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"td",11),e.\u0275\u0275template(4,ge,2,1,"span",12),e.\u0275\u0275elementStart(5,"span",40),e.\u0275\u0275listener("click",function(){const o=e.\u0275\u0275restoreView(t).$implicit,i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.getStudentReportModal(o.studentId,0))}),e.\u0275\u0275template(6,ue,2,0,"span",41),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"td",11),e.\u0275\u0275text(8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"td",42)(10,"div",43)(11,"div",44)(12,"button",45)(13,"span",46),e.\u0275\u0275text(14),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(15,"div",47)(16,"input",48),e.\u0275\u0275listener("keyup",function(a){const i=e.\u0275\u0275restoreView(t).index,h=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(h.search(i,a.target.value))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(17,fe,2,2,"div",49),e.\u0275\u0275template(18,_e,3,0,"div",0),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(19,"input",50,51),e.\u0275\u0275listener("keypress",function(a){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(o.numberOnly(a))})("ngModelChange",function(a){const i=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275resetView(i.parentWhatsAppNumber=a)})("change",function(){const o=e.\u0275\u0275restoreView(t).index,i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.phoneNumberValidation(o))}),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(21,"td")(22,"div",52)(23,"input",53),e.\u0275\u0275listener("ngModelChange",function(a){const i=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275resetView(i.enableShareReport=a)})("click",function(a){const i=e.\u0275\u0275restoreView(t).index,h=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(h.onToggle(i,a.target.checked))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(24,"label",54),e.\u0275\u0275text(25),e.\u0275\u0275elementEnd()()()()}if(2&r){const t=d.$implicit,n=d.index,a=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",null==t.studentName?"N/A":t.studentName," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.assessments),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",1==t.enableViewMoreAssessments),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",t.averageScore," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("value",null==t.parentWhatsAppCountryCode?"IND (+91)":t.parentWhatsAppCountryCode),e.\u0275\u0275advance(1),e.\u0275\u0275property("title",null==t.parentWhatsAppCountryCode?"IND (+91)":t.parentWhatsAppCountryCode),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null==t.parentWhatsAppCountryCode?"IND (+91)":t.parentWhatsAppCountryCode," "),e.\u0275\u0275advance(1),e.\u0275\u0275styleProp("height",a.heightOfThedropDown),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.countriesListDummy),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0==t.countriesListDummy.length),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate1("name","parentno",n,"")("id","parentPhno",n,""),e.\u0275\u0275propertyInterpolate("maxlength",null==t.phoneCodeLength?"":t.phoneCodeLength),e.\u0275\u0275property("ngModel",t.parentWhatsAppNumber),e.\u0275\u0275advance(4),e.\u0275\u0275propertyInterpolate1("id","switch1",n,""),e.\u0275\u0275property("disabled",a.disableToggle(n))("ngModel",t.enableShareReport),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate1("for","switch1",n,""),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.enableShareReport?"Yes":"No"," ")}}function ve(r,d){1&r&&(e.\u0275\u0275elementStart(0,"div")(1,"div",59)(2,"h4",60),e.\u0275\u0275text(3,"No Records Found"),e.\u0275\u0275elementEnd()()())}function Ce(r,d){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"div",22)(2,"h3",23),e.\u0275\u0275text(3,"Mentee Report"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",24)(5,"div")(6,"h4",25),e.\u0275\u0275text(7,"Mentee-wise report"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"div")(9,"div",26)(10,"input",27),e.\u0275\u0275listener("ngModelChange",function(a){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();
1return e.\u0275\u0275resetView(o.searchkeyForStudentReport=a)})("keyup.enter",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.onStudentReportSearch())}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",28)(12,"span",29)(13,"i",30),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.onStudentReportSearch())}),e.\u0275\u0275elementEnd()()()()()()(),e.\u0275\u0275elementStart(14,"div",31)(15,"table",32)(16,"thead")(17,"tr",11)(18,"th",33),e.\u0275\u0275text(19,"Mentee name "),e.\u0275\u0275elementStart(20,"i",34),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.onSortClick("studentName"))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(21,"th",33),e.\u0275\u0275text(22,"Assessments "),e.\u0275\u0275elementStart(23,"i",34),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.onSortClick("assessments"))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(24,"th",33),e.\u0275\u0275text(25,"Average score % "),e.\u0275\u0275elementStart(26,"i",34),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.onSortClick("averageScore"))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(27,"th",33),e.\u0275\u0275text(28,"Reporting Whatsapp Number "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(29,"th",33),e.\u0275\u0275text(30,"Share Report "),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(31,"tbody"),e.\u0275\u0275template(32,xe,26,20,"tr",35),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(33,ve,4,0,"div",0),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(34,"div",36)(35,"div",37)(36,"p-paginator",15,38),e.\u0275\u0275listener("onPageChange",function(a){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(o.paginateStudentRecordsChange(a))}),e.\u0275\u0275elementEnd()()()()}if(2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(10),e.\u0275\u0275property("ngModel",t.searchkeyForStudentReport),e.\u0275\u0275advance(22),e.\u0275\u0275property("ngForOf",t.getAnalyticsStudentReport),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0===(null==t.getAnalyticsStudentReport?null:t.getAnalyticsStudentReport.length)&&0==t.isLoading),e.\u0275\u0275advance(3),e.\u0275\u0275property("rows",t.numberOfRowsStudentPerPage)("totalRecords",t.getTotalStudentRecords())}}function Se(r,d){1&r&&(e.\u0275\u0275elementStart(0,"div",19)(1,"h3"),e.\u0275\u0275text(2,"Assessment report"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",20)(4,"div",21)(5,"h3"),e.\u0275\u0275text(6,"Assessment report not found !"),e.\u0275\u0275elementEnd()()()())}function we(r,d){if(1&r&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&r){const t=d.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.studentName," ")}}function be(r,d){1&r&&(e.\u0275\u0275elementStart(0,"span",55),e.\u0275\u0275element(1,"i",56),e.\u0275\u0275elementEnd())}function ye(r,d){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tr",72)(1,"td",73)(2,"div",74),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",75),e.\u0275\u0275listener("click",function(a){const i=e.\u0275\u0275restoreView(t).$implicit,h=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(h.previewAssessmentPage(a,i.assessmentId))}),e.\u0275\u0275text(5," Click to preview assessment "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"td",11),e.\u0275\u0275template(7,we,2,1,"span",12),e.\u0275\u0275elementStart(8,"span",40),e.\u0275\u0275listener("click",function(){const o=e.\u0275\u0275restoreView(t).$implicit,i=e.\u0275\u0275nextContext(2);
1return e.\u0275\u0275resetView(i.getAssessmentReportModal(o.assessmentId,0))}),e.\u0275\u0275template(9,be,2,0,"span",41),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(10,"td",11),e.\u0275\u0275text(11),e.\u0275\u0275pipe(12,"number"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"td",11)(14,"span",76),e.\u0275\u0275text(15),e.\u0275\u0275pipe(16,"number"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(17,"td",11)(18,"span",77),e.\u0275\u0275text(19),e.\u0275\u0275pipe(20,"number"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(21,"td")(22,"div",78)(23,"div",11)(24,"span",79),e.\u0275\u0275listener("click",function(){const o=e.\u0275\u0275restoreView(t).$implicit,i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.shareReport(o.assessmentId))}),e.\u0275\u0275element(25,"img",80),e.\u0275\u0275elementEnd()()()()()}if(2&r){const t=d.$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",t.assessmentTitle," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngForOf",t.students),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",1==t.enableViewMoreStudents),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",null==t.averageScore?"N/A":e.\u0275\u0275pipeBind2(12,6,t.averageScore,"1.0-2")," "),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",null==t.highestScore?"N/A":e.\u0275\u0275pipeBind2(16,9,t.highestScore,"1.0-2")," "),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",null==t.lowestScore?"N/A":e.\u0275\u0275pipeBind2(20,12,t.lowestScore,"1.0-2")," ")}}function Re(r,d){1&r&&(e.\u0275\u0275elementStart(0,"div")(1,"div",59)(2,"h4",60),e.\u0275\u0275text(3,"No Records Found"),e.\u0275\u0275elementEnd()()())}function Pe(r,d){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"div",22)(2,"div",61)(3,"div")(4,"h3",25),e.\u0275\u0275text(5,"Assessment-wise report"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div",62)(7,"div",26)(8,"input",63),e.\u0275\u0275listener("ngModelChange",function(a){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(o.searchkeyForAssessmentReport=a)})("keyup.enter",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.onAssessmentReportSearch())}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"div",28)(10,"span",29)(11,"i",30),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.onAssessmentReportSearch())}),e.\u0275\u0275elementEnd()()()()()()(),e.\u0275\u0275elementStart(12,"div",64)(13,"table",32)(14,"thead")(15,"tr",11)(16,"th",65),e.\u0275\u0275text(17,"Assessment name "),e.\u0275\u0275elementStart(18,"i",66),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.onSortAssessmentClick("assessmentTitle"))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(19,"th",65),e.\u0275\u0275text(20,"Mentees "),e.\u0275\u0275element(21,"i",67),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(22,"th",65),e.\u0275\u0275text(23,"Average score % "),e.\u0275\u0275elementStart(24,"i",34),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.onSortAssessmentClick("averageScore"))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(25,"th",68),e.\u0275\u0275text(26,"Highest score % "),e.\u0275\u0275elementStart(27,"i",34),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.onSortAssessmentClick("highestScore"))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(28,"th",69),e.\u0275\u0275text(29,"Lowest score % "),e.\u0275\u0275elementStart(30,"i",34),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.onSortAssessmentClick("lowestScore"))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(31,"th",33),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(32,"tbody"),e.\u0275\u0275template(33,ye,26,15,"tr",70),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(34,Re,4,0,"div",0),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(35,"div",36)(36,"div",37)(37,"p-paginator",15,71),e.\u0275\u0275listener("onPageChange",function(a){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();
1return e.\u0275\u0275resetView(o.paginateAssessmentRecordsChange(a))}),e.\u0275\u0275elementEnd()()()()}if(2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(8),e.\u0275\u0275property("ngModel",t.searchkeyForAssessmentReport),e.\u0275\u0275advance(25),e.\u0275\u0275property("ngForOf",t.getAnalyticsAssessmentReport),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0===(null==t.getAnalyticsAssessmentReport?null:t.getAnalyticsAssessmentReport.length)&&0==t.isLoading),e.\u0275\u0275advance(3),e.\u0275\u0275property("rows",t.numberOfRowsPerAssessmentPage)("totalRecords",t.getTotalAssessmentRecords())}}const Ie=function(){return["whatsapp"]};function ke(r,d){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tr")(1,"td"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"td",11),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"td",11),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"td",11)(8,"div",78)(9,"div",81),e.\u0275\u0275listener("click",function(){const o=e.\u0275\u0275restoreView(t).$implicit,i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.openPdf(o.reportSummary))}),e.\u0275\u0275element(10,"img",82),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",83),e.\u0275\u0275element(12,"share-buttons",84),e.\u0275\u0275elementEnd()()()()}if(2&r){const t=d.$implicit,n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",null==t.assessmentTitle?"N/A":t.assessmentTitle," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",null==t.score?"N/A":t.score," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",t.currentAttemptCount," "),e.\u0275\u0275advance(6),e.\u0275\u0275property("include",e.\u0275\u0275pureFunction0(7,Ie))("showIcon",!0)("showText",!1)("url",n.getUrl(t.studentId,t.assessmentId))}}function Me(r,d){if(1&r&&(e.\u0275\u0275elementStart(0,"tr")(1,"td"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"td",11),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"number"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"td",11),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"td",11),e.\u0275\u0275text(9),e.\u0275\u0275elementEnd()()),2&r){const t=d.$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",null==t.studentName?"N/A":t.studentName," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",null==t.score?"N/A":e.\u0275\u0275pipeBind2(5,4,t.score,"1.0-2")," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",null==t.timeTakenInMinutes?"N/A":t.timeTakenInMinutes," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",t.currentAttemptCount," ")}}let De=(()=>{class r{constructor(t,n,a,o,i,h,v,D){this.platformId=t,this.loggedInUserService=n,this.apiservice=a,this.toastr=o,this.activetedRoute=i,this.titleService=h,this.router=v,this._setting=D,this.getDataRequest=new C.l,this.getStudenDataRequest=new C.l,this.getStudentModalDataRequest=new C.l,this.getAssessmentModalDataRequest=new C.l,this.getAnalyticsStudentReport=[],this.shareReportDto=new y.C,this.phoneNumberCodeArr=new Array(10),this.numberOfRowsStudentPerPage=5,this.currentStudentPageNumber=0,this.numberOfRowsPerAssessmentPage=5,this.currentAssessmentPageNumber=0,this.numberOfRowsStudentPerPageModal=5,this.currentStudentPageNumberModal=0,this.numberOfRowsPerAssessmentPageModel=5,this.currentAssessmentPageNumberModel=0,this.showYes={},this.showEdit={},this.totalPagesForStudentReport=1,this.totalPagesForStudentReportModel=1,this.totalPagesForAssessmentReport=1,this.totalPagesForAssessmentReportModal=1,this.assessmentId=0,this.studentId=0,this.isLoading=!1,this.phoneNumberCode=10,this.selectedShareReportDto=new y.C,this.sortDir=1,this.firstTimeUserForAnalyticsStudentReport=!0,this.firstTimeUserForAnalyticsAssessmentReport=!0,this.onAssessmentReportSearch=()=>{this.searchkeyForAssessmentReport?(this.getDataRequest.searchKey=this.searchkeyForAssessmentReport,this.getDataRequest.pageNumber=this.currentAssessmentPageNumber):this.getDataRequest.searchKey="",this.getAssessmentReport(null)},this.onStudentReportSearch=()=>{this.searchkeyForStudentReport?(this.getStudenDataRequest.pageNumber=this.currentStudentPageNumber,this.get
1StudenDataRequest.searchKey=this.searchkeyForStudentReport):this.getStudenDataRequest.searchKey="",this.getStudentReport(null)},this.selectedImages=[],this.USERS=[{id:1,name:"Leanne Graham",email:"[email protected]",phone:"1-770-736-8031 x56442"},{id:2,name:"Ervin Howell",email:"[email protected]",phone:"010-692-6593 x09125"},{id:3,name:"Clementine Bauch",email:"[email protected]",phone:"1-463-123-4447"},{id:4,name:"Patricia Lebsack",email:"[email protected]",phone:"493-170-9623 x156"},{id:5,name:"Chelsey Dietrich",email:"[email protected]",phone:"(254)954-1289"},{id:6,name:"Mrs. Dennis",email:"[email protected]",phone:"1-477-935-8478 x6430"}],this.titleService.setTitle("Dynamind Student Report")}ngOnInit(){this.hideRecaptcha(),(0,p.NF)(this.platformId)&&window.scrollTo(0,0),this.loggedInUser=JSON.parse(this.loggedInUserService.getLoggedInUser()),this.getDataRequest.pageNumber=0,this.getDataRequest.pageSize=25,this.getStudenDataRequest.pageNumber=0,this.getStudenDataRequest.pageSize=25,this.getAssessmentModalDataRequest.pageNumber=0,this.getAssessmentModalDataRequest.pageSize=25,this.getStudentModalDataRequest.pageNumber=0,this.getStudentModalDataRequest.pageSize=25,this.countryCodes(),this.isLoading=!0,this.getAssessmentReport(null),$(".table-responsive").on("show.bs.dropdown",function(){$(".table-responsive").css("overflow","inherit")}),$(".table-responsive").on("hide.bs.dropdown",function(){$(".table-responsive").css("overflow","auto")})}countryCodes(){this.apiservice.getService(this.apiservice.apiUrls.Countrycodes).subscribe(t=>{if(200==t.statusCode){let n=[];n=t.data,n.forEach(a=>{a.phoneNumberLength="+91"==a.phoneCode?a.phoneNumberLength=10:null}),this.countryCodesData=n,this.countryCodesDataDummy=n,this.getStudentReport(null)}else this.toastr.show(t.message,"Warning")},t=>{401==t.status?(this.isLoading=!1,this.toastr.show(t.message?t.message:"Something Went Wrong","Warning"),(0,p.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toastr.show(t?.error?.message,"Info"))})}search(t,n){let a=n?n.toLowerCase():"";this.getAnalyticsStudentReport[t].countriesListDummy=this.getAnalyticsStudentReport[t].countriesList.filter(i=>a?i.phoneCode.toString().includes(a.toString())||i.name.toLowerCase().includes(a.toString())||i.iso3.toLowerCase().includes(a.toString()):i.phoneCode)}selectedCode(t,n){this.selectedShareReportDto.parentWhatsAppCountryCode=t.phoneCode,this.selectedShareReportDto.parentWhatsAppCountryCodeIso3=t.iso3,this.getAnalyticsStudentReport[n].phoneCodeLength="+91"==t.phoneCode?10:null,this.getAnalyticsStudentReport[n].parentWhatsAppCountryCode=t.iso3+" ("+t.phoneCode+")"}numberOnly(t){var n=t.which?t.which:t.keyCode;return!(n<48||n>57)||(t.preventDefault(),!1)}phoneCodeValidation(t){var n=t.which?t.which:t.keyCode;return!(43!=n&&n>31&&(n<48||n>57))}saveCountryCode(t){this.phoneCode=t}saveParentWhatsAppNumber(t){this.parentWhatsAppNumberData=t,10==t.length?this.joinData():this.toastr.show("please enter 10 digit number","show")}phoneNumberValidation(t){let n;n=this.getAnalyticsStudentReport[t],"+91"!=this.selectedShareReportDto.parentWhatsAppCountryCode||10==n.parentWhatsAppNumber.length&&""!=n.parentWhatsAppNumber?this.saveWp(n,this.selectedShareReportDto):this.toastr.show("please enter 10 digit number","Error")}checkPhoneMaxLength(t,n,a,o){null==t&&(t=this.shareReportDto.parentWhatsAppCountryCode),("+91"==t&&n.length>10||!oe.iG.isValid(n))&&(this.phoneNumberCodeArr[o]=10)}saveWp(t,n){let a=new y.C;a.parentWhatsAppCountryCode=n.parentWhatsAppCountryCode,a.parentWhatsAppNumber=t.parentWhatsAppNumber,a.menteeId=t.studentId,a.parentWhatsAppCountryCodeIso3=n.parentWhatsAppCountryCodeIso3,a.enableShareReport=t.enableShareReport,console.log(a),this.apiservice.postService(this.apiservice.apiUrls.parentWhatsAppNumber,a).subscribe(o=>{o&&200==o.statusCode&&(this.isLoading=!1,$("#studentWhatsapp").modal("hide"),this.toastr.show(o?.message,"Success"))},o=>{401==o.status?(this.isLoading=!1,this.toastr.show(o.message?o.message:"Something Went Wrong","Warning"),(0,p.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toastr.show(o?.error?.message,"Info"))})}joinData(){}onToggle(t,n){console.log(n);let a=this.getAnalyticsStudentReport[t];if(a){let o=new y.C;o.menteeId=a.studentId,o.parentWhatsAppNumber=a.parentWhatsAppNumber,o.enableShareReport=n,this.apiservice.postService(this.apiservice.apiUrls.parentWhatsAppNumber,o).subscribe(i=>{this.toastr.show(i?.message,i&&200==i.statusCode?"Success":"info")},i=>{401==i.status?(this.isLoading=!1,this.toastr.show(i.message?i.message:"Something Went Wrong","Warning"),
1(0,p.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toastr.show(i?.error?.message,"Info"))})}}openModal(t){this.shareReportDto=JSON.parse(JSON.stringify(t)),this.parentWpNumber=t,$("#studentWhatsapp").modal("show")}saveParentPhno(t){this.showEdit[t]=!this.showEdit[t],this.apiservice.postService(this.apiservice.apiUrls.parentWhatsAppNumber,null).subscribe(n=>{n&&200==n.statusCode&&(this.isLoading=!1,this.getStudentReport(null))},n=>{401==n.status?(this.isLoading=!1,this.toastr.show(n.message?n.message:"Something Went Wrong","Warning"),(0,p.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toastr.show(n?.error?.message,"Info"))})}changeparentWhatsAppNumber(t){this.shareReportDto.parentWhatsAppNumber=t}onSortClick(t){this.getStudenDataRequest.sortOrder="asc"==this.getStudenDataRequest.sortOrder?"desc":"asc",this.getStudentReport(t)}onSortAssessmentClick(t){this.getDataRequest.sortOrder="asc"==this.getDataRequest.sortOrder?"desc":"asc",this.getAssessmentReport(t)}getTotalStudentRecords(){return this.totalPagesForStudentReport*this.numberOfRowsStudentPerPage}paginateStudentRecordsChange(t){this.getStudenDataRequest.pageNumber=t.page,this.getStudentReport(null)}getTotalAssessmentRecords(){return this.totalPagesForAssessmentReport*this.numberOfRowsPerAssessmentPage}paginateAssessmentRecordsChange(t){this.getDataRequest.pageNumber=t.page,this.getAssessmentReport(null)}getTotalStudentRecordsModal(){return this.totalPagesForStudentReportModel*this.numberOfRowsStudentPerPageModal}paginateStudentRecordsChangeModal(t){this.getStudentReportModal(this.studentId,t.page)}getTotalAssessmentRecordsModal(){return this.totalPagesForAssessmentReportModal*this.numberOfRowsPerAssessmentPageModel}paginateAssessmentRecordsChangeModal(t){this.getAssessmentReportModal(this.assessmentId,t.page)}getAssessmentReport(t){this.getDataRequest.sortFieldName=t,this.apiservice.postService(this.apiservice.apiUrls.getAnalyticsAssessmentReport,this.getDataRequest).subscribe(n=>{this.isLoading=!1,this.getAnalyticsAssessmentReport=n.data.content,this.totalPagesForAssessmentReport=n.data?n.data.totalPages:1,n.data.content.length>0&&(this.firstTimeUserForAnalyticsAssessmentReport=!1)})}getStudentReport(t){this.getStudenDataRequest.sortFieldName=t,this.apiservice.postService(this.apiservice.apiUrls.getAnalyticsStudentReport,this.getStudenDataRequest).subscribe(n=>{if(n&&200==n.statusCode){this.isLoading=!1;let a=[];a=n.data.content,a.map(o=>{"+91"==o.parentWhatsAppCountryCode?o.parentWhatsAppCountryCode="IND ("+o.parentWhatsAppCountryCode+")":null==o.parentWhatsAppCountryCode&&(o.parentWhatsAppCountryCode="IND (+91)"),o.phoneCodeLength=10,o.countriesList=this.countryCodesData,o.countriesListDummy=this.countryCodesData}),this.getAnalyticsStudentReport=a,console.log(this.getAnalyticsStudentReport),this.heightOfThedropDown=1==this.getAnalyticsStudentReport.length?"130px":"260px",this.totalPagesForStudentReport=n.data?n.data.totalPages:1,n.data.content.length>0&&(this.firstTimeUserForAnalyticsStudentReport=!1)}},n=>{401==n.status?(this.isLoading=!1,this.toastr.show(n.message?n.message:"Something Went Wrong","Warning"),(0,p.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toastr.show(n?.error?.message,"Info"))})}getStudentReportModal(t,n){this.getDataRequest.pageNumber=n,$("#studentReport").modal({backdrop:"static",keyboard:!1}),this.apiservice.postService(this.apiservice.apiUrls.getAnalyticsStudentReportModalData+t,this.getDataRequest).subscribe(a=>{this.getAnalyticsStudentReportModalData=a.data.content,this.totalPagesForStudentReportModel=a.data?a.data.totalPages:1,this.studentId=t},a=>{401==a.status?(this.isLoading=!1,this.toastr.show(a.message?a.message:"Something Went Wrong","Warning"),(0,p.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toastr.show(a?.error?.message,"Info"))})}getAssessmentReportModal(t,n){(0,p.NF)(this.platformId)&&(this.getDataRequest.pageNumber=n,$("#assessmentReport").modal({backdrop:"static",keyboard:!1}),this.apiservice.postService(this.apiservice.apiUrls.getAnalyticsAssessmentReportModalData+t,this.getDataRequest).subscribe(a=>{this.getAnalyticsAssessmentReportModalData=a.data.content,this.totalPagesForAssessmentReportModal=a.data?a.data.totalPages:1,this.assessmentId=t}))}hideRecaptcha(){if((0,p.NF)(this.platformId)){const t=$(".grecaptcha-badge");if(t.length)return t.css({display:"none"});requestAnimationFrame(()=>this.hideRecaptcha())}}disableAndEnableToggle(t){return!(!t||10!=t.length)}previewAssessmentPage(t,n){t.stopPropagation(),this.router.navigate(["/navigation-bar/v1/mentor/examination"],{queryParams:{assessmentId:n,viewAssessment:"true",analytics:!0}})}disableToggle(t){let n;return n=this.getAnalyticsStudentReport[t],!(n.parentWhatsAppNumber&&(!n?.parentWhatsAppNumber||"+91"!=this.selectedShareReportDto.parentWhatsAppCountryCode||10==n?.parentWhatsAppNumber?.length))}shareTeacher(t){}shareAssessment(t,n){}dataUriToBlob(t){const n=t.split(","),a=n[0].indexOf("base64")>=0?atob(n[1]):decodeURI(n[1]),o=n[0].split(":")[1].split(";")[0],i=new Uint8Array(a.length);for(let h=0;h<a.length;
1h++)i[h]=a.charCodeAt(h);return new Blob([i],{type:o})}shareReport(t){let a=("/navigation-bar/"+this.loggedInUser.userRole.toLocaleLowerCase()+"/analytics/report/ "+t).replace(/\s/g,"");this.router.navigate([]).then(i=>{window.open(a,"_blank")});var o=document.getElementById("contentToConvert");z()(o).then(i=>{var D=309*i.height/i.width;const K=i.toDataURL("image/png");console.log(K);let A=new q.kH("p","mm","a4");console.log(A),A.addImage(K,"PNG",0,0,309,D),console.log(A);let et=A.output("arraybuffer");const Y=new FormData;Y.append("file",et),this._setting.uploadFileWithPath(this._setting.fileUploadPath.mentorMymenteeAssessment,Y).subscribe({next:B=>{console.log(JSON.parse(JSON.stringify(B.data)),"UUU")},error:B=>{this.apiservice.handleApiError(B)}}),console.log(A)}),this.apiservice.getService(this.apiservice.apiUrls.getAssessmentWiseReportData+"?assessmentId="+t).subscribe(i=>{if(200==i.statusCode){let h=[];i.data.studentDtoList.forEach(function(v,D){h.push(v.assessmentReport.fileDownloadUrl)}),this.selectedImages=h,console.log(this.selectedImages)}else this.toastr.show(i.message,"Warning")},i=>{401==i.status?(this.isLoading=!1,this.toastr.show(i.message?i.message:"Something Went Wrong","Warning"),(0,p.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toastr.show(i?.error?.message,"Info"))})}openPDF(){let t=document.getElementById("htmlData");z()(t).then(n=>{let o=208*n.height/n.width;const i=n.toDataURL("image/png");let h=new q.kH("p","mm","a4");h.addImage(i,"PNG",0,0,208,o),h.save("angular-demo.pdf")})}getImage(t){return this.apiservice.baseUrl+t}openPdf(t){console.log(btoa(t.publicUrl)),this.router.navigate(["/navigation-bar/mentor/analytics/view-pdf/"+btoa(t.publicUrl)])}getUrl(t,n){return console.log(t),location.protocol+"//"+location.host+"/shared-mentee-report/"+btoa(t.toString()).replace(/=/g,"")+"/"+btoa(this.loggedInUser.id.toString()).replace(/=/g,"")+"/"+btoa(n).replace(/=/g,"")}static#e=this.\u0275fac=function(n){return new(n||r)(e.\u0275\u0275directiveInject(e.PLATFORM_ID),e.\u0275\u0275directiveInject(U.k),e.\u0275\u0275directiveInject(w.s),e.\u0275\u0275directiveInject(P._W),e.\u0275\u0275directiveInject(s.gz),e.\u0275\u0275directiveInject(k.Dx),e.\u0275\u0275directiveInject(s.F0),e.\u0275\u0275directiveInject(ie.R))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["app-student-report"]],viewQuery:function(n,a){if(1&n&&(e.\u0275\u0275viewQuery(se,5),e.\u0275\u0275viewQuery(le,5),e.\u0275\u0275viewQuery(de,5),e.\u0275\u0275viewQuery(pe,5),e.\u0275\u0275viewQuery(ce,5)),2&n){let o;e.\u0275\u0275queryRefresh(o=e.\u0275\u0275loadQuery())&&(a.paginator=o.first),e.\u0275\u0275queryRefresh(o=e.\u0275\u0275loadQuery())&&(a.paginator1=o.first),e.\u0275\u0275queryRefresh(o=e.\u0275\u0275loadQuery())&&(a.paginator2=o.first),e.\u0275\u0275queryRefresh(o=e.\u0275\u0275loadQuery())&&(a.paginator3=o.first),e.\u0275\u0275queryRefresh(o=e.\u0275\u0275loadQuery())&&(a.htmlData=o.first)}},decls:62,vars:11,consts:[[4,"ngIf"],["class","mt-3",4,"ngIf"],["id","studentReport","tabindex","-1","role","dialog","aria-labelledby","modelTitleId","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog"],[1,"modal-content","Content"],[1,""],["type","button","data-dismiss","modal","aria-label","Close",1,"close","mr-4","mt-4"],["aria-hidden","true"],[1,"modal-body","px-md-5","px-2","pb-5"],[1,"card","table-responsive"],[1,"table"],[1,"text-center"],[4,"ngFor","ngForOf"],[1,"row"],[1,"col-md-12","text-right","mb-4"],[3,"rows","totalRecords","onPageChange"],["cc",""],["id","assessmentReport","tabindex","-1","role","dialog","aria-labelledby","modelTitleId","aria-hidden","true",1,"modal","fade"],["dd",""],[1,"mt-3"],[1,"card","text-center","py-5"],[1,"card-body"],[1,"mt-4","mb-3"],[1,"text-Color","mb-4"],[1,"d-flex","justify-content-between","align-items-center"],[1,"text-Color"],[1,"input-group","searchgroupKeyTrigger"],["type","text","placeholder","Search student name...",1,"form-control","border-left-0","search-box",3,"ngModel","ngModelChange","keyup.enter"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"bx","bx-search",2,"font-size","larger",3,"click"],[1,"table-responsive","reportTable",2,"background","#F1F4F8","padding","2px 20px","border-radius","10px"],[1,"table",2,"border-collapse","separate","border-spacing","0 6px"],[1,"border-0","text-nowrap"],[1,"my-icon","fa","fa-chevron-up",2,"cursor","pointer",3,"click"],["class","tableRow",4,"ngFor","ngForOf"],[1,"d-flex","my-3"],[1,"justify-content-start"],["aa",""],[1,"tableRow"],[1,"text-Color",2,"cursor","pointer",3,"click"],["class","text-color-Indicator",4,"ngIf"],[1,"widthOfTdClass"],[1,"text-field","input-group"],[1,"input-group-prepend",2,"border","none"],["type","button","data-toggle","dropdown","aria-haspopup","true","aria-expanded","fal
1se",1,"btn","dropdown-toggle",3,"value"],[1,"text",3,"title"],[1,"dropdown-menu",2,"position","absolute","transform","translate3d(1px, -88px, 0px)","top","132px","left","0px","will-change","transform","width","min-content","overflow-y","scroll"],["type","text","name","searchKey","placeholder","search Country Code","min","0","autocomplete","off",1,"form-control",2,"padding-left","24px",3,"keyup"],["class","dropdown-item p-3","style","border-top:1px solid #e9ecef",3,"click",4,"ngFor","ngForOf"],["type","text","placeholder","Enter Parent WhatsApp Number",1,"form-control","border-left-0",2,"box-shadow","none","padding","20px 0","border","none",3,"name","id","maxlength","ngModel","keypress","ngModelChange","change"],["parentWhatsAppNumber","ngModel"],[1,"custom-control","custom-switch","text-center"],["type","checkbox",1,"custom-control-input",3,"disabled","id","ngModel","ngModelChange","click"],[1,"custom-control-label",3,"for"],[1,"text-color-Indicator"],[1,"bx","bx-link-external"],[1,"dropdown-item","p-3",2,"border-top","1px solid #e9ecef",3,"click"],[2,"font-size","13px","text-align","center","margin-top","15px"],[1,"text-center","card","py-4","mb-3"],[1,"mb-0"],[1,"d-flex"],[1,"ml-auto"],["type","text","placeholder","Search Assesment\u2026\u2026",1,"form-control","border-left-0","search-box",3,"ngModel","ngModelChange","keyup.enter"],[1,"table-responsive",2,"background","#F1F4F8","padding","2px 20px","border-radius","10px"],[1,"border-0","text-nowrap",2,"width","340px"],[1,"my-icon","fa","fa-chevron-up",3,"click"],[1,"my-icon","fa","fa-chevron-up",2,"cursor","pointer"],[1,"border-0","text-nowrap",2,"width","250px"],[1,"border-0","text-nowrap",2,"width","290px"],["style","height: 50px;",4,"ngFor","ngForOf"],["bb",""],[2,"height","50px"],[1,"text-center","txt-ellipsis","hoverForListGroup"],[1,"title","txt-ellipsis","defaultColor"],[1,"preview","defaultColor",3,"click"],[1,"text-success"],[1,"text-danger"],[1,"d-flex","justify-content-center"],[3,"click"],["src","/assets/img/re-attempt.png","height","30px","width","30px",1,"bg-img"],["data-dismiss","modal",1,"text-center","my-auto","d-block",3,"click"],["src","/assets/img/re-attempt.png",1,"shareImg"],[1,"text-center","ml-3"],["theme","circles-dark","description","Dynamind","twitterAccount","Dynamind",3,"disabled","include","showIcon","showText","url"]],template:function(n,a){1&n&&(e.\u0275\u0275template(0,me,1,0,"app-loader",0),e.\u0275\u0275template(1,he,7,0,"div",1),e.\u0275\u0275template(2,Ce,38,5,"div",0),e.\u0275\u0275element(3,"br"),e.\u0275\u0275template(4,Se,7,0,"div",1),e.\u0275\u0275template(5,Pe,39,5,"div",0),e.\u0275\u0275elementStart(6,"div",2)(7,"div",3)(8,"div",4)(9,"div",5)(10,"button",6)(11,"span",7),e.\u0275\u0275text(12,"\xd7"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(13,"div",8)(14,"h4"),e.\u0275\u0275text(15,"Assessment details"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"div",9)(17,"table",10)(18,"thead")(19,"tr")(20,"th"),e.\u0275\u0275text(21,"Assessment name"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(22,"th",11),e.\u0275\u0275text(23,"Score"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(24,"th",11),e.\u0275\u0275text(25," Attempt "),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(26,"th",11),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(27,"tbody"),e.\u0275\u0275template(28,ke,13,8,"tr",12),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(29,"div",13)(30,"div",14)(31,"p-paginator",15,16),e.\u0275\u0275listener("onPageChange",function(i){return a.paginateStudentRecordsChangeModal(i)}),e.\u0275\u0275elementEnd()()()()()()()(),e.\u0275\u0275element(33,"app-footer"),e.\u0275\u0275elementStart(34,"div",17)(35,"div",3)(36,"div",4)(37,"div",5)(38,"button",6)(39,"span",7),e.\u0275\u0275text(40,"\xd7"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(41,"div",8)(42,"h4"),e.\u0275\u0275text(43,"Student details"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(44,"div",9)(45,"table",10)(46,"thead")(47,"tr")(48,"th"),e.\u0275\u0275text(49,"Student name"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(50,"th",11),e.\u0275\u0275text(51,"Score"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(52,"th",11),e.\u0275\u0275text(53,"Time taken"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(54,"th",11),e.\u0275\u0275text(55,"Attempt"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(56,"tbody"),e.\u0275\u0275template(57,Me,10,7,"tr",12),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(58,"div",13)(59,"div",14)(60,"p-paginator",15,18),e.\u0275\u0275listener("onPageChange",function(i){return a.paginateAssessmentRecordsChangeModal(i)}),e.\u0275\u0275elementEnd()()()()()()()()),2&n&&(e.\u0275\u0275property("ngIf",a.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1==a.firstTimeUserForAnalyticsStudentReport&&0==a.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0==a.firstTimeUserForAnalyticsStudentReport),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",1==a.firstTimeUserForAnalyticsAssessmentReport&&0==a.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0==a.firstTimeUserForAnalyticsAssessmentReport),e.\u0275\u0275advance(23),e.\u0275\u0275property("ngForOf",a.getAnalyticsStudentReportModalData),e.\u0275\u0275advance(3),e.\u0275\u0275property("rows",a.numberOfRowsStudentPerPageModal)("totalRecords",a.getTotalStudentRecordsModal()),e.\u0275\u0275advance(26),e.\u0275\u0275property("ngForOf",a.getAnalyticsAssessmentReportModalData),e.\u0275\u0275advance(3),e.\u0275\u0275property("rows",a.numberOfRowsPerAssessmentPageModel)("totalRecords",a.getTotalAssessmentRecordsModal()))},dependencies:[p.sg,p.O5,x.Fj,x.Wl,x.JJ,x.nD,x.On,I.D,b.R,M.c,H.n,p.JJ],styles:[".grecaptcha-badge[_ngcontent-%COMP%]{display:none}.row[_ngcontent-%COMP%]{margin:0}.input-group-prepend[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{vertical-align:middle}.search-Icon[_ngcontent-%COMP%]{position:relative;
1left:12px;color:#00000061;bottom:30px}table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-child{border-top-left-radius:10px;border-bottom-left-radius:10px}table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:last-child{border-top-right-radius:10px;border-bottom-right-radius:10px}.text-Color[_ngcontent-%COMP%]{background:#1e3757;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.Content[_ngcontent-%COMP%]{border-radius:20px}.text-color-Indicator[_ngcontent-%COMP%]{background:-webkit-linear-gradient(#3cbbbd,#1a6fa3);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.custom-control-input[_ngcontent-%COMP%]:checked ~ .custom-control-label[_ngcontent-%COMP%]:before{color:#fff;border-color:#1dd1fc!important;background-color:#1dd1fc!important}.custom-control-input[_ngcontent-%COMP%]:focus ~ .custom-control-label[_ngcontent-%COMP%]:before{box-shadow:none!important}a[_ngcontent-%COMP%]{color:#007bff!important;text-decoration:underline!important;background-color:transparent}.widthOfTdClass[_ngcontent-%COMP%]{width:260px}@media screen and (min-width: 768px) and (max-width: 991px){.widthOfTdClass[_ngcontent-%COMP%]{white-space:wrap}}.tableRow[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{max-width:250px!important;margin:auto!important}.widthOfTdClass[_ngcontent-%COMP%]   .text-field[_ngcontent-%COMP%]{max-width:200px;margin:auto}.widthOfTdClass[_ngcontent-%COMP%]   .text-field[_ngcontent-%COMP%]   .input-group-prepend[_ngcontent-%COMP%]{min-width:100px!important;justify-content:center!important}.preview[_ngcontent-%COMP%]{display:none}.txt-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;max-width:290px;white-space:nowrap}.title[_ngcontent-%COMP%]{display:block}.defaultColor[_ngcontent-%COMP%]{color:#1e3757}.hyperLink[_ngcontent-%COMP%]{color:#00e1ac!important;text-decoration:underline;text-align:end;margin-right:30px;cursor:pointer}.hoverForListGroup[_ngcontent-%COMP%]:hover   .title[_ngcontent-%COMP%]{display:none}.hoverForListGroup[_ngcontent-%COMP%]:hover   .preview[_ngcontent-%COMP%]{display:inline-block;background:-webkit-linear-gradient(90deg,#10c69b 23.49%,#03799c 72.57%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-overflow:ellipsis;overflow:hidden;max-width:250px;white-space:nowrap}.shareImg[_ngcontent-%COMP%]{width:3em;height:auto}  .sb-circles-dark .sb-wrapper .sb-icon{width:1.2em!important;height:auto!important}  sb-circles-dark .sb-wrapper .sb-icon{font-size:1.2em!important}"]})}return r})();var R=c(69728),G=c(80529);function Ae(r,d){1&r&&e.\u0275\u0275element(0,"app-loader")}function Te(r,d){if(1&r&&(e.\u0275\u0275elementStart(0,"div",20),e.\u0275\u0275element(1,"img",21),e.\u0275\u0275elementEnd()),2&r){const t=d.$implicit,n=d.index;e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate1("id","img",n,""),e.\u0275\u0275property("src",t,e.\u0275\u0275sanitizeUrl)}}function Oe(r,d){1&r&&(e.\u0275\u0275elementStart(0,"div",22)(1,"div",23)(2,"h3",24),e.\u0275\u0275text(3," Link Not Found "),e.\u0275\u0275elementEnd()()())}let Ee=(()=>{class r{constructor(t,n,a,o,i,h,v){this.platformId=t,this.toastr=n,this.apiservice=a,this.activatedRoute=o,this.router=i,this.http=h,this.loggedInUserService=v,this.currentPage=1,this.mediaData=[],this.zoom=1,this.page=1,this.selectedImages=[]}ngOnInit(){this.loggedInUser=JSON.parse(this.loggedInUserService.getLoggedInUser()),this.assessmentId=this.activatedRoute.snapshot.params.assessmentId;const t=new URL(window.location.href);this.absoluteUrl=t.origin+"/config",this.callImg(this.assessmentId)}getImage(t){return this.apiservice.baseUrl+t}callImg(t){this.apiservice.getService(this.apiservice.apiUrls.getAssessmentWiseReportData+"?assessmentId="+t).subscribe(n=>{if(200==n.statusCode){let a=[];null!=n.data&&n.data.studentDtoList.forEach(function(o,i){null==o.assessmentReport.publicUrl||a.push(o.assessmentReport.publicUrl)}),0==a.length&&(this.toastr.show("No student report found","Info"),this.loggedInUser.userRole.toLocaleLowerCase(),this.toastr.show("No student report found","Info")),this.selectedImages=a,console.log(this.selectedImages)}else this.toastr.show(n.message,"Warning")},n=>{401==n.status?(this.isLoading=!1,this.toastr.show(n.message?n.message:"Something Went Wrong","Warning"),
1(0,p.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toastr.show(n?.error?.message,"Info"))})}onProgress(t){this.isLoading=!0}pageRendered(t){this.isLoading=!1}textLayerRendered(t){this.currentPage=t.pageNumber}onError(t){this.isLoading=!1}getAssessmentProfile(t){return t&&t?.filePreviewUrl?(this.url=this.absoluteUrl+t?.filePreviewUrl,this.absoluteUrl+t?.filePreviewUrl):(console.log(this.url),"")}afterLoad(t){this.totalPages=t.numPages,this.isLoading=!1,this.remainingPdfPages=new Array(t.numPages-1)}incrementZoom(t){this.zoom+=t}incrementPage(t){this.page=this.page+t,this.page<=0&&(this.currentPage=0)}goToLast(t){this.page=t,this.currentPage=t,this.page<=0&&(this.currentPage=0)}onResize(t){}onMouseWheel(t,n){this.currentPage=n}static#e=this.\u0275fac=function(n){return new(n||r)(e.\u0275\u0275directiveInject(e.PLATFORM_ID),e.\u0275\u0275directiveInject(P._W),e.\u0275\u0275directiveInject(w.s),e.\u0275\u0275directiveInject(s.gz),e.\u0275\u0275directiveInject(s.F0),e.\u0275\u0275directiveInject(G.eN),e.\u0275\u0275directiveInject(U.k))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["app-pdf-view"]],hostBindings:function(n,a){1&n&&e.\u0275\u0275listener("scroll",function(i){return a.onResize(i)})},decls:28,vars:4,consts:[[4,"ngIf"],[1,"card","rounded-border-top-corners","mb
1-4"],[1,"card-header"],[1,"d-flex","justify-content-between"],[1,"invisible"],[1,"bx","bx-chevrons-left","bx-flip-vertical",3,"click"],[1,"bx","bx-chevron-left","bx-flip-vertical",3,"click"],[1,"backgroundColorForCurrentPage"],[1,"bx","bx-chevron-right","bx-flip-vertical",3,"click"],[1,"bx","bx-chevrons-right","bx-flip-vertical",3,"click"],[1,""],[1,"bx","bx-minus",3,"click"],[1,"bx","bx-plus",3,"click"],[1,"bx","bx-collapse-alt","bx-flip-vertical"],[1,"bx","bx-collapse-horizontal","bx-flip-vertical"],[1,"card-body",2,"background-color","#e8e8e8","height","calc(100vh)","overflow-y","scroll"],["class","ivh-item",4,"ngFor","ngForOf"],["id","outerContainer"],[1,"pdf-container"],["noRecordsFoundForLink",""],[1,"ivh-item"],[1,"img-fluid","mx-auto","d-block",3,"id","src"],[1,"card","mt-3"],[1,"card-body"],[1,"text-center"]],template:function(n,a){1&n&&(e.\u0275\u0275template(0,Ae,1,0,"app-loader",0),e.\u0275\u0275elementContainerStart(1),e.\u0275\u0275elementStart(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4),e.\u0275\u0275text(6,"first item"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div")(8,"i",5),e.\u0275\u0275listener("click",function(){return a.incrementPage(-a.totalPages)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"i",6),e.\u0275\u0275listener("click",function(){return a.incrementPage(-1)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"span",7),e.\u0275\u0275text(11),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(12),e.\u0275\u0275elementStart(13,"i",8),e.\u0275\u0275listener("click",function(){return a.incrementPage(1)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(14,"i",9),e.\u0275\u0275listener("click",function(){return a.goToLast(a.totalPages)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(15,"div",10)(16,"i",11),e.\u0275\u0275listener("click",function(){return a.incrementZoom(-.1)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(17,"i",12),e.\u0275\u0275listener("click",function(){return a.incrementZoom(.1)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(18,"i",13)(19,"i",14),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(20,"div",15)(21,"div")(22,"div"),e.\u0275\u0275template(23,Te,2,2,"div",16),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(24,"div",17),e.\u0275\u0275element(25,"div",18),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275template(26,Oe,4,0,"ng-template",null,19,e.\u0275\u0275templateRefExtractor)),2&n&&(e.\u0275\u0275property("ngIf",a.isLoading),e.\u0275\u0275advance(11),e.\u0275\u0275textInterpolate1(" ",a.currentPage," "),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" / ",a.totalPages," "),e.\u0275\u0275advance(11),e.\u0275\u0275property("ngForOf",a.selectedImages))},dependencies:[p.sg,p.O5,b.R],styles:["pdf-viewer[_ngcontent-%COMP%]{height:100vh}.card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]{background-color:#1e3757;color:#fff;font-size:20px;font-weight:500;border-top-left-radius:10px;border-top-right-radius:10px}.card[_ngcontent-%COMP%]   .backgroundColorForCurrentPage[_ngcontent-%COMP%]{background-color:#fff;color:#1e3757;padding:10px;border-radius:7px;margin:10px 8px}.titleOfAssessment[_ngcontent-%COMP%]{font-size:21px;font-weight:600}.titleOfMainAssessment[_ngcontent-%COMP%]{font-weight:800;font-size:20px}.rounded-border-top-corners[_ngcontent-%COMP%]{border-top-left-radius:10px;border-top-right-radius:10px}.heading-bread-crumb[_ngcontent-%COMP%]{color:#fff;margin-left:4px;padding-top:10px;margin-bottom:2rem}.heading[_ngcontent-%COMP%]{font-weight:400;font-size:60px;line-height:73px}.package-name[_ngcontent-%COMP%]{width:104%;position:relative;top:-15px;left:-23px;background:linear-gradient(82.49deg,#CF91FF -20.69%,#5782F5 125.25%);padding-left:25px;padding-bottom:2%}@media screen and (min-device-width: 320px) and (max-device-width: 1650px){.package-name[_ngcontent-%COMP%]{width:105%}}@media screen and (min-device-width: 320px) and (max-device-width: 1352px){.package-name[_ngcontent-%COMP%]{width:106%}}@media screen and (min-device-width: 320px) and (max-device-width: 1154px){.package-name[_ng
1content-%COMP%]{width:107%}}@media screen and (min-device-width: 320px) and (max-device-width: 1012px){.package-name[_ngcontent-%COMP%]{width:108%}}@media screen and (min-device-width: 320px) and (max-device-width: 991px){.package-name[_ngcontent-%COMP%]{top:-34px;width:109%}}@media screen and (min-device-width: 320px) and (max-device-width: 824px){.package-name[_ngcontent-%COMP%]{width:110%}}@media screen and (min-device-width: 320px) and (max-device-width: 757px){.package-name[_ngcontent-%COMP%]{width:111%}}@media screen and (min-device-width: 320px) and (max-device-width: 703px){.package-name[_ngcontent-%COMP%]{width:112%}}@media screen and (min-device-width: 320px) and (max-device-width: 658px){.package-name[_ngcontent-%COMP%]{width:113%}}@media screen and (min-device-width: 320px) and (max-device-width: 620px){.package-name[_ngcontent-%COMP%]{width:114%}}@media screen and (min-device-width: 320px) and (max-device-width: 587px){.package-name[_ngcontent-%COMP%]{width:115%}}@media screen and (min-device-width: 320px) and (max-device-width: 587px){.package-name[_ngcontent-%COMP%]{width:115%;top:-20px}}"]})}return r})();function Fe(r,d){1&r&&e.\u0275\u0275element(0,"app-loader")}function Ne(r,d){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",3)(1,"h3",4),e.\u0275\u0275text(2,"Mentee Details"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"p",5),e.\u0275\u0275text(4,"You are not connected with mentees on Dynamind ! Explore our community where you can learn, engage and grow your personal and professional network"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",6),e.\u0275\u0275element(6,"img",7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",8),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.navigateMenteeDynamindPage())}),e.\u0275\u0275elementStart(8,"button",9),e.\u0275\u0275text(9,"Explore Mentees on Dynamind"),e.\u0275\u0275elementEnd()()()}}function Le(r,d){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"a",37),e.\u0275\u0275listener("click",function(){const a=e.\u0275\u0275restoreView(t),o=a.$implicit,i=a.index,h=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(h.sort(o.tagName,o,i))}),e.\u0275\u0275elementStart(1,"span",38),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()}if(2&r){const t=d.$implicit,n=d.index,a=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",a.selectedIndex===n?"highlight":"noHightLight"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",t.tagName," ")}}function Ve(r,d){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",53),e.\u0275\u0275listener("click",function(){const o=e.\u0275\u0275restoreView(t).$implicit,i=e.\u0275\u0275nextContext().index,h=e.\u0275\u0275nextContext(2);
1return e.\u0275\u0275resetView(h.selectedCode(o,i))}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&r){const t=d.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",t.phoneCode," (",t.iso3,") ")}}function We(r,d){1&r&&(e.\u0275\u0275elementStart(0,"div")(1,"p",54),e.\u0275\u0275text(2,"No Records Found "),e.\u0275\u0275elementEnd()())}function Ue(r,d){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tr",39)(1,"td",33),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"td",33),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"td",40)(6,"div",41)(7,"div",42)(8,"button",43)(9,"span",44),e.\u0275\u0275text(10),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(11,"div",45)(12,"input",46),e.\u0275\u0275listener("keyup",function(a){const i=e.\u0275\u0275restoreView(t).index,h=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(h.search(i,a.target.value))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(13,Ve,2,2,"div",47),e.\u0275\u0275template(14,We,3,0,"div",0),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(15,"input",48,49),e.\u0275\u0275listener("keypress",function(a){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(o.numberOnly(a))})("ngModelChange",function(a){const i=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275resetView(i.parentWhatsAppNumber=a)})("change",function(){const o=e.\u0275\u0275restoreView(t).index,i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.phoneNumberValidation(o))}),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(17,"td")(18,"div",50)(19,"input",51),e.\u0275\u0275listener("ngModelChange",function(a){const i=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275resetView(i.enableShareReport=a)})("click",function(a){const i=e.\u0275\u0275restoreView(t).index,h=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(h.onToggle(i,a.target.checked))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(20,"label",52),e.\u0275\u0275text(21),e.\u0275\u0275elementEnd()()()()}if(2&r){const t=d.$implicit,n=d.index,a=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",null==t.studentName?"N/A":t.studentName," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t.grade?"N/A":t.grade),e.\u0275\u0275advance(4),e.\u0275\u0275property("value",null==t.parentWhatsAppCountryCode?"IND (+91)":t.parentWhatsAppCountryCode),e.\u0275\u0275advance(1),e.\u0275\u0275property("title",null==t.parentWhatsAppCountryCode?"IND (+91)":t.parentWhatsAppCountryCode),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null==t.parentWhatsAppCountryCode?"IND (+91)":t.parentWhatsAppCountryCode," "),e.\u0275\u0275advance(1),e.\u0275\u0275styleProp("height",a.heightOfThedropDown),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.countriesListDummy),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0==t.countriesListDummy.length),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate1("name","parentno",n,"")("id","parentPhno",n,""),e.\u0275\u0275propertyInterpolate("maxlength",null==t.phoneCodeLength?"":t.phoneCodeLength),e.\u0275\u0275property("ngModel",t.parentWhatsAppNumber),e.\u0275\u0275advance(4),e.\u0275\u0275propertyInterpolate1("id","switch1",n,""),e.\u0275\u0275property("disabled",a.disableToggle(n))("ngModel",t.enableShareReport),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate1("for","switch1",n,""),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.enableShareReport?"Yes":"No"," ")}}function Be(r,d){1&r&&(e.\u0275\u0275elementStart(0,"div")(1,"div",55)(2,"h4",56),e.\u0275\u0275text(3,"No Records Found"),e.\u0275\u0275elementEnd()()())}function qe(r,d){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"h3",10),e.\u0275\u0275text(2,"Mentee Details"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",11)(4,"div",12)(5,"div",11)(6,"div",13)(7,"label",14),e.\u0275\u0275text(8,"Search Mentee: "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"div",15)(10,"input",16),e.\u0275\u0275listener("ngModelChange",function(a){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();
1return e.\u0275\u0275resetView(o.searchkeyForReportSetup=a)})("keyup.enter",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.onStudentReportSearch())}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",17)(12,"span",18)(13,"i",19),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.onStudentReportSearch())}),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(14,"div",20)(15,"label",14),e.\u0275\u0275text(16,"Grades "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(17,"div",21)(18,"button",22)(19,"div",23)(20,"input",24),e.\u0275\u0275listener("ngModelChange",function(a){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(o.selectedValue=a)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(21,"span"),e.\u0275\u0275element(22,"i",25),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(23,"div",26),e.\u0275\u0275template(24,Le,3,2,"a",27),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(25,"div",12)(26,"div",28)(27,"button",29),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.resetFilter())}),e.\u0275\u0275text(28,"Reset"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(29,"button",30),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.onStudentReportSearch())}),e.\u0275\u0275text(30,"Apply Filter"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(31,"div",31)(32,"table",32)(33,"thead")(34,"tr",33)(35,"th",34),e.\u0275\u0275text(36,"Mentee name "),e.\u0275\u0275elementStart(37,"i",35),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.onSortClick("studentName"))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(38,"th",34),e.\u0275\u0275text(39,"Grade "),e.\u0275\u0275elementStart(40,"i",35),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.onSortClick("grade"))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(41,"th",34),e.\u0275\u0275text(42,"Reporting Whatsapp Number "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(43,"th",34),e.\u0275\u0275text(44,"Share Report"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(45,"tbody"),e.\u0275\u0275template(46,Ue,22,18,"tr",36),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(47,Be,4,0,"div",0),e.\u0275\u0275elementEnd()()}if(2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(10),e.\u0275\u0275property("ngModel",t.searchkeyForReportSetup),e.\u0275\u0275advance(10),e.\u0275\u0275property("ngModel",t.selectedValue),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngForOf",t.totalGradesForReportingSetup),e.\u0275\u0275advance(5),e.\u0275\u0275property("disabled",0==(null==t.getStudenDataRequest||null==t.getStudenDataRequest.filterTagIds?null:t.getStudenDataRequest.filterTagIds.length)),e.\u0275\u0275advance(17),e.\u0275\u0275property("ngForOf",t.getAnalyticsStudentReport),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0===(null==t.getAnalyticsStudentReport?null:t.getAnalyticsStudentReport.length)&&0==t.isLoading)}}function ze(r,d){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",57)(1,"div",58)(2,"p-paginator",59,60),e.\u0275\u0275listener("onPageChange",function(a){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(o.paginateStudentRecordsChange(a))}),e.\u0275\u0275elementEnd()()()}if(2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("rows",t.numberOfRowsStudentPerPage)("totalRecords",t.getTotalStudentRecords())("first",t.first)}}function He(r,d){1&r&&e.\u0275\u0275element(0,"app-loader")}function Ge(r,d){1&r&&(e.\u0275\u0275elementStart(0,"div",11)(1,"div",12)(2,"h3",13),e.\u0275\u0275text(3," Link Not Found "),e.\u0275\u0275elementEnd()()())}const Ye=[{path:"",redirectTo:"student-report",pathMatch:"full"},{path:"",component:O,canActivate:[R.y],children:[{path:"dashboard",component:W,canActivate:[R.y]},{path:"student-report",component:De,canActivate:[R.y],data:{breadcrumb:"Analytics / Mentee Report"}},{path:"sales-report",component:ae,canActivate:[R.y],data:{breadcrumb:"Analytics / Sales Report"}},{path:"reporting-setup",component:(()=>
1{class r{constructor(t,n,a,o,i,h,v){this.platformId=t,this.loggedInUserService=n,this.apiservice=a,this.toastr=o,this.activetedRoute=i,this.titleService=h,this.router=v,this.firstTimeUserForAnalyticsStudentReport=!0,this.isLoading=!1,this.getStudenDataRequest=new C.l,this.getAnalyticsStudentReport=[],this.selectedGradeId=[],this.sortDir=1,this.numberOfRowsStudentPerPage=5,this.currentStudentPageNumber=0,this.totalPagesForStudentReport=1,this.first=0,this.totalPagesForStudentReportModel=1,this.phoneNumberCode=10,this.selectedShareReportDto=new y.C,this.totalGradesForReportingSetup=[],this.titleService.setTitle("Dynamind Reporting Setup")}ngOnInit(){this.hideRecaptcha(),(0,p.NF)(this.platformId)&&window.scrollTo(0,0),this.loggedInUser=JSON.parse(this.loggedInUserService.getLoggedInUser()),this.getStudenDataRequest.pageNumber=0,this.getStudenDataRequest.pageSize=10,this.countryCodes(),this.isLoading=!0,this.gradesReportingFilter(),$(".table-responsive").on("show.bs.dropdown",function(){$(".table-responsive").css("overflow","inherit")}),$(".table-responsive").on("hide.bs.dropdown",function(){$(".table-responsive").css("overflow","auto")})}hideRecaptcha(){if((0,p.NF)(this.platformId)){const t=$(".grecaptcha-badge");if(t.length)return t.css({display:"none"});requestAnimationFrame(()=>this.hideRecaptcha())}}sort(t,n,a){this.getStudenDataRequest.filterTagIds=[],this.selectedGradeId=[],this.selectedValue=t,this.selectedGradeId.push(n.id),this.getStudenDataRequest.pageNumber=0,this.getStudenDataRequest.searchKey=this.searchkeyForReportSetup,this.getStudenDataRequest.filterTagIds=this.selectedGradeId,this.setRow(a)}setRow(t){this.selectedIndex=t}onSortClick(t){this.getStudenDataRequest.sortOrder="asc"==this.getStudenDataRequest.sortOrder?"desc":"asc",this.getStudentReport(t)}getTotalStudentRecords(){return this.totalPagesForStudentReport*this.numberOfRowsStudentPerPage}paginateStudentRecordsChange(t){this.first=t.first,this.getStudenDataRequest.pageNumber=t.page,this.getStudentReport(null)}countryCodes(){this.apiservice.getService(this.apiservice.apiUrls.Countrycodes).subscribe(t=>{if(200==t.statusCode){let n=[];n=t.data,n.forEach(a=>{a.phoneNumberLength="+91"==a.phoneCode?a.phoneNumberLength=10:null}),this.countryCodesData=n,this.countryCodesDataDummy=n,this.getStudentReport(null)}else this.toastr.show(t.message,"Warning")},t=>{401==t.status?(this.isLoading=!1,this.toastr.show(t.message?t.message:"Something Went Wrong","Warning"),(0,p.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toastr.show(t?.error?.message,"Info"))})}search(t,n){let a=n?n.toLowerCase():"";this.getAnalyticsStudentReport[t].countriesListDummy=this.getAnalyticsStudentReport[t].countriesList.filter(i=>a?i.phoneCode.toString().includes(a.toString())||i.name.toLowerCase().includes(a.toString())||i.iso3.toLowerCase().includes(a.toString()):i.phoneCode)}selectedCode(t,n){this.selectedShareReportDto.parentWhatsAppCountryCode=t.phoneCode,this.selectedShareReportDto.parentWhatsAppCountryCodeIso3=t.iso3,this.getAnalyticsStudentReport[n].phoneCodeLength="+91"==t.phoneCode?10:null,this.getAnalyticsStudentReport[n].parentWhatsAppCountryCode=t.iso3+" ("+t.phoneCode+")"}numberOnly(t){var n=t.which?t.which:t.keyCode;return!(n<48||n>57)||(t.preventDefault(),!1)}phoneNumberValidation(t){let n;if(n=this.getAnalyticsStudentReport[t],""!=n.parentWhatsAppNumber||n.enableShareReport){if("+91"==this.selectedShareReportDto.parentWhatsAppCountryCode&&(10!=n.parentWhatsAppNumber.length||""==n.parentWhatsAppNumber))return void this.toastr.show("please enter 10 digit number","Error");this.saveWp(n,this.selectedShareReportDto)}else this.deleteParentWhatsAppNumber(n.studentId)}deleteParentWhatsAppNumber(t){this.apiservice.getService(this.apiservice.apiUrls.deleteParentWhatsAppNumber+t).subscribe(n=>{n&&200==n.statusCode&&this.toastr.show(n.message,"info")})}saveWp(t,n){let a=new y.C;a.parentWhatsAppCountryCode=n.parentWhatsAppCountryCode,a.parentWhatsAppNumber=t.parentWhatsAppNumber,a.menteeId=t.studentId,a.parentWhatsAppCountryCodeIso3=n.parentWhatsAppCountryCodeIso3,a.enableShareReport=t.enableShareReport,console.log(a),this.apiservice.postService(this.apiservice.apiUrls.parentWhatsAppNumber,a).subscribe(o=>{o&&200==o.statusCode&&(this.isLoading=!1,$("#studentWhatsapp").modal("hide"),this.toastr.show(o?.message,"Success"))},o=>{401==o.status?(this.isLoading=!1,this.toastr.show(o.message?o.message:"Something Went Wrong","Warning"),
1(0,p.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toastr.show(o?.error?.message,"Info"))})}disableToggle(t){let n;return n=this.getAnalyticsStudentReport[t],!(n.parentWhatsAppNumber&&(!n?.parentWhatsAppNumber||"+91"!=this.selectedShareReportDto.parentWhatsAppCountryCode||10==n?.parentWhatsAppNumber?.length))}onToggle(t,n){console.log(n);let a=this.getAnalyticsStudentReport[t];if(a){let o=new y.C;o.menteeId=a.studentId,o.parentWhatsAppNumber=a.parentWhatsAppNumber,o.enableShareReport=n,this.apiservice.postService(this.apiservice.apiUrls.parentWhatsAppNumber,o).subscribe(i=>{this.toastr.show(i?.message,i&&200==i.statusCode?"Success":"info")},i=>{401==i.status?(this.isLoading=!1,this.toastr.show(i.message?i.message:"Something Went Wrong","Warning"),(0,p.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toastr.show(i?.error?.message,"Info"))})}}onStudentReportSearch(){this.first=0,this.searchkeyForReportSetup?(this.getStudenDataRequest.searchKey=this.searchkeyForReportSetup,this.getStudenDataRequest.pageNumber=this.currentStudentPageNumber):this.getStudenDataRequest.searchKey="",this.getStudentReport(null)}getStudentReport(t){this.getStudenDataRequest.sortFieldName=t,this.apiservice.postService(this.apiservice.apiUrls.reportingSetupMenteeList,this.getStudenDataRequest).subscribe(n=>{if(n&&200==n.statusCode){this.isLoading=!1;let a=[];a=n.data.content,a.map(o=>{"+91"==o.parentWhatsAppCountryCode?o.parentWhatsAppCountryCode="IND ("+o.parentWhatsAppCountryCode+")":null==o.parentWhatsAppCountryCode&&(o.parentWhatsAppCountryCode="IND (+91)"),o.phoneCodeLength=10,o.countriesList=this.countryCodesData,o.countriesListDummy=this.countryCodesData}),this.getAnalyticsStudentReport=a,console.log(this.getAnalyticsStudentReport),this.heightOfThedropDown=1==this.getAnalyticsStudentReport.length?"130px":"260px",this.totalPagesForStudentReport=n.data?n.data.totalPages:1,n.data.content.length>0&&(this.firstTimeUserForAnalyticsStudentReport=!1)}},n=>{401==n.status?(this.isLoading=!1,this.toastr.show(n.message?n.message:"Something Went Wrong","Warning"),(0,p.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toastr.show(n?.error?.message,"Info"))})}gradesReportingFilter(){this.isLoading=!0,this.apiservice.getService(this.apiservice.apiUrls.gradesForTheReportingSetupFilter).subscribe(t=>{t&&200==t.statusCode?(this.isLoading=!1,this.totalGradesForReportingSetup=t.data,console.log(this.totalGradesForReportingSetup)):this.toastr.show(t?.message,"info")},t=>{401==t.status?(this.isLoading=!1,this.toastr.show(t.message?t.message:"Something Went Wrong","Warning"),(0,p.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toastr.show(t?.error?.message,"Info"))})}resetFilter(){this.first=0,this.getStudenDataRequest.searchKey="",this.searchkeyForReportSetup="",this.selectedValue="",this.getStudenDataRequest.filterTagIds=[],this.selectedGradeId=[],this.selectedIndex=null,this.getStudenDataRequest.pageNumber=0,this.getStudenDataRequest.pageSize=10,this.getStudentReport(null)}navigateMenteeDynamindPage(){this.router.navigate(["/navigation-bar/mentor/acadamy/all-dynamind-mentee-list"])}static#e=this.\u0275fac=function(n){return new(n||r)(e.\u0275\u0275directiveInject(e.PLATFORM_ID),e.\u0275\u0275directiveInject(U.k),e.\u0275\u0275directiveInject(w.s),e.\u0275\u0275directiveInject(P._W),e.\u0275\u0275directiveInject(s.gz),e.\u0275\u0275directiveInject(k.Dx),e.\u0275\u0275directiveInject(s.F0))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["app-reporting-setup"]],decls:5,vars:4,consts:[[4,"ngIf"],["class","mt-3",4,"ngIf"],["class","d-flex my-3",4,"ngIf"],[1,"mt-3"],[1,"text-Color","sofiaProBold"],[1,"menteeDetailsText"],[1,"mt-4","text-center"],["src","../../../../assets/Happy woman chatting with friends online 1.svg",1,"img-fluid"],[1,"text-center",3,"click"],[1,"exploreButton"],[1,"text-Color","sofiaProBold","mb-4"],[1,"row"],[1,"col-xl-6","col-lg-12","col-md-12","col-sm-12","col-12"],[1,"col-xl-6","col-lg-6","col-md-6","col-sm-6","col-12"],[2,"padding-left","10px"],[1,"input-group","searchgroupKeyTrigger"],["type","text","placeholder","Search mentee name...",1,"form-control","border-left-0","search-box",3,"ngModel","ngModelChange","keyup.enter"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"bx","bx-search",2,"font-size","larger",3,"click"],[1,"col-xl-4","col-lg-6","col-md-6","col-sm-6","col-12","p-sm-0","p-md-0","p-lg-0","p-xl-0"],[1,"dropdown"],["id","dropdownMenuButton","data-toggle","dropdown","aria-expanded","fal
1se",1,"w-100",2,"border","none","background","white"],[1,"d-flex"],["type","text","readonly","","placeholder","All Grades",1,"inputForTags",3,"ngModel","ngModelChange"],[1,"bx","bxs-down-arrow","downArrow"],["aria-labelledby","dropdownMenuButton",1,"dropdown-menu","sortShadow","mt-2",2,"overflow-y","scroll","height","260px"],["class","dropdown-item sofiaProRegular","style","cursor:pointer;",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"text-xl-right",2,"padding-top","40px"],[1,"resetButton",3,"click"],[1,"applyFilter","sofiaProBold","pointer",3,"disabled","click"],[1,"table-responsive","reportTable","mt-4",2,"background","#F1F4F8","padding","2px 20px","border-radius","10px"],[1,"table",2,"border-collapse","separate","border-spacing","0 6px"],[1,"text-center"],[1,"border-0","text-nowrap"],[1,"my-icon","fa","fa-chevron-up",2,"cursor","pointer",3,"click"],["class","tableRow",4,"ngFor","ngForOf"],[1,"dropdown-item","sofiaProRegular",2,"cursor","pointer",3,"ngClass","click"],[2,"cursor","pointer"],[1,"tableRow"],[1,"widthOfTdClass"],[1,"text-field","input-group"],[1,"input-group-prepend",2,"border","none"],["type","button","data-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","dropdown-toggle",3,"value"],[1,"text",3,"title"],[1,"dropdown-menu",2,"position","absolute","transform","translate3d(1px, -88px, 0px)","top","132px","left","0px","will-change","transform","width","min-content","overflow-y","scroll"],["type","text","name","searchKey","placeholder","search Country Code","min","0","autocomplete","off",1,"form-control",2,"padding-left","24px",3,"keyup"],["class","dropdown-item p-3","style","border-top:1px solid #e9ecef",3,"click",4,"ngFor","ngForOf"],["type","text","placeholder","Enter Parent WhatsApp Number",1,"form-control","border-left-0",2,"box-shadow","none","padding","20px 0","border","none",3,"name","id","maxlength","ngModel","keypress","ngModelChange","change"],["parentWhatsAppNumber","ngModel"],[1,"custom-control","custom-switch","text-center"],["type","checkbox",1,"custom-control-input",3,"disabled","id","ngModel","ngModelChange","click"],[1,"custom-control-label",3,"for"],[1,"dropdown-item","p-3",2,"border-top","1px solid #e9ecef",3,"click"],[2,"font-size","13px","text-align","center","margin-top","15px"],[1,"text-center","card","py-4","mb-3"],[1,"mb-0"],[1,"d-flex","my-3"],[1,"justify-content-start"],[3,"rows","totalRecords","first","onPageChange"],["aa",""]],template:function(n,a){1&n&&(e.\u0275\u0275template(0,Fe,1,0,"app-loader",0),e.\u0275\u0275template(1,Ne,10,0,"div",1),e.\u0275\u0275template(2,qe,48,6,"div",0),e.\u0275\u0275template(3,ze,4,3,"div",2),e.\u0275\u0275element(4,"app-footer")),2&n&&(e.\u0275\u0275property("ngIf",a.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1==a.firstTimeUserForAnalyticsStudentReport&&0==a.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0==a.firstTimeUserForAnalyticsStudentReport),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0==a.firstTimeUserForAnalyticsStudentReport))},dependencies:[p.mk,p.sg,p.O5,x.Fj,x.Wl,x.JJ,x.nD,x.On,I.D,b.R,M.c],styles:['.text-Color[_ngcontent-%COMP%]{font-style:normal;font-size:30px;line-height:73px;color:#1e3757}.menteeDetailsText[_ngcontent-%COMP%]{font-style:normal;font-weight:800;font-size:24px;line-height:37px;color:#c4c4c4}.exploreButton[_ngcontent-%COMP%]{font-style:normal;font-weight:500;font-size:14px;line-height:20px;color:#fff;background:#03799C;border-radius:20px;border:none;padding:5px 30px}.sortShadow[_ngcontent-%COMP%]:before{bottom:100%;left:6.2em;border:11px solid rgb(0,0,0);content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:#c8c8c800;border-bottom-color:#c8c8c8}.sortShadow[_ngcontent-%COMP%]:after{bottom:100%;left:6.25em;border:10px solid rgba(0,0,0,0);content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:#fefdfd00;border-bottom-color:#fff}.downArrow[_ngcontent-%COMP%]{margin-left:-30px;margin-top:13px}.inputForTags[_ngcontent-%COMP%]{border-radius:30px;height:40px;width:170px;padding:15px!important;background:#F0F3F7;border:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@media screen and (max-width: 991px){.inputForTags[_ngcontent-%COMP%]{width:100%}}.resetButton[_ngcontent-%COMP%]{border:1px solid #8796A8;border-radius:45px;font-weight:400;font-size:14px;text-align:center;color:#8796a8;margin-right:15px;padding:5px 30px}@media screen and (max-width: 575px){.resetButton[_ngcontent-%COMP%]{padding:10px 35px}}.applyFilter[_ngcontent-%COMP%]{background:linear-gradient(180deg,#00E1AC 0%,#03799C 100%);border-radius:45px;font-size:14px;text-align:center;color:#fff;border:none;padding:7px 30px}@media screen and (max-width: 575px){.applyFilter[_ngcontent-%COMP%]{padding:7px 20px}}.widthOfTdClass[_ngcontent-%COMP%]{width:300px}.custom-control-input[_ngcontent-%COMP%]:checked ~ .custom-control-label[_ngcontent-%COMP%]:before{color:#fff;border-color:#1dd1fc!important;background-color:#1dd1fc!important}.custom-control-input[_ngcontent-%COMP%]:focus ~ .custom-control-label[_ngcontent-%COMP%]:before{box-shadow:none!important}.inputForTags[_ngcontent-%COMP%]::placeholder{font-size:22px}.highlight[_ngcontent-%COMP%]{color:#1e3757!important}.noHightLight[_ngcontent-%COMP%]{color:#8796a8!important}']})}return r})(),canActivate:[R.y],data:{breadcrumb:"Analytics / Reporting Setup"}}]},{path:"report/:assessmentId",component:Ee,canActivate:[R.y]},{path:"view-pdf/:url",component:(()=>
1{class r{constructor(t,n,a,o,i){this.apiservice=t,this.activatedRoute=n,this.router=a,this.http=o,this.Location=i,this.currentPage=1,this.mediaData=[],this.zoom=1,this.page=1}ngOnInit(){this.getData=atob(this.activatedRoute.snapshot.params.url),console.log(this.getData,"getData")}onProgress(t){this.isLoading=!0}pageRendered(t){this.isLoading=!1}textLayerRendered(t){this.currentPage=t.pageNumber}onError(t){this.isLoading=!1}getSelectedFile(){let t=localStorage.getItem("teamsPreviewData"),n=JSON.parse(t);this.mediaData=n,this.mediaData.filter(a=>{this.getTeamId==a.fileData.id&&(this.newMedia=a)})}afterLoad(t){this.totalPages=t.numPages,this.isLoading=!1,this.remainingPdfPages=new Array(t.numPages-1)}incrementZoom(t){this.zoom+=t}incrementPage(t){this.page=this.page+t,this.page<=0&&(this.currentPage=0)}goToLast(t){this.page=t,this.currentPage=t,this.page<=0&&(this.currentPage=0)}onResize(t){}onMouseWheel(t,n){this.currentPage=n}back(){this.Location.back()}static#e=this.\u0275fac=function(n){return new(n||r)(e.\u0275\u0275directiveInject(w.s),e.\u0275\u0275directiveInject(s.gz),e.\u0275\u0275directiveInject(s.F0),e.\u0275\u0275directiveInject(G.eN),e.\u0275\u0275directiveInject(p.S$))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["app-displ-pdf"]],hostBindings:function(n,a){1&n&&e.\u0275\u0275listener("scroll",function(i){return a.onResize(i)})},decls:18,vars:2,consts:[[4,"ngIf"],[1,"d-flex","flex-row",3,"click"],["src","/assets/cil_arrow-circle-left.svg"],[1,"nm","ml-2"],[1,"card","rounded-border-top-corners","mb
1-4"],[1,"card-body",2,"background-color","#e8e8e8","height","calc(100vh)","overflow-y","scroll"],[1,"d-flex","justify-content-center"],["alt","",2,"width","60%","height","100%","border-radius","5px",3,"src"],["id","outerContainer"],[1,"pdf-container"],["noRecordsFoundForLink",""],[1,"card","mt-3"],[1,"card-body"],[1,"text-center"]],template:function(n,a){1&n&&(e.\u0275\u0275template(0,He,1,0,"app-loader",0),e.\u0275\u0275elementContainerStart(1),e.\u0275\u0275elementStart(2,"div",1),e.\u0275\u0275listener("click",function(){return a.back()}),e.\u0275\u0275elementStart(3,"div"),e.\u0275\u0275element(4,"img",2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div")(6,"p",3),e.\u0275\u0275text(7,"Mentee Report"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(8,"div",4)(9,"div",5)(10,"div")(11,"div")(12,"div",6),e.\u0275\u0275element(13,"img",7),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(14,"div",8),e.\u0275\u0275element(15,"div",9),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275template(16,Ge,4,0,"ng-template",null,10,e.\u0275\u0275templateRefExtractor)),2&n&&(e.\u0275\u0275property("ngIf",a.isLoading),e.\u0275\u0275advance(13),e.\u0275\u0275property("src",a.getData,e.\u0275\u0275sanitizeUrl))},dependencies:[p.O5,b.R],styles:["pdf-viewer[_ngcontent-%COMP%]{height:100vh}.card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]{background-color:#1e3757;color:#fff;font-size:20px;font-weight:500;border-top-left-radius:10px;border-top-right-radius:10px}.card[_ngcontent-%COMP%]   .backgroundColorForCurrentPage[_ngcontent-%COMP%]{background-color:#fff;color:#1e3757;padding:10px;border-radius:7px;margin:10px 8px}.titleOfAssessment[_ngcontent-%COMP%]{font-size:21px;font-weight:600}.titleOfMainAssessment[_ngcontent-%COMP%]{font-weight:800;font-size:20px}.rounded-border-top-corners[_ngcontent-%COMP%]{border-top-left-radius:10px;border-top-right-radius:10px}.heading-bread-crumb[_ngcontent-%COMP%]{color:#fff;margin-left:4px;padding-top:10px;margin-bottom:2rem}.heading[_ngcontent-%COMP%]{font-weight:400;font-size:60px;line-height:73px}.package-name[_ngcontent-%COMP%]{width:104%;position:relative;top:-15px;left:-23px;background:linear-gradient(82.49deg,#CF91FF -20.69%,#5782F5 125.25%);padding-left:25px;padding-bottom:2%}@media screen and (min-device-width: 320px) and (max-device-width: 1650px){.package-name[_ngcontent-%COMP%]{width:105%}}@media screen and (min-device-width: 320px) and (max-device-width: 1352px){.package-name[_ngcontent-%COMP%]{width:106%}}@media screen and (min-device-width: 320px) and (max-device-width: 1154px){.package-name[_ngcontent-%COMP%]{width:107%}}@media screen and (min-device-width: 320px) and (max-device-width: 1012px){.package-name[_ngcontent-%COMP%]{width:108%}}@media screen and (min-device-width: 320px) and (max-device-width: 991px){.package-name[_ngcontent-%COMP%]{top:-34px;width:109%}}@media screen and (min-device-width: 320px) and (max-device-width: 824px){.package-name[_ngcontent-%COMP%]{width:110%}}@media screen and (min-device-width: 320px) and (max-device-width: 757px){.package-name[_ngcontent-%COMP%]{width:111%}}@media screen and (min-device-width: 320px) and (max-device-width: 703px){.package-name[_ngcontent-%COMP%]{width:112%}}@media screen and (min-device-width: 320px) and (max-device-width: 658px){.package-name[_ngcontent-%COMP%]{width:113%}}@media screen and (min-device-width: 320px) and (max-device-width: 620px){.package-name[_ngcontent-%COMP%]{width:114%}}@media screen and (min-device-width: 320px) and (max-device-width: 587px){.package-name[_ngcontent-%COMP%]{width:115%}}@media screen and (min-device-width: 320px) and (max-device-width: 587px){.package-name[_ngcontent-%COMP%]{width:115%;top:-20px}}.nm[_ngcontent-%COMP%]{font-weight:500;font-size:25px;color:#1e3757;vertical-align:middle}"]})}return r})(),canActivate:[R.y]}];let je=(()=>{class r{static#e=this.\u0275fac=function(n){return new(n||r)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:r});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[s.Bz.forChild(Ye),s.Bz]})}return r})();var Je=c(38314),Qe=c(29891);let Ze=(()=>{class r{static#e=this.\u0275fac=function(n){return new(n||r)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:r});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[p.ez,je,x.u5,x.UX,I.U,Je.m,Qe.c,H.K]})}return r})()},29891:(j,T,c)=>{c.d(T,{c:()=>M,z:()=>b});var p=c(97582),s=c(94650),e=c(72986),L=c(98723),O=c(36895),V=c(11481);const W=["iframe"];function E(m,f){if(1&m&&s.\u0275\u0275element(0,"div",3),2&m){const l=s.\u0275\u0275nextContext(2);s.\u0275\u0275property("innerHtml",l.docHtml,s.\u0275\u0275sanitizeHtml)}}function C(m,f){if(1&m&&(s.\u0275\u0275elementStart(0,"object",4)(1,"p"),s.\u0275\u0275text(2,"Your browser does not support PDFs. "),s.\u0275\u0275elementStart(3,"a",5),s.\u0275\u0275text(4,"Download the PDF"),s.\u0275\u0275elementEnd(),s.\u0275\u0275text(5,"."),s.\u0275\u0275elementEnd()()),2&m){const l=s.\u0275\u0275nextContext(2);s.\u0275\u0275property("data",l.fullUrl,s.\u0275\u0275sanitizeResourceUrl),s.\u0275\u0275advance(3),s.\u0275\u0275property("href",l.fullUrl,s.\u0275\u0275sanitizeUrl)}}function F(m,f){if(1&m&&(s.\u0275\u0275elementContainerStart(0),s.\u0275\u0275template(1,E,1,1,"div",1),s.\u0275\u0275template(2,C,6,2,"object",2),s.\u0275\u0275elementContainerEnd()),2&m){const l=s.\u0275\u0275nextContext();s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf","pdf"!==l.configuredViewer),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",l.fullUrl&&"pdf"===l.configuredViewer)}}function w(m,f){if(1&m){const l=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"iframe",8,9),s.\u0275\u0275listener("load",function(){s.\u0275\u0275restoreView(l);const u=s.\u0275\u0275nextContext(2);
1return s.\u0275\u0275resetView(u.iframeLoaded())}),s.\u0275\u0275elementEnd()}if(2&m){const l=s.\u0275\u0275nextContext(2);s.\u0275\u0275property("src",l.fullUrl,s.\u0275\u0275sanitizeResourceUrl)}}function P(m,f){if(1&m){const l=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"iframe",8,9),s.\u0275\u0275listener("load",function(){s.\u0275\u0275restoreView(l);const u=s.\u0275\u0275nextContext(3);return s.\u0275\u0275resetView(u.iframeLoaded())}),s.\u0275\u0275elementEnd()}if(2&m){const l=s.\u0275\u0275nextContext(3);s.\u0275\u0275property("src",l.fullUrl,s.\u0275\u0275sanitizeResourceUrl)}}function k(m,f){if(1&m&&(s.\u0275\u0275elementStart(0,"div",10),s.\u0275\u0275element(1,"div"),s.\u0275\u0275template(2,P,2,1,"iframe",6),s.\u0275\u0275elementEnd()),2&m){const l=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(1),s.\u0275\u0275styleProp("background-color","popout-hide"===l.disableContent?"#fff":"transparent"),s.\u0275\u0275classProp("overlay-full","all"===l.disableContent)("overlay-popout-google","google"===l.configuredViewer&&("popout"===l.disableContent||"popout-hide"===l.disableContent))("overlay-popout-office","office"===l.configuredViewer&&("popout"===l.disableContent||"popout-hide"===l.disableContent)),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",l.fullUrl)}}function I(m,f){if(1&m&&(s.\u0275\u0275elementContainerStart(0),s.\u0275\u0275template(1,w,2,1,"iframe",6),s.\u0275\u0275template(2,k,3,9,"div",7),s.\u0275\u0275elementContainerEnd()),2&m){const l=s.\u0275\u0275nextContext();s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",l.fullUrl&&"none"===l.disableContent),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf","none"!==l.disableContent)}}let b=(()=>{class m{constructor(l,g){this.domSanitizer=l,this.ngZone=g,this.loaded=new s.EventEmitter,this.url="",this.queryParams="",this.viewerUrl="",this.googleCheckInterval=3e3,this.disableContent="none",this.googleCheckContentLoaded=!0,this.fullUrl=null,this.externalViewer=!1,this.docHtml="",this.configuredViewer="google",this.checkIFrameSubscription=null}ngOnDestroy(){this.checkIFrameSubscription&&this.checkIFrameSubscription.unsubscribe()}ngOnChanges(l){return(0,p.mG)(this,void 0,void 0,function*(){if(l&&l.viewer&&(l.viewer.isFirstChange||l.viewer.currentValue!==l.viewer.previousValue)&&("google"!==this.viewer&&"office"!==this.viewer&&"mammoth"!==this.viewer&&"pdf"!==this.viewer&&"url"!==this.viewer&&console.error(`Unsupported viewer: '${this.viewer}'. Supported viewers: google, office, mammoth and pdf`),"mammoth"===this.viewer&&null===mammoth&&console.error("please install mammoth when using local viewer"),this.configuredViewer=this.viewer),l.url&&l.url.currentValue!==l.url.previousValue||l.viewer&&l.viewer.currentValue!==l.viewer.previousValue||l.viewerUrl&&l.viewerUrl.currentValue!==l.viewerUrl.previousValue){switch(l.viewerUrl||(this.viewerUrl=null),this.configuredViewer){case"google":this.viewerUrl="https://docs.google.com/gview?url=%URL%&embedded=true";break;case"office":this.viewerUrl="https://view.officeapps.live.com/op/embed.aspx?src=%URL%";break;case"pdf":this.viewerUrl=null}if(this.docHtml="",this.externalViewer="google"===this.configuredViewer||"office"===this.configuredViewer||"url"===this.configuredViewer,this.checkIFrameSubscription&&this.checkIFrameSubscription.unsubscribe(),this.url)if("office"===this.configuredViewer||"google"===this.configuredViewer||"pdf"===this.configuredViewer||"url"===this.configuredViewer){const g=this.url.indexOf("/")?encodeURIComponent(this.url):this.url;let u=this.viewerUrl?this.viewerUrl.replace("%URL%",g):this.url;this.queryParams&&"pdf"!==this.configuredViewer&&"url"!==this.configuredViewer&&(u=`${u}${this.queryParams.startsWith("&")?"":"&"}${this.queryParams}`),this.fullUrl=this.domSanitizer.bypassSecurityTrustResourceUrl(u),"google"===this.configuredViewer&&this.googleCheckContentLoaded&&this.ngZone.runOutsideAngular(()=>{this.checkIFrameSubscription=(0,L.H)(100,this.googleCheckInterval).pipe((0,e.q)(Math.round(0===this.googleCheckInterval?0:2e4/this.googleCheckInterval))).subscribe(()=>{var _,S;const N=null===(S=null===(_=this.iframes)||void 0===_?void 0:_.first)||void 0===S?void 0:S.nativeElement;this.reloadIFrame(N)})})}else"mammoth"===this.configuredViewer&&(mammoth||console.error("Please install mammoth and make sure mammoth.browser.min.js is loaded."),this.docHtml=yield this.getDocxToHtml(this.url));else this.fullUrl=null}})}iframeLoaded(){this.loaded.emit(null),this.checkIFrameSubscription&&this.checkIFrameSubscription.unsubscribe()}reloadIFrame(l){l&&(console.log("reloading.."),l.src=l.src)}getDocxToHtml(l){return(0,p.mG)(this,void 0,void 0,function*(){const g=yield this.fileToArray(l);return(yield mammoth.convertToHtml({arrayBuffer:g})).value})}fileToArray(l){return new Promise((g,u)=>{try{const _=new XMLHttpRequest;_.open("GET",l,!0),_.responseType="blob",_.onload=()=>{const S=new FileReader;S.readAsArrayBuffer(_.response),S.onloadend=N=>{g(S.result)}},_.send()}catch{u(`error while retrieving file ${l}.`)}})}}return m.\u0275fac=function(l){return new(l||m)(s.\u0275\u0275directiveInject(V.H7),s.\u0275\u0275directiveInject(s.NgZone))},m.\u0275cmp=s.\u0275\u0275defineComponent({type:m,selectors:[["ngx-doc-viewer"]],viewQuery:function(l,g){if(1&l&&s.\u0275\u0275viewQuery(W,5),2&l){let u;s.\u0275\u0275queryRefresh(u=s.\u0275\u0275loadQuery())&&(g.iframes=u)}},inputs:{url:"url",queryParams:"queryParams",viewerUrl:"viewerUrl",googleCheckInterval:"googleCheckInterval",disableContent:"disableContent",googleCheckContentLoaded:"googleCheckContentLoaded",viewer:"viewer"},outputs:{loaded:"loaded"},features:[s.\u0275\u0275NgOnChangesFeature],decls:2,vars:2,consts:[[4,"ngIf"],[3,"innerHtml",4,"ngIf"],["type","application/pdf","width","100%","height","100%",3,"data",4,"ngIf"],[3,"innerHtml"],["type","application/pdf","width","100%","height","100%",3,"data"],[3,"href"],["id","iframe","frameBorder","0",3,"src","load",4,"ngIf"],["class","container",4,"ngIf"],["id","iframe","frameBorder","0",3,"src","load"],["iframe",""],[1,"container"]],template:function(l,g){1&l&&(s.\u0275\u0275template(0,F,3,2,"ng-container",0),s.\u0275\u0275template(1,I,3,2,"ng-container",0)),2&l&&(s.\u0275\u0275property("ngIf",!g.externalViewer),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",g.externalViewer))},dependencies:[O.O5],styles:["[_nghost-%COMP%] {\n        display: block;\n    }\n    .container[_ngcontent-%COMP%] {\n        width: 100%;\n        height: 100%;\n        position: relative;\n    }\n    .overlay-popout-google[_ngcontent-%COMP%] {\n        width: 40px;\n        height: 40px;
1\n        right: 26px;\n        top: 11.5px;\n        position: absolute;\n        z-index: 1000;\n    }\n    .overlay-popout-office[_ngcontent-%COMP%] {\n        width: 100px;\n        height: 20px;\n        right: 0;\n        bottom: 0;\n        position: absolute;\n        z-index: 1000;\n    }\n    .overlay-full[_ngcontent-%COMP%] {\n        width: 100%;\n        height: 100%;\n        right: 0;\n        top: 0;\n        position: absolute;\n        z-index: 1000;\n    }\n    iframe[_ngcontent-%COMP%] {\n        width: 100%;\n        height: 100%;\n    }"]}),m})(),M=(()=>{class m{}return m.\u0275fac=function(l){return new(l||m)},m.\u0275mod=s.\u0275\u0275defineNgModule({type:m}),m.\u0275inj=s.\u0275\u0275defineInjector({imports:[O.ez]}),m})()}}]);

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.