PageSourceSearch

https://market.dynamind.co/4496.d6ed195fa7703bbd.js

js dynamind.co collected 2026-10-01 14:40:36 UTC 62,855 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdynaminds=self.webpackChunkdynaminds||[]).push([[4496],{44496:(xe,O,_)=>{_.r(O),_.d(O,{PerformanceGptModule:()=>fe});var u=_(36895),b=_(1791),e=_(94650),f=_(89542),x=_(37865),v=_(89047),I=_(84207);let T=(()=>{class i{constructor(n,r){this._settingService=n,this.location=r}ngOnInit(){}goback(){this.location.back()}static#e=this.\u0275fac=function(r){return new(r||i)(e.\u0275\u0275directiveInject(I.R),e.\u0275\u0275directiveInject(u.Ye))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["app-gpt-bread-cum"]],inputs:{firstBreadCumPath:"firstBreadCumPath",breadCrumbPath:"breadCrumbPath"},decls:16,vars:3,consts:[[1,"d-flex","justify-content-between"],[1,"breadCrumbCohortsText","sofiaProBold"],[1,"sofiaProBold","breadCrumbTeamNameText"],[1,"ml-auto"],[1,"btn","btn-default","backButton",3,"click"],[1,"bx","bxs-chevron-left","text-light"],[1,"sofiaProLight",2,"color","#1e3757","font-size","17px"],[1,"borderLine"]],template:function(r,t){1&r&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div")(2,"span",1),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"span",2),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div",3)(7,"button",4),e.\u0275\u0275listener("click",function(){return t.goback()}),e.\u0275\u0275element(8,"i",5),e.\u0275\u0275text(9," Back "),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(10,"div")(11,"strong",6),e.\u0275\u0275text(12," Note: Sometimes AI model may give unexpected results. Please report to our support team at "),e.\u0275\u0275elementStart(13,"b"),e.\u0275\u0275text(14),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275element(15,"div",7)),2&r&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",t.firstBreadCumPath," > "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t.breadCrumbPath),e.\u0275\u0275advance(9),e.\u0275\u0275textInterpolate1("",t._settingService.mainSetting.email," "))},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 i})();const w=["*"];let P=(()=>{class i{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(r){return new(r||i)};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["app-gpt-outer-design"]],ngContentSelectors:w,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(r,t){1&r&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),e.\u0275\u0275projection(3),e.\u0275\u0275elementEnd()()())},styles:[".row[_ngcontent-%COMP%]{margin:0;padding:0}@media screen and (width < 991px){.columnPadding[_ngcontent-%COMP%]{padding:0}}"]})}return i})();function F(i,l){1&i&&e.\u0275\u0275element(0,"app-loader")}function k(i,l){if(1&i){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",10)(1,"div",11),e.\u0275\u0275listener("click",function(){const a=e.\u0275\u0275restoreView(n).$implicit,o=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(o.navigate(a))}),e.\u0275\u0275elementStart(2,"div",12)(3,"div"),e.\u0275\u0275element(4,"img",13),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",14)(6,"h5",15),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"p",16),e.\u0275\u0275text(9),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(10,"div",17),e.\u0275\u0275element(11,"i",18),e.\u0275\u0275elementEnd()()()()}if(2&i){const n=l.$implicit,r=e.\u0275\u0275nextContext();e.\u0275\u0275advance(4),e.\u0275\u0275property("src",r.getImage(n.imageFileData),e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(n.name),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(n.description)}}let L=(()=>{class i{constructor(n,r,t){this._gptService=n,this.apiService=r,this.router=t,this.isLoading=!1,this.firstBreadCumPath="Compliance & Performance Graph",this.breadCrumbPath="Performance",this.cardsData=[]}ngOnInit(){this.getPersonalizedData()}getPersonalizedData(){this._gptService.comprehensivePerformanceMappingSections(3).subscribe({next:n=>{200==n.statusCode&&(this.cardsData=n.data)},error:n=>{this.apiService.handleApiError(n)}})}navigate(n){n&&n.name.includes("Interconnected")?this.router.navigate(["/navigation-bar/mentee/performance/performance-gpt/interconnected",n.id]):n&&n.name.includes("Unifying")?this.router.navigate(["/navigation-bar/mentee/performance/performance-gpt/unifying-focus",n.id]):n&&n.name.includes("Focus")?this.router.navigate(["/navigation-bar/mentee/performance/performance-gpt/focus",n.id]):this.router.navigate(["/navigation-bar/mentee/performance/performance-gpt"])}getImage(n){return n&&n.filePreviewUrl?this.apiService.baseUrl+n.filePreviewUrl:"/assets/Default-Image-02.png"}static#e=this.\u0275fac=function(r){return new(r||i)(e.\u0275\u0275directiveInject(f.O),e.\u0275\u0275directiveInject(x.s),e.\u0275\u0275directiveInject(b.F0))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["app-personalised-generative-ai"]],decls:14,vars:4,consts:[[4,"ngIf"],[3,"firstBreadCumPath","breadCrumbPath"],["
1id","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"],[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"]],template:function(r,t){1&r&&(e.\u0275\u0275template(0,F,1,0,"app-loader",0),e.\u0275\u0275element(1,"app-gpt-bread-cum",1),e.\u0275\u0275elementStart(2,"app-gpt-outer-design")(3,"div",2)(4,"div",3)(5,"div",4)(6,"h5",5),e.\u0275\u0275text(7," Unlock the power of "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"h3",6),e.\u0275\u0275text(9," Personalised Generative AI "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"p",7),e.\u0275\u0275text(11,"Work with your smartest Learning Partner"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(12,"div",8),e.\u0275\u0275template(13,k,12,3,"div",9),e.\u0275\u0275elementEnd()()()()),2&r&&(e.\u0275\u0275property("ngIf",t.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("firstBreadCumPath",t.firstBreadCumPath)("breadCrumbPath",t.breadCrumbPath),e.\u0275\u0275advance(12),e.\u0275\u0275property("ngForOf",t.cardsData))},dependencies:[u.sg,u.O5,v.R,T,P],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}@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 i})();var C=_(15861),S=_(62398),D=_(33739),j=_(15922),E=_(37015),M=_(92818);function B(i,l){1&i&&e.\u0275\u0275element(0,"app-loader")}function A(i,l){1&i&&(e.\u0275\u0275elementStart(0,"p",19),e.\u0275\u0275text(1," Your Focus "),e.\u0275\u0275elementEnd())}function V(i,l){if(1&i&&(e.\u0275\u0275elementStart(0,"article",28),e.\u0275\u0275element(1,"img",29),e.\u0275\u0275elementStart(2,"div",30),e.\u0275\u0275element(3,"p",31),e.\u0275\u0275elementEnd()()),2&i){const n=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",n.dynamindMsg,e.\u0275\u0275sanitizeHtml)}}function z(i,l){if(1&i){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-gpt-elaborate",32),e.\u0275\u0275listener("scrollToTheView",function(t){e.\u0275\u0275restoreView(n);const a=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(a.scrollToTheView(t))})("elaborateTextLoaded",function(t){e.\u0275\u0275restoreView(n);const a=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(a.elaborateTextLoadedMethod(t))}),e.\u0275\u0275elementEnd()}if(2&i){const n=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275property("elaboratedData",n.a)("displayDynaGptLogo",!0)}}function R(i,l){if(1&i){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-gpt-elaborate",32),e.\u0275\u0275listener("scrollToTheView",function(t){e.\u0275\u0275restoreView(n);const a=e.\u0275\u0275nextContext(3);
1return e.\u0275\u0275resetView(a.scrollToTheView(t))})("elaborateTextLoaded",function(t){e.\u0275\u0275restoreView(n);const a=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(a.elaborateTextLoadedMethod(t))}),e.\u0275\u0275elementEnd()}if(2&i){const n=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275property("elaboratedData",n.a)("displayDynaGptLogo",!0)}}function U(i,l){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",6)(2,"div",20)(3,"div",21),e.\u0275\u0275element(4,"div",22),e.\u0275\u0275elementStart(5,"div",6)(6,"div",23)(7,"span",24)(8,"b"),e.\u0275\u0275text(9),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(10,"br"),e.\u0275\u0275text(11),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(12,"div",25),e.\u0275\u0275template(13,V,4,1,"article",26),e.\u0275\u0275elementStart(14,"p"),e.\u0275\u0275template(15,z,1,2,"app-gpt-elaborate",27),e.\u0275\u0275template(16,R,1,2,"app-gpt-elaborate",27),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementContainerEnd()),2&i){const n=l.$implicit,r=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(4),e.\u0275\u0275styleProp("--value",r.math.trunc(n.tags.tag.weightagePercent))("color",r.getFontColor(n.tags.tag.weightagePercent))("--fgLinear",r.getFirstBgColorOfLinearGradient(n.tags.tag.weightagePercent))("--fg",r.getSecondBgColorOfLinearGradient(n.tags.tag.weightagePercent))("--size","11.0rem"),e.\u0275\u0275propertyInterpolate("title",n.tags.tag.tagHierarchy),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate("title",n.tags.tag.tagHierarchy),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(n.tags.tag.tagName),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("( ",n.tags.tag.tagHierarchy," ) "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",n.q),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",n.a.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!n.a.isLoading)}}function $(i,l){if(1&i&&(e.\u0275\u0275elementStart(0,"main")(1,"div",15)(2,"div",3),e.\u0275\u0275template(3,A,2,0,"p",16),e.\u0275\u0275template(4,U,17,17,"ng-container",17),e.\u0275\u0275elementStart(5,"strong",18),e.\u0275\u0275text(6," Note: On the performance page the focus utility operates solely for individual selections made at the course, subject, topic or chapter level. "),e.\u0275\u0275elementEnd()()()()),2&i){const n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",n.focusData.length>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",n.focusData)}}let G=(()=>{class i{constructor(n,r,t,a,o,s,c){this._settingService=n,this._gptService=r,this.activatedRoute=t,this.apiService=a,this.loggedInUserService=o,this.mathJaxService=s,this._botService=c,this.math=Math,this.isLoading=!1,this.firstBreadCumPath="Performance",this.breadCrumbPath="Focus",this.getData=new S.Ro,this.focusData=[]}ngOnInit(){this.loggedInUser=JSON.parse(this.loggedInUserService.getLoggedInUser()),this.streamId=parseInt(this.activatedRoute.snapshot.params.id),this.getPrompt(this.streamId)}getImage(n){return n&&n.filePreviewUrl?this.apiService.baseUrl+n.filePreviewUrl:"/assets/Default-Image-02.png"}getPrompt(n){n&&this._gptService.comprehensivePerformanceSectionPrompts(n).subscribe({next:r=>{200==r.statusCode&&(this.promptData=r.data,this.getObjectData=r.objectData,this.gettags(n,this.promptData))},error:r=>{this.apiService.handleApiError(r)}})}gettags(n,r){n&&this._gptService.focusSectionTags(n).subscribe({next:t=>{if(200==t.statusCode){this.tagData=t.data;let a=this._gptService.handleFocus(r,this.tagData);this.callBot(a)}},error:t=>{this.apiService.handleApiError(t)}})}callBot(n){var r=this;return(0,C.Z)(function*(){if(n.length>0){let t=[];for(let a=0;a<n.length;a++){let o=new S.Ro;o.max_tokens=250,o.temperature=1,o.user_preference="Focus",o.source="WEB",o.app_user_id=r.loggedInUser.id,o.gpt_personalized_learning_id=r.streamId;let s=[];s.q=n[a].prompt,s.dynamindMsg=n[a].dynamindMsg,s.a={isLoading:!0},s.tags=n[a].tags,o.requestMsg=n[a].prompt;let c=[];c=r._botService.gpt4message(o.requestMsg),o.messages=[{role:"system",content:"you are helpful assistant. \nYou are addressing a student"},{role:"user",content:c}],o.gpt_prompt_id=n[a].promptId,0!=a?setTimeout(()=>{r.botApi(a,o)},4e3):r.botApi(a,o),t.push(s)}r.focusData=t}})()}botApi(n,r){this._botService.gpt4omini(r).subscribe({next:t=>{let a={};a.text=t.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.focusData[n].a=a,r.gptResponse=a.text,this._botService.trackApiCall(r).subscribe({next:o=>{},error:o=>{}})},error:t=>{this.apiService.handleApiError(t)}})}scrollToTheView(n){null!=n&&setTimeout(()=>{},100)}scrollTo(){document.querySelector("#scroll").scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}elaborateTextLoadedMethod(n){let r={};r=n,r&&this.scrollTo()}
1getFontColor(n){return 0==n||n<40?"#fe5a5a":n>=40&&n<80?"background-image: linear-gradient(to left top, #83e8dd, #67d1cf, #4cb9c1, #2fa3b2, #098ca2);":n>=80?"#10C69B":"black"}getFirstBgColorOfLinearGradient(n){return 0==n||n<40?"#EB5757":n>=40&&n<85?"#FCBB1D":n>=85?"#10C69B":"black"}getSecondBgColorOfLinearGradient(n){return 0==n||n<40?"#efd5d5":n>=40&&n<80?"#ffedc3":n>=80?"#d3fff5":"black"}static#e=this.\u0275fac=function(r){return new(r||i)(e.\u0275\u0275directiveInject(I.R),e.\u0275\u0275directiveInject(f.O),e.\u0275\u0275directiveInject(b.gz),e.\u0275\u0275directiveInject(x.s),e.\u0275\u0275directiveInject(D.k),e.\u0275\u0275directiveInject(j.X),e.\u0275\u0275directiveInject(E.G))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["app-focus"]],decls:22,vars:6,consts:[[4,"ngIf"],[3,"firstBreadCumPath","breadCrumbPath"],[1,"card","topCardDesign"],[1,"card-body"],[1,"sofiaProBold","m-0"],["src","../../../../assets/img/heartbeatline.gif",1,"img-fluid","mx-auto","d-block","w-75"],[1,"row"],[1,"col-md-12","my-2","columnPadding"],["id","card",1,"card","d-flex","scale"],[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"],["id","card",1,"card"],["class","sofiaProBold m-0 stPulse",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"sofiaProLight",2,"color","#1e3757","font-size","17px"],[1,"sofiaProBold","m-0","stPulse"],[1,"col-xl-3","col-lg-3","col-md-3","col-sm-12","col-12"],[1,"p-2","mar-20"],["role","progressbar","aria-valuenow","item.percentage","aria-valuemin","0","aria-valuemax","100",3,"title"],[1,"col-12","txt-ellipsis"],[1,"addTextNew",3,"title"],[1,"col-xl-9","col-lg-9","col-md-9","col-sm-12","col-12"],["id","cardNew","class","artbord",4,"ngIf"],[3,"elaboratedData","displayDynaGptLogo","scrollToTheView","elaborateTextLoaded",4,"ngIf"],["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"],[3,"elaboratedData","displayDynaGptLogo","scrollToTheView","elaborateTextLoaded"]],template:function(r,t){1&r&&(e.\u0275\u0275template(0,B,1,0,"app-loader",0),e.\u0275\u0275element(1,"app-gpt-bread-cum",1),e.\u0275\u0275elementStart(2,"app-gpt-outer-design")(3,"header",2)(4,"div",3)(5,"p",4),e.\u0275\u0275text(6," Status Pulse "),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(7,"div"),e.\u0275\u0275element(8,"img",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"div",6)(10,"div",7)(11,"div",8)(12,"div",9)(13,"div"),e.\u0275\u0275element(14,"img",10),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(15,"div",11)(16,"h5",12),e.\u0275\u0275text(17),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(18,"p",13),e.\u0275\u0275text(19,"Here are the insights into your current areas of focus."),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(20,"div",14),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275template(21,$,7,2,"main",0),e.\u0275\u0275elementEnd()),2&r&&(e.\u0275\u0275property("ngIf",t.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("firstBreadCumPath",t.firstBreadCumPath)("breadCrumbPath",t.breadCrumbPath),e.\u0275\u0275advance(13),e.\u0275\u0275property("src",t.getImage(t.getObjectData.imageFileData),e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.getObjectData.name),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",t.focusData))},dependencies:[u.sg,u.O5,v.R,T,P,M.k],styles:['.html[_ngcontent-%COMP%]{scroll-behavior:smooth}.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%], .stPulse[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:21px}#card[_ngcontent-%COMP%]{background:#FEFEFE;border:3px solid rgba(232,236,239,.75);border-radius:12px;margin:20px 0}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]{background:rgba(3,121,156,.05);border-radius:12px;padding:2rem;max-height:270px;border:none;overflow-y:auto}@media screen and (width < 767px){#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]{padding:1rem}}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]   .viewReport[_ngcontent-%COMP%]{color:#ada0dc;text-align:center;font-size:18px}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]   .viewReport[_ngcontent-%COMP%]:hover{background-color:#ada0dc;border:1px solid #ADA0DC;color:#fff}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]   .attemptedOn[_ngcontent-%COMP%]{color:#94979b}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]   .asse
1ssmentName[_ngcontent-%COMP%]{color:#1e3757;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:18px}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]:hover{overflow-y:scroll}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%] > .jumbotron-content[_ngcontent-%COMP%], #card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]:hover, #card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]:focus{visibility:visible}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{visibility:hidden}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]:active::-webkit-scrollbar-thumb, #card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]:focus::-webkit-scrollbar-thumb, #card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]:hover::-webkit-scrollbar-thumb{visibility:visible}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]::-webkit-scrollbar-track{box-shadow:inset 0 0 5px transparent}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}#card[_ngcontent-%COMP%]   .secondCard[_ngcontent-%COMP%]{background:rgba(3,121,156,.05);border-radius:12px;border:none;text-align:center}#card[_ngcontent-%COMP%]   .secondCard[_ngcontent-%COMP%]   .firstText[_ngcontent-%COMP%]{color:#8e55ea;font-size:18px}#card[_ngcontent-%COMP%]   .secondCard[_ngcontent-%COMP%]   .secondText[_ngcontent-%COMP%]{color:#7c7c7c;font-size:18px}#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}.artbord[_ngcontent-%COMP%]{background:#FEFEFE;border:3px solid rgba(232,236,239,.75);border-radius:12px;margin:20px 0;padding:1rem}div[role=progressbar][_ngcontent-%COMP%]{--size: 12rem;--fg: #80e7dc;--fgLinear: transparent;--bg: #f2f2f2;--pgPercentage: var(--value);animation:growProgressBar 3s 1 forwards;width:var(--size);height:var(--size);border-radius:50%;display:grid;place-items:center;background:radial-gradient(closest-side,white 80%,transparent 0 99.9%,white 0),conic-gradient(var(--fgLinear),var(--fg) calc(var(--pgPercentage) * 1%),var(--bg) 0);font-family:Helvetica,Arial,sans-serif;font-size:calc(var(--size) / 5);color:var(--fg)}div[role=progressbar][_ngcontent-%COMP%]:before{counter-reset:percentage var(--value);content:counter(percentage) "%"}div[role=progressbarChange][_ngcontent-%COMP%]{--size: 11rem;--fg: #369;--bg: #f2f2f2;--pgPercentage: var(--value);animation:growProgressBar 3s 1 forwards;width:var(--size);height:var(--size);border-radius:50%;display:grid;place-items:center;background:radial-gradient(closest-side,white 80%,transparent 0 99.9%,white 0),conic-gradient(var(--fg) calc(var(--pgPercentage) * 1%),var(--bg) 0);font-family:Helvetica,Arial,sans-serif;font-size:85px;color:#01c7a8}div[role=progressbarChange][_ngcontent-%COMP%]:before{counter-reset:percentage var(--value);content:"+"}.mar-20[_ngcontent-%COMP%]{margin:20px 0}']})}return i})();var y=_(45227);function H(i,l){1&i&&e.\u0275\u0275element(0,"app-loader")}function N(i,l){if(1&i&&(e.\u0275\u0275elementStart(0,"article",12),e.\u0275\u0275element(1,"img",13),e.\u0275\u0275elementStart(2,"div",14),e.\u0275\u0275element(3,"p",15),e.\u0275\u0275elementEnd()()),2&i){const n=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",n.dynamindArtMessage,e.\u0275\u0275sanitizeHtml)}}function J(i,l){if(1&i&&(e.\u0275\u0275elementStart(0,"article",12),e.\u0275\u0275element(1,"img",13),e.\u0275\u0275elementStart(2,"div",14),e.\u0275\u0275element(3,"p",15),e.\u0275\u0275elementEnd()()),2&i){const n=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",n.dynamindMessage,e.\u0275\u0275sanitizeHtml)}}function W(i,l){if(1&i){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-gpt-elaborate",18),e.\u0275\u0275listener("scrollToTheView",function(t){e.\u0275\u0275restoreView(n);const a=e.\u0275\u0275nextContext(5);
1return e.\u0275\u0275resetView(a.scrollToTheView(t))})("elaborateTextLoaded",function(t){e.\u0275\u0275restoreView(n);const a=e.\u0275\u0275nextContext(5);return e.\u0275\u0275resetView(a.elaborateTextLoadedMethod(t))}),e.\u0275\u0275elementEnd()}if(2&i){const n=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275property("elaboratedData",n.elaboratedData)("displayDynaGptLogo",!0)}}function Y(i,l){if(1&i){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-gpt-elaborate",19),e.\u0275\u0275listener("scrollToTheView",function(t){e.\u0275\u0275restoreView(n);const a=e.\u0275\u0275nextContext(5);return e.\u0275\u0275resetView(a.scrollToTheView(t))})("elaborateTextLoaded",function(t){e.\u0275\u0275restoreView(n);const a=e.\u0275\u0275nextContext(5);return e.\u0275\u0275resetView(a.elaborateTextLoadedMethod(t))}),e.\u0275\u0275elementEnd()}if(2&i){const n=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275property("elaboratedData",n.elaboratedData)("displayDynaGptLogo",!0)("noBackground",!0)}}function Z(i,l){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"p"),e.\u0275\u0275template(2,W,1,2,"app-gpt-elaborate",16),e.\u0275\u0275template(3,Y,1,3,"app-gpt-elaborate",17),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&i){const n=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",n.elaboratedData.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!n.elaboratedData.isLoading)}}function X(i,l){if(1&i){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",21)(2,"span",22),e.\u0275\u0275text(3," Just now "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(4,"div",21)(5,"button",23),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(n);const t=e.\u0275\u0275nextContext(2),a=t.index,o=t.$implicit,s=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(s.elaborateMethod(a,o))}),e.\u0275\u0275text(6," Elaborate "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div",21)(8,"button",24),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(n);const t=e.\u0275\u0275nextContext(2),a=t.index,o=t.$implicit,s=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(s.skipMethod(a,o))}),e.\u0275\u0275text(9," Ignore "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()}}function K(i,l){if(1&i&&(e.\u0275\u0275elementStart(0,"div",20),e.\u0275\u0275template(1,X,10,0,"ng-container",0),e.\u0275\u0275elementEnd()),2&i){const n=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!n.elaboratedData)}}function Q(i,l){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,N,4,1,"article",10),e.\u0275\u0275template(2,J,4,1,"article",10),e.\u0275\u0275template(3,Z,4,2,"ng-container",0),e.\u0275\u0275template(4,K,2,1,"div",11),e.\u0275\u0275elementContainerEnd()),2&i){const n=l.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",n.dynamindArtMessage&&""!==n.dynamindArtMessage),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",n.dynamindMessage&&1==n.elaborateTextLoaded),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",n.elaboratedData),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1==n.elaborateTextLoaded&&0==n.skip)}}function q(i,l){if(1&i&&(e.\u0275\u0275elementStart(0,"div",8)(1,"div",3),e.\u0275\u0275template(2,Q,5,4,"ng-container",9),e.\u0275\u0275elementEnd()()),2&i){const n=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",n.interConnecrExplrData)}}function ee(i,l){if(1&i&&(e.\u0275\u0275elementStart(0,"strong",25),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const n=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",n.errorMsg," ")}}function te(i,l){if(1&i&&(e.\u0275\u0275elementStart(0,"main"),e.\u0275\u0275template(1,q,3,1,"div",6),e.\u0275\u0275template(2,ee,2,1,"ng-template",null,7,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&i){const n=e.\u0275\u0275reference(3),r=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==r.errorMsg)("ngIfElse",n)}}function re(i,l){1&i&&e.\u0275\u0275element(0,"app-loader")}function ae(i,l){if(1&i&&(e.\u0275\u0275elementStart(0,"article",12),e.\u0275\u0275element(1,"img",13),e.\u0275\u0275elementStart(2,"div",14),e.\u0275\u0275element(3,"p",15),e.\u0275\u0275elementEnd()()),2&i){const n=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",n.dynamindArtMessage,e.\u0275\u0275sanitizeHtml)}}function ie(i,l){if(1&i&&(e.\u0275\u0275elementStart(0,"article",12),e.\u0275\u0275element(1,"img",13),e.\u0275\u0275elementStart(2,"div",14),e.\u0275\u0275element(3,"p",15),e.\u0275\u0275elementEnd()()),2&i){const n=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",n.dynamindMessage,e.\u0275\u0275sanitizeHtml)}}function oe(i,l){if(1&i){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-gpt-elaborate",18),e.\u0275\u0275listener("scrollToTheView",function(t){e.\u0275\u0275restoreView(n);const a=e.\u0275\u0275nextContext(5);
1return e.\u0275\u0275resetView(a.scrollToTheView(t))})("elaborateTextLoaded",function(t){e.\u0275\u0275restoreView(n);const a=e.\u0275\u0275nextContext(5);return e.\u0275\u0275resetView(a.elaborateTextLoadedMethod(t))}),e.\u0275\u0275elementEnd()}if(2&i){const n=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275property("elaboratedData",n.elaboratedData)("displayDynaGptLogo",!0)}}function se(i,l){if(1&i){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-gpt-elaborate",19),e.\u0275\u0275listener("scrollToTheView",function(t){e.\u0275\u0275restoreView(n);const a=e.\u0275\u0275nextContext(5);return e.\u0275\u0275resetView(a.scrollToTheView(t))})("elaborateTextLoaded",function(t){e.\u0275\u0275restoreView(n);const a=e.\u0275\u0275nextContext(5);return e.\u0275\u0275resetView(a.elaborateTextLoadedMethod(t))}),e.\u0275\u0275elementEnd()}if(2&i){const n=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275property("elaboratedData",n.elaboratedData)("displayDynaGptLogo",!0)("noBackground",!0)}}function ce(i,l){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"p"),e.\u0275\u0275template(2,oe,1,2,"app-gpt-elaborate",16),e.\u0275\u0275template(3,se,1,3,"app-gpt-elaborate",17),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&i){const n=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",n.elaboratedData.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!n.elaboratedData.isLoading)}}function le(i,l){if(1&i){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div")(2,"span",21),e.\u0275\u0275text(3," Just now "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(4,"div")(5,"button",22),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(n);const t=e.\u0275\u0275nextContext(2),a=t.index,o=t.$implicit,s=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(s.elaborateMethod(a,o))}),e.\u0275\u0275text(6," Elaborate "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div")(8,"button",23),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(n);const t=e.\u0275\u0275nextContext(2),a=t.index,o=t.$implicit,s=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(s.skipMethod(a,o))}),e.\u0275\u0275text(9," Ignore "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()}}function de(i,l){if(1&i&&(e.\u0275\u0275elementStart(0,"div",20),e.\u0275\u0275template(1,le,10,0,"ng-container",0),e.\u0275\u0275elementEnd()),2&i){const n=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!n.elaboratedData)}}function pe(i,l){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,ae,4,1,"article",10),e.\u0275\u0275template(2,ie,4,1,"article",10),e.\u0275\u0275template(3,ce,4,2,"ng-container",0),e.\u0275\u0275template(4,de,2,1,"div",11),e.\u0275\u0275elementContainerEnd()),2&i){const n=l.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",n.dynamindArtMessage&&""!==n.dynamindArtMessage),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",n.dynamindMessage&&1==n.elaborateTextLoaded),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",n.elaboratedData),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1==n.elaborateTextLoaded&&0==n.skip)}}function ge(i,l){if(1&i&&(e.\u0275\u0275elementStart(0,"div",8)(1,"div",3),e.\u0275\u0275template(2,pe,5,4,"ng-container",9),e.\u0275\u0275elementEnd()()),2&i){const n=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",n.interConnecrExplrData)}}function _e(i,l){if(1&i&&(e.\u0275\u0275elementStart(0,"strong",24),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const n=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",n.errorMsg," ")}}function ue(i,l){if(1&i&&(e.\u0275\u0275elementStart(0,"main"),e.\u0275\u0275template(1,ge,3,1,"div",6),e.\u0275\u0275template(2,_e,2,1,"ng-template",null,7,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&i){const n=e.\u0275\u0275reference(3),r=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==r.errorMsg)("ngIfElse",n)}}const me=[{path:"",component:L},{path:"focus/:id",component:G},{path:"unifying-focus/:id",component:(()=>{class i{constructor(n,r,t,a,o,s,c,p){this.mathJaxService=n,this._settingService=r,this._gptService=t,this.activatedRoute=a,this.apiService=o,this.loggedInUserService=s,this._botService=c,this.platformId=p,this.isLoading=!1,this.firstBreadCumPath="Performance GPT",this.breadCrumbPath="Unifying Focus",this.chaptDispInd=0,this.articleDispInd=0,this.subjDispInd=0,this.existedChapterArticle=[],this.errorMsg=null,this.interConnecrExplrData=[],this.getData=new S.Ro}ngOnInit(){this.loggedInUser=JSON.parse(this.loggedInUserService.getLoggedInUser()),this.streamId=parseInt(this.activatedRoute.snapshot.params.id),this.getPrompt(this.streamId)}onResize(){(0,u.NF)(this.platformId)&&(this.width=window.innerWidth)}displayMsg(n){var r=this;return(0,C.Z)(function*(){n.elaboratedData={isLoading:!0},yield r.callBotApi(n)})()}elaborateMethod(n,r){var t=this;return(0,C.Z)(function*(){if(yield t.displayMsg(r),"SUBJECT"==r.tagType){t.curSubjectTag=r;let a=t.existedSubjectTopic,o=t.subjDispInd,s="";if(a&&a.length>0?(s=t.existedSubjectTopic,o+=1,t.subjDispInd=o):(s=t.tagData.TOPIC.filter(c=>c.parentId===r.tagId),t.subjDispInd=o=0,t.existedSubjectTopic=s),null!=s[o])t.callSubject(s[0]);else{let c=t.forSubjInd;c+=1,t.forSubjInd=c;let p=t.existedSubject;p[c]?t.callForSubject(p[c]):(t.forSubjInd=0,t.callForSubject(p[0]))}}else if("TOPIC"==r.tagType){t.curTopicTag=r;let a=t.existedTopicChapter,o=t.chaptDispInd,s="";if(a&&a.length>0?(s=a,o+=1,t.chaptDispInd=o):(s=t.tagData.CHAPTER.filter(c=>
1c.parentId===r.tagId),t.chaptDispInd=o=0,t.existedTopicChapter=s),s[o])t.callTopic(s[0]);else{let c=t.subjDispInd;c+=1,t.subjDispInd=c;let p=t.existedSubjectTopic;if(null!=p[c])t.callSubject(p[c]);else{t.existedSubjectTopic=[],t.subjDispInd=0;let d=t.forSubjInd;d+=1,t.forSubjInd=d;let g=t.existedSubject;t.callForSubject(g[d]?g[d]:g[0])}}}else if("CHAPTER"==r.tagType||"ARTICLE"==r.tagType){t.curChapterTag=r;let a=t.existedChapterArticle,o=t.articleDispInd,s="";if(a&&a.length>0?(s=a,o+=1,t.articleDispInd=o):(s=t.tagData.ARTICLE.filter(c=>c.parentId===r.tagId),t.existedChapterArticle=s,t.articleDispInd=o=0),s[o])t.callChapter(s[t.articleDispInd],!1,0==t.articleDispInd,t.articleDispInd);else{t.articleDispInd=0,t.existedChapterArticle=[];let c=t.chaptDispInd;if(c+=1,t.chaptDispInd=c,null!=t.existedTopicChapter[c])t.callTopic(t.existedTopicChapter[c]);else{t.existedTopicChapter=[],t.chaptDispInd=0;let d=t.subjDispInd;d+=1,t.subjDispInd=d;let g=t.existedSubjectTopic;if(null!=g[d])t.callSubject(g[d]);else{t.existedSubjectTopic=[],t.subjDispInd=0;let m=t.forSubjInd;m+=1,t.forSubjInd=m;let h=t.existedSubject;t.callForSubject(h[m]?h[m]:h[0])}}}}})()}callForSubject(n,r){let t=this._gptService.handleInterConnectedExplorationPromptTag(n,"SUBJECT",this.promptData),a=this.interConnecrExplrData.length;this.interConnecrExplrData[a]=t[0],this.interConnecrExplrData[a].elaboratedData="",this.interConnecrExplrData[a].skip=!1,this.interConnecrExplrData[a].takeId=a,this.interConnecrExplrData[a].elaborateTextLoaded=!(!r||1!=r),this.getCurrentChngId=a}callSubject(n,r){let t=this._gptService.handleInterConnectedExplorationPromptTag(n,"TOPIC",this.promptData),a=this.interConnecrExplrData.length;this.interConnecrExplrData[a]=t[0],this.interConnecrExplrData[a].elaboratedData="",this.interConnecrExplrData[a].skip=!1,this.interConnecrExplrData[a].takeId=a,this.interConnecrExplrData[a].elaborateTextLoaded=!(!r||1!=r),this.getCurrentChngId=a}callTopic(n,r){let t=this._gptService.handleInterConnectedExplorationPromptTag(n,"CHAPTER",this.promptData),a=this.interConnecrExplrData.length;this.interConnecrExplrData[a]=t[0],this.interConnecrExplrData[a].elaboratedData="",this.interConnecrExplrData[a].skip=!1,this.interConnecrExplrData[a].takeId=a,this.interConnecrExplrData[a].elaborateTextLoaded=!(!r||1!=r),this.getCurrentChngId=a}callChapter(n,r,t,a){let o=this._gptService.handleInterConnectedExplorationPromptTag(n,"ARTICLE",this.promptData,t,a),s=this.interConnecrExplrData.length;this.interConnecrExplrData[s]=o[0],this.interConnecrExplrData[s].elaboratedData="",this.interConnecrExplrData[s].skip=!1,this.interConnecrExplrData[s].takeId=s,this.interConnecrExplrData[s].elaborateTextLoaded=!(!r||1!=r),this.getCurrentChngId=s}skipMsg(n){n.skip=!0}skipMethod(n,r){if(r.skip=!0,"SUBJECT"==r.tagType){let t=this.forSubjInd;t+=1,this.forSubjInd=t;let a=this.existedSubject;null!=a[t]?this.callForSubject(a[t],!0):(this.forSubjInd=0,this.callForSubject(a[0],!0))}else if("TOPIC"==r.tagType){let t=this.subjDispInd;t+=1,this.subjDispInd=t;let a=this.existedSubjectTopic;if(null!=a[t])this.callSubject(a[t],!0);else{this.existedSubjectTopic=[],this.subjDispInd=0;let o=this.forSubjInd;o+=1,this.forSubjInd=o;let s=this.existedSubject;null!=s[o]?this.callForSubject(s[o],!0):(this.forSubjInd=0,this.callForSubject(s[0],!0))}}else if("CHAPTER"==r.tagType){let t=this.chaptDispInd;t+=1,this.chaptDispInd=t;let a=this.existedTopicChapter;if(a[t])this.callTopic(a[t],!0);else{this.existedTopicChapter=[],this.chaptDispInd=0;let o=this.subjDispInd;o+=1,this.subjDispInd=o;let s=this.existedSubjectTopic;if(null!=s[o])this.callSubject(s[o],!0);else{this.existedSubjectTopic=[],this.subjDispInd=0;let c=this.forSubjInd;c+=1,this.forSubjInd=c;let p=this.existedSubject;null!=p[c]?this.callForSubject(p[c],!0):(this.forSubjInd=0,this.callForSubject(p[0],!0))}}}else if("ARTICLE"==r.tagType){let t=this.articleDispInd;t+=1,this.articleDispInd=t;let a=this.existedChapterArticle;if(a[t])this.callChapter(a[t],!0,!1,this.articleDispInd);else{let o=this.chaptDispInd;o+=1,this.chaptDispInd=o;let s=this.existedTopicChapter;if(s[o])this.callTopic(s[o],!0);
1else{this.existedTopicChapter=[],this.chaptDispInd=0;let c=this.subjDispInd;c+=1,this.subjDispInd=c;let p=this.existedSubjectTopic;if(null!=p[c])this.callSubject(p[c],!0);else{this.existedSubjectTopic=[],this.subjDispInd=0;let d=this.forSubjInd;d+=1,this.forSubjInd=d;let g=this.existedSubject;null!=g[d]?this.callForSubject(g[d],!0):(this.forSubjInd=0,this.callForSubject(g[0],!0))}}}}}getPrompt(n){n&&this._gptService.comprehensivePerformanceSectionPrompts(n).subscribe({next:r=>{200==r.statusCode&&(this.promptData=r.data,this.gettags(n,this.promptData))},error:r=>{this.apiService.handleApiError(r)}})}gettags(n,r){n&&this._gptService.unifyingFocusTags(n).subscribe({next:t=>{if(200==t.statusCode&&null!=t.data){this.tagData=t.data,this.existedSubject=this.tagData.SUBJECT,this.forSubjInd=0;let a=this._gptService.handleInterconnect(r,this.tagData,"SUBJECT");this.interConnecrExplrData[this.interConnecrExplrData.length]=a[0],this.interConnecrExplrData[0].takeId=0,this.interConnecrExplrData[0].elaboratedData="",this.interConnecrExplrData[0].skip=!1,this.interConnecrExplrData[0].elaborateTextLoaded=!0}else this.errorMsg=t.message},error:t=>{this.apiService.handleApiError(t)}})}callBotApi(n){this.getData.max_tokens=250,this.getData.temperature=1,this.getData.user_preference="Unifying Focus",this.getData.source="WEB",this.getData.app_user_id=this.loggedInUser.id,this.getData.requestMsg=n.inputToAI,this.getData.gpt_personalized_learning_id=this.streamId,this.getData.gpt_prompt_id=n.promptId;let r=[];r=this._botService.gpt4message(this.getData.requestMsg),this.getData.messages=[{role:"system",content:"you are helpful assistant. \nYou are addressing a student"},{role:"user",content:r}],this._botService.gpt4omini(this.getData).subscribe({next:t=>{let a={};a.text=t.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(),n.elaboratedData=a,this.getData.gptResponse=a.text,this._botService.trackApiCall(this.getData).subscribe({next:o=>{},error:o=>{}})},error:t=>{this.apiService.handleApiError(t)}})}scrollToTheView(n){null!=n&&setTimeout(()=>{this.scrollTo()},100)}scrollTo(){document.querySelector("#scroll").scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}elaborateTextLoadedMethod(n){let r={};r=n,r&&(this.interConnecrExplrData[this.getCurrentChngId].elaborateTextLoaded=!0,this.scrollTo())}static#e=this.\u0275fac=function(r){return new(r||i)(e.\u0275\u0275directiveInject(j.X),e.\u0275\u0275directiveInject(I.R),e.\u0275\u0275directiveInject(f.O),e.\u0275\u0275directiveInject(b.gz),e.\u0275\u0275directiveInject(x.s),e.\u0275\u0275directiveInject(D.k),e.\u0275\u0275directiveInject(E.G),e.\u0275\u0275directiveInject(e.PLATFORM_ID))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["app-unifying-focus"]],hostBindings:function(r,t){1&r&&e.\u0275\u0275listener("resize",function(o){return t.onResize(o)},!1,e.\u0275\u0275resolveWindow)},decls:10,vars:4,consts:[[4,"ngIf"],[3,"firstBreadCumPath","breadCrumbPath"],[1,"card","topCardDesign"],[1,"card-body"],[1,"sofiaProBold","m-0"],["id","scroll",1,"displayTransition","mb-5",2,"margin-top","50px"],["class","card","id","card",4,"ngIf","ngIfElse"],["errMsg",""],["id","card",1,"card"],[4,"ngFor","ngForOf"],["id","cardNew","class","artbord",4,"ngIf"],["class","justify-content-sm-start justify-content-between d-flex",4,"ngIf"],["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"],[3,"elaboratedData","displayDynaGptLogo","scrollToTheView","elaborateTextLoaded",4,"ngIf"],[3,"elaboratedData","displayDynaGptLogo","noBackground","scrollToTheView","elaborateTextLoaded",4,"ngIf"],[3,"elaboratedData","displayDynaGptLogo","scrollToTheView","elaborateTextLoaded"],[3,"elaboratedData","displayDynaGptLogo","noBackground","scrollToTheView","elaborateTextLoaded"],[1,"justify-content-sm-start","justify-content-between","d-flex"],[1,"my-auto","d-block"],[1,"secondaryText","sofiaProLight"],[1,"btn","btn-default","elaborateButton","sofiaProBold",3,"click"],[1,"btn","btn-default","skipButton","sofiaProBold",3,"click"],[1,"sofiaProLight",2,"color","#1e3757","font-size","17px"]],template:function(r,t){1&r&&(e.\u0275\u0275template(0,H,1,0,"app-loader",0),e.\u0275\u0275element(1,"app-gpt-bread-cum",1),e.\u0275\u0275elementStart(2,"app-gpt-outer-design")(3,"header",2)(4,"div",3)(5,"p",4),e.\u0275\u0275text(6," Unifying Focus "),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(7,te,4,2,"main",0),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(8,"app-footer")(9,"div",5)),2&r&&(e.\u0275\u0275property("ngIf",t.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("firstBreadCumPath",t.firstBreadCumPath)("breadCrumbPath",t.breadCrumbPath),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngIf",t.interConnecrExplrData))},dependencies:[u.sg,u.O5,v.R,y.c,T,P,M.k],styles:[".html[_ngcontent-%COMP%]{scroll-behavior:smooth}.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;font-size:21px}#card[_ngcontent-%COMP%]{background:#FEFEFE;border:3px solid rgba(232,236,239,.75);border-radius:12px;margin:20px 0}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]{background:rgba(3,121,156,.05);border-radius:12px;padding:2rem;max-height:270px;border:none;overflow-y:auto}@media screen and (width < 767px){#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]{padding:1rem}}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]   .viewReport[_ngcontent-%COMP%]{color:#ada0dc;text-align:center;font-size:18px}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]   .viewReport[_ngcontent-%COMP%]:hover{background-color:#ada0dc;border:1px solid #ADA0DC;color:#fff}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]   .attemptedOn[_ngcontent-%COMP%]{color:#94979b}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]   .asse
1ssmentName[_ngcontent-%COMP%]{color:#1e3757;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:18px}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]:hover{overflow-y:scroll}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%] > .jumbotron-content[_ngcontent-%COMP%], #card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]:hover, #card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]:focus{visibility:visible}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{visibility:hidden}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]:active::-webkit-scrollbar-thumb, #card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]:focus::-webkit-scrollbar-thumb, #card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]:hover::-webkit-scrollbar-thumb{visibility:visible}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]::-webkit-scrollbar-track{box-shadow:inset 0 0 5px transparent}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}#card[_ngcontent-%COMP%]   .secondCard[_ngcontent-%COMP%]{background:rgba(3,121,156,.05);border-radius:12px;border:none;text-align:center}#card[_ngcontent-%COMP%]   .secondCard[_ngcontent-%COMP%]   .firstText[_ngcontent-%COMP%]{color:#8e55ea;font-size:18px}#card[_ngcontent-%COMP%]   .secondCard[_ngcontent-%COMP%]   .secondText[_ngcontent-%COMP%]{color:#7c7c7c;font-size:18px}#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}.artbord[_ngcontent-%COMP%]{background:#FEFEFE;border:3px solid rgba(232,236,239,.75);border-radius:12px;margin:20px 0;padding:1rem}.secondaryText[_ngcontent-%COMP%]{color:#7c7c7c;font-size:18px}.elaborateButton[_ngcontent-%COMP%], .skipButton[_ngcontent-%COMP%]{background:#E8ECEF;color:#1e3757;margin:10px 20px;padding:2px 10px;border:#E8ECEF;border-radius:6px;font-size:18px}@media screen and (width < 399px){.elaborateButton[_ngcontent-%COMP%], .skipButton[_ngcontent-%COMP%]{margin:0;width:100%;display:block}}"]})}return i})()},{path:"interconnected/:id",component:(()=>{class i{constructor(n,r,t,a,o,s,c,p){this.mathJaxService=n,this._gptService=r,this._settingService=t,this.activatedRoute=a,this.apiService=o,this.loggedInUserService=s,this._botService=c,this.platformId=p,this.isLoading=!1,this.firstBreadCumPath="Performance GPT",this.breadCrumbPath="Interconnected Explorations",this.chaptDispInd=0,this.articleDispInd=0,this.subjDispInd=0,this.existedChapterArticle=[],this.errorMsg=null,this.interConnecrExplrData=[],this.getData=new S.Ro}ngOnInit(){this.loggedInUser=JSON.parse(this.loggedInUserService.getLoggedInUser()),this.streamId=parseInt(this.activatedRoute.snapshot.params.id),this.getPrompt(this.streamId)}onResize(){(0,u.NF)(this.platformId)&&(this.width=window.innerWidth)}displayMsg(n){var r=this;return(0,C.Z)(function*(){n.elaboratedData={isLoading:!0},yield r.callBotApi(n)})()}elaborateMethod(n,r){var t=this;return(0,C.Z)(function*(){if(yield t.displayMsg(r),"SUBJECT"==r.tagType){t.curSubjectTag=r;let a=t.existedSubjectTopic,o=t.subjDispInd,s="";if(a&&a.length>0?(s=t.existedSubjectTopic,o+=1,t.subjDispInd=o):(s=t.tagData.TOPIC.filter(c=>c.parentId===r.tagId),t.subjDispInd=o=0,t.existedSubjectTopic=s),null!=s[o])t.callSubject(s[0]);else{let c=t.forSubjInd;c+=1,t.forSubjInd=c;let p=t.existedSubject;p[c]?t.callForSubject(p[c]):(t.forSubjInd=0,t.callForSubject(p[0]))}}else if("TOPIC"==r.tagType){t.curTopicTag=r;let a=t.existedTopicChapter,o=t.chaptDispInd,s="";if(a&&a.length>0?(s=a,o+=1,t.chaptDispInd=o):(s=t.tagData.CHAPTER.filter(c=>c.parentId===r.tagId),t.chaptDispInd=o=0,t.existedTopicChapter=s),s[o])t.callTopic(s[0]);else{let c=t.subjDispInd;c+=1,t.subjDispInd=c;let p=t.existedSubjectTopic;if(null!=p[c])t.callSubject(p[c]);else{t.existedSubjectTopic=[],t.subjDispInd=0;let d=t.forSubjInd;d+=1,t.forSubjInd=d;let g=t.existedSubject;t.callForSubject(g[d]?g[d]:g[0])}}}else if("CHAPTER"==r.tagType||"ARTICLE"==r.tagType){t.curChapterTag=r;let a=t.existedChapterArticle,o=t.articleDispInd,s="";if(a&&a.length>0?(s=a,o+=1,t.articleDispInd=o):(s=t.tagData.ARTICLE.filter(c=>c.parentId===r.tagId),t.existedChapterArticle=s,t.articleDispInd=o=0),s[o])t.callChapter(s[t.articleDispInd],!1,0==t.articleDispInd,t.articleDispInd);else{t.articleDispInd=0,t.existedChapterArticle=[];let c=t.chaptDispInd;if(c+=1,t.chaptDispInd=c,null!=t.existedTopicChapter[c])t.callTopic(t.existedTopicChapter[c]);
1else{t.existedTopicChapter=[],t.chaptDispInd=0;let d=t.subjDispInd;d+=1,t.subjDispInd=d;let g=t.existedSubjectTopic;if(null!=g[d])t.callSubject(g[d]);else{t.existedSubjectTopic=[],t.subjDispInd=0;let m=t.forSubjInd;m+=1,t.forSubjInd=m;let h=t.existedSubject;t.callForSubject(h[m]?h[m]:h[0])}}}}})()}callForSubject(n,r){let t=this._gptService.handleInterConnectedExplorationPromptTag(n,"SUBJECT",this.promptData),a=this.interConnecrExplrData.length;this.interConnecrExplrData[a]=t[0],this.interConnecrExplrData[a].elaboratedData="",this.interConnecrExplrData[a].skip=!1,this.interConnecrExplrData[a].takeId=a,this.interConnecrExplrData[a].elaborateTextLoaded=!(!r||1!=r),this.getCurrentChngId=a}callSubject(n,r){let t=this._gptService.handleInterConnectedExplorationPromptTag(n,"TOPIC",this.promptData),a=this.interConnecrExplrData.length;this.interConnecrExplrData[a]=t[0],this.interConnecrExplrData[a].elaboratedData="",this.interConnecrExplrData[a].skip=!1,this.interConnecrExplrData[a].takeId=a,this.interConnecrExplrData[a].elaborateTextLoaded=!(!r||1!=r),this.getCurrentChngId=a}callTopic(n,r){let t=this._gptService.handleInterConnectedExplorationPromptTag(n,"CHAPTER",this.promptData),a=this.interConnecrExplrData.length;this.interConnecrExplrData[a]=t[0],this.interConnecrExplrData[a].elaboratedData="",this.interConnecrExplrData[a].skip=!1,this.interConnecrExplrData[a].takeId=a,this.interConnecrExplrData[a].elaborateTextLoaded=!(!r||1!=r),this.getCurrentChngId=a}callChapter(n,r,t,a){let o=this._gptService.handleInterConnectedExplorationPromptTag(n,"ARTICLE",this.promptData,t,a),s=this.interConnecrExplrData.length;this.interConnecrExplrData[s]=o[0],this.interConnecrExplrData[s].elaboratedData="",this.interConnecrExplrData[s].skip=!1,this.interConnecrExplrData[s].takeId=s,this.interConnecrExplrData[s].elaborateTextLoaded=!(!r||1!=r),this.getCurrentChngId=s}skipMsg(n){n.skip=!0}skipMethod(n,r){if(r.skip=!0,"SUBJECT"==r.tagType){let t=this.forSubjInd;t+=1,this.forSubjInd=t;let a=this.existedSubject;null!=a[t]?this.callForSubject(a[t],!0):(this.forSubjInd=0,this.callForSubject(a[0],!0))}else if("TOPIC"==r.tagType){let t=this.subjDispInd;t+=1,this.subjDispInd=t;let a=this.existedSubjectTopic;if(null!=a[t])this.callSubject(a[t],!0);else{this.existedSubjectTopic=[],this.subjDispInd=0;let o=this.forSubjInd;o+=1,this.forSubjInd=o;let s=this.existedSubject;null!=s[o]?this.callForSubject(s[o],!0):(this.forSubjInd=0,this.callForSubject(s[0],!0))}}else if("CHAPTER"==r.tagType){let t=this.chaptDispInd;t+=1,this.chaptDispInd=t;let a=this.existedTopicChapter;if(a[t])this.callTopic(a[t],!0);else{this.existedTopicChapter=[],this.chaptDispInd=0;let o=this.subjDispInd;o+=1,this.subjDispInd=o;let s=this.existedSubjectTopic;if(null!=s[o])this.callSubject(s[o],!0);else{this.existedSubjectTopic=[],this.subjDispInd=0;let c=this.forSubjInd;c+=1,this.forSubjInd=c;let p=this.existedSubject;null!=p[c]?this.callForSubject(p[c],!0):(this.forSubjInd=0,this.callForSubject(p[0],!0))}}}else if("ARTICLE"==r.tagType){let t=this.articleDispInd;t+=1,this.articleDispInd=t;let a=this.existedChapterArticle;if(a[t])this.callChapter(a[t],!0,!1,this.articleDispInd);else{let o=this.chaptDispInd;o+=1,this.chaptDispInd=o;let s=this.existedTopicChapter;if(s[o])this.callTopic(s[o],!0);else{this.existedTopicChapter=[],this.chaptDispInd=0;let c=this.subjDispInd;c+=1,this.subjDispInd=c;let p=this.existedSubjectTopic;if(null!=p[c])this.callSubject(p[c],!0);else{this.existedSubjectTopic=[],this.subjDispInd=0;let d=this.forSubjInd;d+=1,this.forSubjInd=d;let g=this.existedSubject;null!=g[d]?this.callForSubject(g[d],!0):(this.forSubjInd=0,this.callForSubject(g[0],!0))}}}}}getPrompt(n){n&&this._gptService.comprehensivePerformanceSectionPrompts(n).subscribe({next:r=>{200==r.statusCode&&(this.promptData=r.data,this.gettags(n,this.promptData))},error:r=>{this.apiService.handleApiError(r)}})}gettags(n,r){n&&this._gptService.interconnectedExplorationTags(n).subscribe({next:t=>{if(200==t.statusCode&&null!=t.data){this.tagData=t.data,this.existedSubject=this.tagData.SUBJECT,this.forSubjInd=0;let a=this._gptService.handleInterconnect(r,this.tagData,"SUBJECT");this.interConnecrExplrData[this.interConnecrExplrData.length]=a[0],this.interConnecrExplrData[0].elaboratedData="",this.interConnecrExplrData[0].skip=!1,this.interConnecrExplrData[0].elaborateTextLoaded=!0,this.interConnecrExplrData[0].takeId=0}else this.errorMsg=t.message},error:t=>{this.apiService.handleApiError(t)}})}callBotApi(n){this.getData.max_tokens=250,this.getData.temperature=1,this.getData.user_preference="InterConnectExplorations",this.getData.source="WEB",this.getData.app_user_id=this.loggedInUser.id,this.getData.requestMsg=n.inputToAI,this.getData.gpt_personalized_learning_id=this.streamId,this.getData.gpt_prompt_id=n.promptId;let r=[];r=this._botService.gpt4message(this.getData.requestMsg),this.getData.messages=[{role:"system",content:"you are helpful assistant. \nYou are addressing a student"},{role:"user",content:r}],this._botService.gpt4omini(this.getData).subscribe({next:t=>{let a={};a.text=t.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(),n.elaboratedData=a,this.getData.gptResponse=a.text,this._botService.trackApiCall(this.getData).subscribe({next:o=>{},error:o=>{}})},error:t=>{this.apiService.handleApiError(t)}})}scrollToTheView(n){null!=n&&setTimeout(()=>{this.scrollTo()},100)}scrollTo(){document.querySelector("#scroll").scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}elaborateTextLoadedMethod(n){let r={};r=n,r&&(this.interConnecrExplrData[this.getCurrentChngId].elaborateTextLoaded=!0,this.scrollTo())}static#e=this.\u0275fac=function(r){return new(r||i)(e.\u0275\u0275directiveInject(j.X),e.\u0275\u0275directiveInject(f.O),e.\u0275\u0275directiveInject(I.R),e.\u0275\u0275directiveInject(b.gz),e.\u0275\u0275directiveInject(x.s),e.\u0275\u0275directiveInject(D.k),e.\u0275\u0275directiveInject(E.G),e.\u0275\u0275directiveInject(e.PLATFORM_ID))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["app-interconnected-explorations"]],hostBindings:function(r,t){1&r&&e.\u0275\u0275listener("resize",function(o){return t.onResize(o)},!1,e.\u0275\u0275resolveWindow)},decls:10,vars:4,consts:[[4,"ngIf"],[3,"firstBreadCumPath","breadCrumbPath"],[1,"card","topCardDesign"],[1,"card-body"],[1,"sofiaProBold","m-0"],["id","scroll",1,"displayTransition","mb-5",2,"margin-top","50px"],["class","card","id","card",4,"ngIf","ngIfElse"],["errMsg",""],["id","card",1,"card"],[4,"ngFor","ngForOf"],["id","cardNew","class","artbord",4,"ngIf"],["class","align-items-center d-flex",4,"ngIf"],["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"],[3,"elaboratedData","displayDynaGptLogo","scrollToTheView","elaborateTextLoaded",4,"ngIf"],[3,"elaboratedData","displayDynaGptLogo","noBackgroun
1d","scrollToTheView","elaborateTextLoaded",4,"ngIf"],[3,"elaboratedData","displayDynaGptLogo","scrollToTheView","elaborateTextLoaded"],[3,"elaboratedData","displayDynaGptLogo","noBackground","scrollToTheView","elaborateTextLoaded"],[1,"align-items-center","d-flex"],[1,"secondaryText","sofiaProLight"],[1,"btn","btn-default","elaborateButton","sofiaProBold",3,"click"],[1,"btn","btn-default","skipButton","sofiaProBold",3,"click"],[1,"sofiaProLight",2,"color","#1e3757","font-size","17px"]],template:function(r,t){1&r&&(e.\u0275\u0275template(0,re,1,0,"app-loader",0),e.\u0275\u0275element(1,"app-gpt-bread-cum",1),e.\u0275\u0275elementStart(2,"app-gpt-outer-design")(3,"header",2)(4,"div",3)(5,"p",4),e.\u0275\u0275text(6," Interconnected Explorations "),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(7,ue,4,2,"main",0),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(8,"app-footer")(9,"div",5)),2&r&&(e.\u0275\u0275property("ngIf",t.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("firstBreadCumPath",t.firstBreadCumPath)("breadCrumbPath",t.breadCrumbPath),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngIf",t.interConnecrExplrData))},dependencies:[u.sg,u.O5,v.R,y.c,T,P,M.k],styles:[".html[_ngcontent-%COMP%]{scroll-behavior:smooth}.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;font-size:21px}#card[_ngcontent-%COMP%]{background:#FEFEFE;border:3px solid rgba(232,236,239,.75);border-radius:12px;margin:20px 0}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]{background:rgba(3,121,156,.05);border-radius:12px;padding:2rem;max-height:270px;border:none;overflow-y:auto}@media screen and (width < 767px){#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]{padding:1rem}}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]   .viewReport[_ngcontent-%COMP%]{color:#ada0dc;text-align:center;font-size:18px}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]   .viewReport[_ngcontent-%COMP%]:hover{background-color:#ada0dc;border:1px solid #ADA0DC;color:#fff}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]   .attemptedOn[_ngcontent-%COMP%]{color:#94979b}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]   .assessmentName[_ngcontent-%COMP%]{color:#1e3757;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:18px}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]:hover{overflow-y:scroll}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%] > .jumbotron-content[_ngcontent-%COMP%], #card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]:hover, #card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]:focus{visibility:visible}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{visibility:hidden}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]:active::-webkit-scrollbar-thumb, #card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]:focus::-webkit-scrollbar-thumb, #card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]:hover::-webkit-scrollbar-thumb{visibility:visible}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]::-webkit-scrollbar-track{box-shadow:inset 0 0 5px transparent}#card[_ngcontent-%COMP%]   .jumbotronClass[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}#card[_ngcontent-%COMP%]   .secondCard[_ngcontent-%COMP%]{background:rgba(3,121,156,.05);border-radius:12px;border:none;text-align:center}#card[_ngcontent-%COMP%]   .secondCard[_ngcontent-%COMP%]   .firstText[_ngcontent-%COMP%]{color:#8e55ea;font-size:18px}#card[_ngcontent-%COMP%]   .secondCard[_ngcontent-%COMP%]   .secondText[_ngcontent-%COMP%]{color:#7c7c7c;font-size:18px}#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}.artbord[_ngcontent-%COMP%]{background:#FEFEFE;border:3px solid rgba(232,236,239,.75);border-radius:12px;margin:20px 0;padding:1rem}.secondaryText[_ngcontent-%COMP%]{color:#7c7c7c;font-size:18px}.elaborateButton[_ngcontent-%COMP%], .skipButton[_ngcontent-%COMP%]{background:#E8ECEF;color:#1e3757;margin:10px 20px;padding:2px 10px;border:#E8ECEF;border-radius:6px;font-size:18px}@media screen and (width < 399px){.elaborateButton[_ngcontent-%COMP%], .skipButton[_ngcontent-%COMP%]{margin:17px 0 0;width:100%;display:block}}"]})}return i})()}];let he=(()=>
1{class i{static#e=this.\u0275fac=function(r){return new(r||i)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:i});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[b.Bz.forChild(me),b.Bz]})}return i})();var be=_(38314),Ce=_(76411);let fe=(()=>{class i{static#e=this.\u0275fac=function(r){return new(r||i)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:i});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[u.ez,he,be.m,Ce.rP]})}return i})()}}]);

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.