view","copy_success")()
this.persistentToastManager.success({message:e})}fetchNextPage(){this.hasNextPage&&this._fetchPageOfUpdates(this._pageIndex+1)}fetchPreviousPage(){this.hasPreviousPage&&this._fetchPageOfUpdates(this._pageIndex-1)}processTextareaInput(){if(this.updateListTextInput){var e
this._resetData()
this.updateListTextInput=null===(e=this.updateListTextInput)||void 0===e?void 0:e.trim()
const t=jSecure.sanitizeHTML(this.updateListTextInput)
this._processAndFetchUpdates(null==t?void 0:t.split("\n"))}}processUploadedFile(e){var t,i
this.updateListTextInput=""
this._resetData()
this._inputElement=e.target
const n=null===(t=this._inputElement)||void 0===t||null===(i=t.files)||void 0===i?void 0:i[0]
W.test(null==n?void 0:n.name)&&(r=n,p.default?(0,m.waitForPromise)(new c.Promise((e=>{const t=new window.FileReader
t.onload=()=>{e(t.result)}
t.readAsText(r)}))):(0,c.resolve)()).then((e=>{if(!(0,l.isDestroying)(this)){this._processAndFetchUpdates(e.split("\r\n"))
this._inputElement.value=""}}))
var r}scrollToUpdate(e){(0,f.default)(document.querySelector(`[data-urn-header="${e}"]`),50)}selectFile(){var e
null===(e=document.getElementById("update-list-csv-input"))||void 0===e||e.click()}selectPage(e){this._fetchPageOfUpdates(parseInt(e,10)-1)}_fetchPageOfUpdates(e){if(!this._updatePages[e]){this.isLoading=!0
this.storeShim.queryURL("voyagerFeedDebugUpdate",{params:{...V,backendUrns:this.updateUrnPages[e]},reload:!1}).then((t=>{if((0,l.isDestroying)(this))return
const i=t.elements
this._updatePages[e]=i
if(i){this.constructUpdateUrnMap(i)
this.updateClassificationScores(i)
this.socialCountsService.registerElementsList(i)}})).finally((()=>{(0,l.isDestroying)(this)||(this.isLoading=!1)}))}this._pageIndex=e
this.page=this._pageIndex}updateClassificationScores(e){e.forEach((e=>{var t,i
const{affinityTags:n}=e,r=null===(t=e.updateV2)||void 0===t||null===(i=t.updateMetadata)||void 0===i?void 0:i.urn
this._affinityTagsMap[r]={PostIntentClassifier:{},PoliticalClassifier:{},GoldClassifier:{}}
n.forEach((e=>{const t=e.label.trim(),i=parseFloat(e.score)
if("Other Post Intent"===t||"Share Achievement"===t||"Motivate or Inspire"===t||"Seek Help or Support"===t||"Share News Reporting"===t||"Share Opinion"===t||"Seek Job Opportunity"===t||"Thank or Congratulate"===t||"Share Job Opportunity"===t||"Share Knowledge or Advice"===t||"Market or Sell"===t||"Promote Product or Service"===t||"Share Event"===t||"Share Company Update"===t||"Share Personal Update"===t){this._affinityTagsMap[r].PostIntentClassifier.label=t
this._affinityTagsMap[r].PostIntentClassifier.score=i}else if("Political"===t){this._affinityTagsMap[r].PoliticalClassifier.score=i
this._affinityTagsMap[r].PoliticalClassifier.label=i>=.95?"Political":"Not Political"}else if("Gold"===t){this._affinityTagsMap[r].GoldClassifier.score=i
const e=parseFloat(i).toFixed(2)
this._affinityTagsMap[r].GoldClassifier.label=e>=.8?`Gold (score ${e} > threshold 0.8)`:`Not Gold (score ${e} < threshold 0.8)`}}))}))}constructUpdateUrnMap(e){e.forEach((e=>{var t,i
const n=null===(t=e.updateV2)||void 0===t||null===(i=t.updateMetadata)||void 0===i?void 0:i.urn
this.updateUrnMap[n]=e}))}_processAndFetchUpdates(e){var t
const i=(null==e||null===(t=e.map((e=>{var t
return null===(t=Q(e))||void 0===t?void 0:t.trim()})))||void 0===t?void 0:t.filter((e=>(null==e?void 0:e.startsWith("urn:li:activity"))&&!e.includes(" "))))||[]
this.urns=i.join("|")
this.updateUrnPages=(0,h.chunk)([10,i])
this._fetchPageOfUpdates(0)}_resetData(){this.updateUrnPages=new u.TrackedArray
this.page=void 0
this._updatePages=new u.TrackedArray
this.urns=void 0
this.description=void 0
this.meta=void 0
this.title=void 0
this._affinityTagsMap={}
this.updateUrnMap={}}},S=(0,n.default)(T.prototype,"clipboard",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,n.default)(T.prototype,"i18n",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,n.default)(T.prototype,"persistentToastManager",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,n.default)(T.prototype,"router",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,n.default)(T.prototype,"storeShim",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,n.default)(T.prototype,"socialCountsService",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,n.default)(T.prototype,"description",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,n.default)(T.prototype,"isLoading",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),M=(0,n.default)(T.prototype,"meta",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,n.default)(T.prototype,"title",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,n.default)(T.prototype,"page",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,n.default)(T.prototype,"updateListTextInput",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),R=(0,n.default)(T.prototype,"updateUrnPages",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,n.default)(T.prototype,"urns",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,n.default)(T.prototype,"_pageIndex",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,n.default)(T.prototype,"_updatePages",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,n.default)(T.prototype,"_politicalClassifierSwitch",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),H=(0,n.default)(T.prototype,"_postIntentClassifierSwitch",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),G=(0,n.default)(T.prototype,"_goldClassifierSwitch",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),q=(0,n.default)(T.prototype,"_affinityTagsMap",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,n.default)(T.prototype,"updateUrnMap",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(T.prototype,"clearUpdates",[d.action],Object.getOwnPropertyDescriptor(T.prototype,"clearUpdates"),T.prototype),(0,n.default)(T.prototype,"switchPoliticalClassifier",[d.action],Object.getOwnPropertyDescriptor(T.prototype,"switchPoliticalClassifier"),T.prototype),(0,n.default)(T.prototype,"switchPostIntentClassifier",[d.action],Object.getOwnPropertyDescriptor(T.prototype,"switchPostIntentClassifier"),T.prototype),(0,n.default)(T.prototype,"switchGoldClassifier",[d.action],Object.getOwnPropertyDescriptor(T.prototype,"switchGoldClassifier"),T.prototype),(0,n.default)(T.prototype,"copyLink",[d.action],Object.getOwnPropertyDescriptor(T.prototype,"copyLink"),T.prototype),(0,n.default)(T.prototype,"fetchNextPage",[d.action],Object.getOwnPropertyDescriptor(T.prototype,"fetchNextPage"),T.prototype),(0,n.default)(T.prototype,"fetchPreviousPage",[d.action],Object.getOwnPropertyDescriptor(T.prototype,"fetchPreviousPage"),T.prototype),(0,n.default)(T.prototype,"processTextareaInput",[d.action],Object.getOwnPropertyDescriptor(T.prototype,"processTextareaInput"),T.prototype),(0,n.default)(T.prototype,"processUploadedFile",[d.action],Object.getOwnPropertyDescriptor(T.prototype,"processUploadedFile"),T.prototype),(0,n.default)(T.prototype,"scrollToUpdate",[d.action],Object.getOwnPropertyDescriptor(T.prototype,"scrollToUpdate"),T.prototype),(0,n.default)(T.prototype,"selectFile",[d.action],Object.getOwnPropertyDescriptor(T.prototype,"selectFile"),T.prototype),(0,n.default)(T.prototype,"selectPage",[d.action],Object.getOwnPropertyDescriptor(T.prototype,"selectPage"),T.prototype),T)}))
define("feed/engine",["exports","ember-engines/engine","ember-load-initializers","strict-resolver"],(function(e,t,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const r="feed",l=t.default.extend({modulePrefix:r,Resolver:n.default});(0,i.default)(l,r)
e.default=l}))
define.alias("ember-truth-helpers/helpers/and","feed/helpers/and")
define.alias("artdeco-datepicker/helpers/artdeco-adjust-date-for-timezone","feed/helpers/artdeco-adjust-date-for-timezone")
define.alias("artdeco-datepicker/helpers/artdeco-is-between-dates","feed/helpers/artdeco-is-between-dates")
define.alias("ember-media-player/helpers/autoplay-media","feed/helpers/autoplay-media")
define.alias("artdeco-datepicker/helpers/cal-dates-equal","feed/helpers/cal-dates-equal")
define.alias("ember-element-helper/helpers/element","feed/helpers/element")
define.alias("ember-holy-futuristic-template-namespacing-batman/helpers/-translate-dynamic-2","feed/helpers/ember-holy-futuristic-template-namespacing-batman-translate-dynamic-2")
define("feed/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","feed/helpers/eq")
define.alias("ember-media-player/helpers/format-autoplay","feed/helpers/format-autoplay")
define.alias("ember-cli-pemberly-i18n/helpers/format-number","feed/helpers/format-number")
define.alias("ember-semaphore/helpers/format-title","feed/helpers/format-title")
define.alias("hue-web-icons/helpers/get-asset-url","feed/helpers/get-asset-url")
define.alias("ember-truth-helpers/helpers/gt","feed/helpers/gt")
define.alias("ember-truth-helpers/helpers/gte","feed/helpers/gte")
define.alias("@linkedin/hue-web-artdeco-migration-runtime/helpers/convert-to-icon-name","feed/helpers/hue-web-artdeco-icon-migration-runtime")
define.alias("@linkedin/hue-web-artdeco-migration-runtime/helpers/convert-to-icon-v2","feed/helpers/hue-web-artdeco-li-icon-migration-runtime-v2")
define.alias("@linkedin/hue-web-artdeco-migration-runtime/helpers/convert-to-icon-path","feed/helpers/hue-web-artdeco-li-icon-migration-runtime")
define.alias("@linkedin/hue-web-artdeco-migration-runtime/helpers/convert-argument","feed/helpers/hue-web-artdeco-migration-runtime")
define.alias("helpcenter-in-product-ember/helpers/includes","feed/helpers/includes")
define.alias("ember-truth-helpers/helpers/is-array","feed/helpers/is-array")
define("feed/helpers/is-dash-update",["exports","@ember/component/helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.isDashUpdate=i
function i(e){let[t]=e
return!!t&&"com.linkedin.voyager.dash.feed.Update"===t.$type}const n=(0,t.helper)(i)
e.default=n}))
define.alias("ember-truth-helpers/helpers/is-empty","feed/helpers/is-empty")
define.alias("ember-truth-helpers/helpers/is-equal","feed/helpers/is-equal")
define("feed/helpers/is-occlusion-enabled",["exports","@ember/component/helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const i=(0,t.helper)((function(e){if(e.length<1)return
const[t,i,n]=e
return t>=1||!!(0===t&&i>=1||n&&1===t)}))
e.default=i}))
define("feed/helpers/is-page-admin",["exports","@ember/component/helper"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.isPageAdmin=i
function i(e){var t
let[i]=e
return null==i||null===(t=i.elements)||void 0===t?void 0:t.some((e=>{var t
return null==e||null===(t=e.viewerPermissions)||void 0===t?void 0:t.canCreateOrganicShare}))}const n=(0,t.helper)(i)
e.default=n}))
define.alias("artdeco-icons-web/helpers/li-icon","feed/helpers/li-icon")
define.alias("ember-async-data/helpers/load","feed/helpers/load")
define.alias("ember-truth-helpers/helpers/lt","feed/helpers/lt")
define.alias("ember-truth-helpers/helpers/lte","feed/helpers/lte")
define.alias("ember-truth-helpers/helpers/not-eq","feed/helpers/not-eq")
define.alias("ember-truth-helpers/helpers/not","feed/helpers/not")
define.alias("ember-truth-helpers/helpers/or","feed/helpers/or")
define("feed/helpers/page-title",["exports","ember-page-title/helpers/page-title"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=t.default}))
define("feed/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","feed/helpers/route-action")
define.alias("ember-app-scheduler/helpers/route-idle","feed/helpers/route-idle")
define.alias("ember-media-player/helpers/seek-media","feed/helpers/seek-media")
define.alias("ember-set-helper/helpers/set","feed/helpers/set")
define.alias("ember-cli-pemberly-i18n/helpers/t","feed/helpers/t")
define.alias("ember-truth-helpers/helpers/xor","feed/helpers/xor")
define.alias("ember-uuid","feed/index")
define("feed/initializers/coordinator-setup",["exports","feed/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("feed/initializers/icons",["exports","artdeco-icons-web/src/icons","feed/config/environment"],(function(e,t,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
function n(e){throw e}e.default={name:"icons",initialize:function(){const{environment:e,APP:r}=i.default
let l,o
r&&({artdecoCustomSpriteUrl:l,artdecoCustomSpriteName:o}=r)
const a="test"!==e
t.default.load(a,l,o).catch(n)}}}))
define.alias("ember-cli-pemberly-lix/initializers/lix","feed/initializers/lix")
define.alias("ember-m3/initializers/m3-store","feed/initializers/m3-store")
define("feed/instance-initializers/artdeco",["exports","artdeco-eyeglass"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.initialize=r
const i=[t.default.contextClasses,t.default.floatingLabel,t.default.focusOutline]
function n(e,t){const n=e[t]
e[t]=function(){i.forEach((e=>e&&"function"==typeof e.teardown&&e.teardown()))
n&&"function"==typeof n&&n.call(e)}}function r(e){if("undefined"!=typeof document){i.forEach((e=>e.install()))
"function"==typeof e.willDestroy?n(e,"willDestroy"):"function"==typeof e.destroy&&n(e,"destroy")}}e.default={name:"artdeco",initialize:r}}))
define.alias("ember-ref-bucket/instance-initializers/global-ref-cleanup","feed/instance-initializers/global-ref-cleanup")
define.alias("video/instance-initializers/media-plugins","feed/instance-initializers/media-plugins")
define.alias("tracking-overlay-service/instance-initializers/tracking-overlay","feed/instance-initializers/tracking-overlay")
define("feed/models/coordinator",["exports","@ember/object","@ember/object/evented","feed/models/obj-hash","ember-drag-drop/utils/proxy-unproxy-objects"],(function(e,t,i,n,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=t.default.extend(i.default,{objectMap:(0,t.computed)((function(){return n.default.create()})),getObject:function(e,t){t=t||{}
var i=this.get("objectMap").getObj(e)
if(i.ops.source&&!i.ops.source.isDestroying&&!i.ops.source.isDestroyed){const e=i.ops.source.action
"function"==typeof e&&e(i.obj)
"string"==typeof e&&"function"==typeof i.ops.source.target[e]&&i.ops.source.target[e](i.obj)}if(i.ops.target&&!i.ops.target.isDestroying&&!i.ops.target.isDestroyed){const e=i.ops.target.action
"function"==typeof e&&e(i.obj)
"string"==typeof e&&"function"==typeof i.ops.target.source[e]&&i.ops.target.source[e](i.obj)}this.trigger("objectMoved",{obj:(0,r.unwrapper)(i.obj),source:i.ops.source,target:t.target})
return(0,r.unwrapper)(i.obj)},setObject:function(e,t){t=t||{}
return this.get("objectMap").add({obj:e,ops:t})}})}))
define("feed/models/obj-hash",["exports","@ember/object","@ember/object/computed","@ember/array"],(function(e,t,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=t.default.extend({contentLength:0,length:(0,i.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,n.A)(e)}})}))
define.alias("artdeco-datepicker/modifiers/artdeco-calendar-click-watcher","feed/modifiers/artdeco-calendar-click-watcher")
define.alias("ember-ref-bucket/modifiers/create-ref","feed/modifiers/create-ref")
define.alias("ember-css-transitions/modifiers/css-transition","feed/modifiers/css-transition")
define.alias("@ember/render-modifiers/modifiers/did-insert","feed/modifiers/did-insert")
define.alias("ember-scroll-modifiers/modifiers/did-intersect","feed/modifiers/did-intersect")
define.alias("ember-resize-modifier/modifiers/did-resize","feed/modifiers/did-resize")
define.alias("@ember/render-modifiers/modifiers/did-update","feed/modifiers/did-update")
define("feed/modifiers/disable-click",["exports","ember-modifier"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
function i(e){e.stopImmediatePropagation()
e.preventDefault()}const n=(0,t.modifier)((function(e,t,n){let{selectors:r={}}=n
const l=[]
Object.keys(r).forEach((t=>{const n=e.querySelectorAll(r[t])
n.length&&n.forEach((e=>{l.push(e)
e.addEventListener("click",i,{capture:!0})}))}))
return()=>{l.forEach((e=>e.removeEventListener("click",i,!0)))}}),{eager:!1})
e.default=n}))
define.alias("ember-finite-scroll/modifiers/ember-finite-scroll/focus","feed/modifiers/ember-finite-scroll/focus")
define.alias("image-editor/modifiers/fabric","feed/modifiers/fabric")
define("feed/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[i]=t
i(e)
return()=>{}}))}))
define.alias("ember-prop-modifier","feed/modifiers/prop")
define.alias("ember-scroll-modifiers/modifiers/scroll-into-view","feed/modifiers/scroll-into-view")
define("feed/modifiers/set-style",["exports","ember-modifier","@ember/debug"],(function(e,t,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const n=(0,t.modifier)((function(e,t,i){let[n]=t,{to:r}=i
void 0!==r&&(e.style[n]=r)}),{eager:!1})
e.default=n}))
define.alias("ember-sortable/modifiers/sortable-group","feed/modifiers/sortable-group")
define.alias("ember-sortable/modifiers/sortable-handle","feed/modifiers/sortable-handle")
define.alias("ember-sortable/modifiers/sortable-item","feed/modifiers/sortable-item")
define.alias("@ember/render-modifiers/modifiers/will-destroy","feed/modifiers/will-destroy")
define.alias("ember-cloud-filepicker/providers/base-provider","feed/providers/base-provider")
define.alias("ember-cloud-filepicker/providers/dropbox-provider","feed/providers/dropbox-provider")
define.alias("ember-cloud-filepicker/providers/onedrive-provider","feed/providers/onedrive-provider")
define("feed/providers/slideshare-provider",["exports","ember-cloud-filepicker/providers/slideshare-provider"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
var i={}
Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})
Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(i,n)||n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))}))}))
define("feed/routes/aggregated-share",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","rsvp","@ember/service","feed-utils/utils/authenticated-member-actor","@ember/routing/route","graphql-queries/queries/feed/single-update-by-backend-urn-or-nss.graphql"],(function(e,t,i,n,r,l,o,a,s,d,u){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var c,p,m,f,h,g,b,y,_,v,E,w,T
e.default=(c=(0,a.inject)("authentication@authenticated-user"),p=(0,a.inject)("feed-tracking@feed-action-event"),m=(0,a.inject)("global-services@store-shim"),f=(0,a.inject)("@linkedin/ember-restli-graphql@graphql"),h=(0,a.inject)("jet"),g=(0,a.inject)("social-counts-service@social-counts"),b=class extends d.default{constructor(){super(...arguments);(0,i.default)(this,"pageKey","flagship3_feed_aggregation");(0,t.default)(this,"authenticatedUser",y,this);(0,t.default)(this,"feedActionEvent",_,this);(0,t.default)(this,"storeShim",v,this);(0,t.default)(this,"graphql",E,this);(0,t.default)(this,"jet",w,this);(0,t.default)(this,"socialCountsService",T,this)}model(e){let{aggregatedUpdateUrn:t}=e
if((0,l.isDestroying)(this))return
super.model(...arguments)
const{storeShim:i,authenticatedUser:n,jet:r}=this,a=this.feedActionEvent.getModuleKeyForCurrentPage(),d=(0,s.default)(i,n)
return(0,o.hash)({authenticatedActor:d,update:this.graphql.executeQuery(u.default,{urnOrNss:t,moduleKey:a}).then((e=>{var t,i,n
if(!(0,l.isDestroying)(this))return null==e||null===(t=e.data)||void 0===t||null===(i=t.feedDashUpdatesByBackendUrnOrNss)||void 0===i||null===(n=i.elements)||void 0===n?void 0:n[0]})).catch((e=>{var t
if((0,l.isDestroying)(this))throw e
let i=e.message
const n=null===(t=e.errors)||void 0===t?void 0:t.map(((e,t)=>{let{message:i,extensions:n}=e
return`${t+1} - Message: ${i}, Extensions: ${JSON.stringify(n)}`})).join("; ")
n&&(i=`${i} | Errors: ${n}`)
null==r||r.error(i,"aggregated-share-update-graphql-error",{shouldRethrow:!1})
throw e}))})}afterModel(e){var t
if((0,l.isDestroying)(this))return
const i=null===(t=e.update)||void 0===t?void 0:t.socialDetail
i&&this.socialCountsService.registerSocialCounts(i)}},y=(0,n.default)(b.prototype,"authenticatedUser",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,n.default)(b.prototype,"feedActionEvent",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,n.default)(b.prototype,"storeShim",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,n.default)(b.prototype,"graphql",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,n.default)(b.prototype,"jet",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,n.default)(b.prototype,"socialCountsService",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b)}))
define("feed/routes/application",["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","@ember/routing/route","data-layer/utils/feed/member-actor","global-utils/utils/is-browser"],(function(e,t,i,n,r,l,o,a,s,d){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var u,c,p,m,f,h,g
e.default=(u=(0,o.inject)("authentication@authenticated-user"),c=(0,o.inject)("prefetch"),p=(0,o.inject)("lix"),m=class extends a.default{constructor(){super(...arguments);(0,t.default)(this,"authenticatedUser",f,this);(0,t.default)(this,"prefetch",h,this);(0,t.default)(this,"lix",g,this)}get isNileMvpEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.feed-sdui-main-feed",{peek:!0})}beforeModel(e){super.beforeModel(...arguments)
const t=e.to?e.to.queryParams:{},{highlightedUpdateUrn:i}=t
i&&this.isNileMvpEnabled&&this.replaceWithExternal("feed.update.index",i)
return(0,s.populateMemberActor)(this.authenticatedUser)}didTransition(){d.default&&this.prefetch.prefetchAssets("feed-detail")
return!0}},f=(0,n.default)(m.prototype,"authenticatedUser",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,n.default)(m.prototype,"prefetch",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,n.default)(m.prototype,"lix",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(m.prototype,"didTransition",[l.action],Object.getOwnPropertyDescriptor(m.prototype,"didTransition"),m.prototype),m)}))
define("feed/routes/creator-growth",["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,i,n,r,l,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var a,s,d
e.default=(a=(0,o.inject)("router"),s=class extends l.default{constructor(){super(...arguments);(0,t.default)(this,"router",d,this)}beforeModel(e){var t,i
const n=null==e||null===(t=e.to)||void 0===t||null===(i=t.params)||void 0===i?void 0:i.subpath
"landing"===n?this.router.replaceWith("feed.index",{queryParams:{showCreatorGrowthLandingPageModal:!0}}):"sharebox"===n?this.router.replaceWith("feed.index",{queryParams:{showCreatorGrowthLandingPageModal:!0,showShareboxModal:!0}}):this.router.replaceWith("feed.index")}},d=(0,n.default)(s.prototype,"router",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s)}))
define("feed/routes/error",["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","global-utils/utils/is-browser","voyager-web/config/environment","global-utils/utils/url"],(function(e,t,i,n,r,l,o,a,s,d,u,c){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var p,m,f
e.default=(p=(0,o.inject)("tracking"),m=class extends a.default{constructor(){super(...arguments);(0,t.default)(this,"tracking",f,this)
this.tracking.firePageViewEvent("flagship3_feed_error")}setupController(e){if(!(0,l.isDestroying)(this)){super.setupController(...arguments)
if(d.default){(0,s.setProperties)(e,{isDev:"development"===u.default.environment,helpCenterLink:`https://${(0,c.getDomain)()}/help/linkedin`})
document.body.classList.add("boot-complete")}}}},f=(0,n.default)(m.prototype,"tracking",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m)}))
define("feed/routes/follow",["exports","@ember/routing/route"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
class i extends t.default{beforeModel(){this.transitionToExternal("mynetwork.discover-hub")}}e.default=i}))
define("feed/routes/followers",["exports","@ember/routing/route"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
class i extends t.default{beforeModel(e){const t=e.to?e.to.queryParams:{},{isDisplayCreatorBanner:i,newFollowers:n,startDate:r,newFollowersBanner:l}=t
this.transitionToExternal("mynetwork.network-manager.people-follow.followers",{queryParams:{isDisplayCreatorBanner:i,newFollowers:n,startDate:r,newFollowersBanner:l}})}}e.default=i}))
define("feed/routes/following",["exports","@ember/routing/route"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
class i extends t.default{beforeModel(e){const t=e.to?e.to.queryParams:{},{isDisplayCreatorBanner:i}=t
this.transitionToExternal("mynetwork.network-manager.people-follow.following",{queryParams:{isDisplayCreatorBanner:i}})}}e.default=i}))
define("feed/routes/hashtag-feed",["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","rsvp","feed-utils/utils/constants","feed-requests/utils/collection-queries","community-panel/utils/community-panel-query","feed-utils/utils/authenticated-member-actor","feed-utils/utils/error-parsing","storyline-helpers/utils/constants","graphql-queries/queries/feed/identity-dash-profiles-by-member-identity.graphql"],(function(e,t,i,n,r,l,o,a,s,d,u,c,p,m,f,h){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var g,b,y,_,v,E,w,T,S,P,k,O,C
e.default=(g=(0,o.inject)("authentication@authenticated-user"),b=(0,o.inject)("client-sensor-web@client-sensor"),y=(0,o.inject)("jet"),_=(0,o.inject)("community-panel@interest-package-data-manager"),v=(0,o.inject)("global-services@store-shim"),E=(0,o.inject)("@linkedin/ember-restli-graphql@graphql"),w=class extends a.default{constructor(){super(...arguments);(0,t.default)(this,"authenticatedUser",T,this);(0,t.default)(this,"clientSensor",S,this);(0,t.default)(this,"jet",P,this);(0,t.default)(this,"interestPackageDataManager",k,this);(0,t.default)(this,"storeShim",O,this);(0,t.default)(this,"graphql",C,this)}model(){if((0,l.isDestroying)(this))return
const{authenticatedUser:e,interestPackageDataManager:t,storeShim:i,graphql:n}=this,r={count:f.StorylineConstants.NUM_STORYLINES_TO_FETCH},o=(0,u.getTopics)({graphql:n,params:r}).catch((e=>{if((0,l.isDestroying)(this))throw e
if((0,m.isHttpErrorStatus)(e)){this.jet.logError(new Error("Network request failed while attempting to get blended topics"),d.JET_TAGS.GET_CONTENT_TOPIC_DATA,!1)
return[]}throw e}))
return(0,s.hash)({storylines:o,authenticatedMemberActor:(0,p.default)(i,e),entitiesFollowed:(0,c.default)({interestPackageDataManager:t,clientSensor:this.clientSensor,graphql:this.graphql,jet:this.jet}),vieweeMemberBadges:this.fetchVieweeMemberBadges({memberId:e.memberId})})}fetchVieweeMemberBadges(e){let{memberId:t}=e
return this.graphql.executeQuery(h.default,{memberIdentity:t}).then((e=>{var t,i,n,r,o
if((0,l.isDestroying)(this))return
const a=null===(t=e.data)||void 0===t||null===(i=t.identityDashProfilesByMemberIdentity)||void 0===i||null===(n=i.elements)||void 0===n?void 0:n[0]
return{premium:(null==a?void 0:a.premium)&&(null==a?void 0:a.showPremiumSubscriberBadge),backgroundImage:null==a||null===(r=a.backgroundPicture)||void 0===r||null===(o=r.displayImageReferenceResolutionResult)||void 0===o?void 0:o.vectorImage}})).catch((e=>{if((0,l.isDestroying)(this))throw e
if(!(0,l.isDestroying)(this)&&(0,m.isHttpErrorStatus)(e)){this.jet.logError(new Error("Network request failed while attempting to retrieve profile member badges in hashtag feed"),d.JET_TAGS.GET_PROFILE_MEMBER_BADGES,!1)
return[]}throw e}))}},T=(0,n.default)(w.prototype,"authenticatedUser",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,n.default)(w.prototype,"clientSensor",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,n.default)(w.prototype,"jet",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,n.default)(w.prototype,"interestPackageDataManager",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,n.default)(w.prototype,"storeShim",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,n.default)(w.prototype,"graphql",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w)}))
define("feed/routes/hashtag-feed/by-id",["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","global-utils/utils/parent-route-name","feed-utils/utils/constants","feed-utils/utils/error-parsing","feed/routes/hashtag-feed/hashtag-base","feed-utils/utils/client-sensor-constants","tracked-built-ins"],(function(e,t,i,n,r,l,o,a,s,d,u,c,p,m,f){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var h,g,b,y,_,v,E
e.default=(h=(0,o.inject)("client-sensor-web@client-sensor"),g=(0,o.inject)("feed@content-topic-feed"),b=(0,o.inject)("jet"),y=class extends p.default{constructor(){super(...arguments);(0,t.default)(this,"clientSensor",_,this);(0,t.default)(this,"contentTopicFeedService",v,this);(0,t.default)(this,"jet",E,this);(0,i.default)(this,"channelId",u.FeedConstants.DESKTOP_HASHTAG_FEED_SU_CHANNELID)}model(e){let{hashtagId:t}=e
if((0,l.isDestroying)(this))return
super.model(...arguments)
const i=`urn:li:hashtag:${t}`;(0,a.set)(this,"urn",i)
const n={contentTopicData:this.contentTopicFeedService.getContentTopicDataByUrn(i).catch((e=>{var t,i,n
if((0,l.isDestroying)(this))throw e
if(parseInt(null==e||null===(t=e.errors)||void 0===t||null===(i=t[0])||void 0===i||null===(n=i.extensions)||void 0===n?void 0:n.status,10)===u.HASHTAG_MARKED_AS_SPAM_ERROR_CODE){(0,a.set)(this,"caughtErrorMarkedAsSpam",!0)
this._fireErrorPageViewEvent()}if((0,c.isHttpErrorStatus)(e)){this.jet.logError(new Error("Network request failed while attempting to retrieve content topic data"),u.JET_TAGS.GET_CONTENT_TOPIC_DATA,!1)
return a.default.create()}throw e})),updateCollections:this._fetchInitialUpdates()},{otherRequests:r}=this
return(0,s.hash)({...r,...n})}setupController(e){if((0,l.isDestroying)(this))return
super.setupController(...arguments);(0,a.set)(e,"shouldFocusOnHashtagFeedContent",this.shouldFocusOnHashtagFeedContent)
const t=(0,d.default)(this),i=this.modelFor(t),{authenticatedMemberActor:n,entitiesFollowed:r,storylines:o,vieweeMemberBadges:s}=i;(0,a.setProperties)(e,{authenticatedMemberActor:n,"model.entitiesFollowed":r,"model.storylines":o,"model.vieweeMemberBadges":s,shareOrigin:"HASHTAG_FEED"})}_fetchInitialUpdates(){(0,a.setProperties)(this,{caughtErrorLoadingUpdates:!1,caughtErrorMarkedAsSpam:!1,paginationToken:void 0,updateCollections:new f.TrackedArray([]),updatePosition:1})
return this.contentTopicFeedService.getUpdateCollectionByUrn(this.urn,{sortOrder:this.sortOrder,highlightedUpdateUrns:this.highlightedUpdateUrns,originTrackingId:this.originTrackingId}).then((e=>{if((0,l.isDestroying)(this))return
const t=e.data.feedDashInterestUpdatesByInterestFeedByUrn
this.clientSensor.incrementMetricCounter({groupName:m.CLIENT_SENSOR_GROUP_NAME,metricName:m.HashtagFeedClientSensorMetrics.HASHTAG_BY_ID_INITIAL_UPDATE_REQUEST_SUCCESS})
return this._handleInitialUpdatesSuccess(t)})).catch((e=>{if((0,l.isDestroying)(this))throw e
this.clientSensor.incrementMetricCounter({groupName:m.CLIENT_SENSOR_GROUP_NAME,metricName:m.HashtagFeedClientSensorMetrics.HASHTAG_BY_ID_INITIAL_UPDATE_REQUEST_FAILED});(0,a.set)(this,"caughtErrorLoadingUpdates",!0)
this._fireErrorPageViewEvent()
if(!(0,c.isHttpErrorStatus)(e))throw e
this.jet.logError(new Error("Network request failed while attempting to retrieve initial set of feed updates"),u.JET_TAGS.GET_UPDATES,!1)}))}onNextPage(e){var t
if(!this.caughtErrorLoadingUpdates&&this.paginationState)if(null!==(t=this.paginationState)&&void 0!==t&&t.hasNextPage){this.paginationState.getNextPagingValues()
e.resolve(this.contentTopicFeedService.getUpdateCollectionByUrn(this.urn,{sortOrder:this.sortOrder,paginationToken:this.paginationToken,paginationState:this.paginationState}).then((e=>{if((0,l.isDestroying)(this))return
const t=e.data.feedDashInterestUpdatesByInterestFeedByUrn
this.clientSensor.incrementMetricCounter({groupName:m.CLIENT_SENSOR_GROUP_NAME,metricName:m.HashtagFeedClientSensorMetrics.HASHTAG_BY_ID_SUBSEQUENT_UPDATE_REQUEST_SUCCESS})
return this._handleInitialUpdatesSuccess(t)})).catch((e=>{if((0,l.isDestroying)(this))throw e
this.clientSensor.incrementMetricCounter({groupName:m.CLIENT_SENSOR_GROUP_NAME,metricName:m.HashtagFeedClientSensorMetrics.HASHTAG_BY_ID_SUBSEQUENT_UPDATE_REQUEST_FAILED});(0,a.set)(this,"caughtErrorLoadingUpdates",!0)
this._fireErrorPageViewEvent()
const{controller:t}=this
t&&(0,a.set)(t,"caughtErrorLoadingUpdates",!0)
throw e})))}else e.resolve(!1)
else e.reject(null)}},_=(0,n.default)(y.prototype,"clientSensor",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,n.default)(y.prototype,"contentTopicFeedService",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,n.default)(y.prototype,"jet",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(y.prototype,"onNextPage",[a.action],Object.getOwnPropertyDescriptor(y.prototype,"onNextPage"),y.prototype),y)}))
define("feed/routes/hashtag-feed/by-keyword",["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","feed/routes/hashtag-feed/hashtag-base","global-utils/utils/parent-route-name","feed-utils/utils/constants","feed-utils/utils/error-parsing","feed-utils/utils/client-sensor-constants","tracked-built-ins","search-utils/utils/constants"],(function(e,t,i,n,r,l,o,a,s,d,u,c,p,m,f,h){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var g,b,y,_,v,E,w,T,S
e.default=(g=(0,o.inject)("client-sensor-web@client-sensor"),b=(0,o.inject)("feed@content-topic-feed"),y=(0,o.inject)("jet"),_=(0,o.inject)("router"),v=class extends d.default{constructor(){super(...arguments);(0,t.default)(this,"clientSensor",E,this);(0,t.default)(this,"contentTopicFeedService",w,this);(0,t.default)(this,"jet",T,this);(0,t.default)(this,"router",S,this);(0,i.default)(this,"channelId",c.FeedConstants.DESKTOP_HASHTAG_FEED_SU_CHANNELID);(0,i.default)(this,"queryParams",{highlightedUpdateUrns:{refreshModel:!0},originTrackingId:{refreshModel:!0},keywords:{refreshModel:!0}})}beforeModel(e){super.beforeModel(...arguments)
const t=e.to?e.to.queryParams.keywords:null,i=t?`#${t}`:null
this.router.transitionTo("search.results.generic","all",{queryParams:{keywords:i,origin:h.ORIGINS.GLOBAL_SEARCH_HEADER}})
t||this.router.transitionTo("feed.index")}model(e){let{keywords:t}=e
if((0,l.isDestroying)(this))return
super.model(...arguments);(0,a.set)(this,"keywords",t)
const i={contentTopicData:this.contentTopicFeedService.getContentTopicDataByKeywords(t).catch((e=>{var t,i,n
if((0,l.isDestroying)(this))throw e
if(parseInt(null==e||null===(t=e.errors)||void 0===t||null===(i=t[0])||void 0===i||null===(n=i.extensions)||void 0===n?void 0:n.status,10)===c.HASHTAG_MARKED_AS_SPAM_ERROR_CODE){(0,a.set)(this,"caughtErrorMarkedAsSpam",!0)
this._fireErrorPageViewEvent()}if((0,p.isHttpErrorStatus)(e)){this.jet.logError(new Error("Network request failed while attempting to retrieve content topic data"),c.JET_TAGS.GET_CONTENT_TOPIC_DATA,!1)
return a.default.create()}throw e})),updateCollections:this._fetchInitialUpdates()}
return(0,s.hash)(i)}resetController(e){super.resetController(...arguments);(0,a.set)(e,"keywords",void 0)}setupController(e){if((0,l.isDestroying)(this))return
super.setupController(...arguments)
const t=(0,u.default)(this),i=this.modelFor(t),{authenticatedMemberActor:n,entitiesFollowed:r,storylines:o,vieweeMemberBadges:s}=i;(0,a.setProperties)(e,{authenticatedMemberActor:n,"model.entitiesFollowed":r,"model.storylines":o,"model.vieweeMemberBadges":s,shareOrigin:"HASHTAG_FEED"})}_fetchInitialUpdates(){(0,a.setProperties)(this,{caughtErrorLoadingUpdates:!1,caughtErrorMarkedAsSpam:!1,paginationToken:void 0,updateCollections:new f.TrackedArray([]),updatePosition:1})
return this.contentTopicFeedService.getUpdateCollectionByKeywords(this.keywords,{sortOrder:this.sortOrder,highlightedUpdateUrns:this.highlightedUpdateUrns,originTrackingId:this.originTrackingId}).then((e=>{if((0,l.isDestroying)(this))return
const t=e.data.feedDashInterestUpdatesByInterestFeedByKeywords
this.clientSensor.incrementMetricCounter({groupName:m.CLIENT_SENSOR_GROUP_NAME,metricName:m.HashtagFeedClientSensorMetrics.HASHTAG_BY_KEYWORD_INITIAL_UPDATE_REQUEST_SUCCESS})
return this._handleInitialUpdatesSuccess(t)})).catch((e=>{if((0,l.isDestroying)(this))throw e
this.clientSensor.incrementMetricCounter({groupName:m.CLIENT_SENSOR_GROUP_NAME,metricName:m.HashtagFeedClientSensorMetrics.HASHTAG_BY_KEYWORD_INITIAL_UPDATE_REQUEST_FAILED});(0,a.set)(this,"caughtErrorLoadingUpdates",!0)
this._fireErrorPageViewEvent()
if(!(0,p.isHttpErrorStatus)(e))throw e
this.jet.logError(new Error("Network request failed while attempting to retrieve initial set of feed updates"),c.JET_TAGS.GET_UPDATES,!1)}))}onNextPage(e){var t
if(!this.caughtErrorLoadingUpdates&&this.paginationState)if(null!==(t=this.paginationState)&&void 0!==t&&t.hasNextPage){this.paginationState.getNextPagingValues()
e.resolve(this.contentTopicFeedService.getUpdateCollectionByKeywords(this.keywords,{sortOrder:this.sortOrder,paginationToken:this.paginationToken,paginationState:this.paginationState}).then((e=>{if((0,l.isDestroying)(this))return
const t=e.data.feedDashInterestUpdatesByInterestFeedByKeywords
this.clientSensor.incrementMetricCounter({groupName:m.CLIENT_SENSOR_GROUP_NAME,metricName:m.HashtagFeedClientSensorMetrics.HASHTAG_BY_KEYWORD_SUBSEQUENT_UPDATE_REQUEST_SUCCESS})
return this._handleInitialUpdatesSuccess(t)})).catch((e=>{if((0,l.isDestroying)(this))throw e
this.clientSensor.incrementMetricCounter({groupName:m.CLIENT_SENSOR_GROUP_NAME,metricName:m.HashtagFeedClientSensorMetrics.HASHTAG_BY_KEYWORD_SUBSEQUENT_UPDATE_REQUEST_FAILED});(0,a.set)(this,"caughtErrorLoadingUpdates",!0)
this._fireErrorPageViewEvent()
const{controller:t}=this
t&&(0,a.set)(t,"caughtErrorLoadingUpdates",!0)
throw e})))}else e.resolve(!1)
else e.reject(null)}},E=(0,n.default)(v.prototype,"clientSensor",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,n.default)(v.prototype,"contentTopicFeedService",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,n.default)(v.prototype,"jet",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,n.default)(v.prototype,"router",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(v.prototype,"onNextPage",[a.action],Object.getOwnPropertyDescriptor(v.prototype,"onNextPage"),v.prototype),v)}))
define("feed/routes/hashtag-feed/hashtag-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/service","@ember/routing/route","@ember/object","feed-utils/utils/constants","feed-pagination-state/utils/pagination-state","sharing-entry/utils/sharing-entry-constants","tracked-built-ins"],(function(e,t,i,n,r,l,o,a,s,d,u,c,p){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var m,f,h,g,b,y,_,v,E,w,T,S,P
e.default=(m=(0,o.inject)("feed@content-topic-feed"),f=(0,o.inject)("feed-tracking@feed-action-event"),h=(0,o.inject)("tracking"),g=(0,o.inject)("social-counts-service@social-counts"),b=(0,o.inject)("lix"),y=(0,o.inject)("locale"),_=class extends a.default{constructor(){super(...arguments);(0,i.default)(this,"pageKey","flagship3_feed_hashtag");(0,t.default)(this,"contentTopicFeedService",v,this);(0,t.default)(this,"feedActionEvent",E,this);(0,t.default)(this,"tracking",w,this);(0,t.default)(this,"socialCountsService",T,this);(0,t.default)(this,"lix",S,this);(0,t.default)(this,"locale",P,this);(0,i.default)(this,"sortOrder","RELEVANCE");(0,i.default)(this,"moduleKeySuffix","desktop");(0,i.default)(this,"queryParams",{highlightedUpdateUrns:{refreshModel:!0},originTrackingId:{refreshModel:!0}})
const{moduleKeySuffix:e}=this,n={RELEVANCE:`hashtag-feed-top:${e}`,REV_CHRON:`hashtag-feed-chron:${e}`};(0,s.set)(this,"_moduleKeyMap",n)}model(e){let{highlightedUpdateUrns:t,originTrackingId:i}=e
if((0,l.isDestroying)(this))return
super.model(...arguments)
const n=t&&t.split(";");(0,s.setProperties)(this,{highlightedUpdateUrns:n,originTrackingId:i})}setupController(e,t){var i
if((0,l.isDestroying)(this))return
super.setupController(...arguments)
const n=null===(i=t.updateCollections)||void 0===i?void 0:i.length,r=(0,c.feedImageVideoShareboxButtons)(this.lix,this.locale);(0,s.setProperties)(e,{hasUpdates:n,highlightedUpdateUrns:void 0,originTrackingId:void 0,caughtErrorLoadingUpdates:this.caughtErrorLoadingUpdates,caughtErrorMarkedAsSpam:this.caughtErrorMarkedAsSpam,pageKey:this.pageKey,shareboxBottomBarButtonList:[...r,c.SHARE_BOX_BUTTON_TYPES.DOCUMENT],channelId:this.channelId})}buildRouteInfoMetadata(){return{debug:{suggestedTeams:["feed","ceConversations","sharing"]}}}onChangeUpdateOrder(e){if(e!==this.sortOrder){const t=this._moduleKeyMap[e]
this.feedActionEvent.setCustomModuleKey(t)
const i=this.controllerFor(this.routeName),n=null==i?void 0:i.model;(0,s.set)(this,"sortOrder",e);(0,s.set)(n,"updateCollections",new p.TrackedArray([]))
this._fetchInitialUpdates().then((e=>{(0,l.isDestroying)(this)||(0,s.set)(n,"updateCollections",e)}))}}fireFollowImpressionEvent(){var e
const t=this.controllerFor(this.routeName)
this.contentTopicFeedService.fireFollowImpressionEvent(null==t||null===(e=t.model)||void 0===e?void 0:e.contentTopicData)}_fireErrorPageViewEvent(){this.tracking.firePageViewEvent("flagship3_feed_hashtag_error")}_handleInitialUpdatesSuccess(e){var t
const{updateCollections:i}=this,{"paging.count":n,"paging.total":r,"paging.start":l}=(0,s.getProperties)(e,"paging.count","paging.total","paging.start");(0,s.set)(this,"paginationState",new u.default({total:r,start:l,count:n>r?r:n,pagingSize:d.FeedConstants.PAGING_CONTENT_TOPIC_FEED,direction:"next"}))
if(null!==(t=e.elements)&&void 0!==t&&t.length){var o;(0,s.set)(this,"paginationToken",null===(o=e.metadata)||void 0===o?void 0:o.paginationToken)
i.push(e)}const a=this.controllerFor(this.routeName),c=i.length
a&&(0,s.set)(a,"hasUpdates",c)
const{pageKey:p}=this,m=c?"updates":"emptystate"
this.tracking.firePageViewEvent(`${p}_${m}`)
this.socialCountsService.registerElementsList(e.elements)
return i}_handleNextPageUpdatesSuccess(e){const{updateCollections:t}=this
t.push(e)
const{pageKey:i}=this
this.tracking.firePageViewEvent(`${i}_updates`)
this.socialCountsService.registerElementsList(e.elements)
return t}},v=(0,n.default)(_.prototype,"contentTopicFeedService",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,n.default)(_.prototype,"feedActionEvent",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,n.default)(_.prototype,"tracking",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,n.default)(_.prototype,"socialCountsService",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,n.default)(_.prototype,"lix",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,n.default)(_.prototype,"locale",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(_.prototype,"onChangeUpdateOrder",[s.action],Object.getOwnPropertyDescriptor(_.prototype,"onChangeUpdateOrder")