PageSourceSearch

https://market.dynamind.co/9362.514903895ddc8af1.js

js dynamind.co collected 2026-10-01 14:42:00 UTC 79,418 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdynaminds=self.webpackChunkdynaminds||[]).push([[9362],{39362:(se,N,d)=>{d.r(N),d.d(N,{DynaGptModule:()=>ie});var c=d(36895),u=d(1791),t=d(94650);let W=(()=>{class n{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275cmp=t.\u0275\u0275defineComponent({type:n,selectors:[["app-dyna-gpt"]],decls:1,vars:0,template:function(a,i){1&a&&t.\u0275\u0275element(0,"router-outlet")},dependencies:[u.lC]})}return n})();var f=d(42946),v=d(33739),y=d(37865),C=d(97185),z=d(16e3),$=d(7444),H=d(80529),j=d(11321),M=d(11481),b=d(89047);const J=["*"];let x=(()=>{class n{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275cmp=t.\u0275\u0275defineComponent({type:n,selectors:[["app-dyna-gpt-outer-design"]],ngContentSelectors:J,decls:4,vars:0,consts:[[1,"container-lg","container-xl","columnPadding"],[1,"row","justify-content-center","mt-5"],[1,"col-12","col-lg-11","col-xl-11","columnPadding"]],template:function(a,i){1&a&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),t.\u0275\u0275projection(3),t.\u0275\u0275elementEnd()()())},styles:[".row[_ngcontent-%COMP%]{margin:0;padding:0}@media screen and (width < 991px){.columnPadding[_ngcontent-%COMP%]{padding:0}}"]})}return n})(),D=(()=>{class n{constructor(e){this.location=e}ngOnInit(){}goback(){this.location.back()}static#t=this.\u0275fac=function(a){return new(a||n)(t.\u0275\u0275directiveInject(c.Ye))};static#e=this.\u0275cmp=t.\u0275\u0275defineComponent({type:n,selectors:[["app-dyna-gpt-bread-crumb"]],inputs:{teamDetail:"teamDetail",breadCrumbPath:"breadCrumbPath"},decls:11,vars:2,consts:[[1,"d-flex"],[1,"breadCrumbCohortsText","sofiaProBold"],[1,"sofiaProBold","breadCrumbTeamNameText"],[1,"ml-auto"],[1,"btn","btn-default","backButton",3,"click"],[1,"bx","bxs-chevron-left","text-light"],[1,"borderLine"]],template:function(a,i){1&a&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div")(2,"span",1),t.\u0275\u0275text(3," Cohorts > "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"span",2),t.\u0275\u0275text(5),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(6,"div",3)(7,"button",4),t.\u0275\u0275listener("click",function(){return i.goback()}),t.\u0275\u0275element(8,"i",5),t.\u0275\u0275text(9," Back "),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275element(10,"div",6)),2&a&&(t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate2("",null==(null==i.teamDetail?null:i.teamDetail.teamName)?"N/A":null==i.teamDetail?null:i.teamDetail.teamName," ",null==i.breadCrumbPath?"":"- "+i.breadCrumbPath,""))},styles:[".row[_ngcontent-%COMP%]{margin:0;padding:0}.backButton[_ngcontent-%COMP%]{background-color:#1e3757;border-radius:10px;color:#fff!important;display:flex;align-items:center;font-size:18px;transition:all .5s}.breadCrumbCohortsText[_ngcontent-%COMP%]{color:#03799c;font-size:22px}.breadCrumbTeamNameText[_ngcontent-%COMP%]{font-size:18px}.borderLine[_ngcontent-%COMP%]{border-bottom:1px solid #03799C;margin:10px 0}"]})}return n})();function q(n,r){1&n&&t.\u0275\u0275element(0,"app-loader")}function Q(n,r){if(1&n&&t.\u0275\u0275element(0,"app-dyna-gpt-bread-crumb",11),2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275property("teamDetail",e.teamDetail)}}function K(n,r){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",12)(1,"div",13),t.\u0275\u0275listener("click",function(){const o=t.\u0275\u0275restoreView(e).$implicit,l=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(l.navigate(o))}),t.\u0275\u0275elementStart(2,"div",14)(3,"div"),t.\u0275\u0275element(4,"img",15),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"div",16)(6,"h5",17),t.\u0275\u0275text(7),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(8,"p",18),t.\u0275\u0275text(9),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(10,"div",19),t.\u0275\u0275element(11,"i",20),t.\u0275\u0275elementEnd()()()()}if(2&n){const e=r.$implicit,a=t.\u0275\u0275nextContext();t.\u0275\u0275advance(4),t.\u0275\u0275property("src",a.getImage(e.imageFileData),t.\u0275\u0275sanitizeUrl),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(e.name),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(e.description)}}function Y(n,r){1&n&&(t.\u0275\u0275elementStart(0,"div",21)(1,"div",22)(2,"div",23),t.\u0275\u0275element(3,"input",24),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"div",25)(5,"button",26),t.\u0275\u0275element(6,"i",27),t.\u0275\u0275elementEnd()()()())}let k=(()=>{class n{constructor(e,a,i,o,l,s,p,g,m,h,_,oe,re){this.router=e,this.loggedInUserService=a,this.activatedRoute=i,this.apiservice=o,this.toastr=l,this.simpleModalService=s,this.platformId=p,this._location=g,this.modalService=m,this.vps=h,this.http=_,this.eventEmitterService=oe,this.titleService=re,this.isLoading=!1,this.cardsData=[],this.titleService.setTitle("Dynamind Dyna Chat Personalisation")}ngOnInit(){this.teamId=this.activatedRoute.snapshot.params.teamId,this.getTeamDetails(),this.getPersonalizedData();let e=JSON.parse(this.loggedInUserService.getLoggedInUser());e&&(this.loggedInUser=e),console.log(this.cardsData)}getTeamDetails(){this.isLoading=!0,this.apiservice.getService(this.apiservice.apiUrls.getTeamDetails+"/"+this.teamId).subscribe(e=>{e&&200===e.statusCode?(this.teamDetail=e.data,this.isLoading=!1):(this.isLoading=!1,this.toastr.show(e?.message,"Info"))},e=>{this.isLoading=!1,401==e.status?(this.toastr.show(e.message?e.message:"Something Went Wrong","Warning"),
1(0,c.NF)(this.platformId)&&localStorage.clear(),(0,c.NF)(this.platformId)&&(window.location.href="/")):this.toastr.show(e.error?.message,"warning")})}navigate(e){this.loggedInUser.userRole==f.pR.MENTEE?1==e.sequence?this.router.navigate(["/navigation-bar/mentee/class-room/teams-overview/dyna-chat/feedback-remediation",this.teamId,e.id]):2==e.sequence?this.router.navigate(["/navigation-bar/mentee/class-room/teams-overview/dyna-chat/application-example",this.teamId,e.id]):3==e.sequence&&this.router.navigate(["/navigation-bar/mentee/class-room/teams-overview/dyna-chat/learning-reference",this.teamId,e.id]):this.loggedInUser.userRole==f.pR.MENTOR&&(1==e.sequence?this.router.navigate(["/navigation-bar/mentor/acadamy/teams/teams-overview/dyna-chat/feedback-remediation",this.teamId,e.id]):2==e.sequence?this.router.navigate(["/navigation-bar/mentor/acadamy/teams/teams-overview/dyna-chat/application-example",this.teamId,e.id]):3==e.sequence&&this.router.navigate(["/navigation-bar/mentor/acadamy/teams/teams-overview/dyna-chat/learning-reference",this.teamId,e.id]))}getPersonalizedData(){this.isLoading=!0,this.apiservice.getService(this.apiservice.apiUrls.getSelectedTypesOfLearning).subscribe(e=>{if(e&&200===e.statusCode){let a=[];a=e.data,a=a.sort((i,o)=>i.sequence>o.sequence?1:-1),this.cardsData=a,this.isLoading=!1}else this.isLoading=!1,this.toastr.show(e?.message,"Info")},e=>{this.isLoading=!1,401==e.status?(this.toastr.show(e.message?e.message:"Something Went Wrong","Warning"),(0,c.NF)(this.platformId)&&localStorage.clear(),(0,c.NF)(this.platformId)&&(window.location.href="/")):this.toastr.show(e.error?.message,"warning")})}getImage(e){return e&&e.filePreviewUrl?this.apiservice.baseUrl+e.filePreviewUrl:"/assets/Default-Image-02.png"}static#t=this.\u0275fac=function(a){return new(a||n)(t.\u0275\u0275directiveInject(u.F0),t.\u0275\u0275directiveInject(v.k),t.\u0275\u0275directiveInject(u.gz),t.\u0275\u0275directiveInject(y.s),t.\u0275\u0275directiveInject(C._W),t.\u0275\u0275directiveInject(z.yK),t.\u0275\u0275directiveInject(t.PLATFORM_ID),t.\u0275\u0275directiveInject(c.Ye),t.\u0275\u0275directiveInject($.FF),t.\u0275\u0275directiveInject(c.EM),t.\u0275\u0275directiveInject(H.eN),t.\u0275\u0275directiveInject(j.B),t.\u0275\u0275directiveInject(M.Dx))};static#e=this.\u0275cmp=t.\u0275\u0275defineComponent({type:n,selectors:[["app-personalised-generative-ui"]],decls:15,vars:4,consts:[[4,"ngIf"],[3,"teamDetail",4,"ngIf"],["id","card",1,"card"],[1,"card-body","cardBody"],[1,"text-center"],[1,"sofiaProRegular","unlockThePowerText"],[1,"sofiaProBold","PersonalisedGenerativeText"],[1,"sofiaProLight","workWithYourSmartestText"],[1,"row"],["class","col-md-12 my-2 columnPadding",4,"ngFor","ngForOf"],["class","row no-gutters",4,"ngIf"],[3,"teamDetail"],[1,"col-md-12","my-2","columnPadding"],["id","card",1,"card","d-flex","scale",3,"click"],[1,"card-body","d-block","d-md-flex","d-lg-flex","d-xl-flex","align-items-center"],["alt","Card Image",1,"card-img-top","mr-3","d-none","d-md-block","d-lg-block","d-xl-block",2,"width","46px",3,"src"],[1,"flex-fill"],[1,"card-title","sofiaProRegular"],[1,"card-text","sofiaProLight","darkLightColor"],[1,"text-xl-center","text-center"],[1,"fas","fa-arrow-right","ml-3","darkLightColor"],[1,"row","no-gutters"],[1,"col-12","col-lg-10","col-xl-8"],[1,"col"],["type","text","placeholder","Type something","id","example-search-input4",1,"form-control","border-secondary","border-right-0","rounded-0","inputFieldStyles","sofiaProRegular"],[1,"col-auto"],["type","button",1,"btn","btn-outline-secondary","border-left-0","rounded-0","rounded-right"],[1,"fa","fa-close"]],template:function(a,i){1&a&&(t.\u0275\u0275template(0,q,1,0,"app-loader",0),t.\u0275\u0275template(1,Q,1,1,"app-dyna-gpt-bread-crumb",1),t.\u0275\u0275elementStart(2,"app-dyna-gpt-outer-design")(3,"div",2)(4,"div",3)(5,"div",4)(6,"h5",5),t.\u0275\u0275text(7," Unlock the power of "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(8,"h3",6),t.\u0275\u0275text(9," Personalised Generative AI "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(10,"p",7),t.\u0275\u0275text(11,"Work with your smartest Learning Partner"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(12,"div",8),t.\u0275\u0275template(13,K,12,3,"div",9),t.\u0275\u0275elementEnd()()()(),t.\u0275\u0275template(14,Y,7,0,"div",10)),2&a&&(t.\u0275\u0275property("ngIf",i.isLoading),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",i.teamDetail),t.\u0275\u0275advance(12),t.\u0275\u0275property("ngForOf",i.cardsData),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!1))},dependencies:[c.sg,c.O5,b.R,x,D],styles:[".row[_ngcontent-%COMP%]{margin:0;padding:0}*[_ngcontent-%COMP%]{color:#1e3757}#card[_ngcontent-%COMP%]{border:1px solid rgba(232,236,239,.75);border-radius:12px;background:#FEFEFE;transition:all .2s ease-in-out;cursor:pointer}@media screen and (width > 992px){#card[_ngcontent-%COMP%]   .cardBody[_ngcontent-%COMP%]{padding:2rem}}@media screen and (width < 575px){#card[_ngcontent-%COMP%]   .cardBody[_ngcontent-%COMP%]{padding:1rem}}#card[_ngcontent-%COMP%]   .unlockThePowerText[_ngcontent-%COMP%]{font-size:26px!important}
1@media screen and (width < 400px){#card[_ngcontent-%COMP%]   .unlockThePowerText[_ngcontent-%COMP%]{font-size:18px!important}}#card[_ngcontent-%COMP%]   .PersonalisedGenerativeText[_ngcontent-%COMP%]{font-size:30px}@media screen and (width < 400px){#card[_ngcontent-%COMP%]   .PersonalisedGenerativeText[_ngcontent-%COMP%]{font-size:18px!important}}#card[_ngcontent-%COMP%]   .workWithYourSmartestText[_ngcontent-%COMP%]{font-size:18px;color:#6c7275}@media screen and (width < 400px){#card[_ngcontent-%COMP%]   .workWithYourSmartestText[_ngcontent-%COMP%]{font-size:14px!important}}.scale[_ngcontent-%COMP%]:hover{transform:scale(1.1)}.darkLightColor[_ngcontent-%COMP%]{color:#6c7275}@media screen and (width < 991px){.columnPadding[_ngcontent-%COMP%]{padding:0}}"]})}return n})();var T=d(91323);class G{}var S=d(62398),A=d(78851),R=d(92340),B=d(84207),w=d(15922),E=d(37015),I=d(45227),F=d(84719),X=d(71019);function Z(n,r){if(1&n&&(t.\u0275\u0275elementStart(0,"div",2),t.\u0275\u0275element(1,"p",3),t.\u0275\u0275pipe(2,"safeHtml"),t.\u0275\u0275elementEnd()),2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind1(2,1,e.typewriter_display),t.\u0275\u0275sanitizeHtml)}}function tt(n,r){1&n&&(t.\u0275\u0275elementStart(0,"div",8)(1,"div")(2,"div",9),t.\u0275\u0275element(3,"div",10)(4,"div",10)(5,"div",10),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(6,"div")(7,"span",11),t.\u0275\u0275text(8,"Sending Request"),t.\u0275\u0275elementEnd()()())}function et(n,r){1&n&&t.\u0275\u0275element(0,"img",17)}function nt(n,r){1&n&&t.\u0275\u0275element(0,"span",18)}function at(n,r){if(1&n&&(t.\u0275\u0275elementStart(0,"div",12),t.\u0275\u0275template(1,et,1,0,"img",13),t.\u0275\u0275elementStart(2,"div",14)(3,"span",15),t.\u0275\u0275template(4,nt,1,0,"span",16),t.\u0275\u0275elementEnd()()()),2&n){const e=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",e.displayDynaGptLogo),t.\u0275\u0275advance(2),t.\u0275\u0275property("innerHTML",e.typewriter_display,t.\u0275\u0275sanitizeHtml),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==e.typewriter_display?null:e.typewriter_display.length)<(null==e.typewriter_text?null:e.typewriter_text.length))}}function it(n,r){if(1&n&&(t.\u0275\u0275elementStart(0,"div",4)(1,"div",5),t.\u0275\u0275template(2,tt,9,0,"div",6),t.\u0275\u0275template(3,at,5,3,"div",7),t.\u0275\u0275elementEnd()()),2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275styleProp("background-color",e.noBackground?null:"#F3F5F7"),t.\u0275\u0275advance(1),t.\u0275\u0275classProp("pt-3",null==e.elaboratedData?null:e.elaboratedData.isLoading)("pb-5",null==e.elaboratedData?null:e.elaboratedData.isLoading),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==e.elaboratedData?null:e.elaboratedData.isLoading),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!(null!=e.elaboratedData&&e.elaboratedData.isLoading))}}let P=(()=>{class n{constructor(e,a){this.sanitized=e,this.mathJaxService=a,this.displayDynaGptLogo=!1,this.noBackground=!1,this.typewriter_display="",this.elaborateTextLoaded=new t.EventEmitter,this.scrollToTheView=new t.EventEmitter}ngOnInit(){this.elaboratedData&&(console.log(this.elaboratedData,"this.elaboratedData"),this.typewriter_text=this.elaboratedData.text,this.typewriter_text?.length>0&&this.typingCallback())}typingCallback(){this.typewriter_display=this.typewriter_text,this.mathJaxService.renderMathJax(),this.elaborateTextLoaded.emit(this.elaboratedData)}static#t=this.\u0275fac=function(a){return new(a||n)(t.\u0275\u0275directiveInject(M.H7),t.\u0275\u0275directiveInject(w.X))};static#e=this.\u0275cmp=t.\u0275\u0275defineComponent({type:n,selectors:[["app-dyna-gpt-elaborate"]],inputs:{elaboratedData:"elaboratedData",displayDynaGptLogo:"displayDynaGptLogo",noBackground:"noBackground"},outputs:{elaborateTextLoaded:"elaborateTextLoaded",scrollToTheView:"scrollToTheView"},decls:2,vars:2,consts:[["class","card artbord",4,"ngIf"],["class","card","id","card",3,"background-color",4,"ngIf"],[1,"card","artbord"],[1,"m-0","sofiaProBold","articleText",3,"innerHTML"],["
1id","card",1,"card"],["id","cardBody",1,"card-body"],["class","d-flex",4,"ngIf"],["id","cardNew",4,"ngIf"],[1,"d-flex"],[1,"loading-dots"],[1,"loading-dots--dot"],[1,"secondaryColor","sofiaProLight"],["id","cardNew"],["src","/assets/DynaGpt/DynaGpt.png","alt","dyna gpt image","class","img-fluid",4,"ngIf"],[1,"card-content"],[1,"sofiaProRegular",2,"font-size","17px",3,"innerHTML"],["class","blink",4,"ngIf"],["src","/assets/DynaGpt/DynaGpt.png","alt","dyna gpt image",1,"img-fluid"],[1,"blink"]],template:function(a,i){1&a&&(t.\u0275\u0275template(0,Z,3,3,"div",0),t.\u0275\u0275template(1,it,4,8,"div",1)),2&a&&(t.\u0275\u0275property("ngIf",!i.displayDynaGptLogo&&(null==i.elaboratedData?null:i.elaboratedData.question)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!(null!=i.elaboratedData&&i.elaboratedData.question)))},dependencies:[c.O5,X.z],styles:["@keyframes _ngcontent-%COMP%_dot-keyframes{0%{opacity:.4;transform:scale(1)}50%{opacity:1;transform:scale(1.2)}to{opacity:.4;transform:scale(1)}}.loading-dots[_ngcontent-%COMP%]{width:100%}.loading-dots--dot[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_dot-keyframes 1.5s infinite ease-in-out;background-color:#000;border-radius:10px;display:inline-block;height:7px;width:7px;margin:0 2px}.loading-dots--dot[_ngcontent-%COMP%]:nth-child(2){animation-delay:.5s}.loading-dots--dot[_ngcontent-%COMP%]:nth-child(3){animation-delay:1s}.secondaryColor[_ngcontent-%COMP%]{color:#6c727580;margin-left:5px}#card[_ngcontent-%COMP%]{border-radius:20px;border:1px solid #F3F5F7;color:#1e3757}#card[_ngcontent-%COMP%]   #cardBody[_ngcontent-%COMP%]{padding:0 10px 15px}.blink[_ngcontent-%COMP%]{border:5px solid rgba(128,128,128,.527);animation:_ngcontent-%COMP%_blink 1s infinite}@keyframes _ngcontent-%COMP%_blink{to{opacity:0}}#cardNew[_ngcontent-%COMP%]{display:flex;flex-direction:row;overflow:hidden}@media screen and (max-width: 991px){#cardNew[_ngcontent-%COMP%]{display:block}}#cardNew[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:60px;object-fit:contain;position:relative;top:35px;width:120px}@media screen and (max-width: 991px){#cardNew[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:200px}}#cardNew[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]{width:100%;margin-left:10px}.artbord[_ngcontent-%COMP%]{background:#FEFEFE;border:3px solid rgba(232,236,239,.75);border-radius:12px;margin:20px 0;padding:1rem;color:#1e3757}"]})}return n})();const ot=["target"];function rt(n,r){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"app-dyna-gpt-elaborate",15),t.\u0275\u0275listener("scrollToTheView",function(i){t.\u0275\u0275restoreView(e);const o=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(o.scrollToTheView(i))}),t.\u0275\u0275elementEnd()}if(2&n){const e=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275property("elaboratedData",e)("displayDynaGptLogo",!1)}}function st(n,r){if(1&n&&(t.\u0275\u0275elementStart(0,"div",13),t.\u0275\u0275template(1,rt,1,2,"app-dyna-gpt-elaborate",14),t.\u0275\u0275elementEnd()),2&n){const e=r.$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",e)}}let O=(()=>{class n{constructor(e,a,i,o,l,s,p){this.sanitizer=e,this.apiService=a,this._botService=i,this.mathJaxService=o,this.toaster=l,this.loggedInUserService=s,this.platformId=p,this.isLoading=!1,this.getData=new S.Ro,this.getChatGPTData=[],this.getChatGPTHistoryData=[],this.searchFormKey="",this.buttonStatus=!0,this.elaboratedData=[]}ngOnInit(){this.loggedInUser=JSON.parse(this.loggedInUserService.getLoggedInUser()),this.getData.max_tokens=1e3,this.getData.n=1,this.getData.temperature=.5}enableBtn(){this.buttonStatus=!(this.searchFormKey.length>0)}onSearchShowData(e){if(0==this.searchFormKey.length)return void this.toaster.warning("Please enter some text","info");this.searchFormKey="";let a={isLoading:!1};a.text="Q. "+e,a.question=!0,this.getChatGPTHistoryData.push(a),this.scrollTo(),setTimeout(()=>{this.getChatGPTData=[],this.getChatGPTHistoryData.push({isLoading:!0}),this.scrollTo(),this.isLoading=!0,this.getData.requestMsg=e+" in 50 words",this.getData.team_id=+atob(this.teamId),this.getData.source="WEB",this.getData.user_preference="solutionStation",this.getData.app_user_id=this.loggedInUser.id,this.getData.gpt_personalized_learning_id=+this.gpt_personalized_learning_id;let o=[];o=this._botService.gpt4message(this.getData.requestMsg),this.getData.messages=[{role:"system",content:"you are helpful assistant. \nYou are addressing a student"},{role:"user",content:o}],this._botService.gpt4omini(this.getData).subscribe({next:l=>{if(l){let s={};s.text=l.data.message.content.replace(/\*\*(.*?)\*\*/g,"<b>$1</b>").replace(/\/\(/g,"\\(").replace(/\\\)/g,"\\)").replace(/\\\(/g,"$").replace(/\\\)/g,"$").replace(/\\\[/g,"$$").replace(/\\\]/g,"$$").replace(/\*\*/g,"$"),this.getData.gptResponse=s.text,this._botService.trackApiCall(this.getData).subscribe({next:_=>{},error:_=>{}}),this.mathJaxService.renderMathJax();const p=this.getChatGPTHistoryData.findIndex(_=>_.isLoading);this.getChatGPTHistoryData.splice(p,1);let g,m=s.text;m.includes("iframe")||(m=m.replace(/(https?:\/\/[^\s]+)/g,'<a href="$1" target="_blank">$1</a>').replace(/\n/g,"<br>")),s.text=m;let h=[];h.push(s),g=h,g.forEach(_=>{_.elaboratedData={},_.elaboratedData.text=_.text,_.elaboratedData.isLoading=!0,this.getChatGPTHistoryData.push(_),this.scrollTo()}),this.buttonStatus=!0,this.isLoading=!1}},error:l=>{if(this.isLoading=!1,401==l.status)this.toaster.show(l.message?l?.error?.message:"Something Went Wrong","Warning"),
1(0,c.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/");else if(504==l.status){const s=this.getChatGPTHistoryData.findIndex(p=>p.isLoading);-1!=s&&this.getChatGPTHistoryData.splice(s,1)}}})},500)}scrollToBottom(){try{this.scrollBottom.nativeElement.scrollTop=this.scrollBottom.nativeElement.scrollHeight}catch{}}scrollToTheView(e){null!=e&&setTimeout(()=>{this.scrollTo()},100)}scrollTo(){document.querySelector("#scroll").scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}static#t=this.\u0275fac=function(a){return new(a||n)(t.\u0275\u0275directiveInject(M.H7),t.\u0275\u0275directiveInject(y.s),t.\u0275\u0275directiveInject(E.G),t.\u0275\u0275directiveInject(w.X),t.\u0275\u0275directiveInject(C._W),t.\u0275\u0275directiveInject(v.k),t.\u0275\u0275directiveInject(t.PLATFORM_ID))};static#e=this.\u0275cmp=t.\u0275\u0275defineComponent({type:n,selectors:[["app-dyna-gpt-search-footer"]],viewQuery:function(a,i){if(1&a&&t.\u0275\u0275viewQuery(ot,5),2&a){let o;t.\u0275\u0275queryRefresh(o=t.\u0275\u0275loadQuery())&&(i.scrollBottom=o.first)}},inputs:{searchFooter:"searchFooter",teamId:"teamId",gpt_personalized_learning_id:"gpt_personalized_learning_id"},decls:15,vars:3,consts:[["id","card",1,"card"],[1,"card-body","px-2","py-0"],[1,"sofiaProBold","m-3"],[1,"bottomCard"],["contentRef",""],["class","col-12 px-0 mt-2",4,"ngFor","ngForOf"],["id","scroll",1,"displayTransition","mb-5",2,"margin-top","50px"],[1,"input-group","searchgroupKeyTrigger","my-3"],["rows","3","placeholder","Ask anything, be specific for accuracy. Example 'What is multiplication?'",1,"form-control","inputFieldStyles","sofiaProRegular",3,"ngModel","ngModelChange","keyup","keyup.enter"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"btn","btn-secondary","gosButton",3,"disabled","click"],[1,"fa","fa-chevron-right","text-light"],[1,"col-12","px-0","mt-2"],[3,"elaboratedData","displayDynaGptLogo","scrollToTheView",4,"ngIf"],[3,"elaboratedData","displayDynaGptLogo","scrollToTheView"]],template:function(a,i){1&a&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"p",2),t.\u0275\u0275text(3,"Solution Station"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"div",3,4),t.\u0275\u0275template(6,st,2,1,"div",5),t.\u0275\u0275element(7,"div",6),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(8,"div",7)(9,"textarea",8),t.\u0275\u0275listener("ngModelChange",function(l){return i.searchFormKey=l})("keyup",function(){return i.enableBtn()})("keyup.enter",function(){return i.onSearchShowData(i.searchFormKey)}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(10,"div",9)(11,"span",10)(12,"button",11),t.\u0275\u0275listener("click",function(){return i.onSearchShowData(i.searchFormKey)}),t.\u0275\u0275text(13," Go "),t.\u0275\u0275element(14,"i",12),t.\u0275\u0275elementEnd()()()()()()),2&a&&(t.\u0275\u0275advance(6),t.\u0275\u0275property("ngForOf",i.getChatGPTHistoryData),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngModel",i.searchFormKey),t.\u0275\u0275advance(3),t.\u0275\u0275property("disabled",i.buttonStatus))},dependencies:[c.sg,c.O5,F.Fj,F.JJ,F.On,P],styles:[".row[_ngcontent-%COMP%]{margin:0;padding:0}.inputFieldStyles[_ngcontent-%COMP%]{background:#FEFEFE;border:1px solid #E8ECEF;border-radius:12px;height:55px;font-size:17px;padding-right:75px}.inputFieldStyles[_ngcontent-%COMP%]::placeholder{color:#6c7275;font-size:17px}.goButton[_ngcontent-%COMP%]{position:absolute;bottom:23px;right:32px;color:#fff;background-color:#1e3757;border-radius:10px}.searchgroupKeyTrigger[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{border:1px solid #E8ECEF!important;border-right-style:none!important}.input-group-text[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #E8ECEF!important;border-left-style:none!important}.gosButton[_ngcontent-%COMP%]{color:#fff;background-color:#1e3757;border-radius:10px}#card[_ngcontent-%COMP%]{background:#FEFEFE;border:3px solid rgba(232,236,239,.75);border-radius:12px;margin:20px 0}#card[_ngcontent-%COMP%]   .bottomCard[_ngcontent-%COMP%]{max-height:200px;overflow-y:scroll}"]})}return n})();const lt=["scrollMe"];function ct(n,r){1&n&&t.\u0275\u0275element(0,"app-loader")}function pt(n,r){if(1&n&&t.\u0275\u0275element(0,"app-dyna-gpt-bread-crumb",18),2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275property("breadCrumbPath","Learning Reference")("teamDetail",e.teamDetail)}}function dt(n,r){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",8)(1,"div",20)(2,"p",21),t.\u0275\u0275text(3),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(4,"div",22)(5,"p",23),t.\u0275\u0275element(6,"span",24)(7,"span",24)(8,"span",24),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(9,"div",25)(10,"p",26),t.\u0275\u0275listener("click",function(){const o=t.\u0275\u0275restoreView(e).$implicit,l=t.\u0275\u0275nextContext(2);
1return t.\u0275\u0275resetView(l.openImg(o))}),t.\u0275\u0275text(11," View"),t.\u0275\u0275elementEnd()()()}if(2&n){const e=r.$implicit;t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",null==(null==e||null==e.fileData?null:e.fileData.fileName)?"N/A":null==e||null==e.fileData?null:e.fileData.fileName," ")}}function mt(n,r){if(1&n&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,dt,12,1,"div",19),t.\u0275\u0275elementContainerEnd()),2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",e.applicationData)}}function gt(n,r){1&n&&(t.\u0275\u0275elementStart(0,"p",21),t.\u0275\u0275text(1," As of now no resources are shared"),t.\u0275\u0275elementEnd())}function ht(n,r){1&n&&(t.\u0275\u0275elementStart(0,"p",21),t.\u0275\u0275text(1," Mentors will soon provide Example"),t.\u0275\u0275elementEnd())}function _t(n,r){if(1&n&&(t.\u0275\u0275template(0,gt,2,0,"p",27),t.\u0275\u0275template(1,ht,2,0,"p",27)),2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275property("ngIf",e.loggedInUser.userRole==e.USER_ROLES.MENTOR),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==e.loggedInUser?null:e.loggedInUser.userRole)==e.USER_ROLES.MENTEE)}}function ut(n,r){1&n&&(t.\u0275\u0275elementStart(0,"div",28)(1,"div",29),t.\u0275\u0275element(2,"p",30),t.\u0275\u0275elementEnd()())}function ft(n,r){if(1&n&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275element(1,"p",31),t.\u0275\u0275elementContainerEnd()),2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("innerHTML",null==e.promptListForFirst[0][0]?null:e.promptListForFirst[0][0].dynaMessage,t.\u0275\u0275sanitizeHtml)}}function vt(n,r){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"div",34)(2,"span",35),t.\u0275\u0275text(3," Just now "),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(4,"div")(5,"button",36),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(i.elaborateMethod(null==i.promptListForFirst[0][0]?null:i.promptListForFirst[0][0].ellaborateMessage,0,0))}),t.\u0275\u0275text(6," Elaborate "),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(7,"div")(8,"button",37),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(i.skipMethod(0,0))}),t.\u0275\u0275text(9," Ignore "),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementContainerEnd()}}function yt(n,r){if(1&n&&(t.\u0275\u0275elementStart(0,"div",33),t.\u0275\u0275template(1,vt,10,0,"ng-container",0),t.\u0275\u0275elementEnd()),2&n){const e=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!(null!=e.promptListForFirst[0][0]&&e.promptListForFirst[0][0].skip))}}function Ct(n,r){if(1&n&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,yt,2,1,"div",32),t.\u0275\u0275elementContainerEnd()),2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==e.promptListForFirst?null:e.promptListForFirst.length)>0&&(1==(null==e.promptListForFirst[0]?null:e.promptListForFirst[0].length)||(null==e.promptListForFirst[0][0]?null:e.promptListForFirst[0][0].skip))&&(null==e.promptListForFirst[0][0]?null:e.promptListForFirst[0][0].activeButton))}}function bt(n,r){1&n&&t.\u0275\u0275elementContainer(0)}function xt(n,r){if(1&n&&(t.\u0275\u0275elementStart(0,"article",42),t.\u0275\u0275element(1,"img",43),t.\u0275\u0275elementStart(2,"div",44),t.\u0275\u0275element(3,"p",45),t.\u0275\u0275elementEnd()()),2&n){const e=t.\u0275\u0275nextContext(2).$implicit;t.\u0275\u0275advance(3),t.\u0275\u0275property("innerHTML",null==e?null:e.dynaMessage,t.\u0275\u0275sanitizeHtml)}}function Dt(n,r){if(1&n&&(t.\u0275\u0275elementStart(0,"div",47),t.\u0275\u0275element(1,"p",48),t.\u0275\u0275elementEnd()),2&n){const e=t.\u0275\u0275nextContext(5).index,a=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("innerHTML",a.getIgnoreMsg[e],t.\u0275\u0275sanitizeHtml)}}function wt(n,r){if(1&n&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,Dt,2,1,"div",46),t.\u0275\u0275elementContainerEnd()),2&n){const e=t.\u0275\u0275nextContext(2).$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==e?null:e.skip)}}function Ft(n,r){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",33)(1,"div")(2,"span",35),t.\u0275\u0275text(3," Just now "),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(4,"div")(5,"button",36),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext(3),o=i.$implicit,l=i.index,s=t.\u0275\u0275nextContext(2).index,p=t.\u0275\u0275nextContext();
1return t.\u0275\u0275resetView(p.elaborateMethod(null==o?null:o.ellaborateMessage,s,l))}),t.\u0275\u0275text(6," Elaborate "),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(7,"div")(8,"button",37),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext(3).index,o=t.\u0275\u0275nextContext(2).index,l=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(l.skipMethod(o,i))}),t.\u0275\u0275text(9," Ignore "),t.\u0275\u0275elementEnd()()()}}function Pt(n,r){if(1&n&&t.\u0275\u0275template(0,Ft,10,0,"div",32),2&n){const e=t.\u0275\u0275nextContext(2).$implicit;t.\u0275\u0275property("ngIf",e.elaborateTextLoaded&&e.activeButton)}}function Lt(n,r){if(1&n&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275template(1,xt,4,1,"article",40),t.\u0275\u0275template(2,wt,2,1,"ng-container",10),t.\u0275\u0275template(3,Pt,1,1,"ng-template",null,41,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275elementEnd()),2&n){const e=t.\u0275\u0275reference(4),a=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",a.elaborateTextLoaded),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",void 0!==a.hasOwnProperty("ellaborateData")&&1==a.hasOwnProperty("ellaborateData")||1==a.skip)("ngIfElse",e)}}function Mt(n,r){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"app-dyna-gpt-elaborate",49),t.\u0275\u0275listener("scrollToTheView",function(i){t.\u0275\u0275restoreView(e);const o=t.\u0275\u0275nextContext(4);return t.\u0275\u0275resetView(o.scrollToTheView(i))})("elaborateTextLoaded",function(i){t.\u0275\u0275restoreView(e);const o=t.\u0275\u0275nextContext(4);return t.\u0275\u0275resetView(o.elaborateTextLoadedMethod(i))}),t.\u0275\u0275elementEnd()}if(2&n){const e=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275property("elaboratedData",e.ellaborateData)("displayDynaGptLogo",!0)}}function Tt(n,r){if(1&n&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275template(1,bt,1,0,"ng-container",10),t.\u0275\u0275template(2,Lt,5,3,"ng-template",null,38,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(4,Mt,1,2,"app-dyna-gpt-elaborate",39),t.\u0275\u0275elementEnd()),2&n){const e=r.$implicit,a=r.index,i=t.\u0275\u0275reference(3),o=t.\u0275\u0275nextContext(2).index;t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",0==a&&0==o)("ngIfElse",i),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",e.ellaborateData)}}function St(n,r){if(1&n&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,Tt,5,3,"div",13),t.\u0275\u0275elementContainerEnd()),2&n){const e=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",e)}}function Et(n,r){if(1&n&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275template(1,St,2,1,"ng-container",0),t.\u0275\u0275elementEnd()),2&n){const e=r.$implicit,a=r.index;t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==e?null:e.length)>1||0!=a)}}let V=(()=>{class n{constructor(e,a,i,o,l,s,p,g,m){this._settingService=e,this.activatedRoute=a,this.loggedInUserService=i,this.router=o,this.mathJaxService=l,this.apiservice=s,this.toastr=p,this.platformId=g,this._botService=m,this.getChatApplication=new G,this.displayWelcomeMessageOnlyOnce=!0,this.elaboratedData=[],this.tagNames=[{tagName:"Adsorption",id:"1",percentage:"15%"},{tagName:"Volumetric Analysis",id:"2",percentage:"25%"}],this.promptArrayListForFirst=[],this.promptsData=[],this.promptArrayList=[],this.ignoreMsg="ignoreMsg",this.getIgnoreMsg=[],this.promptListForFirst=[],this.setNewData=[],this.getSetsPromptData=[],this.getData=new S.Ro,this.botDto=new A.k,this.setSystemMsg=R.N.gptFmsg,this.articleDtoList=[]}ngOnInit(){this.loggedInUser=JSON.parse(this.loggedInUserService.getLoggedInUser()),this.teamId=this.activatedRoute.snapshot.params.teamId,this.sequence=this.activatedRoute.snapshot.params.sequence+"",this.botDto.encryptedTeamId=this.teamId,this.botDto.pageNumber=0,this.botDto.pageSize=10,this.getTeamDetails(),this.onResize(),this.getArticlesInCohort(),this.getChatApplication.teamId=this.teamId,this.callApplicationExample(),this.getData.n=1}onResize(){(0,c.NF)(this.platformId)&&(this.width=window.innerWidth)}getUserProfile(){return this.loggedInUser&&this.loggedInUser.profilePicture&&this.loggedInUser.profilePicture.filePreviewUrl?this.apiservice.baseUrl+this.loggedInUser.profilePicture.filePreviewUrl:"./assets/user.png"}getTeamDetails(){this.isLoading=!0,this.apiservice.getService(this.apiservice.apiUrls.getTeamDetails+"/"+this.teamId).subscribe(e=>{e&&200===e.statusCode?(this.teamDetail=e.data,this.isLoading=!1):(this.isLoading=!1,this.toastr.show(e?.message,"Info"))},e=>{this.isLoading=!1,401==e.status?(this.toastr.show(e.message?e.message:"Something Went Wrong","Warning"),
1(0,c.NF)(this.platformId)&&localStorage.clear(),(0,c.NF)(this.platformId)&&(window.location.href="/")):this.toastr.show(e.error?.message,"warning")})}callApplicationExample(){this.apiservice.postService(this.apiservice.apiUrls.callChatgptLearningReference,this.getChatApplication).subscribe(e=>{e&&200===e.statusCode?this.applicationData=e.data:(this.isLoading=!1,this.toastr.show(e?.message,"Info"))},e=>{this.isLoading=!1,401==e.status?(this.toastr.show(e.message?e.message:"Something Went Wrong","Warning"),(0,c.NF)(this.platformId)&&localStorage.clear(),(0,c.NF)(this.platformId)&&(window.location.href="/")):this.toastr.show(e.error?.message,"warning")})}openImg(e){"FILE"==e.fileType||"IMAGE"==e.fileType?window.open(this.apiservice.baseUrl+e.fileData.filePreviewUrl,"_blank"):window.open(e.linkUrl,"_blank")}getPrompts(e){this.isLoading=!0,this.apiservice.getService(this.apiservice.apiUrls.getPrompts+e+"/"+this.teamId).subscribe(a=>{if(a&&a.data&&200==a.statusCode){this.isLoading=!1,this.promptsData=a.data,this.getSetsPromptData=JSON.parse(JSON.stringify(this.promptsData));let i=this._botService.cohortLogic(this.getSetsPromptData,this.articleDtoList,this.ignoreMsg,this.displayWelcomeMessageOnlyOnce,!0);this.setNewData=i.newar,this.displayWelcomeMessageOnlyOnce=i.displayWelcomeMessageOnlyOnce;let o=[];this.setNewData[0][0].activeButton=!0,o.push(this.setNewData[0][0]),this.promptListForFirst[0]=o}else this.isLoading=!1,this.toastr.show(a?.message,"Warning")},a=>{401==a.status?(this.isLoading=!1,this.toastr.show(a.message?a.message:"Something Went Wrong","Warning"),(0,c.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toastr.show(a.error?.message,"Warning"))})}skipMethod(e,a){if(this.promptListForFirst[e].forEach(o=>{o.activeButton=!1}),this.setNewData.hasOwnProperty(e+1)){if(this.setNewData[e+1].hasOwnProperty(0)){let o=[];this.setNewData[e+1][0].elaborateTextLoaded=!0,this.setNewData[e+1][0].activeButton=!0,o.push(this.setNewData[e+1][0]),this.promptListForFirst[e+1]=o}}else this.increasePageNumberAndCallApi(e,0)}increasePageNumberAndCallApi(e,a){this.botDto.pageNumber=this.botDto.pageNumber+1<this.cohortObjectCount?this.botDto.pageNumber+1:0,this._botService.callInCohorts(this.botDto).subscribe({next:i=>{if(200==i.statusCode){let o=this._botService.cohortLogic(this.getSetsPromptData,i.data,this.ignoreMsg,this.displayWelcomeMessageOnlyOnce,!1),l=[...this.setNewData,...o.newar];this.setNewData=[],this.setNewData=l,this.displayWelcomeMessageOnlyOnce=o.displayWelcomeMessageOnlyOnce;let s=[...this.getIgnoreMsg,...o.setIgnoreMsg];if(this.getIgnoreMsg=[],this.getIgnoreMsg=s,this.setNewData[e+1].hasOwnProperty(a)){let p=[];this.setNewData[e+1][0].elaborateTextLoaded=!0,this.setNewData[e+1][0].activeButton=!0,p.push(this.setNewData[e+1][0]),this.promptListForFirst[e+1]=p}}},error:i=>{}})}elaborateMethod(e,a,i){this.getData.requestMsg=e,this.promptListForFirst[a].forEach(o=>{o.activeButton=!1}),this.botApi(a,i)}botApi(e,a){this.promptListForFirst[e+1]=[],this.promptListForFirst[e+1]=[{ellaborateData:{isLoading:!0}}],this.getData.max_tokens=this.setNewData[e][a].prompt.tokenSize,this.getData.temperature=this.setNewData[e][a].prompt.temperature,this.getData.team_id=+atob(this.teamId),this.getData.gpt_prompt_id=this.promptListForFirst[e][a].prompt.id,this.getData.gpt_personalized_learning_id=+this.sequence,this.getData.user_preference="Elaborate",this.getData.source="WEB",this.getData.app_user_id=this.loggedInUser.id;let i=[];i=this._botService.gpt4message(this.getData.requestMsg),this.getData.messages=[],this.getData.messages.push(this.setSystemMsg),this.getData.messages.push({role:"user",content:i}),this._botService.gpt4omini(this.getData).subscribe({next:o=>{if(o){const l=this.promptListForFirst[e+1].findIndex(s=>s.ellaborateData.isLoading);if(-1!=l){this.promptListForFirst[e+1].splice(l,1);let s=this.promptListForFirst.findIndex(p=>0==p.length);-1!=s&&this.promptListForFirst.splice(s,1)}if(200==o.statusCode){let s={};s.text=o.data.message.content.replace(/\*\*(.*?)\*\*/g,"<b>$1</b>").replace(/\/\(/g,"\\(").replace(/\\\)/g,"\\)").replace(/\\\(/g,"$").replace(/\\\)/g,"$").replace(/\\\[/g,"$$").replace(/\\\]/g,"$$").replace(/\*\*/g,"$"),this.mathJaxService.renderMathJax(),this.getData.gptResponse=s.text,this._botService.trackApiCall(this.getData).subscribe({next:h=>{},error:h=>{}});let g,m,p=s.text;if(p=p.replace(/\n/g,"<br/>"),s.text=p,this.promptListForFirst[e][a].ellaborateData=s,this.setNewData.hasOwnProperty(e))if(this.setNewData[e].hasOwnProperty(a+1))g=e,m=a+1,this.promptListForFirst[e][a].ellaborateData.tagIndexAssignValue=g,this.promptListForFirst[e][a].ellaborateData.sequenceIndexAssignValue=m,this.promptListForFirst[e][a+1]=this.setNewData[e][a+1],this.promptListForFirst[e][a+1].elaborateTextLoaded=!1,this.promptListForFirst[e][a+1].activeButton=!0;else if(this.setNewData.hasOwnProperty(e+1)){let h=[];h.push(this.setNewData[e+1][0]),this.promptListForFirst[e+1]=h,g=e+1,m=0,this.promptListForFirst[e+1][0].tagIndexAssignValue=g,this.promptListForFirst[e+1][0].sequenceIndexAssignValue=m,this.promptListForFirst[e+1][0].elaborateTextLoaded=!0,this.promptListForFirst[e+1][0].activeButton=!0}else this.increasePageNumberAndCallApi(e,0);else console.log(this.promptListForFirst.hasOwnProperty(e));this.mathJaxService.renderMathJax()}}this.scrollTo()},error:o=>{const l=this.promptListForFirst[e+1].findIndex(s=>s.ellaborateData.isLoading);if(-1!=l){this.promptListForFirst[e+1].splice(l,1);let s=this.promptListForFirst.findIndex(p=>0==p.length);-1!=s&&this.promptListForFirst.splice(s,1)}401==o.status?(this.isLoading=!1,this.toastr.show(o.message?o?.error?.message:"Something Went Wrong","Warning"),
1(0,c.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(504==o.status||500==o.status||429==o.status||(this.isLoading=!1),this.setNewData.hasOwnProperty(e)?this.promptListForFirst[e][a].activeButton=!0:this.setNewData.hasOwnProperty(e+1)&&(this.promptListForFirst[e+1][0].activeButton=!0))}})}getStatisticsData(){this.isLoading=!0,this.apiservice.getService(this.apiservice.apiUrls.getStatisticsData+this.teamId.replace(/=/g,"")).subscribe(e=>{e&&200===e.statusCode?(this.statisticsData=e.data,this.isLoading=!1):(this.isLoading=!1,this.toastr.show(e?.message,"Info"))},e=>{this.isLoading=!1,401==e.status?(this.toastr.show(e.message?e.message:"Something Went Wrong","Warning"),(0,c.NF)(this.platformId)&&localStorage.clear(),(0,c.NF)(this.platformId)&&(window.location.href="/")):this.toastr.show(e.error?.message,"warning")})}getArticlesInCohort(){this.isLoadingForArticles=!0,this.apiservice.postService(this.apiservice.apiUrls.getArticlesInCohort,this.botDto).subscribe(e=>{e&&200===e.statusCode?(this.cohortObjectCount=e.objectData,this.articleDtoList=e.data,this.isLoadingForArticles=!1,this.getPrompts(btoa(this.sequence).replace(/=/g,""))):(this.isLoadingForArticles=!1,this.toastr.show(e?.message,"Info"))},e=>{this.isLoadingForArticles=!1,401==e.status?(this.toastr.show(e.message?e.message:"Something Went Wrong","Warning"),(0,c.NF)(this.platformId)&&localStorage.clear(),(0,c.NF)(this.platformId)&&(window.location.href="/")):this.toastr.show(e.error?.message,"warning")})}viewAssessmentReport(e){this.router.navigate(["/navigation-bar/mentee/examination-score-report/"],{queryParams:{assessmentId:e.id}})}elaborateTextLoadedMethod(e){let a={};a=e,a&&(null!=a.tagIndexAssignValue&&null!=a.sequenceIndexAssignValue&&(this.promptListForFirst[a.tagIndexAssignValue][a.sequenceIndexAssignValue].elaborateTextLoaded=!0),this.scrollTo())}goToBottom(){(0,c.NF)(this.platformId)&&window.scrollTo(0,document.body.scrollHeight)}scrollToButtom(){try{this.myScrollContainer.nativeElement.scrollToButtom=this.myScrollContainer.nativeElement.scrollHeight}catch{}}scrollToTheView(e){null!=e&&setTimeout(()=>{this.scrollTo()},100)}scrollTo(){document.querySelector("#scroll").scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}get USER_ROLES(){return f.pR}static#t=this.\u0275fac=function(a){return new(a||n)(t.\u0275\u0275directiveInject(B.R),t.\u0275\u0275directiveInject(u.gz),t.\u0275\u0275directiveInject(v.k),t.\u0275\u0275directiveInject(u.F0),t.\u0275\u0275directiveInject(w.X),t.\u0275\u0275directiveInject(y.s),t.\u0275\u0275directiveInject(C._W),t.\u0275\u0275directiveInject(t.PLATFORM_ID),t.\u0275\u0275directiveInject(E.G))};static#e=this.\u0275cmp=t.\u0275\u0275defineComponent({type:n,selectors:[["app-dyna-gpt-learning-reference"]],viewQuery:function(a,i){if(1&a&&t.\u0275\u0275viewQuery(lt,5),2&a){let o;t.\u0275\u0275queryRefresh(o=t.\u0275\u0275loadQuery())&&(i.myScrollContainer=o.first)}},hostBindings:function(a,i){1&a&&t.\u0275\u0275listener("resize",function(l){return i.onResize(l)},!1,t.\u0275\u0275resolveWindow)},decls:28,vars:12,consts:[[4,"ngIf"],[3,"breadCrumbPath","teamDetail",4,"ngIf"],[1,"card","topCardDesign"],[1,"card-body"],[1,"sofiaProBold","m-0","head"],[1,"mar-bot-4"],["id","card",1,"card"],[1,"jumbotron","jumbotronClass"],[1,"row"],[1,"col-12"],[4,"ngIf","ngIfElse"],["noData",""],["class","card secondCard",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"mt-4","mb-2"],[3,"teamId","gpt_personalized_learning_id"],[1,"sofiaProLight",2,"font-style","italic","color","#1e3757","font-size","14px"],["id","scroll",1,"displayTransition",2,"margin-top","50px"],[3,"breadCrumbPath","teamDetail"],["class","row",4,"ngFor","ngForOf"],[1,"col-xl-6","col-lg-6","col-md-5","col-12"],[1,"m-0","sofiaProRegular","assessmentName","color-59616B"],[1,"col-xl-4","col-lg-4","col-md-4","col-6","my-auto"],[1,"attemptedOn","sofiaProLight"],[1,"fa","fa-star","star-color"],[1,"col-xl-2","col-lg-2","col-md-3","col-6","my-auto"],[1,"sofiaProRegular","assessmentName","color-0084FF","pointer",3,"click"],["class","m-0 sofiaProRegular assessmentName color-59616B",4,"ngIf"],[1,"card","secondCard"],[1,"card-body","py-1"],[1,"loadingDots","text-center"],[1,"inner-sentence","m-0","sofiaProRegular",3,"innerHTML"],["class","d-flex justify-content-sm-start justify-content-between",4,"ngIf"],[1,"d-flex","justify-content-sm-start","justify-content-between"],[1,"my-auto","d-block"],[1,"secondaryText","sofiaProLight"],[1,"btn","btn-default","elaborateButton","sofiaProBold",3,"click"],[1,"btn","btn-default","skipButton","sofiaProBold",3,"click"],["getData",""],[3,"elaboratedData","displayDynaGptLogo","scrollToTheView","elaborateTextLoaded",4,"ngIf"],["id","cardNew","class","artbord",4,"ngIf"],["elaborateBtn",""],["id","cardNew",1,"artbord"],["src","/assets/Path 1.svg","alt","dyna gpt image",1,"img-fluid"],[1,"card-content"],[1,"m-0","sofiaProRegular","articleText",3,"innerHTML"],["class","artbord",4,"ngIf"],[1,"artbord"],[3,"innerHTML"],[3,"elaboratedData","displayDynaGptLogo","scrollToTheView","elaborateTextLoaded"]],template:function(a,i){if(1&a&&(t.\u0275\u0275template(0,ct,1,0,"app-loader",0),t.\u0275\u0275template(1,pt,1,2,"app-dyna-gpt-bread-crumb",1),t.\u0275\u0275elementStart(2,"app-dyna-gpt-outer-design")(3,"header",2)(4,"div",3)(5,"p",4),t.\u0275\u0275text(6),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(7,"main",5)(8,"div",6)(9,"div",3)(10,"div",7)(11,"div",8)(12,"div",9),t.\u0275\u0275template(13,mt,2,1,"ng-container",10),t.\u0275\u0275template(14,_t,2,2,"ng-template",null,11,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275template(16,ut,3,0,"div",12),t.\u0275\u0275template(17,ft,2,1,"ng-container",0),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(18,Ct,2,1,"ng-container",0),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(19,Et,2,1,"div",13),t.\u0275\u0275elementStart(20,"div",14),t.\u0275\u0275element(21,"app-dyna-gpt-search-footer",15),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(22,"strong",16),t.\u0275\u0275text(23," Note: Sometimes AI model may give unex
1pected results. Please report to our support team at "),t.\u0275\u0275elementStart(24,"b"),t.\u0275\u0275text(25),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275element(26,"app-footer")(27,"div",17)),2&a){const o=t.\u0275\u0275reference(15);t.\u0275\u0275property("ngIf",i.isLoading),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",i.teamDetail),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate1(" ","Learning Reference"," "),t.\u0275\u0275advance(7),t.\u0275\u0275property("ngIf",(null==i.applicationData?null:i.applicationData.length)>0)("ngIfElse",o),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",i.isLoadingForArticles),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",i.promptListForFirst&&(null==i.promptListForFirst?null:i.promptListForFirst.length)>0&&!i.isLoadingForArticles),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",i.promptListForFirst),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",i.promptListForFirst),t.\u0275\u0275advance(2),t.\u0275\u0275property("teamId",i.teamId)("gpt_personalized_learning_id",i.sequence),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1("",i._settingService.mainSetting.email," ")}},dependencies:[c.sg,c.O5,b.R,I.c,x,D,O,P],styles:[".topCardDesign[_ngcontent-%COMP%]{background:#FEFEFE;border-bottom:1px solid #E8ECEF;box-shadow:0 12px 40px -12px #0000000f;border-top:none;border-left:none;border-right:none;margin:0 0 20px}.topCardDesign[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}#card[_ngcontent-%COMP%]{background:#FEFEFE;border:3px solid rgba(232,236,239,.75);border-radius:12px;margin:20px 0}@media screen and (max-width: 575px){#card[_ngcontent-%COMP%]   .cardBody[_ngcontent-%COMP%]{padding:.5rem}}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]{border:none;background:#F7F9FC;border-radius:12px;padding:2rem}@media screen and (max-width: 575px){#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]{padding:1rem}}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]   .viewReport[_ngcontent-%COMP%]{color:#0084ff;text-align:center}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]   .viewReport[_ngcontent-%COMP%]:hover{background-color:#0084ff;border:1px solid #0084FF;color:#fff}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]   .attemptedOn[_ngcontent-%COMP%]{color:#94979b}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]   .assessmentName[_ngcontent-%COMP%]{color:#adb1b6}#card[_ngcontent-%COMP%]   .secondCard[_ngcontent-%COMP%]{background:rgba(3,121,156,.05);border-radius:12px;border:none}#card[_ngcontent-%COMP%]   .secondCard[_ngcontent-%COMP%]   .firstText[_ngcontent-%COMP%]{color:#8e55ea}#card[_ngcontent-%COMP%]   .secondCard[_ngcontent-%COMP%]   .secondText[_ngcontent-%COMP%]{color:#7c7c7c}#card[_ngcontent-%COMP%]   .articleText[_ngcontent-%COMP%]{color:#1e3757;font-size:19px}.profilePicture[_ngcontent-%COMP%]{border-radius:12px;height:70px;width:70px;position:absolute;top:0;right:0}.elaborateButton[_ngcontent-%COMP%], .skipButton[_ngcontent-%COMP%]{background:#E8ECEF;color:#1e3757;margin:10px 20px;padding:2px 10px;border:#E8ECEF;border-radius:6px}@media screen and (width < 700px){.elaborateButton[_ngcontent-%COMP%], .skipButton[_ngcontent-%COMP%]{margin:auto 0 0;width:100%;display:block}}.secondaryText[_ngcontent-%COMP%]{color:#7c7c7c;font-size:18px}@media screen and (width < 700px){.secondaryText[_ngcontent-%COMP%]{margin:auto 0 0}}.star-color[_ngcontent-%COMP%]{color:#fcc404;margin-left:4px;font-size:18px}.color-59616B[_ngcontent-%COMP%]{color:#59616b!important;font-size:1.3rem}.color-0084FF[_ngcontent-%COMP%]{color:#0084ff!important}.color-D21515[_ngcontent-%COMP%]{color:#d21515!important}.inner-sentence[_ngcontent-%COMP%]{color:#141718;font-size:21px;font-weight:400}.head[_ngcontent-%COMP%]{font-size:1.4rem;color:#141718}.mar-bot-4[_ngcontent-%COMP%]{margin-bottom:4rem}.artbord[_ngcontent-%COMP%]{background:#FEFEFE;border:3px solid rgba(232,236,239,.75);border-radius:12px;margin:20px 0;padding:1rem}.displayTransition[_ngcontent-%COMP%]{background-color:#fff;animation-name:_ngcontent-%COMP%_test;animation-duration:6s;scroll-behavior:smooth}@keyframes _ngcontent-%COMP%_test{0%{background-color:#87bfee6b}to{background-color:#fff}}#cardNew[_ngcontent-%COMP%]{display:flex;flex-direction:row;overflow:hidden}#cardNew[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:auto;width:30px}#cardNew[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]{width:100%;margin-left:10px}@media screen and (width < 991px){.columnPadding[_ngcontent-%COMP%]{padding:0}}"]})}return n})();const It=["scrollMe"];function Ot(n,r){1&n&&t.\u0275\u0275element(0,"app-loader")}function Nt(n,r){if(1&n&&t.\u0275\u0275element(0,"app-dyna-gpt-bread-crumb",20),2&n){const e=t.\u0275\u0275nextContext();
1t.\u0275\u0275property("breadCrumbPath","Application Example")("teamDetail",e.teamDetail)}}function kt(n,r){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",9)(1,"div",22)(2,"p",23),t.\u0275\u0275text(3),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(4,"div",24)(5,"p",25),t.\u0275\u0275element(6,"span",26)(7,"span",26)(8,"span",26),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(9,"div",27)(10,"p",28),t.\u0275\u0275listener("click",function(){const o=t.\u0275\u0275restoreView(e).$implicit,l=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(l.openImg(o))}),t.\u0275\u0275text(11," View"),t.\u0275\u0275elementEnd()()()}if(2&n){const e=r.$implicit;t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",null==(null==e||null==e.fileData?null:e.fileData.fileName)?"N/A":null==e||null==e.fileData?null:e.fileData.fileName," ")}}function Gt(n,r){if(1&n&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,kt,12,1,"div",21),t.\u0275\u0275elementContainerEnd()),2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",e.applicationData)}}function At(n,r){1&n&&(t.\u0275\u0275elementStart(0,"p",23),t.\u0275\u0275text(1," As of now no resources are shared"),t.\u0275\u0275elementEnd())}function Rt(n,r){1&n&&(t.\u0275\u0275elementStart(0,"p",23),t.\u0275\u0275text(1," Mentors will soon provide Example"),t.\u0275\u0275elementEnd())}function Bt(n,r){if(1&n&&(t.\u0275\u0275template(0,At,2,0,"p",29),t.\u0275\u0275template(1,Rt,2,0,"p",29)),2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275property("ngIf",e.loggedInUser.userRole==e.USER_ROLES.MENTOR),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==e.loggedInUser?null:e.loggedInUser.userRole)==e.USER_ROLES.MENTEE)}}function Vt(n,r){1&n&&(t.\u0275\u0275elementStart(0,"div",30)(1,"div",31),t.\u0275\u0275element(2,"p",32),t.\u0275\u0275elementEnd()())}function Ut(n,r){if(1&n&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275element(1,"p",33),t.\u0275\u0275elementContainerEnd()),2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("innerHTML",null==e.promptListForFirst[0][0]?null:e.promptListForFirst[0][0].dynaMessage,t.\u0275\u0275sanitizeHtml)}}function Wt(n,r){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"div")(2,"span",35),t.\u0275\u0275text(3," Just now "),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(4,"div")(5,"button",36),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(i.elaborateMethod(null==i.promptListForFirst[0][0]?null:i.promptListForFirst[0][0].ellaborateMessage,0,0))}),t.\u0275\u0275text(6," Elaborate "),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(7,"div")(8,"button",37),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(i.skipMethod(0,0))}),t.\u0275\u0275text(9," Ignore "),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementContainerEnd()}}function zt(n,r){if(1&n&&(t.\u0275\u0275elementStart(0,"div",34),t.\u0275\u0275template(1,Wt,10,0,"ng-container",0),t.\u0275\u0275elementEnd()),2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!(null!=e.promptListForFirst[0][0]&&e.promptListForFirst[0][0].skip))}}function $t(n,r){1&n&&t.\u0275\u0275elementContainer(0)}function Ht(n,r){if(1&n&&(t.\u0275\u0275elementStart(0,"article",43),t.\u0275\u0275element(1,"img",44),t.\u0275\u0275elementStart(2,"div",45),t.\u0275\u0275element(3,"p",46),t.\u0275\u0275elementEnd()()),2&n){const e=t.\u0275\u0275nextContext(2).$implicit;t.\u0275\u0275advance(3),t.\u0275\u0275property("innerHTML",e.dynaMessage,t.\u0275\u0275sanitizeHtml)}}function jt(n,r){if(1&n&&(t.\u0275\u0275elementStart(0,"div",48),t.\u0275\u0275element(1,"p",49),t.\u0275\u0275elementEnd()),2&n){const e=t.\u0275\u0275nextContext(5).index,a=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("innerHTML",a.getIgnoreMsg[e],t.\u0275\u0275sanitizeHtml)}}function Jt(n,r){if(1&n&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,jt,2,1,"div",47),t.\u0275\u0275elementContainerEnd()),2&n){const e=t.\u0275\u0275nextContext(2).$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",1==(null==e?null:e.skip))}}function qt(n,r){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",34)(1,"div",50)(2,"span",35),t.\u0275\u0275text(3," Just now "),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(4,"div")(5,"button",36),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext(3),o=i.$implicit,l=i.index,s=t.\u0275\u0275nextContext(2).index,p=t.\u0275\u0275nextContext();
1return t.\u0275\u0275resetView(p.elaborateMethod(o.ellaborateMessage,s,l))}),t.\u0275\u0275text(6," Elaborate "),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(7,"div")(8,"button",37),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext(3).index,o=t.\u0275\u0275nextContext(2).index,l=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(l.skipMethod(o,i))}),t.\u0275\u0275text(9," Ignore "),t.\u0275\u0275elementEnd()()()}}function Qt(n,r){if(1&n&&t.\u0275\u0275template(0,qt,10,0,"div",14),2&n){const e=t.\u0275\u0275nextContext(2).$implicit;t.\u0275\u0275property("ngIf",e.elaborateTextLoaded&&e.activeButton)}}function Kt(n,r){if(1&n&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275template(1,Ht,4,1,"article",41),t.\u0275\u0275template(2,Jt,2,1,"ng-container",11),t.\u0275\u0275template(3,Qt,1,1,"ng-template",null,42,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275elementEnd()),2&n){const e=t.\u0275\u0275reference(4),a=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==a?null:a.elaborateTextLoaded),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",void 0!==a.hasOwnProperty("ellaborateData")&&1==a.hasOwnProperty("ellaborateData"))("ngIfElse",e)}}function Yt(n,r){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"app-dyna-gpt-elaborate",51),t.\u0275\u0275listener("scrollToTheView",function(i){t.\u0275\u0275restoreView(e);const o=t.\u0275\u0275nextContext(4);return t.\u0275\u0275resetView(o.scrollToTheView(i))})("elaborateTextLoaded",function(i){t.\u0275\u0275restoreView(e);const o=t.\u0275\u0275nextContext(4);return t.\u0275\u0275resetView(o.elaborateTextLoadedMethod(i))}),t.\u0275\u0275elementEnd()}if(2&n){const e=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275property("elaboratedData",e.ellaborateData)("displayDynaGptLogo",!0)}}function Xt(n,r){if(1&n&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275template(1,$t,1,0,"ng-container",11),t.\u0275\u0275template(2,Kt,5,3,"ng-template",null,39,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(4,Yt,1,2,"app-dyna-gpt-elaborate",40),t.\u0275\u0275elementEnd()),2&n){const e=r.$implicit,a=r.index,i=t.\u0275\u0275reference(3),o=t.\u0275\u0275nextContext(2).index;t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",0==a&&0==o)("ngIfElse",i),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",e.ellaborateData)}}function Zt(n,r){if(1&n&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,Xt,5,3,"div",15),t.\u0275\u0275elementContainerEnd()),2&n){const e=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",e)}}function te(n,r){if(1&n&&(t.\u0275\u0275elementStart(0,"div",null,38),t.\u0275\u0275template(2,Zt,2,1,"ng-container",0),t.\u0275\u0275elementEnd()),2&n){const e=r.$implicit,a=r.index;t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",(null==e?null:e.length)>1||0!=a)}}let U=(()=>{class n{constructor(e,a,i,o,l,s,p,g,m){this.mathJaxService=e,this.activatedRoute=a,this._settingService=i,this.loggedInUserService=o,this.router=l,this.apiservice=s,this.toastr=p,this.platformId=g,this._botService=m,this.getChatApplication=new G,this.displayWelcomeMessageOnlyOnce=!0,this.elaboratedData=[],this.tagNames=[{tagName:"Adsorption",id:"1",percentage:"15%"},{tagName:"Volumetric Analysis",id:"2",percentage:"25%"}],this.promptArrayListForFirst=[],this.promptsData=[],this.promptArrayList=[],this.ignoreMsg="ignoreMsg",this.getIgnoreMsg=[],this.promptListForFirst=[],this.setNewData=[],this.getSetsPromptData=[],this.getData=new S.Ro,this.botDto=new A.k,this.setSystemMsg=R.N.gptFmsg,this.articleDtoList=[]}ngOnInit(){this.loggedInUser=JSON.parse(this.loggedInUserService.getLoggedInUser()),this.teamId=this.activatedRoute.snapshot.params.teamId,this.sequence=this.activatedRoute.snapshot.params.sequence+"",this.botDto.encryptedTeamId=this.teamId,this.botDto.pageNumber=0,this.botDto.pageSize=10,this.getTeamDetails(),this.onResize(),this.getArticlesInCohort(),this.getChatApplication.teamId=this.teamId,this.callApplicationExample(),this.getData.n=1}onResize(){(0,c.NF)(this.platformId)&&(this.width=window.innerWidth)}getUserProfile(){return this.loggedInUser&&this.loggedInUser.profilePicture&&this.loggedInUser.profilePicture.filePreviewUrl?this.apiservice.baseUrl+this.loggedInUser.profilePicture.filePreviewUrl:"./assets/user.png"}getTeamDetails(){this.isLoading=!0,this.apiservice.getService(this.apiservice.apiUrls.getTeamDetails+"/"+this.teamId).subscribe(e=>{e&&200===e.statusCode?(this.teamDetail=e.data,this.isLoading=!1):(this.isLoading=!1,this.toastr.show(e?.message,"Info"))},e=>{this.isLoading=!1,401==e.status?(this.toastr.show(e.message?e.message:"Something Went Wrong","Warning"),
1(0,c.NF)(this.platformId)&&localStorage.clear(),(0,c.NF)(this.platformId)&&(window.location.href="/")):this.toastr.show(e.error?.message,"warning")})}callApplicationExample(){this.apiservice.postService(this.apiservice.apiUrls.callChatgptApplicationExample,this.getChatApplication).subscribe(e=>{e&&200===e.statusCode?this.applicationData=e.data:(this.isLoading=!1,this.toastr.show(e?.message,"Info"))},e=>{this.isLoading=!1,401==e.status?(this.toastr.show(e.message?e.message:"Something Went Wrong","Warning"),(0,c.NF)(this.platformId)&&localStorage.clear(),(0,c.NF)(this.platformId)&&(window.location.href="/")):this.toastr.show(e.error?.message,"warning")})}openImg(e){"FILE"==e.fileType||"IMAGE"==e.fileType?window.open(this.apiservice.baseUrl+e.fileData.filePreviewUrl,"_blank"):window.open(e.linkUrl,"_blank")}getPrompts(e){this.isLoading=!0,this.apiservice.getService(this.apiservice.apiUrls.getPrompts+e+"/"+this.teamId).subscribe(a=>{if(a&&a.data&&200==a.statusCode){this.isLoading=!1,this.promptsData=a.data,this.getSetsPromptData=JSON.parse(JSON.stringify(this.promptsData));let i=this._botService.cohortLogic(this.getSetsPromptData,this.articleDtoList,this.ignoreMsg,this.displayWelcomeMessageOnlyOnce,!0);this.setNewData=i.newar,this.displayWelcomeMessageOnlyOnce=i.displayWelcomeMessageOnlyOnce;let o=[];this.setNewData[0][0].activeButton=!0,o.push(this.setNewData[0][0]),this.promptListForFirst[0]=o}else this.isLoading=!1,this.toastr.show(a?.message,"Warning")},a=>{401==a.status?(this.isLoading=!1,this.toastr.show(a.message?a.message:"Something Went Wrong","Warning"),(0,c.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(this.isLoading=!1,this.toastr.show(a.error?.message,"Warning"))})}skipMethod(e,a){if(this.promptListForFirst[e].forEach(o=>{o.activeButton=!1}),this.setNewData.hasOwnProperty(e+1)){if(this.setNewData[e+1].hasOwnProperty(0)){let o=[];this.setNewData[e+1][0].elaborateTextLoaded=!0,this.setNewData[e+1][0].activeButton=!0,o.push(this.setNewData[e+1][0]),this.promptListForFirst[e+1]=o}}else this.increasePageNumberAndCallApi(e,0)}increasePageNumberAndCallApi(e,a){this.botDto.pageNumber=this.botDto.pageNumber+1<this.cohortObjectCount?this.botDto.pageNumber+1:0,this._botService.callInCohorts(this.botDto).subscribe({next:i=>{if(200==i.statusCode){let o=this._botService.cohortLogic(this.getSetsPromptData,i.data,this.ignoreMsg,this.displayWelcomeMessageOnlyOnce,!1),l=[...this.setNewData,...o.newar];this.setNewData=[],this.setNewData=l,this.displayWelcomeMessageOnlyOnce=o.displayWelcomeMessageOnlyOnce;let s=[...this.getIgnoreMsg,...o.setIgnoreMsg];if(this.getIgnoreMsg=[],this.getIgnoreMsg=s,this.setNewData[e+1].hasOwnProperty(a)){let p=[];this.setNewData[e+1][0].elaborateTextLoaded=!0,this.setNewData[e+1][0].activeButton=!0,p.push(this.setNewData[e+1][0]),this.promptListForFirst[e+1]=p}}},error:i=>{}})}elaborateMethod(e,a,i){this.getData.requestMsg=e,this.promptListForFirst[a].forEach(o=>{o.activeButton=!1}),this.botApi(a,i)}botApi(e,a){this.promptListForFirst[e+1]=[],this.promptListForFirst[e+1]=[{ellaborateData:{isLoading:!0}}],this.getData.max_tokens=this.setNewData[e][a].prompt.tokenSize,this.getData.temperature=this.setNewData[e][a].prompt.temperature,this.getData.team_id=+atob(this.teamId),this.getData.gpt_prompt_id=this.promptListForFirst[e][a].prompt.id,this.getData.gpt_personalized_learning_id=+this.sequence,this.getData.user_preference="Elaborate",this.getData.source="WEB",this.getData.app_user_id=this.loggedInUser.id;let i=[];i=this._botService.gpt4message(this.getData.requestMsg),this.getData.messages=[],this.getData.messages.push(this.setSystemMsg),this.getData.messages.push({role:"user",content:i}),this._botService.gpt4omini(this.getData).subscribe({next:o=>{if(o){const l=this.promptListForFirst[e+1].findIndex(s=>s.ellaborateData.isLoading);if(-1!=l){this.promptListForFirst[e+1].splice(l,1);let s=this.promptListForFirst.findIndex(p=>0==p.length);-1!=s&&this.promptListForFirst.splice(s,1)}if(200==o.statusCode){let s={};s.text=o.data.message.content.replace(/\*\*(.*?)\*\*/g,"<b>$1</b>").replace(/\/\(/g,"\\(").replace(/\\\)/g,"\\)").replace(/\\\(/g,"$").replace(/\\\)/g,"$").replace(/\\\[/g,"$$").replace(/\\\]/g,"$$").replace(/\*\*/g,"$"),this.mathJaxService.renderMathJax(),this.getData.gptResponse=s.text,this._botService.trackApiCall(this.getData).subscribe({next:h=>{},error:h=>{}}),this.mathJaxService.renderMathJax();let g,m,p=s.text;if(p=p.replace(/\n/g,"<br/>"),s.text=p,this.promptListForFirst[e][a].ellaborateData=s,this.setNewData.hasOwnProperty(e))if(this.setNewData[e].hasOwnProperty(a+1))g=e,m=a+1,this.promptListForFirst[e][a].ellaborateData.tagIndexAssignValue=g,this.promptListForFirst[e][a].ellaborateData.sequenceIndexAssignValue=m,this.promptListForFirst[e][a+1]=this.setNewData[e][a+1],this.promptListForFirst[e][a+1].elaborateTextLoaded=!1,this.promptListForFirst[e][a+1].activeButton=!0;else if(this.setNewData.hasOwnProperty(e+1)){let h=[];h.push(this.setNewData[e+1][0]),this.promptListForFirst[e+1]=h,g=e+1,m=0,this.promptListForFirst[e+1][0].tagIndexAssignValue=g,this.promptListForFirst[e+1][0].sequenceIndexAssignValue=m,this.promptListForFirst[e+1][0].elaborateTextLoaded=!0,this.promptListForFirst[e+1][0].activeButton=!0}else this.increasePageNumberAndCallApi(e,0);else console.log(this.promptListForFirst.hasOwnProperty(e));this.mathJaxService.renderMathJax()}}this.scrollTo()},error:o=>{const l=this.promptListForFirst[e+1].findIndex(s=>s.ellaborateData.isLoading);if(-1!=l){this.promptListForFirst[e+1].splice(l,1);let s=this.promptListForFirst.findIndex(p=>0==p.length);-1!=s&&this.promptListForFirst.splice(s,1)}401==o.status?(this.isLoading=!1,this.toastr.show(o.message?o?.error?.message:"Something Went Wrong","Warning"),
1(0,c.NF)(this.platformId)&&(localStorage.clear(),window.location.href="/")):(504==o.status||500==o.status||429==o.status||(this.isLoading=!1),this.setNewData.hasOwnProperty(e)?this.promptListForFirst[e][a].activeButton=!0:this.setNewData.hasOwnProperty(e+1)&&(this.promptListForFirst[e+1][0].activeButton=!0))}})}getStatisticsData(){this.isLoading=!0,this.apiservice.getService(this.apiservice.apiUrls.getStatisticsData+this.teamId.replace(/=/g,"")).subscribe(e=>{e&&200===e.statusCode?(this.statisticsData=e.data,this.isLoading=!1):(this.isLoading=!1,this.toastr.show(e?.message,"Info"))},e=>{this.isLoading=!1,401==e.status?(this.toastr.show(e.message?e.message:"Something Went Wrong","Warning"),(0,c.NF)(this.platformId)&&localStorage.clear(),(0,c.NF)(this.platformId)&&(window.location.href="/")):this.toastr.show(e.error?.message,"warning")})}getArticlesInCohort(){this.isLoadingForArticles=!0,this.apiservice.postService(this.apiservice.apiUrls.getArticlesInCohort,this.botDto).subscribe(e=>{e&&200===e.statusCode?(this.cohortObjectCount=e.objectData,this.articleDtoList=e.data,this.isLoadingForArticles=!1,this.getPrompts(btoa(this.sequence).replace(/=/g,""))):(this.isLoadingForArticles=!1,this.toastr.show(e?.message,"Info"))},e=>{this.isLoadingForArticles=!1,401==e.status?(this.toastr.show(e.message?e.message:"Something Went Wrong","Warning"),(0,c.NF)(this.platformId)&&localStorage.clear(),(0,c.NF)(this.platformId)&&(window.location.href="/")):this.toastr.show(e.error?.message,"warning")})}viewAssessmentReport(e){this.router.navigate(["/navigation-bar/mentee/examination-score-report/"],{queryParams:{assessmentId:e.id}})}elaborateTextLoadedMethod(e){let a={};a=e,a&&(null!=a.tagIndexAssignValue&&null!=a.sequenceIndexAssignValue&&(this.promptListForFirst[a.tagIndexAssignValue][a.sequenceIndexAssignValue].elaborateTextLoaded=!0),this.scrollTo())}goToBottom(){(0,c.NF)(this.platformId)&&window.scrollTo(0,document.body.scrollHeight)}scrollToButtom(){try{this.myScrollContainer.nativeElement.scrollToButtom=this.myScrollContainer.nativeElement.scrollHeight}catch{}}scrollToTheView(e){null!=e&&setTimeout(()=>{this.scrollTo()},100)}scrollTo(){document.querySelector("#scroll").scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}get USER_ROLES(){return f.pR}static#t=this.\u0275fac=function(a){return new(a||n)(t.\u0275\u0275directiveInject(w.X),t.\u0275\u0275directiveInject(u.gz),t.\u0275\u0275directiveInject(B.R),t.\u0275\u0275directiveInject(v.k),t.\u0275\u0275directiveInject(u.F0),t.\u0275\u0275directiveInject(y.s),t.\u0275\u0275directiveInject(C._W),t.\u0275\u0275directiveInject(t.PLATFORM_ID),t.\u0275\u0275directiveInject(E.G))};static#e=this.\u0275cmp=t.\u0275\u0275defineComponent({type:n,selectors:[["app-dyna-gpt-application-example"]],viewQuery:function(a,i){if(1&a&&t.\u0275\u0275viewQuery(It,5),2&a){let o;t.\u0275\u0275queryRefresh(o=t.\u0275\u0275loadQuery())&&(i.myScrollContainer=o.first)}},hostBindings:function(a,i){1&a&&t.\u0275\u0275listener("resize",function(l){return i.onResize(l)},!1,t.\u0275\u0275resolveWindow)},decls:28,vars:12,consts:[[4,"ngIf"],[3,"breadCrumbPath","teamDetail",4,"ngIf"],[1,"card","topCardDesign"],[1,"card-body"],[1,"sofiaProBold","m-0","head"],[1,"mar-bot-4"],["id","card",1,"card"],[1,"card-body","cardBody"],[1,"jumbotron","jumbotronClass"],[1,"row"],[1,"col-12"],[4,"ngIf","ngIfElse"],["noData",""],["class","card secondCard",4,"ngIf"],["class","d-flex justify-content-sm-start justify-content-between",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"mt-4","mb-2"],[3,"teamId","gpt_personalized_learning_id"],[1,"sofiaProLight",2,"font-style","italic","color","#1e3757","font-size","14px"],["id","scroll",1,"displayTransition",2,"margin-top","50px"],[3,"breadCrumbPath","teamDetail"],["class","row",4,"ngFor","ngForOf"],[1,"col-xl-6","col-lg-6","col-md-5","col-12"],[1,"m-0","sofiaProRegular","assessmentName","color-59616B"],[1,"col-xl-4","col-lg-4","col-md-4","col-6","my-auto"],[1,"attemptedOn","sofiaProLight"],[1,"fa","fa-star","star-color"],[1,"col-xl-2","col-lg-2","col-md-3","col-6","my-auto"],[1,"sofiaProRegular","assessmentName","color-0084FF",3,"click"],["class","m-0 sofiaProRegular assessmentName color-59616B",4,"ngIf"],[1,"card","secondCard"],[1,"card-body","py-1"],[1,"loadingDots","text-center"],[1,"inner-sentence","m-0","sofiaProRegular",3,"innerHTML"],[1,"d-flex","justify-content-sm-start","justify-content-between"],[1,"secondaryText","sofiaProLight"],[1,"btn","btn-default","elaborateButton","sofiaProBold",3,"click"],[1,"btn","btn-default","skipButton","sofiaProBold",3,"click"],["contentRef",""],["getData",""],[3,"elaboratedData","displayDynaGptLogo","scrollToTheView","elaborateTextLoaded",4,"ngIf"],["id","cardNew","class","artbord",4,"ngIf"],["elaborateBtn",""],["id","cardNew",1,"artbord"],["src","/assets/Path 1.svg","alt","dyna gpt image",1,"img-fluid"],[1,"card-content"],[1,"m-0","sofiaProRegular","articleText",3,"innerHTML"],["class","artbord",4,"ngIf"],[1,"artbord"],[3,"innerHTML"],[1,"my-auto","d-block"],[3,"elaboratedData","displayDynaGptLogo","scrollToTheView","elaborateTextLoaded"]],template:function(a,i){if(1&a&&(t.\u0275\u0275template(0,Ot,1,0,"app-loader",0),t.\u0275\u0275template(1,Nt,1,2,"app-dyna-gpt-bread-crumb",1),t.\u0275\u0275elementStart(2,"app-dyna-gpt-outer-design")(3,"header",2)(4,"div",3)(5,"p",4),t.\u0275\u0275text(6),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(7,"main",5)(8,"div",6)(9,"div",7)(10,"div",8)(11,"div",9)(12,"div",10),t.\u0275\u0275template(13,Gt,2,1,"ng-container",11),t.\u0275\u0275template(14,Bt,2,2,"ng-template",null,12,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275template(16,Vt,3,0,"div",13),t.\u0275\u0275template(17,Ut,2,1,"ng-container",0),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(18,zt,2,1,"div",14),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(19,te,3,1,"div",15),t.\u0275\u0275elementStart(20,"div",16),t.\u0275\u0275element(21,"app-dyna-gpt-search-footer",17),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(22,"strong",18),t.\u0275\u0275text(23," Note: Sometimes AI model may give unex
1pected results. Please report to our support team at "),t.\u0275\u0275elementStart(24,"b"),t.\u0275\u0275text(25),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275element(26,"app-footer")(27,"div",19)),2&a){const o=t.\u0275\u0275reference(15);t.\u0275\u0275property("ngIf",i.isLoading),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",i.teamDetail),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate1(" ","Application Example"," "),t.\u0275\u0275advance(7),t.\u0275\u0275property("ngIf",(null==i.applicationData?null:i.applicationData.length)>0)("ngIfElse",o),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",i.isLoadingForArticles),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==i.promptListForFirst?null:i.promptListForFirst.length)>0&&!i.isLoadingForArticles),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==i.promptListForFirst?null:i.promptListForFirst.length)>0&&(1==(null==i.promptListForFirst[0]?null:i.promptListForFirst[0].length)||(null==i.promptListForFirst[0][0]?null:i.promptListForFirst[0][0].skip))&&(null==i.promptListForFirst[0][0]?null:i.promptListForFirst[0][0].activeButton)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",i.promptListForFirst),t.\u0275\u0275advance(2),t.\u0275\u0275property("teamId",i.teamId)("gpt_personalized_learning_id",i.sequence),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1("",i._settingService.mainSetting.email," ")}},dependencies:[c.sg,c.O5,b.R,I.c,x,D,O,P],styles:[".topCardDesign[_ngcontent-%COMP%]{background:#FEFEFE;border-bottom:1px solid #E8ECEF;box-shadow:0 12px 40px -12px #0000000f;border-top:none;border-left:none;border-right:none;margin:0 0 20px}.topCardDesign[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}#card[_ngcontent-%COMP%]{background:#FEFEFE;border:3px solid rgba(232,236,239,.75);border-radius:12px;margin:20px 0}@media screen and (max-width: 575px){#card[_ngcontent-%COMP%]   .cardBody[_ngcontent-%COMP%]{padding:.5rem}}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]{border:none;background:#F7F9FC;border-radius:12px;padding:2rem}@media screen and (max-width: 575px){#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]{padding:1rem}}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]   .viewReport[_ngcontent-%COMP%]{color:#0084ff;text-align:center}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]   .viewReport[_ngcontent-%COMP%]:hover{background-color:#0084ff;border:1px solid #0084FF;color:#fff}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]   .attemptedOn[_ngcontent-%COMP%]{color:#94979b}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]   .assessmentName[_ngcontent-%COMP%]{color:#adb1b6}#card[_ngcontent-%COMP%]   .secondCard[_ngcontent-%COMP%]{background:rgba(3,121,156,.05);border-radius:12px;border:none}#card[_ngcontent-%COMP%]   .secondCard[_ngcontent-%COMP%]   .firstText[_ngcontent-%COMP%]{color:#8e55ea}#card[_ngcontent-%COMP%]   .secondCard[_ngcontent-%COMP%]   .secondText[_ngcontent-%COMP%]{color:#7c7c7c}#card[_ngcontent-%COMP%]   .articleText[_ngcontent-%COMP%]{color:#1e3757;font-size:19px}.profilePicture[_ngcontent-%COMP%]{border-radius:12px;height:70px;width:70px;position:absolute;top:0;right:0}.elaborateButton[_ngcontent-%COMP%], .skipButton[_ngcontent-%COMP%]{background:#E8ECEF;color:#1e3757;margin:10px 20px;padding:2px 10px;border:#E8ECEF;border-radius:6px}@media screen and (width < 700px){.elaborateButton[_ngcontent-%COMP%], .skipButton[_ngcontent-%COMP%]{margin:auto 0 0;width:100%;display:block}}.secondaryText[_ngcontent-%COMP%]{color:#7c7c7c;font-size:18px}@media screen and (width < 700px){.secondaryText[_ngcontent-%COMP%]{margin:auto 0 0}}.star-color[_ngcontent-%COMP%]{color:#fcc404;margin-left:4px;font-size:18px}.color-59616B[_ngcontent-%COMP%]{color:#59616b!important;font-size:1.3rem}.color-0084FF[_ngcontent-%COMP%]{color:#0084ff!important;cursor:pointer}.color-D21515[_ngcontent-%COMP%]{color:#d21515!important}.inner-sentence[_ngcontent-%COMP%]{color:#141718;font-size:21px;font-weight:400}.head[_ngcontent-%COMP%]{font-size:1.4rem;color:#141718}.mar-top-5[_ngcontent-%COMP%]{margin-top:5rem}.mar-bot-4[_ngcontent-%COMP%]{margin-bottom:2rem}.artbord[_ngcontent-%COMP%]{background:#FEFEFE;border:3px solid rgba(232,236,239,.75);border-radius:12px;margin:20px 0;padding:1rem}.displayTransition[_ngcontent-%COMP%]{background-color:#fff;animation-name:_ngcontent-%COMP%_test;animation-duration:6s;scroll-behavior:smooth}@keyframes _ngcontent-%COMP%_test{0%{background-color:#87bfee6b}to{background-color:#fff}}#cardNew[_ngcontent-%COMP%]{display:flex;flex-direction:row;overflow:hidden}#cardNew[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:auto;width:30px}#cardNew[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]{width:100%;margin-left:10px}@media screen and (width < 991px){.columnPadding[_ngcontent-%COMP%]{padding:0}}"]})}return n})();var L=d(31479);const ee=[{path:"",component:W},{path:"personalised-generative-ui",component:k},{path:"personalised-generative-ui/:teamId",component:k,canActivate:[L.U]},{path:"feedback-remediation",component:T.hB},{path:"feedback-remediation/:teamId/:sequence",component:T.hB,canActivate:[L.U]},{path:"learning-reference",component:V},{path:"learning-reference/:teamId/:sequence",component:V,canActivate:[L.U]},{path:"application-example",component:U},{path:"application-example/:teamId/:sequence",component:U,canActivate:[L.U]}];let ne=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.\u0275\u0275defineNgModule({type:n});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[u.Bz.forChild(ee),u.Bz]})}return n})();var ae=d(38314);let ie=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.\u0275\u0275defineNgModule({type:n});static#n=this.\u0275inj=t.\u0275\u0275defineInjector({imports:[c.ez,ne,ae.m,F.u5]})}return n})();t.\u0275\u0275setComponentScope(T.hB,[c.sg,c.O5,b.R,I.c,x,D,O,P],[])}}]);

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.