1"use strict";(self.webpackChunkcreator_web=self.webpackChunkcreator_web||[]).push([[978],{3978(R,d,s){s.d(d,{FollowingPageComponent:()=>B});var o=s(5802),r=s(2271),c=s(1271),p=s(2218),f=s(9244),v=s(54),P=s(6809),u=s(6354),m=s(5558),E=s(1656),M=s(4499),S=s(345),D=s(4446),a=s(9079),O=s(760),L=s(3358),C=s(6637),b=s(7415),e=s(5547);const g=()=>[],W=()=>["followerFeedPaginated"];function T(l,U){if(1&l){const i=e.RV6();e.j41(0,"div",3)(1,"lv-profile-suggestions",4),e.bIt("openProfile",function(t){o.eBV(i);const _=e.XpG();return o.Njj(_.openProfile(t))})("followProfile",function(t){o.eBV(i);const _=e.XpG();return o.Njj(_.changeSubscriptionStatus(t))}),e.k0s()()}if(2&l){const i=e.XpG();e.R7$(),e.Y8G("profileSuggestions",i.profileSuggestionsUi())}}let B=(()=>{class l{constructor(){this.followerFeedPaginatedGQL=(0,o.WQX)(P.US),this.thumbnailService=(0,o.WQX)(E.e),this.linkService=(0,o.WQX)(M._),this.meService=(0,o.WQX)(D.Q),this.titleService=(0,o.WQX)(S.hE),this.profileSuggestionsService=(0,o.WQX)(O.S),this.subscriptionService=(0,o.WQX)(c.n),this.isSizeM=(0,o.WQX)(b.B).isSizeM,this.perPage=20,this.isLoading=(0,o.vPA)(!0),this.isMember=(0,r.EW)(()=>this.meService.isMember()),this.isExpired=(0,r.EW)(()=>this.meService.isExpired()),this.hasNeverBeenPremium=(0,r.EW)(()=>this.meService.hasNeverBeenPremium()),this.resultQuery=this.followerFeedPaginatedGQL.watch({variables:{page:1,perPage:this.perPage},fetchPolicy:"cache-and-network",refetchWritePolicy:"overwrite",notifyOnNetworkStatusChange:!0}),this.feedLinks=(0,a.ot)(this.resultQuery.valueChanges.pipe((0,u.T)(i=>(this.isLoading.set(i.loading),i.data?.followerFeedPaginated.data??[])),(0,v.k)(this.thumbnailService,this.linkService))),this.feedTotal=(0,a.ot)(this.resultQuery.valueChanges.pipe((0,u.T)(i=>i.data?.followerFeedPaginated?.total??0)),{initialValue:0}),this.showMoreProfileSuggestions=(0,r.uu)(()=>0==this.feedLinks()?.length),this.profileSuggestionsSource=(0,a.ot)((0,a.br)(this.showMoreProfileSuggestions).pipe((0,m.n)(i=>this.profileSuggestionsService.getProfileSuggestions(i))),{initialValue:[]}),this.profileSuggestions=(0,r.uu)(()=>this.profileSuggestionsSource()),this.hasNoMoreResults=(0,r.EW)(()=>(this.feedLinks()?.length??0)>=this.feedTotal()),this.hasFeedLinks=(0,r.EW)(()=>(this.feedLinks()?.length??0)>0),this.profileSuggestionsUi=(0,r.EW)(()=>{const i=0===this.feedLinks()?.length,n=this.profileSuggestions(),t=this.subscriptionService.subscriptionOverride();return i?this.profileSuggestionsService.getSubscriptionOverrides(n,t):this.profileSuggestionsService.getSubscriptionOverrides(n,t)?.slice(0,3)}),this.titleService.setTitle("Linkvertise | The Search Engine for exclusive Content!"),(0,o.QZP)(()=>{this.meService.me()&&this.resultQuery.refetch({page:1,perPage:this.perPage})})}updateFeedLinks(){if(this.hasNoMoreResults())return;const i=Math.floor((this.feedLinks()?.length??0)/this.perPage)+1;this.resultQuery.fetchMore({variables:{page:i}})}openProfile(i){C.N.openProfile(i)}changeSubscriptionStatus(i){this.subscriptionService.changeSubscriptionStatus(i,["followerFeedPaginated"]).subscribe()}static{this.\u0275fac=function(n){return new(n||l)}}static{this.\u0275cmp=e.VBU({type:l,selectors:[["lv-following-page"]],decls:4,vars:17,consts:[[3,"followedUser","isMember","showStoryline"],["content","","data-testid","following-page-content-feed"],[3,"onScrollEnd","feedLinks","isLoading","endOfFeedText","isMember","isExpired","hasNeverBeenPremium","profileSuggestions","useCombinedAdSlots","refetchQueriesForSubscriptions"],["widget-sticky","",1,"widget-wrapper"],[3,"openProfile","followProfile","profileSuggestions"]],template:function(n,t){if(1&n&&(e.j41(0,"lv-main-content-layout",0)(1,"div",1)(2,"lv-content-feed",2),e.bIt("onScrollEnd",function(){return t.updateFeedLinks()}),e.k0s()(),e.nVh(3,T,2,1,"div",3),e.k0s()),2&n){let _,h;e.Y8G("followedUser",(null==(_=t.meService.me())?null:_.profile_subscriptions)??e.lJ4(13,g))("isMember",t.isMember())("showStoryline",!0),e.R7$(2),e.Y8G("feedLinks",t.feedLinks()??e.lJ4(14,g))("isLoading",t.isLoading())("endOfFeedText","moreCreators")("isMember",t.isMember())("isExpired",t.isExpired())("hasNeverBeenPremium",t.hasNeverBeenPremium())("profileSuggestions",t.profileSuggestions()??e.lJ4(15,g))("useCombinedAdSlots",0===(null==(h=t.feedLinks())?null:h.length)||!t.isSizeM())("refetchQueriesForSubscriptions",e.lJ4(16,W)),e.R7$(),e.vxM(t.hasFeedLinks()&&t.profileSuggestionsUi().length>0?3:-1)}},dependencies:[p.I,f.$,L.i],styles:[".widget-wrapper[_ngcontent-%COMP%]{margin-top:6rem}"]})}}return l})()}}]);
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.