1"use strict";(self.webpackChunkr_life=self.webpackChunkr_life||[]).push([[871,3252],{871:(A,b,o)=>{o.r(b),o.d(b,{DiscoveryOnboardingModelModule:()=>s});var t=o(2881),C=o(9361),e=o(1360),d=o(969),E=o(5965),h=o(6481),S=o(6794),N=o(2267),D=o(7337),_=o(4408),M=o(5566),B=o(9946),T=o(5194),R=o(1420),O=o(7160),P=o(4443);function I(c,i){if(1&c&&(e.j41(0,"p",12),e.pXf(1,1),e.k0s()),2&c){const n=e.XpG(3);e.R7$(),e.uP7(n.journalSelectLimit),e.nnv(1)}}function y(c,i){if(1&c&&(e.qex(0),e.DNE(1,I,2,1,"p",11),e.bVm()),2&c){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",n.journalSelectLimit)}}function g(c,i){if(1&c&&(e.j41(0,"div",14),e.pXf(1,2),e.k0s()),2&c){const n=e.XpG(3);e.R7$(),e.uP7(n.journalSelectLimit-n.selectedJournal.length),e.nnv(1)}}function w(c,i){if(1&c&&e.DNE(0,g,2,1,"div",13),2&c){const n=e.XpG(2);e.Y8G("ngIf",n.journalSelectLimit)}}function l(c,i){if(1&c){const n=e.RV6();e.j41(0,"spectrum-chip-widget",15),e.bIt("removeChip",function(a){e.eBV(n);const v=e.XpG(2);return e.Njj(v.removeItem(a))}),e.k0s()}2&c&&e.Y8G("chipData",i.$implicit.name)}function m(c,i){if(1&c&&(e.j41(0,"div",7),e.DNE(1,y,2,1,"ng-container",8)(2,w,1,1,"ng-template",null,0,e.C5r),e.j41(4,"div",9),e.DNE(5,l,1,1,"spectrum-chip-widget",10),e.k0s()()),2&c){const n=e.sdS(3),r=e.XpG();e.R7$(),e.Y8G("ngIf",r.selectedJournal.length===r.journalSelectLimit)("ngIfElse",n),e.R7$(4),e.Y8G("ngForOf",r.selectedJournal)}}function p(c,i){if(1&c){const n=e.RV6();e.j41(0,"spectrum-action-footer",16),e.bIt("nextClick",function(){e.eBV(n);const a=e.XpG();return e.Njj(a.nextButtonEvent())}),e.k0s()}if(2&c){const n=e.XpG();e.Y8G("footerData",n.getfooterValue)}}let u=(()=>{class c{constructor(n,r,a,v,x){this.analyticsService=n,this.topicService=r,this.document=a,this.userService=v,this.userFeedPreferenceService=x,this.journalSelectionEvent=new e.bkB,this.selectedJournal=[],this.isUpdateApiCall=!0,this.showFooterButton=!0,this.isFocus=!1,this.changeTopicSelection=new e.bkB,this.failedApiEvent=new e.bkB,this.topicSelectionCreateProject=new e.bkB,this.errMsg="",this.remainingTime=5,this.showButtonLoader=!1}get doneBtnClavartap(){return{label:"Onboarding Clicks",property:{OnboardingMode:this.boardingMode,ProgressStatus:"NA",Screen:"Discovery Select journal",AttributedProduct:"Discovery",CTALabel:"Done",TypeofCTA:"Button"}}}get getfooterValue(){const n=this.selectedJournal?.length?this.selectedJournal.length:0;return{isdisbaled:!(n>0),footerText:n>0?"" + n + " selected (max " + this.journalSelectLimit + ")":"Add atleast 1 journal to continue",loader:this.showButtonLoader,hideInMobile:!0,footerType:"discovery",ctaLable:" Confirm journals to read papers ",analytics:{label:"Onboarding Clicks",property:{OnboardingMode:"Update",ProgressStatus:"Complete",Screen:"Discovery Select Journals",AttributedProduct:"Discovery",Page:"Reading",CTALabel:" Confirm journals to read papers ",TypeofCTA:"Button"}}}}ngOnInit(){this.selectedJournal&&(this.currentTopicSelection=[...this.selectedJournal]),this.analyticsService.reportSyncCall("Onboarding intent in Discovery",{Page:"R life onboarding journal selection",PageUrl:this.document.documentURI,Section:"Onboarding journal selection",CTSource:"Web",Mode:"Select journal of interest"})}getSearchJournal(n){return n.replaceAll(" ","").length>2&&/[a-zA-Z]|[0-9]/.test(n)?(this.isLoadingSearch=!0,void this.searchJournal(n).subscribe(a=>{200===a.status&&(0!==a.data.length?(this.selectedJournal&&this.updateDropdownData(a),this.errMsg="",this.suggestedTopics=a.data):(this.errMsg="No results found for the keyword y
1ou entered. Check the spelling or enter some other journal.",this.suggestedTopics=a.data)),this.isLoadingSearch=!1},a=>{this.failedApiEvent.emit(a)})):(this.suggestedTopics=[],this.errMsg=n.length>0&&!/[a-zA-Z]|[0-9]/.test(n)?"Please enter only English characters":"")}clearSearchValue(){this.errMsg=""}searchJournal(n){return this.userFeedPreferenceService.searchJournal(n)}addSubmitJournal(n){this.selectedJournal=[...n],this.changeTopicSelection.emit(this.selectedJournal)}removeItem(n){this.selectedJournal.splice(this.selectedJournal.findIndex(r=>r.name===n),1),this.topicSelectionCreateProject.emit(this.selectedJournal)}updateDropdownData(n){n.data.forEach(r=>{-1!==this.selectedJournal.findIndex(v=>v.name===r.name)&&(r.isSelected=!0)}),this.suggestedTopics=n.data}nextButtonEvent(){this.showButtonLoader=!0,this.isUpdateApiCall?this.updateJournalData():this.journalSelectionEvent.emit(this.selectedJournal)}updateJournalData(){const n={entity:"journal",data:[]};this.currentTopicSelection.filter(r=>{-1===this.selectedJournal.findIndex(a=>a.id===r.id)&&n.data.push({id:r.id,name:r.name,action:"block"})}),this.selectedJournal.map(r=>{-1===this.currentTopicSelection.findIndex(a=>a.id===r.id)&&n.data.push({id:r.id,name:r.name,action:"add",weight:100})}),this.userFeedPreferenceService.updatePersonaliseFeed(n,this.projectFeedId).subscribe(r=>{this.showButtonLoader=!1,this.journalSelectionEvent.emit(r)},r=>{this.failedApiEvent.emit(r),this.showButtonLoader=!1})}static{this.\u0275fac=function(r){return new(r||c)(e.rXU(E.MM),e.rXU(B.v),e.rXU(C.q),e.rXU(M.DL),e.rXU(T.q))}}static{this.\u0275cmp=e.VBU({type:c,selectors:[["spectrum-journal-selection"]],inputs:{selectedJournal:"selectedJournal",boardingMode:"boardingMode",isUpdateApiCall:"isUpdateApiCall",showFooterButton:"showFooterButton",journalSelectLimit:"journalSelectLimit",isFocus:"isFocus",projectFeedId:"projectFeedId",showButtonLoader:"showButtonLoader"},outputs:{journalSelectionEvent:"journalSelectionEvent",changeTopicSelection:"changeTopicSelection",failedApiEvent:"failedApiEvent",topicSelectionCreateProject:"topicSelectionCreateProject"},standalone:!1,decls:5,vars:10,consts:()=>{let n,r,a;return n="Cannot add more than 10 journals",r=" You have reached the limit of " + "\ufffd0\ufffd" + " journals. Please remove one or more journals to add more ",a=" You can add " + "\ufffd0\ufffd" + " more journals ",[["addTopicMessage",""],r,a,["selectLimitMessage",n,3,"submitSelectedTopic","seachTextEvent","removeTopicEvent","clearSearchBoxEvent","options","selectedOptions","doneBtnClavartap","errMsg","isLoading","topicSelectLimit","isFocus","inputPlaceHolder"],["class","search-result",4,"ngIf"],[1,"journal-selection-footer"],[3,"footerData","nextClick",4,"ngIf"],[1,"search-result"],[4,"ngIf","ngIfElse"],[1,"chip-wrapper"],[3,"chipData","removeChip",4,"ngFor","ngForOf"],["class","limit-reach",4,"ngIf"],[1,"limit-reach"],["class","topics-left",4,"ngIf"],[1,"topics-left"],[3,"removeChip","chipData"],[3,"nextClick","footerData"]]},template:function(r,a){1&r&&(e.j41(0,"div")(1,"spectrum-search-dropdown",3),e.bIt("submitSelectedTopic",function(x){return a.addSubmitJournal(x)})("seachTextEvent",function(x){return a.getSearchJournal(x)})("removeTopicEvent",function(x){return a.removeItem(x)})("clearSearchBoxEvent",function(){return a.clearSearchValue()}),e.k0s(),e.DNE(2,m,6,3,"div",4),e.k0s(),e.j41(3,"div",5),e.DNE(4,p,1,1,"spectrum-action-footer",6),e.k0s()),2&r&&(e.R7$(),e.Y8G("options",a.suggestedTopics)("selectedOptions",a.selectedJournal)("doneBtnClavartap",a.doneBtnClavartap)("errMsg",a.errMsg)("isLoading",a.isLoadingSearch)("topicSelectLimit",a.journalSelectLimit)("isFocus",a.isFocus)("inputPlaceHolder","Eg.: Nature Genetics"),e.R7$(),e.Y8G("ngIf",(null==a.selectedJournal?null:a.selectedJournal.length)>0),e.R7$(2),e.Y8G("ngIf",a.showFooterButton))},dependencies:[t.Sq,t.bT,R.f,O.H,P.G],styles:[".chip-wrapper[_ngcontent-%COMP%]{margin:0}@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}} .journal-selection-footer .action-footer{position:absolute!important;padding:12px 30px}"]})}}return c})();const f=["errorCard"],L=["personalizeFeed"],G=c=>({OnboardingMode:c,ProgressStatus:"NA",Screen:"Discovery Select Topics",AttributedProduct:"Discovery",CTALabel:"Close icon",TypeofCTA:"Link"}),$=c=>({label:"Onboarding Clicks",property:c}),U=c=>({"pp-cont full-height":c}),X=c=>({Product:"R-LIFE",CTAlabel:"Topic (Eg: Geological bodies)",TypeofCTA:"Focus on input field",Page:"Read & Cite - Catgeory page",Section:"Inactive hero card section",ClickDetail:"Initiate selecting their topics for their reading feed",CategoryOfBenefit:"Read & Cite",WhichBenefit:"Literature recommender","Membership type":c,ProductServicingTheBenefit:"Discovery",InterestLevel:"High Intent"});function V(c,i){if(1&c){const n=e.RV6();e.j41(0,"spectrum-journal-selection",15),e.bIt("journalSelectionEvent",function(a){e.eBV(n);const v=e.XpG(4);return e.Njj(v.sumitedArticleEvent(a))})("failedApiEvent",function(){e.eBV(n);const a=e.XpG(4);return e.Njj(a.loadApiFailedComponent("Dicovery individual onboarding journal selection"))}),e.k0s()}if(2&c){const n=e.XpG(4);e.Y8G("selectedJournal",n.selectedJournalData)("boardingMode",n.onboardingMode)("isUpdateApiCall",n.isUpdateApiCall)("projectFeedId",n.projectFeedId)("journalSelectLimit",n.topicSelectLimit)}}function z(c,i){if(1&c){const n=e.RV6();e.j41(0,"spectrum-discovery-topic-selection",16),e.bIt("articeSelectionEvent",function(a){e.eBV(n);const v=e.XpG(4);return e.Njj(v.submitedTopicSelection(a))})("addMoreTopicEvent",function(){e.eBV(n);const a=e.XpG(4);return e.Njj(a.addMoreTopicClick())})("failedApiEvent",function(){e.eBV(n);const a=e.XpG(4);return e.Njj(a.loadApiFailedComponent("Dicovery individual onboarding topic selection"))}),e.k0s()}if(2&c){const n=e.XpG(4);e.Y8G("isEditageUser",n.isEditageUser)("createUserBeforSaveTopic",!0)("selectedTopics",n.selectedTopics)("isUpdateTopics",n.isSingleStep)("boardingMode",n.onboardingMode)("isUpdateApiCall",n.isUpdateApiCall)("topicSelectLimit",n.topicSelectLimit)("inputFocusCtEventProperty",e.eq3(8,X,n.packName))}}function Y(c,i){if(1&c&&(e.qex(0),e.DNE(1,V,1,5,"spectrum-journal-selection",13)(2,z,1,10,"spectrum-discovery-topic-selection",14),e.bVm()),2&c){const n=e.XpG(3);e.R7$(),e.Y8G("ngIf",n.isJournalSelection),e.R7$(),e.Y8G("ngIf",!n.isJournalSelection)}}function H(c,i){1&c&&(e.qex(0),e.j41(1,"div",17),e.nrm(2,"span",18),e.k0s(),e.bVm())}function W(c,i){if(1&c){const n=e.RV6();e.j41(0,"div",9)(1,"div",10)(2,"spectrum-onboarding-heading",11),e.bIt("backClick",function(){e.eBV(n);const a=e.XpG(2);return e.Njj(a.backEvent())}),e.k0s()(),e.nrm(3,"div",null,1),e.DNE(5,Y,3,2,"ng-container",12)(6,H,3,0,"ng-container",12),e.k0s()}if(2&c){const n=e.XpG(2);e.R7$(2),e.Y8G("headerData",n.isJournalSelection?n.journalheaderData:n.topicheaderData),e.R7$(3),e.Y8G("ngIf",!n.errorCardInstance&&!n.isShowSkeleton),e.R7$(),e.Y8G("ngIf",n.isShowSkeleton)}}function J(c,i){if(1&c){const n=e.RV6();e.j41(0,"div",3)(1,"div",4)(2,"div",5),e.bIt("click",function(a){return e.eBV(n),e.XpG().closeModel(),e.Njj(a.stopPropagation())}),e.j41(3,"div",6),e.nrm(4,"span")(5,"span"),e.k0s()(),e.DNE(6,W,7,3,"div",7),e.j41(7,"div",8),e.nrm(8,"div",null,0),e.k0s()()()}if(2&c){const n=e.XpG();e.Y8G("@dialog",void 0),e.R7$(2),e.Y8G("RAnalytics",e.eq3(7,$,e.eq3(5,G,n.onboardingMode))),e.R7$(4),e.Y8G("ngIf",!n.isTopicRefineSection)("ngIfElse",n.topicRefineSection),e.R7$(),e.Y8G("ngClass",e.eq3(9,U,n.isTopicRefineSection))}}let K=(()=>{class c{constructor(n,r,a,v,x,F,j){this.document=n,this.compiler=r,this.injector=a,this.eref=v,this.discoveryFingerprintService=x,this.ranalyticService=F,this.packService=j,this.isShowSkeleton=!0,this.isSingleStep=!1,this.isUpdateOnlyTopic=!1,this.onboardingMode="Update",this.visible=!0,this.isUpdateApiCall=!0,this.showButtonLoader=!1,this.articleSubmitEvent=ne
1w e.bkB,this.topicUpdateEvent=new e.bkB,this.isTopicRefineSection=!0,this.closeModelEvent=new e.bkB,this.isUpdateTopic=!1,this.isJournalSelection=!1}ngOnInit(){this.isTopicRefineSection&&this.loadPersonalizeFeedComponent(),this.topicheaderData={heading:"Add or remove topics you are interested in, for research reading",subHeading:this.topicSelectLimit?"Select up to " + this.topicSelectLimit + " topics":null,showSkip:!1,showBack:!this.isUpdateOnlyTopic,skipData:"/onboarding/topics-to-upskill",isEditageUser:!1,product:"discovery",analytics:{label:"Click to track - R Life",description:"discovery topic selection",property:{Page:"R life Dashboard",PageUrl:this.document.documentURI,Section:"Onboard Discovery",ElementClicked:"Link",ElementLabel:"Skip"}}},this.journalheaderData={heading:"Add or remove journals you are interested in, for research reading",subHeading:this.topicSelectLimit?"Select up to " + this.topicSelectLimit + " journal":null,showSkip:!1,showBack:!0,skipData:"/onboarding/topics-to-upskill",isEditageUser:!1,product:"discovery",analytics:{label:"Click to track - R Life",description:"discovery journal selection",property:{Page:"R life Dashboard",PageUrl:this.document.documentURI,Section:"Onboard Discovery",ElementClicked:"Link",ElementLabel:"Skip"}}},this.checkEditageUser()}ngOnDestroy(){this.personalizeFeed&&this.personalizeFeed.clear(),this.personalizeFeedInstance=null,this.isUpdateTopic&&this.articleSubmitEvent.emit()}checkEditageUser(){this.selectedTopics?this.isShowSkeleton=!1:this.discoveryFingerprintService.getDiscoveryFingerprint().subscribe(n=>{this.preProcessData=n,"potential"===this.preProcessData?.data?.user_type&&(this.isEditageUser=!0,this.topicheaderData.isEditageUser=!0,this.selectedTopics=this.preProcessData.data.concepts.map(r=>({id:r.id,name:r.name,weight:r.weight,isSelected:!0}))),this.isShowSkeleton=!1,this.onboardingEventsPageVersion()},()=>{this.onboardingEventsPageVersion(),this.isShowSkeleton=!1})}onboardingEventsPageVersion(){this.ranalyticService.reportSyncCall("Onboarding screen version viewed\xa0",{"Onboarding Mode":"Individual","Attributed Product":"Discovery","Page version loaded":this.isEditageUser?"Editage - preloaded fingerprint v1":"Normal v1"})}addMoreTopicClick(){this.isEditageUser=!1,this.topicheaderData.isEditageUser=!1}submitedTopicSelection(n){this.isUpdateOnlyTopic?this.articleSubmitEvent.emit(n):this.sumitedArticleEvent(n,"isTopic")}sumitedArticleEvent(n,r=""){if(this.isTopicRefineSection=!0,this.personalizeFeed&&this.personalizeFeed.clear(),this.personalizeFeedInstance=null,this.isUpdateTopic=!0,"isTopic"===r)return this.loadPersonalizeFeedComponent(),void this.topicUpdateEvent.emit(n);this.loadPersonalizeFeedComponent("journal")}closeModel(){this.closeModelEvent.emit(!1),this.visible=!1}loadApiFailedComponent(n){o.e(69).then(o.bind(o,69)).then(({ApiFailedWidgetModule:r})=>{this.compiler.compileModuleAsync(r).then(a=>{const v=a.create(this.injector),x=v.instance.resolveComponent(),{instance:F}=this.errorCard.createComponent(x,null,v.injector);this.errorCardInstance=F,F.section=n,F.clickRefresh.subscribe(()=>{this.errorCard.clear(),this.errorCardInstance=""})})})}loadPersonalizeFeedComponent(n="topic"){o.e(115).then(o.bind(o,115)).then(({DiscoveryPersonalizeFeedModule:r})=>{this.compiler.compileModuleAsync(r).then(a=>{const x=a.create(this.injector).instance.resolveComponent();document.body.classList.add("no-scroll"),this.personalizeFeed&&this.personalizeFeed.clear();const{instance:F}=this.personalizeFeed.createComponent(x);this.personalizeFeedInstance=F,this.personalizeFeedInstance.projectFeedId=this.projectFeedId,this.personalizeFeedInstance.selectedConcepts=this.selectedTopics,this.personalizeFeedInstance.selectedTab=n,this.personalizeFeedInstance.isUpdateTopicOrJournalEvent.subscribe(()=>{this.isUpdateTopic=!0}),this.personalizeFeedInstance.openSelectTopicEvent.subscribe(()=>{this.personalizeOpenTab=this.personalizeFeedInstance.selectedTab,this.personalizeFeed&&this.personalizeFeed.clear(),this.personalizeFeedInstance=null,this.isJournalSelection=!1,this.isTopicRefineSection=!1}),this.personalizeFeedInstance.openSelectJournalEvent.subscribe(j=>{this.selectedJournalData=j.map(k=>({id:k.id,isSelected:!0,name:k.name})),this.personalizeOpenTab=this.personalizeFeedInstance.selectedTab,this.personalizeFeed&&this.personalizeFeed.clear(),this.personalizeFeedInstance=null,this.isJournalSelection=!0,this.isTopicRefineSection=!1}),this.personalizeFeedInstance.savePreferencesEvent.subscribe(()=>{this.closeModel()})})})}backEvent(){this.personalizeFeed&&this.personalizeFeed.clear(),this.personalizeFeedInstance=null,this.isTopicRefineSection=!0,this.loadPersonalizeFeedComponent(this.personalizeOpenTab)}get packName(){return this.packService.packname}static{this.\u0275fac=function(r){return new(r||c)(e.rXU(C.q),e.rXU(e.Ql9),e.rXU(e.zZn),e.rXU(e.aKT),e.rXU(S.I),e.rXU(E.MM),e.rXU(h.xd))}}static{this.\u0275cmp=e.VBU({type:c,selectors:[["spectrum-discovery-onboarding-model"]],viewQuery:function(r,a){
1if(1&r&&(e.GBs(f,5,e.c1b),e.GBs(L,5,e.c1b)),2&r){let v;e.mGM(v=e.lsd())&&(a.errorCard=v.first),e.mGM(v=e.lsd())&&(a.personalizeFeed=v.first)}},inputs:{selectedTopics:"selectedTopics",isSingleStep:"isSingleStep",isUpdateOnlyTopic:"isUpdateOnlyTopic",onboardingMode:"onboardingMode",preProcessData:"preProcessData",visible:"visible",isUpdateApiCall:"isUpdateApiCall",showButtonLoader:"showButtonLoader",topicSelectLimit:"topicSelectLimit",isTopicRefineSection:"isTopicRefineSection",projectFeedId:"projectFeedId"},outputs:{articleSubmitEvent:"articleSubmitEvent",topicUpdateEvent:"topicUpdateEvent",closeModelEvent:"closeModelEvent"},standalone:!1,decls:1,vars:1,consts:[["personalizeFeed",""],["errorCard",""],["class","popup-overlay",4,"ngIf"],[1,"popup-overlay"],[1,"popup-wrapper"],[1,"close-icon","cursor-pointer",3,"click","RAnalytics"],[1,"icon-wrapper"],["class","pp-cont full-height with-footer",4,"ngIf","ngIfElse"],[3,"ngClass"],[1,"pp-cont","full-height","with-footer"],[1,"pp-head"],[3,"backClick","headerData"],[4,"ngIf"],[3,"selectedJournal","boardingMode","isUpdateApiCall","projectFeedId","journalSelectLimit","journalSelectionEvent","failedApiEvent",4,"ngIf"],[3,"isEditageUser","createUserBeforSaveTopic","selectedTopics","isUpdateTopics","boardingMode","isUpdateApiCall","topicSelectLimit","inputFocusCtEventProperty","articeSelectionEvent","addMoreTopicEvent","failedApiEvent",4,"ngIf"],[3,"journalSelectionEvent","failedApiEvent","selectedJournal","boardingMode","isUpdateApiCall","projectFeedId","journalSelectLimit"],[3,"articeSelectionEvent","addMoreTopicEvent","failedApiEvent","isEditageUser","createUserBeforSaveTopic","selectedTopics","isUpdateTopics","boardingMode","isUpdateApiCall","topicSelectLimit","inputFocusCtEventProperty"],[1,"skeleton"],[1,"w-full","h-16","mb-3"]],template:function(r,a){1&r&&e.DNE(0,J,10,11,"div",2),2&r&&e.Y8G("ngIf",a.visible)},dependencies:[t.YU,t.bT,N.V,D.Y,_.P,u],styles:['.popup-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:100;height:100vh;width:100%;--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}@media (min-width: 768px){.popup-overlay[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;background-color:#000000bf}}.popup-wrapper[_ngcontent-%COMP%]{position:relative;height:100%;width:100%;overflow:hidden;--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity));padding-left:1rem;padding-right:1rem;padding-top:3rem;background:#f9fafb!important}@media (min-width: 768px){.popup-wrapper[_ngcontent-%COMP%]{width:90%;height:90%;padding-left:0;padding-right:0;padding-top:2.5rem}}.pp-cont[_ngcontent-%COMP%]{width:100%;overflow-y:auto}@media (min-width: 768px){.pp-cont[_ngcontent-%COMP%]{padding-left:1.5rem;padding-right:1.5rem}}.close-icon[_ngcontent-%COMP%]{width:28px;height:28px;top:8px;position:absolute;right:.25rem}@media (min-width: 768px){.close-icon[_ngcontent-%COMP%]{right:26px;top:16px}}.close-icon[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%]{margin-top:.5rem}.close-icon[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:1.375rem}@media (min-width: 768px){.close-icon[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:1.75rem}}@media (min-width: 768px){ .pp-cont .search-panel-footer{position:absolute!important;bottom:0!important;left:0!important;width:100%!important;margin:0!important}} .pp-cont .back-link{left:1.25rem!important;top:1.25rem!important;margin-top:0!important}@media (min-width: 992px){ .pp-cont .editage-info{width:425px!important;left:0!important;top:40px!important;transform:translate(-24%)!important} .pp-cont .editage-info:before, .pp-cont .editage-info:after{inset:-28px 100% 100% 50%!important;border:solid transparent!important;content:""!important;position:absolute!important;border-right-color:transparent!important;margin-top:0!important} .pp-cont .editage-info:before{border-bottom-color:#2626261a!important;border-width:14px!important;margin-left:-14px!important} .pp-cont .editage-info:after{border-bottom-color:#fff!important;border-width:12px!important;margin-left:-12px!important}} .popup-wrapper .pf-card-top h4{align-items:center!important} .popup-wrapper .pf-card-top h4 img{margin-top:0!important} .popup-wrapper .search-panel-footer-container{padding-bottom:20px!important} .popup-wrapper .search-panel-footer.with-chips .search-panel-footer-container{padding-bottom:0!important} .d-flex{display:flex!important} .align-items-center{align-items:center!important}'],data:{animation:[(0,d.hZ)("dialog",[(0,d.wk)("in",(0,d.iF)({opacity:1})),(0,d.wk)("out",(0,d.iF)({opacity:0}
1)),(0,d.kY)("void => *",[(0,d.iF)({opacity:0}),(0,d.i0)(200)]),(0,d.kY)("* => void",[(0,d.i0)(200,(0,d.iF)({opacity:"0"}))])])]}})}}return c})();var Q=o(7921),Z=o(3443),q=o(3493),ee=o(8410),te=o(1912);let ne=(()=>{class c{static{this.\u0275fac=function(r){return new(r||c)}}static{this.\u0275mod=e.$C({type:c})}static{this.\u0275inj=e.G2t({imports:[t.MD,q.w,ee.K,te.f]})}}return c})(),s=(()=>{class c{constructor(n){this.componentFactoryResolver=n}resolveComponent(){return this.componentFactoryResolver.resolveComponentFactory(K)}static{this.\u0275fac=function(r){return new(r||c)(e.KVO(e.OM3))}}static{this.\u0275mod=e.$C({type:c})}static{this.\u0275inj=e.G2t({imports:[t.MD,Q.TopicSelectionModule,E.zI,Z.K,ne]})}}return c})()},1420:(A,b,o)=>{o.d(b,{f:()=>y});var t=o(1360),C=o(2881),e=o(8650),d=o(7337);const E=g=>({"btn-disabled":g});function h(g,w){1&g&&t.nrm(0,"i",11)}function S(g,w){1&g&&(t.qex(0),t.pXf(1,2),t.bVm())}function N(g,w){if(1&g&&t.pXf(0,3),2&g){const l=t.XpG(2);t.uP7(l.footerData.ctaLable),t.nnv(0)}}function D(g,w){1&g&&t.nrm(0,"img",12)}function _(g,w){if(1&g){const l=t.RV6();t.qex(0),t.j41(1,"div",7)(2,"a",8),t.bIt("click",function(p){return t.eBV(l),t.XpG().nextClick.emit(!0),t.Njj(p.stopPropagation())}),t.DNE(3,h,1,0,"i",9)(4,S,2,0,"ng-container",6)(5,N,1,1,"ng-template",null,1,t.C5r)(7,D,1,0,"img",10),t.k0s()(),t.bVm()}if(2&g){const l=t.sdS(6),m=t.XpG();t.R7$(2),t.Y8G("ngClass",t.eq3(6,E,m.footerData.isdisbaled||m.footerData.loader))("RAnalytics",null==m.footerData?null:m.footerData.analytics),t.R7$(),t.Y8G("ngIf",m.footerData.loader),t.R7$(),t.Y8G("ngIf",m.footerData.loader)("ngIfElse",l),t.R7$(3),t.Y8G("ngIfViewport","md,lg,xl")}}function M(g,w){if(1&g&&t.nrm(0,"span",16),2&g){const l=t.XpG(2);t.Y8G("innerHTML",l.footerData.footerText,t.npT)}}function B(g,w){if(1&g&&t.nrm(0,"span",18),2&g){const l=t.XpG(3);t.Y8G("innerHTML",l.footerData.footerText,t.npT)}}function T(g,w){if(1&g&&(t.qex(0),t.DNE(1,B,1,1,"span",17),t.bVm()),2&g){const l=t.XpG(2);t.R7$(),t.Y8G("ngIf",!l.footerData.hideInMobile)}}function R(g,w){1&g&&t.nrm(0,"i",11)}function O(g,w){1&g&&(t.qex(0),t.pXf(1,4),t.bVm())}function P(g,w){1&g&&t.pXf(0,5)}function I(g,w){if(1&g){const l=t.RV6();t.j41(0,"div",13),t.DNE(1,M,1,1,"span",14)(2,T,2,1,"ng-container",15),t.j41(3,"a",8),t.bIt("click",function(){t.eBV(l);const p=t.XpG();return t.Njj(p.nextClick.emit(!0))}),t.DNE(4,R,1,0,"i",9)(5,O,2,0,"ng-container",6)(6,P,1,0,"ng-template",null,1,t.C5r),t.k0s()()}if(2&g){const l=t.sdS(7),m=t.XpG();t.R7$(),t.Y8G("ngIfViewport","md,lg,xl"),t.R7$(),t.Y8G("ngIfViewport","sm"),t.R7$(),t.Y8G("ngClass",t.eq3(7,E,m.footerData.isdisbaled||m.footerData.loader))("RAnalytics",null==m.footerData?null:m.footerData.analytics),t.R7$(),t.Y8G("ngIf",m.footerData.loader),t.R7$(),t.Y8G("ngIf",m.footerData.loader)("ngIfElse",l)}}let y=(()=>{class g{constructor(){this.nextClick=new t.bkB}static{this.\u0275fac=function(m){return new(m||g)}}static{this.\u0275cmp=t.VBU({type:g,selectors:[["spectrum-action-footer"]],inputs:{footerData:"footerData"},outputs:{nextClick:"nextClick"},standalone:!1,decls:3,vars:2,consts:()=>{let l,m,p,u;return l=" Please wait... ",m=" " + "\ufffd0\ufffd" + " ",p=" Please wait... ",u=" Next ",[["defaultFooter",""],["NextText",""],l,m,p,u,[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(m,p){if(1&m&&t.DNE(0,_,8,8,"ng-container",6)(1,I,8,9,"ng-template",null,0,t.C5r),2&m){const u=t.sdS(2);t.Y8G("ngIf","discovery"===(null==p.footerData?null:p.footerData.footerType))("ngIfElse",u)}},dependencies:[C.YU,C.bT,e.m,d.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 g})()},1912:(A,b,o)=>{o.d(b,{f:()=>e});var t=o(2881),C=o(1360);let e=(()=>{class d{static{this.\u0275fac=function(S){return new(S||d)}}static{this.\u0275mod=C.$C({type:d})}static{this.\u0275inj=C.G2t({imports:[t.MD]})}}return d})()},2267:(A,b,o)=>{o.d(b,{V:()=>ne});var t=o(9377),C=o(9361),e=o(1360),d=o(5566),E=o(5965),h=o(1413),S=o(6481),N=o(9946),D=o(5204),_=o(2881),M=o(1420),B=o(7337),T=o(7160),R=o(4443),O=o(8650);const P=s=>({"btn-disabled":s}),I=s=>({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":s,ProductServicingTheBenefit:"Discovery",InterestLevel:"High Intent"}),y=s=>({label:"Clicks to avail benefit",property:s}),g=(s,c,i)=>({"with-chips":s,"mobile-dropdown-open":c,"more-chips-view":i});function w(s,c){1&s&&(e.j41(0,"p",19),e.pXf(1,2),e.k0s())}function l(s,c){1&s&&(e.j41(0,"p",19),e.pXf(1,3),e.k0s())}function m(s,c){if(1&s){const i=e.RV6();e.j41(0,"spectrum-chip-widget",20),e.bIt("removeChip",function(r){e.eBV(i);const a=e.XpG(2);return e.Njj(a.removeItem(r))}),e.k0s()}2&s&&e.Y8G("chipData",c.$implicit.name)}function p(s,c){1&s&&e.nrm(0,"i",21)}function u(s,c){1&s&&(e.qex(0),e.pXf(1,4),e.bVm())}function f(s,c){1&s&&(e.PLo(0,5),e.nrm(1,"img",22),e.YFu())}function L(s,c){if(1&s){const i=e.RV6();e.j41(0,"div",10),e.DNE(1,w,2,0,"p",11)(2,l,2,0,"p",11),e.j41(3,"div",12),e.DNE(4,m,1,1,"spectrum-chip-widget",13),e.k0s(),e.j41(5,"span",14),e.bIt("click",function(){e.eBV(i);const r=e.XpG();return e.Njj(r.nextButtonEvent())}),e.DNE(6,p,1,0,"i",15)(7,u,2,0,"ng-container",16)(8,f,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(i);const r=e.XpG();return r.isEditageUser=!1,e.Njj(r.addMoreTopicEvent.emit())}),e.k0s(),e.YFu(),e.k0s()()}if(2&s){const i=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,P,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",i),e.R7$(5),e.Y8G("RAnalytics",e.eq3(12,y,e.eq3(10,I,n.packName)))}}function G(s,c){if(1&s){const i=e.RV6();e.j41(0,"div",30),e.bIt("click",function(){e.eBV(i);const r=e.XpG(2);
1return e.Njj(r.seeMoreTopicToggle())}),e.EFF(1," Show Less "),e.nrm(2,"img",31),e.k0s()}}function $(s,c){1&s&&(e.j41(0,"div",39),e.pXf(1,6),e.k0s())}function U(s,c){if(1&s&&(e.qex(0),e.EFF(1),e.bVm()),2&s){const i=c.$implicit;e.R7$(),e.JRh(i.name)}}function X(s,c){if(1&s&&(e.j41(0,"span",43),e.EFF(1),e.k0s()),2&s){const i=e.XpG(5);e.R7$(),e.SpI(" +",i.selectedTopics.length-1,"")}}function V(s,c){if(1&s){const i=e.RV6();e.j41(0,"span",40),e.bIt("click",function(){e.eBV(i);const r=e.XpG(4);return r.seeMoreTopicToggle(),r.openMobileSearchPopup.next(!0),e.Njj(r.showMoreTopicCtEvent.emit())}),e.DNE(1,U,2,1,"ng-container",41),e.nI1(2,"slice"),e.DNE(3,X,2,1,"span",42),e.k0s()}if(2&s){const i=e.XpG(4);e.R7$(),e.Y8G("ngForOf",e.brH(2,2,i.selectedTopics,0,1)),e.R7$(2),e.Y8G("ngIf",i.selectedTopics&&i.selectedTopics.length>1)}}function z(s,c){if(1&s){const i=e.RV6();e.j41(0,"spectrum-chip-widget",20),e.bIt("removeChip",function(r){e.eBV(i);const a=e.XpG(5);return e.Njj(a.removeItem(r))}),e.k0s()}2&s&&e.Y8G("chipData",c.$implicit.name)}function Y(s,c){if(1&s&&(e.j41(0,"div",12),e.DNE(1,z,1,1,"spectrum-chip-widget",13),e.k0s()),2&s){const i=e.XpG(4);e.R7$(),e.Y8G("ngForOf",i.selectedTopics)}}function H(s,c){if(1&s&&(e.j41(0,"div",34),e.DNE(1,$,2,0,"div",35),e.j41(2,"div",36),e.DNE(3,V,4,6,"span",37),e.k0s(),e.DNE(4,Y,2,1,"div",38),e.k0s()),2&s){const i=e.XpG(3);e.R7$(),e.Y8G("ngIf",i.selectedTopics&&i.selectedTopics.length>0),e.R7$(2),e.Y8G("ngIf",!i.isSeeMoreTopic),e.R7$(),e.Y8G("ngIf",i.isSeeMoreTopic)}}function W(s,c){1&s&&(e.j41(0,"span",47),e.pXf(1,7),e.k0s())}function J(s,c){if(1&s){const i=e.RV6();e.j41(0,"spectrum-chip-widget",20),e.bIt("removeChip",function(r){e.eBV(i);const a=e.XpG(4);return e.Njj(a.removeItem(r))}),e.k0s()}2&s&&e.Y8G("chipData",c.$implicit.name)}function K(s,c){if(1&s){const i=e.RV6();e.j41(0,"span",50),e.bIt("click",function(){e.eBV(i);const r=e.XpG(5);return r.seeMoreTopicToggle(),e.Njj(r.showMoreTopicCtEvent.emit())}),e.EFF(1),e.k0s()}if(2&s){const i=e.XpG(5);e.R7$(),e.JRh(i.selectedTopics.length-2)}}function Q(s,c){if(1&s&&(e.j41(0,"div",48),e.DNE(1,K,2,1,"span",49),e.k0s()),2&s){const i=e.XpG(4);e.R7$(),e.Y8G("ngIf",i.selectedTopics&&i.selectedTopics.length>2&&!i.isSeeMoreTopic)}}function Z(s,c){if(1&s&&(e.j41(0,"div",44),e.DNE(1,W,2,0,"span",45),e.j41(2,"div",12),e.DNE(3,J,1,1,"spectrum-chip-widget",13),e.nI1(4,"slice"),e.k0s(),e.DNE(5,Q,2,1,"div",46),e.k0s()),2&s){const i=e.XpG(3);e.R7$(),e.Y8G("ngIf",i.selectedTopics&&i.selectedTopics.length>0),e.R7$(2),e.Y8G("ngForOf",i.isSeeMoreTopic?i.selectedTopics:e.brH(4,3,i.selectedTopics,0,2)),e.R7$(2),e.Y8G("ngIfViewport","md,lg,xl")}}function q(s,c){1&s&&(e.j41(0,"div"),e.DNE(1,H,5,3,"div",32)(2,Z,6,7,"div",33),e.k0s()),2&s&&(e.R7$(),e.Y8G("ngIfViewport","sm"),e.R7$(),e.Y8G("ngIfViewport","md,lg,xl"))}function ee(s,c){if(1&s){const i=e.RV6();e.j41(0,"spectrum-action-footer",51),e.bIt("nextClick",function(){e.eBV(i);const r=e.XpG(2);return e.Njj(r.nextButtonEvent())}),e.k0s()}if(2&s){const i=e.XpG(2);e.Y8G("footerData",i.getfooterValue)}}function te(s,c){if(1&s){const i=e.RV6();e.j41(0,"div",23)(1,"spectrum-search-dropdown",24),e.bIt("submitSelectedTopic",function(r){e.eBV(i);const a=e.XpG();return e.Njj(a.addSubmitTopics(r))})("seachTextEvent",function(r){e.eBV(i);const a=e.XpG();return e.Njj(a.getSearchTopics(r))})("removeTopicEvent",function(r){e.eBV(i);const a=e.XpG();return e.Njj(a.removeItem(r))})("clearSearchBoxEvent",function(r){e.eBV(i);const a=e.XpG();return e.Njj(a.clearSearchValue(r))})("openSearchBoxEvent",function(){e.eBV(i);const r=e.XpG();return e.Njj(r.openSearchValue())}),e.k0s(),e.j41(2,"div",25),e.DNE(3,G,3,0,"div",26),e.j41(4,"div",27),e.DNE(5,q,3,2,"div",28)(6,ee,1,1,"spectrum-action-footer",29),e.k0s()()()}if(2&s){const i=e.XpG();e.R7$(),e.Y8G("options",i.suggestedTopics)("selectedOptions",i.selectedTopics)("doneBtnClavartap",i.doneBtnClavartap)("errMsg",i.errMsg)("isLoading",i.isLoadingSearch)("topicSelectLimit",i.topicSelectLimit)("isFocus",i.isFocus)("openMobileSearchPopup",i.openMobileSearchPopup)("inputPlaceHolder",i.inputPlaceHolder)("inputFocusCtEventProperty",i.inputFocusCtEventProperty),e.R7$(),e.Y8G("ngClass",e.sMw(14,g,(null==i.selectedTopics?null:i.selectedTopics.length)>0,i.isMobileSearchOpen&&i.isMobile,i.isSeeMoreTopic)),e.R7$(),e.Y8G("ngIf",i.isSeeMoreTopic&&(null==i.selectedTopics?null:i.selectedTopics.length)>0),e.R7$(2),e.Y8G("ngIf",!i.isEditageUser),e.R7$(),e.Y8G("ngIf",i.showFooterButton)}}let ne=(()=>{class s{constructor(i,n,r,a,v,x,F){this.analyticsService=i,this.topicService=n,this.document=r,this.userService=a,this.platformId=v,this.researchProjectService=x,this.packService=F,this.openMobileSearchPopup=new h.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 i=this.selectedTopics?.length?this.selectedTopics.length:0;return{isdisbaled:!(i>0),footerText:i>0?"" + i + " 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: "+(i&&this.getselectedTopicCtValue()),"Product Addressed":"R-Life"}}}}getselectedTopicCtValue(){let i="";return this.selectedTopics.forEach(n=>{i=(i?i+", ":"")+n.name}),i}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(i){if(!(i.length>0&&/[a-zA-Z]|[0-9]/.test(i)))return this.suggestedTopics=[],this.errMsg=i.length>0&&!/[a-zA-Z]|[0-9]/.test(i)?"Please enter only English characters":"";this.isLoadingSearch=!0,this.searchTopic(i).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(i){this.isMobile?i&&(this.isSeeMoreTopic=!1,this.isMobileSearchOpen=!1):(this.errMsg="",this.isMobileSearchOpen=!1)}openSearchValue(){this.isMobileSearchOpen=!0}searchTopic(i){return this.isUpdateTopics?this.topicService.topicSearch(i):this.topicService.topicSearchDefault(i)}addSubmitTopics(i){this.selectedTopics=[...i],this.changeTopicSelection.emit(this.selectedTopics),this.topicSelectionCreateProject.emit(this.selectedTopics)}removeItem(i){this.selectedTopics.splice(this.selectedTopics.findIndex(n=>n.name===i),1),this.topicSelectionCreateProject.emit(this.selectedTopics)}updateDropdownData(i){i.data.forEach(n=>{-1!==this.selectedTopics.findIndex(a=>a.name===n.name)&&(n.isSelected=!0)}),this.suggestedTopics=i.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()},i=>{this.failedApiEvent.emit(i)}):this.saveTopicData()}}updateTopicsData(){const i={name:"First Feed",concepts:[],type:"Professional",removed_concepts:[]};this.currentTopicSelection.filter(n=>{-1===this.selectedTopics.findIndex(r=>
1r.id===n.id)&&i.removed_concepts.push(n.id)}),this.selectedTopics.map(n=>{-1===this.currentTopicSelection.findIndex(r=>r.id===n.id)&&i.concepts.push({id:n.id,name:n.name,weight:100})}),this.topicService.updateTopicSearch(i).subscribe(n=>{this.showButtonLoader=!1,this.articeSelectionEvent.emit(n)},n=>{this.failedApiEvent.emit(n),this.showButtonLoader=!1})}saveTopicData(){const i={name:"Third feed",concept:[],type:"Professional"};i.concept=this.selectedTopics.map(n=>({id:n.id,name:n.name})),this.topicService.saveTopicSearch(i).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,t.UE)(this.platformId)&&(this.isMobile=window.outerWidth<=767)}seeMoreTopicToggle(){this.isSeeMoreTopic=!this.isSeeMoreTopic}createProjectClick(){const i={type:"concepts",title:"",source:"r-life",status:"ideation",concepts:this.selectedTopics.map(n=>({id:n.id,label:n.name}))};this.researchProjectService.createProject(i).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||s)(e.rXU(E.MM),e.rXU(N.v),e.rXU(C.q),e.rXU(d.DL),e.rXU(e.Agw),e.rXU(D.M),e.rXU(S.xd))}}static{this.\u0275cmp=e.VBU({type:s,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 i,n,r,a,v,x,F,j;return i=" 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 ",a=" Please wait... ",v=" Start reading " + "\ufffd#1\ufffd\ufffd/#1\ufffd" + "",x="Cannot add more than 10 topics",F="Selected topics",j="Selected topics",[["NextText",""],i,n,r,a,v,F,j,["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",x,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"]]},template:function(n,r){1&n&&e.DNE(0,L,13,14,"div",8)(1,te,7,18,"div",9),2&n&&(e.Y8G("ngIf",r.isEditageUser),e.R7$(),e.Y8G("ngIf",!r.isEditageUser))},dependencies:[_.YU,_.Sq,_.bT,M.f,B.Y,T.H,R.G,O.m,_.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}
1.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;color: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 s})()},3443:(A,b,o)=>{o.d(b,{K:()=>d});var t=o(2881),C=o(5965),e=o(1360);let d=(()=>{class E{static{this.\u0275fac=function(N){return new(N||E)}}static{this.\u0275mod=e.$C({type:E})}static{this.\u0275inj=e.G2t({imports:[t.MD,C.zI]})}}return E})()},3493:(A,b,o)=>{o.d(b,{w:()=>E});var t=o(2881),C=o(4387),e=o(5965),d=o(1360);let E=(()=>{class h{static{this.\u0275fac=function(D){return new(D||h)}}static{this.\u0275mod=d.$C({type:h})}static{this.\u0275inj=d.G2t({imports:[t.MD,C.v,e.zI]})}}return h})()},4408:(A,b,o)=>{o.d(b,{P:()=>B});var t=o(1360),C=o(2881),e=o(7337);const d=["ediatageInfoDiv"];function E(T,R){if(1&T){const O=t.RV6();t.j41(0,"div",18),t.bIt("click",function(){t.eBV(O);const I=t.XpG();return t.Njj(I.backClick.emit(!0))}),t.j41(1,"span",19),t.EFF(2,"\u276e"),t.k0s(),t.j41(3,"span"),t.pXf(4,3),t.k0s()()}if(2&T){const O=t.XpG();t.Y8G("RAnalytics",null==O.headerData?null:O.headerData.backAnalytics)}}function h(T,R){1&T&&(t.j41(0,"span",25)(1,"p",26),t.pXf(2,6),t.k0s(),t.j41(3,"p",27),t.pXf(4,7),t.k0s(),t.j41(5,"p",28),t.pXf(6,8),t.k0s()())}function S(T,R){if(1&T){const O=t.RV6();t.qex(0),t.j41(1,"div",20)(2,"span",21),t.pXf(3,4),t.k0s(),t.j41(4,"span",22,1)(6,"span",23),t.bIt("click",function(){t.eBV(O);const I=t.XpG();return t.Njj(I.editageInfoCard=!I.editageInfoCard)}),t.pXf(7,5),t.k0s(),t.DNE(8,h,7,0,"span",24),t.k0s()(),t.bVm()}if(2&T){const O=t.XpG();t.R7$(8),t.Y8G("ngIf",O.editageInfoCard)}}function N(T,R){if(1&T&&(t.qex(0),t.j41(1,"p",29),t.EFF(2),t.k0s(),t.bVm()),2&T){const O=t.XpG(2);t.R7$(2),t.JRh(O.headerData.subHeading)}}function D(T,R){if(1&T&&t.nrm(0,"p",30),2&T){const O=t.XpG(2);t.Y8G("innerHTML",O.headerData.subHeading,t.npT)}}function _(T,R){if(1&T&&t.DNE(0,N,3,1,"ng-container",16)(1,D,1,1,"ng-template",null,2,t.C5r),2&T){const O=t.sdS(2),P=t.XpG
1();t.Y8G("ngIf","discovery"===P.headerData.product)("ngIfElse",O)}}function M(T,R){if(1&T){const O=t.RV6();t.j41(0,"div",31),t.bIt("click",function(){t.eBV(O);const I=t.XpG();return t.Njj(I.skipClick.emit(I.headerData.skipData))}),t.pXf(1,9),t.k0s()}if(2&T){const O=t.XpG();t.Y8G("RAnalytics",null==O.headerData?null:O.headerData.skipAnalytics)}}let B=(()=>{class T{constructor(){this.skipClick=new t.bkB,this.backClick=new t.bkB,this.editageInfoCard=!1}clickout(O){this.editageRefEle?.nativeElement?.contains(O.target)||(this.editageInfoCard=!1)}static{this.\u0275fac=function(P){return new(P||T)}}static{this.\u0275cmp=t.VBU({type:T,selectors:[["spectrum-onboarding-heading"]],viewQuery:function(P,I){if(1&P&&t.GBs(d,5),2&P){let y;t.mGM(y=t.lsd())&&(I.editageRefEle=y.first)}},hostBindings:function(P,I){1&P&&t.bIt("click",function(g){return I.clickout(g)},!1,t.EBC)},inputs:{headerData:"headerData"},outputs:{skipClick:"skipClick",backClick:"backClick"},standalone:!1,decls:10,vars:5,consts:()=>{let O,P,I,y,g,w,l;return O="Back",P=" Topics selected ",I="based on your Editage manuscript",y=" Researcher.Life uses cutting-edge AI technology to identify topics you may be interested in for research and related reading. ",g=" Your manuscript is secure, not modified in any way, and will never be shared with a third party. ",w=" Our systems follow strict quality and security management standards and are ISO-certified: ISO/IEC 27001:2013. ",l=" Skip ",[["subHeading",""],["ediatageInfoDiv",""],["elseTemplate",""],O,P,I,y,g,w,l,[1,"top-sec"],["class","back-link",3,"RAnalytics","click",4,"ngIf"],[1,"logo"],["src","https://cdn.editage.com/researcherlife/logos/editage-logo-small.svg",1,"personalise-logo"],[1,"heading","info-heading"],[1,"heading-1","heads",3,"innerHTML"],[4,"ngIf","ngIfElse"],["class","skip-link",3,"RAnalytics","click",4,"ngIf"],[1,"back-link",3,"click","RAnalytics"],[1,"arrow-left"],[1,"topic-selected"],[1,"mr-1","opacity-64"],[1,"editage-info-wrap"],[1,"bottom-line",3,"click"],["class","editage-info",4,"ngIf"],[1,"editage-info"],[1,"p-one"],[1,"p-two"],[1,"p-three"],[1,"discovery-select"],[3,"innerHTML"],[1,"skip-link",3,"click","RAnalytics"]]},template:function(P,I){if(1&P&&(t.j41(0,"div",10),t.DNE(1,E,5,1,"div",11),t.j41(2,"div",12),t.nrm(3,"img",13),t.k0s(),t.j41(4,"div",14),t.nrm(5,"h2",15),t.DNE(6,S,9,1,"ng-container",16)(7,_,3,2,"ng-template",null,0,t.C5r),t.k0s(),t.DNE(9,M,2,1,"div",17),t.k0s()),2&P){const y=t.sdS(8);t.R7$(),t.Y8G("ngIf",I.headerData.showBack),t.R7$(4),t.Y8G("innerHTML",I.headerData.heading,t.npT),t.R7$(),t.Y8G("ngIf",I.headerData.isEditageUser)("ngIfElse",y),t.R7$(3),t.Y8G("ngIf",I.headerData.showSkip)}},dependencies:[C.bT,e.Y],styles:['.heading[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;width:22.5rem;max-width:100%}@media (min-width: 768px){.heading[_ngcontent-%COMP%]{width:100%;max-width:100%}}@media (min-width: 1200px){.heading[_ngcontent-%COMP%]{padding-left:2.5rem;padding-right:2.5rem}}.logo[_ngcontent-%COMP%]{z-index:10;position:relative;margin-top:1.25rem;text-align:center}.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-bottom:1.25rem;display:inline-block;height:.75rem}@media (min-width: 992px){.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:1rem}}@media (min-width: 992px){.logo[_ngcontent-%COMP%]{margin-top:0}}.heading[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;margin-bottom:.75rem;max-width:100%;text-align:center;word-break:break-word;width:19.5rem}@media (min-width: 768px){.heading[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-bottom:.625rem;width:100%}}@media (min-width: 1200px){.heading[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-bottom:.438rem}}p[_ngcontent-%COMP%]{text-align:center;font-family:lato bold;font-size:.6875rem;text-transform:uppercase;line-height:.75rem;--tw-text-opacity: 1;color:rgba(38,38,38,var(--tw-text-opacity))}.back-link[_ngcontent-%COMP%]{margin-top:5px;z-index:100;position:absolute;top:1.25rem;left:1.25rem;cursor:pointer;font-family:lato bold;font-size:.875rem;line-height:1.25rem;line-height:.75rem;--tw-text-opacity: 1;color:rgba(107,120,128,var(--tw-text-opacity))}@media (min-width: 768px){.back-link[_ngcontent-%COMP%]{display:flex}}@media (min-width: 1200px){.back-link[_ngcontent-%COMP%]{top:2.75rem;left:0}}.back-link[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-rotate: -180deg}.back-link[_ngcontent-%COMP%] .arrow-left[_ngcontent-%COMP%]{margin-right:.25rem;--tw-text-opacity: 1;color:rgba(107,120,128,var(--tw-text-opacity))}.skip-link[_ngcontent-%COMP%]{z-index:100;position:absolute;top:1.25rem;right:1.25rem;cursor:pointer;font-family:lato;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgba(107,120,128,var(--tw-text-opacity))}@media (min-width: 768px){.skip-link[_ngcontent-%COMP%]{font-family:lato bold}}@media (min-width: 1200px){.skip-link[_ngcontent-%COMP%]{top:2.75rem;right:0}}.topic-selected[_ngcontent-%COMP%]{position:relative;text-align:center}.editage-info[_ngcontent-%COMP%]{position:absolute;z-index:10;border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity));--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-sha
1dow);padding:18px 21px 25px;top:-42px;width:300px;left:calc(100% + 16px)}@media (min-width: 992px){.editage-info[_ngcontent-%COMP%]:before, .editage-info[_ngcontent-%COMP%]:after{right:100%;top:15%;border:solid transparent;content:"";position:absolute}.editage-info[_ngcontent-%COMP%]:before{border-right-color:#2626261a;border-width:14px;margin-top:-14px}.editage-info[_ngcontent-%COMP%]:after{border-right-color:#fff;border-width:12px;margin-top:-12px}}.editage-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:left;font-size:.875rem;line-height:1.25rem;text-transform:none;line-height:1.5rem}.editage-info[_ngcontent-%COMP%] .p-one[_ngcontent-%COMP%]{font-family:lato}.editage-info[_ngcontent-%COMP%] .p-two[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1.5rem;padding:.875rem;font-family:Gilroy Semibold;background:#0cca4c21}.editage-info[_ngcontent-%COMP%] .p-three[_ngcontent-%COMP%]{font-family:Gilroy Semibold}@media (max-width: 991px){.editage-info[_ngcontent-%COMP%]{width:425px;left:0;top:40px;transform:translate(-24%)}.editage-info[_ngcontent-%COMP%]:before, .editage-info[_ngcontent-%COMP%]:after{bottom:100%;left:50%;border:solid transparent;content:"";position:absolute}.editage-info[_ngcontent-%COMP%]:before{border-bottom-color:#2626261a;border-width:14px;margin-left:-14px}.editage-info[_ngcontent-%COMP%]:after{border-bottom-color:#fff;border-width:12px;margin-left:-12px}}@media (max-width: 767px){.editage-info[_ngcontent-%COMP%]{width:100%;transform:none}}@media (max-width: 374px){.editage-info[_ngcontent-%COMP%]{top:66px}}.bottom-line[_ngcontent-%COMP%]{cursor:pointer;border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgba(38,38,38,var(--tw-border-opacity));padding-bottom:1px}.editage-info-wrap[_ngcontent-%COMP%]{position:relative;display:inline-block}@media (max-width: 767px){.editage-info-wrap[_ngcontent-%COMP%]{position:static}}.discovery-select[_ngcontent-%COMP%]{font-family:lato;font-size:1rem;line-height:1.5rem;text-transform:none;line-height:1;opacity:.75}']})}}return T})()},4443:(A,b,o)=>{o.d(b,{G:()=>C});var t=o(1360);let C=(()=>{class e{constructor(){this.removeChip=new t.bkB}remove(E){this.removeChip.emit(E)}static{this.\u0275fac=function(h){return new(h||e)}}static{this.\u0275cmp=t.VBU({type:e,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(h,S){1&h&&(t.j41(0,"div",0)(1,"span",1),t.EFF(2),t.k0s(),t.j41(3,"div",2),t.bIt("click",function(){return S.remove(S.chipData)}),t.j41(4,"div",3),t.nrm(5,"span")(6,"span"),t.k0s()()()),2&h&&(t.R7$(2),t.JRh(S.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 e})()},5194:(A,b,o)=>{o.d(b,{q:()=>S});var t=o(8989),C=o(1413),e=o(4412),d=o(7673),E=o(5558),h=o(1360);let S=(()=>{class N{constructor(_,M){this.http=_,this.environment=M,this.data={},this.feed={},this.addTopicModal=new C.B,this.recommendedPapersModal=new C.B,this.conceptPopUpModal=new C.B,this.createFeedModal=new C.B,this.shareTopicModal=new C.B,this.sharePapersModal=new C.B,this.applyFilterModal=new C.B,this.loadComponent=new C.B,this.loadComponentObserval=this.loadComponent.asObservable(),this.openRefineFeed=new C.B,this.openRefineFeedObserval=this.openRefineFeed.asObservable(),this.feedPreferences=new e.t(null),this.getFeedPreferences=this.feedPreferences.asObservable()}setOption(_,M){this.data[_]=M}getOption(){return this.data}setFeed(_){this.feed=_}getFeed(){return this.feed}setSelectedTopic(_){this.selectedTopic=_}getSelectedTopic(){return this.selectedTopic}createUserFeedPreference(_){const M=(new t.Lr).set("enableGuestToken","true");return this.http.post(`${this.environment.api.rDiscovery.default}feed`,_,{headers:M})}updateFeed(_,M){return this.http.post(`${this.environment.api.rDiscovery.default}feed/${_}
1?article_count=30`,M)}updateUserPreference(_){return this.http.post(`${this.environment.api.rDiscovery.default}user/feed-preferences`,_)}manipulateUserPreference(_){return this.http.patch(`${this.environment.api.rDiscovery.default}feed/manipulate`,{temporary_feed_id:_})}deleteUserFeed(_){return this.http.delete(`${this.environment.api.rDiscovery.default}feed/${_}`)}getUserHome(){return this.http.get(`${this.environment.api.rDiscovery.default}user/home`)}getPersonaliseFeed(_){return this.feedPreferences.getValue()?this.getFeedPreferences:this.getFeedData(_).pipe((0,E.n)(M=>(this.feedPreferences.next(M),(0,d.of)(M))))}getFeedData(_){return this.http.get(`${this.environment.api.rDiscovery.default}user/personalise-feed/${_}`)}updatePersonaliseFeed(_,M){return this.http.put(`${this.environment.api.rDiscovery.default}user/personalise-feed/${M}`,_)}searchJournal(_){return this.http.get(`${this.environment.api.rDiscovery.default}journals/search/${_}`)}searchByBothTopicAndJournal(_){return this.http.get(`${this.environment.api.rDiscovery.default}suggestions/search?keyword=${_}`)}setDefaultProject(_){return this.http.put(`${this.environment.api.rDiscovery.default}user/project/${_}/default`,null)}static{this.\u0275fac=function(M){return new(M||N)(h.KVO(t.Qq),h.KVO("environment"))}}static{this.\u0275prov=h.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}}return N})()},6794:(A,b,o)=>{o.d(b,{I:()=>e});var t=o(1360),C=o(8989);let e=(()=>{class d{constructor(h,S){this.http=h,this.environment=S}getUserFingerprint(h){return this.http.get(`${this.environment.api.rDiscovery.default}users/fingerprints`)}getDiscoveryFingerprint(){return this.http.get(`${this.environment.api.rDiscovery.default}users/feed-preferences`)}static{this.\u0275fac=function(S){return new(S||d)(t.KVO(C.Qq),t.KVO("environment"))}}static{this.\u0275prov=t.jDH({token:d,factory:d.\u0275fac,providedIn:"root"})}}return d})()},7160:(A,b,o)=>{o.d(b,{H:()=>w});var t=o(1360),C=o(5965),e=o(2881),d=o(8650);const E=["inputSearch"],h=l=>({"mobile-search-open":l}),S=l=>({disabled:l}),N=l=>({"disabled-li":l});function D(l,m){if(1&l){const p=t.RV6();t.j41(0,"img",14),t.bIt("click",function(){t.eBV(p);const f=t.XpG(2);return t.Njj(f.closeDropDown())}),t.k0s()}}function _(l,m){1&l&&(t.qex(0),t.DNE(1,D,1,0,"img",13),t.bVm()),2&l&&(t.R7$(),t.Y8G("ngIfViewport","md,lg,xl"))}function M(l,m){if(1&l){const p=t.RV6();t.j41(0,"div",15)(1,"i",16),t.bIt("click",function(){t.eBV(p);const f=t.XpG();return t.Njj(f.closeMobileSearch())}),t.nrm(2,"span")(3,"span"),t.k0s()()}}function B(l,m){1&l&&t.nrm(0,"i",17)}function T(l,m){if(1&l&&(t.j41(0,"div",18),t.EFF(1),t.k0s()),2&l){const p=t.XpG();t.R7$(),t.JRh(p.errMsg)}}function R(l,m){if(1&l&&(t.j41(0,"p",23),t.pXf(1,2),t.k0s()),2&l){const p=t.XpG(3);t.R7$(),t.uP7(p.topicSelectLimit),t.nnv(1)}}function O(l,m){if(1&l&&(t.qex(0),t.DNE(1,R,2,1,"p",22),t.bVm()),2&l){const p=t.XpG(2);t.R7$(),t.Y8G("ngIf",p.topicSelectLimit)}}function P(l,m){if(1&l&&(t.j41(0,"p",25),t.pXf(1,3),t.k0s()),2&l){const p=t.XpG(3);t.R7$(),t.uP7(p.topicSelectLimit-(null==p.selectedOptions?null:p.selectedOptions.length)),t.nnv(1)}}function I(l,m){if(1&l&&t.DNE(0,P,2,1,"p",24),2&l){const p=t.XpG(2);t.Y8G("ngIf",p.topicSelectLimit)}}function y(l,m){if(1&l){const p=t.RV6();t.j41(0,"li")(1,"label",26)(2,"input",27),t.bIt("change",function(){const f=t.eBV(p).$implicit,L=t.XpG(2);return t.Njj(L.selectTopic(f))}),t.k0s(),t.j41(3,"span",28),t.EFF(4),t.k0s()()()}if(2&l){const p=m.$implicit,u=t.XpG(2);t.R7$(),t.Y8G("ngClass",t.eq3(4,N,(null==u.addedTopics?null:u.addedTopics.length)>u.topicSelectLimit-1&&!p.isSelected)),t.R7$(),t.Y8G("disabled",(null==u.addedTopics?null:u.addedTopics.length)>u.topicSelectLimit-1&&!p.isSelected)("checked",!!p.isSelected),t.R7$(2),t.JRh(p.name)}}function g(l,m){if(1&l&&(t.qex(0),t.j41(1,"div",19),t.DNE(2,O,2,1,"ng-container",20)(3,I,1,1,"ng-template",null,1,t.C5r),t.j41(5,"ul"),t.DNE(6,y,5,6,"li",21),t.k0s()(),t.bVm()),2&l){const p=t.sdS(4),u=t.XpG();t.R7$(),t.Y8G("ngClass",u.options?"block":"hidden"),t.R7$(),t.Y8G("ngIf",(null==u.selectedOptions?null:u.selectedOptions.length)===u.topicSelectLimit)("ngIfElse",p),t.R7$(3),t.ZvI("result ",u.topicSelectLimit&&"with-topic-select-text",""),t.R7$(),t.Y8G("ngForOf",u.options)}}let w=(()=>{class l{constructor(p,u){this.eref=p,this.analyticsService=u,this.variant="",this.isLoading=!1,this.seachTextEvent=ne
1w t.bkB,this.submitSelectedTopic=new t.bkB,this.clearSearchBoxEvent=new t.bkB,this.openSearchBoxEvent=new t.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(p){p.forEach(u=>{-1!==this.addedTopics.findIndex(L=>L.name===u.name)&&(u.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(p){clearTimeout(this.searchTimeOut),this.searchedText=p.target.value,this.searchTimeOut=setTimeout(()=>{this.selectedOptions&&(this.addedTopics=[...this.selectedOptions]),this.seachTextEvent.emit(p.target.value)},500)}selectTopic(p){if(this.selectLoader=!0,p.isSelected=!0!==p.isSelected,p.isSelected)this.addedTopics.push(p);else{const u=this.addedTopics.findIndex(f=>f.name===p.name);this.addedTopics.splice(u,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(p){this.eref&&!this.eref.nativeElement.contains(p.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(u){return new(u||l)(t.rXU(t.aKT),t.rXU(C.MM))}}static{this.\u0275cmp=t.VBU({type:l,selectors:[["spectrum-search-dropdown"]],viewQuery:function(u,f){if(1&u&&t.GBs(E,5),2&u){let L;t.mGM(L=t.lsd())&&(f.inputSearch=L.first)}},hostBindings:function(u,f){1&u&&t.bIt("click",function(G){return f.onClickOutSide(G),G.stopPropagation()},!1,t.EBC)},inputs:{variant:"variant",options:"options",selectedOptions:"selectedOptions",selectLimitMessage:"selectLimitMessage",doneBtnClavartap:"doneBtnClavartap",isLoading:"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:[t.OA$],decls:11,vars:15,consts:()=>{let p,u;return p=" You have reached the limit of " + "\ufffd0\ufffd" + " topics. Please remove one or more topics to add more ",u=" You can add " + "\ufffd0\ufffd" + " more topics ",[["inputSearch",""],["topicSelectedCount",""],p,u,[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(u,f){if(1&u){const L=t.RV6();t.j41(0,"div",4)(1,"div",5)(2,"div",6),t.nrm(3,"img",7),t.k0s(),t.j41(4,"input",8,0),t.bIt("click",function(){return t.eBV(L),t.Njj(f.clickMobileEvent())})("input",function($){return t.eBV(L),t.Njj(f.searchTopics($))})("focus",function(){return t.eBV(L),t.Njj(f.onInputFocus())}),t.k0s(),t.DNE(6,_,2,1,"ng-container",9)(7,M,4,0,"div",10)(8,B,1,0,"i",11),t.k0s(),t.DNE(9,T,2,1,"div",12)(10,g,7,7,"ng-container",9),t.k0s()}2&u&&(t.HbH(f.variant),t.Y8G("ngClass",t.eq3(11,h,f.mobileSearch)),t.R7$(),t.Y8G("ngClass",t.eq3(13,S,(null==f.selectedOptions?null:f.selectedOptions.length)===f.topicSelectLimit)),t.R7$(3),t.Y8G("disabled",(null==f.selectedOptions?null:f.selectedOptions.length)===f.topicSelectLimit)("placeholder",f.inputPlaceHolder),t.R7$(2),t.Y8G("ngIf",f.searchedText&&!f.isLoading),t.R7$(),t.Y8G("ngIf",!f.isLoading),t.R7$(),t.Y8G("ngIf",f.isLoading),t.R7$(),t.Y8G("ngIf",f.errMsg),t.R7$(),t.Y8G("ngIf",(null==f.options?null:f.options.length)>0))},dependencies:[e.YU,e.Sq,e.bT,d.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{dis
1play: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 l})()},7921:(A,b,o)=>{o.r(b),o.d(b,{TopicSelectionModule:()=>D});var t=o(2881),C=o(2267),e=o(3493),d=o(8410),E=o(1912),h=o(4387),S=o(5965),N=o(1360);let D=(()=>{class _{constructor(B){this.componentFactoryResolver=B}resolveComponent(){return this.componentFactoryResolver.resolveComponentFactory(C.V)}static{this.\u0275fac=function(T){return new(T||_)(N.KVO(N.OM3))}}static{this.\u0275mod=N.$C({type:_})}static{this.\u0275inj=N.G2t({imports:[t.MD,e.w,S.zI,d.K,E.f,h.v]})}}return _})()},8410:(A,b,o)=>{o.d(b,{K:()=>E});var t=o(2881),C=o(5965),e=o(4387),d=o(1360);let E=(()=>{class h{static{this.\u0275fac=function(D){return new(D||h)}}static{this.\u0275mod=d.$C({type:h})}static{this.\u0275inj=d.G2t({imports:[t.MD,C.zI,e.v]})}}return h})()},9946:(A,b,o)=>{o.d(b,{v:()=>e});var t=o(1360),C=o(8989);let e=(()=>{class d{constructor(h,S){this.http=h,this.environment=S}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(h){return this.http.get(`${this.environment.api.rDiscovery.default}search/`+h)}topicSearchDefault(h){return this.http.get(`${this.environment.api.rDiscovery.default}search/`+h)}saveTopicSearch(h){return this.http.post(`${this.environment.api.rDiscovery.default}users/feed-preferences/new?article_count=20`,h)}updateTopicSearch(h){return this.http.post(`${this.environment.api.rDiscovery.default}users/feed-preferences`,h)}projectlist(){return this.http.get(`${this.environment.api.rDiscovery.default}user/project`)}static{this.\u0275fac=function(S){return new(S||d)(t.KVO(C.Qq),t.KVO("environment"))}}static{this.\u0275prov=t.jDH({token:d,factory:d.\u0275fac,providedIn:"root"})}}return d})()}}]);
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.