PageSourceSearch

https://market.dynamind.co/7729.f0dcae204cc8e246.js

js dynamind.co collected 2026-10-01 14:41:18 UTC 282,063 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdynaminds=self.webpackChunkdynaminds||[]).push([[7729],{33826:(L,f,c)=>{c.d(f,{_:()=>r});class r{constructor(){this.interestAreas=[],this.interestAreasIds=[],this.questions=[],this.tags=[],this.userAssessmentInfos=[]}}},30833:(L,f,c)=>{c.d(f,{c:()=>r});class r{constructor(){this.question="",this.tags=[],this.tagIds=[],this.options=[],this.answerKeys=[],this.allTagsDto=[],this.selectedAnswers=[],this.isUpdatedQuestion=!1,this.isQuestionChecked=!1,this.isQuestionAttempted=!1,this.isQuestionExpanded=!1,this.parentQuestionFlag=!1,this.isSelected=!1,this.parentQuestionDisplay=!1,this.filterTagIds=[],this.isDisplay=!1,this.isQcDisplay=!1}}},7729:(L,f,c)=>{c.r(f),c.d(f,{MentorAssessmentModule:()=>Wt});var r=c(36895),w=c(265),h=c(1791),x=c(69728),e=c(94650),D=c(55840),A=c(27724),u=c(29847),v=c(25056),G=c(30833),F=c(83539),_=c(42680),S=c(37865),b=c(97185),C=c(11481),Y=c(33739),K=c(89302),g=c(84719),y=c(3056),q=c(76411),N=c(49856),M=c(45227),V=c(77651),Q=c(67734),T=c(25292);const J=["tagInput"],j=["tagNewQuestionInput"],X=["tagEditQuestionInput"],Z=["subjectDropDown"],ee=["multiSelectForTopicsFilter"],te=["multiSelectForChaptersFilter"];function ne(l,o){1&l&&(e.\u0275\u0275elementStart(0,"div")(1,"div",153)(2,"div")(3,"h1",154),e.\u0275\u0275text(4,"Add Assessment"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",155)(6,"div",156),e.\u0275\u0275text(7,"Step"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"div",157),e.\u0275\u0275text(9,"1"),e.\u0275\u0275elementEnd()()()())}function se(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"div",153)(2,"div",153)(3,"div",130)(4,"i",158),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(n.back())}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div")(6,"h1",154),e.\u0275\u0275text(7,"Edit Assessment"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(8,"div",155)(9,"div",156),e.\u0275\u0275text(10,"Step"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",157),e.\u0275\u0275text(12,"1"),e.\u0275\u0275elementEnd()()()()}}function ie(l,o){1&l&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1,"s"),e.\u0275\u0275elementEnd())}function ae(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"p-slider",159),e.\u0275\u0275listener("ngModelChange",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.assessmentDto.durationInMinutes=n)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"div",127)(3,"div"),e.\u0275\u0275text(4,"1"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div")(6,"label",160),e.\u0275\u0275text(7,"Duration in min"),e.\u0275\u0275template(8,ie,2,0,"span",0),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"output",161),e.\u0275\u0275text(10),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(11,"div"),e.\u0275\u0275text(12,"360 Min"),e.\u0275\u0275elementEnd()()()}if(2&l){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("min",1)("max",360)("ngModel",t.assessmentDto.durationInMinutes),e.\u0275\u0275advance(7),e.\u0275\u0275property("ngIf",0==t.assessmentDto.durationInMinutes||t.assessmentDto.durationInMinutes>1),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("",t.assessmentDto.durationInMinutes," ")}}function le(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",95)(1,"label",135),e.\u0275\u0275text(2,"Assessment Group *"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"small",17),e.\u0275\u0275text(4," Assessments groups helps us categorize the asessments into different groups for ease of understanding and differentiation. "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"input",162),e.\u0275\u0275listener("ngModelChange",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.assessmentDto.assessmentOption=n)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"label",98),e.\u0275\u0275text(7," Rank Booster Tests "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"input",163),e.\u0275\u0275listener("ngModelChange",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);
1return e.\u0275\u0275resetView(i.assessmentDto.assessmentOption=n)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"label"),e.\u0275\u0275text(10," Daily Practice tests "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"input",164),e.\u0275\u0275listener("ngModelChange",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.assessmentDto.assessmentOption=n)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(12,"label"),e.\u0275\u0275text(13," Free "),e.\u0275\u0275elementEnd()()}if(2&l){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(5),e.\u0275\u0275property("ngModel",t.assessmentDto.assessmentOption),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngModel",t.assessmentDto.assessmentOption),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngModel",t.assessmentDto.assessmentOption)}}function oe(l,o){if(1&l&&e.\u0275\u0275element(0,"a",165),2&l){const t=o.$implicit;e.\u0275\u0275propertyInterpolate1("title"," ",null==t.tagHierarchy?"N/A":t.tagHierarchy,""),e.\u0275\u0275property("innerHTML",t.tagName,e.\u0275\u0275sanitizeHtml)}}function re(l,o){1&l&&e.\u0275\u0275element(0,"div",166),2&l&&e.\u0275\u0275property("innerHTML",o.$implicit,e.\u0275\u0275sanitizeHtml)}function de(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",167)(1,"div",168)(2,"i",169),e.\u0275\u0275listener("click",function(){const i=e.\u0275\u0275restoreView(t).$implicit,a=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(a.deleteTag(i))}),e.\u0275\u0275elementStart(3,"span",170),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()()()}if(2&l){const t=o.$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate1("title"," ",null==t.tagHierarchy?"N/A":t.tagHierarchy,""),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(null==t?null:t.tagName)}}const ce=function(l){return{display:l}};function me(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"div",94)(2,"div",95),e.\u0275\u0275template(3,ne,10,0,"div",0),e.\u0275\u0275template(4,se,13,0,"div",0),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",94)(6,"div",95)(7,"label"),e.\u0275\u0275text(8,"Title"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"input",96),e.\u0275\u0275listener("ngModelChange",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.assessmentDto.title=n)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"small"),e.\u0275\u0275text(11," For example: Unit Test 1 / Half yearly 2021 / Mechanics Part 1"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(12,"div",37)(13,"div",97)(14,"label",98),e.\u0275\u0275text(15,"Description"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"span")(17,"small",99),e.\u0275\u0275text(18),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(19,"div",100)(20,"textarea",101),e.\u0275\u0275listener("ngModelChange",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.assessmentDto.description=n)})("input",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.descriptionChange(n.assessmentDto.description))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(21,"div",102),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(22,"div",103)(23,"label"),e.\u0275\u0275text(24,"Upload Image"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(25,"div",104)(26,"div",105),e.\u0275\u0275listener("dragover",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.onDragOver(n))})("drop",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.onDrop(n))})("dragleave",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.onDragLeave(n))}),e.\u0275\u0275element(27,"img",106)(28,"input",107),e.\u0275\u0275elementStart(29,"div",108)(30,"small"),e.\u0275\u0275text(31,"1600 x 1200 (4:3) recommended, up to 1Omb each."),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(32,"a",109),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275reference(50);
1return e.\u0275\u0275resetView(n.click())}),e.\u0275\u0275text(33," click to browse "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(34,"div",110)(35,"div",111),e.\u0275\u0275listener("dragover",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.onDragOver(n))})("drop",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.onDrop(n))})("dragleave",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.onDragLeave(n))}),e.\u0275\u0275element(36,"img",106)(37,"input",112),e.\u0275\u0275elementStart(38,"div",113)(39,"small"),e.\u0275\u0275text(40,"1600 x 1200 (4:3) recommended, up to 1Omb each."),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(41,"a",114),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275reference(50);return e.\u0275\u0275resetView(n.click())}),e.\u0275\u0275text(42," click to browse "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(43,"div",12)(44,"div",115)(45,"div",116),e.\u0275\u0275text(46),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(47,"div",117),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.fileToUpload=null)}),e.\u0275\u0275elementStart(48,"i",118),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.removeSelectedPicture())}),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(49,"input",119,120),e.\u0275\u0275listener("change",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.handleFileInput(n.target.files))})("click",function(n){return n.target.value=null}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(51,"div",121)(52,"div",122)(53,"label"),e.\u0275\u0275text(54," Total no. of questions"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(55,"input",123),e.\u0275\u0275listener("ngModelChange",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.assessmentDto.totalNumberOfQuestions=n)})("ngModelChange",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.Numberofquestionmethod(n.assessmentDto.totalNumberOfQuestions))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(56,"div",124)(57,"div")(58,"label",125),e.\u0275\u0275text(59,"Price INR"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(60),e.\u0275\u0275elementStart(61,"p-slider",126),e.\u0275\u0275listener("ngModelChange",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.assessmentDto.price=n)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(62,"div",127)(63,"div"),e.\u0275\u0275text(64,"Free"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(65,"div"),e.\u0275\u0275text(66,"\u20b95000"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(67,"div",128)(68,"div",129)(69,"div",130)(70,"input",131),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.showSlider())}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(71,"label",132),e.\u0275\u0275text(72," Select Duration"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(73,"div")(74,"input",133),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.showSlider1())}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(75,"label",132),e.\u0275\u0275text(76,"No Time Limit"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(77,ae,13,5,"div",0),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(78,"div",37),e.\u0275\u0275template(79,le,14,3,"div",134),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(80,"div",37)(81,"div",95)(82,"label",135),e.\u0275\u0275text(83,"Instru
1ctions:"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(84,"div")(85,"div",100)(86,"textarea",136),e.\u0275\u0275listener("ngModelChange",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.assessmentDto.instructions=n)})("ngModelChange",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.instructionsTextChange(n.assessmentDto.instructions))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(87,"div",102),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(88,"div",37)(89,"div",137)(90,"div",138)(91,"label"),e.\u0275\u0275text(92,"Discovery Tags "),e.\u0275\u0275element(93,"img",139),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(94,"div",140),e.\u0275\u0275text(95," These tags will be used as keywords by other teachers and students to discover your assessment. "),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(96,"div",141)(97,"div",142)(98,"ng-autocomplete",143,144),e.\u0275\u0275listener("selected",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.onTagChange(n))})("inputChanged",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.onSearchShowTagData(n))})("inputCleared",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.onSearchShowTagData(n))})("inputFocused",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.onTagChange(n))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(100,oe,1,2,"ng-template",null,145,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(102,re,1,1,"ng-template",null,146,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(104,"div",147)(105,"div",148),e.\u0275\u0275template(106,de,5,2,"div",68),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(107,"div",149)(108,"div",150)(109,"label"),e.\u0275\u0275text(110,"Instructions to enter tags:"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(111,"p"),e.\u0275\u0275text(112," To help the students/teachers locate your assessments better, it is advised that you specify as many tags from the course/s as possible. "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(113,"p"),e.\u0275\u0275text(114," For example, if you are creating Grade 8 Maths on Rational Numbers then follow the below steps: "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(115,"div"),e.\u0275\u0275text(116," 1. Search Grade 8, take the cursor on Grade 8, select the Grade 8 from the drop down list. "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(117,"div"),e.\u0275\u0275text(118," 2. Search Mathematics, take the cursor on Mathematics, check for the question route, select the required Mathematics from the drop down list. "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(119,"div"),e.\u0275\u0275text(120," 3. Search Rational Numbers, take the cursor on Rational Numbers, check for the question route, select the required Rational Numbers from the drop down list. "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(121,"div"),e.\u0275\u0275text(122," 4. Similarly, you can search relevant tags as per the assessment you are creating and select. "),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(123,"div",94)(124,"div",151)(125,"button",152),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.saveAndContinue("2"))}),e.\u0275\u0275text(126," Save and Continue "),e.\u0275\u0275elementEnd()()()()}if(2&l){const t=e.\u0275\u0275reference(101),s=e.\u0275\u0275reference(103),n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",0==n.EditTextDisplay),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1==n.EditTextDisplay),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngModel",n.assessmentDto.title),e.\u0275\u0275advance(9),e.\u0275\u0275textInterpolate1("[",n.remainingDescriptionText," words left]"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngModel",n.assessmentDto.description),e.\u0275\u0275advance(26),e.\u0275\u0275textInterpolate1(" ",null==n.fileToUpload?null:n.fileToUpload.name," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngStyle",e.\u0275\u0275pureFunction1(22,ce,null!=n.fileToUpload&&n.fileToUpload.name?"block":"none")),e.\u0275\u0275advance(8),e.\u0275\u0275property("ngModel",n.assessmentDto.totalNumberOfQuestions),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",null==n.assessmentDto?null:n.assessmentDto.price," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("min",0)("max",5e3)("ngModel",n.assessmentDto.price),e.\u0275\u0275advance(9),e.\u0275\u0275property("checked",n.assessmentDto.durationInMinutes),e.\u0275\u0275advance(4),e.\u0275\u0275property("checked",!n.assessmentDto.durationInMinutes),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",n.showDuration),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",n.loggedInUser.dynamindSpecialUser),e.\u0275\u0275advance(7),e.\u0275\u0275property("ngModel",n.assessmentDto.instructions),e.\u0275\u0275advance(12),e.\u0275\u0275property("data",n.tagsMasterData)("searchKeyword",n.keywordTag)("itemTemplate",t)("notFoundTemplate",s),e.\u0275\u0275advance(8),e.\u0275\u0275property("ngForOf",n.assessmentDto.tags)}}function pe(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"div",153)(2,"div",153)(3,"div",130)(4,"i",158),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(2);
1return e.\u0275\u0275resetView([n.removeSelectedValues(),n.saveAndContinue("1")])}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div")(6,"h1",154),e.\u0275\u0275text(7,"Add Assessment "),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(8,"div",155)(9,"div",156),e.\u0275\u0275text(10,"Step"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",157),e.\u0275\u0275text(12,"2"),e.\u0275\u0275elementEnd()()()()}}function he(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"div",153)(2,"div",153)(3,"div",130)(4,"i",158),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(n.saveAndContinue("1"))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div")(6,"h1",154),e.\u0275\u0275text(7,"Edit Assessment"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(8,"div",155)(9,"div",156),e.\u0275\u0275text(10,"Step"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",227),e.\u0275\u0275text(12,"2"),e.\u0275\u0275elementEnd()()()()}}function ge(l,o){if(1&l&&(e.\u0275\u0275elementStart(0,"div",228),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&l){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.message," ")}}function ue(l,o){1&l&&e.\u0275\u0275element(0,"img",229)}function _e(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",231)(1,"a",232)(2,"div",233)(3,"div",234)(4,"input",235),e.\u0275\u0275listener("ngModelChange",function(n){const a=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275resetView(a.isQuestionChecked=n)})("change",function(n){const a=e.\u0275\u0275restoreView(t).$implicit,d=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(d.onQuestionSelect(a,n.target.checked))})("click",function(){const i=e.\u0275\u0275restoreView(t).$implicit,a=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(a.highlightRow(i))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",236)(6,"div",237)(7,"div",211)(8,"div",238),e.\u0275\u0275text(9," Difficulty Level: "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(10,"div",239)(11,"div",240),e.\u0275\u0275text(12),e.\u0275\u0275pipe(13,"titlecase"),e.\u0275\u0275pipe(14,"replace"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(15,"div",241)(16,"div",241)(17,"div",241)(18,"div",241)(19,"div",241)(20,"div",241),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(21,"div",242),e.\u0275\u0275elementStart(22,"div")(23,"span",243),e.\u0275\u0275text(24,"Question Bank ID :"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(25),e.\u0275\u0275pipe(26,"titlecase"),e.\u0275\u0275pipe(27,"replace"),e.\u0275\u0275elementEnd()()()()()}if(2&l){const t=o.$implicit,s=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(4),e.\u0275\u0275property("ngModel",t.isQuestionChecked),e.\u0275\u0275advance(8),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(13,11,e.\u0275\u0275pipeBind1(14,13,t.difficultLevel))," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,1)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,2)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,3)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,4)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,5)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,6)),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",null==t?null:t.question,e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate2(" ",null==t?null:t.questionId," | ",e.\u0275\u0275pipeBind1(26,15,e.\u0275\u0275pipeBind1(27,17,t.questionType))," ")}}function fe(l,o){if(1&l&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,_e,28,19,"div",230),e.\u0275\u0275elementEnd()),2&l){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.masterQuestions)}}const U=function(l){return{trueColor:l}};function xe(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"table",252)(1,"tr",241)(2,"td",253)(3,"div",155)(4,"div")(5,"p",254),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div")(8,"div",255)(9,"input",256),e.\u0275\u0275listener("ngModelChange",function(n){const a=e.\u0275\u0275restoreView(t).$implicit;
1return e.\u0275\u0275resetView(a.marks=n)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(10,"i",257),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",211)(12,"input",258),e.\u0275\u0275listener("ngModelChange",function(n){const a=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275resetView(a.negativeMarks=n)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(13,"i",259),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(14,"td",260),e.\u0275\u0275element(15,"div",166),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"td",261)(17,"div",250),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(3),i=e.\u0275\u0275reference(5);return e.\u0275\u0275resetView(n.scroll(i))}),e.\u0275\u0275elementStart(18,"i",262),e.\u0275\u0275listener("click",function(){const i=e.\u0275\u0275restoreView(t).$implicit,a=e.\u0275\u0275nextContext().index,d=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(d.updateQuestion(a,i))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275text(19," \xa0 "),e.\u0275\u0275elementStart(20,"i",263),e.\u0275\u0275listener("click",function(){const n=e.\u0275\u0275restoreView(t),i=n.index,a=n.$implicit,d=e.\u0275\u0275nextContext().index,m=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(m.deleteQuestion(d,i,a))}),e.\u0275\u0275elementEnd()()()()}if(2&l){const t=o.$implicit,s=o.index,n=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(5,U,t.question==n.selectedQuestion)),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1("",s+1,"."),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngModel",t.marks),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngModel",t.negativeMarks),e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",null==t?null:t.question,e.\u0275\u0275sanitizeHtml)}}function ve(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",244)(1,"div",245)(2,"div",246),e.\u0275\u0275element(3,"hr"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",247)(5,"small"),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div",248),e.\u0275\u0275element(8,"hr"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"div",249)(10,"a",250),e.\u0275\u0275listener("click",function(){const i=e.\u0275\u0275restoreView(t).index,a=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(a.removeSection(i))}),e.\u0275\u0275text(11,"x"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(12,"div",12)(13,"div"),e.\u0275\u0275template(14,xe,21,7,"table",251),e.\u0275\u0275elementEnd()()()}if(2&l){const t=o.$implicit,s=o.index;e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate1("Section ",s+1,""),e.\u0275\u0275advance(8),e.\u0275\u0275property("ngForOf",t.questions)}}function Ce(l,o){if(1&l&&(e.\u0275\u0275elementStart(0,"div",228),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&l){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.message," ")}}function we(l,o){1&l&&e.\u0275\u0275element(0,"img",272)}function Ae(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",231)(1,"a",232)(2,"div",273)(3,"div",211)(4,"div",274)(5,"input",235),e.\u0275\u0275listener("ngModelChange",function(n){const a=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275resetView(a.isQuestionChecked=n)})("change",function(n){const a=e.\u0275\u0275restoreView(t).$implicit,d=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(d.onQuestionSelect(a,n.target.checked))})("click",function(){const i=e.\u0275\u0275restoreView(t).$implicit,a=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(a.highlightRow(i))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div")(7,"div",237)(8,"div",211)(9,"div",238),e.\u0275\u0275text(10," Difficulty Level: "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(11,"div",239)(12,"div",240),e.\u0275\u0275text(13),e.\u0275\u0275pipe(14,"titlecase"),e.\u0275\u0275pipe(15,"replace"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(16,"div",241)(17,"div",241)(18,"div",241)(19,"div",241)(20,"div",241)(21,"div",241),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(22,"div",242),e.\u0275\u0275elementStart(23,"div")(24,"span",243),e.\u0275\u0275text(25,"Question Bank ID :"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(26),e.\u0275\u0275pipe(27,"titlecase"),e.\u0275\u0275pipe(28,"replace"),e.\u0275\u0275elementEnd()()()()()()}if(2&l){const t=o.$implicit,s=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(5),e.\u0275\u0275property("ngModel",t.isQuestionChecked),e.\u0275\u0275advance(8),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(14,11,e.\u0275\u0275pipeBind1(15,13,t.difficultLevel))," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,1)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,2)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,3)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,4)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,5)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,6)),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",null==t?null:t.question,e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate2(" ",null==t?null:t.questionId," | ",e.\u0275\u0275pipeBind1(27,15,e.\u0275\u0275pipeBind1(28,17,t.questionType))," ")}}function Se(l,o){if(1&l&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,Ae,29,19,"div",230),e.\u0275\u0275elementEnd()),2&l){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.masterQuestions)}}function be(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"table",252)(1,"tr",241)(2,"td",253)(3,"div",155)(4,"div")(5,"p",254),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(7,"td",260),e.\u0275\u0275element(8,"div",166),e.\u0275\u0275elementStart(9,"div",153)(10,"div",275)(11,"div",255),e.\u0275\u0275element(12,"i",276),e.\u0275\u0275elementStart(13,"input",256),e.\u0275\u0275listener("ngModelChange",function(n){const a=e.\u0275\u0275restoreView(t).$implicit;
1return e.\u0275\u0275resetView(a.marks=n)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(14,"div",211),e.\u0275\u0275element(15,"i",277),e.\u0275\u0275elementStart(16,"input",258),e.\u0275\u0275listener("ngModelChange",function(n){const a=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275resetView(a.negativeMarks=n)}),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(17,"div",250),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(4),i=e.\u0275\u0275reference(5);return e.\u0275\u0275resetView(n.scroll(i))}),e.\u0275\u0275elementStart(18,"i",262),e.\u0275\u0275listener("click",function(){const i=e.\u0275\u0275restoreView(t).$implicit,a=e.\u0275\u0275nextContext().index,d=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(d.updateQuestion(a,i))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"i",278),e.\u0275\u0275listener("click",function(){const n=e.\u0275\u0275restoreView(t),i=n.index,a=n.$implicit,d=e.\u0275\u0275nextContext().index,m=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(m.deleteQuestion(d,i,a))}),e.\u0275\u0275elementEnd()()()()()()}if(2&l){const t=o.$implicit,s=o.index,n=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(5,U,t.question==n.selectedQuestion)),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1("",s+1,"."),e.\u0275\u0275advance(2),e.\u0275\u0275property("innerHTML",null==t?null:t.question,e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngModel",t.marks),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngModel",t.negativeMarks)}}function ye(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",244)(1,"div",245)(2,"div",246),e.\u0275\u0275element(3,"hr"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",247)(5,"small"),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div",248),e.\u0275\u0275element(8,"hr"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"div",249)(10,"a",250),e.\u0275\u0275listener("click",function(){const i=e.\u0275\u0275restoreView(t).index,a=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(a.removeSection(i))}),e.\u0275\u0275text(11,"x"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(12,"div",12)(13,"div"),e.\u0275\u0275template(14,be,20,7,"table",251),e.\u0275\u0275elementEnd()()()}if(2&l){const t=o.$implicit,s=o.index;e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate1("Section ",s+1,""),e.\u0275\u0275advance(8),e.\u0275\u0275property("ngForOf",t.questions)}}function Te(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"div",264)(2,"div",179)(3,"div",180),e.\u0275\u0275element(4,"i",181),e.\u0275\u0275elementStart(5,"input",182),e.\u0275\u0275listener("ngModelChange",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.getAssessmentDataRequest.searchKey=n)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",183)(7,"span",184),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(n.searchQuestions(n.getAssessmentDataRequest.searchKey))}),e.\u0275\u0275elementStart(8,"span",185),e.\u0275\u0275text(9," Go "),e.\u0275\u0275elementEnd()()()()()(),e.\u0275\u0275elementStart(10,"div",265)(11,"button",187),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(n.clickTogetFilterData("GRADE"))}),e.\u0275\u0275element(12,"i",188),e.\u0275\u0275text(13,"Filter "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(14,"div")(15,"div",266),e.\u0275\u0275listener("scrolled",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(n.onScroll())}),e.\u0275\u0275template(16,Ce,2,1,"div",267),e.\u0275\u0275elementStart(17,"div")(18,"div",12),e.\u0275\u0275template(19,we,1,0,"img",268),e.\u0275\u0275template(20,Se,2,1,"div",0),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(21,"div",269)(22,"p",125),e.\u0275\u0275text(23,"Selected Questions"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(24,"div")(25,"div",197)(26,"div",198)(27,"div",270)(28,"p",199),e.\u0275\u0275text(29,"Marks for all"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(30,"div",200)(31,"div",201)(32,"div")(33,"small",202),e.\u0275\u0275text(34,"Correct "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(35,"div"),e.\u0275\u0275element(36,"i",203),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(37,"div")(38,"input",204),e.\u0275\u0275listener("ngModelChange",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);
1return e.\u0275\u0275resetView(i.correctAnswerMarks=n)})("ngModelChange",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(n.correctAnswersMarksEntered())}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(39,"div",205)(40,"div",206)(41,"div")(42,"small",202),e.\u0275\u0275text(43,"Incorrect "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(44,"div"),e.\u0275\u0275element(45,"i",207),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(46,"div")(47,"input",208),e.\u0275\u0275listener("ngModelChange",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.wrongAnswerMarks=n)})("ngModelChange",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(n.wrongAnswersMarksEntered())}),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(48,"div",209)(49,"div",210)(50,"div",211)(51,"div")(52,"small",212),e.\u0275\u0275text(53,"Correct "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(54,"div"),e.\u0275\u0275element(55,"i",203),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(56,"div")(57,"input",204),e.\u0275\u0275listener("ngModelChange",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.correctAnswerMarks=n)})("ngModelChange",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(n.correctAnswersMarksEntered())}),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(58,"div",213)(59,"div",211)(60,"div")(61,"small",202),e.\u0275\u0275text(62,"Incorrect "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(63,"div"),e.\u0275\u0275element(64,"i",207),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(65,"div")(66,"input",214),e.\u0275\u0275listener("ngModelChange",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.wrongAnswerMarks=n)})("ngModelChange",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(n.wrongAnswersMarksEntered())}),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(67,"div",271),e.\u0275\u0275template(68,ye,15,2,"div",216),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(69,"div",217)(70,"div",218)(71,"div")(72,"button",219),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(n.addSection())}),e.\u0275\u0275element(73,"i",193),e.\u0275\u0275text(74," Add Section "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(75,"div")(76,"button",220),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(n.createAssessment())}),e.\u0275\u0275text(77," Save "),e.\u0275\u0275elementEnd()()()()()()}if(2&l){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(5),e.\u0275\u0275property("ngModel",t.getAssessmentDataRequest.searchKey),e.\u0275\u0275advance(10),e.\u0275\u0275property("infiniteScrollDistance",2)("infiniteScrollThrottle",50)("scrollWindow",!1),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0==t.masterQuestions.length&&0==t.isLoading),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",t.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.masterQuestions.length>0),e.\u0275\u0275advance(18),e.\u0275\u0275property("ngModel",t.correctAnswerMarks),e.\u0275\u0275advance(9),e.\u0275\u0275property("ngModel",t.wrongAnswerMarks),e.\u0275\u0275advance(10),e.\u0275\u0275property("ngModel",t.correctAnswerMarks),e.\u0275\u0275advance(9),e.\u0275\u0275property("ngModel",t.wrongAnswerMarks),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.assessmentDto.sections)}}function De(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"div",171)(2,"div",95),e.\u0275\u0275template(3,pe,13,0,"div",0),e.\u0275\u0275template(4,he,13,0,"div",0),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",172)(6,"div",173)(7,"div",17)(8,"div",174)(9,"div",175)(10,"div",176)(11,"div",177)(12,"div",17)(13,"div",178)(14,"div",179)(15,"div",180),e.\u0275\u0275element(16,"i",181),e.\u0275\u0275elementStart(17,"input",182),e.\u0275\u0275listener("ngModelChange",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();
1return e.\u0275\u0275resetView(i.getAssessmentDataRequest.searchKey=n)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(18,"div",183)(19,"span",184),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.searchQuestions(n.getAssessmentDataRequest.searchKey))}),e.\u0275\u0275elementStart(20,"span",185),e.\u0275\u0275text(21," Go "),e.\u0275\u0275elementEnd()()()()()(),e.\u0275\u0275element(22,"div"),e.\u0275\u0275elementStart(23,"div",186)(24,"button",187),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.clickTogetFilterData("GRADE"))}),e.\u0275\u0275element(25,"i",188),e.\u0275\u0275text(26,"Filter "),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(27,"div",189),e.\u0275\u0275listener("scrolled",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.onScroll())}),e.\u0275\u0275template(28,ge,2,1,"div",190),e.\u0275\u0275elementStart(29,"div")(30,"div",12),e.\u0275\u0275template(31,ue,1,0,"img",191),e.\u0275\u0275template(32,fe,2,1,"div",0),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(33,"div",94)(34,"div",153)(35,"button",192),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.createNewQuestion())})("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(),i=e.\u0275\u0275reference(5);return e.\u0275\u0275resetView(n.scroll(i))}),e.\u0275\u0275element(36,"i",193),e.\u0275\u0275text(37," Add New Question "),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(38,"div",194)(39,"div",195)(40,"div",196)(41,"div",16)(42,"div",197)(43,"div",198)(44,"div")(45,"p",199),e.\u0275\u0275text(46,"Marks for all"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(47,"div",200)(48,"div",201)(49,"div")(50,"small",202),e.\u0275\u0275text(51,"Correct "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(52,"div"),e.\u0275\u0275element(53,"i",203),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(54,"div")(55,"input",204),e.\u0275\u0275listener("ngModelChange",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.correctAnswerMarks=n)})("ngModelChange",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.correctAnswersMarksEntered())}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(56,"div",205)(57,"div",206)(58,"div")(59,"small",202),e.\u0275\u0275text(60,"Incorrect "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(61,"div"),e.\u0275\u0275element(62,"i",207),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(63,"div")(64,"input",208),e.\u0275\u0275listener("ngModelChange",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.wrongAnswerMarks=n)})("ngModelChange",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.wrongAnswersMarksEntered())}),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(65,"div",209)(66,"div",210)(67,"div",211)(68,"div")(69,"small",212),e.\u0275\u0275text(70,"Correct "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(71,"div"),e.\u0275\u0275element(72,"i",203),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(73,"div")(74,"input",204),e.\u0275\u0275listener("ngModelChange",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.correctAnswerMarks=n)})("ngModelChange",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.correctAnswersMarksEntered())}),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(75,"div",213)(76,"div",211)(77,"div")(78,"small",202),e.\u0275\u0275text(79,"Incorrect "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(80,"div"),e.\u0275\u0275element(81,"i",207),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(82,"div")(83,"input",214),e.\u0275\u0275listener("ngModelChange",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();
1return e.\u0275\u0275resetView(i.wrongAnswerMarks=n)})("ngModelChange",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.wrongAnswersMarksEntered())}),e.\u0275\u0275elementEnd()()()()()()(),e.\u0275\u0275elementStart(84,"div",215),e.\u0275\u0275template(85,ve,15,2,"div",216),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(86,"div",217)(87,"div",218)(88,"div")(89,"button",219),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.addSection())}),e.\u0275\u0275element(90,"i",193),e.\u0275\u0275text(91," Add Section "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(92,"div")(93,"button",220),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.createAssessment())}),e.\u0275\u0275text(94," Save "),e.\u0275\u0275elementEnd()()()()()()(),e.\u0275\u0275elementStart(95,"div",221)(96,"div")(97,"div",222)(98,"div")(99,"p",125),e.\u0275\u0275text(100," Question Bank "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(101,"div",223)(102,"label",224)(103,"input",225),e.\u0275\u0275listener("change",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.changed(n))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(104,"span",226),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(105,"div")(106,"p",125),e.\u0275\u0275text(107," Add Question "),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(108,Te,78,12,"div",0),e.\u0275\u0275elementEnd()()()()}if(2&l){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",0==t.EditTextDisplay),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1==t.EditTextDisplay),e.\u0275\u0275advance(13),e.\u0275\u0275property("ngModel",t.getAssessmentDataRequest.searchKey),e.\u0275\u0275advance(10),e.\u0275\u0275property("infiniteScrollDistance",2)("infiniteScrollThrottle",50)("scrollWindow",!1),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0==t.masterQuestions.length&&0==t.isLoading),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",t.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.masterQuestions.length>0),e.\u0275\u0275advance(3),e.\u0275\u0275property("disabled",t.disabledNewQuestions()),e.\u0275\u0275advance(20),e.\u0275\u0275property("ngModel",t.correctAnswerMarks),e.\u0275\u0275advance(9),e.\u0275\u0275property("ngModel",t.wrongAnswerMarks),e.\u0275\u0275advance(10),e.\u0275\u0275property("ngModel",t.correctAnswerMarks),e.\u0275\u0275advance(9),e.\u0275\u0275property("ngModel",t.wrongAnswerMarks),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.assessmentDto.sections),e.\u0275\u0275advance(18),e.\u0275\u0275property("checked",t.checkbox),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",!t.checkbox)}}function Fe(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",301)(1,"div",302)(2,"div",98)(3,"input",303),e.\u0275\u0275listener("ngModelChange",function(n){const a=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275resetView(a.answerKey=n)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(4,"div")(5,"label"),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(7,"input",304),e.\u0275\u0275listener("ngModelChange",function(n){const a=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275resetView(a.answer=n)}),e.\u0275\u0275elementEnd()()}if(2&l){const t=o.$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate1("name","option_checkbox",t.sequence,"")("id","option_checkbox",t.sequence,""),e.\u0275\u0275property("ngModel",t.answerKey),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1("Option ",t.sequence," "),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate1("name","option_answer",t.sequence,"")("id","option_answer",t.sequence,""),e.\u0275\u0275property("ngModel",t.answer)}}function Me(l,o){if(1&l&&e.\u0275\u0275element(0,"a",165),2&l){const t=o.$implicit;e.\u0275\u0275propertyInterpolate1("title"," ",null==t.tagHierarchy?"N/A":t.tagHierarchy,""),e.\u0275\u0275property("innerHTML",t.tagName,e.\u0275\u0275sanitizeHtml)}}function Ie(l,o){1&l&&e.\u0275\u0275element(0,"div",166),2&l&&e.\u0275\u0275property("innerHTML",o.$implicit,e.\u0275\u0275sanitizeHtml)}function Ee(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",167)(1,"div",168)(2,"i",305),e.\u0275\u0275listener("click",function(){const i=e.\u0275\u0275restoreView(t).$implicit,a=e.\u0275\u0275nextContext(3);
1return e.\u0275\u0275resetView(a.deleteNewQuestionTag(i))}),e.\u0275\u0275elementStart(3,"span",306),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()()()}if(2&l){const t=o.$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate1("title"," ",null==t.tagHierarchy?"N/A":t.tagHierarchy,""),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(null==t?null:t.tagName)}}function Pe(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",282)(1,"div",17)(2,"div",283)(3,"h2"),e.\u0275\u0275text(4,"Add New Question"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",284)(6,"div",17)(7,"div",285)(8,"label",286),e.\u0275\u0275text(9,"Type Question Statement"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(10,"div",287)(11,"label",99),e.\u0275\u0275text(12),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(13,"div"),e.\u0275\u0275element(14,"div",100)(15,"div",102),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(16,"p",288),e.\u0275\u0275text(17," Type your Answers AND "),e.\u0275\u0275elementStart(18,"span",289),e.\u0275\u0275text(19,"Select the checkbox for correct option"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(20,"div",290),e.\u0275\u0275template(21,Fe,8,7,"div",291),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(22,"div",292)(23,"div",17)(24,"div",285)(25,"label",286),e.\u0275\u0275text(26,"Select Tags"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(27,"div",293)(28,"div")(29,"div")(30,"ng-autocomplete",294,295),e.\u0275\u0275listener("selected",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.onNewQuestionTagChange(n))})("inputChanged",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.onSearchShowTagData(n))})("inputCleared",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.onSearchShowTagData(n))})("inputFocused",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.onNewQuestionTagChange(n))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(32,Me,1,2,"ng-template",null,296,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(34,Ie,1,1,"ng-template",null,297,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(36,"div",147)(37,"div",37),e.\u0275\u0275template(38,Ee,5,2,"div",68),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275element(39,"div",102),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(40,"div",298)(41,"div",299)(42,"button",219),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(2),i=e.\u0275\u0275reference(2);return e.\u0275\u0275resetView([n.clearNewQuestion(),n.scroll(i)])}),e.\u0275\u0275text(43," Close "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(44,"div")(45,"button",300),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(n.submitNewQuestion())}),e.\u0275\u0275text(46," Save changes "),e.\u0275\u0275elementEnd()()()()}if(2&l){const t=e.\u0275\u0275reference(33),s=e.\u0275\u0275reference(35),n=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(12),e.\u0275\u0275textInterpolate1("",n.remainingNewQuestionText," words left"),e.\u0275\u0275advance(9),e.\u0275\u0275property("ngForOf",n.newQuestion.options),e.\u0275\u0275advance(9),e.\u0275\u0275property("data",n.tagsMasterData)("searchKeyword",n.keywordTag)("itemTemplate",t)("notFoundTemplate",s),e.\u0275\u0275advance(8),e.\u0275\u0275property("ngForOf",n.newQuestion.tags)}}function Oe(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",301)(1,"div",302)(2,"div",98)(3,"input",303),e.\u0275\u0275listener("ngModelChange",function(n){const a=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275resetView(a.answerKey=n)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(4,"div")(5,"label"),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(7,"input",304),e.\u0275\u0275listener("ngModelChange",function(n){const a=e.\u0275\u0275restoreView(t).$implicit;
1return e.\u0275\u0275resetView(a.answer=n)}),e.\u0275\u0275elementEnd()()}if(2&l){const t=o.$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate1("name","option_checkbox",t.sequence,"")("id","option_checkbox",t.sequence,""),e.\u0275\u0275property("ngModel",t.answerKey),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1("Option ",t.sequence," "),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate1("name","option_answer",t.sequence,"")("id","option_answer",t.sequence,""),e.\u0275\u0275property("ngModel",t.answer)}}function ke(l,o){if(1&l&&e.\u0275\u0275element(0,"a",165),2&l){const t=o.$implicit;e.\u0275\u0275propertyInterpolate1("title"," ",null==t.tagHierarchy?"N/A":t.tagHierarchy,""),e.\u0275\u0275property("innerHTML",t.tagName,e.\u0275\u0275sanitizeHtml)}}function Re(l,o){1&l&&e.\u0275\u0275element(0,"div",166),2&l&&e.\u0275\u0275property("innerHTML",o.$implicit,e.\u0275\u0275sanitizeHtml)}function Le(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",167)(1,"div",168)(2,"i",305),e.\u0275\u0275listener("click",function(){const i=e.\u0275\u0275restoreView(t).$implicit,a=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(a.deleteNewQuestionTag(i))}),e.\u0275\u0275elementStart(3,"span",306),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()()()}if(2&l){const t=o.$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate1("title"," ",null==t.tagHierarchy?"N/A":t.tagHierarchy,""),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(null==t?null:t.tagName)}}const B=function(){return["heading","MathType","ChemType","|","bold","italic","link","bulletedList","numberedList","imageUpload","mediaEmbed","insertTable","blockQuote","undo","redo"]},W=function(l){return{items:l}},z=function(l){return{toolbar:l}};function qe(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",308)(1,"div",17)(2,"div",283)(3,"h2"),e.\u0275\u0275text(4,"Add New Question"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",284)(6,"div",17)(7,"div",285)(8,"label",286),e.\u0275\u0275text(9,"Type Question Statement"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(10,"div",287)(11,"label",99),e.\u0275\u0275text(12),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(13,"div")(14,"div",100)(15,"ckeditor",309),e.\u0275\u0275listener("ngModelChange",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(i.newQuestion.question=n)})("ngModelChange",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(n.newQuestionTextChange(n.newQuestion.question))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(16,"div",102),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(17,"p",288),e.\u0275\u0275text(18," Type your Answers AND "),e.\u0275\u0275elementStart(19,"span",289),e.\u0275\u0275text(20,"Select the checkbox for correct option"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(21,"div",290),e.\u0275\u0275template(22,Oe,8,7,"div",291),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(23,"div",292)(24,"div",17)(25,"div",285)(26,"label",286),e.\u0275\u0275text(27,"Select Tags"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(28,"div",293)(29,"div")(30,"div")(31,"ng-autocomplete",294,295),e.\u0275\u0275listener("selected",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(i.onNewQuestionTagChange(n))})("inputChanged",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(i.onSearchShowTagData(n))})("inputCleared",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(i.onSearchShowTagData(n))})("inputFocused",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(i.onNewQuestionTagChange(n))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(33,ke,1,2,"ng-template",null,296,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(35,Re,1,1,"ng-template",null,297,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(37,"div",147)(38,"div",37),e.\u0275\u0275template(39,Le,5,2,"div",68),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275element(40,"div",102),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(41,"div",298)(42,"div",299)(43,"button",219),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(3),i=e.\u0275\u0275reference(2);
1return e.\u0275\u0275resetView([n.clearNewQuestion(),n.scroll(i)])}),e.\u0275\u0275text(44," Close "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(45,"div")(46,"button",300),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(n.submitNewQuestion())}),e.\u0275\u0275text(47," Save changes "),e.\u0275\u0275elementEnd()()()()}if(2&l){const t=e.\u0275\u0275reference(34),s=e.\u0275\u0275reference(36),n=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(12),e.\u0275\u0275textInterpolate1("",n.remainingNewQuestionText," words left"),e.\u0275\u0275advance(3),e.\u0275\u0275property("config",e.\u0275\u0275pureFunction1(13,z,e.\u0275\u0275pureFunction1(11,W,e.\u0275\u0275pureFunction0(10,B))))("editor",n.Editor)("ngModel",n.newQuestion.question),e.\u0275\u0275advance(7),e.\u0275\u0275property("ngForOf",n.newQuestion.options),e.\u0275\u0275advance(9),e.\u0275\u0275property("data",n.tagsMasterData)("searchKeyword",n.keywordTag)("itemTemplate",t)("notFoundTemplate",s),e.\u0275\u0275advance(8),e.\u0275\u0275property("ngForOf",n.newQuestion.tags)}}function Ne(l,o){if(1&l&&(e.\u0275\u0275elementStart(0,"div",221),e.\u0275\u0275template(1,qe,48,15,"div",307),e.\u0275\u0275elementEnd()),2&l){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.newQuestion&&t.enableEditor)}}function Ve(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",301)(1,"div",302)(2,"div",98)(3,"input",303),e.\u0275\u0275listener("ngModelChange",function(n){const a=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275resetView(a.answerKey=n)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(4,"div")(5,"label"),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(7,"input",304),e.\u0275\u0275listener("ngModelChange",function(n){const a=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275resetView(a.answer=n)}),e.\u0275\u0275elementEnd()()}if(2&l){const t=o.$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate1("name","option_checkbox",t.sequence,"")("id","option_checkbox",t.sequence,""),e.\u0275\u0275property("ngModel",t.answerKey),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1("Option ",t.sequence," "),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate1("name","option_answer",t.sequence,"")("id","option_answer",t.sequence,""),e.\u0275\u0275property("ngModel",t.answer)}}function Qe(l,o){if(1&l&&e.\u0275\u0275element(0,"a",165),2&l){const t=o.$implicit;e.\u0275\u0275propertyInterpolate1("title"," ",null==t.tagHierarchy?"N/A":t.tagHierarchy,""),e.\u0275\u0275property("innerHTML",t.tagName,e.\u0275\u0275sanitizeHtml)}}function Ue(l,o){1&l&&e.\u0275\u0275element(0,"div",166),2&l&&e.\u0275\u0275property("innerHTML",o.$implicit,e.\u0275\u0275sanitizeHtml)}function Be(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",167)(1,"div",168)(2,"i",305),e.\u0275\u0275listener("click",function(){const i=e.\u0275\u0275restoreView(t).$implicit,a=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(a.deleteEditQuestionTag(i))}),e.\u0275\u0275elementStart(3,"span",306),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()()()}if(2&l){const t=o.$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate1("title"," ",null==t.tagHierarchy?"N/A":t.tagHierarchy,""),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(null==t?null:t.tagName)}}function We(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",310)(1,"div",17)(2,"div",283)(3,"h2"),e.\u0275\u0275text(4,"Edit Question"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",284)(6,"div",17)(7,"div",285)(8,"label",286),e.\u0275\u0275text(9,"Type Question Statement"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(10,"div")(11,"div",100)(12,"ckeditor",311),e.\u0275\u0275listener("ngModelChange",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);
1return e.\u0275\u0275resetView(i.editQuestion.question=n)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(13,"div",102),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(14,"div"),e.\u0275\u0275elementStart(15,"p",288),e.\u0275\u0275text(16," Type your Answers AND "),e.\u0275\u0275elementStart(17,"span",289),e.\u0275\u0275text(18,"Select the checkbox for correct option"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(19,"div",290),e.\u0275\u0275template(20,Ve,8,7,"div",291),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(21,"div",292)(22,"div",17)(23,"div",285)(24,"label",286),e.\u0275\u0275text(25,"Select Tags"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(26,"div",293)(27,"div")(28,"div")(29,"ng-autocomplete",294,312),e.\u0275\u0275listener("selected",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.onEditQuestionTagChange(n))})("inputChanged",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.onSearchShowTagData(n))})("inputCleared",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.onSearchShowTagData(n))})("inputFocused",function(n){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.onEditQuestionTagChange(n))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(31,Qe,1,2,"ng-template",null,313,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(33,Ue,1,1,"ng-template",null,314,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(35,"div",147)(36,"div",37),e.\u0275\u0275template(37,Be,5,2,"div",68),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275element(38,"div",102),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(39,"div",298)(40,"div",299)(41,"button",315),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(2),i=e.\u0275\u0275reference(2);return e.\u0275\u0275resetView([n.clearEditQuestion(),n.scroll(i)])}),e.\u0275\u0275text(42," Close "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(43,"div")(44,"button",316),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(n.updateEditQuestion())}),e.\u0275\u0275text(45," Update changes "),e.\u0275\u0275elementEnd()()()()}if(2&l){const t=e.\u0275\u0275reference(32),s=e.\u0275\u0275reference(34),n=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(12),e.\u0275\u0275property("config",e.\u0275\u0275pureFunction1(12,z,e.\u0275\u0275pureFunction1(10,W,e.\u0275\u0275pureFunction0(9,B))))("editor",n.Editor)("ngModel",n.editQuestion.question),e.\u0275\u0275advance(8),e.\u0275\u0275property("ngForOf",n.editQuestion.options),e.\u0275\u0275advance(9),e.\u0275\u0275property("data",n.tagsMasterData)("searchKeyword",n.keywordTag)("itemTemplate",t)("notFoundTemplate",s),e.\u0275\u0275advance(8),e.\u0275\u0275property("ngForOf",n.editQuestion.tags)}}function ze(l,o){if(1&l&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,Pe,47,7,"div",279),e.\u0275\u0275template(2,Ne,2,1,"div",280),e.\u0275\u0275template(3,We,46,14,"div",281),e.\u0275\u0275elementEnd()),2&l){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.newQuestion&&t.enableEditor),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.checkbox),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.editQuestion&&t.enableEditEditor)}}function He(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",21)(1,"div",22)(2,"input",317),e.\u0275\u0275listener("change",function(n){const a=e.\u0275\u0275restoreView(t).$implicit,d=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(d.onInterestAreaSelectForFilter(a,n.target.checked))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"label",318),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()()}if(2&l){const t=o.$implicit,s=o.index;e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate1("id","grade_",s,"")("name","grade_",s,""),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate1("for","grade_",s,""),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null==t?null:t.tagName,"")}}function $e(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",167)(1,"div",319)(2,"i",305),e.\u0275\u0275listener("click",function(){const i=e.\u0275\u0275restoreView(t).$implicit,a=e.\u0275\u0275nextContext();
1return e.\u0275\u0275resetView(a.deleteTagFromSelectedFilter(i))}),e.\u0275\u0275elementStart(3,"span",320),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()()()}if(2&l){const t=o.$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate("title",t.tagHierarchy),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(null==t?null:t.tagName)}}function Ge(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",21)(1,"div",22)(2,"input",321),e.\u0275\u0275listener("click",function(){const i=e.\u0275\u0275restoreView(t).$implicit,a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.selectedOrUnSelectedtag(i,"GRADE"))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"label",322),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()()}if(2&l){const t=o.$implicit,s=o.index;e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate1("id","grades_",s,"")("name","grades_",s,""),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate1("for","grades_",s,""),e.\u0275\u0275propertyInterpolate("title",null==(null==t?null:t.tagHierarchy)?"N/A":null==t?null:t.tagHierarchy),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null==t?null:t.tagName,"")}}let Ye=(()=>{class l{constructor(t,s,n,i,a,d,m,p,R){this.apiService=t,this.router=s,this.toaster=n,this.activatedroute=i,this.location=a,this.titleService=d,this.platformId=m,this.loggedInUserService=p,this._assessmentService=R,this.assessmentDto=new A.$,this.getDataRequest=new v.l,this.getAssessmentDataRequest=new u.iE,this.gradeList=[],this.gradeListForFilter=[],this.subjectListForFilter=[],this.chapterListForFilter=[],this.articleListForFilter=[],this.topicListForFilter=[],this.masterQuestions=[],this.enableStep1Tab=!1,this.enableStep2Tab=!1,this.showDuration=!0,this.remainingDescriptionText=250,this.remainingNewQuestionText=250,this.remainingInstructionsText=250,this.tagsMasterData=[],this.gradeIds=[],this.currentSection=0,this.selectedTagIds=[],this.selectedTagDto=[],this.isLoading=!1,this.selectedAllTagsForFilter=[],this.totalPages=1,this.allGrades=[],this.allSubjects=[],this.allSubjectsTagHierarchy=[],this.allChapters=[],this.allTopics=[],this.message="",this.filterdTagIdsList=[],this.settingsForSubjectsFilter={singleSelection:!1,idField:"id",textField:"tagName",enableCheckAll:!1,selectAllText:"Select all",unSelectAllText:"UnSelect all",allowSearchFilter:!0,limitSelection:-1,clearSearchFilter:!0,maxHeight:197,itemsShowLimit:6,searchPlaceholderText:"Search Subject",noDataAvailablePlaceholderText:"No Subjects Available",closeDropDownOnSelection:!1,showSelectedItemsAtTop:!1,defaultOpen:!1},this.settingsForTopicsFilter={singleSelection:!1,idField:"id",textField:"tagName",enableCheckAll:!1,selectAllText:"Select all",unSelectAllText:"UnSelect all",allowSearchFilter:!0,limitSelection:-1,clearSearchFilter:!0,maxHeight:197,itemsShowLimit:6,searchPlaceholderText:"Search Topic",noDataAvailablePlaceholderText:"No Topics Available",closeDropDownOnSelection:!1,showSelectedItemsAtTop:!1,defaultOpen:!1},this.settingsForChapersFilter={singleSelection:!1,idField:"id",textField:"tagName",enableCheckAll:!1,selectAllText:"Select all",unSelectAllText:"UnSelect all",allowSearchFilter:!0,limitSelection:-1,clearSearchFilter:!0,maxHeight:197,itemsShowLimit:6,searchPlaceholderText:"Search Chapters",noDataAvailablePlaceholderText:"No Chapters Available",closeDropDownOnSelection:!1,showSelectedItemsAtTop:!1,defaultOpen:!1},this.files=[],this.EditTextDisplay=!1,this.selectedSubjectsForFilter=[],this.selectedTopicsForFilter=[],this.selectedChaptersForFilter=[],this.existed=!1,this.keywordTag="tagName",this.enableEditor=!1,this.enableEditEditor=!1,this.filterGradeIds=[],this.filterSubjectIds=[],this.filterChapterIds=[],this.filterArticleIds=[],this.filterTopicIds=[],this.filterDifficlultLevels=[],this.isReset=!1,this.titleService.setTitle("Dynamind Mentor Add Assessment")}changed(t){this.isChecked=t.target.checked,this.checkbox=this.isChecked,1==this.isChecked&&this.createNewQuestion()}onFilterChange(t){}onDropDownClose(t){}onItemSelect(t){}onDeSelect(t){}onSelectAll(t){}onDeSelectAll(t){}onPopState(t){let s=this.activatedroute.snapshot.queryParams.name,n=t;n&&"publish"==s?this.router.navigate(["/navigation-bar/mentor/assessment/manage-assessment"],{queryParams:{selectedTab:"publish",enableLink:"publish"}}):n&&"purchese"==s&&this.router.navigate(["/navigation-bar/mentor/assessment/manage-assessment"],{queryParams:{selectedTab:"purchese",enableLink:"purchese"}})}filesDropped(t){this.files=t}showSlider(){this.showDuration=!0,this.assessmentDto.durationInMinutes=1}showSlider1(){this.showDuration=!1,this.assessmentDto.durationInMinutes=0}checkedColor(t){this.masterQuestions.filter(s=>{s.id===t.id&&(this.color1=!1,setTimeout(()=>{this.color1=!0},500))})}highlightRow(t){this.selectedQuestion=t.question}Numberofquestionmethod(t){this.numberOfQuestions=t}selectedQuestionNumber(t,s){s+1>this.numberOfQuestions&&this.toaster.show("Exceeded")}ngOnInit(){this.hideRecaptcha(),this.getAllTags(this.getDataRequest.filterType="GRADE"),this.getAllTags(this.getDataRequest.filterType="SUBJECT"),this.getAllTags(this.getDataRequest.filterType="TOPIC"),this.getAllTags(this.getDataRequest.filterType="CHAPTER"),(0,r.NF)(this.platformId)&&window.scrollTo(0,0);let t=(0,r.NF)(this.platformId)?JSON.parse(this.loggedInUserService.getLoggedInUser()):"";if(t&&(this.loggedInUser=t),this.enableStep1Tab=!0,this.defaultGetDataRequest(),this.getAllGradesData(),this.getAllTagsData(null),this.assessmentId=this.activatedroute.snapshot.queryParams.assessmentId,this.assessmentId)this.assessmentIdData=this.assessmentDto,this.EditTextDisplay=!0,this.getAssessmentById(this.assessmentId);else{let s=new F.M;s.questions=[],this.assessmentDto.sections.push(s),this.assessmentDto.price=0,this.assessmentDto.durationInMinutes=1}}hideRecaptcha(){if((0,r.NF)(this.platformId)){const t=$(".grecaptcha-badge");if(t.length)return t.css({display:"none"});requestAnimationFrame(()=>this.hideRecaptcha())}}scroll(t){t.scrollIntoView({behavior:"smooth"})}getAssessmentById(t){this.apiService.getService(this.apiService.apiUrls.getAssessmentById+t).subscribe(s=>{if(s&&200==s.statusCode){if(this.editAssessmentData=JSON.parse(JSON.stringify(s.data)),this.numberOfQuestions=s.data.totalNumberOfQuestions,this.assessmentDto=s.data,0==this.assessmentDto.durationInMinutes&&(this.showDuration=!1),this.currentSection=s.data.sections.length-1,!this.assessmentDto.sections||0==this.assessmentDto.sections.length){let n=new F.M;n.questions=[],this.assessmentDto.sections.push(n)}}else this.toaster.show(s?.message,"Info")},s=>{401==s.status?(this.isLoading=!1,this.toaster.show(s.message?s.message:"Something Went Wrong","Warning"),
1(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(s?.error?.message,"Info"))})}onDragOver(t){t.preventDefault(),t.stopPropagation()}onDragLeave(t){t.preventDefault(),t.stopPropagation()}onDrop(t){t.preventDefault(),t.stopPropagation();let s=t.dataTransfer.files;s.length>0&&this.onDroppedFile(s)}onDroppedFile(t){t[0].size>10485760?this.toaster.show("Maximum file size to upload is 10MB","Warning"):(this.fileToUpload=t.item(0),this.uploadFile(this.fileToUpload))}onSelectedFile(t){t.target.files.length>0&&this.onDroppedFile(t.target.files)}defaultGetDataRequest(){this.getDataRequest.pageNumber=0,this.getDataRequest.pageSize=5}getAllOwnAssessmentsData(){this.apiService.postService(this.apiService.apiUrls.getAllOwnAssessments,this.getAssessmentDataRequest).subscribe(t=>{t&&200==t.statusCode||this.toaster.show(t?.message,"Info")},t=>{401==t.status?(this.isLoading=!1,this.toaster.show(t.message?t.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(t?.error?.message,"Info"))})}clickTogetFilterData(t){(0,r.NF)(this.platformId)&&(this.getDataRequest.filterType=t,this.getDataRequest.tags=[],this.getDataRequest.allTagsDto=this.selectedAllTagsForFilter,this.getAllGradesData(),this.getDataRequest.searchKey="",$("#modelId").modal({backdrop:"static",keyboard:!1}))}exampleMethod(){}getAllGradesData(){this.getDataRequest.pageSize=25,this.getDataRequest.filterTagIds=[],this.getDataRequest.allTagsDto&&this.getDataRequest.allTagsDto.length>0&&("SUBJECT"===this.getDataRequest.filterType?this.getDataRequest.filterTagIds=this.getDataRequest.allTagsDto.filter(t=>"GRADE"===t.tagType).map(t=>t.id):"TOPIC"===this.getDataRequest.filterType?this.getDataRequest.filterTagIds=this.getDataRequest.allTagsDto.filter(t=>"GRADE"===t.tagType||"SUBJECT"===t.tagType).map(t=>t.id):"CHAPTER"===this.getDataRequest.filterType?this.getDataRequest.filterTagIds=this.getDataRequest.allTagsDto.filter(t=>"GRADE"===t.tagType||"SUBJECT"===t.tagType||"TOPIC"===t.tagType).map(t=>t.id):"ARTICLE"===this.getDataRequest.filterType&&(this.getDataRequest.filterTagIds=this.getDataRequest.allTagsDto.filter(t=>"GRADE"===t.tagType||"SUBJECT"===t.tagType||"TOPIC"===t.tagType||"CHAPTER"===t.tagType).map(t=>t.id))),this.apiService.postService(this.apiService.apiUrls.getAllTags,this.getDataRequest).subscribe(t=>{t&&200==t.statusCode?t.data&&t.data.content&&(this.getDataRequest.filterType&&("GRADE"===this.getDataRequest.filterType&&(this.gradeListForFilter=t.data.content),"CHAPTER"===this.getDataRequest.filterType&&(this.chapterListForFilter=t.data.content),"SUBJECT"===this.getDataRequest.filterType&&(this.subjectListForFilter=t.data.content),"ARTICLE"===this.getDataRequest.filterType&&(this.articleListForFilter=t.data.content),"TOPIC"===this.getDataRequest.filterType&&(this.topicListForFilter=t.data.content)),this.gradeList=t.data.content):this.toaster.show(t?.message,"Info")},t=>{401==t.status?(this.isLoading=!1,this.toaster.show(t.message?t.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(t?.error?.message,"Info"))})}getAllMasterQuestionBank(){if(this.isLoading=!0,this.getAssessmentDataRequest.allTagsDto=this.selectedTagDto&&0==this.selectedTagDto.length?this.assessmentDto.tags:this.selectedTagDto,this.getAssessmentDataRequest.allTagsDto&&this.getAssessmentDataRequest.allTagsDto.length>0){this.filterdTagIdsList=[];for(let t of this.getAssessmentDataRequest.allTagsDto)if(-1==this.filterdTagIdsList.findIndex(n=>n==t.id)){let n=this.filterdTagIdsList.filter(i=>i==t.parentId);if(n&&n.length>0)for(let i of n){let a=this.filterdTagIdsList.findIndex(d=>d===i);-1!=a&&this.filterdTagIdsList.splice(a,1)}this.filterdTagIdsList.push(t.id)}}this.apiService.postService(this.apiService.apiUrls.getAllMasterQuestions,this.getAssessmentDataRequest).subscribe(t=>{if(t&&200==t.statusCode){if(this.isLoading=!1,t.data&&t.data.content){this.totalPages=t.data.totalPages,t.data.content.forEach(s=>{this.masterQuestions.push(s)}),0==this.masterQuestions.length&&(this.message="No Questions Found"),this.assessmentDto.sections[this.currentSection].questions.length>0&&t.data.content.forEach(s=>{s.isQuestionChecked=!1,this.assessmentDto.sections.forEach(n=>
1{n.questions.forEach(i=>{i.id===s.id&&(s.isQuestionChecked=!0)})})});for(let s of this.masterQuestions)s.question=this._assessmentService.assessmentQuestionImageChanges(s.question,this.apiService),s.parentQuestion=this._assessmentService.assessmentQuestionImageChanges(s.parentQuestion,this.apiService)}else this.message="No Questions Found",this.toaster.show(t?.message,"Info");this.isLoading=!1}},t=>{401==t.status?(this.isLoading=!1,this.toaster.show(t.message?t.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(t?.error?.message,"Info"))}),this.filterdTagIdsList=[]}onFilterSelection(t,s){let n=this.selectedAllTagsForFilter.findIndex(i=>i.id===t.id);s&&-1==n?this.selectedAllTagsForFilter.push(t):!s&&n>=0&&this.selectedAllTagsForFilter.splice(n,1)}deleteTagFromSelectedFilter(t){if(t&&t.tagName){let s=this.selectedTagDto.findIndex(n=>n.id===t.id);s>=0?this.selectedTagDto.splice(s,1):this.toaster.show("Record Not Existed","Warning")}this.applyFilterAndChildTagSelection(null)}resetFilterForQuestions(){(0,r.NF)(this.platformId)&&(this.isLoading=!0,this.masterQuestions=[],this.getDataRequest=new v.l,console.log(this.masterQuestions.length),this.getAssessmentDataRequest=new u.iE,this.filterGradeIds=[],this.filterSubjectIds=[],this.filterChapterIds=[],this.filterDifficlultLevels=[],this.gradeListForFilter=[],this.subjectListForFilter=[],this.chapterListForFilter=[],this.selectedAllTagsForFilter=[],this.getAssessmentDataRequest.filterTagIds=[],this.allChapters=[],this.selectedTagDto=[],this.selectedTagIds=[],this.getAllMasterQuestionBank(),$("input[type=checkbox]").prop("checked",!1),this.resetFilterMultiDropDownSelections())}resetFilterMultiDropDownSelections(){this.selectedTopicsForFilter=[],this.selectedSubjectsForFilter=[],this.selectedChaptersForFilter=[]}resetMultiSelectForTopicsFilter(){this.multiSelectForTopicsFilter.toggleUnSelectAll()}resetMultiSelectForChaptersFilter(){this.multiSelectForChaptersFilter.toggleUnSelectAll()}onScroll(){this.getAssessmentDataRequest.pageNumber++,this.totalPages>1&&this.getAssessmentDataRequest.pageNumber<this.totalPages&&this.getAllMasterQuestionBank()}trimFieldInCreateAssessment(){this.assessmentDto?.title.trim(),this.assessmentDto?.description&&this.assessmentDto?.description.trim(),this.assessmentDto?.instructions&&this.assessmentDto?.instructions.trim()}createAssessment(){let n,i,t=!0,s=!1;if(this.assessmentId){delete this.editAssessmentData.isEdited;let a=JSON.stringify(this.editAssessmentData),d=JSON.parse(JSON.stringify(this.assessmentDto));delete d.isEdited,d=JSON.stringify(d),s=a!==d,this.assessmentDto.isEdited=s,this.assessmentDto.assessmentStatus=1==s||this.editAssessmentData&&"SAVED"==this.editAssessmentData.assessmentStatus?"SAVED":"PUBLISHED"}if(!(this.assessmentDto&&this.assessmentDto.sections&&this.assessmentDto.sections.length>0))return t=!1,void this.toaster.show("Please add atleast one section","Warning");{let a=[];this.assessmentDto.sections.forEach((d,m)=>{if(d&&!_.iG.isValid(d.questions))return t=!1,void a.push(m+1)}),a.length>0&&this.toaster.show("Section "+a+" has no question. Please add questions to all these sections, else delete these sections.","Warning")}for(let a of this.assessmentDto.sections)for(let d of a.questions)if(d.negativeMarks>d.marks)return n=this.assessmentDto.sections.indexOf(a)+1,i=a.questions.indexOf(d)+1,this.toaster.show("Negative Marks Should be less than or equal to Positive Marks for Section "+n+" Question "+i,"Info"),void(t=!1);this.trimFieldInCreateAssessment(),t&&this.apiService.postService(this.apiService.apiUrls.createAssessment,this.assessmentDto).subscribe(a=>{a&&200==a.statusCode?(this.previewAssessmentPage(a.data.id),this.toaster.show(a?.message,"Success")):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,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(a?.error?.message,"Info"))})}homePage(){this.router.navigate(["/navigation-bar/mentor/home"])}previewAssessmentPage(t){this.router.navigate(["/navigation-bar/mentor/examination"],{queryParams:{assessmentId:t}})}saveAndContinue(t){if(this.enableStep1Tab=!1,this.enableStep2Tab=!1,"1"===t)this.enableStep1Tab=!0;else if("2"===t){if(!_.iG.isValid(this.assessmentDto.title))return this.toaster.show("Please enter Title of the assessment.","Warning"),void(this.enableStep1Tab=!0);if(null==this.assessmentDto.totalNumberOfQuestions||this.assessmentDto.totalNumberOfQuestions<=0)return this.toaster.show("Please enter number of questions","Warning"),void(this.enableStep1Tab=!0);if(null==this.assessmentDto.durationInMinutes)return this.toaster.show("Please Select Duration more than 0 minutes","Warning"),void(this.enableStep1Tab=!0);if(!_.iG.isValid(this.assessmentDto.tags))return this.toaster.show("Please enter discovery tags. This helps students and other teachers to discover your assessment.","Warning"),void(this.enableStep1Tab=!0);if(this.fileToUpload&&(0,r.NF)(this.platformId)&&!1===/\.(jpe?g|png|gif)$/i.test(this.fileToUpload.name))return this.toaster.show("This URL is not a valid image type. Please use a url with the known image types gif, jpg, jpeg or png","Info"),void(this.enableStep1Tab=!0);if(this.remainingDescriptionText<0)return this.toaster.show("You can add only 250 words of description","Info"),void(this.enableStep1Tab=!0);this.getAllMasterQuestionBank(),this.enableStep2Tab=!0}}descriptionChange(t){let s=t?t.split(/\s+/):[];this.remainingDescriptionText=250-s.length}newQuestionTextChange(t){let s=t?t.split(/\s+/):[];this.remainingNewQuestionText=250-s.length}convertMathmlToLatex(t){if(t.includes("<math")&&t.includes("</math>")){let s=t,n=t.match(/<math.*?<\/math>/g);for(let i of n);return s}return t}
1instructionsTextChange(t){this.remainingInstructionsText=250-t.length}handleFileInput(t){t[0].size>10485760?this.toaster.show("Maximum file size to upload is 10MB","Warning"):(this.fileToUpload=t.item(0),this.uploadFile(this.fileToUpload))}uploadFile(t){if((0,r.NF)(this.platformId)){if(!1===/\.(jpe?g|png|gif)$/i.test(t.name))return void this.toaster.show("This URL is not a valid image type. Please use a url with the known image types gif, jpg, jpeg or png","Info");const s=new FormData;s.append("file",t),this.apiService.fileUploadService(this.apiService.apiUrls.saveFile,s).subscribe(i=>{i&&i.data&&(this.assessmentDto.photo=i.data)},i=>{this.toaster.show(i?.error?.message,"Info")})}}onQuestionSelect(t,s){if(this.currentSection<0)return void this.toaster.show("Please create atleast 1 section before adding question","Warning");let n=this.assessmentDto.sections[this.currentSection].questions.findIndex(i=>i.question===t.question);if(!s&&n>=0)this.assessmentDto.sections[this.currentSection].questions.splice(n,1);else{let i;for(let a of this.assessmentDto.sections)for(let d of a.questions)t.id==d.id&&(this.existed=!0,i=this.assessmentDto.sections.indexOf(a));if(this.existed&&s)return this.toaster.show("Question already exists","Warning"),void(this.existed=!1);if(this.existed&&!s)return i+=1,this.toaster.show("Unable to delete the question from existed section "+i,"Warning"),void(this.existed=!1);{let a=t;a.referenceQuestionId=t.id,a.marks=t.marks,a.negativeMarks=t.negativeMarks;let d=0;for(let m of this.assessmentDto.sections)d+=m.questions.length;if(d==this.numberOfQuestions)return void this.toaster.show("You can only add "+this.assessmentDto.totalNumberOfQuestions+" set of questions If you wish to add more questions, please go Back <- and increase the number of questions you wish to add.","Warning");if(d>this.numberOfQuestions)this.toaster.show("You can only add "+this.assessmentDto.totalNumberOfQuestions+" set of questions If you wish to add more questions, please go Back <- and increase the number of questions you wish to add.","Warning");else if(this.numberOfQuestions<d)return void this.toaster.show("Added more number of questions","Warning");this.assessmentDto.sections[this.currentSection].questions.push(a)}}}deleteQuestion(t,s,n){this.assessmentDto.sections[t].questions.splice(s,1),this.toaster.show("Delete Successful","Success"),this.masterQuestions.forEach(i=>{i.id==n.id&&(i.isQuestionChecked=!1)}),this.enableEditor=!1,this.enableEditEditor=!1}onInterestAreaSelectForFilter(t,s){let n=this.gradeIds.findIndex(i=>i===t.id);s&&-1==n?this.gradeIds.push(t.id):!s&&n>=0&&this.gradeIds.splice(n,1)}onSubjectSelectForFilter(t,s){let n=this.gradeIds.findIndex(i=>i===t.id);s&&-1==n?this.gradeIds.push(t.id):!s&&n>=0&&this.gradeIds.splice(n,1)}onChapterSelectForFilter(t,s){let n=this.gradeIds.findIndex(i=>i===t.id);s&&-1==n?this.gradeIds.push(t.id):!s&&n>=0&&this.gradeIds.splice(n,1)}onDifficultLevelSelectForFilter(t,s){let n=this.getAssessmentDataRequest.difficultLevels.findIndex(i=>i===t);s&&-1==n?this.getAssessmentDataRequest.difficultLevels.push(t):!s&&n>=0&&this.getAssessmentDataRequest.difficultLevels.splice(n,1)}applyFilterForQuestions(){(0,r.NF)(this.platformId)&&(this.getAllMasterQuestionBank(),this.getAllGradesData(),$("#modelId").modal("hide"))}searchQuestions(t){if(this.getAssessmentDataRequest.searchKey){if(this.getAssessmentDataRequest.pageNumber=0,this.getAssessmentDataRequest.searchKey=t,this.getAssessmentDataRequest.allTagsDto&&this.getAssessmentDataRequest.allTagsDto.length>0){this.filterdTagIdsList=[];for(let s of this.getAssessmentDataRequest.allTagsDto)if(-1==this.filterdTagIdsList.findIndex(i=>i==s.id)){let i=this.filterdTagIdsList.filter(a=>a==s.parentId);if(i&&i.length>0)for(let a of i){let d=this.filterdTagIdsList.findIndex(m=>m===a);-1!=d&&this.filterdTagIdsList.splice(d,1)}this.filterdTagIdsList.push(s.id)}}this.getAssessmentDataRequest.filterTagIds=this.filterdTagIdsList,this.isLoading=!0,this.masterQuestions=[],this.apiService.postService(this.apiService.apiUrls.getAllMasterQuestions,this.getAssessmentDataRequest).subscribe(s=>{if(s&&200==s.statusCode){if(s.data&&s.data.content){this.masterQuestions=s.data.content;for(let n of this.masterQuestions)n.isQuestionChecked=!1,this.assessmentDto.sections.forEach(i=>
1{i.questions.forEach(a=>{a.id===n.id&&(n.isQuestionChecked=!0)})}),n.question=this._assessmentService.assessmentQuestionImageChanges(n.question,this.apiService),n.parentQuestion=this._assessmentService.assessmentQuestionImageChanges(n.parentQuestion,this.apiService)}else this.message="No Questions Found",this.toaster.show(s?.message,"Info");this.isLoading=!1}},s=>{401==s.status?(this.isLoading=!1,this.toaster.show(s.message?s.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(s?.error?.message,"Info"))})}else this.getAssessmentDataRequest.searchKey="",this.masterQuestions=[],this.getAllMasterQuestionBank()}searchSubject(t){this.getDataRequest.filterType="SUBJECT",this.getDataRequest.searchKey=t.target.value,this.getAllGradesData(),this.getDataRequest.searchKey=""}searchChapter(t){this.getDataRequest.filterType="CHAPTER",this.getDataRequest.searchKey=t.target.value,this.getAllGradesData(),this.getDataRequest.searchKey=""}searchTopic(t){this.getDataRequest.filterType="TOPIC",this.getDataRequest.searchKey=t.target.value,this.getAllGradesData(),this.getDataRequest.searchKey=""}searchArticle(t){this.getDataRequest.filterType="ARTICLE",this.getDataRequest.searchKey=t.target.value,this.getAllGradesData(),this.getDataRequest.searchKey=""}searchGrade(t){this.getDataRequest.filterType="GRADE",this.getDataRequest.searchKey=t.target.value,this.getAllGradesData(),this.getDataRequest.searchKey=""}getAllTags(t){this.getDataRequest.pageSize=25,this.getDataRequest.filterTagIds=this.selectedTagIds,this.getDataRequest.filterType=t,this.apiService.postService(this.apiService.apiUrls.getAllTags,this.getDataRequest).subscribe(s=>{if(s&&200==s.statusCode&&s.data&&s.data.content){let n=s.data.content;n&&("GRADE"==t?this.allGrades=n:"SUBJECT"==t?this.allSubjects=n:"TOPIC"==t?this.allTopics=n:"CHAPTER"==t&&(this.allChapters=n))}else this.toaster.show(s?.message,"Info")},s=>{401==s.status?(this.isLoading=!1,this.toaster.show(s.message?s.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(s?.error?.message,"Info"))})}getAllTagsData(t){this.getDataRequest.filterTagIds=this.selectedTagIds,this.getDataRequest.filterType=t,this.getDataRequest.pageSize=25,this.apiService.postService(this.apiService.apiUrls.getAllTags,this.getDataRequest).subscribe(s=>{s&&200==s.statusCode?s.data&&s.data.content&&(this.tagsMasterData=s.data.content):this.toaster.show(s?.message,"Info")},s=>{401==s.status?(this.isLoading=!1,this.toaster.show(s.message?s.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(s?.error?.message,"Info"))})}clearPanelInput(){this.tagInput.clear()}onSearchShowTagData(t){if((0,r.NF)(this.platformId)){if(t&&!t.match(/^[a-zA-Z0-9!@#$&()-~`.+,/"_ ]+$/))return void(this.tagInput.query="");this.getDataRequest.searchKey=t,this.getAllTagsData("")}}onTagChange(t){if(t&&t.tagName){let s=this.assessmentDto.tags.findIndex(n=>n.id===t.id);-1==s?(this.assessmentDto.tags.push(t),this.assessmentDto.tagIds.push(t.id)):s>=0&&this.toaster.show("Oops! This discovery tag has already been added. Please add another tag.","Warning")}this.clearPanelInput()}deleteTag(t){if(t&&t.tagName){let s=this.assessmentDto.tags.findIndex(n=>n.id===t.id);s>=0?(this.assessmentDto.tags.splice(s,1),this.assessmentDto.tagIds.splice(s,1),this.selectedTagDto.splice(s,1)):this.toaster.show("Record Not Existed","Warning")}}createNewQuestion(){this.enableEditor=!0,this.enableEditEditor=!1,this.newQuestion=new G.c,this.assessmentDto&&this.assessmentDto.tagIds&&this.assessmentDto.tagIds.forEach(t=>this.newQuestion.tagIds.push(t)),this.assessmentDto&&this.assessmentDto.tags&&this.assessmentDto.tags.forEac
1h(t=>this.newQuestion.tags.push(t)),this.getAssessmentDataRequest.allTagsDto=this.assessmentDto.tags;for(let t=1;t<=4;t++){let s=new D.U;s.sequence=t,this.newQuestion.options.push(s)}}updateQuestion(t,s){if(this.editSectionIndex=t,this.editQuestionIndex=this.assessmentDto.sections[t].questions.indexOf(s),this.editQuestion=JSON.parse(JSON.stringify(s)),this.editQuestionDummy=s,this.editQuestion.options&&this.editQuestion.answerKeys)if(this.editQuestion.options.forEach(n=>{-1!=this.editQuestion.answerKeys.findIndex(a=>a.answer===n.answer)&&(n.answerKey=!0)}),0==this.editQuestion.options.length)for(let n=1;n<=4;n++){let i=new D.U;i.sequence=n,this.editQuestion.options.push(i)}else if(4!=this.editQuestion.options.length){let n=this.editQuestion.options;n.forEach((i,a)=>{i.sequence=a+1});for(let i=n.length;i<4;i++){let a=new D.U;a.sequence=i+1,this.editQuestion.options.push(a)}}_.iG.isValid(this.editQuestion.tags)||(this.editQuestion.tags=[]),_.iG.isValid(this.editQuestion.tagIds)||(this.editQuestion.tagIds=[]),this.enableEditor=!1,this.enableEditEditor=!0}clearNewQuestion(){(0,r.NF)(this.platformId)&&(this.newQuestion=null,this.enableEditEditor=!1,this.enableEditor=!1,this.checkbox=!1,$("#addeditquestion").modal("hide"))}clearEditQuestion(){(0,r.NF)(this.platformId)&&(this.editQuestion=null,this.enableEditEditor=!1,this.enableEditor=!1,$("#editquestion").modal("hide"))}updateEditQuestion(){if((0,r.NF)(this.platformId)){let t;if(!_.iG.isValid(this.editQuestion.question))return void this.toaster.show("Please Enter Question Statement","Warning");if(!_.iG.isValid(this.editQuestion.tags))return void this.toaster.show("Please enter discovery tags. This helps students and other teachers to discover your assessment.","Warning");if(this.editQuestion.options.forEach(i=>{""==i.answer&&(t=!0)}),!0===t)return void this.toaster.show("Please Enter Answer Options","Warning");this.editQuestion.question=this.convertMathmlToLatex(this.editQuestion.question);let s={...this.editQuestionDummy};if(JSON.stringify(s)==JSON.stringify(this.editQuestion))return void this.toaster.show("Nothing to Update","Info");{let i=[];this.editQuestion.answerKeys=[];let a=!1;const d=[];let m=!1;if(this.editQuestion.options.forEach(p=>{1==p.answerKey&&(m=!0)}),0==m)return void this.toaster.show("Please select atleast one option","Warning");if(this.editQuestion.options.forEach(p=>{this.editQuestion.options.filter(R=>R.answer===p.answer).length>1&&(a=!0),d.push(p)}),a)return void this.toaster.show("Two or more options cannot be same","Warning");this.editQuestion.options.forEach(p=>{p.answer&&(i.push(p),p.answerKey&&this.editQuestion.answerKeys.push(p))}),this.editQuestion.options=i,this.editQuestion.isUpdatedQuestion=!0,this.assessmentDto.sections[this.editSectionIndex].questions[this.editQuestionIndex]=this.editQuestion,this.toaster.show("Updated Successfully","Success"),this.editQuestion=null,this.editQuestionIndex=null,this.enableEditor=!1,this.enableEditEditor=!1,$("#editquestion").modal("hide")}}}onEditQuestionTagChange(t){if(t&&t.tagName){let s=this.editQuestion.tags.findIndex(n=>n.id===t.id);-1==s?(this.editQuestion.tags.push(t),this.editQuestion.tagIds.push(t.id)):s>=0&&this.toaster.show("This tag is already existing","Warning")}this.clearEditQuestionPanelInput()}clearEditQuestionPanelInput(){this.tagEditQuestionInput.clear()}deleteEditQuestionTag(t){if(t&&t.tagName){let s=this.editQuestion.tags.findIndex(n=>n.id===t.id);s>=0?(this.editQuestion.tags.splice(s,1),this.editQuestion.tagIds.splice(s,1)):this.toaster.show("Record Not Existed","Warning")}}change(t){0!==t.value.length||this.toaster.show("select atleast one option","warning")}submitNewQuestion(){if(this.currentSection<0)return void this.toaster.show("Please create atleast 1 section before adding question","Warning");if(!_.iG.isValid(this.newQuestion.question))return void this.toaster.show("Please Enter Question Statement","Warning");let t;if(this.newQuestion.options.forEach(d=>{""==d.answer&&(t=!0)}),!0===t)return void this.toaster.show("Please Enter answers of all options","Warning");this.newQuestion.question=this.convertMathmlToLatex(this.newQuestion.question);let s=!1;if(this.newQuestion.options.forEach(d=>{1==d.answerKey&&(s=!0)}),0==s)return void this.toaster.show("Please select atleast one option","Warning");let n=!1;const i=[];if(this.newQuestion.options.forEach(d=>{this.newQuestion.options.filter(m=>m.answer===d.answer).length>1&&(n=!0),i.push(d)}),n)return void this.toaster.show("Two or more options cannot be same","Warning");if(!_.iG.isValid(this.newQuestion.tags))return void this.toaster.show("Please select Tags","Warning");let a=[];this.newQuestion.options.forEach(d=>{d.answer&&(a.push(d),d.answerKey&&this.newQuestion.answerKeys.push(d))}),this.newQuestion.options=a,this.newQuestion.answerKeys&&1==this.newQuestion.answerKeys.length?this.newQuestion.questionType="SINGLE_CHOICE":this.newQuestion.answerKeys&&this.newQuestion.answerKeys.length>1&&(this.newQuestion.questionType="MULTIPLE_CHOICE"),this.newQuestion.isUpdatedQuestion=!0,this.assessmentDto.sections[this.currentSection].questions.push(this.newQuestion),this.enableEditor=!1,this.enableEditEditor=!1,this.newQuestion=null,this.checkbox=!1}onNewQuestionTagChange(t){if(t&&t.tagName){let s=this.newQuestion.tags.findIndex(n=>n.id===t.id);-1==s?(this.newQuestion.tags.push(t),this.newQuestion.tagIds.push(t.id)):s>=0&&this.toaster.show("This tag is already existing","Warning")}this.clearNewQuestionPanelInput()}clearNewQuestionPanelInput(){this.tagNewQuestionInput.clear()}deleteNewQuestionTag(t){if(t&&t.tagName){let s=this.newQuestion.tags.findIndex(n=>n.id===t.id);s>=0?(this.newQuestion.tags.splice(s,1),this.newQuestion.tagIds.splice(s,1)):this.toaster.show("Record Not Existed","Warning")}}addSection(){this.currentSection=this.currentSection+1;let t=new F.M;this.assessmentDto.sections.push(t)}removeSection(t){this.assessmentDto.sections.splice(t,1),this.currentSection=this.currentSection-1}correctAnswersMarksEntered(){if(this.assessmentDto.sections)for(let t of this.assessmentDto.sections)for(let s of t.questions)s.marks=this.correctAnswerMarks}wrongAnswersMarksEntered(){if(this.assessmentDto.sections)for(let t of this.assessmentDto.sections)for(let s of t.questions)s.negativeMarks=this.wrongAnswerMarks}getDataQuestion(t){return"<span>"+t?.questionId+".</span>"+t?.question}onGradeFilter(t,s){let n=this.filterGradeIds.findIndex(i=>i===t.id);s&&-1==n?(this.filterGradeIds.push(t.id),this.selectedAllTagsForFilter.push(t)):!s&&n>=0&&this.filterGradeIds.splice(n,1)}onSubjectFilter(t,s){let n=this.filterSubjectIds.findIndex(i=>i===t.id);s&&-1==n?(this.filterSubjectIds.push(t.id),this.selectedAllTagsForFilter.push(t)):!s&&n>=0&&this.filterSubjectIds.splice(n,1)}onChapterFilter(t,s){let n=this.filterChapterIds.findIndex(i=>i===t.id);s&&-1==n?(this.filterChapterIds.push(t.id),this.selectedAllTagsForFilter.push(t)):!s&&n>=0&&this.filterChapterIds.splice(n,1)}onArticleFilter(t,s){let n=this.filterArticleIds.findIndex(i=>i===t.id);s&&-1==n?(this.filterArticleIds.push(t.id),this.selectedAllTagsForFilter.push(t)):!s&&n>=0&&this.filterArticleIds.splice(n,1)}onTopicFilter(t,s){let n=this.filterTopicIds.findIndex(i=>i===t.id);s&&-1==n?(this.filterTopicIds.push(t.id),this.selectedAllTagsForFilter.push(t)):!s&&n>=0&&this.filterTopicIds.splice(n,1)}onDifficultLevelFilter(t,s){let n=this.filterDifficlultLevels.findIndex(i=>i===t);s&&-1==n?this.filterDifficlultLevels.push(t):!s&&n>=0&&this.filterDifficlultLevels.splice(n,1)}getAllMasterQuestionBankForFilter(){this.isLoading=!0,this.filterDifficlultLevels&&this.filterDifficlultLevels.length>0&&(this.getAssessmentDataRequest.difficultLevels=this.filterDifficlultLevels),this.getAssessmentDataRequest.pageSize=100,this.getAssessmentDataRequest.pageNumber=0,this.getAssessmentDataRequest.difficultLevels=this.filterDifficlultLevels,this.getAssessmentDataRequest.filterTagIds=this.selectedTagIds,this.getAssessmentDataRequest.tagIds=[],this.masterQuestions=[],this.apiService.postService(this.apiService.apiUrls.getAllMasterQuestions,this.getAssessmentDataRequest).subscribe(t=>
1{if(this.isLoading=!1,this.getAssessmentDataRequest.tagIds=[],t&&200==t.statusCode&&(0,r.NF)(this.platformId))if(t.data&&t.data.content){this.isReset||$("#modelId").modal("hide"),this.totalPages=t.data.totalPages,this.masterQuestions=t.data.content;for(let s of this.masterQuestions)s.question=this._assessmentService.assessmentQuestionImageChanges(s.question,this.apiService),s.parentQuestion=this._assessmentService.assessmentQuestionImageChanges(s.parentQuestion,this.apiService)}else this.isLoading=!1,this.message="No Questions Found",this.toaster.show(t?.message,"Info");else this.message="No Questions Found",this.isLoading=!1,this.toaster.show(t?.message,"Info")},t=>{401==t.status?(this.isLoading=!1,this.toaster.show(t.message?t.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(t?.error?.message,"Info"))})}reloadComponent(){let t=this.router.url;this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate([t])}back(){this.router.navigate(["navigation-bar/mentor/assessments"])}disabledNewQuestions(){if(_.iG.isValid(this.assessmentDto.totalNumberOfQuestions)&&_.iG.isValid(this.assessmentDto.sections)){let t=0;if(this.assessmentDto.sections.forEach(s=>{_.iG.isValid(s.questions)&&(t+=s.questions.length)}),t>=this.assessmentDto.totalNumberOfQuestions)return!0}return!1}enableNoQuestion(){return(!this.masterQuestions||0==this.masterQuestions.length)&&1!=this.isLoading}selectedOrUnSelectedtag(t,s){"SUBJECT"===s?t=this.allSubjects.filter(i=>i.id===t.id)[0]:"TOPIC"===s?t=this.allTopics.filter(i=>i.id===t.id)[0]:"CHAPTER"===s&&(t=this.allChapters.filter(i=>i.id===t.id)[0]);let n=this.selectedTagDto.findIndex(i=>i.id==t.id);-1==n?this.selectedTagDto.push(t):this.selectedTagDto.splice(n,1),this.applyFilterAndChildTagSelection(s)}applyFilterAndChildTagSelection(t){this.selectedTagIds=[];for(let s of this.selectedTagDto){let n=this.selectedTagIds.findIndex(i=>i===s.parentId);-1!=n&&this.selectedTagIds.splice(n,1),this.selectedTagIds.push(s.id)}"GRADE"===t?(this.getAllTags(this.getDataRequest.filterType="SUBJECT"),this.getAllTags(this.getDataRequest.filterType="TOPIC"),this.getAllTags(this.getDataRequest.filterType="CHAPTER")):"SUBJECT"===t?(this.getAllTags(this.getDataRequest.filterType="TOPIC"),this.getAllTags(this.getDataRequest.filterType="CHAPTER")):"TOPIC"===t?(this.getAllTags(this.getDataRequest.filterType="CHAPTER"),this.getAllTags(this.getDataRequest.filterType="SUBJECT")):"CHAPTER"===t&&(this.getAllTags(this.getDataRequest.filterType="SUBJECT"),this.getAllTags(this.getDataRequest.filterType="TOPIC"))}getDefaultBar(t,s){return""==t||null==t?"defaultBar":"EXTREMELY_EASY"===t?1==s?"extremelyEasy":"defaultBar":"VERY_EASY"===t?1==s||2==s?"veryEasy":"defaultBar":"EASY"===t?1==s||2==s||3==s?"easy":"defaultBar":"MODERATELY_DIFFICULT"===t?1==s||2==s||3==s||4==s?"moderatelyDifficult":"defaultBar":"HIGHLY_DIFFICULT"===t?1==s||2==s||3==s||4==s||5==s?"highlyDifficult":"defaultBar":"EXTREMELY_DIFFICULT"===t?1==s||2==s||3==s||4==s||5==s||6==s?"exremelyDifficult":"defaultBar":void 0}termsPage(){this.router.navigate(["/navigation-bar/mentor/terms-condition"])}policyPage(){this.router.navigate(["/navigation-bar/mentor/privacy-policy"])}removeSelectedPicture(){this.fileToUpload=null,this.assessmentDto.photo=null}disabledResetButtonForFilters(){return 0==this.filterDifficlultLevels.length&&0==this.selectedTagIds.length}removeSelectedValues(){(0,r.NF)(this.platformId)&&(this.filterdTagIdsList=[],this.selectedTagDto=[],this.selectedTagIds=[],this.getAssessmentDataRequest=new u.iE,this.masterQuestions=[],$("input[type=checkbox]").prop("checked",!1),this.resetFilterMultiDropDownSelections(),this.getAssessmentDataRequest.allTagsDto=this.assessmentDto.tags,this.filterGradeIds=[],this.filterSubjectIds=[],this.filterChapterIds=[],this.filterDifficlultLevels=[],this.gradeListForFilter=[],this.subjectListForFilter=[],this.chapterListForFilter=[],this.selectedAllTagsForFilter=[],this.getAssessmentDataRequest.filterTagIds=[],this.allChapters=[])}static#e=this.\u0275fac=function(s){return new(s||l)(e.\u0275\u0275directiveInject(S.s),e.\u0275\u0275directiveInject(h.F0),e.\u0275\u0275directiveInject(b._W),e.\u0275\u0275directiveInject(h.gz),e.\u0275\u0275directiveInject(r.Ye),e.\u0275\u0275directiveInject(C.Dx),e.\u0275\u0275directiveInject(e.PLATFORM_ID),e.\u0275\u0275directiveInject(Y.k),e.\u0275\u0275directiveInject(K.e))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:l,selectors:[["app-add-assessment"]],viewQuery:function(s,n){if(1&s&&(e.\u0275\u0275viewQuery(J,5),e.\u0275\u0275viewQuery(j,5),e.\u0275\u0275viewQuery(X,5),e.\u0275\u0275viewQuery(Z,5),e.\u0275\u0275viewQuery(ee,5),e.\u0275\u0275viewQuery(te,5)),2&s){let i;e.\u0275\u0275queryRefresh(i=e.\u0275\u0275loadQuery())&&(n.tagInput=i.first),e.\u0275\u0275queryRefresh(i=e.\u0275\u0275loadQuery())&&(n.tagNewQuestionInput=i.first),e.\u0275\u0275queryRefresh(i=e.\u0275\u0275loadQuery())&&(n.tagEditQuestionInput=i.first),e.\u0275\u0275queryRefresh(i=e.\u0275\u0275loadQuery())&&(n.subjectDropDown=i.first),e.\u0275\u0275queryRefresh(i=e.\u0275\u0275loadQuery())&&(n.multiSelectForTopicsFilter=i.first),e.\u0275\u0275queryRefresh(i=e.\u0275\u0275loadQuery())&&(n.multiSelectForChaptersFilter=i.first)}},hostBindings:function(s,n){1&s&&e.\u0275\u0275listener("popstate",function(a){return n.onPopState(a)},!1,e.\u0275\u0275resolveWindow)},inputs:{childEditAssessmentId:"childEditAssessmentId"},decls:213,vars:21,consts:[[4,"ngIf"],["backToTheTopOfEditor",""],["targetToTheEditor",""],["id","myModal2","tabindex","-1","role","dialog","aria-labelledby","myModalLabel2",1,"modal","fade"],["role","document",1,"modal-dialog","modalDialog","alignment","modal
1-dialog-scrollable"],[1,"modal-content","modalContent"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true",1,"d-flex","justify-content-end","mr-3","pt-3"],[1,"modal-body"],["type","text","placeholder","Search",1,"form-control","mb-3","pl-5"],["aria-hidden","true",1,"fa","fa-search",2,"position","absolute","left","30px","top","25px","color","grey"],["id","accordion"],[1,""],["data-toggle","collapse","href","#Grade",1,"card-link"],[1,"caretIcon"],["id","Grade","data-parent","#accordion",1,"collapse","show","color-Grey"],[1,"card-body"],[1,"row"],["class","col-lg-4 col-xs-12 col-sm-12 col-md-4 col-xl-4",4,"ngFor","ngForOf"],["data-toggle","collapse","href","#DifficultyLevel",1,"collapsed","card-link"],["id","DifficultyLevel","data-parent","#accordion",1,"collapse","color-Grey"],[1,"col-lg-4","col-xs-12","col-sm-12","col-md-4","col-xl-4"],[1,"custom-control","custom-checkbox"],["type","checkbox","id","Beginner","name","beginner",1,"custom-control-input",3,"change"],["for","Beginner",1,"custom-control-label"],["type","checkbox","id","Intermediate","name","intermediate",1,"custom-control-input",3,"change"],["for","Intermediate",1,"custom-control-label"],["type","checkbox","id","Advance","name","advance",1,"custom-control-input",3,"change"],["for","Advance",1,"custom-control-label"],["data-toggle","collapse","href","#Mentors",1,"collapsed","card-link"],["id","Mentors","data-parent","#accordion",1,"collapse","color-Grey"],["type","checkbox","id","Mentor 1","name","mentorOne",1,"custom-control-input"],["for","Mentor 1",1,"custom-control-label"],["type","checkbox","id","Mentor 2","name","mentorTwo",1,"custom-control-input"],["for","Mentor 2",1,"custom-control-label"],["type","checkbox","id","Mentor 3","name","mentorThree",1,"custom-control-input"],["for","Mentor 3",1,"custom-control-label"],[1,"row","mt-3"],["type","checkbox","id","Mentor 4","name","mentorFour",1,"custom-control-input"],["for","Mentor 4",1,"custom-control-label"],["type","checkbox","id","Mentor 5","name","mentorFive",1,"custom-control-input"],["for","Mentor 5",1,"custom-control-label"],["type","checkbox","id","Mentor 6","name","mentorSix",1,"custom-control-input"],["for","Mentor 6",1,"custom-control-label"],["data-toggle","collapse","href","#Ratings",1,"collapsed","card-link"],["id","Ratings","data-parent","#accordion",1,"collapse","color-Grey"],["type","checkbox","id","Ratings 1","name","ratingOne",1,"custom-control-input"],["for","Ratings 1",1,"custom-control-label","text-warning"],["type","checkbox","id","Ratings 2","name","ratingTwo",1,"custom-control-input"],["for","Ratings 2",1,"custom-control-label","text-warning"],["type","checkbox","id","Ratings 3","name","ratingThree",1,"custom-control-input"],["for","Ratings 3",1,"custom-control-label","text-warning"],["type","checkbox","id","Ratings 4","name","ratingFour",1,"custom-control-input"],["for","Ratings 4",1,"custom-control-label","text-warning"],["type","checkbox","id","Ratings 5","name","ratingFive",1,"custom-control-input"],["for","Ratings 5",1,"custom-control-label","text-warning"],[1,"d-flex","justify-content-end"],[1,"btn","btn-default","buttonColor1","mr-3",3,"click"],[1,"btn","btn-default","buttonColor","text-light",3,"click"],["id","modelId","tabindex","-1","role","dialog","aria-labelledby","modelTitleId","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog","modal
1-lg","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header","border-0"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body",2,"padding","5px"],[2,"overflow-y","auto"],[1,"row","ml-3","p-0"],["class","p-0",4,"ngFor","ngForOf"],[1,"ml-3"],[1,"col-12"],[1,"form-group"],[3,"data","settings","disabled","placeholder","ngModel","blur","onFilterChange","onDropDownClose","onSelect","onDeSelect","onSelectAll","onDeSelectAll","ngModelChange"],["subjectDropDown",""],[1,"col-lg-6"],[3,"data","settings","disabled","placeholder","ngModel","onFilterChange","onDropDownClose","onSelect","onDeSelect","onSelectAll","onDeSelectAll","ngModelChange"],["multiSelectForTopicsFilter",""],["multiSelectForChaptersFilter",""],[1,"col-12","px-0"],["type","checkbox","id","extremelyEasy","name","ExtremelyEasy",1,"custom-control-input",3,"change"],["for","extremelyEasy","data-placement","top","data-toggle","tooltip","title","Directly from the content",1,"custom-control-label"],["type","checkbox","id"," veryEasy","name","Very Easy",1,"custom-control-input",3,"change"],["for"," veryEasy","data-placement","top","data-toggle","tooltip","title","Based on Definitions and content of the article ",1,"custom-control-label"],["type","checkbox","id","easyFilter","name","Easy",1,"custom-control-input",3,"change"],["for","easyFilter","data-placement","top","data-toggle","tooltip","title","Based on understanding the concept behind the article",1,"custom-control-label"],["type","checkbox","id","ModeratelyDifficultFilter","name","moderatelyDifficult",1,"custom-control-input",3,"change"],["for","ModeratelyDifficultFilter","data-placement","bottom","data-toggle","tooltip","title","Based on logical interpretation of the data and concept",1,"custom-control-label"],["type","checkbox","id","HighlyDifficultFilter","name","highlyDifficult",1,"custom-control-input",3,"change"],["for","HighlyDifficultFilter","data-placement","bottom","data-toggle","tooltip","title","Based on logical interpretation of the data and concept and with other universal facts",1,"custom-control-label"],["type","checkbox","id","extremelyDifficult","name","ExtremelyDifficult",1,"custom-control-input",3,"change"],["for","extremelyDifficult","data-placement","bottom","data-toggle","tooltip","title","Based on intelligent thought process coupled with all above aspects",1,"custom-control-label"],[1,"modal-footer"],["type","button",1,"btn","btn-default","text-linear-gradient1","rounded",3,"click"],["type","button",1,"btn","btn-default","text-linear-gradient2","rounded",3,"click"],[1,"row","mt-4"],[1,"col-12","px-0","px-sm-3"],["type","text","placeholder","Enter name of assessment you are creating.","name","title","required","",1,"form-control","txt-ellips",3,"ngModel","ngModelChange"],[1,"col-lg-6","px-0","px-sm-3"],[1,"mr-1"],[1,"leftTwoFifityCharacter"],[2,"width","100%"],["rows","5","cols","10","placeholder","Describe your assessment. EX:This assessment contains 20 questions on thermodynamics, physics to help revise and retain the concepts of the topic.","name","description",1,"p-3",2,"width","100% !important","border","1px solid gainsboro",3,"ngModel","ngModelChange","input"],[2,"clear","both"],[1,"col-lg-6","px-0","px-sm-3","mt-3","mt-sm-3","mt-md-0"],[1,"mbl-display1"],[1,"droparea1",3,"dragover","drop","dragleave"],["src","../../../../assets/image.png","alt",""],["type","text","disabled","","placeholder","Drop your images here, or",1,"form-control","textPlace","w-100","text-center","border-0"],[2,"position","relative","top","20px","max-width","320px","margin","auto"],[1,"click1",2,"color","#10c69b","text-decoration","underline","cursor","pointer",3,"click"],[1,"mbl-display2"],[1,"droparea",3,"dragover","drop","dragleave"],["type","text","disabled","","placeholder","Drop your images here, or",1,"form-control","textPlace","w-55","pr-0","text-right","border-0"],[2,"position","relative","top","30px","max-width","320px","margin","auto"],[1,"click",2,"color","#10c69b","text-decoration","underline",3,"click"],[1,"filename","d-flex","justify-content-between","align-items-center"],[2,"font-size","14px"],[3,"ngStyle","click"],["aria-hidden","true",1,"fa","fa-tras
1h",2,"cursor","pointer","color","red",3,"click"],["type","file","name","file","id","file","multiple","","accept","image/x-png,image/png,image/gif,image/jpeg,image/jpg",2,"display","none",3,"change","click"],["fileInput",""],[1,"row","mt-2","mt-sm-3"],[1,"col-md-3","col-lg-2","px-0","px-sm-3"],["type","number","min","0","step","1","onkeypress","return event.charCode >= 48 && event.charCode <= 57 && event.charCode!=46 ","placeholder","Type here","name","totalNumberOfQuestions","required","",1,"form-control","txt-ellips",3,"ngModel","ngModelChange"],[1,"col-md-4","col-lg-5","mt-4","mt-md-0","px-0","px-sm-3"],[1,"mb-0"],["name","price","id","price","value","0",3,"min","max","ngModel","ngModelChange"],[1,"d-flex","justify-content-between","mx-1"],[1,"col-md-5","col-lg-5","mt-4","mt-md-0","px-0","px-sm-3"],[1,"d-flex","flex-wrap","justify-content-between","align-items-center","mb-2"],[1,"mr-2"],["type","radio","name","Time","id","selTime","value","selTime",1,"mr-1",3,"checked","click"],["for","",1,"mb-0"],["type","radio","name","Time","id","noTime","value","noTime",1,"mr-1",3,"checked","click"],["class","col-12 px-0 px-sm-3",4,"ngIf"],["for","instruction"],["rows","5","cols","10","placeholder","Type the instructions to be given to students to attempt this assessment","name","instructions","maxlength","250",1,"p-3",2,"width","100%","max-width","100%","border","1px solid gainsboro",3,"ngModel","ngModelChange"],[1,"col-md-12","w-100","px-0","px-sm-3"],[1,"dropdown"],["src","../../../../assets/quesMark.svg","alt",""],[1,"dropdown-content","filterContent"],[1,"col-md-12","px-0","px-sm-3"],[2,"border","0px","box-shadow","0px !important","outline","none"],["placeholder","Search the Grade/Class, Subject, Topic, Chapter to select and add",3,"data","searchKeyword","itemTemplate","notFoundTemplate","selected","inputChanged","inputCleared","inputFocused"],["tagInput",""],["tagTemplate",""],["tagNotFoundTemplate",""],[1,"customScrollClass"],[1,"row","mt-2"],[1,"row","mt-3","instructions-div"],[1,"col-12","px-0","px-sm-3",2,"color","#a4a8ae"],[1,"col-12","d-flex","justify-content-end"],[1,"btn","btn-info","py-md-3","py-2","px-4","px-md-5","radius","font-weight-bold",3,"click"],[1,"d-flex","justify-content-between","align-items-center"],[1,"add-txt","text-nowrap"],[1,"d-flex","justify-content-center","align-items-center"],[1,"step"],[1,"one"],["aria-hidden","true",1,"fa","fa-arrow-left",3,"click"],["name","durationMin","id","durationMin","value","1",3,"min","max","ngModel","ngModelChange"],[1,"mb-0","ml-1"],["name","minOutput","id","minOutputId",1,"ml-1","ml-sm-2"],["type","radio","name","assessmentOption","id","publicAssess","value","RANK_BOOSTER",1,"mr-1",3,"ngModel","ngModelChange"],["type","radio","name","assessmentOption","id","privateAssess","value","DAILY_PRACTICE",1,"mr-1","ml-4",3,"ngModel","ngModelChange"],["type","radio","name","assessmentOption","id","privateAssess","value","FREE",1,"mr-1","ml-4",3,"ngModel","ngModelChange"],["data-toggle","tooltip",3,"innerHTML","title"],[3,"innerHTML"],[1,"p-0"],[1,"li25"],[1,"fa","fa-times",2,"font-size","16px",3,"click"],["data-toggle","tooltip",1,"ml-1","font-weight-normal",3,"title"],[1,"row","my-4"],[1,"container-fluid","px-0","px-md-3"],[1,"CardBorder","d-none","d-sm-block"],[1,"col-lg-6","pl-lg-0","questions"],[1,"card","cardBorderRadius"],[1,"card","CardBorder"],[1,"card-body","CardBorder"],[1,"col-sm-8","search-col","px-0"],[1,"form-group","mb-0"],[1,"input-group"],["id","searchIcon","aria-hidden","true",1,"fa","fa-search"],["type","text","placeholder","Search question keywords like fractions, equations etc. ?",1,"form-control","pl-5",2,"border-radius","5px 0 0 5px !important",3,"ngModel","ngModelChange"],[1,"input-icons"],[1,"",3,"click"],[1,"btn","btn-info",2,"border-radius","0 5px 5px 0 !important","padding","9px 16px","font-weight","500"],[1,"col-sm-4","px-0","mt-2","pl-sm-3","mt-sm-0","btn-col","text-right"],[1,"btn","btn-info","w-100",2,"height","45px",3,"click"],[1,"bx","bx-filter-alt","mr-1"],["infiniteScroll","",1,"container","px-0","questionContainer",3,"infiniteScrollDistance","infiniteScrollThrottle","scrollWindow","scrolled"],["style","\n                    text-align: center;\n                    margin-top: 50px;\n                    font-size: 32px;\n                    font-weight: 500;\n                  ",4,"ngIf"],["src","/assets/img/loader.gif","alt","loading","width","100px","style","position: absolute; top:50%; left:50%;transform: translate(-50%,-50%);",4,"ngIf"],["type","button",1,"btn","btn-outline-secondary","mr-3",3,"disabled","click"],[1,"fa","fa-plus"],[1,"col-lg-6","mt-3","mt-lg-0","pr-lg-0","questions"],[1,"card","CardBorder","cardBorderRadius"],[1,"card"],[1,"marksDiv"],[1,"flexdiv"],[1,"mb-0",2,"min-width","100px"],[1,"correctdiv"],[1,"correctinput"],[1,"mx-2","correct"],["aria-hidden","true",1,"fa","fa-arrow-up","text-success","mr-2"],["type","text","placeholder","Type here",1,"form-control",3,"ngModel","ngModelChange"],[1,"incorrectdiv"],[1,"incorrectinput"],["aria-hidden","true",1,"fa","fa-arrow-down","text-danger","mr-2"],["type","text","placeholder","Type here",1,"form-control","mr-2",3,"ngModel","ngModelChange"],[1,"combinedDiv"],[1,"correctdiv2"],[1,"d-flex"],[1,"mr-2","correct"],[1,"incorrectdiv2"],["type","text","placeholder","Type here",1,"form-control","ml-2",3,"ngModel","ngModelChange"],[1,"container","questionContainer"],["class","my-3",4,"ngFor","ngForOf"],[1,"mt-4"],[1,"d-flex","justify-content-between"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-info","px-4","font-weight-bold",3,"click"],[1,"d-block","d-sm-none"],[1,"d-flex","mb-3","justify-content-center","align-items-center"],[1,"mx-2","m-auto"],[1,"switch","mb-0"],["type","checkbox",3,"checked","change"],[1,"slider","round"],["routerLink","/navigation-bar/mentor/examination",1,"one",2,"cursor","pointer"],[2,"text-align","center","margin-top","50px","font-size","32px","font-weight","500"],["src","/assets/img/loader.gif","alt","loading","width","100px",2,"position","absolute","top","50%","left","50%","transform","translate(-50%,-50%)"],["class","tableHoverBackgroun
1dEffect",4,"ngFor","ngForOf"],[1,"tableHoverBackgroundEffect"],[1,"user-link"],[1,"row","dotsImg",2,"padding","10px"],[1,"col-sm-2","col-3","px-0","px-md-3","col-xl-1","d-flex","justify-content-center","align-items-center"],["type","checkbox",1,"checkbox-round",3,"ngModel","ngModelChange","change","click"],[1,"col-sm-10","col-9","px-0","px-md-3","col-xl-11"],[1,"d-flex","flex-wrap","align-items-center","mb-1"],[2,"color","#a4a8ae","margin-right","3px"],[1,"d-flex","flex-wrap","align-items-center"],[1,"mx-1"],[3,"ngClass"],[1,"font-weight-normal",3,"innerHTML"],[1,"text-secondary"],[1,"my-3"],[1,"row","text-secondary"],[1,"col-4","pr-0"],[1,"col-2","px-0","text-center","text-nowrap"],[1,"col-4","pl-0"],[1,"col-2"],[3,"click"],["class","table table-borderless",4,"ngFor","ngForOf"],[1,"table","table-borderless"],["width","5%!important",1,""],[1,"mr-4","mb-0"],[1,"d-flex","justify-content-center","align-items-center","mr-2"],["type","text",1,"form-control","mb-2",2,"width","30px","height","30px","background-color","#f1f4f8","border-radius","50%","color","#333","padding","5px","text-align","center",3,"ngModel","ngModelChange"],["aria-hidden","true",1,"fa","fa-arrow-up",2,"color","green","margin-top","-10px","margin-left","5px"],["type","text",1,"form-control",2,"width","30px","height","30px","background-color","#f1f4f8","border-radius","50%","color","#333","padding","5px","text-align","center",3,"ngModel","ngModelChange"],["aria-hidden","true",1,"fa","fa-arrow-down","icon",2,"color","red","margin-left","5px","margin-top","9px"],["width","90%!important",1,"px-0","mx-0"],["width","50%!important"],["aria-hidden","true",1,"bx","bxs-pencil","text-info",3,"click"],["aria-hidden","true",1,"fa","fa-trash","text-info",3,"click"],[1,"search-col"],[1,"mt-2","btn-col","text-right"],["infiniteScroll","",1,"mt-3","questionContainer",3,"infiniteScrollDistance","infiniteScrollThrottle","scrollWindow","scrolled"],["style","\n                  text-align: center;\n                  margin-top: 50px;\n                  font-size: 32px;\n                  font-weight: 500;\n                ",4,"ngIf"],["src","/assets/img/loader.gif","alt","loading","width","100px","style","position: absolute; top:100%; left:50%;transform: translate(-50%,-50%);",4,"ngIf"],[1,"p-3","my-3",2,"background-color","#1e3757","color","#fff","font-weight","600"],[1,"text-center"],[1,"mt-3","questionContainer"],["src","/assets/img/loader.gif","alt","loading","width","100px",2,"position","absolute","top","100%","left","50%","transform","translate(-50%,-50%)"],[1,"dotsImg",2,"padding","10px"],[1,"d-flex","mr-3","justify-content-center","align-items-top"],[1,"d-flex","flex-direction-row"],["aria-hidden","true",1,"fa","fa-arrow-up",2,"color","green","margin-top","-10px","margin-right","5px"],["aria-hidden","true",1,"fa","fa-arrow-down","icon",2,"color","red","margin-right","5px","margin-top","9px"],["aria-hidden","true",1,"fa","fa-trash","text-info","ml-3",3,"click"],["id","addeditquestion","class","d-none d-sm-block",4,"ngIf"],["class","d-block d-sm-none",4,"ngIf"],["id","editquestion",4,"ngIf"],["id","addeditquestion",1,"d-none","d-sm-block"],[1,"mt-4","col-12","px-0","px-sm-3"],[1,"mt-2","col-lg-12","col-xs-12","col-sm-12","col-md-12","col-xl-12","px-0","px-sm-3"],[1,"col-md-9"],[2,"margin-left","-13px"],[1,"col-md-3","text-right","pr-0","mr-0"],[1,"mx-1","mx-sm-3","my-3","w-100"],[2,"color","rgb(0, 0, 0)","font-weight","600"],[1,"row","w-100"],["class","col-6 col-lg-3 mb-3 mb-lg-0 px-1 px-sm-3",4,"ngFor","ngForOf"],[1,"col-lg-12","col-xs-12","col-sm-12","col-md-12","col-xl-12","px-0","px-sm-3"],[2,"padding","0"],["placeholder","Select Tags",3,"data","searchKeyword","itemTemplate","notFoundTemplate","selected","inputChanged","inputCleared","inputFocused"],["tagNewQuestionInput",""],["tagNewQuestionTemplate",""],["tagNewQuestionNotFoundTemplate",""],[1,"d-flex","px-3","mt-3","mt-sm-0","justify-content-end"],[2,"margin-right","10px"],["type","button",1,"btn","btn-info","buttonColor","text-light",3,"click"],[1,"col-6","col-lg-3","mb-3","mb-lg-0","px-1","px-sm-3"],[1,"d-flex","align-items-center"],["type","checkbox","value","1",1,"my_checkbox",3,"name","ngModel","id","ngModelChange"],["type","text","placeholder","Type Answer",1,"form-control",3,"ngModel","name","id","ngModelChange"],[1,"fa","fa-times",3,"click"],["data-toggle","tooltip",1,"ml-2","text-nowrap",3,"title"],["id","addeditquestion",4,"ngIf"],["id","addeditquestion"],["rows","5","cols","10","placeholder","Type here","name","description","maxlength","250","name","question","id","question","maxlength","250",2,"width","100% !important",3,"config","editor","ngModel","ngModelChange"],["id","editquestion"],["rows","5","cols","10","placeholder","Type here","name","description","maxlength","250","name","question","id","question",2,"width","100% !important",3,"config","editor","ngModel","ngModelChange"],["tagEditQuestionInput",""],["tagEditQuestionTemplate",""],["tagEditQuestionNotFoundTemplate",""],["type","button","data-dismiss","modal",1,"btn","btn-secondary",3,"click"],["type","button",1,"btn","btn-info","buttonColor","text-light",2,"padding",".375rem .5rem !important",3,"click"],["type","checkbox",3,"id","name","change"],[1,"custom-control-label",3,"for"],[1,"li15"],["data-toggle","tooltip",1,"ml-1","text-nowrap",3,"title"],["type","checkbox",1,"custom-control-input",3,"id","name","click"],["data-toggle","tooltip","data-
1placement","top",1,"custom-control-label",3,"for","title"]],template:function(s,n){1&s&&(e.\u0275\u0275template(0,me,127,24,"div",0),e.\u0275\u0275elementStart(1,"div",null,1),e.\u0275\u0275template(3,De,109,17,"div",0),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",null,2),e.\u0275\u0275template(6,ze,4,3,"div",0),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(7,"app-footer"),e.\u0275\u0275elementStart(8,"div",3)(9,"div",4)(10,"div",5)(11,"button",6)(12,"span",7),e.\u0275\u0275text(13," \xd7"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(14,"div",8),e.\u0275\u0275element(15,"input",9)(16,"i",10),e.\u0275\u0275elementStart(17,"div",11)(18,"div",12)(19,"div",12)(20,"a",13),e.\u0275\u0275element(21,"span",14),e.\u0275\u0275text(22," Grade "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(23,"div",15)(24,"div",16)(25,"div",17)(26,"div",15)(27,"div",16)(28,"div",17),e.\u0275\u0275template(29,He,5,4,"div",18),e.\u0275\u0275elementEnd()()()()()(),e.\u0275\u0275element(30,"hr"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(31,"div",12)(32,"div",12)(33,"a",19),e.\u0275\u0275text(34," Difficulty level "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(35,"div",20)(36,"div",16)(37,"div",17)(38,"div",21)(39,"div",22)(40,"input",23),e.\u0275\u0275listener("change",function(a){return n.onDifficultLevelSelectForFilter("BEGINNER",a.target.checked)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(41,"label",24),e.\u0275\u0275text(42," Beginner"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(43,"div",21)(44,"div",22)(45,"input",25),e.\u0275\u0275listener("change",function(a){return n.onDifficultLevelSelectForFilter("INTERMEDIATE",a.target.checked)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(46,"label",26),e.\u0275\u0275text(47,"Intermediate"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(48,"div",21)(49,"div",22)(50,"input",27),e.\u0275\u0275listener("change",function(a){return n.onDifficultLevelSelectForFilter("ADVANCE",a.target.checked)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(51,"label",28),e.\u0275\u0275text(52,"Advance"),e.\u0275\u0275elementEnd()()()()()(),e.\u0275\u0275element(53,"hr"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(54,"div",12)(55,"div",12)(56,"a",29),e.\u0275\u0275text(57," Mentors "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(58,"div",30)(59,"div",16)(60,"div",17)(61,"div",21)(62,"div",22),e.\u0275\u0275element(63,"input",31),e.\u0275\u0275elementStart(64,"label",32),e.\u0275\u0275text(65,"Mentor 1"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(66,"div",21)(67,"div",22),e.\u0275\u0275element(68,"input",33),e.\u0275\u0275elementStart(69,"label",34),e.\u0275\u0275text(70,"Mentor 1"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(71,"div",21)(72,"div",22),e.\u0275\u0275element(73,"input",35),e.\u0275\u0275elementStart(74,"label",36),e.\u0275\u0275text(75,"Mentor 1"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(76,"div",37)(77,"div",21)(78,"div",22),e.\u0275\u0275element(79,"input",38),e.\u0275\u0275elementStart(80,"label",39),e.\u0275\u0275text(81,"Mentor 1"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(82,"div",21)(83,"div",22),e.\u0275\u0275element(84,"input",40),e.\u0275\u0275elementStart(85,"label",41),e.\u0275\u0275text(86,"Mentor 1"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(87,"div",21)(88,"div",22),e.\u0275\u0275element(89,"input",42),e.\u0275\u0275elementStart(90,"label",43),e.\u0275\u0275text(91,"Mentor 1"),e.\u0275\u0275elementEnd()()()()()(),e.\u0275\u0275element(92,"hr"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(93,"div",12)(94,"div",12)(95,"a",44),e.\u0275\u0275text(96," Ratings "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(97,"div",45)(98,"div",16)(99,"div",17)(100,"div",21)(101,"div",22),e.\u0275\u0275element(102,"input",46),e.\u0275\u0275elementStart(103,"label",47)(104,"b"),e.\u0275\u0275text(105," 1 Star"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(106,"div",21)(107,"div",22),e.\u0275\u0275element(108,"input",48),e.\u0275\u0275elementStart(109,"label",49)(110,"b"),e.\u0275\u0275text(111,"2 Star"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(112,"div",21)(113,"div",22),e.\u0275\u0275element(114,"input",50),e.\u0275\u0275elementStart(115,"label",51)(116,"b"),e.\u0275\u0275text(117,"3 Star"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(118,"div",37)(119,"div",21)(120,"div",22),e.\u0275\u0275element(121,"input",52),e.\u0275\u0275elementStart(122,"label",53)(123,"b"),e.\u0275\u0275text(124,"4 Star"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(125,"div",21)(126,"div",22),e.\u0275\u0275element(127,"input",54),e.\u0275\u0275elementStart(128,"label",55)(129,"b"),e.\u0275\u0275text(130,"5 Star"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275element(131,"div",21),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275element(132,"hr"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(133,"div",56)(134,"button",57),e.\u0275\u0275listener("click",function(){return n.resetFilterForQuestions()}),e.\u0275\u0275text(135," Reset "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(136,"button",58),e.\u0275\u0275listener("click",function(){return n.applyFilterForQuestions()}),e.\u0275\u0275text(137," Save "),e.\u0275\u0275elementEnd()()()()()(),e.\u0275\u0275elementStart(138,"div",59)(139,"div",60)(140,"div",61)(141,"div",62)(142,"button",63),e.\u0275\u0275listener("click",function(){return n.selectedTagIds=[]}),e.\u0275\u0275elementStart(143,"span",64),e.\u0275\u0275text(144,"\xd7"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(145,"div",65)(146,"div",66)(147,"div",67),e.\u0275\u0275template(148,$e,5,2,"div",68),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(149,"h6",69),e.\u0275\u0275text(150,"Grade"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(151,"div",17),e.\u0275\u0275template(152,Ge,5,5,"div",18),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(153,"div",37)(154,"div",70)(155,"div",71)(156,"h6"),e.\u0275\u0275text(157,"Subject"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(158,"ng-multiselect-dropdown",72,73),e.\u0275\u0275listener("blur",function(){return n.exampleMethod()})("onFilterChange",function(a){return n.onFilterChange(a)})("onDropDownClose",function(a){return n.onDropDownClose(a)})("onSelect",function(a){return n.selectedOrUnSelectedtag(a,"SUBJECT")})("onDeSelect",function(a){return n.selectedOrUnSelectedtag(a,"SUBJECT")})("onSelectAll",function(a){return n.selectedOrUnSelectedtag(a,"SUBJECT")})("onDeSelectAll",function(a){return n.onDeSelectAll(a)})("ngModelChange",function(a){return n.selectedSubjectsForFilter=a}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(160,"div",17)(161,"div",74)(162,"div",71)(163,"h6"),e.\u0275\u0275text(164,"Topic"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(165,"ng-multiselect-dropdown",75,76),e.\u0275\u0275listener("onFilterChange",function(a){return n.onFilterChange(a)})("onDropDownClose",function(a){return n.onDropDownClose(a)})("onSelect",function(a){return n.selectedOrUnSelectedtag(a,"TOPIC")})("onDeSelect",function(a){return n.selectedOrUnSelectedtag(a,"TOPIC")})("onSelectAll",function(a){return n.selectedOrUnSelectedtag(a,"TOPIC")})("onDeSelectAll",function(a){return n.onDeSelectAll(a)})("ngModelChange",function(a){return n.selectedTopicsForFilter=a}),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(167,"div",74)(168,"div",71)(169,"h6"),e.\u0275\u0275text(170,"Chapter"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(171,"ng-multiselect-dropdown",75,77),e.\u0275\u0275listener("onFilterChange",function(a){return n.onFilterChange(a)})("onDropDownClose",function(a){return n.onDropDownClose(a)})("onSelect",function(a){return n.selectedOrUnSelectedtag(a,"CHAPTER")})("onDeSelect",function(a){return n.selectedOrUnSelectedtag(a,"CHAPTER")})("onSelectAll",function(a){return n.selectedOrUnSelectedtag(a,"CHAPTER")})("onDeSelectAll",function(a){return n.onDeSelectAll(a)})("ngModelChange",function(a){return n.selectedChaptersForFilter=a}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(173,"div",17)(174,"div",78)(175,"h6",69),e.\u0275\u0275text(176,"Difficulty level"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(177,"div",21)(178,"div",22)(179,"input",79),e.\u0275\u0275listener("change",function(a){return n.onDifficultLevelFilter("EXTREMELY_EASY",a.target.checked)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(180,"label",80),e.\u0275\u0275text(181,"Extremely Easy"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(182,"div",21)(183,"div",22)(184,"input",81),e.\u0275\u0275listener("change",function(a){return n.onDifficultLevelFilter("VERY_EASY",a.target.checked)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(185,"label",82),e.\u0275\u0275text(186," Very Easy"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(187,"div",21)(188,"div",22)(189,"input",83),e.\u0275\u0275listener("change",function(a){return n.onDifficultLevelFilter("EASY",a.target.checked)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(190,"label",84),e.\u0275\u0275text(191,"Easy"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(192,"div",21)(193,"div",22)(194,"input",85),e.\u0275\u0275listener("change",function(a){return n.onDifficultLevelFilter("MODERATELY_DIFFICULT",a.target.checked)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(195,"label",86),e.\u0275\u0275text(196,"Moderately Difficult "),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(197,"div",21)(198,"div",22)(199,"input",87),e.\u0275\u0275listener("change",function(a){return n.onDifficultLevelFilter("HIGHLY_DIFFICULT",a.target.checked)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(200,"label",88),e.\u0275\u0275text(201,"Highly Difficult"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(202,"div",21)(203,"div",22)(204,"input",89),e.\u0275\u0275listener("change",function(a){return n.onDifficultLevelFilter("EXTREMELY_DIFFICULT",a.target.checked)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(205,"label",90),e.\u0275\u0275text(206," Extremely Difficult"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275element(2
107,"div",21),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(208,"div",91)(209,"button",92),e.\u0275\u0275listener("click",function(){return n.resetFilterForQuestions(),n.isReset=!0}),e.\u0275\u0275text(210," Reset "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(211,"button",93),e.\u0275\u0275listener("click",function(){return n.getAllMasterQuestionBankForFilter(),n.isReset=!1}),e.\u0275\u0275text(212," Apply "),e.\u0275\u0275elementEnd()()()()()),2&s&&(e.\u0275\u0275property("ngIf",n.enableStep1Tab),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",n.enableStep2Tab),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",n.enableStep2Tab),e.\u0275\u0275advance(23),e.\u0275\u0275property("ngForOf",n.gradeList),e.\u0275\u0275advance(119),e.\u0275\u0275property("ngForOf",n.selectedTagDto),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngForOf",n.allGrades),e.\u0275\u0275advance(6),e.\u0275\u0275property("data",n.allSubjects)("settings",n.settingsForSubjectsFilter)("disabled",!1)("placeholder","Select Subject")("ngModel",n.selectedSubjectsForFilter),e.\u0275\u0275advance(7),e.\u0275\u0275property("data",n.allTopics)("settings",n.settingsForTopicsFilter)("disabled",!1)("placeholder","Select Topics")("ngModel",n.selectedTopicsForFilter),e.\u0275\u0275advance(6),e.\u0275\u0275property("data",n.allChapters)("settings",n.settingsForChapersFilter)("disabled",!1)("placeholder","Select Chapters")("ngModel",n.selectedChaptersForFilter))},dependencies:[r.mk,r.sg,r.O5,r.PC,h.rH,g.Fj,g.wV,g.Wl,g._,g.JJ,g.Q7,g.nD,g.qQ,g.On,y.OP,q.YR,N.R,M.c,V.u,Q.iR,r.rS,T.A],styles:['.grecaptcha-badge[_ngcontent-%COMP%]{display:none}html[_ngcontent-%COMP%]{scroll-behavior:smooth}#searchIcon[_ngcontent-%COMP%]{position:absolute;top:16px;left:15px;z-index:999;color:#bfbfbf}.cardForm[_ngcontent-%COMP%]{border-radius:20px;position:absolute;top:20%;left:50%;transform:translate(-50%,-50%);width:80%;padding:70px 10px}.buttonColor[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#37a5b5,#1d72a3)}.trueColor[_ngcontent-%COMP%]{background-color:#f8f8f8}.row[_ngcontent-%COMP%]{margin:0;padding:0}.fontWeight[_ngcontent-%COMP%]{font-weight:500}.txt-ellips[_ngcontent-%COMP%]{max-width:auto;text-overflow:ellipsis;width:100%;overflow:hidden;white-space:nowrap}.cardBorder[_ngcontent-%COMP%]{border-radius:30px}.buttonColor1[_ngcontent-%COMP%]{background:white;border:1px solid #1670a1;background:-webkit-linear-gradient(#37a5b5,#1d72a3);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.cardChange[_ngcontent-%COMP%]{border-radius:30px;overflow-y:scroll;max-height:500px}.icon[_ngcontent-%COMP%]{margin-left:12px}.alignment[_ngcontent-%COMP%]{margin:70px 10px!important}@media screen and (max-width: 768px){.borderRight[_ngcontent-%COMP%]{border-right:none}}.CardBorder[_ngcontent-%COMP%]{border-top-left-radius:15px;border-top-right-radius:15px;overflow:auto}.cardBorderRadius[_ngcontent-%COMP%]{box-shadow:2px 2px 4px 4px #80808027;border-radius:15px}.my_checkbox[_ngcontent-%COMP%]{width:15px;height:15px}.li25[_ngcontent-%COMP%]{margin:5px 0 5px 9px!important;list-style-type:none!important;background:#fff;border-radius:25px;color:#1e3757!important;padding:5px 10px;text-align:center;display:inline-block!important;border:1px solid #1e3757;font-weight:400;width:250px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.li15[_ngcontent-%COMP%]{margin:5px 6px!important;list-style-type:none!important;border-radius:25px;color:#666;padding:5px 10px;text-align:center;display:inline-block!important;border:1px solid #F7F7F7;font-weight:400;background:#F7F7F7}.li15[_ngcontent-%COMP%]:hover{background:none;border-color:#ff4a4a;color:#ff4a4a}
1textarea[_ngcontent-%COMP%]{width:100%}.ulClass[_ngcontent-%COMP%]{display:flex;position:relative;right:63px}.search-Icon[_ngcontent-%COMP%]{position:absolute;top:15px;right:30px;color:gray}[data-toggle=collapse][_ngcontent-%COMP%]:after{display:inline-block;font: 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\\f054";transform:rotate(90deg);transition:all linear .25s;color:#000}[data-toggle=collapse].collapsed[_ngcontent-%COMP%]:after{transform:rotate(0)}.color-Grey[_ngcontent-%COMP%]{background:rgba(128,128,128,.0509803922)}.text-linear-gradient[_ngcontent-%COMP%]{background:-webkit-linear-gradient(#10c69b,#03799c);margin:10px 0;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.text-linear-gradient1[_ngcontent-%COMP%]{color:#8796a8;background-color:none;border:1.13514px solid #8796A8;font-weight:600}.text-linear-gradient2[_ngcontent-%COMP%]{background:linear-gradient(to right,#10c69b,#03799c);color:#fff;border:1.13514px solid #8796A8;font-weight:600}.search-icon-modal[_ngcontent-%COMP%]{position:absolute;top:13px;left:50px;color:#808080ba}#modal[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:large;color:gray}#modal[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a.active[_ngcontent-%COMP%]{background:-webkit-linear-gradient(#10c69b,#03799c);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.tableHoverBackgroundEffect[_ngcontent-%COMP%]:hover{background-color:#80808014}.tableHoverColorEffect[_ngcontent-%COMP%]:hover{color:#39393f;font-weight:700}textarea[_ngcontent-%COMP%]::placeholder{font-size:13px;color:#827581}.search-results[_ngcontent-%COMP%]{height:589px;overflow-y:scroll}.questionContainer[_ngcontent-%COMP%]{overflow:auto;min-height:580px;max-height:580px}@media screen and (min-width: 992px) and (max-width: 1140px){.btn-col[_ngcontent-%COMP%], .search-col[_ngcontent-%COMP%]{padding-left:7px;padding-right:7px}.btninfoFilter[_ngcontent-%COMP%]{padding:7px 9px}.card-body[_ngcontent-%COMP%]{padding:15px}}@media screen and (max-width: 595px){.questions[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}}@media screen and (min-width: 1145px) and (max-width: 1200px){.questionContainer[_ngcontent-%COMP%]{overflow:auto;min-height:623px;max-height:625px!important}}@media screen and (min-width: 992px) and (max-width: 1200px){.continueBtn[_ngcontent-%COMP%]{margin-top:5px}}  .autocomplete-container{box-shadow:none!important;height:45px!important}  .autocomplete-container .input-container input{height:45px!important;border-radius:.25rem!important;border:1px solid #ccc!important}  .autocomplete-container .input-container input::placeholder{color:#a4a8ae;font-size:14px;font-style:normal}  .ck-editor__editable_inline{min-height:250px}.ck-editor__editable[_ngcontent-%COMP%]{min-height:1200px!important}.ck-rounded-corners[_ngcontent-%COMP%]   .ck.ck-editor__main[_ngcontent-%COMP%] > .ck-editor__editable[_ngcontent-%COMP%], .ck.ck-editor__main[_ngcontent-%COMP%] > .ck-editor__editable.ck-rounded-corners[_ngcontent-%COMP%]{visibility:hidden!important}.ck.ck-editor__editable_inline[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:last-child{margin:0!important}.ck.ck-editor__editable_inline[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{margin:0!important}.one[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%;display:flex;justify-content:center;align-items:center;background:linear-gradient(to right,#00e1ac,#03799c);color:#fff;margin-left:10px;font-weight:600}input[type=text][_ngcontent-%COMP%], input[type=number][_ngcontent-%COMP%]{height:45px}.form-control[_ngcontent-%COMP%]:focus{border:1px solid #ced4da!important}[_ngcontent-%COMP%]::placeholder{font-style:normal!important;font-size:14px!important;color:#a4a8ae!important}textarea[_ngcontent-%COMP%]::placeholder{color:#a4a8ae!important}textarea[_ngcontent-%COMP%]{outline:none!important;border-radius:.25rem}small[_ngcontent-%COMP%]{color:#6c757d!important}.dropdown[_ngcontent-%COMP%]{position:relative;display:inline-block}.radius[_ngcontent-%COMP%]{border-radius:50px}.dropdown-content[_ngcontent-%COMP%]{display:none;position:absolute;background-color:#fff;min-width:250px;box-shadow:0 8px 16px #0003;z-index:1;padding:10px;bottom:35px;border-radius:7px;left:15%;font-size:14px;color:#1e3757}.dropdown[_ngcontent-%COMP%]:hover   .dropdown-content[_ngcontent-%COMP%]{display:block}.filterContent[_ngcontent-%COMP%]:after{content:" ";position:absolute;top:100%;right:52%;border-width:10px;border-style:solid;border-color:#fff transparent transparent transparent}.customScrollClass[_ngcontent-%COMP%]{height:auto!important}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ng
1content-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], label[_ngcontent-%COMP%]{color:#1e3757}label[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.dots[_ngcontent-%COMP%]{width:3px;height:3px;background-color:#ddd;margin:1px}.defaultBar[_ngcontent-%COMP%]{width:5px;height:10px;background:#e9e9e9;margin:0 2px}.extremelyEasy[_ngcontent-%COMP%]{width:5px;height:10px;background-color:#00e1ac;margin:0 2px}.veryEasy[_ngcontent-%COMP%]{width:5px;height:10px;background:#1dd1fc;margin:0 2px}.easy[_ngcontent-%COMP%]{width:5px;height:10px;background:#fcbb1d;margin:0 2px}.moderatelyDifficult[_ngcontent-%COMP%]{width:5px;height:10px;background:#ff4a4a;margin:0 2px}.highlyDifficult[_ngcontent-%COMP%]{width:5px;height:10px;background:#bd0000;margin:0 2px}.exremelyDifficult[_ngcontent-%COMP%]{width:5px;height:10px;background:red;margin:0 2px}.droparea[_ngcontent-%COMP%]{height:152px;background:#fff;border-radius:0 0 5px 5px;border:1px dashed #ced4da;position:relative;padding-top:25px;text-align:center;border-radius:.25rem}.droparea1[_ngcontent-%COMP%]{height:210px;background:#fff;border-radius:0 0 5px 5px;border:1px dashed #ced4da;position:relative;padding-top:25px;text-align:center;border-radius:.25rem}.w-55[_ngcontent-%COMP%]{width:55%!important}.click[_ngcontent-%COMP%]{position:absolute;top:52%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;left:55%}.click1[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%)}.droparea[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%]:disabled{background-color:#fff!important}.droparea[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%]{position:absolute;top:50%;left:0;transform:translateY(-50%);text-align:right;height:25px!important}.droparea1[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%]:disabled{background-color:#fff!important}.droparea1[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%]{text-align:center;height:40px!important}.filename[_ngcontent-%COMP%]{position:absolute;bottom:15px;padding:5px 10px;width:100%}.filename[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{position:relative;right:30px}.textPlace[_ngcontent-%COMP%]::placeholder{color:#1e3757!important}.textPlace[_ngcontent-%COMP%], .click[_ngcontent-%COMP%]{font-size:16px;font-weight:500}.dotsImg[_ngcontent-%COMP%]{position:relative}.dotsdiv[_ngcontent-%COMP%]{position:absolute;left:37px}.checkbox-round[_ngcontent-%COMP%]{width:1.3em;height:1.3em;background-color:#fff;border-radius:50%;vertical-align:middle;border:1px solid #ddd;appearance:none;-webkit-appearance:none;outline:none;cursor:pointer}.checkbox-round[_ngcontent-%COMP%]:checked{background:linear-gradient(to right,#00e1ac,#03799c)}  .ui-slider.ui-slider-horizontal{margin:18px 6px 8px!important}  body .ui-slider .ui-slider-range{background:linear-gradient(90deg,#10C69B 23.49%,#03799C 72.57%)!important}  body .ui-slider .ui-slider-handle:focus{box-shadow:none!important}  body .ui-slider:not(.ui-state-disabled) .ui-slider-handle:hover{border:3px solid #fff!important;background:linear-gradient(90deg,#10C69B 23.49%,#03799C 72.57%)!important}  body .ui-slider .ui-slider-handle{background:linear-gradient(90deg,#10C69B 23.49%,#03799C 72.57%)!important;border:3px solid #fff!important;height:1.3em!important;width:1.3em!important}  body .ui-slider.ui-slider-horizontal .ui-slider-handle{margin-top:-.75em}@media screen and (min-width: 280px) and (max-width: 319px){.li25[_ngcontent-%COMP%]{width:95px}.instructions-div[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .instructions-div[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{font-size:14px}.mbl-display1[_ngcontent-%COMP%]{display:block}.mbl-display2[_ngcontent-%COMP%]{display:none}.filename[_ngcontent-%COMP%]{bottom:0}.filename[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{top:12px}.correctdiv[_ngcontent-%COMP%], .incorrectdiv[_ngcontent-%COMP%]{display:none}.correctdiv2[_ngcontent-%COMP%], .incorrectdiv2[_ngcontent-%COMP%]{display:block}.combinedDiv[_ngcontent-%COMP%]{display:flex;align-items:center}}@media screen and (min-width: 320px) and (max-width: 359px){.li25[_ngcontent-%COMP%]{width:110px}.mbl-display1[_ngcontent-%COMP%]{display:block}.mbl-display2[_ngcontent-%COMP%], .correctdiv[_ngcontent-%COMP%], .incorrectdiv[_ngcontent-%COMP%]{display:none}.correctdiv2[_ngcontent-%COMP%], .incorrectdiv2[_ngcontent-%COMP%]{display:block}.combinedDiv[_ngcontent-%COMP%]{display:flex;align-items:center}}@media screen and (min-width: 280px) and (max-width: 359px){.step[_ngcontent-%COMP%]{display:none}}@media screen and (min-width: 360px){.step[_ngcontent-%COMP%]{display:block}}@media screen and (min-width: 360px) and (max-width: 519px){.mbl-display1[_ngcontent-%COMP%]{display:block}.mbl-display2[_ngcontent-%COMP%], .correctdiv[_ngcontent-%COMP%], .incorrectdiv[_ngcontent-%COMP%]{display:none}.correctdiv2[_ngcontent-%COMP%], .incorrectdiv2[_ngcontent-%COMP%]{display:block}.combinedDiv[_ngcontent-%COMP%]{display:flex;align-items:center}}@media (min-width: 520px){.mbl-display2[_ngcontent-%COMP%]{display:block}.mbl-display1[_ngcontent-%COMP%]{display:none}.correctdiv[_ngcontent-%COMP%], .incorrectdiv[_ngcontent-%COMP%]{display:block}.correctdiv2[_ngcontent-%COMP%], .incorrectdiv2[_ngcontent-%COMP%]{display:none}.flexdiv[_ngcontent-%COMP%], .correctinput[_ngcontent-%COMP%], .incorrectinput[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}}@media screen and (min-width: 520px) and (max-width: 550px){.click[_ngcontent-%COMP%]{left:56%!important}}@media screen and (min-width: 551px) and (max-width: 599px){.click[_ngcontent-%COMP%]{left:56%!important}}@media screen and (min-width: 600px) and (max-width: 620px){.click[_ngcontent-%COMP%]{left:57%!important}}@media screen and (min-width: 621px) and (max-width: 991px){.click[_ngcontent-%COMP%]{left:56%!important}}@media screen and (min-width: 992px){.click[_ngcontent-%COMP%]{left:56%!important;top:49%}}@media screen and (min-width: 360px) and (max-width: 575px){.li25[_ngcontent-%COMP%]{width:130px}}@media screen and (max-width: 575px){.add-txt[_ngcontent-%COMP%]{font-size:25px}.one[_ngcontent-%COMP%]{width:30px;height:30px}#addeditquestion[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], #editquestion[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:25px}.questionContainer[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px!important;height:5px!important}}@media screen and (min-width: 576px) and (max-width: 767px){.add-txt[_ngcontent-%COMP%]{font-size:35px}.li25[_ngcontent-%COMP%]{width:180px}}@media screen and (min-width: 360px) and (max-width: 991px){.filename[_ngcontent-%COMP%]{bottom:0}}@media screen and (min-width: 768px) and (max-width: 840px){.li25[_ngcontent-%COMP%]{width:190px}}@media screen and (min-width: 841px) and (max-width: 991px){.li25[_ngcontent-%COMP%]{width:215px}}@media screen and (min-width: 992px) and (max-width: 1099px){.li25[_ngcontent-%COMP%]{width:185px}}@media screen and (min-width: 1100px) and (max-width: 1199px){.li25[_ngcontent-%COMP%]{width:215px}}@media screen and (min-width: 1200px) and (max-width: 1299px){.li25[_ngcontent-%COMP%]{width:160px}}@media screen and (min-width: 1300px) and (max-width: 1399px){.li25[_ngcontent-%COMP%]{width:175px}}@media screen and (min-width: 1400px) and (max-width: 1499px){.li25[_ngcontent-%COMP%]{width:185px}}@media screen and (min-width: 1500px) and (max-width: 1699px){.li25[_ngcontent-%COMP%]{width:210px}}@media screen and (min-width: 1600px) and (max-width: 1699px){.li25[_ngcontent-%COMP%]{width:220px}}@media screen and (min-width: 1700px) and (max-width: 1799px){.li25[_ngcontent-%COMP%]{width:250px}}@media screen and (min-width: 1800px) and (max-width: 1899px){.li25[_ngcontent-%COMP%]{width:250px}}@media screen and (min-width: 1900px) and (max-width: 1999px){.li25[_ngcontent-%COMP%]{width:280px}}@media screen and (min-width: 2000px) and (max-width: 2499px){.li25[_ngcontent-%COMP%]{width:280px}}@media screen and (min-width: 992px) and (max-width: 1024px){.add-txt[_ngcontent-%COMP%]{font-size:44px}}@media screen and (min-width: 1024px) and (max-width: 1280px){.add-txt[_ngcontent-%COMP%]{font-size:45px}}input[type=checkbox][_ngcontent-%COMP%], input[type=radio][_ngcontent-%COMP%]{padding:10px!important}.switch[_ngcontent-%COMP%]{position:relative;display:inline-block;width:40px;height:20px}.switch[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}.slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;background:linear-gradient(to right,#00e1ac,#03799c);transition:.4s}.slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:15px;width:15px;bottom:3px;background-color:#fff;transition:.4s}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background:linear-gradient(to right,#00e1ac,#03799c)}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{transform:translate(23px)}.slider.round[_ngcontent-%COMP%]{border-radius:34px}.slider.round[_ngcontent-%COMP%]:before{border-radius:50%}']})}return l})();var I=c(7490),E=c(2493),P=c(33826),O=c(86279),H=c(89047);const Ke=["multiSelectForTeacherFilter"],Je=["pp"];function je(l,o){1&l&&e.\u0275\u0275element(0,"app-loader")}function Xe(l,o){1&l&&(e.\u0275\u0275elementStart(0,"div",66)(1,"div")(2,"button",67),e.\u0275\u0275text(3," See All"),e.\u0275\u0275elementEnd()()())}function Ze(l,o){1&l&&(e.\u0275\u0275elementStart(0,"div")(1,"div",68)(2,"div",69)(3,"h4",70),e.\u0275\u0275text(4," No Records Found "),e.\u0275\u0275elementEnd()()()())}function et(l,o){if(1&l&&(e.\u0275\u0275elementStart(0,"span")(1,"span",78),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&l){const t=o.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate("title",null==(null==t?null:t.tagName)?"N/A":null==t?null:t.tagName),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null==(null==t?null:t.tagName)?"N/A":null==t?null:t.tagName," ")}}function tt(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",91),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext().$implicit,i=e.\u0275\u0275nextContext(2);
1return e.\u0275\u0275resetView(i.addToCart(n))}),e.\u0275\u0275element(1,"i",92),e.\u0275\u0275text(2," Add to Cart "),e.\u0275\u0275elementEnd()}}function nt(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",91),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext().$implicit,i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.purchaseFreeAssessment(n))}),e.\u0275\u0275element(1,"i",92),e.\u0275\u0275text(2," Free "),e.\u0275\u0275elementEnd()}}function st(l,o){if(1&l&&(e.\u0275\u0275elementStart(0,"div",73)(1,"div",68)(2,"div",74)(3,"div",4)(4,"div",75),e.\u0275\u0275element(5,"img",76),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div",4)(7,"div",75)(8,"div",77)(9,"b")(10,"span",78),e.\u0275\u0275text(11),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(12,"div",4)(13,"div",79)(14,"div",80)(15,"div"),e.\u0275\u0275element(16,"img",81),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(17,"div"),e.\u0275\u0275text(18),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(19,"div",4)(20,"div",82),e.\u0275\u0275template(21,et,3,2,"span",83),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(22,"div",4)(23,"div",84)(24,"div",66)(25,"div",85),e.\u0275\u0275text(26),e.\u0275\u0275pipe(27,"replace"),e.\u0275\u0275pipe(28,"titlecase"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(29,"div",86),e.\u0275\u0275element(30,"div",87)(31,"div",87)(32,"div",87)(33,"div",87)(34,"div",87)(35,"div",87),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275element(36,"div",88),e.\u0275\u0275elementStart(37,"div",66)(38,"div")(39,"div",89)(40,"b"),e.\u0275\u0275text(41),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(42,tt,3,0,"div",90),e.\u0275\u0275template(43,nt,3,0,"div",90),e.\u0275\u0275elementEnd()()()()),2&l){const t=o.$implicit,s=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(5),e.\u0275\u0275property("src",s.getUserProfile(t),e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(5),e.\u0275\u0275propertyInterpolate("title",null==(null==t?null:t.title)?"N/A":null==t?null:t.title),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null==(null==t?null:t.title)?"N/A":null==t?null:t.title," "),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("title","null"==(null==t||null==t.publishedByUser?null:t.publishedByUser.fullName)?"N/A":null==t||null==t.publishedByUser?null:t.publishedByUser.fullName),e.\u0275\u0275advance(3),e.\u0275\u0275property("src",s.getImageOfuser(t),e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",null==(null==t||null==t.publishedByUser?null:t.publishedByUser.fullName)?"N/A":null==t||null==t.publishedByUser?null:t.publishedByUser.fullName," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",t.tags),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",null==(null==t?null:t.difficultLevel)?"N/A":e.\u0275\u0275pipeBind1(27,18,e.\u0275\u0275pipeBind1(28,20,null==t?null:t.difficultLevel))," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,1)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,2)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,3)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,4)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,5)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,6)),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate2(" ",null==(null==t?null:t.currency)?"INR":null==t?null:t.currency," ",null==(null==t?null:t.price)?"0":null==t?null:t.price,""),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null!=t.price&&t.price>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==t.price||0==t.price)}}function it(l,o){if(1&l&&(e.\u0275\u0275elementStart(0,"div")(1,"carousel",71),e.\u0275\u0275template(2,st,44,22,"div",72),e.\u0275\u0275elementEnd()()),2&l){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("cellsToShow",t.carouselCells)("cellWidth",250),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.findAssessmentListData)}}function at(l,o){if(1&l&&(e.\u0275\u0275elementStart(0,"span")(1,"span",78),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&l){const t=o.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate("title",null==(null==t?null:t.tagName)?"N/A":null==t?null:t.tagName),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null==(null==t?null:t.tagName)?"N/A":null==t?null:t.tagName," ")}}function lt(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",91),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext().$implicit,i=e.\u0275\u0275nextContext(2);
1return e.\u0275\u0275resetView(i.addToCart(n))}),e.\u0275\u0275element(1,"i",92),e.\u0275\u0275text(2," Add to Cart "),e.\u0275\u0275elementEnd()}}function ot(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",91),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext().$implicit,i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.purchaseFreeAssessment(n))}),e.\u0275\u0275element(1,"i",92),e.\u0275\u0275text(2," Free "),e.\u0275\u0275elementEnd()}}function rt(l,o){if(1&l&&(e.\u0275\u0275elementStart(0,"div",73)(1,"div",68)(2,"div",74)(3,"div",4)(4,"div",75),e.\u0275\u0275element(5,"img",94),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div",4)(7,"div",75)(8,"div",77)(9,"b")(10,"span",78),e.\u0275\u0275text(11),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(12,"div",4)(13,"div",79)(14,"div",80)(15,"div"),e.\u0275\u0275element(16,"img",81),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(17,"div"),e.\u0275\u0275text(18),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(19,"div",4)(20,"div",82),e.\u0275\u0275template(21,at,3,2,"span",83),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(22,"div",4)(23,"div",84)(24,"div",66)(25,"div",85),e.\u0275\u0275text(26),e.\u0275\u0275pipe(27,"replace"),e.\u0275\u0275pipe(28,"titlecase"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(29,"div",86),e.\u0275\u0275element(30,"div",87)(31,"div",87)(32,"div",87)(33,"div",87)(34,"div",87)(35,"div",87),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275element(36,"div",88),e.\u0275\u0275elementStart(37,"div",66)(38,"div")(39,"div",89)(40,"b"),e.\u0275\u0275text(41),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(42,lt,3,0,"div",90),e.\u0275\u0275template(43,ot,3,0,"div",90),e.\u0275\u0275elementEnd()()()()),2&l){const t=o.$implicit,s=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(5),e.\u0275\u0275property("src",s.getUserProfile(t),e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(5),e.\u0275\u0275propertyInterpolate("title",null==(null==t?null:t.title)?"N/A":null==t?null:t.title),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null==(null==t?null:t.title)?"N/A":null==t?null:t.title," "),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("title","null"==(null==t||null==t.publishedByUser?null:t.publishedByUser.fullName)?"N/A":null==t||null==t.publishedByUser?null:t.publishedByUser.fullName),e.\u0275\u0275advance(3),e.\u0275\u0275property("src",s.getImageOfuser(t),e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",null==(null==t||null==t.publishedByUser?null:t.publishedByUser.fullName)?"N/A":null==t||null==t.publishedByUser?null:t.publishedByUser.fullName," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",t.tags),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",null==(null==t?null:t.difficultLevel)?"N/A":e.\u0275\u0275pipeBind1(27,18,e.\u0275\u0275pipeBind1(28,20,null==t?null:t.difficultLevel))," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,1)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,2)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,3)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,4)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,5)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,6)),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate2(" ",null==t?null:t.currency," ",null==(null==t?null:t.price)?"0":null==t?null:t.price,""),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null!=t.price&&t.price>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==t.price||0==t.price)}}function dt(l,o){if(1&l&&(e.\u0275\u0275elementStart(0,"div")(1,"carousel",93),e.\u0275\u0275template(2,rt,44,22,"div",72),e.\u0275\u0275elementEnd()()),2&l){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("cellsToShow",t.carouselCells)("cellWidth",250)("arrows",t.arrowsEnableForInterestedA
1ssessments),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.getInterestAssessmentData)}}function ct(l,o){1&l&&(e.\u0275\u0275elementStart(0,"div")(1,"div",68)(2,"div",74)(3,"h3",95),e.\u0275\u0275text(4," No Records Found "),e.\u0275\u0275elementEnd()()()())}function mt(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",75)(1,"div",4)(2,"div",96),e.\u0275\u0275element(3,"img",97),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",98)(5,"div",99)(6,"div",100)(7,"b",101),e.\u0275\u0275text(8),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(9,"div",99)(10,"div",102)(11,"span",78),e.\u0275\u0275text(12),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(13,"div",103)(14,"div",104)(15,"span"),e.\u0275\u0275text(16),e.\u0275\u0275elementStart(17,"span",105),e.\u0275\u0275text(18),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(19,"div",106),e.\u0275\u0275listener("click",function(){const i=e.\u0275\u0275restoreView(t).$implicit,a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.deleteCart(i))}),e.\u0275\u0275element(20,"i",107),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275element(21,"hr"),e.\u0275\u0275elementEnd()}if(2&l){const t=o.$implicit,s=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275property("src",s.getUserProfile(null==t?null:t.assessmentDto),e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate("title",null==(null==t||null==t.assessmentDto?null:t.assessmentDto.title)?"N/A":null==t||null==t.assessmentDto?null:t.assessmentDto.title),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t||null==t.assessmentDto?null:t.assessmentDto.title),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate("title",null==(null==t||null==t.assessmentDto?null:t.assessmentDto.tagNames)?"N/A":null==t||null==t.assessmentDto?null:t.assessmentDto.tagNames),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null==(null==t||null==t.assessmentDto?null:t.assessmentDto.tagNames)?"N/A":null==t||null==t.assessmentDto?null:t.assessmentDto.tagNames," "),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",null==t||null==t.assessmentDto?null:t.assessmentDto.currency," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",null==t||null==t.assessmentDto?null:t.assessmentDto.price,"")}}function pt(l,o){1&l&&(e.\u0275\u0275elementStart(0,"div",108)(1,"h5",95),e.\u0275\u0275text(2,"Your Cart Is Empty"),e.\u0275\u0275elementEnd()())}function ht(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",109)(1,"button",110),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(n.paymentNow())}),e.\u0275\u0275text(2,"Proceed to pay"),e.\u0275\u0275elementEnd()()}}function gt(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",111)(1,"div",112)(2,"input",113),e.\u0275\u0275listener("change",function(){const i=e.\u0275\u0275restoreView(t).$implicit,a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.selectedOrUnSelectedtag(i,"GRADE"))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"label",114),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()()}if(2&l){const t=o.$implicit,s=o.index;e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate1("id","grade",s,"")("name","grade",s,""),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate1("for","grade",s,""),e.\u0275\u0275propertyInterpolate("title",null==(null==t?null:t.tagHierarchy)?"N/A":null==t?null:t.tagHierarchy),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null==t?null:t.tagName,"")}}let ut=(()=>{class l{initPay(){this.rzp1=new Razorpay(this.options),this.rzp1.open()}constructor(t,s,n,i,a,d){this.apiService=t,this.toaster=s,this.router=n,this.activatedRoute=i,this.titleService=a,this.platformId=d,this.isReset=!1,this.getAssessmentDataRequest=new u.iE,this.getAssessmentDataRequestForMightBeIntrested=new u.iE,this.getCartDetailsRequest=new u.iE,this.getDataRequest=new v.l,this.findAssessmentDto=new P._,this.currentPage=1,this.findAssessmentListData=[],this.findAssessmentListDummyData=[],this.getInterestAssessmentData=[],this.getInterestAssessmentDataDummyData=[],this.numberOfRowsPerPage=5,this.currentPageNumber=0,this.p=[],this.dummyAddToCartAssessment=[],this.paymentOrder=new O.m,this.addToCartArray=[],this.cartAssessmentDto=[],this.totalAmount=0,this.subjectIds=[],this.gradeIds=[],this.cartDetails=[],this.selectedTagDto=[],this.selectedTagIds=[],this.selectedTeachers=[],this.allGrades=[],this.allSubjects=[],this.allChapters=[],this.allTopics=[],this.options={key:"",amount:0,currency:"INR",name:"",description:"",image:"https://example.com/your_logo",order_id:"",handler:m=>{this.getPaymentConfirmation(m.razorpay_payment_id,m.razorpay_order_id,m.razorpay_signature)},prefill:{name:"",email:"",contact:""},notes:{address:"Razorpay Corporate Office"},theme:{color:"#F37254"},modal:{ondismiss:this.closeRazorrPayModel.bind(this)}},this.isLoading=!1,this.settingsForTeachersFilter={singleSelection:!1,idField:"id",textField:"fullName",enableCheckAll:!1,selectAllText:"Select all",unSelectAllText:"UnSelect all",allowSearchFilter:!0,limitSelection:-1,clearSearchFilter:!0,maxHeight:197,itemsShowLimit:6,searchPlaceholderText:"Select Teachers",noDataAvailablePlaceholderText:"No Chapters Available",closeDropDownOnSelection:!1,showSelectedItemsAtTop:!1,defaultOpen:!1},this.settingsForSubjectsFilter={singleSelection:!1,idField:"id",textField:"tagName",enableCheckAll:!1,selectAllText:"Select all",unSelectAllText:"UnSelect all",allowSearchFilter:!0,limitSelection:-1,clearSearchFilter:!0,maxHeight:197,itemsShowLimit:6,searchPlaceholderText:"Search Subject",noDataAvailablePlaceholderText:"No Subjects Available",closeDropDownOnSelection:!1,showSelectedItemsAtTop:!1,defaultOpen:!1},this.settingsForTopicsFilter={singleSelection:!1,idField:"id",textField:"tagName",enableCheckAll:!1,selectAllText:"Select all",unSelectAllText:"UnSelect all",allowSearchFilter:!0,limitSelection:-1,clearSearchFilter:!0,maxHeight:197,itemsShowLimit:6,searchPlaceholderText:"Search Topic",noDataAvailablePlaceholderText:"No Topics Available",closeDropDownOnSelection:!1,showSelectedItemsAtTop:!1,defaultOpen:!1},this.settingsForChapersFilter={singleSelection:!1,idField:"id",textField:"tagName",enableCheckAll:!1,selectAllText:"Select all",unSelectAllText:"UnSelect all",allowSearchFilter:!0,limitSelection:-1,clearSearchFilter:!0,maxHeight:197,itemsShowLimit:6,searchPlaceholderText:"Search Chapters",noDataAvailablePlaceholderText:"No Chapters Available",closeDropDownOnSelection:!1,showSelectedItemsAtTop:!1,defaultOpen:!1},this.getAllTeachersForFilter=[],this.arrowsEnableForInterestedA
1ssessments=!1,this.arrowsEnableForFindAssessments=!1,this.cards=[{title:"Calculus Function",description:"Sold: 257 times",Teacher:"Ranjith",interest:"Grade 9, Course 1, Topic 1",img:"../../../assets/assessment-image.png",level:"Beginner",price:"\u20b9500"},{title:"Inductive reasoning",description:"Sold: 257 times",Teacher:"Ranjith",interest:"Grade 9, Course 1, Topic 1",img:"../../../assets/assessment-image.png",level:"Beginner",price:"\u20b9500"},{title:"Electro-Chemical Cells",description:"Sold: 257 times",Teacher:"Ranjith",interest:"Grade 9, Course 1, Topic 1",img:"../../../assets/assessment-image.png",level:"Beginner",price:"\u20b9500"},{title:"Solid State",description:"Sold: 257 times",Teacher:"Ranjith",interest:"Grade 9, Course 1, Topic 1",img:"../../../assets/assessment-image.png",level:"Beginner",price:"\u20b9500"},{title:"Liquid State",description:"Sold: 257 times",Teacher:"Ranjith",interest:"Grade 9, Course 1, Topic 1",img:"../../../assets/assessment-image.png",level:"Beginner",price:"\u20b9500"}],this.disabledAddToCart=!1,this.onSearchShowData=m=>{(m&&m.target.value.length>=3||m&&0==m.target.value.length)&&(this.getAssessmentDataRequest.searchKey=m.target.value,this.getFindAssessmentData())},this.teachersFilter=[],this.subjectsFilter=[],this.topicsFilter=[],this.ChaptersFilter=[],this.titleService.setTitle("Dynamind Mentor Find Assessment")}closeRazorrPayModel(){this.cartDetails.forEach(t=>{this.paymentOrder.assessments.pop()})}ngOnInit(){this.hideRecaptcha(),this.getAllTags(this.getDataRequest.filterType="GRADE"),this.getAllTags(this.getDataRequest.filterType="SUBJECT"),this.getAllTags(this.getDataRequest.filterType="TOPIC"),this.getAllTags(this.getDataRequest.filterType="CHAPTER"),this.getAssessmentDataRequest.pageSize=6,$(function(){$(".checkbox-count")}),this.indicationOfBack=this.activatedRoute.snapshot.queryParams.seeAllAssessments,(0,r.NF)(this.platformId)&&window.scrollTo(0,0),this.getDataRequest.pageNumber=0,this.getDataRequest.pageSize=25,this.getFindAssessmentData(),this.getCartDetails(),this.getAllFindAssessementsWhichYouWereInterestedFor(),this.getAllFindAssessmentTeachersFilters(),(0,r.NF)(this.platformId)&&this.checkScreenRatio(window.innerWidth)}hideRecaptcha(){const t=$(".grecaptcha-badge");if(t.length)return t.css({display:"none"});requestAnimationFrame(()=>this.hideRecaptcha())}selectedTeacher(t){}getAllFindAssessmentTeachersFilters(){this.getDataRequest.pageSize=25,this.apiService.postService(this.apiService.apiUrls.getAllFindAssessmentTeachersFilters,this.getDataRequest).subscribe(t=>{t&&200==t.statusCode&&t.data&&t.data.content?this.getAllTeachersForFilter=t.data.content:this.toaster.show(t?.message,"Info")},t=>{401==t.status?(this.isLoading=!1,this.toaster.show(t.message?t.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(t?.error?.message,"Info"))})}getAllFindAssessementsWhichYouWereInterestedFor(){this.isLoading=!0,this.apiService.postService(this.apiService.apiUrls.getAllFindAssessementsWhichYouWereInterestedFor,this.getAssessmentDataRequestForMightBeIntrested).subscribe(t=>{t&&200===t.statusCode?(this.isLoading=!1,this.getInterestAssessmentData=t.data.content,this.getInterestAssessmentData.length>4&&(this.arrowsEnableForInterestedAssessments=!0)):(this.isLoading=!1,this.toaster.show(t?.message,"Info"))},t=>{401==t.status?(this.isLoading=!1,this.toaster.show(t.message?t.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(t?.error?.message,"Info"))})}getAllTags(t){this.getDataRequest.pageSize=25,this.getDataRequest.filterTagIds=this.selectedTagIds,this.getDataRequest.filterType=t,this.apiService.postService(this.apiService.apiUrls.getAllTags,this.getDataRequest).subscribe(s=>{if(s&&200==s.statusCode&&s.data&&s.data.content){let n=s.data.content;n&&("GRADE"==t?this.allGrades=n:"SUBJECT"==t?this.allSubjects=n:"TOPIC"==t?this.allTopics=n:"CHAPTER"==t&&(this.allChapters=n))}else this.isLoading=!1,this.toaster.show(s?.message,"Info")},s=>{401==s.status?(this.isLoading=!1,this.toaster.show(s.message?s.message:"Something Went Wrong","Warning"),
1(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(s?.error?.message,"Info"))})}selectedOrUnSelectedtag(t,s){"SUBJECT"===s?t=this.allSubjects.filter(i=>i.id===t.id)[0]:"TOPIC"===s?t=this.allTopics.filter(i=>i.id===t.id)[0]:"CHAPTER"===s&&(t=this.allChapters.filter(i=>i.id===t.id)[0]);let n=this.selectedTagDto.findIndex(i=>i.id==t.id);-1==n?this.selectedTagDto.push(t):this.selectedTagDto.splice(n,1),this.applyFilterAndChildTagSelection(s)}applyFilterAndChildTagSelection(t){this.selectedTagIds=[];for(let s of this.selectedTagDto){let n=this.selectedTagIds.findIndex(i=>i===s.parentId);-1!=n&&this.selectedTagIds.splice(n,1),this.selectedTagIds.push(s.id)}"GRADE"===t?(this.getAllTags(this.getDataRequest.filterType="SUBJECT"),this.getAllTags(this.getDataRequest.filterType="TOPIC"),this.getAllTags(this.getDataRequest.filterType="CHAPTER")):"SUBJECT"===t?(this.getAllTags(this.getDataRequest.filterType="TOPIC"),this.getAllTags(this.getDataRequest.filterType="CHAPTER")):"TOPIC"===t?(this.getAllTags(this.getDataRequest.filterType="CHAPTER"),this.getAllTags(this.getDataRequest.filterType="SUBJECT")):"CHAPTER"===t&&(this.getAllTags(this.getDataRequest.filterType="SUBJECT"),this.getAllTags(this.getDataRequest.filterType="TOPIC"))}onFilterChange(t){}onDropDownClose(t){}onItemSelect(t){}onDeSelect(t){}onSelectAll(t){}onDeSelectAll(t){}expandItems(){this.expanded=!0}getFindAssessmentData(){this.isLoading=!this.getAssessmentDataRequest.searchKey&&""!=this.getAssessmentDataRequest.searchKey,this.getAssessmentDataRequest.tagIds=[],this.gradeIds&&this.gradeIds.length>0&&this.gradeIds.forEach(t=>this.getAssessmentDataRequest.tagIds.push(t)),this.getAssessmentDataRequest.pageSize=25,this.apiService.postService(this.apiService.apiUrls.getFindAssessmentData,this.getAssessmentDataRequest).subscribe(t=>{t&&200===t.statusCode&&(0,r.NF)(this.platformId)?(this.isLoading=!1,this.isReset||$("#findFilter").modal("hide"),this.totalPages=t.data?t.data.totalPages:1,this.findAssessmentListData=t.data.content,this.findAssessmentListDummyData=t.data.content,this.findAssessmentListDummyData.length>4&&(this.arrowsEnableForFindAssessments=!0)):(this.isLoading=!1,this.toaster.show(t?.message,"Info"))},t=>{401==t.status?(this.isLoading=!1,this.toaster.show(t.message?t.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(t?.error?.message,"Info"))})}
1getInterestedAssessmenet(){this.isLoading=!0,this.getAssessmentDataRequest.tagIds=[],this.gradeIds&&this.gradeIds.length>0&&this.gradeIds.forEach(t=>this.getAssessmentDataRequest.tagIds.push(t)),this.getAssessmentDataRequest.pageSize=25,this.apiService.postService(this.apiService.apiUrls.getInterestedAssessmenet,this.getAssessmentDataRequest).subscribe(t=>{t&&200===t.statusCode?(this.isLoading=!1,this.totalPages=t.data?t.data.totalPages:1,this.getInterestAssessmentData=t.data.content,this.getInterestAssessmentDataDummyData=t.data.content):(this.isLoading=!1,this.toaster.show(t?.message,"Info"))},t=>{401==t.status?(this.isLoading=!1,this.toaster.show(t.message?t.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(t?.error?.message,"Info"))})}deleteCart(t){this.deleteId=t.id}deleteSingleRecord(){this.apiService.deleteService(this.apiService.apiUrls.deleteSingleCartItem+"/?id="+this.deleteId).subscribe(t=>{t&&200==t.statusCode?(this.cartDetails.forEach(s=>{this.totalAmount=this.totalAmount-s.assessmentDto.price}),this.toaster.show(t?.message,"Success"),this.getCartDetails(),this.getFindAssessmentData()):(this.isLoading=!1,this.toaster.show(t?.message,"Info"))},t=>{401==t.status?(this.isLoading=!1,this.toaster.show(t.message?t.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(t?.error?.message,"Info"))})}getCartDetails(){this.apiService.postService(this.apiService.apiUrls.getCartDetails,this.getCartDetailsRequest).subscribe(t=>{t&&200===t.statusCode&&t.data.CART_ITEMS.content&&(this.cartDetails=t.data.CART_ITEMS&&null!=t.data.CART_ITEMS.content?t.data.CART_ITEMS.content:[],this.totalAmountCount())})}totalAmountCount(){this.totalAmount=0,this.cartDetails.forEach(t=>{this.totalAmount=this.totalAmount+t.assessmentDto.price})}addToCart(t){this.disabledAddToCart=!0;let s=new E.s,n=new I.l,i=new A.$;i.id=t.id,n.assessmentDto=i,s.cartDtos.push(n),this.apiService.postService(this.apiService.apiUrls.addToCart,s).subscribe(a=>{a&&200===a.statusCode&&(0,r.NF)(this.platformId)?(this.toaster.show(a?.message,"Success"),this.dummyAddToCartAssessment=[],this.cartAssessmentDto=[],this.disabledAddToCart=!1,$("input[type=checkbox]").prop("checked",!1),this.getCartDetails(),this.getAssessmentDataRequest.searchKey&&(this.getAssessmentDataRequest.searchKey=null),this.getFindAssessmentData(),this.getAllFindAssessementsWhichYouWereInterestedFor()):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,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/"),this.disabledAddToCart=!1):(this.isLoading=!1,this.toaster.show(a?.error?.message,"Info"))})}purchaseFreeAssessment(t){this.isLoading=!0,this.apiService.postService(this.apiService.apiUrls.freeAssessmentPurchase,{assessments:[{id:t.id}]}).subscribe(n=>{n&&200===n.statusCode?(this.isLoading=!1,this.toaster.show(n?.message,"Success"),this.getCartDetails(),this.getFindAssessmentData()):this.toaster.show(n?.message,"Info")},n=>{401==n.status?(this.isLoading=!1,this.toaster.show(n.message?n.message:"Something Went Wrong","Warning")):(this.isLoading=!1,this.toaster.show(n?.error?.message,"Info"))})}onAddToCartChange(t,s){if((0,r.NF)(this.platformId))if(s)this.addToCartArray.find(i=>i.id==t.id)?(this.toaster.show("Already Existed","Warning"),$("input[type=checkbox]").prop("checked",!1)):0==this.dummyAddToCartAssessment.filter(a=>a.id==t.id).length&&this.dummyAddToCartAssessment.push(t);else{let n=this.dummyAddToCartAssessment.findIndex(i=>i.id==t.id);-1!=n&&this.dummyAddToCartAssessment.splice(n,1)}}getAllSubjectsData(){this.getDataRequest.filterType="SUBJECT",this.apiService.postService(this.apiService.apiUrls.getAllTags,this.getDataRequest).subscribe(t=>{t&&200==t.statusCode?t.data&&t.data.content&&(this.subjectList=t.data.content):this.toaster.show(t?.message,"Info")},t=>{401==t.status?(this.isLoading=!1,this.toaster.show(t.message?t.message:"Something Went Wrong","Warning"),
1(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(t?.error?.message,"Info"))})}paginate(t){this.getAssessmentDataRequest.pageNumber=t.page,this.getFindAssessmentData()}getTotalRecords(){return this.totalPages*this.numberOfRowsPerPage}getAllGradesData(){this.getDataRequest.filterType="GRADE",this.apiService.postService(this.apiService.apiUrls.getAllTags,this.getDataRequest).subscribe(t=>{t&&200==t.statusCode?t.data&&t.data.content&&(this.gradeList=t.data.content):this.toaster.show(t?.message,"Info")},t=>{401==t.status?(this.isLoading=!1,this.toaster.show(t.message?t.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(t?.error?.message,"Info"))})}resetFilterMultiDropDownSelections(){this.teachersFilter=[],this.subjectsFilter=[],this.topicsFilter=[],this.ChaptersFilter=[]}getAllInterestAreasData(){this.getDataRequest.filterType="GRADE",this.apiService.postService(this.apiService.apiUrls.getAllTags,this.getDataRequest).subscribe(t=>{t&&200==t.statusCode?t.data&&t.data.content&&(this.interestAreaList=t.data.content):this.toaster.show(t?.message,"Info")},t=>{401==t.status?(this.isLoading=!1,this.toaster.show(t.message?t.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(t?.error?.message,"Info"))})}onInterestAreaSelectForTeacherFilter(t){let s=this.selectedTeachers.findIndex(n=>n==t.id);-1==s?this.selectedTeachers.push(t.id):this.selectedTeachers.splice(s,1)}onDifficultLevelSelectForFilter(t,s){let n=this.getAssessmentDataRequest.difficultLevels.findIndex(i=>i===t);s&&-1==n?this.getAssessmentDataRequest.difficultLevels.push(t):!s&&n>=0&&this.getAssessmentDataRequest.difficultLevels.splice(n,1)}onSubjectSelectForFilter(t,s){let n=this.subjectIds.findIndex(i=>i===t);s&&-1==n?this.subjectIds.push(t):!s&&n>=0&&this.subjectIds.splice(n,1)}reloadComponent(){let t=this.router.url;this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate([t])}resetFilterForQuestions(){(0,r.NF)(this.platformId)&&(this.getAssessmentDataRequest=new u.iE,this.gradeIds=[],this.subjectIds=[],this.selectedTagDto=[],this.selectedTagIds=[],this.selectedTeachers=[],$("input[type=checkbox]").prop("checked",!1),this.getFindAssessmentData(),this.getAllInterestAreasData(),this.resetFilterMultiDropDownSelections(),this.getAllTags("GRADE"))}applyFilterForQuestions(){(0,r.NF)(this.platformId)&&($("#findFilter").modal("hide"),this.getAssessmentDataRequest.filterTagIds=this.selectedTagIds,this.selectedTeachers.length>0&&(this.getAssessmentDataRequest.userIds=this.selectedTeachers),this.getFindAssessmentData())}paymentNow(){this.paymentOrder.paymentOption="ONLINE",this.cartDetails.forEach(s=>{this.paymentOrder.assessments.push({id:s.assessmentDto.id,purchasedAmount:s.assessmentDto.price})}),this.paymentOrder.amount=this.totalAmount,this.apiService.postService(this.apiService.apiUrls.paymentAndCurrency,this.paymentOrder).subscribe(s=>{s&&200==s.statusCode&&(this.options.name="Dynaminds",this.options.description="Assessment Fee",this.options.image="https://dynamind-public.s3.ap-south-1.amazonaws.com/dynamind_payment_logo.png",this.options.order_id=s.data.id,this.options.key=s.data.keyId,this.initPay())},s=>{401==s.status?(this.isLoading=!1,this.toaster.show(s.message?s.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(s?.error?.message,"Info"))})}getPaymentConfirmation(t,s,n){this.paymentOrder.razorpayPaymentId=t,this.paymentOrder.razorpayOrderId=s,this.paymentOrder.razorpaySignature=n,this.paymentOrder.amount=this.totalAmount,this.paymentOrder.cartDtos=this.cartDetails,console.log(this.findAssessmentListData),this.paymentOrder.currency=this.findAssessmentListData[0].currency,this.apiService.postService(this.apiService.apiUrls.paymentUpdate,this.paymentOrder).subscribe(i=>{i&&200==i.statusCode&&(this.toaster.show(i.message,"Success"),this.router.navigate(["/navigation-bar/mentor/orders"],{queryParams:{selectedTab:"all-transactions",enableLink:"allTransactions"}}))},i=>{401==i.status?(this.isLoading=!1,this.toaster.show(i.message?i.message:"Something Went Wrong","Warning"),
1(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.toaster.error(i.error?i.error.message?i.error.message:"Something went wrong from server side. Please try again after sometime":i.message),this.toaster.show(i?.error?.message,"Info"))})}getUserProfile(t){return t&&t.photo&&null!=t?.photo?.fileId&&t.photo.filePreviewUrl?this.apiService.baseUrl+t.photo.filePreviewUrl:"./assets/assessment-image.png"}getImageOfuser(t){return t&&t.publishedByUser&&t.publishedByUser.profilePicture?.filePreviewUrl?this.apiService.baseUrl+t.publishedByUser.profilePicture.filePreviewUrl:"./assets/assessment-image.png"}getDefaultBar(t,s){return""==t||null==t?"defaultBar":"EXTREMELY_EASY"===t?1==s?"extremelyEasy":"defaultBar":"VERY_EASY"===t?1==s||2==s?"veryEasy":"defaultBar":"EASY"===t?1==s||2==s||3==s?"easy":"defaultBar":"MODERATELY_DIFFICULT"===t?1==s||2==s||3==s||4==s?"moderatelyDifficult":"defaultBar":"HIGHLY_DIFFICULT"===t?1==s||2==s||3==s||4==s||5==s?"highlyDifficult":"defaultBar":"EXTREMELY_DIFFICULT"===t?1==s||2==s||3==s||4==s||5==s||6==s?"exremelyDifficult":"defaultBar":void 0}disabledResetButtonForFilters(){return 0==this.selectedTeachers.length&&0==this.selectedTagIds.length}onResize(t){this.checkScreenRatio(t.target.innerWidth)}checkScreenRatio(t){t>=280&&t<=360&&(this.carouselCells=1),t>360&&t<=420&&(this.carouselCells=1),t>420&&t<=460&&(this.carouselCells=1),t>460&&t<=520&&(this.carouselCells=1),t>520&&t<=576&&(this.carouselCells=2),t>576&&t<=640&&(this.carouselCells=2),t>640&&t<=768&&(this.carouselCells=2),t>768&&t<=991&&(this.carouselCells=3),t>=992&&t<=1024&&(this.carouselCells=2),t>1024&&t<=1280&&(this.carouselCells=2),t>1280&&t<=1366&&(this.carouselCells=3),t>1366&&t<=1440&&(this.carouselCells=3),t>1440&&t<=1600&&(this.carouselCells=3),t>1600&&t<=2600&&(this.carouselCells=4)}static#e=this.\u0275fac=function(s){return new(s||l)(e.\u0275\u0275directiveInject(S.s),e.\u0275\u0275directiveInject(b._W),e.\u0275\u0275directiveInject(h.F0),e.\u0275\u0275directiveInject(h.gz),e.\u0275\u0275directiveInject(C.Dx),e.\u0275\u0275directiveInject(e.PLATFORM_ID))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:l,selectors:[["app-find-assessment"]],viewQuery:function(s,n){if(1&s&&(e.\u0275\u0275viewQuery(Ke,5),e.\u0275\u0275viewQuery(Je,5)),2&s){let i;e.\u0275\u0275queryRefresh(i=e.\u0275\u0275loadQuery())&&(n.multiSelectForTeacherFilter=i.first),e.\u0275\u0275queryRefresh(i=e.\u0275\u0275loadQuery())&&(n.paginator=i.first)}},hostBindings:function(s,n){1&s&&e.\u0275\u0275listener("resize",function(a){return n.onResize(a)},!1,e.\u0275\u0275resolveWindow)},decls:114,vars:31,consts:[[4,"ngIf"],[1,"row","d-flex","align-items-center","mt-3"],[1,"col-12","px-0","px-sm-3"],[1,"find","mb-0"],[1,"row"],[1,"col-md-12","col-lg-8","col-xl-9","px-0","px-sm-3"],[1,"d-flex","flex-wrap","flex-sm-nowrap"],[1,"input-group","searchgroup","my-2","my-sm-0"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"bx","bx-search",2,"font-size","larger"],["type","text","placeholder","Search...",1,"form-control","border-left-0","pl-0","search-box",3,"keyup"],["data-toggle","modal","data-target","#findFilter",1,"btn","btn-info","filter-btn","border-0"],[1,"bx","bx-filter-alt"],[1,"d-flex","justify-content-between","align-items-center","flex-wrap","flex-sm-nowrap","my-4"],[1,"bx","bxs-file-find","cart-Icon",2,"position","relative","top","5px"],["class","d-flex",4,"ngIf"],[1,"mt-5"],[1,"row","mb-3"],[1,"col-lg-9","p-0"],[1,"mb-3"],["src","../../../../assets/online-portal/heart.png","alt","",1,"mr-2"],[1,"col-lg-3","text-right"],["routerLink","/navigation-bar/mentor/assessment/find-all-interes-assessments",1,"btn","btn-info","filter-btn","border-0"],[1,"col-md-12","col-lg-4","col-xl-3","px-0","px-sm-3"],[1,"card","mb-3"],[1,"row","cart-div"],[1,"bx","bxs-cart","cart-Icon","mr-2"],[2,"color","#1E3757"],[1,"row",2,"border-bottom","1px solid #C4C4C4"],["class","col-lg-12",4,"ngFor","ngForOf"],["style","border-bottom: 1px solid #C4C4C4;","class","py-3 text-center",4,"ngIf"],[1,"my-3"],[1,"text-right","mr-2","text-nowrap"],[1,"text-right",2,"color","#05ABD2"],["class","text-center p-2",4,"ngIf"],["id","findFilter","tabindex","-1","role","dialog","data-backdrop","static","aria-labelledby","myModalLabel2",1,"modal","fade"],["role","document",1,"modal-dialog","modal
1-dialog-scrollable","modal-lg","mdl-dilog-mt",2,"margin-right","0"],[1,"modal-content"],["type","button","data-dismiss","modal","aria-label","Close",1,"close","mr-3","mt-3"],["aria-hidden","true"],[1,"modal-body"],[1,"col-12"],[1,"form-group"],[3,"data","settings","disabled","placeholder","ngModel","onFilterChange","onDropDownClose","onSelect","onDeSelect","onSelectAll","onDeSelectAll","ngModelChange"],["multiSelectForTeacherFilter",""],[1,"ml-3"],["class","col-lg-4 col-xs-12 col-sm-12 col-md-4 col-xl-4 ",4,"ngFor","ngForOf"],[1,"row","mt-3"],["multiSelectForSubjectsFilter",""],[1,"col-lg-6"],["multiSelectForTopicsFilter",""],["multiSelectForChaptersFilter",""],[1,"modal-footer"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-info","mdl-btns","buttonColor",3,"click"],["type","button",1,"btn","btn-info","mdl-btns","buttonColor1","ml-3","text-light","font-weight-bold",3,"click"],["id","deleteCart","data-backdrop","static","tabindex","-1","aria-labelledby","deleteCart","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-header","border-bottom-0"],["id","deleteCart",1,"modal-title","text-center","text-danger"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],[1,"modal-body","text-center"],[1,"modal-footer","border-top-0"],["type","button","data-dismiss","modal","data-dismiss","modal",1,"btn","btn-info",3,"click"],["type","button","data-dismiss","modal",1,"btn","btn-secondary","btn-rounded"],[1,"d-flex"],["routerLink","/navigation-bar/mentor/assessment/find-all-assessments",1,"btn","btn-info","filter-btn","border-0"],[1,"card"],[1,"card-body","text-center"],[1,"mb-0"],[2,"z-index","0","height","420px",3,"cellsToShow","cellWidth"],["class","carousel-cell",4,"ngFor","ngForOf"],[1,"carousel-cell"],[1,"card-body"],[1,"col-lg-12"],[2,"width","100%","height","200px",3,"src"],[1,"mt-1","txt-ellipsNew","text-capitalize"],[3,"title"],[1,"col-12","txt-ellips","text-capitalize",3,"title"],[1,"d-flex","my-1"],[1,"mr-2",2,"width","30px","height","30px","border-radius","50%",3,"src"],[1,"col-lg-12","txt-ellips"],[4,"ngFor","ngForOf"],[1,"col-lg-12","col-md-12"],[1,"txt-ellips"],[1,"d-flex","align-items-center"],[3,"ngClass"],[1,"dropdown-divider"],[1,"mt-1","text-info"],["class","ml-auto mr-2","style","cursor: pointer;",3,"click",4,"ngIf"],[1,"ml-auto","mr-2",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa","fa-shopping-cart"],[2,"z-index","0","height","420px",3,"cellsToShow","cellWidth","arrows"],[1,"img-fluid",2,"width","100%","height","200px",3,"src"],[1,"text-center"],[1,"col-lg-12","col-xl-4","my-3","p-0"],["alt","cart-assessments",1,"img-fluid","cart-image",3,"src"],[1,"col-lg-12","col-xl-8","mb-3","mt-1","p-0"],[1,"row","ml-xl-3"],[1,"col-lg-12","p-0","mt-2","text-capitalize","txt-ellipsForCart",3,"title"],[2,"font-size","larger"],[1,"col-lg-12","p-0","txt-ellipsForCart"],[1,"row","ml-xl-3",2,"font-size","larger"],[1,"col-lg-8","col-xl-9","p-0"],[2,"color","#05ABD2"],["data-toggle","modal","data-target","#deleteCart",1,"col-lg-4","col-xl-3","p-0","text-right",2,"cursor","pointer",3,"click"],[1,"bx","bx-trash-alt"],[1,"py-3","text-center",2,"border-bottom","1px solid #C4C4C4"],[1,"text-center","p-2"],[1,"btn","btn-default","text-light","rounded","text-center","buttonProceed",3,"click"],[1,"col-lg-4","col-xs-12","col-sm-12","col-md-4","col-xl-4"],[1,"custom-control","custom-checkbox"],["type","checkbox",1,"custom-control-input",3,"id","name","change"],[1,"custom-control-label",3,"for","title"]],template:function(s,n){1&s&&(e.\u0275\u0275template(0,je,1,0,"app-loader",0),e.\u0275\u0275elementStart(1,"div",1)(2,"div",2)(3,"h1",3),e.\u0275\u0275text(4,"Find"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(5,"div",4)(6,"div",5)(7,"div",6)(8,"div",7)(9,"div",8)(10,"span",9),e.\u0275\u0275element(11,"i",10),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(12,"input",11),e.\u0275\u0275listener("keyup",function(a){return n.onSearchShowData(a)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(13,"div")(14,"button",12),e.\u0275\u0275element(15,"i",13),e.\u0275\u0275text(16," Filter"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(17,"div",14)(18,"div")(19,"h5"),e.\u0275\u0275element(2
10,"i",15),e.\u0275\u0275text(21," Find your Assessments "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(22,Xe,4,0,"div",16),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(23,Ze,5,0,"div",0),e.\u0275\u0275template(24,it,3,3,"div",0),e.\u0275\u0275elementStart(25,"div",17)(26,"div",18)(27,"div",19)(28,"h5",20),e.\u0275\u0275element(29,"img",21),e.\u0275\u0275text(30," You might be interested in the following assessment"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(31,"div",22)(32,"button",23),e.\u0275\u0275text(33," See All"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(34,dt,3,4,"div",0),e.\u0275\u0275template(35,ct,5,0,"div",0),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(36,"div",24)(37,"div",25)(38,"div",26),e.\u0275\u0275element(39,"i",27),e.\u0275\u0275elementStart(40,"h5",28),e.\u0275\u0275text(41," Your Cart"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(42,"div",29),e.\u0275\u0275template(43,mt,22,7,"div",30),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(44,pt,3,0,"div",31),e.\u0275\u0275elementStart(45,"div",32)(46,"h5",33),e.\u0275\u0275text(47,"Total Price : "),e.\u0275\u0275elementStart(48,"span",34),e.\u0275\u0275text(49),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(50,ht,3,0,"div",35),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275element(51,"app-footer"),e.\u0275\u0275elementStart(52,"div",36)(53,"div",37)(54,"div",38)(55,"div")(56,"button",39)(57,"span",40),e.\u0275\u0275text(58,"\xd7"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(59,"div",41)(60,"div",4)(61,"div",42)(62,"div",43)(63,"h6"),e.\u0275\u0275text(64,"Teacher"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(65,"ng-multiselect-dropdown",44,45),e.\u0275\u0275listener("onFilterChange",function(a){return n.onFilterChange(a)})("onDropDownClose",function(a){return n.onDropDownClose(a)})("onSelect",function(a){return n.onInterestAreaSelectForTeacherFilter(a)})("onDeSelect",function(a){return n.onInterestAreaSelectForTeacherFilter(a)})("onSelectAll",function(a){return n.onSelectAll(a)})("onDeSelectAll",function(a){return n.onDeSelectAll(a)})("ngModelChange",function(a){return n.teachersFilter=a}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(67,"h6",46),e.\u0275\u0275text(68,"Grade"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(69,"div",4),e.\u0275\u0275template(70,gt,5,5,"div",47),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(71,"div",48)(72,"div",42)(73,"div",43)(74,"h6"),e.\u0275\u0275text(75,"Subject"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(76,"ng-multiselect-dropdown",44,49),e.\u0275\u0275listener("onFilterChange",function(a){return n.onFilterChange(a)})("onDropDownClose",function(a){return n.onDropDownClose(a)})("onSelect",function(a){return n.selectedOrUnSelectedtag(a,"SUBJECT")})("onDeSelect",function(a){return n.selectedOrUnSelectedtag(a,"SUBJECT")})("onSelectAll",function(a){return n.onSelectAll(a)})("onDeSelectAll",function(a){return n.onDeSelectAll(a)})("ngModelChange",function(a){return n.subjectsFilter=a}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(78,"div",4)(79,"div",50)(80,"div",43)(81,"h6"),e.\u0275\u0275text(82,"Topic"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(83,"ng-multiselect-dropdown",44,51),e.\u0275\u0275listener("onFilterChange",function(a){return n.onFilterChange(a)})("onDropDownClose",function(a){return n.onDropDownClose(a)})("onSelect",function(a){return n.selectedOrUnSelectedtag(a,"TOPIC")})("onDeSelect",function(a){return n.selectedOrUnSelectedtag(a,"TOPIC")})("onSelectAll",function(a){return n.onSelectAll(a)})("onDeSelectAll",function(a){return n.onDeSelectAll(a)})("ngModelChange",function(a){return n.topicsFilter=a}),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(85,"div",50)(86,"div",43)(87,"h6"),e.\u0275\u0275text(88,"Chapter"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(89,"ng-multiselect-dropdown",44,52),e.\u0275\u0275listener("onFilterChange",function(a){return n.onFilterChange(a)})("onDropDownClose",function(a){return n.onDropDownClose(a)})("onSelect",function(a){return n.selectedOrUnSelectedtag(a,"CHAPTER")})("onDeSelect",function(a){return n.selectedOrUnSelectedtag(a,"CHAPTER")})("onSelectAll",function(a){return n.onSelectAll(a)})("onDeSelectAll",function(a){return n.onDeSelectAll(a)})("ngModelChange",function(a){return n.ChaptersFilter=a}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(91,"div",53)(92,"div",54)(93,"button",55),e.\u0275\u0275listener("click",function(){return n.resetFilterForQuestions(),n.isReset=!0}),e.\u0275\u0275text(94," Reset "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(95,"button",56),e.\u0275\u0275listener("click",function(){return n.applyFilterForQuestions(),n.isReset=!1}),e.\u0275\u0275text(96," Apply "),e.\u0275\u0275elementEnd()()()()()()(),e.\u0275\u0275elementStart(97,"div",57)(98,"div",58)(99,"div",38)(100,"div",59)(101,"h5",60),e.\u0275\u0275text(102," Alert!! "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(103,"button",61)(104,"span",40),e.\u0275\u0275text(105,"\xd7"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(106,"div",62)(107,"p"),e.\u0275\u0275text(108,"Are you sure want to delete ?"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(109,"div",63)(110,"button",64),e.\u0275\u0275listener("click",function(){return n.deleteSingleRecord()}),e.\u0275\u0275text(111," Proceed "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(112,"button",65),e.\u0275\u0275text(113," Close "),e.\u0275\u0275elementEnd()()()()()),2&s&&(e.\u0275\u0275property("ngIf",n.isLoading),e.\u0275\u0275advance(22),e.\u0275\u0275property("ngIf",(null==n.findAssessmentListData?null:n.findAssessmentListData.length)>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0==(null==n.findAssessmentListData?null:n.findAssessmentListData.length)&&0==n.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==n.findAssessmentListData?null:n.findAssessmentListData.length)>0&&0==n.isLoading),e.\u0275\u0275advance(10),e.\u0275\u0275property("ngIf",(null==n.getInterestAssessmentData?null:n.getInterestAssessmentData.length)>0&&0==n.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0==(null==n.getInterestAssessmentData?null:n.getInterestAssessmentData.length)&&0==n.isLoading),e.\u0275\u0275advance(8),e.\u0275\u0275property("ngForOf",n.cartDetails),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0==(null==n.cartDetails?null:n.cartDetails.length)&&0==n.isLoading),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" INR ",n.totalAmount,""),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",n.cartDetails.length>0),e.\u0275\u0275advance(15),e.\u0275\u0275property("data",n.getAllTeachersForFilter)("settings",n.settingsForTeachersFilter)("disabled",!1)("placeholder","Select Teacher")("ngModel",n.teachersFilter),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngForOf",n.allGrades),e.\u0275\u0275advance(6),e.\u0275\u0275property("data",n.allSubjects)("settings",n.settingsForSubjectsFilter)("disabled",!1)("placeholder","Select Subject")("ngModel",n.subjectsFilter),e.\u0275\u0275advance(7),e.\u0275\u0275property("data",n.allTopics)("settings",n.settingsForTopicsFilter)("disabled",!1)("placeholder","Select Topics")("ngModel",n.topicsFilter),e.\u0275\u0275advance(6),e.\u0275\u0275property("data",n.allChapters)("settings",n.settingsForChapersFilter)("disabled",!1)("placeholder","Select Chapters")("ngModel",n.ChaptersFilter))},dependencies:[r.mk,r.sg,r.O5,h.rH,g.JJ,g.On,y.OP,H.R,M.c,w.F,r.rS,T.A],styles:[".grecaptcha-badge[_ngcontent-%COMP%]{display:none}.row[_ngcontent-%COMP%]{margin:0}.card[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-right:25px!important;margin-left:15px!important;padding:0 20px!important}.cardChanges[_ngcontent-%COMP%]{border-radius:15px}.card[_ngcontent-%COMP%]{overflow:none!important;border-radius:5px!important}.manage[_ngcontent-%COMP%]{margin:6px}.grade[_ngcontent-%COMP%]{font-weight:500}[_ngcontent-%COMP%]::placeholder{font-style:italic}.shadowbackground[_ngcontent-%COMP%]{box-shadow:0 2px 3px #8080808f}thead[_ngcontent-%COMP%]{background-color:#eaf4fe}tbody[_ngcontent-%COMP%]{background:white}.buttonColor[_ngcontent-%COMP%]{border:1px solid #1670A1;background:-webkit-linear-gradient(#508189,#E0FFFF);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.buttonColor1[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#32A6B5,#207AA7)}@media screen and (min-width: 992px) and (max-width: 1050px){#TableResponsive[_ngcontent-%COMP%]{max-width:750px;overflow-x:scroll}}@media screen and (min-width: 1051px) and (max-width: 1100px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:810px}}@media screen and (min-width: 1101px) and (max-width: 1150px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:850px}}@media screen and (min-width: 1151px) and (max-width: 1199px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:900px}}@media screen and (min-width: 1201px) and (max-width: 1240px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:970px}}@media screen and (min-width: 1241px) and (max-width: 1290px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:990px}}@media screen and (min-width: 1291px) and (max-width: 1330px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1040px}}@media screen and (min-width: 1331px) and (max-width: 1370px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1090px}}@media screen and (min-width: 1371px) and (max-width: 1420px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1120px}}@media screen and (min-width: 1421px) and (max-width: 1490px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1170px}}@media screen and (min-width: 1491px) and (max-width: 1520px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1240px}}@media screen and (min-width: 1521px) and (max-width: 1590px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1270px}}@media screen and (min-width: 1591px) and (max-width: 1620px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1350px}}@media screen and (min-width: 1621px) and (max-width: 1690px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1370px}}@media screen and (min-width: 1691px) and (max-width: 1720px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1440px}}@media screen and (min-width: 1721px) and (max-width: 1790px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1470px}}#Moment-Left[_ngcontent-%COMP%]{margin-left:190px}.filter-btn[_ngcontent-%COMP%]{width:130px;height:47px;border-radius:25px}.mdl-btns[_ngcontent-%COMP%]{border-radius:25px;padding:8px 24px}.add-To-Cart-btn[_ngcontent-%COMP%]{width:140px;height:47px;border-radius:25px}.find[_ngcontent-%COMP%]{font-size:50px;font-weight:400;color:#1e3757}.searchgroup[_ngcontent-%COMP%]{height:47px;margin-right:15px}.search-box[_ngcontent-%COMP%]{height:47px}.searchgroup[_ngcontent-%COMP%]   .input-group-text[_ngcontent-%COMP%], .searchgroup[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%], .searchgroup[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]:focus{border:1px solid #8796A8!important}.searchgroup[_ngcontent-%COMP%]   .input-group-text[_ngcontent-%COMP%]{border-radius:25px 0 0 25px!important;border-right:none!important}.searchgroup[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{border-left:none!important;border-radius:0 25px 25px 0!important}.searchgroup[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]:focus{border-left:none!important}.searchgroup[_ngcontent-%COMP%]   .input-group-text[_ngcontent-%COMP%], .searchgroup[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{background-color:transparent!important}.bar[_ngcontent-%COMP%]{width:5px;height:10px;background-color:#00e1ac;margin:0 2px}h5[_ngcontent-%COMP%]{color:#1e3757!important;font-weight:500!important}.cart-div[_ngcontent-%COMP%]{padding:10px;background:#E5E5E5;border-radius:20px 20px 0 0}.card[_ngcontent-%COMP%]{border-radius:20px!important}select.form-control[_ngcontent-%COMP%]:focus{border-color:#ced4da!important}.cart-Icon[_ngcontent-%COMP%]{font-size:xx-large;padding:0;background:-webkit-linear-gradient(90deg,#00E1AC -17.6%,#03799C 110.6%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.cart-image[_ngcontent-%COMP%]{width:110px;border-radius:10px}@media screen and (min-width: 992px) and (max-width: 1199px){.cart-image[_ngcontent-%COMP%]{width:300px}}@media screen and (min-width: 1200px) and (max-width: 1299px){.cart-image[_ngcontent-%COMP%]{width:100%;height:100%}}@media screen and (min-width: 1300px) and (max-width: 1599px){.cart-image[_ngcontent-%COMP%]{width:100%;height:100%}}@media screen and (min-width: 1600px) and (max-width: 1799px){.cart-image[_ngcontent-%COMP%]{width:100%;height:100%}}@media screen and (min-width: 1800px) and (max-width: 2600px){.cart-image[_ngcontent-%COMP%]{width:100%;height:100%}}.buttonProceed[_ngcontent-%COMP%]{background:linear-gradient(90deg,#00E1AC -17.6%,#03799C 110.6%);font-weight:700}.txt-ellips[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:115px;white-space:nowrap}.txt-ellipsNew[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:280px;white-space:nowrap}@media screen and (min-width: 1200px) and (max-width: 1399px){.txt-ellipsForCart[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:280px;white-space:nowrap}}@media screen and (min-width: 1400px) and (max-width: 1600px){.txt-ellipsNew[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:240px;white-space:nowrap}.txt-ellipsForCart[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:280px;white-space:nowrap}}@media screen and (min-width: 1601px) and (max-width: 1800px){.txt-ellipsNew[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:250px;white-space:nowrap}.txt-ellipsForCart[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:280px;white-space:nowrap}}@media screen and (min-width: 1801px) and (max-width: 1900px){.txt-ellipsNew[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:250px;white-space:nowrap}.txt-ellipsForCart[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:280px;white-space:nowrap}}@media screen and (min-width: 1901px) and (max-width: 2001px){.txt-ellipsNew[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:265px;white-space:nowrap}.txt-ellipsForCart[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:280px;white-space:nowrap}}  .multiselect-dropdown .dropdown-btn .selected-item{width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #1e3757!important;background:#fff!important;color:#1e3757!important;justify-content:space-between}  .multiselect-dropdown .dropdown-btn .selected-item a{color:#1e3757!important}.defaultBar[_ngcontent-%COMP%]{width:5px;height:10px;background:#e9e9e9;margin:0 2px}.extremelyEasy[_ngcontent-%COMP%]{width:5px;height:10px;background-color:#00e1ac;margin:0 2px}.veryEasy[_ngcontent-%COMP%]{width:5px;height:10px;background:#1dd1fc;margin:0 2px}.easy[_ngcontent-%COMP%]{width:5px;height:10px;background:#fcbb1d;margin:0 2px}.moderatelyDifficult[_ngcontent-%COMP%]{width:5px;height:10px;background:#ff4a4a;margin:0 2px}.highlyDifficult[_ngcontent-%COMP%]{width:5px;height:10px;background:#bd0000;margin:0 2px}.exremelyDifficult[_ngcontent-%COMP%]{width:5px;height:10px;background:red;margin:0 2px}.mdl-dilog-mt[_ngcontent-%COMP%]{margin-top:80px}@media screen and (min-width: 280px) and (max-width: 575px){.find[_ngcontent-%COMP%]{font-size:25px}h5[_ngcontent-%COMP%]{font-size:20px!important}}@media screen and (max-width: 575px){.mdl-dilog-mt[_ngcontent-%COMP%]{margin-top:8px}}@media screen and (min-width: 576px) and (max-width: 767px){.mdl-dilog-mt[_ngcontent-%COMP%]{margin-top:30px}}@media screen and (min-width: 768px) and (max-width: 992px){.mdl-dilog-mt[_ngcontent-%COMP%]{margin-top:30px}}@media screen and (min-width: 992px) and (max-width: 1024px){.mdl-dilog-mt[_ngcontent-%COMP%]{margin-top:45px}}"]})}return l})();var _t=c(46120),ft=c(14122);let xt=(()=>{class l{constructor(t,s){this.act=t,this.titleService=s,this.manageAssessment=
1!1,this.addAssessment=!1,this.findAssessment=!1,this.titleService.setTitle("Dynamind Mentor Assessment")}ngOnInit(){this.assessmentId=this.act.snapshot.queryParams.assessmentId,this.assessmentId&&(this.manageAssessment=!1,this.addAssessment=!1,this.findAssessment=!1),this.manageAssessment=!0,this.hideRecaptcha()}hideRecaptcha(){const t=$(".grecaptcha-badge");if(t.length)return t.css({display:"none"});requestAnimationFrame(()=>this.hideRecaptcha())}updateSelectedTab(t){"ManageAssessment"===t?(this.manageAssessment=!0,this.addAssessment=!1,this.findAssessment=!1):"AddAssessment"===t?(this.manageAssessment=!1,this.addAssessment=!0,this.findAssessment=!1):"FindAssessment"===t&&(this.manageAssessment=!1,this.addAssessment=!1,this.findAssessment=!0)}static#e=this.\u0275fac=function(s){return new(s||l)(e.\u0275\u0275directiveInject(h.gz),e.\u0275\u0275directiveInject(C.Dx))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:l,selectors:[["app-mentor-assessment"]],inputs:{childEditAssessmentId:"childEditAssessmentId"},decls:10,vars:0,consts:[[1,"navbar","navbar-expand-sm","navbar-light","p-0",2,"background-color","white"],[1,"navbar-nav","nav-direction"],[1,"nav-item"],["routerLinkActive","active","routerLink","/navigation-bar/mentor/assessments",1,"nav-link"]],template:function(s,n){1&s&&(e.\u0275\u0275element(0,"app-bread-crumb"),e.\u0275\u0275elementStart(1,"nav",0)(2,"ul",1)(3,"li",2)(4,"a",3),e.\u0275\u0275text(5,"Manage"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"li",2)(7,"a",3),e.\u0275\u0275text(8,"Create"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275element(9,"router-outlet"))},dependencies:[h.lC,h.rH,h.Od,ft.N],styles:[".active[_ngcontent-%COMP%]{border-bottom:5px solid #00E1AC}  .ui-slider.ui-slider-horizontal{margin:18px 20px 8px!important}  body .ui-slider .ui-slider-range{background:linear-gradient(90deg,#10C69B 23.49%,#03799C 72.57%)!important}  body .ui-slider .ui-slider-handle:focus{box-shadow:none!important}  body .ui-slider:not(.ui-state-disabled) .ui-slider-handle:hover{border:3px solid #fff!important;background:linear-gradient(90deg,#10C69B 23.49%,#03799C 72.57%)!important}  body .ui-slider .ui-slider-handle{background:linear-gradient(90deg,#10C69B 23.49%,#03799C 72.57%)!important;border:3px solid #fff!important;height:1.3em!important;width:1.3em!important}  body .ui-slider.ui-slider-horizontal .ui-slider-handle{margin-top:-.75em}@media screen and (min-width: 280px) and (max-width: 576px){.nav-direction[_ngcontent-%COMP%]{flex-direction:row}}@media screen and (min-width: 300px) and (max-width: 980px){.nav[_ngcontent-%COMP%]{display:-webkit-inline-box!important;display:-webkit-box!important}}"]})}return l})();var k=c(45626);const vt=["multiSelectForTeacherFilter"],Ct=["pp"];function wt(l,o){1&l&&e.\u0275\u0275element(0,"app-loader")}function At(l,o){if(1&l&&(e.\u0275\u0275elementStart(0,"span")(1,"span",57),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&l){const t=o.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate("title",null==(null==t?null:t.tagName)?"N/A":null==t?null:t.tagName),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null==(null==t?null:t.tagName)?"N/A":null==t?null:t.tagName," ")}}function St(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",72),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext().$implicit,i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.addToCart(n))}),e.\u0275\u0275element(1,"i",73),e.\u0275\u0275text(2," Add to Cart "),e.\u0275\u0275elementEnd()}}function bt(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",72),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext().$implicit,i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.purchaseFreeAssessment(n))}),e.\u0275\u0275element(1,"i",73),e.\u0275\u0275text(2," Free "),e.\u0275\u0275elementEnd()}}function yt(l,o){if(1&l&&(e.\u0275\u0275elementStart(0,"div",51)(1,"div",52)(2,"div",53)(3,"div",15)(4,"div",54),e.\u0275\u0275element(5,"img",55),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div",15)(7,"div",54)(8,"div",56)(9,"b")(10,"span",57),e.\u0275\u0275text(11),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(12,"div",15)(13,"div",58)(14,"div",59)(15,"div"),e.\u0275\u0275element(16,"img",60),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(17,"div"),e.\u0275\u0275text(18),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(19,"div",15)(20,"div",61),e.\u0275\u0275template(21,At,3,2,"span",62),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(22,"div",15)(23,"div",63)(24,"div",64)(25,"div",65),e.\u0275\u0275text(26),e.\u0275\u0275pipe(27,"replace"),e.\u0275\u0275pipe(28,"titlecase"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(29,"div",66),e.\u0275\u0275element(30,"div",67)(31,"div",67)(32,"div",67)(33,"div",67)(34,"div",67)(35,"div",67),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275element(36,"div",68),e.\u0275\u0275elementStart(37,"div",69)(38,"div")(39,"div",70)(40,"b"),e.\u0275\u0275text(41),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(42,St,3,0,"div",71),e.\u0275\u0275template(43,bt,3,0,"div",71),e.\u0275\u0275elementEnd()()()()),2&l){const t=o.$implicit,s=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(5),e.\u0275\u0275property("src",s.getUserProfile(t),e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(5),e.\u0275\u0275propertyInterpolate("title",null==(null==t?null:t.title)?"N/A":null==t?null:t.title),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null==(null==t?null:t.title)?"N/A":null==t?null:t.title," "),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("title","null"==(null==t||null==t.publishedByUser?null:t.publishedByUser.fullName)?"N/A":null==t||null==t.publishedByUser?null:t.publishedByUser.fullName),e.\u0275\u0275advance(3),e.\u0275\u0275property("src",s.getImageOfuser(t),e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",null==(null==t||null==t.publishedByUser?null:t.publishedByUser.fullName)?"N/A":null==t||null==t.publishedByUser?null:t.publishedByUser.fullName," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",t.tags),e.\u0275\u0275advance(4),e.\u0275\u0275propertyInterpolate("title",null==t?null:t.difficultLevel),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null==(null==t?null:t.difficultLevel)?"N/A":e.\u0275\u0275pipeBind1(27,19,e.\u0275\u0275pipeBind1(28,21,null==t?null:t.difficultLevel))," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,1)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,2)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,3)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,4)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,5)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,6)),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate2(" ",null==t?null:t.currency," ",null==(null==t?null:t.price)?"0":null==t?null:t.price,""),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null!=t.price&&t.price>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==t.price||0==t.price)}}function Tt(l,o){if(1&l&&(e.\u0275\u0275elementStart(0,"div",49),e.\u0275\u0275template(1,yt,44,23,"div",50),e.\u0275\u0275elementEnd()),2&l){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.findAssessmentListData)}}function Dt(l,o){1&l&&(e.\u0275\u0275elementStart(0,"div")(1,"div",52)(2,"div",74)(3,"h4",7
15),e.\u0275\u0275text(4," No Records Found "),e.\u0275\u0275elementEnd()()()())}function Ft(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",76)(1,"div",77)(2,"input",78),e.\u0275\u0275listener("change",function(){const i=e.\u0275\u0275restoreView(t).$implicit,a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.selectedOrUnSelectedtag(i,"GRADE"))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"label",79),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()()}if(2&l){const t=o.$implicit,s=o.index;e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate1("id","grade",s,"")("name","grade",s,""),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate1("for","grade",s,""),e.\u0275\u0275propertyInterpolate("title",null==(null==t?null:t.tagHierarchy)?"N/A":null==t?null:t.tagHierarchy),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null==t?null:t.tagName,"")}}const It=["multiSelectForTeacherFilter"],Et=["pp"];function Pt(l,o){if(1&l&&(e.\u0275\u0275elementStart(0,"span")(1,"span",19),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&l){const t=o.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate("title",null==(null==t?null:t.tagName)?"N/A":null==t?null:t.tagName),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null==(null==t?null:t.tagName)?"N/A":null==t?null:t.tagName," ")}}function Ot(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",33),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext().$implicit,i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.addToCart(n))}),e.\u0275\u0275element(1,"i",34),e.\u0275\u0275text(2," Add to Cart "),e.\u0275\u0275elementEnd()}}function kt(l,o){if(1&l){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",33),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext().$implicit,i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.purchaseFreeAssessment(n))}),e.\u0275\u0275element(1,"i",34),e.\u0275\u0275text(2," Free "),e.\u0275\u0275elementEnd()}}function Rt(l,o){if(1&l&&(e.\u0275\u0275elementStart(0,"div",13)(1,"div",14)(2,"div",15)(3,"div",0)(4,"div",16),e.\u0275\u0275element(5,"img",17),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div",0)(7,"div",16)(8,"div",18)(9,"b")(10,"span",19),e.\u0275\u0275text(11),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(12,"div",0)(13,"div",20)(14,"div",21)(15,"div"),e.\u0275\u0275element(16,"img",22),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(17,"div"),e.\u0275\u0275text(18),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(19,"div",0)(20,"div",23),e.\u0275\u0275template(21,Pt,3,2,"span",24),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(22,"div",0)(23,"div",25)(24,"div",26)(25,"div",27),e.\u0275\u0275text(26),e.\u0275\u0275pipe(27,"replace"),e.\u0275\u0275pipe(28,"titlecase"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(29,"div",28),e.\u0275\u0275element(30,"div",29)(31,"div",29)(32,"div",29)(33,"div",29)(34,"div",29)(35,"div",29),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275element(36,"div",30),e.\u0275\u0275elementStart(37,"div",26)(38,"div")(39,"div",31)(40,"b"),e.\u0275\u0275text(41),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(42,Ot,3,0,"div",32),e.\u0275\u0275template(43,kt,3,0,"div",32),e.\u0275\u0275elementEnd()()()()),2&l){const t=o.$implicit,s=e.\u0275\u0275nextContext();e.\u0275\u0275advance(5),e.\u0275\u0275property("src",s.getUserProfile(t),e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(5),e.\u0275\u0275propertyInterpolate("title",null==(null==t?null:t.title)?"N/A":null==t?null:t.title),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null==(null==t?null:t.title)?"N/A":null==t?null:t.title," "),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("title","null"==(null==t||null==t.publishedByUser?null:t.publishedByUser.fullName)?"N/A":null==t||null==t.publishedByUser?null:t.publishedByUser.fullName),e.\u0275\u0275advance(3),e.\u0275\u0275property("src",s.getImageOfuser(t),e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",null==(null==t||null==t.publishedByUser?null:t.publishedByUser.fullName)?"N/A":null==t||null==t.publishedByUser?null:t.publishedByUser.fullName," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",t.tags),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",null==(null==t?null:t.difficultLevel)?"N/A":e.\u0275\u0275pipeBind1(27,18,e.\u0275\u0275pipeBind1(28,20,null==t?null:t.difficultLevel))," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,1)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,2)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,3)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,4)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,5)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",s.getDefaultBar(t.difficultLevel,6)),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate2(" ",null==t?null:t.currency," ",null==(null==t?null:t.price)?"0":null==t?null:t.price,""),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null!=t.price&&t.price>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==t.price||0==t.price)}}function Lt(l,o){1&l&&(e.\u0275\u0275elementStart(0,"div")(1,"div",14)(2,"div",35)(3,"h4",36),e.\u0275\u0275text(4," No Records Found "),e.\u0275\u0275elementEnd()()()())}const Nt=[{path:"",component:xt,canActivate:[x.y],children:[{path:"add-assessment",component:Ye,canActivate:[x.y],data:{breadcrumb:"Assessments / Add Assessments"}},{path:"manage-assessment",component:_t.I,canActivate:[x.y],data:{breadcrumb:"Assessments / Manage your Assessments"}},{path:"find-assessment",component:ut,canActivate:[x.y],data:{breadcrumb:"Assessments / Find Assessments"}},{path:"find-all-assessments",component:(()=>{class l{initPay(){this.rzp1=new Razorpay(this.options),this.rzp1.open()}constructor(t,s,n,i,a,d,m){this.apiService=t,this.toaster=s,this.router=n,this.activatedRoute=i,this.location=a,this.titleService=d,this.platformId=m,this.getAssessmentDataRequest=new u.iE,this.getCartDetailsRequest=new u.iE,this.getDataRequest=new v.l,this.findAssessmentDto=new P._,this.currentPage=1,this.findAssessmentListData=[],this.findAssessmentListDummyData=[],this.getInterestAssessmentData=[],this.getInterestAssessmentDataDummyData=[],this.numberOfRowsPerPage=5,this.currentPageNumber=0,this.p=[],this.dummyAddToCartAssessment=[],this.paymentOrder=new O.m,this.addToCartArray=[],this.cartAssessmentDto=[],this.totalAmount=0,this.subjectIds=[],this.gradeIds=[],this.cartDetails=[],this.selectedTagDto=[],this.selectedTagIds=[],this.selectedTeachers=[],this.allGrades=[],this.allSubjects=[],this.allChapters=[],this.allTopics=[],this.options={key:"",amount:0,currency:"INR",name:"",description:"",image:"https://example.com/your_logo",order_id:"",handler:p=>{this.getPaymentConfirmation(p.razorpay_payment_id,p.razorpay_order_id,p.razorpay_signature)},prefill:{name:"",email:"",contact:""},notes:{address:"Razorpay Corporate Office"},theme:{color:"#F37254"},modal:{ondismiss:this.closeRazorrPayModel.bind(this)}},this.isLoading=!1,this.settingsForTeachersFilter={singleSelection:!1,idField:"id",textField:"fullName",enableCheckAll:!1,selectAllText:"Select all",unSelectAllText:"UnSelect all",allowSearchFilter:!0,limitSelection:-1,clearSearchFilter:!0,maxHeight:197,itemsShowLimit:6,searchPlaceholderText:"Search Chapters",noDataAvailablePlaceholderText:"No Chapters Available",closeDropDownOnSelection:!1,showSelectedItemsAtTop:!1,defaultOpen:!1},this.settingsForSubjectsFilter={singleSelection:!1,idField:"id",textField:"tagName",enableCheckAll:!1,selectAllText:"Select all",unSelectAllText:"UnSelect all",allowSearchFilter:!0,limitSelection:-1,clearSearchFilter:!0,maxHeight:197,itemsShowLimit:6,searchPlaceholderText:"Search Subject",noDataAvailablePlaceholderText:"No Subjects Available",closeDropDownOnSelection:!1,showSelectedItemsAtTop:!1,defaultOpen:!1},this.settingsForTopicsFilter={singleSelection:!1,idField:"id",textField:"tagName",enableCheckAll:!1,selectAllText:"Select all",unSelectAllText:"UnSelect all",allowSearchFilter:!0,limitSelection:-1,clearSearchFilter:!0,maxHeight:197,itemsShowLimit:6,searchPlaceholderText:"Search Topic",noDataAvailablePlaceholderText:"No Topics Available",closeDropDownOnSelection:!1,showSelectedItemsAtTop:!1,defaultOpen:!1},this.settingsForChapersFilter={singleSelection:!1,idField:"id",textField:"tagName",enableCheckAll:!1,selectAllText:"Select all",unSelectAllText:"UnSelect all",allowSearchFilter:!0,limitSelection:-1,clearSearchFilter:!0,maxHeight:197,itemsShowLimit:6,searchPlaceholderText:"Search Chapters",noDataAvailablePlaceholderText:"No Chapters Available",closeDropDownOnSelection:!1,showSelectedItemsAtTop:!1,defaultOpen:!1},this.getAllTeachersForFilter=[],this.isReset=!1,this.disabledAddToCart=!1,this.onSearchShowData=p=>{p&&p.target.value?(this.getAssessmentDataRequest.searchKey=p.target.value,this.getAssessmentDataRequest.pageNumber=this.currentPageNumber):this.getAssessmentDataRequest.searchKey="",this.getFindAssessmentData()},this.teachersFilter=[],this.subjectsFilter=[],this.topicsFilter=[],this.ChaptersFilter=[],this.titleService.setTitle("Dynamind Mentor Find All Assessment")}
1closeRazorrPayModel(){this.cartDetails.forEach(t=>{this.paymentOrder.assessments.pop()})}ngOnInit(){this.hideRecaptcha(),this.getAllTags(this.getDataRequest.filterType="GRADE"),this.getAllTags(this.getDataRequest.filterType="SUBJECT"),this.getAllTags(this.getDataRequest.filterType="TOPIC"),this.getAllTags(this.getDataRequest.filterType="CHAPTER"),this.getAssessmentDataRequest.pageSize=6,$(function(){$(".checkbox-count")}),this.indicationOfBack=this.activatedRoute.snapshot.queryParams.seeAllAssessments,(0,r.NF)(this.platformId)&&window.scrollTo(0,0),this.getDataRequest.pageNumber=0,this.getDataRequest.pageSize=24,this.getFindAssessmentData(),this.getCartDetails(),this.getAllFindAssessementsWhichYouWereInterestedFor(),this.getAllFindAssessmentTeachersFilters()}selectedTeacher(t){}getAllFindAssessmentTeachersFilters(){this.getDataRequest.pageSize=24,this.apiService.postService(this.apiService.apiUrls.getAllFindAssessmentTeachersFilters,this.getDataRequest).subscribe(t=>{t&&200==t.statusCode&&t.data&&t.data.content?this.getAllTeachersForFilter=t.data.content:this.toaster.show(t?.message,"Info")},t=>{401==t.status?(this.isLoading=!1,this.toaster.show(t.message?t.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(t?.error?.message,"Info"))})}getAllFindAssessementsWhichYouWereInterestedFor(){this.isLoading=!0,this.apiService.postService(this.apiService.apiUrls.getAllFindAssessementsWhichYouWereInterestedFor,this.getAssessmentDataRequest).subscribe(t=>{t&&200===t.statusCode?(this.isLoading=!1,this.getInterestAssessmentData=t.data.content):(this.isLoading=!1,this.toaster.show(t?.message,"Info"))},t=>{401==t.status?(this.isLoading=!1,this.toaster.show(t.message?t.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(t?.error?.message,"Info"))})}getAllTags(t){this.getDataRequest.pageSize=1e6,this.getDataRequest.filterTagIds=this.selectedTagIds,this.getDataRequest.filterType=t,this.apiService.postService(this.apiService.apiUrls.getAllTags,this.getDataRequest).subscribe(s=>{if(s&&200==s.statusCode&&s.data&&s.data.content){let n=s.data.content;n&&("GRADE"==t?this.allGrades=n:"SUBJECT"==t?this.allSubjects=n:"TOPIC"==t?this.allTopics=n:"CHAPTER"==t&&(this.allChapters=n))}else this.toaster.show(s?.message,"Info")},s=>{401==s.status?(this.isLoading=!1,this.toaster.show(s.message?s.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(s?.error?.message,"Info"))})}selectedOrUnSelectedtag(t,s){"SUBJECT"===s?t=this.allSubjects.filter(i=>i.id===t.id)[0]:"TOPIC"===s?t=this.allTopics.filter(i=>i.id===t.id)[0]:"CHAPTER"===s&&(t=this.allChapters.filter(i=>i.id===t.id)[0]);let n=this.selectedTagDto.findIndex(i=>i.id==t.id);-1==n?this.selectedTagDto.push(t):this.selectedTagDto.splice(n,1),this.applyFilterAndChildTagSelection(s)}applyFilterAndChildTagSelection(t){this.selectedTagIds=[];for(let s of this.selectedTagDto){let n=this.selectedTagIds.findIndex(i=>i===s.parentId);-1!=n&&this.selectedTagIds.splice(n,1),this.selectedTagIds.push(s.id)}"GRADE"===t?(this.getAllTags(this.getDataRequest.filterType="SUBJECT"),this.getAllTags(this.getDataRequest.filterType="TOPIC"),this.getAllTags(this.getDataRequest.filterType="CHAPTER")):"SUBJECT"===t?(this.getAllTags(this.getDataRequest.filterType="TOPIC"),this.getAllTags(this.getDataRequest.filterType="CHAPTER")):"TOPIC"===t?(this.getAllTags(this.getDataRequest.filterType="CHAPTER"),this.getAllTags(this.getDataRequest.filterType="SUBJECT")):"CHAPTER"===t&&(this.getAllTags(this.getDataRequest.filterType="SUBJECT"),this.getAllTags(this.getDataRequest.filterType="TOPIC"))}onFilterChange(t){}onDropDownClose(t){}onItemSelect(t){}onDeSelect(t){}onSelectAll(t){}onDeSelectAll(t){}expandItems(){this.expanded=!0}getFindAssessmentData(){this.isLoading=!(this.getAssessmentDataRequest.searchKey||this.getAssessmentDataRequest.pageNumber>=0),this.getAssessmentDataRequest.tagIds=[],this.gradeIds&&this.gradeIds.length>0&&this.gradeIds.forEach(t=>this.getAssessmentDataRequest.tagIds.push(t)),this.getAssessmentDataRequest.pageSize=24,this.apiService.postService(this.apiService.apiUrls.getFindAssessmentData,this.getAssessmentDataRequest).subscribe(t=>{t&&200===t.statusCode?(this.isLoading=!1,!this.isReset&&(0,r.NF)(this.platformId)&&$("#findFilter").modal("hide"),this.totalPages=t.data?t.data.totalPages:1,this.findAssessmentListData=t.data.content,this.findAssessmentListDummyData=t.data.content):(this.isLoading=!1,this.toaster.show(t?.message,"Info"))},t=>{401==t.status?(this.isLoading=!1,this.toaster.show(t.message?t.message:"Something Went Wrong","Warning"),
1(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(t?.error?.message,"Info"))})}getInterestedAssessmenet(){this.isLoading=!0,this.getAssessmentDataRequest.tagIds=[],this.gradeIds&&this.gradeIds.length>0&&this.gradeIds.forEach(t=>this.getAssessmentDataRequest.tagIds.push(t)),this.getAssessmentDataRequest.pageSize=24,this.apiService.postService(this.apiService.apiUrls.getInterestedAssessmenet,this.getAssessmentDataRequest).subscribe(t=>{t&&200===t.statusCode?(this.isLoading=!1,this.totalPages=t.data?t.data.totalPages:1,this.getInterestAssessmentData=t.data.content,this.getInterestAssessmentDataDummyData=t.data.content):(this.isLoading=!1,this.toaster.show(t?.message,"Info"))},t=>{401==t.status?(this.isLoading=!1,this.toaster.show(t.message?t.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(t?.error?.message,"Info"))})}deleteCart(t){this.deleteId=t.id}deleteSingleRecord(){this.apiService.deleteService(this.apiService.apiUrls.deleteSingleCartItem+"/?id="+this.deleteId).subscribe(t=>{t&&200==t.statusCode?(this.cartDetails.forEach(s=>{this.totalAmount=this.totalAmount-s.assessmentDto.price}),this.toaster.show(t?.message,"Success"),this.getCartDetails(),this.getFindAssessmentData()):(this.isLoading=!1,this.toaster.show(t?.message,"Info"))},t=>{401==t.status?(this.isLoading=!1,this.toaster.show(t.message?t.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(t?.error?.message,"Info"))})}getCartDetails(){this.apiService.postService(this.apiService.apiUrls.getCartDetails,this.getCartDetailsRequest).subscribe(t=>{t&&200===t.statusCode&&(this.cartDetails=t.data&&null!=t.data.content?t.data.content:[],this.totalAmountCount())})}totalAmountCount(){this.totalAmount=0,this.cartDetails.forEach(t=>{this.totalAmount=this.totalAmount+t.assessmentDto.price})}addToCart(t){this.disabledAddToCart=!0;let s=new E.s,n=new I.l,i=new A.$;i.id=t.id,n.assessmentDto=i,s.cartDtos.push(n),this.apiService.postService(this.apiService.apiUrls.addToCart,s).subscribe(a=>{a&&200===a.statusCode&&(0,r.NF)(this.platformId)?(this.toaster.show(a?.message,"Success"),this.dummyAddToCartAssessment=[],this.cartAssessmentDto=[],this.disabledAddToCart=!1,$("input[type=checkbox]").prop("checked",!1),this.getCartDetails(),this.getFindAssessmentData()):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,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/"),this.disabledAddToCart=!1):(this.isLoading=!1,this.toaster.show(a?.error?.message,"Info"))})}purchaseFreeAssessment(t){this.isLoading=!0,this.apiService.postService(this.apiService.apiUrls.freeAssessmentPurchase,{assessments:[{id:t.id}]}).subscribe(n=>{n&&200===n.statusCode?(this.isLoading=!1,this.toaster.show(n?.message,"Success"),this.getCartDetails(),this.getFindAssessmentData()):this.toaster.show(n?.message,"Info")},n=>{401==n.status?(this.isLoading=!1,this.toaster.show(n.message?n.message:"Something Went Wrong","Warning")):(this.isLoading=!1,this.toaster.show(n?.error?.message,"Info"))})}onAddToCartChange(t,s){if((0,r.NF)(this.platformId))if(s)this.addToCartArray.find(i=>i.id==t.id)?(this.toaster.show("Already Existed","Warning"),$("input[type=checkbox]").prop("checked",!1)):0==this.dummyAddToCartAssessment.filter(a=>a.id==t.id).length&&this.dummyAddToCartAssessment.push(t);else{let n=this.dummyAddToCartAssessment.findIndex(i=>i.id==t.id);-1!=n&&this.dummyAddToCartAssessment.splice(n,1)}}getAllSubjectsData(){this.getDataRequest.filterType="SUBJECT",this.apiService.postService(this.apiService.apiUrls.getAllTags,this.getDataRequest).subscribe(t=>{t&&200==t.statusCode?t.data&&t.data.content&&(this.subjectList=t.data.content):this.toaster.show(t?.message,"Info")},t=>{401==t.status?(this.isLoading=!1,this.toaster.show(t.message?t.message:"Something Went Wrong","Warning"),
1(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(t?.error?.message,"Info"))})}paginate(t){this.getAssessmentDataRequest.pageNumber=t.page,this.getFindAssessmentData()}getTotalRecords(){return this.totalPages*this.numberOfRowsPerPage}getAllGradesData(){this.getDataRequest.filterType="GRADE",this.apiService.postService(this.apiService.apiUrls.getAllTags,this.getDataRequest).subscribe(t=>{t&&200==t.statusCode?t.data&&t.data.content&&(this.gradeList=t.data.content):this.toaster.show(t?.message,"Info")},t=>{401==t.status?(this.isLoading=!1,this.toaster.show(t.message?t.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(t?.error?.message,"Info"))})}resetFilterMultiDropDownSelections(){this.teachersFilter=[],this.subjectsFilter=[],this.topicsFilter=[],this.ChaptersFilter=[]}getAllInterestAreasData(){this.getDataRequest.filterType="GRADE",this.apiService.postService(this.apiService.apiUrls.getAllTags,this.getDataRequest).subscribe(t=>{t&&200==t.statusCode?t.data&&t.data.content&&(this.interestAreaList=t.data.content):this.toaster.show(t?.message,"Info")},t=>{401==t.status?(this.isLoading=!1,this.toaster.show(t.message?t.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(t?.error?.message,"Info"))})}onInterestAreaSelectForTeacherFilter(t){let s=this.selectedTeachers.findIndex(n=>n==t.id);-1==s?this.selectedTeachers.push(t.id):this.selectedTeachers.splice(s,1)}onDifficultLevelSelectForFilter(t,s){let n=this.getAssessmentDataRequest.difficultLevels.findIndex(i=>i===t);s&&-1==n?this.getAssessmentDataRequest.difficultLevels.push(t):!s&&n>=0&&this.getAssessmentDataRequest.difficultLevels.splice(n,1)}onSubjectSelectForFilter(t,s){let n=this.subjectIds.findIndex(i=>i===t);s&&-1==n?this.subjectIds.push(t):!s&&n>=0&&this.subjectIds.splice(n,1)}reloadComponent(){let t=this.router.url;this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate([t])}resetFilterForQuestions(){(0,r.NF)(this.platformId)&&(this.getAssessmentDataRequest=new u.iE,this.gradeIds=[],this.subjectIds=[],this.selectedTagDto=[],this.selectedTagIds=[],this.selectedTeachers=[],$("input[type=checkbox]").prop("checked",!1),this.getFindAssessmentData(),this.getAllInterestAreasData(),this.resetFilterMultiDropDownSelections(),this.getAllTags("GRADE"))}applyFilterForQuestions(){(0,r.NF)(this.platformId)&&($("#findFilter").modal("hide"),this.getAssessmentDataRequest.filterTagIds=this.selectedTagIds,this.selectedTeachers.length>0&&(this.getAssessmentDataRequest.userIds=this.selectedTeachers),this.getFindAssessmentData())}paymentNow(){this.paymentOrder.paymentOption="ONLINE",this.cartDetails.forEach(s=>{this.paymentOrder.assessments.push({id:s.assessmentDto.id,purchasedAmount:s.assessmentDto.price})}),this.paymentOrder.amount=this.totalAmount,this.apiService.postService(this.apiService.apiUrls.paymentAndCurrency,this.paymentOrder).subscribe(s=>{s&&200==s.statusCode&&(this.options.name="Dynaminds",this.options.description="Assessment Fee",this.options.image="https://dynamind-public.s3.ap-south-1.amazonaws.com/dynamind_payment_logo.png",this.options.order_id=s.data.id,this.options.key=s.data.keyId,this.initPay())},s=>{401==s.status?(this.isLoading=!1,this.toaster.show(s.message?s.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(s?.error?.message,"Info"))})}getPaymentConfirmation(t,s,n){this.paymentOrder.razorpayPaymentId=t,this.paymentOrder.razorpayOrderId=s,this.paymentOrder.razorpaySignature=n,this.paymentOrder.amount=this.totalAmount,this.paymentOrder.cartDtos=this.cartDetails,this.paymentOrder.currency=this.findAssessmentListData[0].currency,this.apiService.postService(this.apiService.apiUrls.paymentUpdate,this.paymentOrder).subscribe(i=>{i&&200==i.statusCode&&(this.toaster.show(i.message,"Success"),this.router.navigate(["/navigation-bar/mentor/orders"],{queryParams:{selectedTab:"all-transactions",enableLink:"allTransactions"}}))},i=>{401==i.status?(this.isLoading=!1,this.toaster.show(i.message?i.message:"Something Went Wrong","Warning"),
1(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.toaster.error(i.error?i.error.message?i.error.message:"Something went wrong from server side. Please try again after sometime":i.message),this.toaster.show(i?.error?.message,"Info"))})}getUserProfile(t){return t&&t.photo&&null!=t?.photo?.fileId&&t.photo.filePreviewUrl?this.apiService.baseUrl+t.photo.filePreviewUrl:"./assets/assessment-image.png"}getImageOfuser(t){return t&&t.publishedByUser&&t.publishedByUser.profilePicture?.filePreviewUrl?this.apiService.baseUrl+t.publishedByUser.profilePicture.filePreviewUrl:"./assets/assessment-image.png"}getDefaultBar(t,s){return""==t||null==t?"defaultBar":"EXTREMELY_EASY"===t?1==s?"extremelyEasy":"defaultBar":"VERY_EASY"===t?1==s||2==s?"veryEasy":"defaultBar":"EASY"===t?1==s||2==s||3==s?"easy":"defaultBar":"MODERATELY_DIFFICULT"===t?1==s||2==s||3==s||4==s?"moderatelyDifficult":"defaultBar":"HIGHLY_DIFFICULT"===t?1==s||2==s||3==s||4==s||5==s?"highlyDifficult":"defaultBar":"EXTREMELY_DIFFICULT"===t?1==s||2==s||3==s||4==s||5==s||6==s?"exremelyDifficult":"defaultBar":void 0}hideRecaptcha(){if((0,r.NF)(this.platformId)){const t=$(".grecaptcha-badge");if(t.length)return t.css({display:"none"});requestAnimationFrame(()=>this.hideRecaptcha())}}disabledResetButtonForFilters(){return 0==this.selectedTeachers.length&&0==this.selectedTagIds.length}goBack(){this.location.back()}static#e=this.\u0275fac=function(s){return new(s||l)(e.\u0275\u0275directiveInject(S.s),e.\u0275\u0275directiveInject(b._W),e.\u0275\u0275directiveInject(h.F0),e.\u0275\u0275directiveInject(h.gz),e.\u0275\u0275directiveInject(r.Ye),e.\u0275\u0275directiveInject(C.Dx),e.\u0275\u0275directiveInject(e.PLATFORM_ID))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:l,selectors:[["app-mentor-find-all-assessments"]],viewQuery:function(s,n){if(1&s&&(e.\u0275\u0275viewQuery(vt,5),e.\u0275\u0275viewQuery(Ct,5)),2&s){let i;e.\u0275\u0275queryRefresh(i=e.\u0275\u0275loadQuery())&&(n.multiSelectForTeacherFilter=i.first),e.\u0275\u0275queryRefresh(i=e.\u0275\u0275loadQuery())&&(n.paginator=i.first)}},decls:88,vars:26,consts:[[4,"ngIf"],["type","button",1,"btn","btn-info",2,"border-radius","25px",3,"click"],[1,"d-flex","flex-wrap","align-items-center",2,"margin-bottom","20px"],[1,"mr-auto"],[1,""],[1,"find","mb-0"],[1,"mr-3","mr-md-2","mr-lg-3"],[1,"input-group","searchgroup","my-2","my-lg-0"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"bx","bx-search",2,"font-size","larger"],["type","text","placeholder","Search...",1,"form-control","border-left-0","pl-0","search-box",3,"keyup"],["data-toggle","modal","data-target","#findFilter",1,"btn","btn-info","filter-btn","border-0"],[1,"bx","bx-filter-alt"],["class","row p-0",4,"ngIf"],[1,"row"],[1,"col-md-12","text-right","mb-4"],[3,"rows","totalRecords","onPageChange"],["pp",""],["id","findFilter","tabindex","-1","data-backdrop","static","role","dialog","aria-labelledby","myModalLabel2",1,"modal","fade"],["role","document",1,"modal-dialog","modal
1-dialog-scrollable","modal-lg","mdl-dilog-mt",2,"margin-right","0"],[1,"modal-content"],["type","button","data-dismiss","modal","aria-label","Close",1,"close","mr-3","mt-3"],["aria-hidden","true",1,"d-flex","justify-content-end","mr-3","pt-3"],[1,"modal-body"],[1,"col-12"],[1,"form-group"],[3,"data","settings","disabled","placeholder","ngModel","onFilterChange","onDropDownClose","onSelect","onDeSelect","onSelectAll","onDeSelectAll","ngModelChange"],["multiSelectForTeacherFilter",""],[1,"ml-3"],["class","col-lg-4 col-xs-12 col-sm-12 col-md-4 col-xl-4 ",4,"ngFor","ngForOf"],["multiSelectForSubjectsFilter",""],[1,"col-lg-6"],["multiSelectForTopicsFilter",""],["multiSelectForChaptersFilter",""],[1,"modal-footer"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-info","mdl-btns","buttonColor",3,"click"],["type","button",1,"btn","btn-info","mdl-btns","buttonColor1","ml-3","text-light","font-weight-bold",3,"click"],["id","deleteCart","data-backdrop","static","tabindex","-1","aria-labelledby","deleteCart","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-header","border-bottom-0"],["id","deleteCart",1,"modal-title","text-center","text-danger"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"modal-body","text-center"],[1,"modal-footer","border-top-0"],["type","button","data-dismiss","modal","data-dismiss","modal",1,"btn","btn-info",3,"click"],["type","button","data-dismiss","modal",1,"btn","btn-secondary","btn-rounded"],[1,"row","p-0"],["class","col-md-6 col-sm-6 col-xs-12 col-lg-4 col-xl-3 mb-3 px-0 px-sm-2",4,"ngFor","ngForOf"],[1,"col-md-6","col-sm-6","col-xs-12","col-lg-4","col-xl-3","mb-3","px-0","px-sm-2"],[1,"card"],[1,"card","body"],[1,"col-lg-12"],[1,"img-fluid",2,"width","100%","height","200px",3,"src"],[1,"mt-1","txt-ellipsNew","text-capitalize"],[3,"title"],[1,"col-12","txt-ellips","text-capitalize",3,"title"],[1,"d-flex","my-1"],[1,"mr-2",2,"width","30px","height","30px","border-radius","50%",3,"src"],[1,"col-lg-12","txt-ellips"],[4,"ngFor","ngForOf"],[1,"col-lg-12","col-md-12"],[1,"d-flex"],[1,"txt-ellips",3,"title"],[1,"d-flex","align-items-center"],[3,"ngClass"],[1,"dropdown-divider"],[1,"d-flex",2,"padding","1.25rem"],[1,"mt-1","text-info"],["class","ml-auto mr-2","style","cursor: pointer;",3,"click",4,"ngIf"],[1,"ml-auto","mr-2",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa","fa-shopping-cart"],[1,"card-body","text-center"],[1,"mb-0"],[1,"col-lg-4","col-xs-12","col-sm-12","col-md-4","col-xl-4"],[1,"custom-control","custom-checkbox"],["type","checkbox",1,"custom-control-input",3,"id","name","change"],[1,"custom-control-label",3,"for","title"]],template:function(s,n){1&s&&(e.\u0275\u0275template(0,wt,1,0,"app-loader",0),e.\u0275\u0275elementStart(1,"button",1),e.\u0275\u0275listener("click",function(){return n.goBack()}),e.\u0275\u0275text(2,"See less"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",2)(4,"div",3)(5,"div",4)(6,"h1",5),e.\u0275\u0275text(7,"Find All Assessments"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(8,"div",4)(9,"div",6)(10,"div",7)(11,"div",8)(12,"span",9),e.\u0275\u0275element(13,"i",10),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(14,"input",11),e.\u0275\u0275listener("keyup",function(a){return n.onSearchShowData(a)}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(15,"div",4)(16,"div",4)(17,"button",12),e.\u0275\u0275element(18,"i",13),e.\u0275\u0275text(19," Filter"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275template(20,Tt,2,1,"div",14),e.\u0275\u0275elementStart(21,"div",15)(22,"div",16)(23,"p-paginator",17,18),e.\u0275\u0275listener("onPageChange",function(a){return n.paginate(a)}),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(25,Dt,5,0,"div",0),e.\u0275\u0275element(26,"app-footer"),e.\u0275\u0275elementStart(27,"div",19)(28,"div",20)(29,"div",21)(30,"button",22)(31,"span",23),e.\u0275\u0275text(32,"\xd7"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(33,"div",24)(34,"div",15)(35,"div",25)(36,"div",26)(37,"h6"),e.\u0275\u0275text(38,"Teacher"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(39,"ng-multiselect-dropdown",27,28),e.\u0275\u0275listener("onFilterChange",function(a){return n.onFilterChange(a)})("onDropDownClose",function(a){return n.onDropDownClose(a)})("onSelect",function(a){return n.onInterestAreaSelectForTeacherFilter(a)})("onDeSelect",function(a){return n.onInterestAreaSelectForTeacherFilter(a)})("onSelectAll",function(a){return n.onSelectAll(a)})("onDeSelectAll",function(a){return n.onDeSelectAll(a)})("ngModelChange",function(a){return n.teachersFilter=a}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(41,"h6",29),e.\u0275\u0275text(42,"Grade"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(43,"div",15),e.\u0275\u0275template(44,Ft,5,5,"div",30),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(45,"div",15)(46,"div",25)(47,"div",26)(48,"h6"),e.\u0275\u0275text(49,"Subject"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(50,"ng-multiselect-dropdown",27,31),e.\u0275\u0275listener("onFilterChange",function(a){return n.onFilterChange(a)})("onDropDownClose",function(a){return n.onDropDownClose(a)})("onSelect",function(a){return n.selectedOrUnSelectedtag(a,"SUBJECT")})("onDeSelect",function(a){return n.selectedOrUnSelectedtag(a,"SUBJECT")})("onSelectAll",function(a){return n.onSelectAll(a)})("onDeSelectAll",function(a){return n.onDeSelectAll(a)})("ngModelChange",function(a){return n.subjectsFilter=a}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(52,"div",15)(53,"div",32)(54,"div",26)(55,"h6"),e.\u0275\u0275text(56,"Topic"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(57,"ng-multiselect-dropdown",27,33),e.\u0275\u0275listener("onFilterChange",function(a){return n.onFilterChange(a)})("onDropDownClose",function(a){return n.onDropDownClose(a)})("onSelect",function(a){return n.selectedOrUnSelectedtag(a,"TOPIC")})("onDeSelect",function(a){return n.selectedOrUnSelectedtag(a,"TOPIC")})("onSelectAll",function(a){return n.onSelectAll(a)})("onDeSelectAll",function(a){return n.onDeSelectAll(a)})("ngModelChange",function(a){return n.topicsFilter=a}),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(59,"div",32)(60,"div",26)(61,"h6"),e.\u0275\u0275text(62,"Chapter"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(63,"ng-multiselect-dropdown",27,34),e.\u0275\u0275listener("onFilterChange",function(a){return n.onFilterChange(a)})("onDropDownClose",function(a){return n.onDropDownClose(a)})("onSelect",function(a){return n.selectedOrUnSelectedtag(a,"CHAPTER")})("onDeSelect",function(a){return n.selectedOrUnSelectedtag(a,"CHAPTER")})("onSelectAll",function(a){return n.onSelectAll(a)})("onDeSelectAll",function(a){return n.onDeSelectAll(a)})("ngModelChange",function(a){return n.ChaptersFilter=a}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(65,"div",35)(66,"div",36)(67,"button",37),e.\u0275\u0275listener("click",function(){return n.resetFilterForQuestions(),n.isReset=!0}),e.\u0275\u0275text(68," Reset "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(69,"button",38),e.\u0275\u0275listener("click",function(){return n.applyFilterForQuestions(),n.isReset=!1}),e.\u0275\u0275text(70," Apply "),e.\u0275\u0275elementEnd()()()()()()(),e.\u0275\u0275elementStart(71,"div",39)(72,"div",40)(73,"div",21)(74,"div",41)(75,"h5",42),e.\u0275\u0275text(76," Alert!! "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(77,"button",43)(78,"span",44),e.\u0275\u0275text(79,"\xd7"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(80,"div",45)(81,"p"),e.\u0275\u0275text(82,"Are you sure want to delete ?"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(83,"div",46)(84,"button",47),e.\u0275\u0275listener("click",function(){return n.deleteSingleRecord()}),e.\u0275\u0275text(85," Proceed "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(86,"button",48),e.\u0275\u0275text(87," Close "),e.\u0275\u0275elementEnd()()()()()),2&s&&(e.\u0275\u0275property("ngIf",n.isLoading),e.\u0275\u0275advance(20),e.\u0275\u0275property("ngIf",(null==n.findAssessmentListData?null:n.findAssessmentListData.length)>0&&0==n.isLoading),e.\u0275\u0275advance(3),e.\u0275\u0275property("rows",n.numberOfRowsPerPage)("totalRecords",n.getTotalRecords()),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",0==(null==n.findAssessmentListData?null:n.findAssessmentListData.length)&&0==n.isLoading),e.\u0275\u0275advance(14),e.\u0275\u0275property("data",n.getAllTeachersForFilter)("settings",n.settingsForTeachersFilter)("disabled",!1)("placeholder","Select Teacher")("ngModel",n.teachersFilter),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngForOf",n.allGrades),e.\u0275\u0275advance(6),e.\u0275\u0275property("data",n.allSubjects)("settings",n.settingsForSubjectsFilter)("disabled",!1)("placeholder","Select Subject")("ngModel",n.subjectsFilter),e.\u0275\u0275advance(7),e.\u0275\u0275property("data",n.allTopics)("settings",n.settingsForTopicsFilter)("disabled",!1)("placeholder","Select Topics")("ngModel",n.topicsFilter),e.\u0275\u0275advance(6),e.\u0275\u0275property("data",n.allChapters)("settings",n.settingsForChapersFilter)("disabled",!1)("placeholder","Select Chapters")("ngModel",n.ChaptersFilter))},dependencies:[r.mk,r.sg,r.O5,k.D,g.JJ,g.On,y.OP,H.R,M.c,r.rS,T.A],styles:[".grecaptcha-badge[_ngcontent-%COMP%]{display:none}.row[_ngcontent-%COMP%]{margin:0}.card[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-right:25px!important;margin-left:15px!important;padding:0 20px!important}.cardChanges[_ngcontent-%COMP%]{border-radius:15px}.card[_ngcontent-%COMP%]{overflow:none!important;border-radius:5px!important}.manage[_ngcontent-%COMP%]{margin:6px}.grade[_ngcontent-%COMP%]{font-weight:500}[_ngcontent-%COMP%]::placeholder{font-style:italic}.shadowbackground[_ngcontent-%COMP%]{box-shadow:0 2px 3px #8080808f}thead[_ngcontent-%COMP%]{background-color:#eaf4fe}tbody[_ngcontent-%COMP%]{background:white}.buttonColor[_ngcontent-%COMP%]{border:1px solid #1670A1;background:-webkit-linear-gradient(#508189,#E0FFFF);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.buttonColor1[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#32A6B5,#207AA7)}@media screen and (min-width: 992px) and (max-width: 1050px){#TableResponsive[_ngcontent-%COMP%]{max-width:750px;overflow-x:scroll}}@media screen and (min-width: 1051px) and (max-width: 1100px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:810px}}@media screen and (min-width: 1101px) and (max-width: 1150px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:850px}}@media screen and (min-width: 1151px) and (max-width: 1199px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:900px}}@media screen and (min-width: 1201px) and (max-width: 1240px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:970px}}@media screen and (min-width: 1241px) and (max-width: 1290px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:990px}}@media screen and (min-width: 1291px) and (max-width: 1330px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1040px}}@media screen and (min-width: 1331px) and (max-width: 1370px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1090px}}@media screen and (min-width: 1371px) and (max-width: 1420px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1120px}}@media screen and (min-width: 1421px) and (max-width: 1490px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1170px}}@media screen and (min-width: 1491px) and (max-width: 1520px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1240px}}@media screen and (min-width: 1521px) and (max-width: 1590px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1270px}}@media screen and (min-width: 1591px) and (max-width: 1620px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1350px}}@media screen and (min-width: 1621px) and (max-width: 1690px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1370px}}@media screen and (min-width: 1691px) and (max-width: 1720px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1440px}}@media screen and (min-width: 1721px) and (max-width: 1790px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1470px}}#Moment-Left[_ngcontent-%COMP%]{margin-left:190px}.filter-btn[_ngcontent-%COMP%]{width:130px;height:47px;border-radius:25px}.add-To-Cart-btn[_ngcontent-%COMP%]{width:140px;height:47px;border-radius:25px}.find[_ngcontent-%COMP%]{font-size:50px;font-weight:400;color:#1e3757}.searchgroup[_ngcontent-%COMP%]{height:47px;margin-right:15px}.search-box[_ngcontent-%COMP%]{height:47px}.searchgroup[_ngcontent-%COMP%]   .input-group-text[_ngcontent-%COMP%], .searchgroup[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%], .searchgroup[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]:focus{border:1px solid #8796A8!important}.searchgroup[_ngcontent-%COMP%]   .input-group-text[_ngcontent-%COMP%]{border-radius:25px 0 0 25px!important;border-right:none!important}.searchgroup[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{border-left:none!important;border-radius:0 25px 25px 0!important}.searchgroup[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]:focus{border-left:none!important}.searchgroup[_ngcontent-%COMP%]   .input-group-text[_ngcontent-%COMP%], .searchgroup[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{background-color:transparent!important}.bar[_ngcontent-%COMP%]{width:5px;height:10px;background-color:#00e1ac;margin:0 2px}h5[_ngcontent-%COMP%]{color:#1e3757!important;font-weight:500!important}.cart-div[_ngcontent-%COMP%]{padding:10px;background:#E5E5E5;border-radius:20px 20px 0 0}.card[_ngcontent-%COMP%]{border-radius:20px!important}select.form-control[_ngcontent-%COMP%]:focus{border-color:#ced4da!important}.cart-Icon[_ngcontent-%COMP%]{font-size:xx-large;padding:0;background:-webkit-linear-gradient(90deg,#00E1AC -17.6%,#03799C 110.6%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.cart-image[_ngcontent-%COMP%]{width:110px}@media screen and (min-width: 1300px) and (max-width: 1599px){.cart-image[_ngcontent-%COMP%]{width:130px}}@media screen and (min-width: 1600px) and (max-width: 1799px){.cart-image[_ngcontent-%COMP%]{width:150px}}@media screen and (min-width: 1800px) and (max-width: 2600px){.cart-image[_ngcontent-%COMP%]{width:180px}}.buttonProceed[_ngcontent-%COMP%]{background:linear-gradient(90deg,#00E1AC -17.6%,#03799C 110.6%);font-weight:700;margin:0 110px}.txt-ellips[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:115px;white-space:nowrap}.txt-ellipsNew[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:280px;white-space:nowrap}@media screen and (min-width: 1400px) and (max-width: 1600px){.txt-ellipsNew[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:240px;white-space:nowrap}}@media screen and (min-width: 1601px) and (max-width: 1800px){.txt-ellipsNew[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:250px;white-space:nowrap}}@media screen and (min-width: 1801px) and (max-width: 1900px){.txt-ellipsNew[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:250px;white-space:nowrap}}@media screen and (min-width: 1901px) and (max-width: 2001px){.txt-ellipsNew[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:265px;white-space:nowrap}}  .multiselect-dropdown .dropdown-btn .selected-item{width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #1e3757!important;background:#fff!important;color:#1e3757!important;justify-content:space-between}  .multiselect-dropdown .dropdown-btn .selected-item a{color:#1e3757!important}.defaultBar[_ngcontent-%COMP%]{width:5px;height:10px;background:#e9e9e9;margin:0 2px}.extremelyEasy[_ngcontent-%COMP%]{width:5px;height:10px;background-color:#00e1ac;margin:0 2px}.veryEasy[_ngcontent-%COMP%]{width:5px;height:10px;background:#1dd1fc;margin:0 2px}.easy[_ngcontent-%COMP%]{width:5px;height:10px;background:#fcbb1d;margin:0 2px}.moderatelyDifficult[_ngcontent-%COMP%]{width:5px;height:10px;background:#ff4a4a;margin:0 2px}.highlyDifficult[_ngcontent-%COMP%]{width:5px;heigh
1t:10px;background:#bd0000;margin:0 2px}.exremelyDifficult[_ngcontent-%COMP%]{width:5px;height:10px;background:red;margin:0 2px}.mdl-btns[_ngcontent-%COMP%]{border-radius:25px;padding:8px 24px}.mdl-dilog-mt[_ngcontent-%COMP%]{margin-top:80px}@media screen and (min-width: 280px) and (max-width: 575px){.find[_ngcontent-%COMP%]{font-size:25px}}@media screen and (min-width: 576px) and (max-width: 767px){.find[_ngcontent-%COMP%]{font-size:35px}.mdl-dilog-mt[_ngcontent-%COMP%]{margin-top:30px}}@media screen and (min-width: 768px) and (max-width: 991px){.find[_ngcontent-%COMP%]{font-size:35px}.mdl-dilog-mt[_ngcontent-%COMP%]{margin-top:30px}}@media screen and (max-width: 575px){.mdl-dilog-mt[_ngcontent-%COMP%]{margin-top:8px}}@media screen and (min-width: 992px) and (max-width: 1024px){.mdl-dilog-mt[_ngcontent-%COMP%]{margin-top:45px}}"]})}return l})(),canActivate:[x.y],data:{breadcrumb:"Assessments / Find All Assessments"}},{path:"find-all-interes-assessments",component:(()=>{class l{initPay(){this.rzp1=new Razorpay(this.options),this.rzp1.open()}constructor(t,s,n,i,a,d,m){this.location=t,this.apiService=s,this.toaster=n,this.router=i,this.activatedRoute=a,this.titleService=d,this.platformId=m,this.isReset=!1,this.getAssessmentDataRequest=new u.iE,this.getCartDetailsRequest=new u.iE,this.getDataRequest=new v.l,this.findAssessmentDto=new P._,this.currentPage=1,this.findAssessmentListData=[],this.findAssessmentListDummyData=[],this.getInterestAssessmentData=[],this.getInterestAssessmentDataDummyData=[],this.numberOfRowsPerPage=5,this.currentPageNumber=0,this.p=[],this.dummyAddToCartAssessment=[],this.paymentOrder=new O.m,this.addToCartArray=[],this.cartAssessmentDto=[],this.totalAmount=0,this.subjectIds=[],this.gradeIds=[],this.cartDetails=[],this.selectedTagDto=[],this.selectedTagIds=[],this.selectedTeachers=[],this.allGrades=[],this.allSubjects=[],this.allChapters=[],this.allTopics=[],this.options={key:"",amount:0,currency:"INR",name:"",description:"",image:"https://example.com/your_logo",order_id:"",handler:p=>{this.getPaymentConfirmation(p.razorpay_payment_id,p.razorpay_order_id,p.razorpay_signature)},prefill:{name:"",email:"",contact:""},notes:{address:"Razorpay Corporate Office"},theme:{color:"#F37254"},modal:{ondismiss:this.closeRazorrPayModel.bind(this)}},this.isLoading=!1,this.disabledAddToCart=!1,this.onSearchShowData=p=>{p&&p.target.value?(this.getAssessmentDataRequest.searchKey=p.target.value,this.getAssessmentDataRequest.pageNumber=this.currentPageNumber):this.getAssessmentDataRequest.searchKey="",this.getAllFindAssessementsWhichYouWereInterestedFor()},this.titleService.setTitle("Dynamind Mentor Find All Interest Assessment")}closeRazorrPayModel(){this.cartDetails.forEach(t=>{this.paymentOrder.assessments.pop()})}ngOnInit(){this.getAllFindAssessementsWhichYouWereInterestedFor()}getAllFindAssessementsWhichYouWereInterestedFor(){this.getAssessmentDataRequest.pageSize=25,this.isLoading=!0,this.apiService.postService(this.apiService.apiUrls.getAllFindAssessementsWhichYouWereInterestedFor,this.getAssessmentDataRequest).subscribe(t=>{t&&200===t.statusCode?(this.isLoading=!1,this.getInterestAssessmentData=t.data.content,this.totalPages=t?.data?.totalPages):(this.isLoading=!1,this.toaster.show(t?.message,"Info"))},t=>{401==t.status?(this.isLoading=!1,this.toaster.show(t.message?t.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(t?.error?.message,"Info"))})}goBack(){this.location.back()}paymentNow(){this.paymentOrder.paymentOption="ONLINE",this.cartDetails.forEach(s=>{this.paymentOrder.assessments.push({id:s.assessmentDto.id,purchasedAmount:s.assessmentDto.price})}),this.paymentOrder.amount=this.totalAmount,this.apiService.postService(this.apiService.apiUrls.paymentAndCurrency,this.paymentOrder).subscribe(s=>{s&&200==s.statusCode&&(this.options.name="Dynaminds",this.options.description="Assessment Fee",this.options.image="https://dynamind-public.s3.ap-south-1.amazonaws.com/dynamind_payment_logo.png",this.options.order_id=s.data.id,this.options.key=s.data.keyId,this.initPay())},s=>{401==s.status?(this.isLoading=!1,this.toaster.show(s.message?s.message:"Something Went Wrong","Warning"),
1(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(s?.error?.message,"Info"))})}getPaymentConfirmation(t,s,n){this.paymentOrder.razorpayPaymentId=t,this.paymentOrder.razorpayOrderId=s,this.paymentOrder.razorpaySignature=n,this.paymentOrder.amount=this.totalAmount,this.paymentOrder.cartDtos=this.cartDetails,this.paymentOrder.currency=this.findAssessmentListData[0].currency,this.apiService.postService(this.apiService.apiUrls.paymentUpdate,this.paymentOrder).subscribe(i=>{i&&200==i.statusCode&&(this.toaster.show(i.message,"Success"),this.router.navigate(["/navigation-bar/mentor/orders"],{queryParams:{selectedTab:"all-transactions",enableLink:"allTransactions"}}))},i=>{401==i.status?(this.isLoading=!1,this.toaster.show(i.message?i.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.toaster.error(i.error?i.error.message?i.error.message:"Something went wrong from server side. Please try again after sometime":i.message),this.toaster.show(i?.error?.message,"Info"))})}getUserProfile(t){return t&&t.photo&&null!=t?.photo?.fileId&&t.photo.filePreviewUrl?this.apiService.baseUrl+t.photo.filePreviewUrl:"./assets/assessment-image.png"}getImageOfuser(t){return t&&t.publishedByUser&&t.publishedByUser.profilePicture?.filePreviewUrl?this.apiService.baseUrl+t.publishedByUser.profilePicture.filePreviewUrl:"./assets/assessment-image.png"}getDefaultBar(t,s){return""==t||null==t?"defaultBar":"EXTREMELY_EASY"===t?1==s?"extremelyEasy":"defaultBar":"VERY_EASY"===t?1==s||2==s?"veryEasy":"defaultBar":"EASY"===t?1==s||2==s||3==s?"easy":"defaultBar":"MODERATELY_DIFFICULT"===t?1==s||2==s||3==s||4==s?"moderatelyDifficult":"defaultBar":"HIGHLY_DIFFICULT"===t?1==s||2==s||3==s||4==s||5==s?"highlyDifficult":"defaultBar":"EXTREMELY_DIFFICULT"===t?1==s||2==s||3==s||4==s||5==s||6==s?"exremelyDifficult":"defaultBar":void 0}disabledResetButtonForFilters(){return 0==this.selectedTeachers.length&&0==this.selectedTagIds.length}deleteCart(t){this.deleteId=t.id}deleteSingleRecord(){this.apiService.deleteService(this.apiService.apiUrls.deleteSingleCartItem+"/?id="+this.deleteId).subscribe(t=>{t&&200==t.statusCode?(this.cartDetails.forEach(s=>{this.totalAmount=this.totalAmount-s.assessmentDto.price}),this.toaster.show(t?.message,"Success"),this.getCartDetails()):(this.isLoading=!1,this.toaster.show(t?.message,"Info"))},t=>{401==t.status?(this.isLoading=!1,this.toaster.show(t.message?t.message:"Something Went Wrong","Warning"),(0,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toaster.show(t?.error?.message,"Info"))})}getCartDetails(){this.apiService.postService(this.apiService.apiUrls.getCartDetails,this.getCartDetailsRequest).subscribe(t=>{t&&200===t.statusCode&&t.data.CART_ITEMS.content&&(this.cartDetails=t.data.CART_ITEMS&&null!=t.data.CART_ITEMS.content?t.data.CART_ITEMS.content:[],this.totalAmountCount())})}totalAmountCount(){this.totalAmount=0,this.cartDetails.forEach(t=>{this.totalAmount=this.totalAmount+t.assessmentDto.price})}addToCart(t){this.disabledAddToCart=!0;let s=new E.s,n=new I.l,i=new A.$;i.id=t.id,n.assessmentDto=i,s.cartDtos.push(n),this.apiService.postService(this.apiService.apiUrls.addToCart,s).subscribe(a=>{a&&200===a.statusCode&&(0,r.NF)(this.platformId)?(this.toaster.show(a?.message,"Success"),this.dummyAddToCartAssessment=[],this.cartAssessmentDto=[],this.disabledAddToCart=!1,$("input[type=checkbox]").prop("checked",!1),this.getCartDetails(),this.getAllFindAssessementsWhichYouWereInterestedFor()):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,r.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/"),this.disabledAddToCart=!1):(this.isLoading=!1,this.toaster.show(a?.error?.message,"Info"))})}purchaseFreeAssessment(t){this.isLoading=!0,this.apiService.postService(this.apiService.apiUrls.freeAssessmentPurchase,{assessments:[{id:t.id}]}).subscribe(n=>{n&&200===n.statusCode?(this.isLoading=!1,this.toaster.show(n?.message,"Success"),this.getCartDetails()):this.toaster.show(n?.message,"Info")},n=>{401==n.status?(this.isLoading=!1,this.toaster.show(n.message?n.message:"Something Went Wrong","Warning")):(this.isLoading=!1,this.toaster.show(n?.error?.message,"Info"))})}onAddToCartChange(t,s){if(s)this.addToCartArray.find(i=>i.id==t.id)?(0,r.NF)(this.platformId)&&(this.toaster.show("Already Existed","Warning"),$("input[type=checkbox]").prop("checked",!1)):0==this.dummyAddToCartAssessment.filter(a=>a.id==t.id).length&&this.dummyAddToCartAssessment.push(t);else{let n=this.dummyAddToCartAssessment.findIndex(i=>i.id==t.id);-1!=n&&this.dummyAddToCartAssessment.splice(n,1)}}paginate(t){this.getAssessmentDataRequest.pageNumber=t.page,this.getAllFindAssessementsWhichYouWereInterestedFor()}getTotalRecords(){return this.totalPages*this.numberOfRowsPerPage}static#e=this.\u0275fac=function(s){return new(s||l)(e.\u0275\u0275directiveInject(r.Ye),e.\u0275\u0275directiveInject(S.s),e.\u0275\u0275directiveInject(b._W),e.\u0275\u0275directiveInject(h.F0),e.\u0275\u0275directiveInject(h.gz),e.\u0275\u0275directiveInject(C.Dx),e.\u0275\u0275directiveInject(e.PLATFORM_ID))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:l,selectors:[["app-see-all-find-interest-assessments"]],viewQuery:function(s,n){if(1&s&&(e.\u0275\u0275viewQuery(It,5),e.\u0275\u0275viewQuery(Et,5)),2&s){let i;e.\u0275\u0275queryRefresh(i=e.\u0275\u0275loadQuery())&&(n.multiSelectForTeacherFilter=i.first),e.\u0275\u0275queryRefresh(i=e.\u0275\u0275loadQuery())&&(n.paginator=i.first)}},decls:16,vars:4,consts:[[1,"row"],["type","button",1,"btn","btn-info",2,"border-radius","25px",3,"click"],[1,"d-flex","flex-wrap","flex-sm-nowrap","mt-3","mb-3"],[1,"input-group","searchgroup","my-2","my-sm-0"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"bx","bx-search",2,"font-size","larger"],["type","text","placeholder","Search...",1,"form-control","border-left-0","pl-0","search-box",3,"keyup"],["class","col-md-4 mb-3",4,"ngFor","ngForOf"],[1,"col-md-12","text-right","mb-4"],[3,"rows","totalRecords","onPageChange"],["pp",""],[4,"ngIf"],[1,"col-md-4","mb-3"],[1,"card"],[1,"card-body"],[1,"col-lg-12"],[1,"img-fluid",2,"width","100%","height","200px",3,"src"],[1,"mt-1","txt-ellipsNew","text-capitalize"],[3,"title"],[1,"col-12","txt-ellips","text-capitalize",3,"title"],[1,"d-flex","my-1"],[1,"mr-2",2,"width","30px","height","30px","border-radius","50%",3,"src"],[1,"col-lg-12","txt-ellips"],[4,"ngFor","ngForOf"],[1,"col-lg-12","col-md-12"],[1,"d-flex"],[1,"txt-ellips"],[1,"d-flex","align-items-center"],[3,"ngClass"],[1,"dropdown-divider"],[1,"mt-1","text-info"],["class","ml-auto mr-2","style","cursor: pointer;",3,"click",4,"ngIf"],[1,"ml-auto","mr-2",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa","fa-shopping-cart"],[1,"card-body","text-center"],[1,"mb-0"]],template:function(s,n){1&s&&(e.\u0275\u0275elementStart(0,"div",0)(1,"button",1),e.\u0275\u0275listener("click",function(){return n.goBack()}),e.\u0275\u0275text(2,"See less"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(3,"div",2)(4,"div",3)(5,"div",4)(6,"span",5),e.\u0275\u0275element(7,"i",6),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"input",7),e.\u0275\u0275listener("keyup",function(a){return n.onSearchShowData(a)}),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(9,"div",0),e.\u0275\u0275template(10,Rt,44,22,"div",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",0)(12,"div",9)(13,"p-paginator",10,11),e.\u0275\u0275listener("onPageChange",function(a){return n.paginate(a)}),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(15,Lt,5,0,"div",12)),2&s&&(e.\u0275\u0275advance(10),e.\u0275\u0275property("ngForOf",n.getInterestAssessmentData),e.\u0275\u0275advance(3),e.\u0275\u0275property("rows",n.numberOfRowsPerPage)("totalRecords",n.getTotalRecords()),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",0==(null==n.getInterestAssessmentData?null:n.getInterestAssessmentData.length)&&0==n.isLoading))},dependencies:[r.mk,r.sg,r.O5,k.D,r.rS,T.A],styles:[".grecaptcha-badge[_ngcontent-%COMP%]{display:none}.row[_ngcontent-%COMP%]{margin:0}.card[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-right:25px!important;margin-left:15px!important;padding:0 20px!important}.cardChanges[_ngcontent-%COMP%]{border-radius:15px}.card[_ngcontent-%COMP%]{overflow:none!important;border-radius:5px!important}.manage[_ngcontent-%COMP%]{margin:6px}.grade[_ngcontent-%COMP%]{font-weight:500}[_ngcontent-%COMP%]::placeholder{font-style:italic}.shadowbackground[_ngcontent-%COMP%]{box-shadow:0 2px 3px #8080808f}thead[_ngcontent-%COMP%]{background-color:#eaf4fe}tbody[_ngcontent-%COMP%]{background:white}.buttonColor[_ngcontent-%COMP%]{border:1px solid #1670A1;background:-webkit-linear-gradient(#508189,#E0FFFF);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.buttonColor1[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#32A6B5,#207AA7)}@media screen and (min-width: 992px) and (max-width: 1050px){#TableResponsive[_ngcontent-%COMP%]{max-width:750px;overflow-x:scroll}}@media screen and (min-width: 1051px) and (max-width: 1100px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:810px}}@media screen and (min-width: 1101px) and (max-width: 1150px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:850px}}@media screen and (min-width: 1151px) and (max-width: 1199px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:900px}}@media screen and (min-width: 1201px) and (max-width: 1240px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:970px}}@media screen and (min-width: 1241px) and (max-width: 1290px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:990px}}@media screen and (min-width: 1291px) and (max-width: 1330px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1040px}}@media screen and (min-width: 1331px) and (max-width: 1370px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1090px}}@media screen and (min-width: 1371px) and (max-width: 1420px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1120px}}@media screen and (min-width: 1421px) and (max-width: 1490px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1170px}}@media screen and (min-width: 1491px) and (max-width: 1520px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1240px}}@media screen and (min-width: 1521px) and (max-width: 1590px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1270px}}@media screen and (min-width: 1591px) and (max-width: 1620px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1350px}}@media screen and (min-width: 1621px) and (max-width: 1690px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1370px}}@media screen and (min-width: 1691px) and (max-width: 1720px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1440px}}@media screen and (min-width: 1721px) and (max-width: 1790px){#TableResponsive[_ngcontent-%COMP%]{overflow-x:scroll;max-width:1470px}}#Moment-Left[_ngcontent-%COMP%]{margin-left:190px}.filter-btn[_ngcontent-%COMP%]{width:130px;height:47px;border-radius:25px}.mdl-btns[_ngcontent-%COMP%]{border-radius:25px;padding:8px 24px}.add-To-Cart-btn[_ngcontent-%COMP%]{width:140px;height:47px;border-radius:25px}.find[_ngcontent-%COMP%]{font-size:50px;font-weight:400;color:#1e3757}.searchgroup[_ngcontent-%COMP%]{height:47px;margin-right:15px}.search-box[_ngcontent-%COMP%]{height:47px}.searchgroup[_ngcontent-%COMP%]   .input-group-text[_ngcontent-%COMP%], .searchgroup[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%], .searchgroup[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]:focus{border:1px solid #8796A8!important}.searchgroup[_ngcontent-%COMP%]   .input-group-text[_ngcontent-%COMP%]{border-radius:25px 0 0 25px!important;border-right:none!important}.searchgroup[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{border-left:none!important;border-radius:0 25px 25px 0!important}.searchgroup[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]:focus{border-left:none!important}.searchgroup[_ngcontent-%COMP%]   .input-group-text[_ngcontent-%COMP%], .searchgroup[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{background-color:transparent!important}.bar[_ngcontent-%COMP%]{width:5px;height:10px;background-color:#00e1ac;margin:0 2px}h5[_ngcontent-%COMP%]{color:#1e3757!important;font-weight:500!important}.cart-div[_ngcontent-%COMP%]{padding:10px;background:#E5E5E5;border-radius:20px 20px 0 0}.card[_ngcontent-%COMP%]{border-radius:20px!important}select.form-control[_ngcontent-%COMP%]:focus{border-color:#ced4da!important}.cart-Icon[_ngcontent-%COMP%]{font-size:xx-large;padding:0;background:-webkit-linear-gradient(90deg,#00E1AC -17.6%,#03799C 110.6%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.cart-image[_ngcontent-%COMP%]{width:110px;border-radius:10px}@media screen and (min-width: 992px) and (max-width: 1199px){.cart-image[_ngcontent-%COMP%]{width:300px}}@media screen and (min-width: 1200px) and (max-width: 1299px){.cart-image[_ngcontent-%COMP%]{width:100%;height:100%}}@media screen and (min-width: 1300px) and (max-width: 1599px){.cart-image[_ngcontent-%COMP%]{width:100%;height:100%}}@media screen and (min-width: 1600px) and (max-width: 1799px){.cart-image[_ngcontent-%COMP%]{width:100%;height:100%}}@media screen and (min-width: 1800px) and (max-width: 2600px){.cart-image[_ngcontent-%COMP%]{width:100%;height:100%}}.buttonProceed[_ngcontent-%COMP%]{background:linear-gradient(90deg,#00E1AC -17.6%,#03799C 110.6%);font-weight:700}.txt-ellips[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:115px;white-space:nowrap}.txt-ellipsNew[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:280px;white-space:nowrap}@media screen and (min-width: 1200px) and (max-width: 1399px){.txt-ellipsForCart[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:280px;white-space:nowrap}}@media screen and (min-width: 1400px) and (max-width: 1600px){.txt-ellipsNew[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:240px;white-space:nowrap}.txt-ellipsForCart[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:280px;white-space:nowrap}}@media screen and (min-width: 1601px) and (max-width: 1800px){.txt-ellipsNew[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:250px;white-space:nowrap}.txt-ellipsForCart[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:280px;white-space:nowrap}}@media screen and (min-width: 1801px) and (max-width: 1900px){.txt-ellipsNew[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:250px;white-space:nowrap}.txt-ellipsForCart[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:280px;white-space:nowrap}}@media screen and (min-width: 1901px) and (max-width: 2001px){.txt-ellipsNew[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:265px;white-space:nowrap}.txt-ellipsForCart[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;width:280px;white-space:nowrap}}  .multiselect-dropdown .dropdown-btn .selected-item{width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #1e3757!important;background:#fff!important;color:#1e3757!important;justify-content:space-between}  .multiselect-dropdown .dropdown-btn .selected-item a{color:#1e3757!important}.defaultBar[_ngcontent-%COMP%]{width:5px;height:10px;background:#e9e9e9;margin:0 2px}.extremelyEasy[_ngcontent-%COMP%]{width:5px;height:10px;background-color:#00e1ac;margin:0 2px}.veryEasy[_ngcontent-%COMP%]{width:5px;height:10px;background:#1dd1fc;margin:0 2px}.easy[_ngcontent-%COMP%]{width:5px;height:10px;background:#fcbb1d;margin:0 2px}.moderatelyDifficult[_ngcontent-%COMP%]{width:5px;height:10px;background:#ff4a4a;margin:0 2px}.highlyDifficult[_ngcontent-%COMP%]{width:5px;height:10px;background:#bd0000;margin:0 2px}.exremelyDifficult[_ngcontent-%COMP%]{width:5px;height:10px;background:red;margin:0 2px}.mdl-dilog-mt[_ngcontent-%COMP%]{margin-top:80px}@media screen and (min-width: 280px) and (max-width: 575px){.find[_ngcontent-%
1COMP%]{font-size:25px}h5[_ngcontent-%COMP%]{font-size:20px!important}}@media screen and (max-width: 575px){.mdl-dilog-mt[_ngcontent-%COMP%]{margin-top:8px}}@media screen and (min-width: 576px) and (max-width: 767px){.mdl-dilog-mt[_ngcontent-%COMP%]{margin-top:30px}}@media screen and (min-width: 768px) and (max-width: 992px){.mdl-dilog-mt[_ngcontent-%COMP%]{margin-top:30px}}@media screen and (min-width: 992px) and (max-width: 1024px){.mdl-dilog-mt[_ngcontent-%COMP%]{margin-top:45px}}"]})}return l})(),canActivate:[x.y],data:{breadcrumb:"Assessments / Find All Interest Assessments"}}]}];let Vt=(()=>{class l{static#e=this.\u0275fac=function(s){return new(s||l)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:l});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[h.Bz.forChild(Nt),h.Bz]})}return l})();var Qt=c(86457),Ut=c(38314),Bt=c(22962);let Wt=(()=>{class l{static#e=this.\u0275fac=function(s){return new(s||l)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:l});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[r.ez,Vt,k.U,Qt.JO,y.ZQ.forRoot(),q.rP,N.X,Ut.m,V.d,w.Q,Bt.q4,Q.JH]})}return l})()}}]);

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.