tationType===L}get isPending(){return"mynetwork.invitation-manager.pending"===(0,s.get)(this,"router.currentRouteName")}get withdrawDialogContent(){let e=3,t="i18n_withdraw_confirmation_dialog_all"
this.invitationType===z?e=1:this.invitationType===F&&(t="i18n_withdraw_confirmation_dialog_organization")
return this.i18n.lookupTranslation("mynetwork@invitation-manager/sent",t)([{count:e}])}_retrieveSingleInvitationAsPayload(e){let{actionParam:t,invitationView:n,sentInvitationType:i}=e
if(this.isInvitationManagerSentRedesignEnabled)return(0,c.isEmpty)(i)?this._pendingSingleInvitationPayload(n):this._sentSingleInvitationPayload(n,i)
const o=(0,s.get)(n,"genericInvitationView"),r=t===D?n:o||(0,s.get)(n,"invitation")
let a=(0,s.get)(r,"entityUrn")
if((0,c.isPresent)(o)){a=`urn:li:fs_relInvitation:${(0,d.entityUrnToId)(a)}`}return[{entityUrn:a,validationToken:(0,s.get)(r,"sharedSecret"),genericInvitation:(0,c.isPresent)(o)}]}_pendingSingleInvitationPayload(e){const t=(0,s.get)(e,"invitation.genericInvitationType"),n=(0,s.get)(e,"invitation")
return[{entityUrn:(0,s.get)(n,"entityUrn"),validationToken:(0,s.get)(n,"sharedSecret"),genericInvitationType:t,genericInvitation:t!==u.INVITATION_TYPES.CONNECTION}]}_sentSingleInvitationPayload(e,t){return[{entityUrn:(0,s.get)(e,"invitation.entityUrn"),genericInvitation:(0,s.get)(e,"invitation.genericInvitationType")!==u.INVITATION_TYPES.CONNECTION,genericInvitationType:t}]}_performSingleAction(e){let{actionParam:t,invitationView:n,sentInvitationType:i}=e
const o=this._retrieveSingleInvitationAsPayload({actionParam:t,invitationView:n,sentInvitationType:i}),[{entityUrn:r,validationToken:a,genericInvitationType:l=u.INVITATION_TYPES.CONNECTION}]=o,s=t.toLocaleLowerCase(),c=s===u.INVITATION_ACTIONS.ACTOR_WITHDRAW?u.INVITATION_ACTIONS.WITHDRAW:s
return this.invitationPlatform.singleInvitationActionRequest({invitationIdOrUrn:r,sharedKey:a,action:c,invitationType:l})}_fireControlInteractionEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"SHORT_PRESS"
const n=this.tracking.generateControlUrn(e)
this.tracking.fireCustomUrnInteractionEvent(n,t)}_resetProperties(){(0,s.setProperties)(this,{disableButtons:!1,isM2MInvitePresent:!1,isEventInvitePresent:!1,isGenericInvitationPresent:!1})}withdrawInvitation(e,t,n,i,o,r){const a=this.isWithdrawConfirmationEnabled?"openWithdrawConfirmation":"withdrawWithoutConfirmation"
this.send(a,e,t,n,i,o,r)}withdrawWithoutConfirmation(e,t,n,i,o,a){(0,c.isPresent)(t)&&e(t,n,i,o).then((()=>{(0,r.isDestroying)(this)||a()}))}openWithdrawConfirmation(e,t,n,i,o,a){if((0,c.isPresent)(t)){(0,s.set)(this,"actOnSelectedInvitation",(()=>e(t,n,i,o).then((()=>{(0,r.isDestroying)(this)||a()}))));(0,s.set)(this,"isConfirmationDialogOpen",!0)}}closeWithdrawConfirmation(){this.tracking.fireInteractionEvent("withdraw_cancel");(0,s.setProperties)(this,{isConfirmationDialogOpen:!1,actOnSelectedInvitation:void 0})}_getHeadsUpPrompt(e){this.storeShim.queryURL(...(0,y.headsUpConfigFor)(e)).then(y.promptFromCollection).then((e=>{(0,r.isDestroying)(this)||e&&(0,s.setProperties)(this,{headsUpPrompt:e,showHeadsUp:!0})}))}actOnNewIMInvitation(e){let{invitationView:t,actionOnInvitation:n,sentInvitationType:i}=e
this.invitationActionInProgress=!0
const o=n.toUpperCase()
return this._performSingleAction({invitationView:t,actionParam:o,sentInvitationType:i}).then((()=>{if(!(0,r.isDestroying)(this))if(o===D||"ACTOR_WITHDRAW"===o)this.send("updateSentInvitations",t)
else if("ACCEPT"===o){this.send("updatePendingInvitations",t)
const e=(0,s.get)(t,"invitation"),n=e?(0,s.get)(e,"genericInvitationType"):void 0
let i
n&&n!==L?n===z?i=x:n===F&&(i=j):i=M
this._getHeadsUpPrompt(i)}else if("IGNORE"===o){const e=(0,s.get)(t,"invitation.genericInvitationType"),n=(0,f.shouldShowSettingsPopup)(this.localStorage,e);(0,s.setProperties)(this,{settingsPopupEntityType:e,isSettingsPopupOpen:n})
this.send("updatePendingInvitations",t)}else this.send("updatePendingInvitations",t)})).finally((()=>{(0,r.isDestroying)(this)||(this.invitationActionInProgress=!1)}))}withdraw(){this.tracking.fireInteractionEvent("withdraw_confirm")
this.actOnSelectedInvitation()
this.send("closeWithdrawConfirmation")}onChangeInvitationType(e){this.tracking.fireInteractionEvent(`type_filter_${e}`)
this.send("changeInvitationType",e)}onDecrementInlineConfirmationCount(){this.send("decrementInlineConfirmationCount")}transitionToManagerTab(e){this.router.currentRouteName!==e&&this.router.transitionTo(e)}},I=(0,i.default)(E.prototype,"storeShim",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,i.default)(E.prototype,"tracking",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,i.default)(E.prototype,"i18n",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,i.default)(E.prototype,"router",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,i.default)(E.prototype,"invitationPlatform",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,i.default)(E.prototype,"localStorage",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,i.default)(E.prototype,"invitationActionInProgress",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),A=(0,i.default)(E.prototype,"invitationType",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),(0,i.default)(E.prototype,"withdrawInvitation",[s.action],Object.getOwnPropertyDescriptor(E.prototype,"withdrawInvitation"),E.prototype),(0,i.default)(E.prototype,"withdrawWithoutConfirmation",[s.action],Object.getOwnPropertyDescriptor(E.prototype,"withdrawWithoutConfirmation"),E.prototype),(0,i.default)(E.prototype,"openWithdrawConfirmation",[s.action],Object.getOwnPropertyDescriptor(E.prototype,"openWithdrawConfirmation"),E.prototype),(0,i.default)(E.prototype,"closeWithdrawConfirmation",[s.action],Object.getOwnPropertyDescriptor(E.prototype,"closeWithdrawConfirmation"),E.prototype),(0,i.default)(E.prototype,"actOnNewIMInvitation",[s.action],Object.getOwnPropertyDescriptor(E.prototype,"actOnNewIMInvitation"),E.prototype),(0,i.default)(E.prototype,"withdraw",[s.action],Object.getOwnPropertyDescriptor(E.prototype,"withdraw"),E.prototype),(0,i.default)(E.prototype,"onChangeInvitationType",[s.action],Object.getOwnPropertyDescriptor(E.prototype,"onChangeInvitationType"),E.prototype),(0,i.default)(E.prototype,"onDecrementInlineConfirmationCount",[s.action],Object.getOwnPropertyDescriptor(E.prototype,"onDecrementInlineConfirmationCount"),E.prototype),(0,i.default)(E.prototype,"transitionToManagerTab",[s.action],Object.getOwnPropertyDescriptor(E.prototype,"transitionToManagerTab"),E.prototype),E)}))
define("mynetwork/controllers/invite-accepted-contextual",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/controller","@glimmer/tracking"],(function(e,t,n,i,o,r,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var l,s
e.default=(l=class extends r.default{constructor(){super(...arguments);(0,n.default)(this,"queryParams",["inviteActionFailed","origin"]);(0,t.default)(this,"inviteActionFailed",s,this);(0,n.default)(this,"origin","IN_APP")}},s=(0,i.default)(l.prototype,"inviteActionFailed",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),l)}))
define("mynetwork/controllers/network-manager/-base",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/controller","@ember/object","rsvp","@glimmer/tracking","mynetwork/utils/network-manager"],(function(e,t,n,i,o,r,a,l,s,c,u){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var m,d
e.default=(m=class extends a.default{constructor(){super(...arguments);(0,t.default)(this,"entityResultResponses",d,this)}get isErrorLoadingEntities(){return(0,l.get)(this.model.entityResults,"isErrorLoadingEntities")}get entityResultClusters(){return this.model.entityResults?[this.model.entityResults,...this.entityResultResponses]:[]}get lastPagingStart(){return(0,l.get)(this.entityResultClusters[this.entityResultClusters.length-1],"paging.start")}get count(){return this.entityResultClusters.map((e=>(0,l.get)(e,"paging.count"))).reduce(((e,t)=>e+t),0)}get totalResultCount(){return(0,l.get)(this.entityResultClusters[this.entityResultClusters.length-1],"paging.total")}get hasNextPage(){return this.count<this.totalResultCount}get showNoResult(){return!this.totalResultCount}onInfiniteScroll(){if(!this.hasNextPage)return(0,s.resolve)(null)
const e=(0,s.defer)(),t=this.lastPagingStart+u.ENTITY_PAGE_SIZE
this.send("onNextPage",e,t)
return e.promise.then((e=>{(0,r.isDestroying)(this)||(this.entityResultResponses=[...this.entityResultResponses,e])}))}},d=(0,i.default)(m.prototype,"entityResultResponses",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,i.default)(m.prototype,"onInfiniteScroll",[l.action],Object.getOwnPropertyDescriptor(m.prototype,"onInfiniteScroll"),m.prototype),m)}))
define("mynetwork/controllers/network-manager/company",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/controller","@ember/object","@glimmer/tracking","@ember/service","mynetwork/utils/network-manager","follows/utils/follow-tracking-base","feed-requests/update-actions","mynetwork/utils/constants-common","mynetwork/utils/follow-util","global-utils/utils/array/push"],(function(e,t,n,i,o,r,a,l,s,c,u,m,d,p,f,y){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var h,g,b,_,w,v,k,T,E,I
e.default=(h=(0,c.inject)("jet"),g=(0,c.inject)("global-services@store-shim"),b=(0,c.inject)("@linkedin/ember-restli-graphql@graphql"),_=(0,c.inject)("tracking"),w=class extends a.default{constructor(){super(...arguments);(0,t.default)(this,"jet",v,this);(0,t.default)(this,"storeShim",k,this);(0,t.default)(this,"graphql",T,this);(0,t.default)(this,"tracking",E,this);(0,t.default)(this,"isScrollDisabled",I,this);(0,n.default)(this,"fetchEntityCount",f.FOLLOW_ENTITIES_FETCH_COUNT);(0,n.default)(this,"start",void 0)}_fetchFollowedEntities(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0
const{graphql:t,jet:n}=this
return(0,f.fetchCurationHubEntities)({graphql:t,jet:n,resultType:u.ENTITY_RESULT_TYPES.PAGES,start:e})}onInfiniteScroll(){return this._fetchFollowedEntities(this.start).then((e=>{if((0,r.isDestroying)(this))return
const t=((0,l.get)(e,"elements.0.items.length")?(0,l.get)(e,"elements.0.items"):(0,l.get)(e,"elements.0.results"))||[]
if(t.length){let e=(0,l.get)(this.model.companiesFollowed,"elements")||[]
e=(0,l.get)(e,"0.items.length")?(0,l.get)(e.firstObject,"items"):(0,l.get)(e.firstObject,"results");(0,y.pushValues)(e,t)
this.start+=this.fetchEntityCount
this.start>=this.model.companiesFollowedCount&&(this.isScrollDisabled=!0)}else this.isScrollDisabled=!0}))}onToggleFollow(e){const t=(0,l.get)(e,"followingInfo"),n=(0,l.get)(e,"trackingId"),i=!(0,l.get)(t,"following")
this.storeShim.adapterFor("-ember-m3").ajax(...(0,d.toggleFollowWithFollowingInfoRequest)(t,"NON_SSU")).catch((e=>{if((0,r.isDestroying)(this))throw e
this.jet.logError(new Error("Failed to toggle follow - company"),p.MYNETWORK_ERROR_TAGS,!1)
throw e}));(0,m.fireFollowActionEvent)(this.tracking,n,i)}},v=(0,i.default)(w.prototype,"jet",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,i.default)(w.prototype,"storeShim",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,i.default)(w.prototype,"graphql",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,i.default)(w.prototype,"tracking",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,i.default)(w.prototype,"isScrollDisabled",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(w.prototype,"onInfiniteScroll",[l.action],Object.getOwnPropertyDescriptor(w.prototype,"onInfiniteScroll"),w.prototype),(0,i.default)(w.prototype,"onToggleFollow",[l.action],Object.getOwnPropertyDescriptor(w.prototype,"onToggleFollow"),w.prototype),w)}))
define("mynetwork/controllers/network-manager/events",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/object","@ember/service","@glimmer/tracking","events-shared-v2/utils/helpers","mynetwork/controllers/network-manager/-base"],(function(e,t,n,i,o,r,a,l,s,c){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var u,m,d,p
e.default=(u=(0,a.inject)("locale"),m=class extends c.default{openCreateEventModal(){this.showCreateEventModal=!0}constructor(){super(...arguments);(0,t.default)(this,"locale",d,this);(0,t.default)(this,"showCreateEventModal",p,this);(0,r.set)(this,"isEventCreationEnabled",(0,s.canViewerCreateAnEvent)(this.locale))}},d=(0,i.default)(m.prototype,"locale",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,i.default)(m.prototype,"showCreateEventModal",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(m.prototype,"openCreateEventModal",[r.action],Object.getOwnPropertyDescriptor(m.prototype,"openCreateEventModal"),m.prototype),m)}))
define("mynetwork/controllers/network-manager/hashtags",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/controller","@ember/object","@glimmer/tracking","@ember/service","mynetwork/utils/network-manager","mynetwork/utils/follow-util","global-utils/utils/array/push"],(function(e,t,n,i,o,r,a,l,s,c,u,m,d){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var p,f,y,h,g,b
e.default=(p=(0,c.inject)("jet"),f=(0,c.inject)("@linkedin/ember-restli-graphql@graphql"),y=class extends a.default{constructor(){super(...arguments);(0,t.default)(this,"jet",h,this);(0,t.default)(this,"graphql",g,this);(0,t.default)(this,"isScrollDisabled",b,this);(0,n.default)(this,"start",void 0);(0,n.default)(this,"fetchEntityCount",m.FOLLOW_ENTITIES_FETCH_COUNT)}_fetchFollowedEntities(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0
const{graphql:t,jet:n}=this
return(0,m.fetchCurationHubEntities)({graphql:t,jet:n,resultType:u.ENTITY_RESULT_TYPES.HASHTAG,start:e})}onInfiniteScroll(){return this._fetchFollowedEntities(this.start).then((e=>{if((0,r.isDestroying)(this))return
const t=((0,l.get)(e,"elements.0.items.length")?(0,l.get)(e,"elements.0.items"):(0,l.get)(e,"elements.0.results"))||[]
if(t.length){let e=(0,l.get)(this.model.hashtagsFollowed,"elements")||[]
e=(0,l.get)(e,"0.items.length")?(0,l.get)(e.firstObject,"items"):(0,l.get)(e.firstObject,"results");(0,d.pushValues)(e,t)
this.start+=this.fetchEntityCount
this.start>=this.model.hashtagsFollowedCount&&(this.isScrollDisabled=!0)}else this.isScrollDisabled=!0}))}},h=(0,i.default)(y.prototype,"jet",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,i.default)(y.prototype,"graphql",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,i.default)(y.prototype,"isScrollDisabled",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(y.prototype,"onInfiniteScroll",[l.action],Object.getOwnPropertyDescriptor(y.prototype,"onInfiniteScroll"),y.prototype),y)}))
define("mynetwork/controllers/network-manager/newsletters",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","mynetwork/controllers/network-manager/-base","@ember/object","@ember/service"],(function(e,t,n,i,o,r,a,l){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var s,c,u,m,d
e.default=(s=(0,l.inject)("lix"),c=(0,l.inject)("router"),u=class extends r.default{constructor(){super(...arguments);(0,t.default)(this,"lix",m,this);(0,t.default)(this,"router",d,this)}get isPublishingNewslettersEntrypointEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.publishing-newsletters-entrypoint-experiment")}navigateToNewsletterCreation(){this.router.transitionTo("article-editor.index.newsletter-creation")}},m=(0,i.default)(u.prototype,"lix",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,i.default)(u.prototype,"router",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(u.prototype,"navigateToNewsletterCreation",[a.action],Object.getOwnPropertyDescriptor(u.prototype,"navigateToNewsletterCreation"),u.prototype),u)}))
define("mynetwork/controllers/network-manager/people-follow",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/controller","@ember/object","@glimmer/tracking","@ember/service","mynetwork/utils/follow-util"],(function(e,t,n,i,o,r,a,l,s,c){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var u,m,d,p,f,y
e.default=(u=(0,s.inject)("authentication@authenticated-user"),m=(0,s.inject)("router"),d=class extends r.default{constructor(){super(...arguments);(0,t.default)(this,"authenticatedUser",p,this);(0,t.default)(this,"router",f,this);(0,t.default)(this,"currentTab",y,this)}changeTab(e){this.router.transitionTo(c.PEOPLE_FOLLOW_ROUTE_PATH[e])}},p=(0,i.default)(d.prototype,"authenticatedUser",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.default)(d.prototype,"router",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,i.default)(d.prototype,"currentTab",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return c.PEOPLE_FOLLOW.FOLLOWING}}),(0,i.default)(d.prototype,"changeTab",[a.action],Object.getOwnPropertyDescriptor(d.prototype,"changeTab"),d.prototype),d)}))
define("mynetwork/controllers/network-manager/people-follow/followers",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/classPrivateMethodGet","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/controller","@ember/object","@ember/service","@glimmer/tracking","mynetwork/utils/network-manager","mynetwork/utils/follow-util","global-utils/utils/array/push"],(function(e,t,n,i,o,r,a,l,s,c,u,m,d,p){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var f,y,h,g,b,_,w,v,k,T
e.default=(f=(0,c.inject)("jet"),y=(0,c.inject)("@linkedin/ember-restli-graphql@graphql"),h=(0,c.inject)("router"),g=(T=new WeakSet,class extends l.default{constructor(){super(...arguments)
T.add(this);(0,t.default)(this,"jet",b,this);(0,t.default)(this,"graphql",_,this);(0,t.default)(this,"router",w,this);(0,t.default)(this,"isScrollDisabled",v,this);(0,t.default)(this,"isDisplayCreatorBanner",k,this);(0,n.default)(this,"queryParams",["isDisplayCreatorBanner","newFollowers","startDate","newFollowersBanner"]);(0,n.default)(this,"start",0)}get isDisplayInsight(){const{newFollowersBanner:e}=this.router.currentRoute.queryParams
return(0,i.default)(this,T,E).call(this)||e}onInfiniteScroll(){return(0,d.fetchCurationHubEntities)({graphql:this.graphql,jet:this.jet,resultType:m.ENTITY_RESULT_TYPES.PEOPLE_FOLLOWERS,start:this.start}).then((e=>{if((0,a.isDestroying)(this))return
const t=((0,s.get)(e,"elements.0.items.length")?(0,s.get)(e,"elements.0.items"):(0,s.get)(e,"elements.0.results"))||[]
if(t.length){let e=(0,s.get)(this.model.peopleFollowers,"elements")||[]
e=(0,s.get)(e,"0.items.length")?(0,s.get)(e.firstObject,"items"):(0,s.get)(e.firstObject,"results");(0,p.pushValues)(e,t)
this.start+=d.FOLLOW_ENTITIES_FETCH_COUNT
this.start>=this.model.peopleFollowersCount&&(this.isScrollDisabled=!0)}else this.isScrollDisabled=!0}))}}),b=(0,o.default)(g.prototype,"jet",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,o.default)(g.prototype,"graphql",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,o.default)(g.prototype,"router",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,o.default)(g.prototype,"isScrollDisabled",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),k=(0,o.default)(g.prototype,"isDisplayCreatorBanner",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,o.default)(g.prototype,"onInfiniteScroll",[s.action],Object.getOwnPropertyDescriptor(g.prototype,"onInfiniteScroll"),g.prototype),g)
function E(){const{newFollowers:e,startDate:t}=this.router.currentRoute.queryParams
if(e&&t){const n=new Date(t)
return!isNaN(e)&&!isNaN(n.valueOf())}return!1}}))
define("mynetwork/controllers/network-manager/people-follow/following",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/controller","@ember/object","@ember/service","@glimmer/tracking","mynetwork/utils/network-manager","mynetwork/utils/follow-util","global-utils/utils/array/push"],(function(e,t,n,i,o,r,a,l,s,c,u,m,d){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var p,f,y,h,g,b,_,w,v,k,T
e.default=(p=(0,s.inject)("jet"),f=(0,s.inject)("global-services@store-shim"),y=(0,s.inject)("tracking"),h=(0,s.inject)("@linkedin/ember-restli-graphql@graphql"),g=class extends a.default{constructor(){super(...arguments);(0,t.default)(this,"jet",b,this);(0,t.default)(this,"storeShim",_,this);(0,t.default)(this,"tracking",w,this);(0,t.default)(this,"graphql",v,this);(0,t.default)(this,"isScrollDisabled",k,this);(0,t.default)(this,"isDisplayCreatorBanner",T,this);(0,n.default)(this,"queryParams",["isDisplayCreatorBanner"]);(0,n.default)(this,"start",0)}onInfiniteScroll(){return(0,m.fetchCurationHubEntities)({graphql:this.graphql,jet:this.jet,resultType:u.ENTITY_RESULT_TYPES.PEOPLE_FOLLOW,start:this.start}).then((e=>{if((0,r.isDestroying)(this))return
const t=((0,l.get)(e,"elements.0.items.length")?(0,l.get)(e,"elements.0.items"):(0,l.get)(e,"elements.0.results"))||[]
if(t.length){let e=(0,l.get)(this.model.peopleFollowed,"elements")||[]
e=(0,l.get)(e,"0.items.length")?(0,l.get)(e.firstObject,"items"):(0,l.get)(e.firstObject,"results");(0,d.pushValues)(e,t)
this.start+=m.FOLLOW_ENTITIES_FETCH_COUNT
this.start>=this.model.peopleFollowedCount&&(this.isScrollDisabled=!0)}else this.isScrollDisabled=!0}))}onToggleFollow(e,t){const{storeShim:n,jet:i,tracking:o}=this;(0,m.toggleFollowHelper)({entity:e,store:n,jet:i,tracking:o,resultType:m.PEOPLE_FOLLOW.FOLLOWING,removeItemFromListAction:t})}},b=(0,i.default)(g.prototype,"jet",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,i.default)(g.prototype,"storeShim",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,i.default)(g.prototype,"tracking",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,i.default)(g.prototype,"graphql",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,i.default)(g.prototype,"isScrollDisabled",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),T=(0,i.default)(g.prototype,"isDisplayCreatorBanner",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(g.prototype,"onInfiniteScroll",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"onInfiniteScroll"),g.prototype),(0,i.default)(g.prototype,"onToggleFollow",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"onToggleFollow"),g.prototype),g)}))
define("mynetwork/controllers/nurture",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","mynetwork/controllers/index","@ember/service","@glimmer/tracking"],(function(e,t,n,i,o,r,a,l){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var s,c,u,m
e.default=(s=(0,a.inject)("lix"),c=class extends r.default{constructor(){super(...arguments);(0,t.default)(this,"lix",u,this);(0,t.default)(this,"tabLoading",m,this)}get isMirrorNavUpdateEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.mynetwork-mirror-nav-update")}get nurtureTabSelected(){return"catch-up"===this.model.currentTab}},u=(0,i.default)(c.prototype,"lix",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,i.default)(c.prototype,"tabLoading",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c)}))
define("mynetwork/controllers/nurture/grow",["exports","mynetwork/controllers/index"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
class n extends t.default{}e.default=n}))
define("mynetwork/controllers/settings/manage-syncing",["exports","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@ember/controller","@ember/object"],(function(e,t,n,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var o
e.default=(o=class extends n.default{refreshRoute(){this.send("refreshManageSyncingRoute")}},(0,t.default)(o.prototype,"refreshRoute",[i.action],Object.getOwnPropertyDescriptor(o.prototype,"refreshRoute"),o.prototype),o)}))
define("mynetwork/engine",["exports","@babel/runtime/helpers/esm/defineProperty","@ember/engine","strict-resolver"],(function(e,t,n,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const o=class extends n.default{constructor(){super(...arguments);(0,t.default)(this,"modulePrefix","mynetwork");(0,t.default)(this,"Resolver",i.default)}}
e.default=o}))
define.alias("ember-truth-helpers/helpers/and","mynetwork/helpers/and")
define("mynetwork/helpers/array-union",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0
if(n){const i=t.reduce(((e,t)=>{e[t.get(n)]=!0
return e}),{})
return e.filter((e=>!i[e.get(n)]))}return e.filter((e=>-1===t.indexOf(e)))}}))
define.alias("artdeco-datepicker/helpers/artdeco-adjust-date-for-timezone","mynetwork/helpers/artdeco-adjust-date-for-timezone")
define.alias("artdeco-datepicker/helpers/artdeco-is-between-dates","mynetwork/helpers/artdeco-is-between-dates")
define.alias("ember-media-player/helpers/autoplay-media","mynetwork/helpers/autoplay-media")
define.alias("artdeco-datepicker/helpers/cal-dates-equal","mynetwork/helpers/cal-dates-equal")
define.alias("ember-element-helper/helpers/element","mynetwork/helpers/element")
define.alias("ember-holy-futuristic-template-namespacing-batman/helpers/-translate-dynamic-2","mynetwork/helpers/ember-holy-futuristic-template-namespacing-batman-translate-dynamic-2")
define("mynetwork/helpers/ensure-safe-component",["exports","@embroider/util"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.EnsureSafeComponentHelper}})}))
define.alias("ember-truth-helpers/helpers/eq","mynetwork/helpers/eq")
define.alias("ember-media-player/helpers/format-autoplay","mynetwork/helpers/format-autoplay")
define.alias("ember-cli-pemberly-i18n/helpers/format-number","mynetwork/helpers/format-number")
define.alias("ember-semaphore/helpers/format-title","mynetwork/helpers/format-title")
define.alias("hue-web-icons/helpers/get-asset-url","mynetwork/helpers/get-asset-url")
define.alias("ember-truth-helpers/helpers/gt","mynetwork/helpers/gt")
define.alias("ember-truth-helpers/helpers/gte","mynetwork/helpers/gte")
define.alias("@linkedin/hue-web-artdeco-migration-runtime/helpers/convert-to-icon-name","mynetwork/helpers/hue-web-artdeco-icon-migration-runtime")
define.alias("@linkedin/hue-web-artdeco-migration-runtime/helpers/convert-to-icon-v2","mynetwork/helpers/hue-web-artdeco-li-icon-migration-runtime-v2")
define.alias("@linkedin/hue-web-artdeco-migration-runtime/helpers/convert-to-icon-path","mynetwork/helpers/hue-web-artdeco-li-icon-migration-runtime")
define.alias("@linkedin/hue-web-artdeco-migration-runtime/helpers/convert-argument","mynetwork/helpers/hue-web-artdeco-migration-runtime")
define.alias("helpcenter-in-product-ember/helpers/includes","mynetwork/helpers/includes")
define.alias("ember-truth-helpers/helpers/is-array","mynetwork/helpers/is-array")
define.alias("ember-truth-helpers/helpers/is-empty","mynetwork/helpers/is-empty")
define.alias("ember-truth-helpers/helpers/is-equal","mynetwork/helpers/is-equal")
define.alias("artdeco-icons-web/helpers/li-icon","mynetwork/helpers/li-icon")
define.alias("ember-async-data/helpers/load","mynetwork/helpers/load")
define.alias("ember-truth-helpers/helpers/lt","mynetwork/helpers/lt")
define.alias("ember-truth-helpers/helpers/lte","mynetwork/helpers/lte")
define.alias("ember-truth-helpers/helpers/not-eq","mynetwork/helpers/not-eq")
define.alias("ember-truth-helpers/helpers/not","mynetwork/helpers/not")
define.alias("ember-truth-helpers/helpers/or","mynetwork/helpers/or")
define("mynetwork/helpers/ref-to",["exports","ember-ref-bucket/helpers/ref-to"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})
Object.defineProperty(e,"refTo",{enumerable:!0,get:function(){return t.default}})}))
define.alias("ember-route-action-helper/helpers/route-action","mynetwork/helpers/route-action")
define.alias("ember-app-scheduler/helpers/route-idle","mynetwork/helpers/route-idle")
define.alias("ember-media-player/helpers/seek-media","mynetwork/helpers/seek-media")
define.alias("ember-set-helper/helpers/set","mynetwork/helpers/set")
define("mynetwork/helpers/source-mapping",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.SOURCE_IMAGE_MAPPING=e.SOURCE_ICON_MAPPING=void 0
e.SOURCE_ICON_MAPPING={ANDROID_CALENDAR:"mobile",ANDROID_CONTACTS:"mobile",FACEBOOK:"facebook",FACEBOOK_PUBLIC:"facebook",GOOGLE_CALENDAR:"google",GOOGLE_CONTACTS:"google",GOOGLE_VOICE:"google",LINKEDIN:"linkedin",LINKEDIN_INTERNAL:"linkedin",LINKEDIN_CSV:"linkedin",OUTLOOK_CALENDAR:"outlook",OUTLOOK_CONTACTS:"outlook",OUTLOOK_CONTACTS_CSV:"outlook",OUTLOOK_CONTACTS_MAC:"outlook",OUTLOOK_MAIL:"outlook",TWITTER:"twitter",TWITTER_PUBLIC:"twitter",YAHOO_CALENDAR:"yahoo",YAHOO_CONTACTS:"yahoo",YAHOO_CONTACTS_CSV:"yahoo",YAHOO_MAIL:"yahoo",YAHOO_STITCH:"yahoo",IPHONE:"mobile",IPHONE_CALENDAR:"mobile",FILE_UPLOAD:"upload",MOBILE_CONTACTS:"mobile",EXCHANGE_CONTACTS:"outlook",AOL:"aol",HOTMAIL:"outlook",WEIBO:"weibo",MICROSOFT_STITCH:"outlook",SAMSUNG_STITCH:"mobile",MICROSOFT_GRAPH_PEOPLE:"outlook"},e.SOURCE_IMAGE_MAPPING={EVERNOTE:"evernote",MAC_ADDRESS_BOOK_VCARD:"apple",EVERNOTE_STITCH:"evernote",MICROSOFT_GRAPH_PEOPLE_ENTERPRISE:"microsoft-enterprise"}}))
define.alias("ember-cli-pemberly-i18n/helpers/t","mynetwork/helpers/t")
define.alias("ember-truth-helpers/helpers/xor","mynetwork/helpers/xor")
define.alias("ember-uuid","mynetwork/index")
define("mynetwork/initializers/coordinator-setup",["exports","mynetwork/models/coordinator"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default={name:"setup coordinator",initialize:function(){(arguments[1]||arguments[0]).register("drag:coordinator",t.default)}}}))
define("mynetwork/initializers/icons",["exports","artdeco-icons-web/src/icons","mynetwork/config/environment"],(function(e,t,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
function i(e){throw e}e.default={name:"icons",initialize:function(){const{environment:e,APP:o}=n.default
let r,a
o&&({artdecoCustomSpriteUrl:r,artdecoCustomSpriteName:a}=o)
const l="test"!==e
t.default.load(l,r,a).catch(i)}}}))
define.alias("ember-cli-pemberly-lix/initializers/lix","mynetwork/initializers/lix")
define.alias("ember-m3/initializers/m3-store","mynetwork/initializers/m3-store")
define("mynetwork/instance-initializers/artdeco",["exports","artdeco-eyeglass"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.initialize=o
const n=[t.default.contextClasses,t.default.floatingLabel,t.default.focusOutline]
function i(e,t){const i=e[t]
e[t]=function(){n.forEach((e=>e&&"function"==typeof e.teardown&&e.teardown()))
i&&"function"==typeof i&&i.call(e)}}function o(e){if("undefined"!=typeof document){n.forEach((e=>e.install()))
"function"==typeof e.willDestroy?i(e,"willDestroy"):"function"==typeof e.destroy&&i(e,"destroy")}}e.default={name:"artdeco",initialize:o}}))
define.alias("ember-ref-bucket/instance-initializers/global-ref-cleanup","mynetwork/instance-initializers/global-ref-cleanup")
define.alias("video/instance-initializers/media-plugins","mynetwork/instance-initializers/media-plugins")
define.alias("tracking-overlay-service/instance-initializers/tracking-overlay","mynetwork/instance-initializers/tracking-overlay")
define("mynetwork/models/coordinator",["exports","@ember/object","@ember/object/evented","mynetwork/models/obj-hash","ember-drag-drop/utils/proxy-unproxy-objects"],(function(e,t,n,i,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=t.default.extend(n.default,{objectMap:(0,t.computed)((function(){return i.default.create()})),getObject:function(e,t){t=t||{}
var n=this.get("objectMap").getObj(e)
if(n.ops.source&&!n.ops.source.isDestroying&&!n.ops.source.isDestroyed){const e=n.ops.source.action
"function"==typeof e&&e(n.obj)
"string"==typeof e&&"function"==typeof n.ops.source.target[e]&&n.ops.source.target[e](n.obj)}if(n.ops.target&&!n.ops.target.isDestroying&&!n.ops.target.isDestroyed){const e=n.ops.target.action
"function"==typeof e&&e(n.obj)
"string"==typeof e&&"function"==typeof n.ops.target.source[e]&&n.ops.target.source[e](n.obj)}this.trigger("objectMoved",{obj:(0,o.unwrapper)(n.obj),source:n.ops.source,target:t.target})
return(0,o.unwrapper)(n.obj)},setObject:function(e,t){t=t||{}
return this.get("objectMap").add({obj:e,ops:t})}})}))
define("mynetwork/models/obj-hash",["exports","@ember/object","@ember/object/computed","@ember/array"],(function(e,t,n,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=t.default.extend({contentLength:0,length:(0,n.alias)("contentLength"),init:function(){this._super()
this.content={}},add:function(e){var t=this.generateId()
this.get("content")[t]=e
this.incrementProperty("contentLength")
return t},getObj:function(e){var t=this.get("content")[e]
if(!t)throw new Error("no obj for key "+e)
return t},generateId:function(){var e=1e12*Math.random()
return e=""+(e=parseInt(e))},keys:function(){var e=[]
for(var t in this.get("content"))e.push(t)
return(0,i.A)(e)}})}))
define.alias("artdeco-datepicker/modifiers/artdeco-calendar-click-watcher","mynetwork/modifiers/artdeco-calendar-click-watcher")
define.alias("ember-ref-bucket/modifiers/create-ref","mynetwork/modifiers/create-ref")
define.alias("ember-css-transitions/modifiers/css-transition","mynetwork/modifiers/css-transition")
define.alias("@ember/render-modifiers/modifiers/did-insert","mynetwork/modifiers/did-insert")
define.alias("ember-scroll-modifiers/modifiers/did-intersect","mynetwork/modifiers/did-intersect")
define.alias("ember-resize-modifier/modifiers/did-resize","mynetwork/modifiers/did-resize")
define.alias("@ember/render-modifiers/modifiers/did-update","mynetwork/modifiers/did-update")
define.alias("ember-finite-scroll/modifiers/ember-finite-scroll/focus","mynetwork/modifiers/ember-finite-scroll/focus")
define.alias("image-editor/modifiers/fabric","mynetwork/modifiers/fabric")
define("mynetwork/modifiers/on-dom-insert",["exports","ember-modifier"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=(0,t.modifier)((function(e,t){let[n]=t
n(e)
return()=>{}}))}))
define.alias("ember-prop-modifier","mynetwork/modifiers/prop")
define.alias("ember-scroll-modifiers/modifiers/scroll-into-view","mynetwork/modifiers/scroll-into-view")
define.alias("ember-sortable/modifiers/sortable-group","mynetwork/modifiers/sortable-group")
define.alias("ember-sortable/modifiers/sortable-handle","mynetwork/modifiers/sortable-handle")
define.alias("ember-sortable/modifiers/sortable-item","mynetwork/modifiers/sortable-item")
define.alias("@ember/render-modifiers/modifiers/will-destroy","mynetwork/modifiers/will-destroy")
define.alias("ember-cloud-filepicker/providers/base-provider","mynetwork/providers/base-provider")
define.alias("ember-cloud-filepicker/providers/dropbox-provider","mynetwork/providers/dropbox-provider")
define.alias("ember-cloud-filepicker/providers/onedrive-provider","mynetwork/providers/onedrive-provider")
define("mynetwork/providers/slideshare-provider",["exports","ember-cloud-filepicker/providers/slideshare-provider"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
var n={}
Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})
Object.keys(t).forEach((function(i){"default"!==i&&"__esModule"!==i&&(Object.prototype.hasOwnProperty.call(n,i)||i in e&&e[i]===t[i]||Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[i]}}))}))}))
define("mynetwork/requests/delete-dash-connection",["exports","voyager-web/config/environment","global-utils/utils/url"],(function(e,t,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=function(e){const i=`/${t.default.namespace}/relationships/dash/connections`
return[(0,n.addQueryParam)(i,"action","removeFromMyConnections"),"POST",{data:{connectedMember:e}}]}}))
define("mynetwork/requests/managed-contacts",["exports","@ember/debug","voyager-web/config/environment","global-utils/utils/url"],(function(e,t,n,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.deleteContacts=function(e,t){const{origin:o,keys:r}=t
return[(0,i.addQueryParam)(`/${n.default.namespace}/growth/managedContacts`,"action",e),"POST",{data:t}]}}))
define("mynetwork/requests/mynetwork-notification",["exports","@ember/debug","voyager-web/config/environment","@ember/object"],(function(e,t,n,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.buildItemsAsSeenByTypeAndTime=function(e,t){const n={data:{until:(0,i.get)(e,"latestPublishedAt"),types:[t]}}
return[r(o),"POST",n]}
e.createMyNetworkNotificationRequest=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0]
const t={reload:e,method:"GET",cacheKey:"relationships/myNetworkNotifications"}
return[r(),t]}
const o="markAllItemsAsSeenByTypesAndTimestamp"
function r(e){const t=`/${n.default.namespace}/relationships/myNetworkNotifications`
return e?`${t}?action=${e}`:t}}))
define("mynetwork/requests/social-proof",["exports","voyager-web/config/environment","global-utils/utils/url"],(function(e,t,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.createSocialProofRequest=function(e,i){let o=`/${t.default.namespace}/growth/socialproofs/`
const r={size:e,type:i,q:"socialProofType"}
o=(0,n.addQueryParams)(o,r)
return["com.linkedin.voyager.growth.socialProof.SocialProof","GET",{reload:!0,adapterOptions:{url:o}}]}}))
define("mynetwork/routes/add-connections",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/service","@ember/routing/route","@ember/object","rsvp","discover-utils/utils/discover-util","mynetwork/utils/constants-common"],(function(e,t,n,i,o,r,a,l,s,c,u,m){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var d,p,f,y,h
e.default=(d=(0,a.inject)("jet"),p=(0,a.inject)("global-services@store-shim"),f=class extends l.default{constructor(){super(...arguments);(0,t.default)(this,"jet",y,this);(0,t.default)(this,"storeShim",h,this);(0,n.default)(this,"pageKey","flagship3_people_add_connections")}model(){if((0,r.isDestroying)(this))return
const{jet:e,storeShim:t}=this,n={sourceType:"PYMK_ENTITY",reasonContext:"PYMK_ENTITY"},i=u.default.getAllRecommendationsByReasons({store:t,jet:e,reasons:[n],start:0,count:4})
return(0,c.hash)({cohortRecommendationsReason:n,pymkEntities:i}).then((e=>{if((0,r.isDestroying)(this))return
const t={}
null===e.pymkEntities?(0,s.setProperties)(t,{isPymkRecommendationsFailure:!0,recommendationError:m.ERROR_STATE_TYPES.RECOMMENDATION}):(0,s.setProperties)(t,{pymkEntities:(0,s.get)(e.pymkEntities,"elements"),pymkPaginationToken:(0,s.get)(e,"pymkEntities.metadata.paginationToken"),prefetchedEntitiesCount:4})
return Object.assign(e,t)}))}},y=(0,i.default)(f.prototype,"jet",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,i.default)(f.prototype,"storeShim",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f)}))
define("mynetwork/routes/aggregated-social-hiring",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/routing/route","@ember/destroyable","props-shared/utils/requests","@ember/service","rsvp","global-utils/utils/logger","@linkedin/ember-restli-graphql","props-shared/utils/constants","props-shared/utils/pem-tracking"],(function(e,t,n,i,o,r,a,l,s,c,u,m,d,p){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var f,y,h,g,b
e.default=(f=(0,s.inject)("@linkedin/ember-restli-graphql@graphql"),y=(0,s.inject)("jet"),h=class extends r.default{constructor(){super(...arguments);(0,n.default)(this,"pageKey","flagship3_grouped_hiring_cards");(0,n.default)(this,"queryParams",{groupByUrn:{refreshModel:!0},contentType:{refreshModel:!0}});(0,t.default)(this,"graphql",g,this);(0,t.default)(this,"jet",b,this)}model(e){let{groupByUrn:t,contentType:n}=e
if((0,a.isDestroying)(this))return
if(!t||!n)return(0,c.reject)(new Error("Required params groupByUrn and contentType not found"))
const i={degradations:[p.DEGRADATION_TRACKING_METADATA.NURTURE_GROUPED_CARDS_FETCH_INITIAL],degradedEntityIDsToRemove:[]}
return(0,l.getPropsCardsByGroupedByUrn)(this.graphql,{groupByUrn:t,contentType:n,adapterOptions:i}).catch((e=>{if((0,a.isDestroying)(this))throw e
e&&(e.isAdapterError||e instanceof m.GraphQLQueryError)&&(0,u.errorLogger)(this.jet,"Error fetching grouped cards entities on aggregate-landing",e,[d.NURTURE_JET_TAGS.AGGREGATED_SOCIAL_HIRING])
throw e}))}},g=(0,i.default)(h.prototype,"graphql",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,i.default)(h.prototype,"jet",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h)}))
define("mynetwork/routes/application",["exports","@babel/runtime/helpers/esm/defineProperty","@ember/routing/route"],(function(e,t,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
class i extends n.default{constructor(){super(...arguments);(0,t.default)(this,"pageKey","flagship3_people")}}e.default=i}))
define("mynetwork/routes/celebrations",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/service","@ember/routing/route"],(function(e,t,n,i,o,r,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var l,s,c
e.default=(l=(0,r.inject)("router"),s=class extends a.default{constructor(){super(...arguments);(0,t.default)(this,"router",c,this)}beforeModel(){this.router.transitionTo("celebrations.default")}},c=(0,i.default)(s.prototype,"router",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s)}))
define("mynetwork/routes/contacts",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/service","@ember/routing/route"],(function(e,t,n,i,o,r,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var l,s,c
e.default=(l=(0,r.inject)("router"),s=class extends a.default{constructor(){super(...arguments);(0,n.default)(this,"pageKey","flagship3_people_contacts");(0,t.default)(this,"router",c,this)}beforeModel(){this.router.transitionTo("abi.saved-contacts")}},c=(0,i.default)(s.prototype,"router",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s)}))
define("mynetwork/routes/discover-hub",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/service","@ember/object","rsvp","@ember/routing/route","discover-utils/utils/discover-util","mynetwork/utils/network-manager","ember-app-scheduler","discover-utils/utils/constants","abi-shared/requests/curated-contacts-request"],(function(e,t,n,i,o,r,a,l,s,c,u,m,d,p,f){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var y,h,g,b,_,w,v
e.default=(y=(0,a.inject)("jet"),h=(0,a.inject)("global-services@store-shim"),g=(0,a.inject)("@linkedin/ember-restli-graphql@graphql"),b=class extends c.default{constructor(){super(...arguments);(0,t.default)(this,"jet",_,this);(0,t.default)(this,"storeShim",w,this);(0,t.default)(this,"graphql",v,this);(0,n.default)(this,"pageKey","flagship3_discover_hub")}model(e,t){if((0,r.isDestroying)(this))return
const{jet:n,storeShim:i,graphql:o}=this,a=t.to?t.to.queryParams:{},{useCase:c}=a,d={myNetworkSummary:(0,m.getMyNetworkSummary)({jet:n,graphql:o}),savedContactsSummary:(0,f.getContactsCountSummary)(n,o),discoveryCohorts:u.default.getCohorts({store:i,jet:n,useCase:c,numCards:p.COHORT_CARDS_COUNT.DEFAULT,q:c?"useCase":"discoveryHub"})}
return(0,s.hash)(d).then((e=>{if((0,r.isDestroying)(this))return
const t={},n=((0,l.get)(e,"myNetworkSummary.metadata.primaryFilterCluster.primaryFilters.0.primaryFilterValues")||[]).reduce(((e,t)=>({...e,[(0,l.get)(t,"value")]:(0,l.get)(t,"count")??0})),{});(0,l.setProperties)(t,{connectionsCount:n.CONNECTIONS??0,eventsCount:n.EVENTS??0,groupsCount:n.GROUPS??0,hashtagCount:n.HASHTAG??0,newslettersCount:n.CONTENT_SERIES??0,pagesCount:n.PAGES??0,peopleFollowCount:n.PEOPLE_FOLLOW??0,discoveryCohorts:(0,l.get)(e,"discoveryCohorts.elements"),paginationToken:(0,l.get)(e,"discoveryCohorts.metadata.paginationToken"),savedContactsCount:(0,l.get)(e.savedContactsSummary,"paging.total")||0,isReadyToRenderSummary:!0})
return t}))}afterModel(e){(0,r.isDestroying)(this)||(0,d.whenRouteIdle)().then((()=>{this.isDestroying||(0,l.set)(e,"isContentPaintDone",!0)}))}},_=(0,i.default)(b.prototype,"jet",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,i.default)(b.prototype,"storeShim",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,i.default)(b.prototype,"graphql",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b)}))
define("mynetwork/routes/discovery-see-all",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/classPrivateMethodGet","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/routing/route","@ember/service","@ember/object","rsvp","global-utils/utils/trusted-html-safe","discover-utils/utils/discover-util","global-utils/utils/urn-converter","discover-utils/utils/constants","data-layer/utils/profile/get-profile","tracked-built-ins"],(function(e,t,n,i,o,r,a,l,s,c,u,m,d,p,f,y,h){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var g,b,_,w,v,k,T,E,I,O,C,P,S,N,R,A,D,M,x
const j="mynetwork@discovery-see-all",L=4,z=3,F=["FOLLOW_MIXED_COHORT","FOLLOW_MIXED_COHORT_EMAIL_DISCOVERY_HUB","IM_PROFILE_MIXED_COHORT","IM_FOLLOWS_PROFILE_MIXED","RECENT_CONNECTION_PAGES_SUGGESTION_MIXED","EMAIL_MIXED_RECOMMENDATIONS"],U="i18n_generic_recommendations",W="i18n_mixed_recommendations_email",H="i18n_online_events",V="i18n_pages_by_company",G="i18n_pymk_by_company",Y="i18n_pymk_by_connection"
function q(e){return e.replace("List(","").replace(")","").split(",")}e.default=(g=(0,s.inject)("client-sensor-web@client-sensor"),b=(0,s.inject)("i18n"),_=(0,s.inject)("jet"),w=(0,s.inject)("global-services@store-shim"),v=(0,s.inject)("profile-services@identity-store"),k=(0,s.inject)("tracking"),T=(0,s.inject)("persistent-toast-manager@persistent-toast-manager"),E=(A=new WeakSet,D=new WeakSet,M=new WeakSet,x=new WeakSet,class extends l.default{constructor(){super(...arguments)
x.add(this)
M.add(this)
D.add(this)
A.add(this);(0,t.default)(this,"clientSensor",I,this);(0,t.default)(this,"i18n",O,this);(0,t.default)(this,"jet",C,this);(0,t.default)(this,"storeShim",P,this);(0,t.default)(this,"identityStore",S,this);(0,t.default)(this,"tracking",N,this);(0,t.default)(this,"persistentToastManager",R,this);(0,n.default)(this,"pageKey","flagship3_people_cohorts_see_all");(0,n.default)(this,"queryParams",{legoTrackingToken:{replace:!0}})}model(e,t){var n
if((0,a.isDestroying)(this))return
const{jet:o,storeShim:r}=this,l=(null===(n=t.to)||void 0===n?void 0:n.queryParams)||{},{contextUrns:s,reasons:p,usecase:f,followMember:y}=l,g={},b={}
let _,w={}
if(p||f){let e,t
if(f){t=p?q(p):null
_=s?q(s):null
e="EMAIL_EVENTS_SUGGESTION"===f||"FEED_EVENTS_SUGGESTION"===f?z:L
g.recommendationsByReason=d.default.getAllRecommendationsByUseCase({store:r,jet:o,contextUrns:_,count:e,reasonObjects:t?t[0]:null,useCase:f})
w=(0,u.hash)(g).then((async e=>{if((0,a.isDestroying)(this))return
const n=new h.TrackedArray((0,c.get)(e,"recommendationsByReason.elements")??[]),o=(0,c.get)(e,"recommendationsByReason.metadata.cohortTitle.text"),r=(0,c.get)(e,"followedEntity")
r&&(0,i.default)(this,A,B).call(this,r,n);(0,c.setProperties)(b,{displayReason:o,entities:n,paginationToken:(0,c.get)(e,"recommendationsByReason.metadata.paginationToken"),contextUrns:_,reasons:t,useCase:f,useSmallCardLayout:F.includes(f)})
if(y){const e=await(0,i.default)(this,D,K).call(this,y)
if((0,a.isDestroying)(this))return;(0,c.setProperties)(b,{followMemberProfile:e})}return b}))}else{t=function(e){const t={}
e.replace("List((","").replace("))","").split(",").forEach((e=>{const n=e.replace("List(","").replace(")","").split(":")
if("reasonObjects"===n[0]){const i=e.replace("reasonObjects:List(","").replace(")","")
t[n[0]]=i.length>0?[i]:[]}else{const[e,i]=n
t[e]=i}}))
return t}(p)
s&&(_=q(s))
e="EVENT_COHORT"===t.sourceType?z:L
g.recommendationsByReason=d.default.getAllRecommendationsByReasons({store:r,jet:o,contextUrns:_,count:e,reasons:[t],start:0})
w=(0,u.hash)(g).then((n=>{if((0,a.isDestroying)(this))return
const o=(0,m.default)(this.i18n.lookupTranslation(j,function(e){let t
switch(e.sourceType){case"COMPANY_COHORT":t=V
break
case"PYMK_SPECIFIC_COMPANY_COHORT":t=G
break
case"PYMK_VIEWING_ENTITY_CONNECTIONS":t=Y
break
case"EVENT_COHORT":t=H
break
case"FOLLOW_MIXED_COHORT_EMAIL_DISCOVERY_HUB":t=W
break
default:t=U}return t}(t))()),r=new h.TrackedArray((0,c.get)(n,"recommendationsByReason.elements")??[]),l=(0,c.get)(n,"followedEntity"),s=(0,i.default)(this,M,$).call(this,t)
s&&(0,i.default)(this,x,Q).call(this,r,s)
l&&(0,i.default)(this,A,B).call(this,l,r);(0,c.setProperties)(b,{displayReason:o,entities:r,paginationToken:(0,c.get)(n,"recommendationsByReason.metadata.paginationToken"),contextUrns:_,prefetchedEntitiesCount:e,reasons:t,useSmallCardLayout:F.includes(t.sourceType)})
return b}))}}return w}}),I=(0,o.default)(E.prototype,"clientSensor",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,o.default)(E.prototype,"i18n",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,o.default)(E.prototype,"jet",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,o.default)(E.prototype,"storeShim",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,o.default)(E.prototype,"identityStore",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,o.default)(E.prototype,"tracking",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,o.default)(E.prototype,"persistentToastManager",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E)
function B(e,t){t.unshift(e)
const n=`d_mynetwork_cohort_${f.SECTION_DETAIL[(0,c.get)(e,"type")]}`
d.default.fireDiscoveryActionFunnelEvent(this.tracking,e,f.DISCOVERY_ACTION_TYPES.CLICK_CTA,n)}function K(e){return(0,y.getProfileById)(this.storeShim,e,"com.linkedin.voyager.dash.deco.identity.profile.MiniProfile").then((async e=>{if((0,a.isDestroying)(this))return
if(0===Object.keys(e).length){const e=this.i18n.lookupTranslation(j,"i18n_invalid_vanity_name")()
this.persistentToastManager.error({message:e})
return null}const t=e,n=(0,p.fromUrn)((0,c.get)(t,"entityUrn")).id,i=await this.identityStore.queryURL("com.linkedin.voyager.identity.profile.ProfileNetworkInfo",n,{params:{shouldIncludeFollowingCount:!0},reload:!0})
if((0,a.isDestroying)(this))return
return{miniProfile:e,followingInfo:(0,c.get)(i,"followingInfo")}}))}function $(e){let t=""
const{sourceType:n,reasonContext:i}=e
"PYMK_INDUSTRY_COHORT"===n&&"INDUSTRY"===i?t="pymk-industry-cohort":"COMPANY_COHORT"===n&&"INDUSTRY"===i&&(t="company-cohort-based-on-industry")
return t}function Q(e,t){const n=e.length
let i=`${t}-has-recommendations`
0===n?i=`${t}-has-no-recommendation`:n<L&&(i=`${t}-has-less-than-four-recommendations`)
this.clientSensor.incrementMetricCounter({metricName:i,groupName:f.CLIENT_SENSOR_GROUP_MYNETWORK})}}))
define("mynetwork/routes/fetch",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/routing/route","@ember/service"],(function(e,t,n,i,o,r,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var l,s,c
e.default=(l=(0,a.inject)("router"),s=class extends r.default{constructor(e){super(e);(0,t.default)(this,"router",c,this)
this.router.transitionTo("abi.intro")}},c=(0,i.default)(s.prototype,"router",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s)}))
define("mynetwork/routes/heathrow-redirect-common",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/service","@ember/object","@ember/routing/route","abi-shared/utils/constants-base","heathrow/utils/constants","mynetwork/utils/constants-common","mynetwork/utils/connection-util","rsvp","mynetwork/utils/heathrow-organization-util","mynetwork/utils/mynetwork-request"],(function(e,t,n,i,o,r,a,l,s,c,u,m,d,p,f,y){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var h,g,b,_,w,v,k,T,E,I,O
e.default=(h=(0,a.inject)("abi-shared@abi-tracking"),g=(0,a.inject)("heathrow@heathrow"),b=(0,a.inject)("jet"),_=(0,a.inject)("global-services@store-shim"),w=(0,a.inject)("router"),v=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"abiTracking",k,this);(0,t.default)(this,"heathrow",T,this);(0,t.default)(this,"jet",E,this);(0,t.default)(this,"storeShim",I,this);(0,t.default)(this,"router",O,this);(0,n.default)(this,"pageKey","flagship3_people_heathrow_redirect")}beforeModel(e){const t=e.to?e.to.queryParams:{}
this.origin=this._getValidOrigin(t.origin)
const n=t.isSendInvite?"CONNECT":"ACCEPT_INVITATION",i=t.userActionType||n,o=t.allowedRoutes??t.whitelistedRoutes,a=o?o.split(","):[],{actor:l,invitationId:s}=t
this.heathrow.getSuggestedRoute(this.origin,i,a,l,s).then((e=>this._transitionToHeathrowRoute(e,t))).catch((e=>{if((0,r.isDestroying)(this))throw e
this.jet.logError(e,m.MYNETWORK_ERROR_TAGS,!1)
this._transitionToHeathrowRoute({route:null},t)}))}_transitionToHeathrowRoute(e,t){const{route:n}=e,i=u.HEATHROW_ROUTE_MAP_TETRIS[n],{vanityName:o,isSendInvite:r,isAcceptInvite:a,inviteActionFailed:l,knownError:s,isFollow:c}=t
e.confirmationModal&&this._handleNextBestActionModal(e)
const m={newHeathrowRedirect:!0}
o&&(m.member=o)
r&&(m.isSendInvite=r)
a&&(m.isAcceptInvite=a)
l&&(m.inviteActionFailed=l)
s&&(m.knownError=s)
c&&(m.isFollow=c)
const d={queryParams:m}
if(!e.forwardingUrl||!this._handleCustomRouteTransition(e))switch(n){case u.HEATHROW_ROUTES.ABI_SPLASH:d.queryParams.transactionId=this.abiTracking.fireAbiEntryTracking(this._getAbiEntryPoint(r,a),n)
this.replaceWithExternal(i,d)
break
case u.HEATHROW_ROUTES.ABI_RESULTS_LANDING:"EMAIL"!==this.origin&&(d.queryParams.isOrganic=!0)
d.queryParams.isOrganic=!0
d.queryParams.transactionId=this.abiTracking.fireAbiEntryTracking(this._getAbiEntryPoint(r,a),n)
this.replaceWithExternal(i,d)
break
case u.HEATHROW_ROUTES.FEED:this.replaceWithExternal(i,d)
break
case u.HEATHROW_ROUTES.FOLLOW_HUB:this.replaceWithExternal(i,{queryParams:{followedMember:o,isAcceptInvite:a,isSendInvite:r,inviteActionFailed:l}})
break
case u.HEATHROW_ROUTES.PROFILE_PHOTO_UPLOAD:this._handleProfilePhotoUploadRoute?this._handleProfilePhotoUploadRoute(d):this.router.replaceWith(i,o,d)
break
case u.HEATHROW_ROUTES.ENTITY_ACTIVITY_FEED:this.replaceWithExternal(i,o,d)
break
case u.HEATHROW_ROUTES.GET_THE_APP:d.queryParams.showGetTheAppOverlay=!l
this.router.transitionTo(i,d)
break
case u.HEATHROW_ROUTES.PYMK:default:this._goToHeathrowPymkLanding(a,r