1"use strict";(self.webpackChunkgjd=self.webpackChunkgjd||[]).push([[85,4741,6423,9861],{85:(N,w,p)=>{p.r(w),p.d(w,{EditSearchPopupModule:()=>l});var i=p(2881),T=p(969),e=p(1360),O=p(6225),S=p(5174),u=p(1154);function E(a,m){if(1&a){const h=e.RV6();e.j41(0,"spectrum-gjd-abstract-search",8),e.bIt("abstractEmit",function(s){e.eBV(h);const c=e.XpG();return e.Njj(c.abstractEmit.emit(s))}),e.k0s()}if(2&a){const h=e.XpG();e.Y8G("inputValue",h.abstractValue)}}function x(a,m){if(1&a){const h=e.RV6();e.j41(0,"spectrum-gjd-name-search",9),e.bIt("nameEmit",function(s){e.eBV(h);const c=e.XpG();return e.Njj(c.nameEmit.emit(s))}),e.k0s()}if(2&a){const h=e.XpG();e.Y8G("inputValue",h.inputValue)}}function P(a,m){if(1&a){const h=e.RV6();e.j41(0,"spectrum-gjd-topic-search",10),e.bIt("selectedConceptsEvent",function(s){e.eBV(h);const c=e.XpG();return e.Njj(c.selectedConceptsEvent.emit(s))}),e.k0s()}if(2&a){const h=e.XpG();e.Y8G("selectedTopics",h.selectedTopics)}}let M=(()=>{class a{constructor(){this.popupClose=new e.bkB,this.nameEmit=new e.bkB,this.selectedConceptsEvent=new e.bkB,this.abstractEmit=new e.bkB,this.selectedTopics=[]}closeModel(){this.popupClose.emit(),document.body.classList.remove("no-scroll")}static{this.\u0275fac=function(f){return new(f||a)}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["spectrum-edit-search-popup"]],inputs:{selectedTopics:"selectedTopics",abstractValue:"abstractValue",inputValue:"inputValue",popupType:"popupType"},outputs:{popupClose:"popupClose",nameEmit:"nameEmit",selectedConceptsEvent:"selectedConceptsEvent",abstractEmit:"abstractEmit"},standalone:!1,decls:10,vars:4,consts:[[1,"edit-popup"],[1,"popup-wrapper"],[1,"close-icon","cursor-pointer",3,"click"],[1,"icon-wrapper"],[1,"edit-body"],[3,"inputValue","abstractEmit",4,"ngIf"],[3,"inputValue","nameEmit",4,"ngIf"],[3,"selectedTopics","selectedConceptsEvent",4,"ngIf"],[3,"abstractEmit","inputValue"],[3,"nameEmit","inputValue"],[3,"selectedConceptsEvent","selectedTopics"]],template:function(f,s){1&f&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.bIt("click",function(){return s.closeModel()}),e.j41(3,"div",3),e.nrm(4,"span")(5,"span"),e.k0s()(),e.j41(6,"div",4),e.DNE(7,E,1,1,"spectrum-gjd-abstract-search",5)(8,x,1,1,"spectrum-gjd-name-search",6)(9,P,1,1,"spectrum-gjd-topic-search",7),e.k0s()()()),2&f&&(e.Y8G("@dialog",void 0),e.R7$(7),e.Y8G("ngIf","abstract"===s.popupType),e.R7$(),e.Y8G("ngIf","name-search"===s.popupType),e.R7$(),e.Y8G("ngIf","topic-search"===s.popupType))},dependencies:[i.bT,O.r,S.s,u.q],styles:[".edit-popup[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:100;display:flex;height:100vh;width:100%;align-items:flex-end;justify-content:center;padding-top:4rem;background-color:#000000bf}@media (min-width: 768px){.edit-popup[_ngcontent-%COMP%]{align-items:center;padding-top:5rem;padding-bottom:5rem}}@media (min-width: 768px) and (max-height: 720px){.edit-popup[_ngcontent-%COMP%]{padding-top:3rem;padding-bottom:3rem}}.popup-wrapper[_ngcontent-%COMP%]{position:relative;width:100%;overflow:hidden;border-top-left-radius:1rem;border-top-right-radius:1rem;--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity));padding:3rem 1rem 1.5rem}@media (min-width: 768px){.popup-wrapper[_ngcontent-%COMP%]{max-width:56rem;border-radius:.5rem;padding-left:0;padding-right:0;padding-top:2.5rem;padding-bottom:2.5rem}}.edit-body[_ngcontent-%COMP%]{height:100%;width:100%;overflow-y:auto;max-height:calc(100vh - 180px)}@media (min-width: 768px){.edit-body[_ngcontent-%COMP%]{padding-left:3.75rem;padding-right:3.75rem}}.close-icon[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem;height:1.25rem;width:1.25rem}@media (min-width: 768px){.close-icon[_ngcontent-%COMP%]{right:26px;top:1rem;height:1.75rem;width:1.75rem}}.close-icon[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%]{height:100%;width:100%}.close-icon[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%;top:9px} .edit-body textarea{height:400px}@media (max-height: 700px){ .edit-body textarea{height:300px}}"],data:{animation:[(0,T.hZ)("dialog",[(0,T.wk)("in",(0,T.iF)({opacity:1})),(0,T.wk)("out",(0,T.iF)({opacity:0}
1)),(0,T.kY)("void => *",[(0,T.iF)({opacity:0}),(0,T.i0)(200)]),(0,T.kY)("* => void",[(0,T.i0)(200,(0,T.iF)({opacity:"0"}))])])]}})}}return a})();var v=p(4741),_=p(6423),b=p(9861);let l=(()=>{class a{constructor(h){this.componentFactoryResolver=h}resolveComponent(){return this.componentFactoryResolver.resolveComponentFactory(M)}static{this.\u0275fac=function(f){return new(f||a)(e.KVO(e.OM3))}}static{this.\u0275mod=e.$C({type:a})}static{this.\u0275inj=e.G2t({imports:[i.MD,v.GjdAbstractSearchModule,_.GjdNameSearchModule,b.GjdTopicSearchModule]})}}return a})()},969:(N,w,p)=>{p.d(w,{hZ:()=>e,i0:()=>O,iF:()=>E,kY:()=>M,wk:()=>x});var i=function(s){return s[s.State=0]="State",s[s.Transition=1]="Transition",s[s.Sequence=2]="Sequence",s[s.Group=3]="Group",s[s.Animate=4]="Animate",s[s.Keyframes=5]="Keyframes",s[s.Style=6]="Style",s[s.Trigger=7]="Trigger",s[s.Reference=8]="Reference",s[s.AnimateChild=9]="AnimateChild",s[s.AnimateRef=10]="AnimateRef",s[s.Query=11]="Query",s[s.Stagger=12]="Stagger",s}(i||{});function e(s,c){return{type:i.Trigger,name:s,definitions:c,options:{}}}function O(s,c=null){return{type:i.Animate,styles:c,timings:s}}function E(s){return{type:i.Style,styles:s,offset:null}}function x(s,c,C){return{type:i.State,name:s,styles:c,options:C}}function M(s,c,C=null){return{type:i.Transition,expr:s,animation:c,options:C}}},1154:(N,w,p)=>{p.d(w,{q:()=>M});var i=p(1360),T=p(6481),e=p(2881),O=p(8650),S=p(4278),u=p(7337);const E=v=>({Product:"R-LIFE",CTAlabel:"Search topics",TypeofCTA:"Focus on input field",Page:"Read & Cite - Journal Finder",Section:"Search input section",ClickDetail:"Initiating entering input to search on Global Journal Database",CategoryOfBenefit:"Read & Cite",WhichBenefit:"Journal finder","Membership type":v,ProductServicingTheBenefit:"Global Journal Database",InterestLevel:"High Intent"}),x=v=>({"btn-disabled":v});function P(v,_){1&v&&(i.PLo(0,0,1),i.nrm(1,"small"),i.YFu())}let M=(()=>{class v{constructor(b,l){this.packService=b,this.elementRef=l,this.buttonEnable=!1,this.selectedTopics=[],this.selectedConceptsEvent=new i.bkB}ngOnInit(){this.buttonEnable=this.selectedTopics.length>0}selectedTopic(b){this.selectedConcepts=b,this.buttonEnable=this.selectedConcepts?.length>0}onSaveJournal(){this.selectedConceptsEvent.emit(this.selectedConcepts)}get packName(){return this.packService.packname}ngAfterViewInit(){this.setupDropdownClickListener(),this.setupExpandCollapseListener()}setupDropdownClickListener(){const b=this.elementRef.nativeElement;b&&b.addEventListener("click",l=>{const a=l.target;if(a.matches('input[type="text"], .search-input, .dropdown-trigger, .search-widget-input')||a.closest('input[type="text"], .search-input, .dropdown-trigger, .search-widget-input')){const m=this.elementRef.nativeElement.querySelector(".search-widget-section-wrapper");m&&!m.classList.contains("dropdown-open")&&!m.classList.contains("mobile-dropdown-active")&&this.collapseTopicsToDefault()}})}setupExpandCollapseListener(){const b=this.elementRef.nativeElement;b&&b.addEventListener("click",l=>{const a=l.target;(a.classList.contains("more-chips-block")||a.closest(".more-chips-block")||a.textContent?.toLowerCase().includes("show more")||a.textContent?.toLowerCase().includes("more"))&&setTimeout(()=>{this.setExpandedHeight()},10),(a.classList.contains("chip-show-less")||a.classList.contains("show-less-btn")||a.classList.contains("less-btn")||a.textContent?.toLowerCase().includes("show less")||a.textContent?.toLowerCase().includes("less"))&&setTimeout(()=>{this.setCollapsedHeight()},10)})}setExpandedHeight(){this.elementRef.nativeElement.querySelectorAll(".chip-wrapper").forEach(l=>{l.style.maxHeight="100px",l.style.height="auto",l.style.overflow="auto"})}setCollapsedHeight(){this.elementRef.nativeElement.querySelectorAll(".chip-wrapper").forEach(l=>{l.style.maxHeight="40px",l.style.overflow="hidden",l.style.height="40px"})}collapseTopicsToDefault(){this.elementRef.nativeElement.querySelectorAll(".more-chips-view").forEach(a=>{a.classList.remove("more-chips-view")}),this.setCollapsedHeight(),this.elementRef.nativeElement.querySelectorAll('.chip-show-less, .show-less-btn, .less-btn, [class*="show-less"]').forEach(a=>{null!==a.offsetParent&&a.click()})}static{this.\u0275fac=function(l){return new(l||v)(i.rXU(T.xd),i.rXU(i.aKT))}}static{this.\u0275cmp=i.VBU({type:v,selectors:[["spectrum-gjd-topic-search"]],inputs:{buttonEnable:"buttonEnable",enableLoader:"enableLoader",searchBtnClevertap:"searchBtnClevertap",selectedTopics:"selectedTopics"},outputs:{selectedConceptsEvent:"selectedConceptsEvent"},standalone:!1,decls:9,vars:11,consts:()=>{let b,l;return b=" Search and select topics relevant to your research " + "\ufffd*3:1\ufffd\ufffd#1:1\ufffd" + "" + "\ufffd/#1:1\ufffd\ufffd/*3:1\ufffd" + "",l=" Find the best journals for you ",[b,l,[1,"w-full"],[1,"font-gilroyBold","block","mb-5","mt-5","max-w-[800px]","text-colPrimGray","text-sm","leading-5","md:text-sm","md:leading-5","lg:text-base","lg:leading-6","whitespace-nowrap","md:whitespace-normal","md:mt-3","md:mb-4"],[4,"ngIfViewport"],[1,"flex","flex-col","min-h-[240px]"],[1,"gjd-topic-search","flex-1","h-auto"],[3,"topicSelectionCreateProject","showFooterButton","selectedTopics","is
1Focus","inputFocusCtEventProperty"],[1,"btn","btn-primary","w-full","mt-5","relative","z-[1]","font-semibold",3,"click","RAnalytics","ngClass"]]},template:function(l,a){1&l&&(i.j41(0,"div",2)(1,"h2",3),i.PLo(2,0),i.DNE(3,P,2,0,"small",4),i.YFu(),i.k0s(),i.j41(4,"div",5)(5,"div",6)(6,"spectrum-discovery-topic-selection",7),i.bIt("topicSelectionCreateProject",function(h){return a.selectedTopic(h)}),i.k0s()()(),i.j41(7,"button",8),i.bIt("click",function(){return a.onSaveJournal()}),i.pXf(8,1),i.k0s()()),2&l&&(i.R7$(3),i.Y8G("ngIfViewport","md,lg,xl"),i.R7$(3),i.Y8G("showFooterButton",!1)("selectedTopics",a.selectedTopics)("isFocus",!0)("inputFocusCtEventProperty",i.eq3(7,E,a.packName)),i.R7$(),i.Y8G("RAnalytics",a.searchBtnClevertap)("ngClass",i.eq3(9,x,!a.buttonEnable||a.enableLoader)))},dependencies:[e.YU,O.m,S.V,u.Y],styles:['h2[_ngcontent-%COMP%]{margin-top:0}h2[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{margin-left:.25rem;font-family:Gilroy Semibold;--tw-text-opacity: 1;color:rgba(101,101,101,var(--tw-text-opacity));font-size:100%}@media (min-width: 1200px){h2[_ngcontent-%COMP%]{font-size:18px;line-height:26px}} .gjd-topic-search .search-widget-section-wrapper{display:flex;flex-direction:column;justify-content:space-between;min-height:240px!important;position:relative;overflow:hidden} .gjd-topic-search .search-widget-section-wrapper.dropdown-open .search-panel-footer.more-chips-view .chip-lbl-wrapper .chip-wrapper, .gjd-topic-search .search-widget-section-wrapper.search-active .search-panel-footer.more-chips-view .chip-lbl-wrapper .chip-wrapper{max-height:40px!important;height:40px!important;overflow-y:auto!important} .gjd-topic-search .search-widget-section-wrapper.dropdown-open .search-panel-footer.more-chips-view .chip-lbl-wrapper .more-chips-block, .gjd-topic-search .search-widget-section-wrapper.search-active .search-panel-footer.more-chips-view .chip-lbl-wrapper .more-chips-block{display:none!important} .gjd-topic-search .search-widget-section-wrapper.dropdown-open .search-panel-footer.with-chips .search-panel-footer-container .chip-wrapper, .gjd-topic-search .search-widget-section-wrapper.search-active .search-panel-footer.with-chips .search-panel-footer-container .chip-wrapper{max-height:40px!important;height:40px!important;overflow-y:auto!important}@media (max-width: 767px){ .gjd-topic-search .search-widget-section-wrapper.mobile-dropdown-active{overflow:visible}} .gjd-topic-search .search-widget-section-wrapper .search-panel-footer .mobile-chip-show{margin-bottom:0} .gjd-topic-search .search-widget-section-wrapper .search-panel-footer.with-chips:not(.more-chips-view){margin-top:10px} .gjd-topic-search .search-widget-section-wrapper .search-panel-footer.with-chips.more-chips-view{margin-top:auto}@media (min-width: 768px){ .gjd-topic-search .search-widget-section-wrapper .search-panel-footer{padding-top:14px;margin-top:auto}}@media (max-width: 767px){ .gjd-topic-search .search-widget-section-wrapper .search-panel-footer{padding-top:16px;margin-top:auto}} .gjd-topic-search .search-widget-section-wrapper .search-panel-footer.dropdown-active.more-chips-view .chip-wrapper{max-height:40px!important;overflow-y:auto!important} .gjd-topic-search .search-widget-section-wrapper .search-panel-footer.dropdown-active.more-chips-view .more-chips-block{display:none!important}@media (max-width: 767px){ .gjd-topic-search .search-widget-section-wrapper .search-panel-footer.mobile-dropdown-open{position:relative!important;margin-top:0;box-shadow:none!important;padding:0}}@media (max-width: 767px){ .gjd-topic-search .search-widget-section-wrapper .search-panel-footer.mobile-dropdown-open.with-chips{box-shadow:none!important;margin-top:0}}@media (min-width: 768px){ .gjd-topic-search .search-widget-section-wrapper .search-panel-footer.with-chips{margin-left:0;margin-right:0;margin-bottom:0}}@media (max-width: 767px){ .gjd-topic-search .search-widget-section-wrapper .search-panel-footer.with-chips{padding:1.25rem 1rem 1.5rem!important;background:#dbe4ff!important}}@media (min-width: 768px){ .gjd-topic-search .search-widget-section-wrapper .search-panel-footer.with-chips .search-panel-footer-container{padding-left:30px;padding-right:30px}}
1 .gjd-topic-search .search-widget-section-wrapper .search-panel-footer.with-chips .search-panel-footer-container .chip-wrapper{max-height:80px!important;overflow-y:auto!important;scrollbar-width:thin;scrollbar-color:#113dcd transparent;height:auto!important} .gjd-topic-search .search-widget-section-wrapper .search-panel-footer.with-chips .search-panel-footer-container .chip-wrapper::-webkit-scrollbar{width:4px} .gjd-topic-search .search-widget-section-wrapper .search-panel-footer.with-chips .search-panel-footer-container .chip-wrapper::-webkit-scrollbar-track{background:transparent} .gjd-topic-search .search-widget-section-wrapper .search-panel-footer.with-chips .search-panel-footer-container .chip-wrapper::-webkit-scrollbar-thumb{background-color:#113dcd;border-radius:2px} .gjd-topic-search .search-widget-section-wrapper .search-panel-footer.with-chips .search-panel-footer-container .chip-wrapper::-webkit-scrollbar-thumb:hover{background-color:#0d2f8a} .gjd-topic-search .search-widget{max-width:100%!important} .gjd-topic-search .search-widget.search-active~.search-panel-footer.more-chips-view .chip-lbl-wrapper .chip-wrapper, .gjd-topic-search .search-widget.mobile-search-open~.search-panel-footer.more-chips-view .chip-lbl-wrapper .chip-wrapper{max-height:40px!important;height:40px!important;overflow-y:auto!important} .gjd-topic-search .search-widget.search-active~.search-panel-footer.more-chips-view .chip-lbl-wrapper .more-chips-block, .gjd-topic-search .search-widget.mobile-search-open~.search-panel-footer.more-chips-view .chip-lbl-wrapper .more-chips-block{display:none!important} .gjd-topic-search .search-widget.search-active~.search-panel-footer.with-chips .search-panel-footer-container .chip-wrapper, .gjd-topic-search .search-widget.mobile-search-open~.search-panel-footer.with-chips .search-panel-footer-container .chip-wrapper{max-height:40px!important;height:40px!important;overflow-y:auto!important} .gjd-topic-search .search-widget .search-dropdown:not([style*="display: none"])~.search-panel-footer.more-chips-view .chip-lbl-wrapper .chip-wrapper{max-height:40px!important;height:40px!important;overflow-y:auto!important} .gjd-topic-search .search-widget .search-dropdown:not([style*="display: none"])~.search-panel-footer.more-chips-view .chip-lbl-wrapper .more-chips-block{display:none!important} .gjd-topic-search .search-widget .search-dropdown:not([style*="display: none"])~.search-panel-footer.with-chips .search-panel-footer-container .chip-wrapper{max-height:40px!important;height:40px!important;overflow-y:auto!important}@media (max-width: 767px){ .gjd-topic-search .search-widget{overflow:hidden} .gjd-topic-search .search-widget .search-dropdown{height:210px!important;position:relative;top:auto;left:auto} .gjd-topic-search .search-widget.mobile-search-open{position:static!important;height:auto!important;padding:0!important;overflow:visible} .gjd-topic-search .search-widget.mobile-search-open .search-dropdown{height:210px!important;position:relative;top:auto;left:auto} .gjd-topic-search .search-widget.mobile-search-open .close-icon{right:44px!important}}@media (min-width: 768px){ .gjd-topic-search .search-widget .search-dropdown{max-height:156px!important} .gjd-topic-search .search-widget .search-dropdown .result{max-height:144px!important}}']})}}return v})()},4278:(N,w,p)=>{p.d(w,{V:()=>Le});var i=p(9377),T=p(9361),e=p(1360),O=p(9799),S=p(5965),u=p(1413),E=p(6481),x=p(8989);let P=(()=>{class o{constructor(t,n){this.http=t,this.environment=n}getResearchTopics(){return this.http.get(`${this.environment.api.rDiscovery.default}users/feed-preferences`)}getRecommendedTopics(){return this.http.get(`${this.environment.api.rDiscovery.default}users/similar-concepts`)}topicSearch(t){return this.http.get(`${this.environment.api.rDiscovery.default}search/`+t)}topicSearchDefault(t){return this.http.get(`${this.environment.api.rDiscovery.default}search/`+t)}saveTopicSearch(t){return this.http.post(`${this.environment.api.rDiscovery.default}users/feed-preferences/new?article_count=20`,t)}updateTopicSearch(t){return this.http.post(`${this.environment.api.rDiscovery.default}users/feed-preferences`,t)}projectlist(){return this.http.get(`${this.environment.api.rDiscovery.default}user/project`)}static{this.\u0275fac=function(n){return new(n||o)(e.KVO(x.Qq),e.KVO("environment"))}}static{this.\u0275prov=e.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o}
1)();var M=p(1985),v=p(1584),_=p(5558),b=p(6697);let l=(()=>{class o{constructor(t,n){this.http=t,this.environment=n,this.setProjectData=new u.B,this.getProjectData=this.setProjectData.asObservable(),this.apiCallCount=1,this.projectStatusData=[{match:"Ideation",name:"Ideation",desc:"I have not started writing my manuscript",key:"ideation"},{match:"Pre-Submission",name:"Pre-Submission",desc:"I have the first draft of my manuscript ready",key:"pre-submission"}],this.setPreviousRevisionUpdate=new u.B,this.getPreviousRevisionUpdate=this.setPreviousRevisionUpdate.asObservable(),this.setUpdateArticleEvent=new u.B,this.getUpdateArticleEvent=this.setUpdateArticleEvent.asObservable(),this.updateStageProject=new u.B,this.updateStageObservable=this.updateStageProject.asObservable(),this.researcherProjectData=new u.B,this.projectObservable=this.researcherProjectData.asObservable()}getProject(t,n){return this.http.get(`${this.environment.api.rLife.default}research-project/v1/project/${t}`,{params:n})}createProject(t){return this.http.post(`${this.environment.api.rLife.default}research-project/v1/create-project`,t)}updateProject(t){const n=new FormData;return n.append("project_id",t.project_id),n.append("status",t.status),n.append("type",t.type),n.append("title",t.title),this.http.post(`${this.environment.api.rLife.default}research-project/v1/update-project-details`,n)}deleteProject(t){return this.http.delete(`${this.environment.api.rLife.default}research-project/v1/project/${t}`)}restoreProject(t){return this.http.patch(`${this.environment.api.rLife.default}research-project/v1/project/${t}/restore`,{})}updateProjectMeta(t,n){return this.http.post(`${this.environment.api.rLife.default}research-project/v1/project/${t}/meta`,n)}createProjectCollaborator(t){return this.http.post(`${this.environment.api.rLife.default}research-project/v1/project/${t}/collaborators`,{})}getProjectCollaborators(t){return this.http.get(`${this.environment.api.rLife.default}research-project/v1/project/${t}/collaborators`)}deleteProjectCollaborator(t,n){return this.http.delete(`${this.environment.api.rLife.default}research-project/v1/project/${t}/collaborators`,{params:{collaborator_id:n}})}getAllProject(t=null){return this.http.get(`${this.environment.api.rLife.default}research-project/v1/project${t||""}`)}getProjectDataObj(t=15){return new M.c(n=>{this.subscribeProject&&this.subscribeProject.unsubscribe(),this.subscribeProject=(0,v.O)(0,5e3).pipe((0,_.n)(()=>this.getProject(this.projectId)),(0,b.s)(t)).subscribe(r=>{this.storeProjectData=r,r?.request_id&&null===r?.file_name&&(n.next(r),this.researcherProjectData.next(r),n.unsubscribe(),this.subscribeProject.unsubscribe()),r?.request_id&&null!==r?.discovery_project_id&&(n.next(r),this.researcherProjectData.next(r),n.unsubscribe(),this.subscribeProject.unsubscribe()),n.next(r),this.researcherProjectData.next(r)},r=>{n.error(r),this.researcherProjectData.error(r),n.unsubscribe()},()=>{n.error("err"),this.researcherProjectData.error(),n.unsubscribe(),this.subscribeProject.unsubscribe()})})}clearVariable(){this.subscribeProject&&this.subscribeProject.unsubscribe()}getEditageVersion(t){return this.http.get(`${this.environment.api.rLife.default}research-project/v1/get-editage-version/${t}`)}getDiscoveryrecommended(t=this.projectId,n){return this.http.get(`${this.environment.api.rDiscovery.default}project/${t}/feed`,{params:n})}getDiscoveryUserActivity(){return this.http.get(`${this.environment.api.rDiscovery.default}project/${this.projectId}/feed/user-activity`)}getDiscoverySavedData(){return this.http.get(`${this.environment.api.rDiscovery.default}project/${this.projectId}/library?offset=0&limit=150`)}getDiscoveryReferencesData(){return this.http.get(`${this.environment.api.rDiscovery.default}project/${this.projectId}/feed/similar-by-reference`)}bookmark(t){return this.http.post(`${this.environment.api.rDiscovery.default}project/${this.projectId}/${t}/bookmark`,"")}updateProjectDetails(t){return this.http.post(`${this.environment.api.rLife.default}research-project/v1/update-project-details`,t)}deleteBookmark(t){return this.http.delete(`${this.environment.api.rDiscovery.default}project/${this.projectId}/${t}/bookmark`)}static{this.\u0275fac=function(n){return new(n||o)(e.KVO(x.Qq),e.KVO("environment"))}}static{this.\u0275prov=e.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o}
1)();var a=p(2881),m=p(8650),h=p(7337);const f=o=>({"btn-disabled":o});function s(o,d){1&o&&e.nrm(0,"i",11)}function c(o,d){1&o&&(e.qex(0),e.pXf(1,2),e.bVm())}function C(o,d){if(1&o&&e.pXf(0,3),2&o){const t=e.XpG(2);e.uP7(t.footerData.ctaLable),e.nnv(0)}}function I(o,d){1&o&&e.nrm(0,"img",12)}function R(o,d){if(1&o){const t=e.RV6();e.qex(0),e.j41(1,"div",7)(2,"a",8),e.bIt("click",function(r){return e.eBV(t),e.XpG().nextClick.emit(!0),e.Njj(r.stopPropagation())}),e.DNE(3,s,1,0,"i",9)(4,c,2,0,"ng-container",6)(5,C,1,1,"ng-template",null,1,e.C5r)(7,I,1,0,"img",10),e.k0s()(),e.bVm()}if(2&o){const t=e.sdS(6),n=e.XpG();e.R7$(2),e.Y8G("ngClass",e.eq3(6,f,n.footerData.isdisbaled||n.footerData.loader))("RAnalytics",null==n.footerData?null:n.footerData.analytics),e.R7$(),e.Y8G("ngIf",n.footerData.loader),e.R7$(),e.Y8G("ngIf",n.footerData.loader)("ngIfElse",t),e.R7$(3),e.Y8G("ngIfViewport","md,lg,xl")}}function L(o,d){if(1&o&&e.nrm(0,"span",16),2&o){const t=e.XpG(2);e.Y8G("innerHTML",t.footerData.footerText,e.npT)}}function D(o,d){if(1&o&&e.nrm(0,"span",18),2&o){const t=e.XpG(3);e.Y8G("innerHTML",t.footerData.footerText,e.npT)}}function G(o,d){if(1&o&&(e.qex(0),e.DNE(1,D,1,1,"span",17),e.bVm()),2&o){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",!t.footerData.hideInMobile)}}function B(o,d){1&o&&e.nrm(0,"i",11)}function $(o,d){1&o&&(e.qex(0),e.pXf(1,4),e.bVm())}function V(o,d){1&o&&e.pXf(0,5)}function X(o,d){if(1&o){const t=e.RV6();e.j41(0,"div",13),e.DNE(1,L,1,1,"span",14)(2,G,2,1,"ng-container",15),e.j41(3,"a",8),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.nextClick.emit(!0))}),e.DNE(4,B,1,0,"i",9)(5,$,2,0,"ng-container",6)(6,V,1,0,"ng-template",null,1,e.C5r),e.k0s()()}if(2&o){const t=e.sdS(7),n=e.XpG();e.R7$(),e.Y8G("ngIfViewport","md,lg,xl"),e.R7$(),e.Y8G("ngIfViewport","sm"),e.R7$(),e.Y8G("ngClass",e.eq3(7,f,n.footerData.isdisbaled||n.footerData.loader))("RAnalytics",null==n.footerData?null:n.footerData.analytics),e.R7$(),e.Y8G("ngIf",n.footerData.loader),e.R7$(),e.Y8G("ngIf",n.footerData.loader)("ngIfElse",t)}}let Y=(()=>{class o{constructor(){this.nextClick=new e.bkB}static{this.\u0275fac=function(n){return new(n||o)}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["spectrum-action-footer"]],inputs:{footerData:"footerData"},outputs:{nextClick:"nextClick"},standalone:!1,decls:3,vars:2,consts:()=>{let t,n,r,g;return t=" Please wait... ",n=" " + "\ufffd0\ufffd" + " ",r=" Please wait... ",g=" Next ",[["defaultFooter",""],["NextText",""],t,n,r,g,[4,"ngIf","ngIfElse"],[1,"action-footer","discovery-action-footer"],[1,"btn-primary",3,"click","ngClass","RAnalytics"],["class","button-loader",4,"ngIf"],["src","https://cdn.researcher.life/rlife/icons/icon-arrow-white.svg","width","10","height","10","loading","lazy","alt","Back icon",4,"ngIfViewport"],[1,"button-loader"],["src","https://cdn.researcher.life/rlife/icons/icon-arrow-white.svg","width","10","height","10","loading","lazy","alt","Back icon"],[1,"action-footer"],["class","txt",3,"innerHTML",4,"ngIfViewport"],[4,"ngIfViewport"],[1,"txt",3,"innerHTML"],["class","txt text-center mb-2",3,"innerHTML",4,"ngIf"],[1,"txt","text-center","mb-2",3,"innerHTML"]]},template:function(n,r){if(1&n&&e.DNE(0,R,8,8,"ng-container",6)(1,X,8,9,"ng-template",null,0,e.C5r),2&n){const g=e.sdS(2);e.Y8G("ngIf","discovery"===(null==r.footerData?null:r.footerData.footerType))("ngIfElse",g)}},dependencies:[a.YU,a.bT,m.m,h.Y],styles:['button[disabled][_ngcontent-%COMP%]{opacity:.4}.action-footer[_ngcontent-%COMP%]{right:0;bottom:0;z-index:50;display:flex;width:100%;flex-direction:column;padding-left:1rem;padding-right:1rem}@media (min-width: 768px){.action-footer[_ngcontent-%COMP%]{flex-direction:column}}@media (min-width: 768px){.action-footer[_ngcontent-%COMP%]{width:100%;flex-direction:row;align-items:center;justify-content:flex-end;padding-left:1.25rem;padding-right:1.25rem}}.action-footer[_ngcontent-%COMP%] .txt[_ngcontent-%COMP%]{margin-right:.625rem;font-size:.875rem;line-height:1.25rem;line-height:1.375rem;--tw-text-opacity: 1;color:rgba(107,120,128,var(--tw-text-opacity))}.action-footer[_ngcontent-%COMP%] .txt.error[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgba(240,84,84,var(--tw-text-opacity))}.btn-primary[_ngcontent-%COMP%]{height:50px;display:flex;width:100%;align-items:center;justify-content:center;--tw-bg-opacity: 1;background-color:rgba(17,61,205,var(--tw-bg-opacity));padding:0}@media (min-width: 768px){.btn-primary[_ngcontent-%COMP%]{box-shadow:0 11px 18px #0000001f;border-radius:10px;width:223px}}@media (min-width: 992px){.btn-primary[_ngcontent-%COMP%]{width:251px;height:54px}}
1.btn-primary[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-left:12.67px}.btn-primary.btn-disabled[_ngcontent-%COMP%]{box-shadow:none}.button-loader[_ngcontent-%COMP%]{margin-right:.25rem;display:inline-block;height:1rem;width:1rem;border-radius:9999px;border-width:2px;--tw-border-opacity: 1;border-color:rgba(255,255,255,var(--tw-border-opacity));vertical-align:text-bottom;border-right-color:transparent;animation:_ngcontent-%COMP%_spin 1s linear infinite}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.discovery-action-footer[_ngcontent-%COMP%]{padding:0}@media (min-width: 768px){.discovery-action-footer[_ngcontent-%COMP%]{align-items:center;justify-content:center}}.discovery-action-footer[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{height:50px}@media (min-width: 768px){.discovery-action-footer[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{width:223px}}@media (min-width: 992px){.discovery-action-footer[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{width:251px;height:54px}} .popup-wrapper .action-footer{background-color:#fff;border-top:1px solid #d0d9df}@media (min-width: 768px){ .popup-wrapper .action-footer:before{content:"";background:linear-gradient(180deg,#27208821,#fff0);top:-18px;transform:scaleY(-1);position:absolute;width:100%;height:1.125rem;left:0}} .search-panel-footer .action-footer{background-color:transparent;border-top:none}@media (min-width: 768px){ .search-panel-footer .action-footer:before{display:none}}']})}}return o})();const H=["inputSearch"],z=o=>({"mobile-search-open":o}),W=o=>({disabled:o}),U=o=>({"disabled-li":o});function J(o,d){if(1&o){const t=e.RV6();e.j41(0,"img",14),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.closeDropDown())}),e.k0s()}}function K(o,d){1&o&&(e.qex(0),e.DNE(1,J,1,0,"img",13),e.bVm()),2&o&&(e.R7$(),e.Y8G("ngIfViewport","md,lg,xl"))}function Q(o,d){if(1&o){const t=e.RV6();e.j41(0,"div",15)(1,"i",16),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.closeMobileSearch())}),e.nrm(2,"span")(3,"span"),e.k0s()()}}function Z(o,d){1&o&&e.nrm(0,"i",17)}function q(o,d){if(1&o&&(e.j41(0,"div",18),e.EFF(1),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.JRh(t.errMsg)}}function ee(o,d){if(1&o&&(e.j41(0,"p",23),e.pXf(1,2),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.uP7(t.topicSelectLimit),e.nnv(1)}}function te(o,d){if(1&o&&(e.qex(0),e.DNE(1,ee,2,1,"p",22),e.bVm()),2&o){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.topicSelectLimit)}}function ne(o,d){if(1&o&&(e.j41(0,"p",25),e.pXf(1,3),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.uP7(t.topicSelectLimit-(null==t.selectedOptions?null:t.selectedOptions.length)),e.nnv(1)}}function oe(o,d){if(1&o&&e.DNE(0,ne,2,1,"p",24),2&o){const t=e.XpG(2);e.Y8G("ngIf",t.topicSelectLimit)}}function ie(o,d){if(1&o){const t=e.RV6();e.j41(0,"li")(1,"label",26)(2,"input",27),e.bIt("change",function(){const r=e.eBV(t).$implicit,g=e.XpG(2);return e.Njj(g.selectTopic(r))}),e.k0s(),e.j41(3,"span",28),e.EFF(4),e.k0s()()()}if(2&o){const t=d.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.eq3(4,U,(null==n.addedTopics?null:n.addedTopics.length)>n.topicSelectLimit-1&&!t.isSelected)),e.R7$(),e.Y8G("disabled",(null==n.addedTopics?null:n.addedTopics.length)>n.topicSelectLimit-1&&!t.isSelected)("checked",!!t.isSelected),e.R7$(2),e.JRh(t.name)}}function re(o,d){if(1&o&&(e.qex(0),e.j41(1,"div",19),e.DNE(2,te,2,1,"ng-container",20)(3,oe,1,1,"ng-template",null,1,e.C5r),e.j41(5,"ul"),e.DNE(6,ie,5,6,"li",21),e.k0s()(),e.bVm()),2&o){const t=e.sdS(4),n=e.XpG();e.R7$(),e.Y8G("ngClass",n.options?"block":"hidden"),e.R7$(),e.Y8G("ngIf",(null==n.selectedOptions?null:n.selectedOptions.length)===n.topicSelectLimit)("ngIfElse",t),e.R7$(3),e.ZvI("result ",n.topicSelectLimit&&"with-topic-select-text",""),e.R7$(),e.Y8G("ngForOf",n.options)}}let ce=(()=>{class o{constructor(t,n){this.eref=t,this.analyticsService=n,this.variant="",this.isLoading=!1,this.seachTextEvent=new e.bkB,this.submitSelectedTopic=new e.bkB,this.clearSearchBoxEvent=new e.bkB,this.openSearchBoxEvent=new e.bkB,this.isFocus=!1,this.inputPlaceHolder="Topic (Eg: Geological bodies)",this.addedTopics=[],this.mobileSearch=!1,this.selectLoader=!1}ngOnInit(){this.openMobileSearchPopup&&this.openMobileSearchPopup.subscribe(()=>{this.clickMobileEvent()})}ngAfterViewInit(){this.isFocus&&this.inputSearch&&this.inputSearch.nativeElement.focus()}ngOnChanges(){this.addedTopics&&this.options&&this.updateDropDownData(this.options)}updateDropDownData(t){t.forEach(n=>{-1!==this.addedTopics.findIndex(g=>g.name===n.name)&&(n.isSelected=!0)})}clickMobileEvent(){this.mobileSearch=!0,this.openSearchBoxEvent.emit()}closeMobileSearch(){this.options=null,this.mobileSearch=!1,this.inputSearch.nativeElement.value="",this.addedTopics=[],this.searchedText="",this.clearSearchBoxEvent.emit(!0)}searchTopics(t){clearTimeout(this.searchTimeOut),this.searchedText=t.target.value,this.searchTimeOut=setTimeout(()=>{this.selectedOptions&&(this.addedTopics=[...this.selectedOptions]),this.seachTextEvent.emit(t.target.value)},500)}selectTopic(t){if(this.selectLoader=!0,t.isSelected=!0!==t.isSelected,t.isSelected)this.addedTopics.push(t);else{const n=this.addedTopics.findIndex(r=>r.name===t.name);this.addedTopics.splice(n,1)}this.submitSelectedTopic.emit(this.addedTopics),this.selectLoader=!1}submitSelectedTopics(){this.submitSelectedTopic.emit(this.addedTopics),this.options=null,this.inputSearch.nativeElement.value="",this.mobileSearch=!1}onClickOutSide(t){this.eref&&!this.eref.nativeElement.contains(t.target)&&(this.options=null,this.inputSearch&&(this.inputSearch.nativeElement.value=""),this.addedTopics=[],this.searchedText="",this.clearSearchBoxEvent.emit())}closeDropDown(){this.options=null,this.inputSearch&&(this.inputSearch.nativeElement.value=""),this.addedTopics=[],this.searchedText="",this.clearSearchBoxEvent.emit()}onInputFocus(){this.inputFocusCtEventProperty&&this.analyticsService.reportSyncCall("Clicks to avail benefit",this.inputFocusCtEventProperty)}static{this.\u0275fac=function(n){return new(n||o)(e.rXU(e.aKT),e.rXU(S.MM))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["spectrum-search-dropdown"]],viewQuery:function(n,r){if(1&n&&e.GBs(H,5),2&n){let g;e.mGM(g=e.lsd())&&(r.inputSearch=g.first)}},hostBindings:function(n,r){1&n&&e.bIt("click",function(y){return r.onClickOutSide(y),y.stopPropagation()},!1,e.EBC)},inputs:{variant:"variant",options:"options",selectedOptions:"selectedOptions",selectLimitMessage:"selectLimitMessage",doneBtnClavartap:"doneBtnClavartap",
1isLoading:"isLoading",errMsg:"errMsg",topicSelectLimit:"topicSelectLimit",isFocus:"isFocus",inputPlaceHolder:"inputPlaceHolder",openMobileSearchPopup:"openMobileSearchPopup",inputFocusCtEventProperty:"inputFocusCtEventProperty"},outputs:{seachTextEvent:"seachTextEvent",submitSelectedTopic:"submitSelectedTopic",clearSearchBoxEvent:"clearSearchBoxEvent",openSearchBoxEvent:"openSearchBoxEvent"},standalone:!1,features:[e.OA$],decls:11,vars:15,consts:()=>{let t,n;return t=" You have reached the limit of " + "\ufffd0\ufffd" + " topics. Please remove one or more topics to add more ",n=" You can add " + "\ufffd0\ufffd" + " more topics ",[["inputSearch",""],["topicSelectedCount",""],t,n,[1,"search-widget",3,"ngClass"],[1,"search-input",3,"ngClass"],[1,"search-icon"],["src","https://cdn.researcher.life/rlife/icons/search-lt-blue.svg","width","20","height","20","alt",""],["type","search","id","topicSearch","aria-label","Select topics for literature recommender",1,"input",3,"click","input","focus","disabled","placeholder"],[4,"ngIf"],["class","hidden close-icon",4,"ngIf"],["class","button-loader",4,"ngIf"],["class","no-found-topic",4,"ngIf"],["src","https://cdn.researcher.life/discovery/icons/close-blue.svg","width","12","height","12","class","search-desktop-close",3,"click",4,"ngIfViewport"],["src","https://cdn.researcher.life/discovery/icons/close-blue.svg","width","12","height","12",1,"search-desktop-close",3,"click"],[1,"hidden","close-icon"],[1,"icon-wrapper",3,"click"],[1,"button-loader"],[1,"no-found-topic"],[1,"search-dropdown",3,"ngClass"],[4,"ngIf","ngIfElse"],[4,"ngFor","ngForOf"],["class","topic-search-count warning-icon",4,"ngIf"],[1,"topic-search-count","warning-icon"],["class","topic-search-count",4,"ngIf"],[1,"topic-search-count"],[3,"ngClass"],["type","checkbox",3,"change","disabled","checked"],[1,"result-name"]]},template:function(n,r){if(1&n){const g=e.RV6();e.j41(0,"div",4)(1,"div",5)(2,"div",6),e.nrm(3,"img",7),e.k0s(),e.j41(4,"input",8,0),e.bIt("click",function(){return e.eBV(g),e.Njj(r.clickMobileEvent())})("input",function(j){return e.eBV(g),e.Njj(r.searchTopics(j))})("focus",function(){return e.eBV(g),e.Njj(r.onInputFocus())}),e.k0s(),e.DNE(6,K,2,1,"ng-container",9)(7,Q,4,0,"div",10)(8,Z,1,0,"i",11),e.k0s(),e.DNE(9,q,2,1,"div",12)(10,re,7,7,"ng-container",9),e.k0s()}2&n&&(e.HbH(r.variant),e.Y8G("ngClass",e.eq3(11,z,r.mobileSearch)),e.R7$(),e.Y8G("ngClass",e.eq3(13,W,(null==r.selectedOptions?null:r.selectedOptions.length)===r.topicSelectLimit)),e.R7$(3),e.Y8G("disabled",(null==r.selectedOptions?null:r.selectedOptions.length)===r.topicSelectLimit)("placeholder",r.inputPlaceHolder),e.R7$(2),e.Y8G("ngIf",r.searchedText&&!r.isLoading),e.R7$(),e.Y8G("ngIf",!r.isLoading),e.R7$(),e.Y8G("ngIf",r.isLoading),e.R7$(),e.Y8G("ngIf",r.errMsg),e.R7$(),e.Y8G("ngIf",(null==r.options?null:r.options.length)>0))},dependencies:[a.YU,a.Sq,a.bT,m.m],styles:["input[type=search][_ngcontent-%COMP%]::-webkit-search-decoration, input[type=search][_ngcontent-%COMP%]::-webkit-search-cancel-button, input[type=search][_ngcontent-%COMP%]::-webkit-search-results-button, input[type=search][_ngcontent-%COMP%]::-webkit-search-results-decoration{display:none}input[type=search][_ngcontent-%COMP%]::placeholder{color:#6068ba80;opacity:1}input[type=search][_ngcontent-%COMP%]:-ms-input-placeholder{color:#6068ba80}input[type=search][_ngcontent-%COMP%]::-ms-input-placeholder{color:#6068ba80}@media (min-width: 768px){input[type=search][_ngcontent-%COMP%]::placeholder{opacity:1}}.search-dropdown[_ngcontent-%COMP%]{z-index:1;--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}@media (min-width: 768px){.search-dropdown[_ngcontent-%COMP%]{position:relative;top:auto;left:0;z-index:10;margin-left:auto;margin-right:auto;display:flex;height:auto;width:100%;flex-direction:column;overflow:hidden;border-radius:.25rem;border-width:1px;--tw-border-opacity: 1;border-color:rgba(237,238,255,var(--tw-border-opacity));max-height:235px;max-width:467px;box-shadow:0 0 15px #0003}}@media (min-width: 992px){.search-dropdown[_ngcontent-%COMP%]{max-width:623px}}@media (max-width: 767px){.search-dropdown[_ngcontent-%COMP%]{overflow-y:auto;border-radius:.25rem;border-width:1px;background:#f8f9f9;height:calc(100% - 100px);border:0}}.search-dropdown[_ngcontent-%COMP%] .result[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden}.search-dropdown[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.3s;transition-timing-function:linear}.search-dropdown[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] li[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{position:relative;display:flex;height:3rem;cursor:pointer;align-items:center;padding-right:.875rem;padding-left:1.313rem;font-family:Gilroy Semibold;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;
1color:rgba(101,101,101,var(--tw-text-opacity));line-height:17px}@media (max-width: 767px){.search-dropdown[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] li[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{justify-content:space-between}}.search-dropdown[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] li[_ngcontent-%COMP%] label[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{top:14px;right:14px;position:absolute;z-index:10;cursor:pointer}.search-dropdown[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] li[_ngcontent-%COMP%] label.disabled-li[_ngcontent-%COMP%]{opacity:.6;cursor:not-allowed}.search-dropdown[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(odd){background:#f3f3f3b3}.search-dropdown[_ngcontent-%COMP%] .result[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background:#e2e6f5}.search-input[_ngcontent-%COMP%]{height:2.75rem;width:100%;align-items:center;border-width:1px;--tw-border-opacity: 1;border-color:rgba(17,61,205,var(--tw-border-opacity));font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgba(38,38,38,var(--tw-text-opacity));background-color:#fafafd;border-radius:5px}.search-widget[_ngcontent-%COMP%]{max-width:100%}@media (min-width: 768px){.search-widget[_ngcontent-%COMP%]{position:relative;margin-left:auto;margin-right:auto;max-width:500px}}@media (min-width: 992px){.search-widget[_ngcontent-%COMP%]{max-width:662px}}.search-widget[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:space-between;z-index:2;height:40px;box-shadow:0 4px 20px #00000021;border:1px solid #002fff;background-color:#fff;overflow:hidden}@media (min-width: 992px){.search-widget[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{height:49px}}.search-widget[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{height:100%}input[type=search][_ngcontent-%COMP%]{color:#737373;box-shadow:none!important;flex:1 1 0%;border-style:none;background-color:transparent;padding-left:.5rem;font-family:Gilroy Semibold;font-size:.875rem;line-height:1.25rem;line-height:1.5rem;outline:2px solid transparent;outline-offset:2px}input[type=search][_ngcontent-%COMP%]:-webkit-autofill{-webkit-box-shadow:0 0 0 50px white inset;-webkit-text-fill-color:#262626}input[type=search][_ngcontent-%COMP%]:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 50px white inset;-webkit-text-fill-color:#262626}@media (min-width: 1200px){input[type=search][_ngcontent-%COMP%]{padding-right:1.25rem;padding-left:1rem}}input[_ngcontent-%COMP%]:disabled{opacity:.4;cursor:not-allowed}.search-input.disabled[_ngcontent-%COMP%]{border:1px solid #cccccc}input[type=checkbox][_ngcontent-%COMP%]{height:1.25rem;width:1.25rem;overflow:hidden;border-radius:9999px;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-sha
1dow);outline:2px solid transparent;outline-offset:2px;background:url(https://cdn.researcher.life/rlife/icons/plus-circle-blue.svg) no-repeat center center}input[type=checkbox][_ngcontent-%COMP%]:checked{background:url(https://cdn.researcher.life/rlife/icons/check-circle-filled.svg) no-repeat center center}.no-found-topic[_ngcontent-%COMP%]{position:relative;display:flex;--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity));padding:1rem 2.063rem;font-family:lato;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgba(38,38,38,var(--tw-text-opacity))}@media (min-width: 768px){.no-found-topic[_ngcontent-%COMP%]{padding:1.5rem 1.75rem;--tw-shadow: 0 2px 6px 0 rgba(0, 0, 0, .12);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}}@media (max-width: 767px){.search-widget.mobile-search-open[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:100;height:100vh;padding:1.5rem 1rem;background-color:#f8f9f9}.mobile-search-open[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{background:#fff}.mobile-search-open[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%]{display:flex;height:100%;width:2.5rem;align-items:center;justify-content:center;overflow:hidden}.mobile-search-open[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%]{display:block;height:.875rem;width:.875rem}.mobile-search-open[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%;--tw-bg-opacity: 1;
1background-color:rgba(101,101,101,var(--tw-bg-opacity))}.mobile-search-open[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{margin-top:.25rem}}.dropdown-footer[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;z-index:10;display:flex;width:100%;align-items:center;justify-content:space-between;border-top-width:1px;--tw-border-opacity: 1;border-color:rgba(208,217,223,var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity));padding:.875rem .938rem 1.125rem 2.063rem}@media (min-width: 768px){.dropdown-footer[_ngcontent-%COMP%]{border-top-width:2px;padding-top:0;padding-right:0;padding-bottom:0}}@media (min-width: 1200px){.dropdown-footer[_ngcontent-%COMP%]{border-top-width:1px}}.result-txt[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgba(107,120,128,var(--tw-text-opacity))}@media (min-width: 768px){.result-txt[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgba(146,161,170,var(--tw-text-opacity))}}.result-txt-exceeds-ten[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgba(240,84,84,var(--tw-text-opacity))}.btn-primary[_ngcontent-%COMP%]{height:2.75rem;width:9.75rem}@media (min-width: 768px){.btn-primary[_ngcontent-%COMP%]{border-radius:0;border-bottom-right-radius:.25rem;width:8.813rem}}@media (max-width: 767px){.btn-primary[_ngcontent-%COMP%]{min-width:9.75rem}}.button-loader[_ngcontent-%COMP%]{margin-right:.25rem;display:inline-block;height:2rem;width:2rem;border-radius:9999px;vertical-align:text-bottom;border-width:3px;border-color:#00084d;border-right-color:transparent;animation:spin 1s linear infinite}.topic-loader[_ngcontent-%COMP%]{margin-right:.25rem;display:inline-block;height:.75rem;width:.75rem;border-radius:9999px;border-width:1px;vertical-align:text-bottom;border-color:#3d9e34;border-right-color:transparent;animation:spin 1s linear infinite}.search-desktop-close[_ngcontent-%COMP%]{margin-right:1rem;cursor:pointer}.topic-search-count[_ngcontent-%COMP%]{padding:12px 21px;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;
1color:rgba(101,101,101,var(--tw-text-opacity));line-height:17px}.warning-icon[_ngcontent-%COMP%]{background-image:url(https://cdn.researcher.life/rlife/icons/warning-red.svg);background-repeat:no-repeat;background-position:12px center;padding-left:2rem;--tw-text-opacity: 1;color:rgba(240,84,84,var(--tw-text-opacity))}.search-icon[_ngcontent-%COMP%]{padding-left:1rem;opacity:.5}@media (min-width: 992px){.search-icon[_ngcontent-%COMP%]{padding-left:1.25rem}}.search-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:14px;height:14px}@media (min-width: 992px){.search-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:1.25rem;width:1.25rem}}.sfda[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{--tw-shadow: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);border-color:#0150ce;border-radius:10px}.sfda[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:1rem;line-height:1.5rem}@media (min-width: 768px){.sfda[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{height:52px}}"]})}}return o})(),ae=(()=>{class o{constructor(){this.removeChip=new e.bkB}remove(t){this.removeChip.emit(t)}static{this.\u0275fac=function(n){return new(n||o)}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["spectrum-chip-widget"]],inputs:{chipData:"chipData"},outputs:{removeChip:"removeChip"},standalone:!1,decls:7,vars:1,consts:[[1,"chip"],[1,"chip-name"],[1,"close-icon",3,"click"],[1,"icon-wrapper"]],template:function(n,r){1&n&&(e.j41(0,"div",0)(1,"span",1),e.EFF(2),e.k0s(),e.j41(3,"div",2),e.bIt("click",function(){return r.remove(r.chipData)}),e.j41(4,"div",3),e.nrm(5,"span")(6,"span"),e.k0s()()()),2&n&&(e.R7$(2),e.JRh(r.chipData))},styles:[".chip[_ngcontent-%COMP%]{display:flex;align-items:center;--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity));font-size:.8125rem;--tw-text-opacity: 1;color:rgba(38,38,38,var(--tw-text-opacity));margin:5.5px 6.5px;padding:9px 14px;border-radius:5px}@media (max-width: 767px){.chip[_ngcontent-%COMP%]{margin:6px 8px}}.chip[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{max-width:142px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.close-icon[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%]{margin-left:.5rem;height:.75rem;width:10px}.close-icon[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{height:1px;--tw-bg-opacity: 1;background-color:rgba(38,38,38,var(--tw-bg-opacity))}"]})}}return o})();const se=o=>({"btn-disabled":o}),pe=o=>({Product:"R-LIFE",CTAlabel:"Edit topics for your feed",TypeofCTA:"Link",Page:"Read & Cite - Catgeory page",Section:"Inactive hero card section",ClickDetail:"Choosing to edit potential fingerprint basis their Editage jobs",CategoryOfBenefit:"Read & Cite",WhichBenefit:"Literature recommender","Membership type":o,ProductServicingTheBenefit:"Discovery",InterestLevel:"High Intent"}),le=o=>({label:"Clicks to avail benefit",property:o}),de=(o,d,t)=>({"with-chips":o,"mobile-dropdown-open":d,"more-chips-view":t});function he(o,d){1&o&&(e.j41(0,"p",19),e.pXf(1,2),e.k0s())}function _e(o,d){1&o&&(e.j41(0,"p",19),e.pXf(1,3),e.k0s())}function me(o,d){if(1&o){const t=e.RV6();e.j41(0,"spectrum-chip-widget",20),e.bIt("removeChip",function(r){e.eBV(t);const g=e.XpG(2);return e.Njj(g.removeItem(r))}),e.k0s()}2&o&&e.Y8G("chipData",d.$implicit.name)}function ge(o,d){1&o&&e.nrm(0,"i",21)}function ue(o,d){1&o&&(e.qex(0),e.pXf(1,4),e.bVm())}function fe(o,d){1&o&&(e.PLo(0,5),e.nrm(1,"img",22),e.YFu())}function Ce(o,d){if(1&o){const t=e.RV6();e.j41(0,"div",10),e.DNE(1,he,2,0,"p",11)(2,_e,2,0,"p",11),e.j41(3,"div",12),e.DNE(4,me,1,1,"spectrum-chip-widget",13),e.k0s(),e.j41(5,"span",14),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.nextButtonEvent())}),e.DNE(6,ge,1,0,"i",15)(7,ue,2,0,"ng-container",16)(8,fe,2,0,"ng-template",null,0,e.C5r),e.k0s(),e.j41(10,"div",17),e.PLo(11,1),e.j41(12,"span",18),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return r.isEditageUser=!1,e.Njj(r.addMoreTopicEvent.emit())}),e.k0s(),e.YFu(),e.k0s()()}if(2&o){const t=e.sdS(9),n=e.XpG();e.R7$(),e.Y8G("ngIf",!n.isFromArticlePage),e.R7$(),e.Y8G("ngIf",n.isFromArticlePage),e.R7$(2),e.Y8G("ngForOf",n.selectedTopics),e.R7$(),e.Y8G("ngClass",e.eq3(8,se,null==n.getfooterValue?null:n.getfooterValue.loader)),e.R7$(),e.Y8G("ngIf",null==n.getfooterValue?null:n.getfooterValue.loader),e.R7$(),e.Y8G("ngIf",null==n.getfooterValue?null:n.getfooterValue.loader)("ngIfElse",t),e.R7$(5),e.Y8G("RAnalytics",e.eq3(12,le,e.eq3(10,pe,n.packName)))}}function Te(o,d){if(1&o){const t=e.RV6();e.j41(0,"div",30),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);
1return e.Njj(r.seeMoreTopicToggle())}),e.EFF(1," Show Less "),e.nrm(2,"img",31),e.k0s()}}function be(o,d){1&o&&(e.j41(0,"div",39),e.pXf(1,6),e.k0s())}function Se(o,d){if(1&o&&(e.qex(0),e.EFF(1),e.bVm()),2&o){const t=d.$implicit;e.R7$(),e.JRh(t.name)}}function Oe(o,d){if(1&o&&(e.j41(0,"span",43),e.EFF(1),e.k0s()),2&o){const t=e.XpG(5);e.R7$(),e.SpI(" +",t.selectedTopics.length-1,"")}}function we(o,d){if(1&o){const t=e.RV6();e.j41(0,"span",40),e.bIt("click",function(){e.eBV(t);const r=e.XpG(4);return r.seeMoreTopicToggle(),r.openMobileSearchPopup.next(!0),e.Njj(r.showMoreTopicCtEvent.emit())}),e.DNE(1,Se,2,1,"ng-container",41),e.nI1(2,"slice"),e.DNE(3,Oe,2,1,"span",42),e.k0s()}if(2&o){const t=e.XpG(4);e.R7$(),e.Y8G("ngForOf",e.brH(2,2,t.selectedTopics,0,1)),e.R7$(2),e.Y8G("ngIf",t.selectedTopics&&t.selectedTopics.length>1)}}function ve(o,d){if(1&o){const t=e.RV6();e.j41(0,"spectrum-chip-widget",20),e.bIt("removeChip",function(r){e.eBV(t);const g=e.XpG(5);return e.Njj(g.removeItem(r))}),e.k0s()}2&o&&e.Y8G("chipData",d.$implicit.name)}function Ee(o,d){if(1&o&&(e.j41(0,"div",12),e.DNE(1,ve,1,1,"spectrum-chip-widget",13),e.k0s()),2&o){const t=e.XpG(4);e.R7$(),e.Y8G("ngForOf",t.selectedTopics)}}function xe(o,d){if(1&o&&(e.j41(0,"div",34),e.DNE(1,be,2,0,"div",35),e.j41(2,"div",36),e.DNE(3,we,4,6,"span",37),e.k0s(),e.DNE(4,Ee,2,1,"div",38),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.selectedTopics&&t.selectedTopics.length>0),e.R7$(2),e.Y8G("ngIf",!t.isSeeMoreTopic),e.R7$(),e.Y8G("ngIf",t.isSeeMoreTopic)}}function Pe(o,d){1&o&&(e.j41(0,"span",47),e.pXf(1,7),e.k0s())}function Me(o,d){if(1&o){const t=e.RV6();e.j41(0,"spectrum-chip-widget",20),e.bIt("removeChip",function(r){e.eBV(t);const g=e.XpG(4);return e.Njj(g.removeItem(r))}),e.k0s()}2&o&&e.Y8G("chipData",d.$implicit.name)}function Ie(o,d){if(1&o){const t=e.RV6();e.j41(0,"span",50),e.bIt("click",function(){e.eBV(t);const r=e.XpG(5);return r.seeMoreTopicToggle(),e.Njj(r.showMoreTopicCtEvent.emit())}),e.EFF(1),e.k0s()}if(2&o){const t=e.XpG(5);e.R7$(),e.JRh(t.selectedTopics.length-2)}}function ye(o,d){if(1&o&&(e.j41(0,"div",48),e.DNE(1,Ie,2,1,"span",49),e.k0s()),2&o){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.selectedTopics&&t.selectedTopics.length>2&&!t.isSeeMoreTopic)}}function Ne(o,d){if(1&o&&(e.j41(0,"div",44),e.DNE(1,Pe,2,0,"span",45),e.j41(2,"div",12),e.DNE(3,Me,1,1,"spectrum-chip-widget",13),e.nI1(4,"slice"),e.k0s(),e.DNE(5,ye,2,1,"div",46),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.selectedTopics&&t.selectedTopics.length>0),e.R7$(2),e.Y8G("ngForOf",t.isSeeMoreTopic?t.selectedTopics:e.brH(4,3,t.selectedTopics,0,2)),e.R7$(2),e.Y8G("ngIfViewport","md,lg,xl")}}function De(o,d){1&o&&(e.j41(0,"div"),e.DNE(1,xe,5,3,"div",32)(2,Ne,6,7,"div",33),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIfViewport","sm"),e.R7$(),e.Y8G("ngIfViewport","md,lg,xl"))}function Fe(o,d){if(1&o){const t=e.RV6();e.j41(0,"spectrum-action-footer",51),e.bIt("nextClick",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.nextButtonEvent())}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("footerData",t.getfooterValue)}}function Re(o,d){if(1&o){const t=e.RV6();e.j41(0,"div",23)(1,"spectrum-search-dropdown",24),e.bIt("submitSelectedTopic",function(r){e.eBV(t);const g=e.XpG();return e.Njj(g.addSubmitTopics(r))})("seachTextEvent",function(r){e.eBV(t);const g=e.XpG();return e.Njj(g.getSearchTopics(r))})("removeTopicEvent",function(r){e.eBV(t);const g=e.XpG();return e.Njj(g.removeItem(r))})("clearSearchBoxEvent",function(r){e.eBV(t);const g=e.XpG();return e.Njj(g.clearSearchValue(r))})("openSearchBoxEvent",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.openSearchValue())}),e.k0s(),e.j41(2,"div",25),e.DNE(3,Te,3,0,"div",26),e.j41(4,"div",27),e.DNE(5,De,3,2,"div",28)(6,Fe,1,1,"spectrum-action-footer",29),e.k0s()()()}if(2&o){const t=e.XpG();e.R7$(),e.Y8G("options",t.suggestedTopics)("selectedOptions",t.selectedTopics)("doneBtnClavartap",t.doneBtnClavartap)("errMsg",t.errMsg)("isLoading",t.isLoadingSearch)("topicSelectLimit",t.topicSelectLimit)("isFocus",t.isFocus)("openMobileSearchPopup",t.openMobileSearchPopup)("inputPlaceHolder",t.inputPlaceHolder)("inputFocusCtEventProperty",t.inputFocusCtEventProperty),e.R7$(),e.Y8G("ngClass",e.sMw(14,de,(null==t.selectedTopics?null:t.selectedTopics.length)>0,t.isMobileSearchOpen&&t.isMobile,t.isSeeMoreTopic)),e.R7$(),e.Y8G("ngIf",t.isSeeMoreTopic&&(null==t.selectedTopics?null:t.selectedTopics.length)>0),e.R7$(2),e.Y8G("ngIf",!t.isEditageUser),e.R7$(),e.Y8G("ngIf",t.showFooterButton)}}let Le=(()=>{class o{constructor(t,n,r,g,y,j,A){this.analyticsService=t,this.topicService=n,this.document=r,this.userService=g,this.platformId=y,this.researchProjectService=j,this.packService=A,this.openMobileSearchPopup=new u.B,this.inputPlaceHolder="Search topics",this.articeSelectionEvent=new e.bkB,this.isMobile=!1,this.isSeeMoreTopic=!1,this.selectedTopics=[],this.createUserBeforSaveTopic=!1,this.isUpdateApiCall=!0,this.show
1FooterButton=!0,this.createNewProject=!1,this.isFocus=!1,this.changeTopicSelection=new e.bkB,this.failedApiEvent=new e.bkB,this.addMoreTopicEvent=new e.bkB,this.topicSelectionCreateProject=new e.bkB,this.createNewProjectEvent=new e.bkB,this.showMoreTopicCtEvent=new e.bkB,this.isMobileSearchOpen=!1,this.errMsg="",this.remainingTime=5,this.showButtonLoader=!1}get doneBtnClavartap(){return{label:"Onboarding Clicks",property:{OnboardingMode:this.boardingMode,ProgressStatus:"NA",Screen:"Discovery Select Topics",AttributedProduct:"Discovery",CTALabel:"Done",TypeofCTA:"Button"}}}get getfooterValue(){const t=this.selectedTopics?.length?this.selectedTopics.length:0;return{isdisbaled:!(t>0),footerText:t>0?"" + t + " selected (max " + this.topicSelectLimit + ")":"Add atleast 1 topic to continue",loader:this.showButtonLoader,hideInMobile:!0,footerType:"discovery",ctaLable:this.createNewProject?"Create project":"Start reading",analytics:{label:"Onboarding Clicks",property:{OnboardingMode:this.boardingMode,ProgressStatus:"Complete",Screen:this.createNewProject?"Share topics to create project":"Discovery Select Topics",AttributedProduct:this.createNewProject?"Researcher.Life":"Discovery",CTALabel:this.createNewProject?"Create projects with selected topics":"Confirm topics to read papers",TypeofCTA:"Button",Page:this.createNewProject&&"Reading","Click Detail":"Topics: "+(t&&this.getselectedTopicCtValue()),"Product Addressed":"R-Life"}}}}getselectedTopicCtValue(){let t="";return this.selectedTopics.forEach(n=>{t=(t?t+", ":"")+n.name}),t}ngOnInit(){this.selectedTopics&&(this.currentTopicSelection=[...this.selectedTopics]),this.analyticsService.reportSyncCall("Onboarding intent in Discovery",{Page:"R life onboarding topic selection",PageUrl:this.document.documentURI,Section:"Onboarding topic selection",CTSource:"Web",Mode:"Select topic of interest"}),this.detectMobile()}getSearchTopics(t){if(!(t.length>0&&/[a-zA-Z]|[0-9]/.test(t)))return this.suggestedTopics=[],this.errMsg=t.length>0&&!/[a-zA-Z]|[0-9]/.test(t)?"Please enter only English characters":"";this.isLoadingSearch=!0,this.searchTopic(t).subscribe(n=>{200===n.status&&(0!==n.data.length?(this.selectedTopics&&this.updateDropdownData(n),this.errMsg="",this.suggestedTopics=n.data):(this.errMsg="No results found for the keyword y
1ou entered. Check the spelling or enter some other topic, drug, disease or symptom.",this.suggestedTopics=n.data)),this.isLoadingSearch=!1},n=>{this.failedApiEvent.emit(n)})}clearSearchValue(t){this.isMobile?t&&(this.isSeeMoreTopic=!1,this.isMobileSearchOpen=!1):(this.errMsg="",this.isMobileSearchOpen=!1)}openSearchValue(){this.isMobileSearchOpen=!0}searchTopic(t){return this.isUpdateTopics?this.topicService.topicSearch(t):this.topicService.topicSearchDefault(t)}addSubmitTopics(t){this.selectedTopics=[...t],this.changeTopicSelection.emit(this.selectedTopics),this.topicSelectionCreateProject.emit(this.selectedTopics)}removeItem(t){this.selectedTopics.splice(this.selectedTopics.findIndex(n=>n.name===t),1),this.topicSelectionCreateProject.emit(this.selectedTopics)}updateDropdownData(t){t.data.forEach(n=>{-1!==this.selectedTopics.findIndex(g=>g.name===n.name)&&(n.isSelected=!0)}),this.suggestedTopics=t.data}nextButtonEvent(){if(!this.showButtonLoader){if(this.showButtonLoader=!0,this.createNewProject)return void this.createProjectClick();if(!this.isUpdateApiCall)return void this.articeSelectionEvent.emit(this.selectedTopics);this.isUpdateTopics?this.updateTopicsData():this.createUserBeforSaveTopic?this.userService.getDiscoveryDefaultProfile().subscribe(()=>{this.saveTopicData()},t=>{this.failedApiEvent.emit(t)}):this.saveTopicData()}}updateTopicsData(){const t={name:"First Feed",concepts:[],type:"Professional",removed_concepts:[]};this.currentTopicSelection.filter(n=>{-1===this.selectedTopics.findIndex(r=>
1r.id===n.id)&&t.removed_concepts.push(n.id)}),this.selectedTopics.map(n=>{-1===this.currentTopicSelection.findIndex(r=>r.id===n.id)&&t.concepts.push({id:n.id,name:n.name,weight:100})}),this.topicService.updateTopicSearch(t).subscribe(n=>{this.showButtonLoader=!1,this.articeSelectionEvent.emit(n)},n=>{this.failedApiEvent.emit(n),this.showButtonLoader=!1})}saveTopicData(){const t={name:"Third feed",concept:[],type:"Professional"};t.concept=this.selectedTopics.map(n=>({id:n.id,name:n.name})),this.topicService.saveTopicSearch(t).subscribe(n=>{this.analyticsService.reportSyncCall("Onboarding success in Discovery",{Page:"R life onboarding topic selection",PageUrl:this.document.documentURI,Section:"Onboarding topic selection",CTA:"Save",Mode:"Refine your feed"}),this.showButtonLoader=!1,this.articeSelectionEvent.emit(n)},n=>{this.failedApiEvent.emit(n),this.showButtonLoader=!1})}detectMobile(){(0,i.UE)(this.platformId)&&(this.isMobile=window.outerWidth<=767)}seeMoreTopicToggle(){this.isSeeMoreTopic=!this.isSeeMoreTopic}createProjectClick(){const t={type:"concepts",title:"",source:"r-life",status:"ideation",concepts:this.selectedTopics.map(n=>({id:n.id,label:n.name}))};this.researchProjectService.createProject(t).toPromise().then(n=>{this.showButtonLoader=!1,this.createNewProjectEvent.emit(n)}).catch(()=>{this.showButtonLoader=!1})}get packName(){return this.packService.packname}static{this.\u0275fac=function(n){return new(n||o)(e.rXU(S.MM),e.rXU(P),e.rXU(T.q),e.rXU(O.DL),e.rXU(e.Agw),e.rXU(l),e.rXU(E.xd))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["spectrum-discovery-topic-selection"]],inputs:{inputPlaceHolder:"inputPlaceHolder",selectedTopics:"selectedTopics",isUpdateTopics:"isUpdateTopics",boardingMode:"boardingMode",createUserBeforSaveTopic:"createUserBeforSaveTopic",isEditageUser:"isEditageUser",isFromArticlePage:"isFromArticlePage",isUpdateApiCall:"isUpdateApiCall",showFooterButton:"showFooterButton",topicSelectLimit:"topicSelectLimit",createNewProject:"createNewProject",isFocus:"isFocus",inputFocusCtEventProperty:"inputFocusCtEventProperty",showButtonLoader:"showButtonLoader"},outputs:{articeSelectionEvent:"articeSelectionEvent",changeTopicSelection:"changeTopicSelection",failedApiEvent:"failedApiEvent",addMoreTopicEvent:"addMoreTopicEvent",topicSelectionCreateProject:"topicSelectionCreateProject",createNewProjectEvent:"createNewProjectEvent",showMoreTopicCtEvent:"showMoreTopicCtEvent"},standalone:!1,decls:2,vars:2,consts:()=>{let t,n,r,g,y,j,A,k;return t=" Want to make changes to the set of suggested topics? " + "\ufffd#12\ufffd" + "Add/remove topics" + "\ufffd/#12\ufffd" + "",n=" Suggested basis research topics discussed in manuscripts for your Editage jobs ",r=" Suggested basis research topics from the article you found relevant ",g=" Please wait... ",y=" Start reading " + "\ufffd#1\ufffd\ufffd/#1\ufffd" + "",j="Cannot add more than 10 topics",A="Selected topics",k="Selected topics",[["NextText",""],t,n,r,g,y,A,k,["class","search-result editage-result",4,"ngIf"],["class","search-widget-section-wrapper",4,"ngIf"],[1,"search-result","editage-result"],["class","text-center text-sm leading-10 mb-2.5 sm:mb-1.75",4,"ngIf"],[1,"chip-wrapper"],[3,"chipData","removeChip",4,"ngFor","ngForOf"],[1,"btn-primary",3,"click","ngClass"],["class","button-loader",4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"w-56","mx-auto","text-sm","mt-6","leading-5","font-gilroyBold","sm:leading-4","sm:w-full","text-center","text-colBody-l"],[1,"text-blue-prim","cursor-pointer","hover:text-blueberry",3,"click","RAnalytics"],[1,"text-center","text-sm","leading-10","mb-2.5","sm:mb-1.75"],[3,"removeChip","chipData"],[1,"button-loader"],["src","https://cdn.researcher.life/rlife/icons/icon-arrow-white.svg","width","10","height","10","loading","lazy","alt","Back icon",1,"ml-1.5","flex-shrink-0"],[1,"search-widget-section-wrapper"],["selectLimitMessage",j,3,"submitSelectedTopic","seachTextEvent","removeTopicEvent","clearSearchBoxEvent","openSearchBoxEvent","options","selectedOptions","doneBtnClavartap","errMsg","isLoading","topicSelectLimit","isFocus","openMobileSearchPopup","inputPlaceHolder","inputFocusCtEventProperty"],[1,"search-panel-footer",3,"ngClass"],["class","show-less-chips",3,"click",4,"ngIf"],[1,"search-panel-footer-container"],[4,"ngIf"],[3,"footerData","nextClick",4,"ngIf"],[1,"show-less-chips",3,"click"],["width","10","height","5","loading","lazy","src","https://cdn.researcher.life/rlife/icons/arrow-down-blue.svg","alt",""],["class","mobile-chip-show",4,"ngIfViewport"],["class","chip-lbl-wrapper",4,"ngIfViewport"],[1,"mobile-chip-show"],["class","lbl",4,"ngIf"],[1,"chip-link"],["class","selected-chip",3,"click",4,"ngIf"],["class","chip-wrapper",4,"ngIf"],[1,"lbl"],[1,"selected-chip",3,"click"],[4,"ngFor","ngForOf"],["class","more-chip-link",4,"ngIf"],[1,"more-chip-link"],[1,"chip-lbl-wrapper"],["class","chip-wrapper-lbl",4,"ngIf"],["class","more-chips-block",4,"ngIfViewport"],[1,"chip-wrapper-lbl"],[1,"more-chips-block"],[3,"click",4,"ngIf"],[3,"click"],[3,"nextClick","footerData"]]}
1,template:function(n,r){1&n&&e.DNE(0,Ce,13,14,"div",8)(1,Re,7,18,"div",9),2&n&&(e.Y8G("ngIf",r.isEditageUser),e.R7$(),e.Y8G("ngIf",!r.isEditageUser))},dependencies:[a.YU,a.Sq,a.bT,Y,h.Y,ce,ae,m.m,a.P9],styles:["@media (min-width: 768px){.editage-result[_ngcontent-%COMP%]{max-width:561px;margin-left:auto;margin-right:auto;width:100%}}.editage-result[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{height:54px;max-width:251px;margin-top:29px;border-radius:10px;margin-left:auto;margin-right:auto;display:flex;width:100%;cursor:pointer;align-items:center;justify-content:center;padding:0}.chip-wrapper[_ngcontent-%COMP%]{margin:-6px -8px;align-items:center}@media (min-width: 768px){.chip-wrapper[_ngcontent-%COMP%]{max-height:100%}}@media (min-width: 1200px){.chip-wrapper[_ngcontent-%COMP%]{max-height:25rem;overflow:hidden;overflow-y:auto}}.result-txt[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:.75rem;font-family:Gilroy Semibold}.result-txt[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{opacity:.64}.topics-left[_ngcontent-%COMP%]{margin-top:.5rem;margin-bottom:1.5rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;
1color:rgba(101,101,101,var(--tw-text-opacity))}.limit-reach[_ngcontent-%COMP%]{margin-top:.5rem;margin-bottom:1.5rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgba(240,84,84,var(--tw-text-opacity));padding-left:20px;background-image:url(https://cdn.researcher.life/rlife/icons/warning-red.svg);background-repeat:no-repeat;background-position:0 4px}.loader-wrap[_ngcontent-%COMP%]{margin-bottom:.75rem;height:.25rem;overflow:hidden;border-radius:.75rem;background:#ececf4}.loader-text[_ngcontent-%COMP%]{padding-left:2.5rem;padding-right:2.5rem;font-family:Gilroy Semibold;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgba(17,61,205,var(--tw-text-opacity))}@media (min-width: 992px){.loader-text[_ngcontent-%COMP%]{padding-left:0;padding-right:0}}.chip-lbl-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}.chip-lbl-wrapper[_ngcontent-%COMP%] .chip-wrapper[_ngcontent-%COMP%]{flex:1 1 0%}.search-panel-footer[_ngcontent-%COMP%]{position:relative;bottom:0;left:0;padding-top:1.5rem}@media (min-width: 768px){.search-panel-footer[_ngcontent-%COMP%]{padding-top:68px;margin-top:auto}}.search-panel-footer[_ngcontent-%COMP%] .show-less-chips[_ngcontent-%COMP%]{width:112px;border-radius:10px 10px 0 0;border:1px solid rgba(17,61,205,.1);top:-24px;position:absolute;right:0;left:0;margin-left:auto;margin-right:auto;display:flex;height:1.5rem;cursor:pointer;align-items:center;justify-content:center;--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity));font-size:.8125rem;--tw-text-opacity: 1;
1color:rgba(101,101,101,var(--tw-text-opacity))}.search-panel-footer[_ngcontent-%COMP%] .show-less-chips[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-left:9px}@media (min-width: 768px){.search-panel-footer.with-chips[_ngcontent-%COMP%]{padding-top:14px;padding-bottom:14px;background:#dbe4ff;border-top:1px solid rgba(17,61,205,.2);background:#113dcd1a;margin:auto -24px -24px}.search-panel-footer.with-chips.mobile-dropdown-open[_ngcontent-%COMP%]{margin-top:auto}}.search-panel-footer[_ngcontent-%COMP%] .search-panel-footer-container[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;width:100%}@media (min-width: 768px){.search-panel-footer[_ngcontent-%COMP%] .search-panel-footer-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding-left:2rem;padding-right:2rem}}@media (min-width: 992px){.search-panel-footer[_ngcontent-%COMP%] .search-panel-footer-container[_ngcontent-%COMP%]{padding-left:2.5rem;padding-right:2.5rem}}@media (min-width: 1200px){.search-panel-footer[_ngcontent-%COMP%] .search-panel-footer-container[_ngcontent-%COMP%]{padding-left:100px;padding-right:100px}}.search-panel-footer[_ngcontent-%COMP%] .chip-wrapper-lbl[_ngcontent-%COMP%]{margin-right:10px;font-size:.8125rem}.search-panel-footer.more-chips-view[_ngcontent-%COMP%] .chip-lbl-wrapper[_ngcontent-%COMP%]{display:block}.search-panel-footer.more-chips-view[_ngcontent-%COMP%] .chip-lbl-wrapper[_ngcontent-%COMP%] .chip-wrapper-lbl[_ngcontent-%COMP%]{margin-bottom:.75rem;display:block}@media (max-width: 767px){.search-panel-footer.mobile-dropdown-open[_ngcontent-%COMP%]{margin-top:0;box-shadow:0 -4px 10px #00000026;position:fixed;bottom:0;left:0;z-index:100;margin-left:0;margin-right:0;width:100%;--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity));padding:.938rem .938rem .938rem 1.25rem}.search-panel-footer.mobile-dropdown-open[_ngcontent-%COMP%] .chip-lbl-wrapper[_ngcontent-%COMP%]{display:block}.search-panel-footer.mobile-dropdown-open.with-chips[_ngcontent-%COMP%]{background:#dbe4ff;margin-top:0}.search-panel-footer.mobile-dropdown-open.with-chips[_ngcontent-%COMP%] .search-panel-footer-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.search-panel-footer.mobile-dropdown-open[_ngcontent-%COMP%] .mobile-chip-show[_ngcontent-%COMP%]{margin-bottom:0}.search-panel-footer.mobile-dropdown-open.more-chips-view[_ngcontent-%COMP%]{padding:1.25rem 1rem 1.5rem}.search-panel-footer.mobile-dropdown-open.more-chips-view[_ngcontent-%COMP%] .search-panel-footer-container[_ngcontent-%COMP%]{display:block}.search-panel-footer.mobile-dropdown-open.more-chips-view[_ngcontent-%COMP%] .search-panel-footer-container[_ngcontent-%COMP%] .mobile-chip-show[_ngcontent-%COMP%]{margin-bottom:1rem}.search-panel-footer.mobile-dropdown-open.more-chips-view[_ngcontent-%COMP%] .search-panel-footer-container[_ngcontent-%COMP%] .mobile-chip-show[_ngcontent-%COMP%] .lbl[_ngcontent-%COMP%]{margin-bottom:.875rem}.search-panel-footer[_ngcontent-%COMP%] .mobile-chip-show[_ngcontent-%COMP%]{margin-bottom:.625rem}}.get-suggestion-msg[_ngcontent-%COMP%]{opacity:.8;margin-top:.75rem;max-width:100%;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;
1color:rgba(101,101,101,var(--tw-text-opacity))}@media (min-width: 768px){.get-suggestion-msg[_ngcontent-%COMP%]{position:relative;margin-left:auto;margin-right:auto;margin-bottom:auto;width:500px}}@media (min-width: 992px){.get-suggestion-msg[_ngcontent-%COMP%]{width:662px}}.mobile-chip-show[_ngcontent-%COMP%] .lbl[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgba(38,38,38,var(--tw-text-opacity))}.mobile-chip-show[_ngcontent-%COMP%] .chip-link[_ngcontent-%COMP%]{font-family:Gilroy Semibold;font-size:.875rem;line-height:1.25rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgba(17,61,205,var(--tw-text-opacity));text-decoration:underline}.more-chips-block[_ngcontent-%COMP%]{margin-left:10px}.more-chips-block[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:49px;height:36px;border-radius:5px;background-image:url(https://cdn.researcher.life/rlife/icons/plus.svg);background-repeat:no-repeat;background-size:9px;background-position:13px 12px;padding-left:11px;display:flex;cursor:pointer;align-items:center;justify-content:center;border-width:1px;--tw-border-opacity: 1;border-color:rgba(17,61,205,var(--tw-border-opacity));font-family:Gilroy bold;font-size:.8125rem}.search-widget-section-wrapper[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;width:100%}@media (min-width: 768px){.search-widget-section-wrapper[_ngcontent-%COMP%]{min-height:340px;display:flex;flex-direction:column;justify-content:space-between}}.button-loader[_ngcontent-%COMP%]{margin-right:.25rem;display:inline-block;height:1rem;width:1rem;border-radius:9999px;border-width:2px;--tw-border-opacity: 1;border-color:rgba(255,255,255,var(--tw-border-opacity));vertical-align:text-bottom;border-right-color:transparent;animation:_ngcontent-%COMP%_spin 1s linear infinite}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (min-width: 768px){ .search-panel-footer .chip span{max-width:60px!important} .search-panel-footer.more-chips-view .chip span{max-width:142px!important}}@media (min-width: 992px){ .search-panel-footer .chip span{max-width:142px!important}}@media (max-width: 767px){ .search-panel-footer.with-chips.mobile-dropdown-open .btn-primary{width:173px!important} .search-panel-footer.with-chips.mobile-dropdown-open.more-chips-view .btn-primary{width:100%!important}} .editage-result .chip-wrapper{justify-content:center;margin:-5.5px -6.5px!important} .editage-result .chip{margin:5.5px 6.5px!important;background:#4d65b914!important;font-family:Gilroy Bold;color:#113dcd!important} .editage-result .chip .close-icon .icon-wrapper span{background:#113dcd!important}"]})}}return o})()},4741:(N,w,p)=>{p.r(w),p.d(w,{GjdAbstractSearchModule:()=>u});var i=p(2881),T=p(6225),e=p(4387),O=p(5965),S=p(1360);let u=(()=>{class E{constructor(P){this.componentFactoryResolver=P}resolveComponent(){return this.componentFactoryResolver.resolveComponentFactory(T.r)}static{this.\u0275fac=function(M){return new(M||E)(S.KVO(S.OM3))}}static{this.\u0275mod=S.$C({type:E})}static{this.\u0275inj=S.G2t({imports:[i.MD,e.v,O.zI]})}}return E})()},5174:(N,w,p)=>{p.d(w,{s:()=>v});var i=p(1360),T=p(5965),e=p(6481),O=p(2881),S=p(7337);const u=["gjdNameSearch"],E=_=>({"error-control":_}),x=_=>({"btn-disabled":_});function P(_,b){1&_&&(i.PLo(0,1,1),i.nrm(1,"small"),i.YFu())}function M(_,b){1&_&&(i.j41(0,"span",9),i.EFF(1,"Please enter alphanumeric characters only"),i.k0s())}let v=(()=>{class _{constructor(l,a){this.analyticsService=l,this.packService=a,this.errorSentence=!1,this.inputValue="",this.nameEmit=new i.bkB,this.regex="^[^{^@#$%^*:?></\\\\_|+~;!()`'}\"]*$"}ngAfterViewInit(){this.searchField&&this.searchField.nativeElement.focus()}inputValueChangeEvent(l){this.inputValue=l.target.value.trim(),this.errorSentence=!this.inputValue.match(this.regex)}checkValidation(){this.errorSentence=!(!this.inputValue.length||this.inputValue.match(this.regex))}checkEnableButton(){return!(this.inputValue.length&&this.inputValue.match(this.regex))}onClick(){this.inputValue.length&&this.inputValue.match(this.regex)&&this.nameEmit.emit(this.inputValue)}onInputFocus(){this.analyticsService.reportSyncCall("Clicks to avail benefit",{Product:"R-LIFE",CTAlabel:"Eg.: Nature Genetics or 1546-1718",TypeofCTA:"Focus on input field",Page:"Read & Cite - Journal Finder",Section:"Search input section",ClickDetail:"Initiating entering input to search on Global Journal Database",CategoryOfBenefit:"Read & Cite",WhichBenefit:"Journal finder","Membership type":this.packName,ProductServicingTheBenefit:"Global Journal Database",InterestLevel:"High Intent"})}get packName(){return this.packService.packname}static{this.\u0275fac=function(a){return new(a||_)(i.rXU(T.MM),i.rXU(e.xd))}}static{this.\u0275cmp=i.VBU({type:_,selectors:[["spectrum-gjd-name-search"]],viewQuery:function(a,m){if(1&a&&i.GBs(u,5),2&a){let h;i.mGM(h=i.lsd())&&(m.searchField=h.first)}},inputs:{inputValue:"inputValue",searchBtnClevertap:"searchBtnClevertap"},outputs:{nameEmit:"nameEmit"},standalone:!1,decls:9,vars:10,consts:()=>{let l,a,m;return l="Eg.: Nature Genetics or 1546-1718",a=" Enter journal\u2019s name or ISSN " + "\ufffd*3:1\ufffd\ufffd#1:1\ufffd" + "" + "\ufffd/#1:1\ufffd\ufffd/*3:1\ufffd" + "",m=" Find the best journals for you ",[["gjdNameSearch",""],a,m,[1,"w-full"],[1,"font-gilroyBold","block","mb-5","mt-5","max-w-[800px]","text-colPrimGray","text-sm","leading-5","md:text-sm","md:leading-5","lg:text-base","lg:leading-6","whitespace-nowrap","md:whitespace-normal","md:mt-3","md:mb-4"],[4,"ngIfViewport"],["type","text","placeholder",l,"id","gjdNameSearch",3,"keyup.enter","keyup","focusout","focus","ngClass","value"],["class","error-text count",4,"ngIf"],[1,"btn","btn-primary",3,"click","RAnalytics","ngClass"],[1,"error-text","count"]]},template:function(a,m){if(1&a){const h=i.RV6();i.j41(0,"div",3)(1,"h2",4),i.PLo(2,1),i.DNE(3,P,2,0,"small",5),i.YFu(),i.k0s(),i.j41(4,"input",6,0),i.bIt("keyup.enter",function(){return i.eBV(h),i.Njj(m.onClick())})("keyup",function(s){return i.eBV(h),i.Njj(m.inputValueChangeEvent(s))})("focusout",function(){return i.eBV(h),i.Njj(m.checkValidation())})("focus",function(){return i.eBV(h),i.Njj(m.onInputFocus())}),i.k0s(),i.DNE(6,M,2,0,"span",7),i.j41(7,"button",8),i.bIt("click",function(){return i.eBV(h),i.Njj(m.onClick())}),i.pXf(8,2),i.k0s()()}2&a&&(i.R7$(3),i.Y8G("ngIfViewport","md,lg,xl"),i.R7$(),i.Y8G("ngClass",i.eq3(6,E,m.errorSentence))("value",m.inputValue),i.R7$(2),i.Y8G("ngIf",m.errorSentence),i.R7$(),i.Y8G("RAnalytics",m.searchBtnClevertap)("ngClass",i.eq3(8,x,m.checkEnableButton())))},dependencies:[O.YU,O.bT,S.Y],styles:["h2[_ngcontent-%COMP%]{margin-top:0}h2[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{margin-left:.25rem;font-family:Gilroy Semibold;--tw-text-opacity: 1;
1color:rgba(101,101,101,var(--tw-text-opacity));font-size:100%}@media (min-width: 1200px){h2[_ngcontent-%COMP%]{font-size:18px;line-height:26px}}input[_ngcontent-%COMP%]{margin-bottom:.5rem;width:100%;border-radius:.375rem;padding:.625rem;font-size:.75rem;line-height:1rem;font-weight:700;line-height:.75rem;--tw-text-opacity: 1;color:rgba(38,38,38,var(--tw-text-opacity));border:1px solid rgba(101,101,101,.3)!important;box-shadow:2px 2px 6px #65656533!important}input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#656565;font-weight:400}input[_ngcontent-%COMP%]::-moz-placeholder{color:#656565;font-weight:400}input[_ngcontent-%COMP%]:-ms-input-placeholder{color:#656565;font-weight:400}input[_ngcontent-%COMP%]:-moz-placeholder{color:#656565;font-weight:400}@media (min-width: 768px){input[_ngcontent-%COMP%]{padding-left:.875rem;padding-right:.875rem;font-size:.875rem;line-height:1.25rem}}@media (min-width: 1200px){input[_ngcontent-%COMP%]{margin-bottom:.75rem;padding:1rem 1.125rem}}.count[_ngcontent-%COMP%]{display:block;width:100%;text-align:right;font-size:.625rem;font-weight:700;line-height:1.375rem}@media (min-width: 768px){.count[_ngcontent-%COMP%]{font-size:.6875rem}}@media (min-width: 1200px){.count[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem}}.btn-primary[_ngcontent-%COMP%]{margin-top:.5rem;width:100%;font-weight:600}@media (min-width: 768px){.btn-primary[_ngcontent-%COMP%]{margin-top:.625rem}}.error-text[_ngcontent-%COMP%]{color:#e52020!important}.error-control[_ngcontent-%COMP%]{border:1px solid #e52020!important}"]})}}return _})()},6225:(N,w,p)=>{p.d(w,{r:()=>b});var i=p(1360),T=p(5965),e=p(6481),O=p(2881),S=p(8650),u=p(7337);const E=["journalabstract"],x=l=>({"error-control":l}),P=l=>({"btn-disabled":l});function M(l,a){1&l&&(i.PLo(0,1,1),i.nrm(1,"small"),i.YFu())}function v(l,a){1&l&&(i.j41(0,"span",11),i.pXf(1,3),i.k0s())}function _(l,a){1&l&&(i.j41(0,"span",12),i.EFF(1,"Not enough sentences or words. Please elaborate"),i.k0s())}let b=(()=>{class l{constructor(m,h){this.analyticsService=m,this.packService=h,this.errorSentence=!1,this.abstractEmit=new i.bkB,this.enableLoader=!1,this.regex=/(\w|[$&+,:;=?@#|'<>.^*()%!-])[.?!](\s|$)/gm}checkCountOfSentence(){if(!this.inputValue)return!1;if(this.inputValue.match(this.regex)&&this.inputValue.match(this.regex).length<5&&this.inputValue.split(" ").length>100)this.errorSentence=!0;else{if(null===this.inputValue.match(this.regex))return this.errorSentence=!0;this.errorSentence=!1}}inputValueChangeEvent(m){setTimeout(()=>{this.inputValue=m.target.value,this.errorSentence=!1})}checkEnableButton(){return!this.inputValue||!(this.inputValue.match(this.regex)&&this.inputValue.match(this.regex).length>=5&&this.inputValue.split(" ").length>100)}submitData(){this.abstractEmit.emit({abstract:this.inputValue,type:"abstract"}),this.enableLoader=!0}onInputFocus(){this.analyticsService.reportSyncCall("Clicks to avail benefit",{Product:"R-LIFE",CTAlabel:"Paste your abstract here. If you do not have the abstract ready, you can enter a summary of what your research is about with as much detail as possible.",TypeofCTA:"Focus on input field",Page:"Read & Cite - Journal Finder",Section:"Search input section",ClickDetail:"Initiating entering input to search on Global Journal Database",CategoryOfBenefit:"Read & Cite",WhichBenefit:"Journal finder","Membership type":this.packName,ProductServicingTheBenefit:"Global Journal Database",InterestLevel:"High Intent"})}get packName(){return this.packService.packname}static{this.\u0275fac=function(h){return new(h||l)(i.rXU(T.MM),i.rXU(e.xd))}}static{this.\u0275cmp=i.VBU({type:l,selectors:[["spectrum-gjd-abstract-search"]],viewQuery:function(h,f){if(1&h&&i.GBs(E,5),2&h){let s;i.mGM(s=i.lsd())&&(f.journalabstract=s.first)}},inputs:{inputValue:"inputValue",enableLoader:"enableLoader",searchBtnClevertap:"searchBtnClevertap"},outputs:{abstractEmit:"abstractEmit"},standalone:!1,decls:10,vars:11,consts:()=>{let m,h,f,s;return m="Paste your abstract here. If you do not have the abstract ready, you can enter a summary of what your research is about with as much detail as possible.",h=" Enter your abstract below " + "\ufffd*3:1\ufffd\ufffd#1:1\ufffd" + "" + "\ufffd/#1:1\ufffd\ufffd/*3:1\ufffd" + "",f=" Find the best journals for you ",s="Minimum 5 sentences (100+ words)",[["journalabstract",""],h,f,s,[1,"w-full"],[1,"font-gilroyBold","block","mb-5","mt-5","max-w-[800px]","text-colPrimGray","text-sm","leading-5","md:text-sm","md:leading-5","lg:text-base","lg:leading-6","whitespace-nowrap","md:whitespace-normal","md:mt-3","md:mb-4"],[4,"ngIfViewport"],["name","abstract","id","journalabstract","rows","5","rows","6","aria-label","Enter your Abstract","placeholder",m,1,"gjd-abstract-textarea",3,"focus","keyup","focusout","paste","ngClass","value"],["class","count",4,"ngIf"],["class","error-text count",4,"ngIf"],[1,"btn","btn-primary",3,"click","RAnalytics","ngClass"],[1,"count"],[1,"error-text","count"]]},template:function(h,f){if(1&h){const s=i.RV6();i.j41(0,"div",4)(1,"h2",5),i.PLo(2,1),i.DNE(3,M,2,0,"small",6),i.YFu(),i.k0s(),i.j41(4,"textarea",7,0),i.bIt("focus",function(){return i.eBV(s),i.Njj(f.onInputFocus())})("keyup",function(C){return i.eBV(s),i.Njj(f.inputValueChangeEvent(C))})("focusout",function(){return i.eBV(s),i.Njj(f.checkCountOfSentence())})("paste",function(C){return i.eBV(s),i.Njj(f.inputValueChangeEvent(C))}),i.k0s(),i.DNE(6,v,2,0,"span",8)(7,_,2,0,"span",9),i.j41(8,"button",10),i.bIt("click",function(){return i.eBV(s),i.Njj(f.submitData())}),i.pXf(9,2),i.k0s()()}2&h&&(i.R7$(3),i.Y8G("ngIfViewport","md,lg,xl"),i.R7$(),i.Y8G("ngClass",i.eq3(7,x,f.errorSentence))("value",f.inputValue?f.inputValue:""),i.R7$(2),i.Y8G("ngIf",!f.errorSentence),i.R7$(),i.Y8G("ngIf",f.errorSentence),i.R7$(),i.Y8G("RAnalytics",f.searchBtnClevertap)("ngClass",i.eq3(9,P,f.checkEnableButton()||f.enableLoader)))},dependencies:[O.YU,O.bT,S.m,u.Y],styles:["h2[_ngcontent-%COMP%]{margin-top:0}h2[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{margin-left:.25rem;font-family:Gilroy Semibold;--tw-text-opacity: 1;
1color:rgba(101,101,101,var(--tw-text-opacity));font-size:100%}@media (min-width: 1200px){h2[_ngcontent-%COMP%]{font-size:18px;line-height:26px}}textarea[_ngcontent-%COMP%]{width:100%;resize:none;border-radius:.375rem;padding:.625rem;font-size:.6875rem;line-height:1.125rem;--tw-text-opacity: 1;color:rgba(101,101,101,var(--tw-text-opacity));border:1px solid rgba(101,101,101,.3);box-shadow:2px 2px 6px #65656533}@media (min-width: 768px){textarea[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem;line-height:1.375rem}}@media (min-width: 1200px){textarea[_ngcontent-%COMP%]{padding:1.125rem;font-size:.875rem;line-height:1.25rem}}.count[_ngcontent-%COMP%]{display:block;width:100%;text-align:right;font-size:.625rem;font-weight:700;line-height:1.375rem;margin-bottom:6px}@media (min-width: 768px){.count[_ngcontent-%COMP%]{font-size:.6875rem}}@media (min-width: 1200px){.count[_ngcontent-%COMP%]{font-size:.75rem;line-height:1rem}}.btn-primary[_ngcontent-%COMP%]{margin-top:.5rem;width:100%;font-weight:600}@media (min-width: 768px){.btn-primary[_ngcontent-%COMP%]{margin-top:.625rem}}.error-text[_ngcontent-%COMP%]{color:#e52020!important}.error-control[_ngcontent-%COMP%]{border:1px solid #e52020!important}.gjd-abstract-textarea[_ngcontent-%COMP%]{height:220px}"]})}}return l})()},6423:(N,w,p)=>{p.r(w),p.d(w,{GjdNameSearchModule:()=>S});var i=p(2881),T=p(5174),e=p(5965),O=p(1360);let S=(()=>{class u{constructor(x){this.componentFactoryResolver=x}resolveComponent(){return this.componentFactoryResolver.resolveComponentFactory(T.s)}static{this.\u0275fac=function(P){return new(P||u)(O.KVO(O.OM3))}}static{this.\u0275mod=O.$C({type:u})}static{this.\u0275inj=O.G2t({imports:[i.MD,e.zI]})}}return u})()},9861:(N,w,p)=>{p.r(w),p.d(w,{GjdTopicSearchModule:()=>v});var i=p(2881),T=p(1154),e=p(4387),O=p(4278),S=p(5965),u=p(1360);let E=(()=>{class _{static{this.\u0275fac=function(a){return new(a||_)}}static{this.\u0275mod=u.$C({type:_})}static{this.\u0275inj=u.G2t({imports:[i.MD,e.v,S.zI]})}}return _})(),x=(()=>{class _{static{this.\u0275fac=function(a){return new(a||_)}}static{this.\u0275mod=u.$C({type:_})}static{this.\u0275inj=u.G2t({imports:[i.MD,S.zI,e.v]})}}return _})(),P=(()=>{class _{static{this.\u0275fac=function(a){return new(a||_)}}static{this.\u0275mod=u.$C({type:_})}static{this.\u0275inj=u.G2t({imports:[i.MD]})}}return _})(),M=(()=>{class _{constructor(l){this.componentFactoryResolver=l}resolveComponent(){return this.componentFactoryResolver.resolveComponentFactory(O.V)}static{this.\u0275fac=function(a){return new(a||_)(u.KVO(u.OM3))}}static{this.\u0275mod=u.$C({type:_})}static{this.\u0275inj=u.G2t({imports:[i.MD,E,S.zI,x,P,e.v]})}}return _})(),v=(()=>{class _{constructor(l){this.componentFactoryResolver=l}resolveComponent(){return this.componentFactoryResolver.resolveComponentFactory(T.q)}static{this.\u0275fac=function(a){return new(a||_)(u.KVO(u.OM3))}}static{this.\u0275mod=u.$C({type:_})}static{this.\u0275inj=u.G2t({imports:[i.MD,e.v,M,S.zI]})}}return _})()}}]);
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.