1"use strict";(self.webpackChunkr_life=self.webpackChunkr_life||[]).push([[6311],{6311:(j,f,s)=>{s.r(f),s.d(f,{LeftPanelModule:()=>F});var c=s(2881),e=s(1360),m=s(9547),p=s(9377),u=s(5566),d=s(6481),v=s(8593),g=s(5207),_=s(7337),C=s(8650);const P=["aboutUsSection"],L=["container"],w=["whatsNewWidget"],h=n=>({item:n}),b=n=>({hidden:n});function y(n,r){1&n&&e.nrm(0,"div",14)}function M(n,r){1&n&&e.eu8(0)}function k(n,r){if(1&n&&(e.j41(0,"a",15),e.DNE(1,M,1,0,"ng-container",16),e.k0s()),2&n){const t=e.XpG(),i=e.sdS(16);e.Y8G("queryParams",t.packQueryParam)("RAnalytics",t.getLhsMenuCtEvent("Membership")),e.R7$(),e.Y8G("ngTemplateOutlet",i)}}function E(n,r){1&n&&e.eu8(0)}function O(n,r){if(1&n&&(e.j41(0,"a",17),e.DNE(1,E,1,0,"ng-container",16),e.k0s()),2&n){const t=e.XpG(),i=e.sdS(16);e.Y8G("href",t.externalAppUrl(""),e.B4B)("queryParams",t.packQueryParam)("RAnalytics",t.getLhsMenuCtEvent("Membership")),e.R7$(),e.Y8G("ngTemplateOutlet",i)}}function N(n,r){if(1&n&&(e.j41(0,"a",20),e.eu8(1,21),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG(),a=e.sdS(14);e.AVh("active",i.getActiveRoute(t.active)),e.Y8G("routerLink",t.url)("RAnalytics",i.getLhsMenuCtEvent(t.analyticName)),e.R7$(),e.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",e.eq3(6,h,t))}}function R(n,r){if(1&n&&(e.j41(0,"a",22),e.eu8(1,21),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG(),a=e.sdS(14);e.AVh("active",i.getActiveRoute(t.active)),e.Y8G("href",i.externalAppUrl(t.url),e.B4B)("RAnalytics",t.analyticName),e.R7$(),e.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",e.eq3(6,h,t))}}function x(n,r){if(1&n&&(e.qex(0),e.DNE(1,N,2,8,"a",18)(2,R,2,8,"a",19),e.bVm()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",!t.externalRoute),e.R7$(),e.Y8G("ngIf",t.externalRoute)}}function S(n,r){if(1&n&&(e.nrm(0,"img",23),e.j41(1,"span"),e.EFF(2),e.k0s(),e.j41(3,"strong"),e.EFF(4),e.k0s()),2&n){const t=r.item;e.Mz_("src","https://cdn.researcher.life/rlife/icons/",t.img,"",e.B4B),e.R7$(2),e.JRh(t.title),e.R7$(2),e.JRh(t.count)}}function T(n,r){1&n&&(e.j41(0,"span",28),e.pXf(1,6),e.k0s())}function I(n,r){if(1&n&&e.nrm(0,"img",29),2&n){const t=e.XpG(2);e.FS9("alt",null==t.packConfig?null:t.packConfig.alt),e.FS9("width",null==t.packConfig?null:t.packConfig.width),e.FS9("height",null==t.packConfig?null:t.packConfig.height),e.Y8G("ngClass",e.eq3(5,b,!(null!=t.packConfig&&t.packConfig.iconDark)))("src",t.isCorporateUser?t.environment.cdnUrl+"/rlife/icons/pack-logo/corporate-pack-light.svg":null==t.packConfig?null:t.packConfig.iconDark,e.B4B)}}function A(n,r){if(1&n&&(e.nrm(0,"img",24),e.j41(1,"span")(2,"div",25)(3,"div"),e.pXf(4,5),e.k0s(),e.DNE(5,T,2,0,"span",26),e.k0s(),e.DNE(6,I,1,7,"img",27),e.k0s(),e.j41(7,"strong"),e.EFF(8),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.HbH(t.packClassName),e.R7$(4),e.Y8G("ngIf",!t.showPackImage),e.R7$(),e.Y8G("ngIf",t.showPackImage),e.R7$(2),e.JRh(t.totalCount)}}let $=(()=>{class n{constructor(t,i,a,o,l,B,W,X,U){this.compiler=t,this.injector=i,this.environment=a,this.membershipService=o,this.route=l,this.userService=B,this.languageId=W,this.platformId=X,this.packService=U,this.activeAboutUs=!1,this.callActivePack=!1,this.externalRoute=!1,this.isLogin=!1,this.loaderState=!0,this.displayOnDashboard=!0,this.editageInfo=!1,this.routeList=[],this.isBrowser=(0,p.UE)(this.platformId),this.showPackImage=!1,this.isCorporateUser=!1,this.showOfferBanner=!1,this.activeRoute=this.route?.snapshot?.data?.activeLhs?this.route.snapshot.data.activeLhs:""}ngOnInit(){this.loadWidget(),this.lhsLinkSubscribeHandler(),this.userPlanDetail=this.membershipService?.activePackCache?.data,this.getProfileData(),this.showCorporateUser(),"essential pack"===this.userPackDetail?.pack_name.toLowerCase()&&this.loadWwhatsNewWidget()}ngOnDestroy(){this.lhsLinkSubscribe&&this.lhsLinkSubscribe.unsubscribe()}getProfileData(){this.isBrowser?this.userService.profile().subscribe(t=>{this.userData=t}):this.isBrowser&&this.loadWwhatsNewWidget()}lhsLinkSubscribeHandler(){this.lhsLinkSubscribe=this.packService.lhsLinkSubscribe.subscribe(t=>{t&&(this.routeList=[],this.getrouteList().forEach(i=>{const a=i.id;t[a]&&(i.count=t[a].count,this.routeList.push(i))}),this.routeList=this.removeDuplicateArray(this.routeList))})}removeDuplicateArray(t){const i=new Set;return t.filter(o=>{const l=i.has(o.id);return i.add(o.id),!l})}closeMenuonOutSideClick(t){this.container&&!this.container.nativeElement.contains(t.target)&&this.isMobile&&(document.getElementsByTagName("body")[0]?.classList?.remove("no-scroll"),document.getElementsByClassName("left-nav-wrapper")[0]?.classList?.remove("show"),document.getElementsByClassName("toggle-menu")[0]?.classList?.remove("active"))}loadAboutSection(){s.e(3295).then(s.bind(s,3295)).then(({HeaderAboutModule:t})=>{this.compiler.compileModuleAsync(t).then(i=>
1{const a=i.create(this.injector),o=a.instance.resolveComponent(),{instance:l}=this.aboutUsSection.createComponent(o,null,a.injector);l.showText=!1})})}get isMobile(){return window.innerWidth<=767}get packQueryParam(){return this.packService.packMachineName?{pack:this.packService.packMachineName}:""}getActiveRoute(t){return this.activeRoute===t}getLhsMenuCtEvent(t){return{label:"Clicks to view information detail",property:{Product:"R-LIFE",CTALabel:t,TypeofCTA:"Tab",Section:"LHS menu",Page:t+"-Catgeory page",ClickDetail:"Click on category",MembershipType:this.packService.packname}}}getrouteList(){return[{title:"Write & Publish",benefitCountCta:"write",img:"writing-publishing-new.svg",analyticName:"Write & Publish",active:"write",url:"/write-and-publish",id:"Write & Publish"},{title:"Read & Cite",benefitCountCta:"read",img:"discovery-analysis-new.svg",analyticName:"Read & Cite",active:"read",url:"/read-and-cite",id:"Read & Cite"},{title:"Learn & Network",benefitCountCta:"learn",img:"career-networking-new.svg",analyticName:"Learn & Network",active:"learn",url:"/learn-and-network",id:"Learn & Network"},{title:"Illustrate & Promote",benefitCountCta:"promote",img:"research-communication-new.svg",analyticName:"Illustrate & Promote",active:"promote",url:"/illustrate-and-promote",id:"Illustrate & Promote"}]}externalAppUrl(t){return"chn"===this.userData?.data?.partner_code?.toLowerCase()||10===this.userData?.data?.partner_id?`${this.environment.membershipCNDomain}${"en"===this.languageId?"":`/${this.languageId}`}${t}`:`${this.environment.membershipDomain}${"en"===this.languageId?"":`/${this.languageId}`}${t}`}get totalCount(){return this.packService.benefitData?this.packService.benefitData?.benefits?.length:""}get packConfig(){return this.packService.getPackConfig()}get packClassName(){return this.packService.getPackConfig()?.packClass}loadWidget(){this.membershipService.packDetailSubscribe.subscribe(()=>{this.loaderState=!1})}get isEssentialPack(){return this.packService.isEssentialPack}loadWwhatsNewWidget(){this.whatsNewWidgetInstance||s.e(268).then(s.bind(s,268)).then(({WhatsNewWidgetModule:t})=>{this.compiler.compileModuleAsync(t).then(i=>{const a=i.create(this.injector),o=a.instance.resolveComponent();this.whatsNewWidget&&this.whatsNewWidget.clear();const{instance:l}=this.whatsNewWidget.createComponent(o,null,a.injector);this.whatsNewWidgetInstance=l,this.whatsNewWidgetInstance.displayOnDashboard=this.displayOnDashboard,this.whatsNewWidgetInstance.isLeftPanel=!0,this.whatsNewWidgetInstance.isLoggedIn=this.isLogin,this.whatsNewWidgetInstance.isDifferential=this.is_differential})})}showCorporateUser(){if("corporate-essential"===this.userPackDetail?.pack_machine_name)return this.showPackImage=!0,void(this.isCorporateUser=!0);"free-pack"!==this.packClassName&&(this.showPackImage=!0)}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(e.Ql9),e.rXU(e.zZn),e.rXU("environment"),e.rXU(m.Cc),e.rXU(v.nX),e.rXU(u.DL),e.rXU(e.xe9),e.rXU(e.Agw),e.rXU(d.xd))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["rlife-left-panel"]],viewQuery:function(i,a){if(1&i&&(e.GBs(P,5,e.c1b),e.GBs(L,5),e.GBs(w,5,e.c1b)),2&i){let o;e.mGM(o=e.lsd())&&(a.aboutUsSection=o.first),e.mGM(o=e.lsd())&&(a.container=o.first),e.mGM(o=e.lsd())&&(a.whatsNewWidget=o.first)}},hostBindings:function(i,a){1&i&&e.bIt("click",function(l){return a.closeMenuonOutSideClick(l)},!1,e.EBC)},inputs:{activeAboutUs:"activeAboutUs",activeRoute:"activeRoute",callActivePack:"callActivePack",externalRoute:"externalRoute",isLogin:"isLogin",displayOnDashboard:"displayOnDashboard",userPackDetail:"userPackDetail",is_differential:"is_differential",differentialDiscount:"differentialDiscount",showOfferBanner:"showOfferBanner"},standalone:!1,decls:17,vars:4,consts:()=>{let t,i,a;return t="Research Solutions",i="Membership",a="FREE",[["container",""],["whatsNewWidget",""],["leftPanelRoute",""],["membershipRoute",""],t,i,a,[1,"left-nav-wrapper"],["class","left-nav-overlay lg:hidden",4,"ngIfViewport"],[1,"left-nav"],["class","left-nav-item","routerLinkActive","active","routerLink","",3,"queryParams","RAnalytics",4,"ngIf"],["class","left-nav-item","routerLinkActive","active",3,"href","queryParams","RAnalytics",4,"ngIf"],[1,"left-sub-nav"],[4,"ngFor","ngForOf"],[1,"left-nav-overlay","lg:hidden"],["routerLinkActive","active","routerLink","",1,"left-nav-item",3,"queryParams","RAnalytics"],[4,"ngTemplateOutlet"],["routerLinkActive","active",1,"left-nav-item",3,"href","queryParams","RAnalytics"],["class","left-nav-item",3,"active","routerLink","RAnalytics",4,"ngIf"],["class","left-nav-item",3,"active","href","RAnalytics",4,"ngIf"],[1,"left-nav-item",3,"routerLink","RAnalytics"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"left-nav-item",3,"href","RAnalytics"],["alt","Write & Publish","width","20","height","20","loading","lazy",1,"left-nav-icon",3,"src"],["src","https://cdn.researcher.life/rlife/icons/membership-icon.svg","alt","Membership","width","14","height","20","loading","lazy",1,"left-nav-icon"],[1,"flex"],["class","free-tag px-2 rounded-sm font-gilroyBold text-xxs leading-3 bg-prussianBlue text-white ml-1",4,"ngIf"],["loading","lazy","class","mt-1",3,"ngClass","src","alt","width","height",4,"ngIf"],[1,"free-tag","px-2","rounded-sm","font-gilroyBold","text-xxs","leading-3","bg-prussianBlue","text-white","ml-1"],["loading","lazy",1,"mt-1",3,"ngClass","src","alt","width","height"]]},template:function(i,a){1&i&&(e.j41(0,"div",7),e.DNE(1,y,1,0,"div",8),e.j41(2,"div",9,0)(4,"div"),e.DNE(
15,k,2,3,"a",10)(6,O,2,4,"a",11),e.j41(7,"div",12),e.nrm(8,"section",null,1),e.j41(10,"p"),e.pXf(11,4),e.k0s(),e.DNE(12,x,3,2,"ng-container",13),e.k0s()()()(),e.DNE(13,S,5,4,"ng-template",null,2,e.C5r)(15,A,9,6,"ng-template",null,3,e.C5r)),2&i&&(e.R7$(),e.Y8G("ngIfViewport","sm,md,lg"),e.R7$(4),e.Y8G("ngIf",!a.externalRoute),e.R7$(),e.Y8G("ngIf",a.externalRoute),e.R7$(6),e.Y8G("ngForOf",a.routeList))},dependencies:[c.YU,c.Sq,c.bT,c.T3,g.Wk,g.wQ,_.Y,C.m],styles:[".left-nav-wrapper[_ngcontent-%COMP%]{position:fixed;left:0;z-index:40;height:100vh;width:100%;top:64px;pointer-events:none}@media (min-width: 768px){.left-nav-wrapper[_ngcontent-%COMP%]{top:110px}}@media (min-width: 1200px){.left-nav-wrapper[_ngcontent-%COMP%]{position:static;height:100%;pointer-events:visible}}.left-nav-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%;background:#00000061;transition:all .2s ease-in;opacity:0}.left-nav[_ngcontent-%COMP%]{background:#f9f9f9;width:300px;z-index:1;height:calc(100% - 64px);transition:all .3s cubic-bezier(.65,.05,.36,1);transform:translate(-100%);position:relative;display:flex;flex-direction:column;justify-content:space-between;overflow:auto;padding:1rem .625rem}@media (min-width: 768px){.left-nav[_ngcontent-%COMP%]{padding:2.5rem 1.5rem;width:370px;height:calc(100% - 82px)}}@media (min-width: 1200px){.left-nav[_ngcontent-%COMP%]{height:100%;width:100%;padding:1.875rem 1.25rem;transform:translate(0)}}.left-nav-wrapper.show[_ngcontent-%COMP%]{pointer-events:visible}.left-nav-wrapper.show[_ngcontent-%COMP%] .left-nav[_ngcontent-%COMP%], .left-nav-wrapper.show[_ngcontent-%COMP%] .left-nav-overlay[_ngcontent-%COMP%]{transform:translate(0);opacity:1}.left-nav-item[_ngcontent-%COMP%]{display:flex;cursor:pointer;align-items:center;justify-content:space-between;border-radius:.75rem;padding:1rem;font-family:Gilroy Semibold;font-size:.875rem;line-height:1.25rem;line-height:1;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.3s}.left-nav-item[_ngcontent-%COMP%] .left-nav-icon[_ngcontent-%COMP%]{flex-shrink:0;filter:saturate(0%) grayscale(100%) brightness(69%) contrast(1000%)}.left-nav-item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-right:auto;margin-left:1rem}@media (min-width: 1200px){.left-nav-item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:.75rem}.left-nav-item[_ngcontent-%COMP%] span.free-pack[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:130px}}.left-nav-item[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin-left:auto;display:block;font-family:Gilroy Semibold;font-size:.75rem;line-height:1rem}.left-nav-item.active[_ngcontent-%COMP%]{background:#e2e6f5;font-family:Gilroy bold}.left-nav-item.active[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-family:Gilroy bold}.left-nav-item[_ngcontent-%COMP%] .free-tag[_ngcontent-%COMP%]{padding-top:2px}@media (min-width: 1200px){.left-nav-item[_ngcontent-%COMP%]{padding-left:.875rem;padding-right:.875rem}.left-nav-item[_ngcontent-%COMP%]:hover{background:#e2e6f5}}.left-sub-nav[_ngcontent-%COMP%]{margin-top:.75rem;margin-bottom:1rem;border-top-width:1px;--tw-border-opacity: 1;border-color:rgba(38,38,38,var(--tw-border-opacity));--tw-border-opacity: .1;padding-top:1.875rem}.left-sub-nav[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:1.125rem;font-size:.875rem;line-height:1.25rem;line-height:1.125rem}.left-sub-nav[_ngcontent-%COMP%] .left-nav-item[_ngcontent-%COMP%]{margin-bottom:1.125rem}.calendy[_ngcontent-%COMP%]{background-color:#fff;filter:drop-shadow(0px 6px 15px rgba(0,0,0,.15))}.calendy[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:6px;display:flex;align-items:center;width:100%;justify-content:center;transition:all .3s}.calendy[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover img[_ngcontent-%COMP%]{filter:invert(100%) sepia(100%) saturate(0%) hue-rotate(248deg) brightness(106%) contrast(106%)} .prime-membership .whats-new-widget.openInLeftPanel{display:none!important} .left-nav-wrapper .whats-new-widget .widget-carousel .ngucarouselPoint li{width:6px!important}.widget-skeleton[_ngcontent-%COMP%]{margin-bottom:2rem}.widget-skeleton[_ngcontent-%COMP%] .skeleton[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{height:244px;border-radius:12px}"]})}}return n})();var D=s(5965),G=s(4387);let F=(()=>
1{class n{resolveComponent(){return $}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[c.MD,g.iI,D.zI,G.v]})}}return n})()}}]);
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.