ngines@link-to-external","ember-cli-pemberly-tracking@track-interaction","hue-web-icons@icon","t"]]',moduleName:"mynetwork/templates/settings/manage-syncing.hbs",isStrictMode:!1})}))
define.alias("ember-async-data/tracked-async-data","mynetwork/tracked-async-data")
define("mynetwork/utils/asset-utils",["exports","ember-cloud-filepicker/utils/asset-utils"],(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/utils/badge-issue-tracker",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const t={trackBadgeIssues:function(e,t,n,i){const o=null==e?void 0:e.numNewInvitations,r=!!t,a=!!o||r
if(i!==a){const e=[]
a?e.push("mynetwork.index route: has new update but no badge"):e.push("mynetwork.index route: has badge but no update")
e.push(`badgeCount=${n}`,`numNewInvitations=${o}`,`hasAcceptInviteNotification=${r}`)
console.error(e.join(", "))}}}
e.default=t}))
define.alias("ember-highcharts/utils/build-options","mynetwork/utils/build-options")
define("mynetwork/utils/connection-util",["exports","@ember/debug","global-utils/utils/logger","global-utils/utils/is-network-error","mynetwork/utils/constants-common","mynetwork/utils/pem-tracking","@ember/object","mynetwork/utils/network-manager"],(function(e,t,n,i,o,r,a,l){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.CONNECTION_URLS=void 0
e.createCacheKey=c
e.getConnections=function(e,t){let{options:r={},jet:l}=t
const u=c(s.URL_CONNECTIONS_IS_DASH,r)
return e.queryURL(s.URL_CONNECTIONS_IS_DASH,{cacheKey:u,params:r,reload:!0}).then((e=>[...(0,a.get)(e,"elements")])).then((e=>e.filter((e=>{const{connectedMember:t,connectedMemberResolutionResult:n}=(0,a.getProperties)(e,"connectedMember","connectedMemberResolutionResult")
return t&&n})))).catch((e=>{if((0,i.default)(e)){(0,n.errorLogger)(l,"[connection-util.js] Error in getConnections",e,o.MYNETWORK_ERROR_TAGS)
return[]}throw e}))}
e.getConnectionsSummary=function(e,t){let{jet:n}=t
const s={...(0,l.configureEntitiesQuery)({count:0,resultType:"CONNECTIONS"}),origin:"Communities"},c=[r.NEW_DEGRADATION_TRACKING_METADATA.CONNECTIONS_SUMMARY],u={params:s,reload:!0,adapterOptions:{degradations:c,degradedEntityIDsToRemove:[]}}
return e.queryURL(l.SEARCH_DASH_CLUSTER_API,u).then((e=>(0,a.get)(e,"metadata.totalResultCount"))).catch((e=>{if((0,i.default)(e)){n.logError(e,o.MYNETWORK_ERROR_TAGS,!1)
return null}throw e}))}
e.getConnectionsViaGenAI=function(e,t){let{options:r={},jet:l}=t
return e.queryURL(s.URL_LEVERAGE,{params:r,reload:!0}).then((e=>[...(0,a.get)(e,"elements")])).catch((e=>{if((0,i.default)(e)){(0,n.errorLogger)(l,"[connection-util.js] Error in getConnectionsViaGenAI",e,o.MYNETWORK_ERROR_TAGS)
return e}throw e}))}
e.getConnectionsWithPaging=function(e,t){let{start:r,count:a,keyword:l,sortType:u,jet:m}=t
const d=c(s.URL_CONNECTIONS,{start:r,count:a,keyword:l,sortType:u})
return e.queryURL(s.URL_CONNECTIONS,{cacheKey:d,params:{start:r,count:a,keyword:l,sortType:u},reload:!0}).catch((e=>{if((0,i.default)(e)){(0,n.errorLogger)(m,"[connection-util.js] Error in getConnectionsWithPaging",e,o.MYNETWORK_ERROR_TAGS)
return[]}throw e}))}
const s=e.CONNECTION_URLS={URL_CONNECTIONS:"relationships/connections",URL_CONNECTIONS_IS_DASH:"relationships/dash/connections",URL_LEVERAGE:"voyagerRelationshipsDashLeverage"}
function c(e,t){return`${e}|${t.sortType}|${t.count}|${t.start}|${t.keyword}|${t.sortType}`}}))
define("mynetwork/utils/constants-common",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.TRACKING_ROW_NO=e.REFRESH=e.PYMK_PAGE_SIZE=e.PAGE_SIZE=e.NO_REFRESH=e.NOTIFICATION_DURATION=e.MYNETWORK_ERROR_TAGS=e.LIX=e.HEADS_UP_SCENARIOS=e.GENERIC_INVITATION_FACET_QUERY=e.ERROR_STATE_TYPES=e.ERROR_STATE_ILLUSTRATIONS=e.ERROR_STATE_EVENTS=e.DEFAULT_PAGINATION_COUNT=e.CONNECTION_LIST_SCROLL_PAGE_KEY=void 0
e.LIX={FORCE_CLEAR_BADGE:"voyager.mynetwork.web.force-clear-badge"},e.PYMK_PAGE_SIZE=10,e.CONNECTION_LIST_SCROLL_PAGE_KEY="flagship3_people_connections_list",e.TRACKING_ROW_NO=20,e.PAGE_SIZE=10,e.NOTIFICATION_DURATION=8e3,e.DEFAULT_PAGINATION_COUNT=100,e.NO_REFRESH=Object.freeze({refreshModel:!1}),e.REFRESH=Object.freeze({refreshModel:!0}),e.ERROR_STATE_EVENTS={ERROR_STATE_PAGEKEY:"flagship3_people_error_state"},e.ERROR_STATE_TYPES={INVITATION:"invitation",CONNECTION_SUMMARY:"connectionSummary",RECOMMENDATION:"recommendation",NETWORK_SURVEY:"networkSurvey"},e.ERROR_STATE_ILLUSTRATIONS={EMPTY_NO_MAIL:"empty-no-mail",EMPTY_LEAVING:"empty-leaving",EMPTY_ROOM:"empty-room",ERROR_SERVER:"error-server",ERROR_CONNECTION:"error-connection"},e.GENERIC_INVITATION_FACET_QUERY={PENDING:"pending",SENT:"sent"},e.HEADS_UP_SCENARIOS={ACCEPT_CONNECTION_INVITATION:"ACCEPT_CONNECTION_INVITATION",FOLLOW_MEMBER:"FOLLOW_MEMBER",FOLLOW_COMPANY:"FOLLOW_COMPANY",ATTEND_EVENT:"ATTEND_EVENT"},e.MYNETWORK_ERROR_TAGS=["mynetwork-custom-error-log"]}))
define("mynetwork/utils/constants",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.TOAST_TYPES=e.SOCIAL_PROOF_TYPE=e.ROUTES=e.REFRESH=e.OPT_OUT_NOTIFICATION=e.LIXES=e.JOBS_ENGINE_EXT=e.HEATHROW=e.FIRST_DEGREE_SEARCH_PARAM=e.DEFAULT_TRANSACTION_ID=e.DEFAULT_TASKHANDLE=e.DEFAULT_PAGINATION_COUNT=e.DEFAULT_FIRST_LOAD_COUNT=e.DEFAULT_COUNTRY_CODE=e.COUNT_CONNECTION_FACEPILE=e.CONNECTION_CONNECTIONS=e.CACHE_WARMUP_THRESHOLD=void 0
e.DEFAULT_PAGINATION_COUNT=100,e.LIXES={LIX_COMPOSURE_INVITATION_LIST:"voyager.mynetwork.web.extended.composure-invitation-list"},e.REFRESH=Object.freeze({refreshModel:!0}),e.ROUTES={ABI_SPLASH:"abi.intro",ABI_SUCCESS:"abi.results.success",DISCOVER_HUB:"discover-hub",DEFAULT_AFTER_ROUTE:"mynetwork.index",GUEST_RESULTS:"abi.results.guest",INVITE_CONNECT_CONNECTIONS:"invite-connect.connections",MEMBER_RESULTS:"abi.results.member",MYNETWORK:"mynetwork",MYNETWORK_INDEX:"index",NETWORK_MANAGER_CONNECTIONS:"network-manager.connections",NETWORK_MANAGER_EVENTS:"network-manager.events",NETWORK_MANAGER_NEWSLETTERS:"network-manager.newsletters",NETWORK_MANAGER_PEOPLE_FOLLOW:"network-manager.people-follow",NETWORK_MANAGER_PEOPLE_FOLLOW_FOLLOWERS:"network-manager.people-follow.followers",NETWORK_MANAGER_HASHTAGS:"network-manager.hashtags",NETWORK_MANAGER_COMPANY:"network-manager.company",RESULTS:"abi.results"},e.OPT_OUT_NOTIFICATION={OPT_OUT_NOTIFICATION_EMAIL_TRK:"eml-email_accept_invite_replay_01-pending_invites-0-opt_out",OPT_OUT_NOTIFICATION_EMAIL_TRK_NEPTUNE:"eml-email_accept_invite_replay_01-pending_invites-1-opt_out"},e.DEFAULT_COUNTRY_CODE="us",e.DEFAULT_TASKHANDLE="defaultTaskHandle",e.DEFAULT_TRANSACTION_ID="defaultTransactionId",e.COUNT_CONNECTION_FACEPILE=4,e.SOCIAL_PROOF_TYPE="RELEVANCE",e.FIRST_DEGREE_SEARCH_PARAM="F",e.TOAST_TYPES={TOAST_SUCCESS:"success",TOAST_IGNORE:"ignore"},e.JOBS_ENGINE_EXT="jobs",e.DEFAULT_FIRST_LOAD_COUNT=10,e.CACHE_WARMUP_THRESHOLD=100,e.CONNECTION_CONNECTIONS="CC",e.HEATHROW={NORMALIZED_PROFILE_RECEIPE:"com.linkedin.voyager.deco.identity.normalizedprofile.shared.WebHeathrowOrganizationProfile",INITIAL_DISCOVERY_FETCH_COUNT:12}}))
define("mynetwork/utils/dedup-invites",["exports","@ember/object","global-utils/utils/array/push","tracked-built-ins"],(function(e,t,n,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.dedupInvitationsHandler=function(e){let{context:a,invitationViews:l=[],updateCache:s=!0,resolvedInvitationCache:c=[]}=e,u=new i.TrackedArray((0,t.get)(a,"invitationCache")??[])
if(null===l)return[]
if(!u.length&&!c.length){(0,t.set)(a,"invitationCache",l.map((e=>(0,t.get)(e,"invitation.entityUrn"))))
return l}const m=r(l,u,c)
if(s){u=(0,n.pushValues)(u,o(u,m));(0,t.set)(a,"invitationCache",u)}return m}
const o=(e,n)=>n.map((e=>(0,t.get)(e,"invitation.entityUrn"))).filter((n=>!e.includes((0,t.get)(n,"invitation.entityUrn")))),r=(e,n,i)=>{const o=(0,t.get)(n,"length")
return(0,t.get)(e,"length")&&(o||i)?e.filter((e=>!(n.includes((0,t.get)(e,"invitation.entityUrn"))||i.includes((0,t.get)(e,"invitation.entityUrn"))))):e}}))
define("mynetwork/utils/entity-invitee-suggestions-manager",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/object","@glimmer/tracking","urn-utils","invitation/utils/get-entity-name","global-utils/utils/urn-converter","rsvp","invitation-platform/utils/constants","invitation/utils/invitation-util","invitee-picker/utils/invitee-picker"],(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
e.excludeInvalidInviteeSuggestions=function(e){return e.filter((e=>(0,r.get)(e,"inviteeUrn")&&(0,r.get)(e,"title")&&(0,r.get)(e,"navigationUrl")))}
var f,y,h,g,b,_
const w=[m.INVITATION_TYPES.EVENT]
e.default=(f=class{constructor(e){let{store:i,lix:o,formatter:r}=e;(0,n.default)(this,"storeShim",void 0);(0,n.default)(this,"lix",void 0);(0,n.default)(this,"formatter",void 0);(0,t.default)(this,"inviteeSuggestions",y,this);(0,t.default)(this,"totalSuggestions",h,this);(0,t.default)(this,"isOpen",g,this);(0,t.default)(this,"isLoading",b,this);(0,t.default)(this,"invitationView",_,this)
this.storeShim=i
this.lix=o
this.formatter=r}get invitationType(){return(0,r.get)(this,"invitationView.genericInvitationType")}get invitationTargetUrn(){const e=(0,r.get)((0,d.getGenericInviter)(this.invitationView),"entityUrn"),t=(0,l.extractEntityInfoFromUrn)(e)
return(0,c.toUrn)(t.type,t.id)}get entityName(){return this.invitationView?(0,s.default)((0,d.getGenericInviter)(this.invitationView)):""}dismissModule(){this.isOpen=!1}fetchInviteeSuggestions(e){this.invitationView=e
this.isLoading=!0
this.inviteeSuggestions=[]
if(!w.includes(this.invitationType)){this.isOpen=!1
return(0,u.resolve)()}return(0,p.fetchCommunityInviteeSuggestions)({store:this.storeShim,formatter:this.formatter,entityUrn:this.invitationTargetUrn,count:6,start:0,useCase:"POST_INVITATION_ACCEPTANCE"}).then((e=>{this.totalSuggestions=e.total
this.inviteeSuggestions=e.results
this.isLoading=!1
this.inviteeSuggestions.length>3&&(this.isOpen=!0)})).catch((e=>{this.isOpen=!1
throw e}))}},y=(0,i.default)(f.prototype,"inviteeSuggestions",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),h=(0,i.default)(f.prototype,"totalSuggestions",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,i.default)(f.prototype,"isOpen",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),b=(0,i.default)(f.prototype,"isLoading",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_=(0,i.default)(f.prototype,"invitationView",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(f.prototype,"dismissModule",[r.action],Object.getOwnPropertyDescriptor(f.prototype,"dismissModule"),f.prototype),f)}))
define("mynetwork/utils/file-error",["exports","ember-cloud-filepicker/utils/file-error"],(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/utils/file-result",["exports","ember-cloud-filepicker/utils/file-result"],(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/utils/follow-util",["exports","mynetwork/utils/network-manager","follows/utils/follow-tracking-base","feed-requests/update-actions","mynetwork/utils/constants-common","graphql-queries/queries/search/search-cluster-collection.graphql","@ember/object"],(function(e,t,n,i,o,r,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.PEOPLE_FOLLOW_ROUTE_PATH=e.PEOPLE_FOLLOW=e.FOLLOW_ENTITIES_FETCH_COUNT=void 0
e.fetchCurationHubEntities=function(e){let{graphql:n,jet:i,resultType:o,start:s=0}=e
const c={start:s,count:l,origin:"CurationHub",query:{flagshipSearchIntent:"MYNETWORK_CURATION_HUB",includeFiltersInResponse:!0,queryParameters:[{key:"resultType",value:[o]}]}}
return n.executeQuery(r.default,c,{reload:!0}).then((e=>(0,a.get)(e,"data.searchDashClustersByAll"))).catch((e=>{if((0,t.handleEntitiesError)(i,e,o)||e.errors.length)return{isErrorLoadingEntities:!0}
throw e}))}
e.toggleFollowHelper=function(e){let{entity:t,store:r,jet:l,tracking:s,resultType:c,removeItemFromListAction:u=()=>{}}=e
const m=(0,a.get)(t,"overflowActions.0.actionDetails.followAction"),d=(0,a.get)(t,"trackingId"),p=!(0,a.get)(m,"following")
r.adapterFor("-ember-m3").ajax(...(0,i.toggleFollowWithFollowingInfoRequest)(m,"NON_SSU",!0)).catch((e=>{l.logError(new Error(`Failed to toggle follow - ${c}`),o.MYNETWORK_ERROR_TAGS,!1)
throw e}));(0,n.fireFollowActionEvent)(s,d,p)
null==u||u()}
const l=e.FOLLOW_ENTITIES_FETCH_COUNT=10
e.PEOPLE_FOLLOW={FOLLOWING:"following",FOLLOWERS:"followers"},e.PEOPLE_FOLLOW_ROUTE_PATH={following:"mynetwork.network-manager.people-follow.following",followers:"mynetwork.network-manager.people-follow.followers"}}))
define("mynetwork/utils/gdpr-notice",["exports","ember-app-scheduler"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=function(e,i,o,r,a){const l=n[i];(0,t.whenRouteIdle)().then((()=>{a.isDestroying||e.showToast(i,o,r,l.ACTION_URL)}))}
const n={MANAGE_CONTACT_PAGE:{ACTION_URL:"/mynetwork/settings/manage-syncing",isExternal:!1},MY_NETWORK_PAGE:{ACTION_URL:"/psettings/invite-receive",isExternal:!0},REGISTRATION_FLOW_PROFILE_VISIBILITY:{ACTION_URL:"/psettings/account",isExternal:!0}}}))
define("mynetwork/utils/get-app-config",["exports","ember-cloud-filepicker/utils/get-app-config"],(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.alias("ember-cli-artdeco-tabs/utils/get-box-model-width","mynetwork/utils/get-box-model-width")
define("mynetwork/utils/heathrow-organization-util",["exports","@ember/object"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=function(e){return!(!(0,t.get)(e,"mostRecentPosition")||!(0,t.get)(e,"mostRecentPosition.company")||(0,t.get)(e,"mostRecentPosition.company.claimable")||(0,t.get)(e,"mostRecentPosition.company.followingInfo.following"))}}))
define.alias("client-sensor-web/utils/helpers","mynetwork/utils/helpers")
define("mynetwork/utils/ignored-invitations-util",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.shouldShowSettingsPopup=function(e,n){if(!n||"CONNECTION"===n)return!1
const i=`ignored_invitations_${n}`
let o=parseInt(e.getItem(i),10)
if(o){if(o>=t)return!1}else o=0
e.setItem(i,++o)
return o===t}
const t=5}))
define("mynetwork/utils/invitation-util",["exports","@ember/object","global-utils/utils/api-compat","global-helpers/helpers/name","data-layer/helpers/relationships/invitation/is-member"],(function(e,t,n,i,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.getCheckedInvitations=l
e.getGuestProfile=function(e){if((0,n.classNameOf)(e)===r)return function(e){if(e&&!(0,o.isMember)(e))return{name:(0,t.get)(e,"entity.name")||(0,i.getName)((0,t.get)(e,"entity")),handle:(0,t.get)(e,"entity.handle.number")||(0,t.get)(e,"entity.handle.id")}
return null}(e)
return function(e){if(e&&!(0,o.isMember)(e)){const n=(0,t.get)(e,"invitee"),o=(0,t.get)(n,"email")||(0,t.get)(n,"phoneNumber.number")
return{name:(0,t.get)(n,"name")||(0,i.getName)(n)||o,handle:o}}return null}(e)}
e.getPaginationTokenFromLocalStorage=function(e){return e.getItem(a)||void 0}
e.getSentInvites=function(e){const n={folder:"SENT"},i=`relationships/invitations|${n.folder}|${n.model}`
return e.queryURL("relationships/invitations",{cacheKey:i,params:n,reload:!0}).then((e=>(0,t.get)(e,"elements")))}
e.getTotalInvitations=function(e){if(!e)return 0
return(0,t.get)(e,"invitationViews.length")||(0,t.get)(e,"numOfInvitations")||0}
e.setPaginationTokenToLocalStorage=function(e,t){t&&"null"!==t&&e.setItem(a,t)}
e.showCheckedTotal=function(e){let n=0
if(e){(0,t.get)(e,"invitationsLoaded")?n=l(e).length:(0,t.get)(e,"checked")&&(n=1)}return n}
const r="com.linkedin.voyager.relationships.shared.pymk.PeopleYouMayKnow",a="invitationViewPaginationToken"
function l(e){const n=e&&(0,t.get)(e,"invitationViews")
return n?n.filter((e=>!0===(0,t.get)(e,"checked"))):[]}}))
define("mynetwork/utils/is-http-error-status",["exports","@ember/object"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=function(e){const n=e&&(0,t.get)(e,"errors.0.status")
return Boolean(n&&/^[4-5][0-9][0-9]$/.test(n))}}))
define.alias("@linkedin/hue-web-artdeco-migration-runtime/utils/mapping-data","mynetwork/utils/mapping-data")
define("mynetwork/utils/mime-type-utils",["exports","ember-cloud-filepicker/utils/mime-type-utils"],(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/utils/mynetwork-notifications",["exports","@ember/object","rsvp","@ember/debug","mynetwork/requests/mynetwork-notification","voyager-web/config/environment","global-utils/utils/url","global-utils/utils/is-browser"],(function(e,t,n,i,o,r,a,l){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const s="relationships/myNetworkNotifications"
e.default=class{constructor(e){this.storeShim=e
this.recordsToUnload=[]}unloadNotificationRecords(){const{storeShim:e}=this
if(this.recordsToUnload.length){this.recordsToUnload.forEach(((t,n)=>e.unloadRecord(this.recordsToUnload[n])))
this.recordsToUnload=[]}}getNotificationsByType(e){const n={}
e.forEach((function(e){(0,t.get)(e,"notification.inviteesTotalCount")?n.acceptInvite=e:(0,t.get)(e,"notification.notificationAction")?n.summaryCardNotification=e:n.pymkSuggestion=e}))
return n}markNotificationAsRead(e,t){this.storeShim.adapterFor("-ember-m3").ajax(...(0,o.buildItemsAsSeenByTypeAndTime)(e,t)).then((()=>this.recordsToUnload.push(e)))}markAllNotificationAsRead(){if(l.default){const e={data:{until:Date.now(),types:["PYMK","INVITATION_ACCEPTANCE"]}}
return this.storeShim.adapterFor("-ember-m3").ajax(this._buildURL(s,"markAllItemsAsSeenByTypesAndTimestamp"),"POST",e)}return(0,n.resolve)()}markAllInvitationAcceptanceNotificationsAsRead(){const e={data:{until:Date.now()}}
return this.storeShim.adapterFor("-ember-m3").ajax(this._buildURL(s,"markAllInvitationAcceptanceNotificationsAsSeenByTimestamp"),"POST",e)}_buildURL(e,t){return(0,a.addQueryParams)(`/${r.default.namespace}/${e}`,{action:t})}}}))
define("mynetwork/utils/mynetwork-request",["exports","@ember/debug","voyager-web/config/environment","global-utils/utils/logger","global-utils/utils/is-network-error","@linkedin/ember-restli-graphql","mynetwork/requests/mynetwork-notification","mynetwork/utils/constants-common","mynetwork/requests/social-proof","@ember/object","graphql-queries/queries/invitations/invitation-views-by-received.graphql","graphql-queries/queries/invitations/sent-invitation-views-by-invitation-type.graphql"],(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
const d="identity/normalizedProfiles",p="Elements prop is missing from response",f=e=>e.match(p),y=e=>new Error(e)
const h={getNormalizedProfileByVanityName:function(e,t){let{vanityName:r,recipe:a,jet:s}=t
const c=`/${n.default.namespace}/${d}/${r}`
return e.findRecord(a,r,{adapterOptions:{url:c},reload:!1}).catch((e=>{if((0,o.default)(e)){(0,i.errorLogger)(s,"[mynetwork-request.js] Error in getNormalizedProfileByVanityName",e,l.MYNETWORK_ERROR_TAGS)
return[]}throw e}))},getDashInvitationViewMeta:function(e,t,n){let{filterCriteria:r=[],paginationToken:a}=n
const s={filterCriteria:r,count:0,paginationToken:a},m={reload:!0,cacheKey:`relationshipsDashInvitationViewsMetadata|${s.count}|${r.join(",")}|${a}`}
return e.executeQuery(u.default,s,m).then((e=>(0,c.get)(e,"data.relationshipsDashInvitationViewsByReceived.metadata"))).catch((e=>{if((0,o.default)(e)){(0,i.errorLogger)(t,"[mynetwork-request.js] Error in getDashInvitationViewMeta",e,l.MYNETWORK_ERROR_TAGS)
return null}throw e}))},getSocialProof:function(e,t){let{size:n,type:r,jet:a}=t
const u=(0,s.createSocialProofRequest)(n,r)
return e.findRecord(...u).then((e=>(0,c.get)(e,"elements").map((e=>{const t=(0,c.get)(e,"entity.miniProfile"),n=(0,c.getProperties)(t,"firstName","lastName","maidenName");(0,c.set)(e,"entity.miniProfile.name",n)
return e})))).catch((e=>{if((0,o.default)(e)){(0,i.errorLogger)(a,"[mynetwork-request.js] Error in getSocialProof",e,l.MYNETWORK_ERROR_TAGS)
return[]}throw e}))},getDashInvitationViews:function(e,t,n){let{start:i,count:a,includeInsights:s,paginationToken:m,invitationTypes:d=[],filterCriteria:h=[],adapterOptions:g,q:b="receivedInvitation"}=n
const _={reload:!0,cacheKey:`relationshipsDashInvitationViews|${b}|${m}|${i}|${a}|${h.join(",")}|${d.join(",")}`}
g&&(_.adapterOptions=_.adapterOptions?{..._.adapterOptions,degradations:[..._.adapterOptions.degradations,...g.degradations??[]]}:g)
const w={invitationTypes:d,filterCriteria:h,includeInsights:s,start:i,count:a,paginationToken:m}
return e.executeQuery(u.default,w,_).then((e=>{const t=(0,c.get)(e,"data.relationshipsDashInvitationViewsByReceived.elements")
if(!t)throw y(p)
return[...t].filter((e=>!!e))})).catch((e=>{if((0,o.default)(e)||f(e.message)||e instanceof r.GraphQLQueryError){t.logError(e,l.MYNETWORK_ERROR_TAGS,!1)
return null}throw e}))},getDashSentInvitationViews:function(e,t,n){let{start:i,count:r,invitationType:a,adapterOptions:s={}}=n
const u={reload:!0,cacheKey:`relationshipsDashSentInvitationViewsByInvitationType|${i}|${r}|${a}`,adapterOptions:s},d={start:i,count:r,invitationType:a}
return e.executeQuery(m.default,d,u).then((e=>{if(!e)throw y(p)
return(0,c.get)(e,"data.relationshipsDashSentInvitationViewsByInvitationType")})).catch((e=>{if((0,o.default)(e)||f(e.message)){t.logError(e,l.MYNETWORK_ERROR_TAGS,!1)
return null}throw e}))},getConnectionsWithPaging:function(e,t){let{start:n,count:r,keyword:a,sortType:s,jet:c}=t
const u=`relationships/connections|${n}|${r}|${a}|${s}`
return e.queryURL("relationships/connections",{cacheKey:u,params:{start:n,count:r,keyword:a,sortType:s},reload:!0}).catch((e=>{if((0,o.default)(e)){(0,i.errorLogger)(c,"[mynetwork-request.js] Error in getConnectionsWithPaging",e,l.MYNETWORK_ERROR_TAGS)
return[]}throw e}))},getMyNetworkNotifications:function(e,t){let{jet:n,shouldReloadRecord:r=!1}=t
return e.queryURL(...(0,a.createMyNetworkNotificationRequest)(r)).then((e=>{const t=(0,c.get)(e,"metadata.latestPublishedAt"),n=(0,c.get)(e,"elements")??[]
n.forEach((e=>(0,c.set)(e,"latestPublishedAt",t)))
return n})).catch((e=>{if((0,o.default)(e)){(0,i.errorLogger)(n,"[mynetwork-request.js] Error in getMyNetworkNotifications",e,l.MYNETWORK_ERROR_TAGS)
return[]}throw e}))},getInvitationNotifications:function(e,t,n){let{start:i,count:r,lastUpdateTimeRange:a}=n
const s={start:i,count:r,q:"lastUpdateTimeRange",lastUpdateTimeRange:{start:(0,c.get)(a,"start"),end:(0,c.get)(a,"end")},recipe:"com.linkedin.voyager.dash.deco.relationships.invitationAcceptanceNotificationCardsCollection"},u=`voyagerRelationshipsDashInvitationAcceptanceNotificationCards|${s.q}|${s.start}|${s.count}|${s.lastUpdateTimeRange.start}|${s.lastUpdateTimeRange.end}`
return e.queryURL("voyagerRelationshipsDashInvitationAcceptanceNotificationCards",{cacheKey:u,params:s,reload:!0}).catch((e=>{if((0,o.default)(e)||f(e.message)){t.logError(e,l.MYNETWORK_ERROR_TAGS,!1)
return null}throw e}))}}
e.default=h}))
define("mynetwork/utils/network-manager",["exports","@ember/debug","@ember/object","global-utils/utils/is-network-error","graphql-queries/queries/search/search-cluster-collection.graphql","mynetwork/utils/constants-common"],(function(e,t,n,i,o,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.SEARCH_DASH_CLUSTER_API=e.ENTITY_RESULT_TYPES=e.ENTITY_PAGE_SIZE=void 0
e.configureEntitiesQuery=function(e){let{count:t=a,start:n=0,resultType:i}=e
return{q:"all",start:n,count:t,query:{queryParameters:{resultType:[i]},flagshipSearchIntent:"MYNETWORK_CURATION_HUB"},recipe:"com.linkedin.voyager.dash.deco.search.SearchClusterCollection"}}
e.configureEntitiesQueryGraphQL=s
e.getMyNetworkSummary=function(e){let{jet:t,graphql:o,adapterOptions:a}=e
const c=s({count:0,resultType:l.ALL,origin:"Communities"}),u={reload:!0}
a&&(u.adapterOptions=a)
return o.executeQuery(...c,u).then((e=>(0,n.get)(e,"data.searchDashClustersByAll"))).catch((e=>{if((0,i.default)(e)){t.logError(e,r.MYNETWORK_ERROR_TAGS,!1)
return null}throw e}))}
e.handleEntitiesError=function(e,t,n){if((0,i.default)(t)){e.logError(new Error(`Network request failed while attempting to retrieve entities for resultType: ${n}`),r.MYNETWORK_ERROR_TAGS,!1)
return!0}return!1}
e.sliceNetworkMangerRoute=function(e){return e.split(".").slice(2)}
const a=e.ENTITY_PAGE_SIZE=10,l=(e.SEARCH_DASH_CLUSTER_API="search/dash/clusters",e.ENTITY_RESULT_TYPES=Object.freeze({ALL:"ALL",EVENTS:"EVENTS",HASHTAGS:"HASHTAGS",HASHTAG:"HASHTAG",COMPANY:"COMPANY",NEWSLETTERS:"CONTENT_SERIES",PEOPLE_FOLLOW:"PEOPLE_FOLLOW",PEOPLE_FOLLOWERS:"FOLLOWERS",PAGES:"PAGES"}))
function s(e){let{count:t=a,start:n=0,resultType:i,origin:r}=e
const l={start:n,count:t,...r?{origin:r}:{},query:{queryParameters:[{key:"resultType",value:[i]}],flagshipSearchIntent:"MYNETWORK_CURATION_HUB"}}
return[o.default,l]}}))
define("mynetwork/utils/notification-collection",["exports","@ember/debug","mynetwork/utils/mynetwork-request","rsvp","@ember/object","tracked-built-ins","global-utils/utils/array/push"],(function(e,t,n,i,o,r,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=class{constructor(e){let{store:t,jet:n,lastUpdateTimeRange:i}=e
this.storeShim=t
this.jet=n
this.lastUpdateTimeRange=i
this.elements=new r.TrackedArray([])
this.start=0
this.count=10
this.total=0
this.isScrollDisabled=!1}getPage(){return this.isScrollDisabled?(0,i.resolve)([]):this._fetchPage().then(this._handlePageSuccess.bind(this))}get getTotal(){return this.total}prepend(e){this.elements.unshift(e)}resetData(){this.start=0
this.count=10
this.isScrollDisabled=!1;(0,o.set)(this,"elements",new r.TrackedArray([]))}_fetchPage(){return n.default.getInvitationNotifications(this.storeShim,this.jet,{start:this.start,count:this.count,lastUpdateTimeRange:this.lastUpdateTimeRange})}_handlePageSuccess(e){if(null===e)return
const t=[...(0,o.get)(e,"elements")],n=(0,o.get)(e,"paging.start")??this.start,i=(0,o.get)(e,"paging.count")??this.count,r=(0,o.get)(e,"paging.total");(0,a.pushValues)(this.elements,t)
const l=r?n+t.length<r:t.length>0
this.isScrollDisabled=!l
this.total=r
this._lastPage=(0,o.get)(e,"paging")
this._lastMeta=(0,o.get)(e,"meta")
this.start=n+i
return e}}}))
define("mynetwork/utils/pem-tracking",["exports","@linkedin/ember-pem/utils/degradation-tracking-metadata"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.PEM_PRODUCT_NAMES=e.NEW_DEGRADATION_TRACKING_METADATA=e.DEGRADATION_TRACKING_METADATA=void 0
const n=e.PEM_PRODUCT_NAMES=Object.freeze({VOYAGER_MANAGE_MY_NETWORK:"Voyager - Manage My Network",VOYAGER_MY_NETWORK:"Voyager - My Network",VOYAGER_MY_NETWORK_NON_CRITICAL:"Voyager - My Network - Non Critical"})
e.DEGRADATION_TRACKING_METADATA=Object.freeze({CONNECTION_CONNECTIONS:new t.default("connection-connections","missing-pymk-grid",{productName:n.VOYAGER_MY_NETWORK}),CONNECTION_SUMMARY:new t.default("connection-summary","missing-connections",{productName:n.VOYAGER_MANAGE_MY_NETWORK}),COMMUNITY_SUMMARY:new t.default("community-summary","missing-community-summary",{productName:n.VOYAGER_MANAGE_MY_NETWORK}),COHORTS:new t.default("cohorts","missing-cohorts",{productName:n.VOYAGER_MY_NETWORK}),PYMK_GRID:new t.default("pymk-grid","missing-pymk-grid",{productName:n.VOYAGER_MY_NETWORK}),COHORTS_LIST:new t.default("cohorts-list","missing-cohorts-list",{productName:n.VOYAGER_MY_NETWORK})}),e.NEW_DEGRADATION_TRACKING_METADATA=Object.freeze({COMMUNITY_SUMMARY:new t.default("community-summary","missing-community-summary",{productName:n.VOYAGER_MY_NETWORK_NON_CRITICAL}),CONNECTIONS_SUMMARY:new t.default("connections-summary","missing-connections-summary",{productName:n.VOYAGER_MY_NETWORK_NON_CRITICAL}),INVITATION_PREVIEW:new t.default("invitation-preview","missing-invitation-preview",{productName:n.VOYAGER_MY_NETWORK})})}))
define("mynetwork/utils/suggestions-storage-util",["exports","mynetwork/utils/constants","global-utils/utils/is-browser"],(function(e,t,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
function i(e){try{n.default&&e&&window.sessionStorage.removeItem(e)}catch(e){}}const o={readFromStorage:function(){try{const e=function(){try{let e=null
n.default&&window.sessionStorage.length&&window.sessionStorage.getItem(t.CONNECTION_CONNECTIONS)&&(e=t.CONNECTION_CONNECTIONS)
return e}catch(e){return null}}()
if(n.default&&e){const t=[window.sessionStorage.getItem(e),e]
i(e)
return t}return[]}catch(e){return null}},saveToStorage:function(e,t){try{n.default&&window.sessionStorage.setItem(e,t)}catch(e){}},removeFromStorage:i}
e.default=o}))
define("mynetwork/utils/truncation-util",["exports","global-utils/utils/is-browser"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const n={isTextTruncated:function(e){return t.default&&e&&e.offsetHeight<e.scrollHeight}}
e.default=n}))
define("mynetwork/utils/uuid-generator",["exports","ember-uuid/utils/uuid-generator"],(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,"parse",{enumerable:!0,get:function(){return t.parse}})
Object.defineProperty(e,"unparse",{enumerable:!0,get:function(){return t.unparse}})
Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.v1}})
Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return t.v4}})}))
define("mynetwork/utils/validation-helpers",["exports","ember-cloud-filepicker/utils/validation-helpers"],(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.alias("ember-vector-images/utils/vector-url","mynetwork/utils/vector-url")
define("mynetwork/utils/window-helpers",["exports","ember-cloud-filepicker/utils/window-helpers"],(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]}}))}))}))

//# sourceMappingURL=engine.mapӘ