2024-05-19 07:25:58 -05:00

979 строки
256 KiB
Plaintext

define.alias("@glimmer/component/-private/ember-component-manager","feed-shared/component-managers/glimmer")
define("feed-shared/components/-dynamic-element-alt",["exports","@glimmer/component"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
class n extends t.default{}e.default=n}))
define("feed-shared/components/-dynamic-element",["exports","@glimmer/component"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
class n extends t.default{}e.default=n}))
define("feed-shared/components/aggregated-content",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/utils","feed-utils/helpers/render-model-path","feed-utils/utils/update-content-union-util"],(function(e,t,n,o,i,a,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const s=(0,n.createTemplateFactory)({id:"q9iRqGBy",block:'[[[11,0],[16,0,[29,["feed-shared-aggregated-content full-width\\n ",[52,[51,[30,0,["isLastComponentButton"]]],"pb2"]]]],[17,1],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["updatesToDisplay"]]],null]],null],null,[[[1," "],[10,0],[15,0,[30,0,["cardClasses"]]],[12],[1,"\\n "],[8,[39,3],[[24,0,"feed-shared-update-v2--aggregated"]],[["@isWrapped","@update","@updatePosition","@isDashEnabled"],[true,[30,2],[30,3],[30,4]]],[["default"],[[[[1,"\\n "],[1,[30,5,["controlMenu"]]],[1,"\\n "],[1,[30,5,["header"]]],[1,"\\n "],[1,[30,5,["actor"]]],[1,"\\n\\n "],[8,[30,5,["inlineShowMoreText"]],null,[["@class","@isExpanded"],["feed-shared-update-v2__description",[30,8]]],[["default"],[[[[1,"\\n "],[1,[30,5,["commentary"]]],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[51,[30,0,["isCardWithoutContentLayout"]]],[[[41,[30,7,["hasContent"]],[[[1," "],[8,[30,5,["content"]],null,[["@isAggregatedContent","@class"],[true,"feed-shared-aggregated-content__content"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,7,["hasSocialDetail"]],[[[1," "],[1,[30,5,["socialCounts"]]],[1,"\\n "],[1,[30,5,["likersModal"]]],[1,"\\n "],[8,[30,5,["socialActions"]],null,null,[["default"],[[[[1,"\\n "],[1,[30,9,["reactButton"]]],[1,"\\n "],[1,[30,9,["commentButton"]]],[1,"\\n"],[41,[30,10,["showReshare"]],[[[1," "],[1,[30,9,["reshareButton"]]],[1,"\\n"]],[]],null],[41,[30,10,["showCommentToggle"]],[[[1," "],[1,[30,9,["commentToggle"]]],[1,"\\n"]],[]],null],[1," "]],[9,10]]]]],[1,"\\n "],[10,0],[15,0,[28,[37,5],["feed-shared-update-v2__comments-container display-flex ",[52,[30,7,["sortCommentsByRelevance"]],"flex-column-reverse","flex-column"]],null]],[12],[1,"\\n"],[41,[30,7,["isCommentingDisabled"]],[[[1," "],[1,[30,5,["disabledCommentsBlock"]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],[5,6,7]]]]],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1,"\\n"],[44,[[50,[28,[37,8],[[28,[37,9],[[30,0,["lastComponent"]]],null]],null],0,null,null]],[[[41,[30,11],[[[1," "],[8,[30,11],[[16,0,[30,0,["lastComponentClasses"]]]],[["@model","@updateTrackingObj","@isShowMoreButton","@isDashEnabled","@feedSimplificationStatus"],[[30,0,["lastComponent"]],[30,12],[30,0,["isLastComponentButton"]],[30,4],[30,13]]],null],[1,"\\n"]],[]],null]],[11]]],[13]],["&attrs","update","@updatePosition","@isDashEnabled","components","actions","properties","@isDetailView","saComponents","saProperties","LastComponent","@updateTrackingObj","@feedSimplificationStatus"],false,["unless","each","-track-array","feed-shared@render-models/update-v2","if","concat","let","component","ember-holy-futuristic-template-namespacing-batman-translate-dynamic-2","feed-utils@render-model-path"]]',moduleName:"feed-shared/components/aggregated-content.hbs",isStrictMode:!1}),l="CARDS",d="LIST",c="CARDS_WITHOUT_CONTENT"
class u extends o.default{get cardType(){var e
return null===(e=this.args.model)||void 0===e?void 0:e.type}get isCardLayout(){return this.cardType===l}get isCardWithoutContentLayout(){return this.cardType===c}get isListLayout(){return this.cardType===d}get cardClasses(){return this.isCardLayout||this.isCardWithoutContentLayout?"feed-shared-aggregated-content__card mv2 mh4":"feed-shared-aggregated-content__list-item"}get lastComponent(){var e
if(this.args.isDashEnabled){var t
return(0,r.default)(null===(t=this.args.model)||void 0===t?void 0:t.lastComponent)}return null===(e=this.args.model)||void 0===e?void 0:e.lastComponent}get isLastComponentButton(){const{lastComponent:e}=this
return"button"===(0,a.getComponentType)(e)}get lastComponentClasses(){var e
return this.isLastComponentButton?"artdeco-button artdeco-button--tertiary artdeco-button--fluid "+(null!==(e=this.args.feedSimplificationStatus)&&void 0!==e&&e.isG2Enabled?"feed-shared-aggregated-content__simplified-button":"feed-shared-aggregated-content__button"):""}get updatesToDisplay(){var e,t
const n=null===(e=this.args.model)||void 0===e?void 0:e.visibleCount,o=(null===(t=this.args.model)||void 0===t?void 0:t.updates)??[]
return(0,i.isPresent)(n)?o.slice(0,n):o}}e.default=u;(0,t.setComponentTemplate)(s,u)}))
define.alias("artdeco-button/components/artdeco-button","feed-shared/components/artdeco-button")
define.alias("artdeco-datepicker/components/artdeco-calendar","feed-shared/components/artdeco-calendar")
define.alias("artdeco-card/components/artdeco-card-image","feed-shared/components/artdeco-card-image")
define.alias("artdeco-card/components/artdeco-card","feed-shared/components/artdeco-card")
define.alias("artdeco-carousel/components/artdeco-carousel-item","feed-shared/components/artdeco-carousel-item")
define.alias("artdeco-carousel/components/artdeco-carousel-slider","feed-shared/components/artdeco-carousel-slider")
define.alias("artdeco-carousel/components/artdeco-carousel-title","feed-shared/components/artdeco-carousel-title")
define.alias("artdeco-carousel/components/artdeco-carousel","feed-shared/components/artdeco-carousel")
define.alias("artdeco-completeness-meter-linear/components/artdeco-completeness-meter-linear","feed-shared/components/artdeco-completeness-meter-linear")
define.alias("artdeco-modal/components/artdeco-confirmation-dialog","feed-shared/components/artdeco-confirmation-dialog")
define.alias("artdeco-datepicker/components/artdeco-datepicker-embedded-cal","feed-shared/components/artdeco-datepicker-embedded-cal")
define.alias("artdeco-datepicker/components/artdeco-datepicker","feed-shared/components/artdeco-datepicker")
define.alias("artdeco-datepicker/components/artdeco-daterange-embedded-cal","feed-shared/components/artdeco-daterange-embedded-cal")
define.alias("artdeco-datepicker/components/artdeco-daterange","feed-shared/components/artdeco-daterange")
define.alias("artdeco-dropdown/components/artdeco-dropdown-content","feed-shared/components/artdeco-dropdown-content")
define.alias("artdeco-dropdown/components/artdeco-dropdown-header","feed-shared/components/artdeco-dropdown-header")
define.alias("artdeco-dropdown/components/artdeco-dropdown-item","feed-shared/components/artdeco-dropdown-item")
define.alias("artdeco-dropdown/components/artdeco-dropdown-trigger","feed-shared/components/artdeco-dropdown-trigger")
define.alias("artdeco-dropdown/components/artdeco-dropdown","feed-shared/components/artdeco-dropdown")
define.alias("artdeco-empty-state/components/artdeco-empty-state","feed-shared/components/artdeco-empty-state")
define.alias("artdeco-entity-lockup/components/artdeco-entity-lockup-badge","feed-shared/components/artdeco-entity-lockup-badge")
define.alias("artdeco-entity-lockup/components/artdeco-entity-lockup-caption","feed-shared/components/artdeco-entity-lockup-caption")
define.alias("artdeco-entity-lockup/components/artdeco-entity-lockup-content","feed-shared/components/artdeco-entity-lockup-content")
define.alias("artdeco-entity-lockup/components/artdeco-entity-lockup-image","feed-shared/components/artdeco-entity-lockup-image")
define.alias("artdeco-entity-lockup/components/artdeco-entity-lockup-metadata","feed-shared/components/artdeco-entity-lockup-metadata")
define.alias("artdeco-entity-lockup/components/artdeco-entity-lockup-subtitle","feed-shared/components/artdeco-entity-lockup-subtitle")
define.alias("artdeco-entity-lockup/components/artdeco-entity-lockup-title","feed-shared/components/artdeco-entity-lockup-title")
define.alias("artdeco-entity-lockup/components/artdeco-entity-lockup","feed-shared/components/artdeco-entity-lockup")
define.alias("artdeco-entity-pile/components/artdeco-entity-pile","feed-shared/components/artdeco-entity-pile")
define.alias("artdeco-hoverables/components/artdeco-hoverable-content","feed-shared/components/artdeco-hoverable-content")
define.alias("artdeco-hoverables/components/artdeco-hoverable-trigger","feed-shared/components/artdeco-hoverable-trigger")
define.alias("artdeco-inline-feedback/components/artdeco-inline-feedback","feed-shared/components/artdeco-inline-feedback")
define.alias("artdeco-loader/components/artdeco-loader","feed-shared/components/artdeco-loader")
define.alias("artdeco-modal/components/container","feed-shared/components/artdeco-modal-container")
define.alias("artdeco-modal/components/artdeco-modal-content","feed-shared/components/artdeco-modal-content")
define.alias("artdeco-modal/components/artdeco-modal-footer","feed-shared/components/artdeco-modal-footer")
define.alias("artdeco-modal/components/artdeco-modal-header","feed-shared/components/artdeco-modal-header")
define.alias("artdeco-modal/components/artdeco-modal","feed-shared/components/artdeco-modal")
define.alias("artdeco-notification-badge/components/artdeco-notification-badge","feed-shared/components/artdeco-notification-badge")
define.alias("artdeco-pagination/components/artdeco-pagination-ellipsis","feed-shared/components/artdeco-pagination-ellipsis")
define.alias("artdeco-pagination/components/artdeco-pagination-indicator","feed-shared/components/artdeco-pagination-indicator")
define.alias("artdeco-pagination/components/artdeco-pagination","feed-shared/components/artdeco-pagination")
define.alias("artdeco-pill/components/artdeco-pill-choice-group","feed-shared/components/artdeco-pill-choice-group")
define.alias("artdeco-pill/components/artdeco-pill-choice","feed-shared/components/artdeco-pill-choice")
define.alias("artdeco-pill/components/artdeco-pill-dismiss","feed-shared/components/artdeco-pill-dismiss")
define.alias("artdeco-pill/components/artdeco-pill-input","feed-shared/components/artdeco-pill-input")
define.alias("artdeco-pill/components/artdeco-pill-link","feed-shared/components/artdeco-pill-link")
define.alias("artdeco-pill/components/artdeco-pill-toggle","feed-shared/components/artdeco-pill-toggle")
define.alias("artdeco-slider/components/artdeco-slider","feed-shared/components/artdeco-slider")
define.alias("ember-cli-artdeco-tabs/components/artdeco-spotlight-tab","feed-shared/components/artdeco-spotlight-tab")
define.alias("ember-cli-artdeco-tabs/components/artdeco-spotlight-tablist","feed-shared/components/artdeco-spotlight-tablist")
define.alias("ember-cli-artdeco-tabs/components/artdeco-tab","feed-shared/components/artdeco-tab")
define.alias("ember-cli-artdeco-tabs/components/artdeco-tablist","feed-shared/components/artdeco-tablist")
define.alias("ember-cli-artdeco-tabs/components/artdeco-tabpanel","feed-shared/components/artdeco-tabpanel")
define.alias("ember-cli-artdeco-tabs/components/artdeco-tabs","feed-shared/components/artdeco-tabs")
define.alias("artdeco-text-input/components/artdeco-text-input-multi","feed-shared/components/artdeco-text-input-multi")
define.alias("artdeco-text-input/components/artdeco-text-input-single","feed-shared/components/artdeco-text-input-single")
define.alias("artdeco-text-input/components/artdeco-text-input","feed-shared/components/artdeco-text-input")
define.alias("artdeco-toast/components/artdeco-toast-item","feed-shared/components/artdeco-toast-item")
define.alias("artdeco-toast/components/artdeco-toasts","feed-shared/components/artdeco-toasts")
define.alias("artdeco-toggle/components/artdeco-toggle","feed-shared/components/artdeco-toggle")
define.alias("ember-cli-artdeco-typeahead/components/artdeco-typeahead-input","feed-shared/components/artdeco-typeahead-input")
define.alias("ember-cli-artdeco-typeahead/components/artdeco-typeahead-result","feed-shared/components/artdeco-typeahead-result")
define.alias("ember-cli-artdeco-typeahead/components/artdeco-typeahead-results-list","feed-shared/components/artdeco-typeahead-results-list")
define.alias("ember-cli-artdeco-typeahead/components/artdeco-typeahead","feed-shared/components/artdeco-typeahead")
define.alias("ember-semaphore/components/block-profile","feed-shared/components/block-profile")
define("feed-shared/components/carousel",["exports","@ember/component","@ember/template-factory","update-components/components/carousel-base"],(function(e,t,n,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const i=(0,n.createTemplateFactory)({id:"EFNiAQxV",block:'[[[10,0],[15,0,[29,["feed-shared-carousel\\n ",[52,[51,[30,1]],"feed-shared-carousel--no-heading"],"\\n ",[52,[30,0,["containsControlMenu"]],"feed-shared-carousel--with-control-menu"],"\\n ",[52,[28,[37,2],[[30,0,["isJobsCarousel"]],[30,2,["isG2Enabled"]]],null],"update-components-simplified-carousel--jobs",[30,0,["carouselTypeStyleClass"]]],"\\n ",[30,3],"\\n "]]],[12],[1,"\\n "],[8,[39,3],null,[["@carouselItems","@hidePagination","@hidePrevNextBtnText","@hidePrevNextBtns","@loop","@cardWidth","@onNext","@onPrevious","@nextAriaLabel","@previousAriaLabel","@currentSlideIndex"],[[30,4,["items","length"]],[30,0,["hidePagination"]],true,[28,[37,4],[[30,1]],null],false,[30,0,["cardWidth"]],[30,0,["onNext"]],[30,0,["onPrevious"]],[30,5],[30,6],[30,0,["currentSlideIndex"]]]],[["default"],[[[[1,"\\n"],[41,[30,1],[[[1," "],[8,[30,7,["title"]],null,null,[["default"],[[[[1,"\\n"],[41,[30,8],[[[1," "],[8,[30,8],[[24,0,"update-components-header--carousel"]],null,null],[1,"\\n"]],[]],null],[41,[28,[37,2],[[30,0,["containsControlMenu"]],[30,9]],null],[[[1," "],[8,[30,9],[[24,0,"feed-shared-control-menu--carousel"]],null,null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[8,[30,7,["slider"]],null,null,[["default"],[[[[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,4,["items"]]],null]],null],null,[[[1," "],[8,[30,7,["item"]],null,[["@myIndex","@class"],[[30,11],[30,12]]],[["default"],[[[[1,"\\n"],[41,[30,10,["content"]],[[[1," "],[46,[28,[37,8],[[52,[30,13],[28,[37,9],[[28,[37,10],[[30,10,["content"]]],null]],null],[28,[37,9],[[30,10,["content"]]],null]]],null],null,[["model","carouselType","trackingData","index","updateTrackingObj","shouldHideCtaButton","openLinksExternally","shouldSuppressTracking","updateMetadata","impressionColumnPosition","impressionRowPosition","isDashEnabled","feedSimplificationStatus"],[[52,[30,13],[28,[37,10],[[30,10,["content"]]],null],[30,10,["content"]]],[30,4,["type"]],[30,10,["trackingData"]],[30,11],[30,14],[30,15],[30,16],[30,17],[30,18],[28,[37,11],[[30,11],1],null],[30,19],[30,13],[30,2]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,12],null,[["@hideCaEntryPoint","@hideReactionsMenu","@impressionColumnPosition","@impressionRowPosition","@isCarouselUpdate","@isDashEnabled","@isWrapped","@shouldHideContentAdminIdentityToggle","@shouldSuppressTracking","@slideIndex","@update","@authenticatedActor","@wrapperClass"],[[30,20],[28,[37,13],[[30,11],[30,0,["currentSlideIndex"]]],null],[28,[37,11],[[30,11],1],null],[30,19],true,[30,13],true,true,[30,17],[30,11],[52,[30,13],[30,10,["update"]],[30,10,["updateV2"]]],[30,21],"display-flex flex-column full-height"]],[["default"],[[[[1,"\\n"],[41,[30,22,["header"]],[[[1," "],[8,[30,22,["header"]],null,null,null],[1,"\\n"],[41,[30,22,["controlMenu"]],[[[1," "],[8,[30,22,["controlMenu"]],null,null,null],[1,"\\n"]],[]],null],[1," "],[8,[30,22,["actor"]],null,[["@entitySize"],[2]],null],[1,"\\n"]],[]],[[[1," "],[8,[30,22,["actor"]],null,[["@entitySize"],[2]],null],[1,"\\n"],[41,[30,22,["controlMenu"]],[[[1," "],[8,[30,22,["controlMenu"]],null,null,null],[1,"\\n"]],[]],null]],[]]],[41,[30,22,["contextualDescriptionV2"]],[[[1," "],[8,[30,22,["contextualDescriptionV2"]],null,[["@openLinksExternally"],[true]],null],[1,"\\n"]],[]],null],[41,[30,22,["commentaryContainer"]],[[[1," "],[8,[30,22,["commentaryContainer"]],null,[["@disableToggleShowMore","@commentaryInlineSeeMoreTrackingOverrides","@onShowMore","@hasContent","@seeMoreTextIsLink"],[true,[30,0,["carouselCommentaryTrackingOverrides"]],[28,[37,14],[[30,0,["openDetailPage"]],[52,[30,13],[30,10,["update","metadata"]],[30,10,["updateV2","updateMetadata"]]]],null],[30,24,["hasContent"]],true]],null],[1,"\\n"]],[]],null],[41,[30,24,["hasContent"]],[[[44,[[28,[37,16],[[52,[30,13],[30,10,["update","metadata"]],[30,10,["updateV2","updateMetadata"]]],[30,25]],null]],[[[1," "],[8,[30,22,["content"]],null,[["@commentaryInlineSeeMoreTrackingOverrides","@controlMenuComponent","@linkToComponent","@openDetailPage","@updateUrn"],[[30,0,["carouselCommentaryTrackingOverrides"]],[52,[30,24,["isActionsPositionInContent"]],[30,22,["controlMenu"]]],[50,"ember-engines@link-to-external",0,null,[["route","models","class"],[[30,26,["route"]],[30,26,["models"]],"t-black t-14 t-normal tap-target"]]],[28,[37,14],[[30,0,["openDetailPage"]],[52,[30,13],[30,10,["update","metadata"]],[30,10,["updateV2","updateMetadata"]]]],null],[52,[30,13],[30,10,["update","metadata","backendUrn"]],[30,10,["updateV2","updateMetadata","urn"]]]]],null],[1,"\\n"]],[26]]]],[]],null],[41,[30,24,["hasSocialDetail"]],[[[41,[30,24,["showContributionExperience"]],[[[1," "],[8,[30,22,["updateV2SocialActivity"]],null,[["@isCarouselUpdate","@showStackedSocialIcons","@isXArticleSocialActivity"],[true,[30,0,["showStackedSocialIcons"]],true]],null],[1,"\\n"]],[]],[[[1," "],[8,[30,22,["updateV2SocialActivity"]],null,[["@hideFirstPrompt","@hideComments","@showStackedSocialIcons","@isCarouselUpdate","@openFeedDetailPage","@socialContent","@socialDetail"],[true,true,[30,0,["showStackedSocialIcons"]],true,[28,[37,14],[[30,0,["openDetailPage"]],[52,[30,13],[30,10,["update","metadata"]],[30,10,["updateV2","updateMetadata"]]]],null],[52,[30,13],[30,10,["update","socialContent"]],[30,10,["updateV2","socialContent"]]],[52,[30,13],[30,10,["update","socialDetail"]],[30,10,["updateV2","socialDetail"]]]]],null],[1,"\\n"]],[]]]],[]],[[],[]]],[41,[30,22,["footer"]],[[[1," "],[8,[30,22,["footer"]],null,[["@class"],[[30,0,["footerClasses"]]]],null],[1,"\\n"]],[]],null],[1," "]],[22,23,24]]]]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n"]],[10,11]],null],[1," "]],[]]]]],[1,"\\n "]],[7]]]]],[1,"\\n\\n"],[41,[30,0,["showOverlayedNavigationButtons"]],[[[1," "],[8,[39,17],[[24,0,"feed-shared-carousel__navigation-button feed-shared-carousel__navigation-button--prev"],[16,"aria-label",[28,[37,18],["carousel_previous","feed-shared/components/carousel"],null]],[16,"disabled",[30,0,["isPreviousDisabled"]]],[4,[38,19],["click",[30,0,["moveToPrevious"]]],[["bubbles"],[false]]]],[["@circle","@icon","@type","@color"],[true,"chevron-left","primary","muted"]],null],[1,"\\n "],[8,[39,17],[[24,0,"feed-shared-carousel__navigation-button feed-shared-carousel__navigation-button--next"],[16,"aria-label",[28,[37,18],["carousel_next","feed-shared/components/carousel"],null]],[16,"disabled",[30,0,["isNextDisabled"]]],[4,[38,19],["click",[30,0,["moveToNext"]]],[["bubbles"],[false]]]],[["@circle","@icon","@type","@color"],[true,"chevron-right","primary","muted"]],null],[1,"\\n"]],[]],null],[13]],["@showADNavigationButtons","@feedSimplificationStatus","@class","@model","@carouselNextAriaLabel","@carouselPreviousAriaLabel","carousel","@headerComponent","@controlMenuComponent","slide","index","@cardClass","@isDashEnabled","@updateTrackingObj","@isReshareModal","@openLinksExternally","@shouldSuppressTracking","@updateMetadata","@impressionRowPosition","@hideCaEntryPoint","@authenticatedActor","components","actions","properties","@organizationUniversalName","detailPageInfo"],false,["unless","if","global-helpers@and","artdeco-carousel@artdeco-carousel","global-helpers@not","each","-track-array","component","ember-holy-futuristic-template-namespacing-batman-translate-dynamic-2","update-components@carousel-render-model-path","feed-utils@update-component-union","global-helpers@sum","feed-shared@render-models/update-v2","global-helpers@neq","fn","let","feed-utils@detail-page-info","artdeco-button@artdeco-button","t","on"]]',moduleName:"feed-shared/components/carousel.hbs",isStrictMode:!1})
class a extends o.default{}e.default=a;(0,t.setComponentTemplate)(i,a)}))
define.alias("ember-semaphore/components/cleared-content-modal-v2","feed-shared/components/cleared-content-modal-v2")
define.alias("ember-semaphore/components/cleared-content-modal","feed-shared/components/cleared-content-modal")
define("feed-shared/components/coach-prompt",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","@glimmer/tracking","@ember/service","global-utils/utils/url"],(function(e,t,n,o,i,a,r,s,l,d,c,u){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var p,m,h,g,f,b,y,v
const C=(0,r.createTemplateFactory)({id:"I8y4W04u",block:'[[[41,[30,0,["isCoachOnFeedEnabled"]],[[[41,[28,[37,1],[[30,1,["coachPrompts","length"]],1],null],[[[1," "],[10,0],[15,0,[29,[[52,[30,0,["showTooltip"]],"feed-shared-coach-prompt__single-div",""]]]],[12],[1,"\\n"],[41,[30,0,["showTooltip"]],[[[1," "],[8,[39,2],null,[["@caretTarget","@tooltipText","@closeTooltip","@verticalPosition","@horizontalPosition","@customClasses"],[".feed-shared-coach-prompt__container",[30,0,["tooltipText"]],[30,0,["closeTooltip"]],"bottom","dynamic","feed-shared-coach-prompt__tooltip "]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"feed-shared-coach-prompt__container"],[12],[1,"\\n "],[8,[39,3],null,null,[["default"],[[[[1,"\\n "],[8,[30,2,["hScrollButton"]],[[4,[38,4],["click",[30,0,["onButtonClick"]]],null],[4,[38,5],[[52,[30,0,["onCoachIntroDetailPage"]],[28,[37,6],[[30,0,["autoLaunchCoach"]],[30,2]],null],[28,[37,7],null,null]]],null],[4,[38,8],null,[["registerOnImpression","routeName","currentRoute"],[[30,0,["handleCoachPromptImpressionTracking"]],[28,[37,9],[[53,"outletState"],"render.name"],null],[28,[37,9],[[53,"outletState"],"render"],null]]]]],[["@controlName","@pillar","@text","@isSingle","@ariaLabel","@query","@clearHistory"],["view_coach_inline_cta","KNOWLEDGE_SEEKER",[30,0,["buttonText"]],true,[30,0,["buttonText"]],[30,0,["coachQuery"]],true]],null],[1,"\\n "]],[2]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[28,[37,11],[[30,1,["coachPrompts","length"]],1],null],[[[41,[30,0,["showTooltip"]],[[[1," "],[10,0],[14,0,"feed-shared-coach-prompt__multi-div"],[12],[1,"\\n "],[8,[39,2],null,[["@caretTarget","@tooltipText","@closeTooltip","@verticalPosition","@horizontalPosition","@customClasses"],[".feed-shared-coach-prompt__multi-suggestion-cta--first",[30,0,["tooltipText"]],[30,0,["closeTooltip"]],"bottom","dynamic","feed-shared-coach-prompt__tooltip"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,12],null,[["@coachPrompts"],[[30,1,["coachPrompts"]]]],[["default"],[[[[1,"\\n "],[8,[39,3],null,null,[["default"],[[[[1,"\\n "],[8,[30,4,["hScrollButton"]],[[16,0,[29,["feed-shared-coach-prompt__multi-suggestion-cta\\n ",[52,[28,[37,1],[[30,3,["index"]],0],null],"feed-shared-coach-prompt__multi-suggestion-cta--first"]]]],[4,[38,4],["click",[28,[37,6],[[30,0,["onMultiSuggestionButtonClick"]],[30,3,["index"]]],null]],null],[4,[38,5],[[52,[30,0,["onCoachIntroDetailPage"]],[28,[37,6],[[30,0,["autoLaunchCoach"]],[30,4]],null],[28,[37,7],null,null]]],null],[4,[38,8],null,[["registerOnImpression","routeName","currentRoute"],[[28,[37,6],[[30,0,["handleCoachPromptMultiVariantImpressionTracking"]],[30,3,["index"]]],null],[28,[37,9],[[53,"outletState"],"render.name"],null],[28,[37,9],[[53,"outletState"],"render"],null]]]]],[["@controlName","@pillar","@text","@ariaLabel","@query","@clearHistory"],["view_coach_prompt","KNOWLEDGE_SEEKER",[28,[30,0,["promptText"]],[[30,3,["prompt"]]],null],[28,[30,0,["promptText"]],[[30,3,["prompt"]]],null],[28,[30,0,["coachQueryMultiVariant"]],[[30,3,["index"]]],null],true]],null],[1,"\\n "]],[4]]]]],[1,"\\n "]],[3]]]]],[1,"\\n "]],[]],null]],[]]]],[]],null]],["@model","coach","properties","coach"],false,["if","global-helpers@eq","coach-shared@tooltip","coach-shared@coach","on","did-insert","fn","global-helpers@noop","ember-cli-pemberly-tracking@track-impression","get","-get-dynamic-var","global-helpers@gt","coach-shared@hscroll-bar"]]',moduleName:"feed-shared/components/coach-prompt.hbs",isStrictMode:!1})
let T=e.default=(p=(0,c.inject)("lego@tracking"),m=(0,c.inject)("lix"),h=(0,c.inject)("router"),g=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"isTooltipDismissed",f,this);(0,t.default)(this,"legoTracking",b,this);(0,t.default)(this,"lix",y,this);(0,t.default)(this,"router",v,this);(0,n.default)(this,"isCoachOnFeedEnabled",this.lix.getTreatmentIsEnabled("voyager.web.coach-mvp"));(0,n.default)(this,"feedDetailUrn",this.lix.getTreatment("voyager.web.coach-feed-splash-screen"))}get onCoachIntroDetailPage(){const e=this.router.currentURL
let t=!1
if(e){const{autoLaunchCoach:n}=(0,u.parseQueryString)(e)
t="true"===n}return t}autoLaunchCoach(e){const t=this.args.model.coachPrompts[0]
if(t){var n
const{coachAction:o}=t,i={queryContextV2:{contextUnion:{coachFeed:o.coachFeedUrn},serverIntent:o.serverIntent,entryPoint:"KNOWLEDGE_SEEKER"},queryText:(null===(n=o.promptText)||void 0===n?void 0:n.text)??t.text}
e.askCoach(i,"KNOWLEDGE_SEEKER",!0)}}get showTooltip(){const e=this.args.model.tooltipLegoTrackingToken&&!this.isTooltipDismissed&&this.tooltipText
e&&this.updateTooltipLegoStatus()
return e}get tooltipText(){return this.args.model.tooltipText}get buttonText(){var e
return(null===(e=this.args.model.coachPrompts[0].coachAction.promptText)||void 0===e?void 0:e.text)??this.args.model.coachPrompts[0].text}promptText(e){var t
return(null===(t=e.coachAction.promptText)||void 0===t?void 0:t.text)??e.text}get singleButtonCoachPrompt(){return this.args.model.coachPrompts[0]}get coachQuery(){return{queryContextV2:{contextUnion:{coachFeed:this.args.model.coachPrompts[0].coachAction.coachFeedUrn},serverIntent:this.args.model.coachPrompts[0].coachAction.serverIntent,entryPoint:"KNOWLEDGE_SEEKER"},queryText:this.buttonText}}updateTooltipLegoStatus(){this.args.model.tooltipLegoTrackingToken&&this.legoTracking.sendLegoImpression(this.args.model.tooltipLegoTrackingToken,this.legoTracking.LEGO_IMPRESSION_VISIBILITY_SHOW)}coachQueryMultiVariant(e){var t
return{queryContextV2:{contextUnion:{coachFeed:this.args.model.coachPrompts[e].coachAction.coachFeedUrn},serverIntent:this.args.model.coachPrompts[e].coachAction.serverIntent,entryPoint:"KNOWLEDGE_SEEKER"},queryText:(null===(t=this.args.model.coachPrompts[e].coachAction.promptText)||void 0===t?void 0:t.text)??this.args.model.coachPrompts[e].text}}closeTooltip(){this.isTooltipDismissed=!0
this.args.model.tooltipLegoTrackingToken&&this.legoTracking.sendLegoAction(this.args.model.tooltipLegoTrackingToken,this.legoTracking.LEGO_ACTION_DISMISS,1)}handleCoachPromptImpressionTracking(){var e
const{updateTrackingObj:t}=this.args,n=null==t?void 0:t.generateFeedAccessoryImpressionEventBody([{accessoryTrackingId:null===(e=this.singleButtonCoachPrompt)||void 0===e?void 0:e.trackingId,controlUrn:"view_coach_inline_cta",listPosition:{index:1}}])
return()=>n?{body:n,name:"FeedAccessoryImpressionEvent"}:[]}handleCoachPromptMultiVariantImpressionTracking(e){const{updateTrackingObj:t}=this.args,{trackingId:n}=this.args.model.coachPrompts[e],o=null==t?void 0:t.generateFeedAccessoryImpressionEventBody([{accessoryTrackingId:n,controlUrn:"view_coach_prompt",listPosition:{index:e+1}}])
return()=>o?{body:o,name:"FeedAccessoryImpressionEvent"}:[]}onButtonClick(){var e,t
null===(e=this.args.updateTrackingObj)||void 0===e||e.fireFeedActionAndSponsoredTrackingEvents({actionCategory:"EXPAND",actionType:"viewCoach",controlName:"view_coach_inline_cta",accessoryTrackingId:null===(t=this.singleButtonCoachPrompt)||void 0===t?void 0:t.trackingId})}onMultiSuggestionButtonClick(e){var t
const n=this.args.model.coachPrompts[e]
null===(t=this.args.updateTrackingObj)||void 0===t||t.fireFeedActionAndSponsoredTrackingEvents({actionCategory:"EXPAND",actionType:"viewCoach",controlName:"view_coach_prompt",accessoryTrackingId:null==n?void 0:n.trackingId})}},f=(0,o.default)(g.prototype,"isTooltipDismissed",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),b=(0,o.default)(g.prototype,"legoTracking",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,o.default)(g.prototype,"lix",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,o.default)(g.prototype,"router",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,o.default)(g.prototype,"autoLaunchCoach",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"autoLaunchCoach"),g.prototype),(0,o.default)(g.prototype,"coachQueryMultiVariant",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"coachQueryMultiVariant"),g.prototype),(0,o.default)(g.prototype,"closeTooltip",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"closeTooltip"),g.prototype),(0,o.default)(g.prototype,"handleCoachPromptImpressionTracking",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"handleCoachPromptImpressionTracking"),g.prototype),(0,o.default)(g.prototype,"handleCoachPromptMultiVariantImpressionTracking",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"handleCoachPromptMultiVariantImpressionTracking"),g.prototype),(0,o.default)(g.prototype,"onButtonClick",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"onButtonClick"),g.prototype),(0,o.default)(g.prototype,"onMultiSuggestionButtonClick",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"onMultiSuggestionButtonClick"),g.prototype),g);(0,a.setComponentTemplate)(C,T)}))
define("feed-shared/components/conversations",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/component","@ember/template-factory","@glimmer/component","@ember/service","@ember/object"],(function(e,t,n,o,i,a,r,s,l,d){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var c,u,p
const m=(0,r.createTemplateFactory)({id:"/wkyh784",block:'[[[10,0],[15,0,[29,[[52,[28,[37,1],[[30,0,["hasFeaturedComment"]]],null],"feed-shared-conversations__container"],"\\n ",[52,[30,1],"feed-shared-conversations__mini-update"],"\\n ",[52,[30,2],"feed-shared-conversations__carousel-update"],"\\n ",[52,[28,[37,1],[[30,0,["isFeedSimplificationEnabled"]]],null],"pb3"]]]],[12],[1,"\\n"],[41,[30,3,["navigationContext"]],[[[1," "],[8,[39,2],[[24,0,"feed-shared-conversations__navigation-context"],[4,[38,3],["click",[30,0,["onConversationsContentClick"]]],null],[4,[38,4],["feed_card_x_no_contribution_shown"],null]],[["@href"],[[30,3,["navigationContext","actionTarget"]]]],[["default"],[[[[1,"\\n "],[10,0],[15,0,[29,[[52,[30,0,["hasFeaturedComment"]],"feed-shared-conversations__content--with-comment","feed-shared-conversations__content"]]]],[12],[1,"\\n "],[10,"h2"],[14,0,"feed-shared-conversations__headline text-body-xsmall-bold"],[12],[1,[30,3,["headline","text"]]],[13],[1,"\\n "],[10,"h1"],[15,0,[29,[[52,[30,2],"feed-shared-conversations__title--carousel-view","feed-shared-conversations__title"],"\\n text-body-medium-bold\\n ",[52,[28,[37,5],[[30,3,["socialActivityCounts","numComments"]],0],null],"pb3"]]]],[12],[1,[30,3,["title","text"]]],[13],[1,"\\n"],[41,[28,[37,6],[[30,3,["socialActivityCounts","numComments"]],0],null],[[[1," "],[10,2],[15,0,[29,["feed-shared-conversations__count text-body-xsmall\\n ",[52,[30,0,["hasFeaturedComment"]],"pb0"]]]],[12],[1,"\\n"],[41,[30,3,["showContributionExperience"]],[[[1," "],[1,[28,[35,7],["i18n_expert_answers","feed-shared/components/conversations"],[["value"],[[30,3,["socialActivityCounts","numComments"]]]]]],[1,"\\n"]],[]],[[[1," "],[1,[30,3,["socialActivityCounts","numComments"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],[[[41,[28,[37,8],[[30,2],[28,[37,5],[[30,3,["socialActivityCounts","numComments"]],0],null]],null],[[[1," "],[10,2],[15,0,[29,["feed-shared-conversations__count text-body-xsmall\\n ",[52,[30,0,["hasFeaturedComment"]],"pb0"]]]],[12],[1,"\\n"],[41,[30,3,["showContributionExperience"]],[[[1," "],[1,[28,[35,7],["i18n_be_the_first_to_answer","feed-shared/components/conversations"],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n"],[41,[30,0,["hasFeaturedComment"]],[[[41,[28,[37,9],[[30,0,["featuredComment","entityUrn"]]],null],[[[41,[30,0,["featuredComment","permalink"]],[[[1," "],[8,[39,2],[[24,0,"feed-shared-conversations__contribution-navigation-context"]],[["@href"],[[30,0,["featuredComment","permalink"]]]],[["default"],[[[[1,"\\n "],[8,[39,10],null,[["@a11yContext","@authenticatedActor","@comment","@fireCustomTracking","@isFeaturedComment","@reportedCommentUrns","@update","@updateMetadata","@updateTrackingObj","@preventDefaultAction"],[[30,4],[30,5],[30,0,["featuredComment"]],[30,6],true,[30,7],[30,8],[30,9],[30,10],true]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null]],[]],[[[41,[30,0,["featuredComment","permalink"]],[[[1," "],[8,[39,2],[[24,0,"feed-shared-conversations__contribution-navigation-context"]],[["@href"],[[30,0,["featuredComment","permalink"]]]],[["default"],[[[[1,"\\n "],[8,[39,11],null,[["@a11yContext","@authenticatedActor","@comment","@fireCustomTracking","@isFeaturedComment","@reportedCommentUrns","@update","@updateMetadata","@updateTrackingObj","@preventDefaultAction"],[[30,4],[30,5],[30,0,["featuredComment"]],[30,6],true,[30,7],[30,8],[30,9],[30,10],true]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null]],[]]]],[]],null],[41,[28,[37,1],[[30,0,["isFeedSimplificationEnabled"]]],null],[[[41,[30,0,["hasFeaturedComment"]],[[[1," "],[10,0],[14,0,"feed-shared-conversations__cta-container--with-comment"],[12],[1,"\\n"],[41,[30,0,["commentPrompt"]],[[[1," "],[8,[39,12],null,[["@avatarEntityClassSize","@commentPrompt","@fireConversationCtaTracking","@fsCommentBoxEnabled"],[2,[30,0,["commentPrompt"]],[30,0,["fireConversationCtaTracking"]],[30,0,["fsCommentBoxEnabled"]]]],null],[1,"\\n"]],[]],[[[41,[30,3,["bottomCta"]],[[[1," "],[8,[39,13],[[24,0,"feed-shared-conversations__bottom-cta--with-comment text-body-small-bold"],[4,[38,3],["click",[30,0,["onBottomCtaWithCommentClick"]]],null],[4,[38,4],["feed_card_x_cta"],null]],[["@model","@openLinkInNewTab","@stopPropagation"],[[30,3,["bottomCta"]],false,true]],null],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"feed-shared-conversations__pre-fs-cta-container"],[12],[1,"\\n"],[41,[30,0,["commentPrompt"]],[[[1," "],[8,[39,12],null,[["@avatarEntityClassSize","@commentPrompt","@fireConversationCtaTracking","@fsCommentBoxEnabled"],[2,[30,0,["commentPrompt"]],[30,0,["fireConversationCtaTracking"]],[30,0,["fsCommentBoxEnabled"]]]],null],[1,"\\n"]],[]],[[[41,[30,3,["bottomCta"]],[[[1," "],[8,[39,13],[[24,0,"feed-shared-conversations__pre-fs-bottom-cta text-body-medium-bold"],[4,[38,3],["click",[30,0,["onBottomCtaClick"]]],null],[4,[38,4],["feed_card_x_cta"],null]],[["@model","@openLinkInNewTab","@stopPropagation"],[[30,3,["bottomCta"]],false,true]],null],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n"]],[]]]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[]],null],[41,[30,0,["isFeedSimplificationEnabled"]],[[[41,[30,0,["hasFeaturedComment"]],[[[1," "],[10,0],[14,0,"feed-shared-conversations__cta-container--with-comment"],[12],[1,"\\n"],[41,[30,0,["commentPrompt"]],[[[1," "],[8,[39,12],null,[["@avatarEntityClassSize","@commentPrompt","@fireConversationCtaTracking","@fsCommentBoxEnabled"],[1,[30,0,["commentPrompt"]],[30,0,["fireConversationCtaTracking"]],[30,0,["fsCommentBoxEnabled"]]]],null],[1,"\\n"]],[]],[[[41,[30,3,["bottomCta"]],[[[1," "],[8,[39,13],[[24,0,"feed-shared-conversations__bottom-cta--with-comment text-body-small-bold"],[4,[38,3],["click",[30,0,["onBottomCtaWithCommentClick"]]],null],[4,[38,4],["feed_card_x_cta"],null]],[["@model","@openLinkInNewTab","@stopPropagation"],[[30,3,["bottomCta"]],false,true]],null],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"feed-shared-conversations__cta-container"],[12],[1,"\\n "],[10,0],[14,0,"feed-shared-conversations__divider"],[12],[13],[1,"\\n"],[41,[30,0,["commentPrompt"]],[[[1," "],[8,[39,12],null,[["@avatarEntityClassSize","@commentPrompt","@fireConversationCtaTracking","@fsCommentBoxEnabled"],[1,[30,0,["commentPrompt"]],[30,0,["fireConversationCtaTracking"]],[30,0,["fsCommentBoxEnabled"]]]],null],[1,"\\n"]],[]],[[[41,[30,3,["bottomCta"]],[[[1," "],[8,[39,13],[[24,0,"feed-shared-conversations__bottom-cta text-body-small-bold"],[4,[38,3],["click",[30,0,["onBottomCtaClick"]]],null],[4,[38,4],["feed_card_x_cta"],null]],[["@model","@openLinkInNewTab"],[[30,3,["bottomCta"]],false]],null],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n"]],[]]]],[]],null],[13]],["@isMiniUpdate","@isCarouselUpdate","@model","@a11yContext","@authenticatedActor","@fireCustomTracking","@reportedCommentUrns","@update","@updateMetadata","@updateTrackingObj"],false,["if","global-helpers@not","app-aware-link@navigation-context-link","on","ember-cli-pemberly-tracking@track-interaction","global-helpers@eq","global-helpers@gt","t","global-helpers@and","global-helpers@is-dash-urn","social-details@project-x/dash/x-article-contribution","social-details@project-x/x-article-contribution","comments@comment-box-entity","update-components@button"]]',moduleName:"feed-shared/components/conversations.hbs",isStrictMode:!1})
let h=e.default=(c=(0,l.inject)("lix"),u=class extends s.default{constructor(){var e
super(...arguments);(0,t.default)(this,"lix",p,this);(0,n.default)(this,"fsCommentBoxEnabled",null===(e=this.args.feedSimplificationStatus)||void 0===e?void 0:e.isG0Enabled)}get commentPrompt(){var e
return null===(e=this.args.model.featuredComments[0])||void 0===e?void 0:e.commentPrompt}get featuredComment(){return this.args.model.featuredComments[0]}get hasFeaturedComment(){var e
return(null===(e=this.args.model.featuredComments)||void 0===e?void 0:e.length)>0}get isFeedSimplificationEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.feed-simplification")}fireConversationCtaTracking(){var e,t
null===(e=(t=this.args).fireCustomTracking)||void 0===e||e.call(t,{actionCategory:"SELECT",actionType:"feedCardXContributionCta",controlName:"feed_card_x_cta"})}onConversationsContentClick(){var e
if(null!==(e=this.args.model.navigationContext)&&void 0!==e&&e.trackingActionType){var t,n,o
null===(t=(n=this.args).fireCustomTracking)||void 0===t||t.call(n,{actionCategory:"SELECT",actionType:null===(o=this.args.model.navigationContext)||void 0===o?void 0:o.trackingActionType,controlName:"feed_card_x_no_contribution_shown"})}}onBottomCtaClick(){var e,t
if(null!==(e=this.args.model.bottomCta)&&void 0!==e&&null!==(t=e.navigationContext)&&void 0!==t&&t.trackingActionType){var n,o,i,a
null===(n=(o=this.args).fireCustomTracking)||void 0===n||n.call(o,{actionCategory:"SELECT",actionType:null===(i=this.args.model.bottomCta)||void 0===i||null===(a=i.navigationContext)||void 0===a?void 0:a.trackingActionType,controlName:"feed_card_x_cta"})}}onBottomCtaWithCommentClick(){var e,t
if(null!==(e=this.args.model.bottomCta)&&void 0!==e&&null!==(t=e.navigationContext)&&void 0!==t&&t.trackingActionType){var n,o,i,a
null===(n=(o=this.args).fireCustomTracking)||void 0===n||n.call(o,{actionCategory:"SELECT",actionType:null===(i=this.args.model.bottomCta)||void 0===i||null===(a=i.navigationContext)||void 0===a?void 0:a.trackingActionType,controlName:"feed_card_x_cta"})}}},p=(0,o.default)(u.prototype,"lix",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,o.default)(u.prototype,"fireConversationCtaTracking",[d.action],Object.getOwnPropertyDescriptor(u.prototype,"fireConversationCtaTracking"),u.prototype),(0,o.default)(u.prototype,"onConversationsContentClick",[d.action],Object.getOwnPropertyDescriptor(u.prototype,"onConversationsContentClick"),u.prototype),(0,o.default)(u.prototype,"onBottomCtaClick",[d.action],Object.getOwnPropertyDescriptor(u.prototype,"onBottomCtaClick"),u.prototype),(0,o.default)(u.prototype,"onBottomCtaWithCommentClick",[d.action],Object.getOwnPropertyDescriptor(u.prototype,"onBottomCtaWithCommentClick"),u.prototype),u);(0,a.setComponentTemplate)(m,h)}))
define.alias("ember-vector-images/components/custom-image","feed-shared/components/custom-image")
define("feed-shared/components/draggable-object-target",["exports","ember-drag-drop/components/draggable-object-target"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=t.default}))
define("feed-shared/components/draggable-object",["exports","ember-drag-drop/components/draggable-object"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=t.default}))
define.alias("ember-cloud-filepicker/components/dropbox-file-picker","feed-shared/components/dropbox-file-picker")
define.alias("ember-semaphore/components/ember-semaphore","feed-shared/components/ember-semaphore")
define.alias("ember-wormhole/components/ember-wormhole","feed-shared/components/ember-wormhole")
define.alias("ember-cloud-filepicker/components/file-picker","feed-shared/components/file-picker")
define.alias("ember-finite-scroll/components/finite-scroll","feed-shared/components/finite-scroll")
define.alias("ember-cloud-filepicker/components/google-drive-file-picker","feed-shared/components/google-drive-file-picker")
define.alias("ember-highcharts/components/high-charts","feed-shared/components/high-charts")
define.alias("image-editor/components/image-editor-loader","feed-shared/components/image-editor-loader")
define.alias("image-editor/components/image-editor","feed-shared/components/image-editor")
define.alias("ember-finite-scroll/components/item-container","feed-shared/components/item-container")
define.alias("ember-vector-images/components/lazy-background","feed-shared/components/lazy-background")
define.alias("ember-vector-images/components/lazy-image","feed-shared/components/lazy-image")
define("feed-shared/components/lead-gen-modal-wrapper",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/component","@ember/template-factory","@glimmer/component","@ember/service","@ember/object","ember-cli-pemberly-tracking/utils/tracking","global-utils/utils/custom-tracking-transporters","@glimmer/tracking"],(function(e,t,n,o,i,a,r,s,l,d,c,u,p){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var m,h,g,f,b,y
const v=(0,r.createTemplateFactory)({id:"AjdIAMTY",block:'[[[8,[39,0],null,[["@bundle","@retryLimit"],["lead-gen",1]],[["default"],[[[[1,"\\n"],[41,[28,[37,2],[[30,2],[30,0,["isLeadGenModalManagerOpen"]]],null],[[[41,[30,1,["state","fulfilled"]],[[[41,[30,0,["islgfWorkemailPrefillExpansionEnabled"]],[[[1," "],[8,[39,3],null,[["@channelId","@closeModal","@closeLeadGenModalManager","@fireCustomTracking","@isOpen","@leadGenForm","@leadTrackingCode","@leadTrackingParams","@openLeadGenModalManager","@shouldDisableSubmit","@shouldSuppressTracking","@updateTrackingObj"],[[30,3],[30,4],[30,0,["closeLeadGenModalManager"]],[30,0,["fireCustomTracking"]],[30,2],[30,5],[30,0,["leadTrackingCode"]],[30,0,["leadTrackingParams"]],[30,0,["openLeadGenModalManager"]],[30,6],[30,7],[30,8]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,4],null,[["@channelId","@closeModal","@fireCustomTracking","@isOpen","@leadGenForm","@leadTrackingCode","@leadTrackingParams","@shouldDisableSubmit","@shouldSuppressTracking","@updateTrackingObj"],[[30,3],[30,4],[30,0,["fireCustomTracking"]],[30,2],[30,5],[30,0,["leadTrackingCode"]],[30,0,["leadTrackingParams"]],[30,6],[30,7],[30,8]]],null],[1,"\\n"]],[]]]],[]],[[[1," "],[8,[39,5],null,[["@isOpen","@size","@dismissModal"],[[30,2],"medium",[30,4]]],[["default"],[[[[1,"\\n "],[8,[30,9,["artdeco-modal-header"]],null,null,[["default"],[[[[1,"\\n "],[10,"h3"],[14,1,"lead-gen-modal-header"],[12],[1,"\\n"],[41,[30,5,["header"]],[[[1," "],[1,[30,5,["header","text"]]],[1,"\\n"]],[]],[[[1," "],[1,[30,5,["actor","miniCompany","name"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[30,9,["artdeco-modal-content"]],null,null,[["default"],[[[[1,"\\n"],[41,[30,1,["state","pending"]],[[[1," "],[8,[39,6],[[24,0,"mv6"]],[["@size"],["small"]],null],[1,"\\n"]],[]],[[[41,[30,1,["state","rejected"]],[[[1," "],[8,[39,7],[[24,0,"mv5"]],[["@message","@type"],[[28,[37,8],["i18n_lead_gen_loading_error","feed-shared/components/lead-gen-modal-wrapper"],null],"error"]],null],[1,"\\n "]],[]],null]],[]]],[1," "]],[]]]]],[1,"\\n "]],[9]]]]],[1,"\\n"]],[]]]],[]],null]],[1]]]]]],["asset","@isOpen","@channelId","@closeModal","@leadGenForm","@shouldDisableSubmit","@shouldSuppressTracking","@updateTrackingObj","modal"],false,["asset-loader@deferred-asset-loader","if","global-helpers@or","lead-gen@lead-gen-v2/lead-gen-modal-manager","lead-gen@lead-gen-v2/lead-gen-modal","artdeco-modal@artdeco-modal","artdeco-loader@artdeco-loader","artdeco-inline-feedback@artdeco-inline-feedback","t"]]',moduleName:"feed-shared/components/lead-gen-modal-wrapper.hbs",isStrictMode:!1})
let C=e.default=(m=(0,l.inject)("tracking"),h=(0,l.inject)("lix"),g=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"tracking",f,this);(0,t.default)(this,"lix",b,this);(0,t.default)(this,"isLeadGenModalManagerOpen",y,this)}get channelId(){return this.args.channelId||2}get pageKey(){return this.args.pageKey}get leadTrackingParams(){var e
return null===(e=this.args.sponsoredMetadata)||void 0===e?void 0:e.leadTrackingParams}get leadTrackingCode(){var e
return null===(e=this.args.sponsoredMetadata)||void 0===e?void 0:e.leadTrackingCode}fireCustomTracking(e){var t,n,o,i
let{actionType:a,controlName:r}=e
if(null!==(t=this.args.shouldSuppressTracking)&&void 0!==t&&t.sponsored||!this.leadTrackingParams&&!this.leadTrackingCode)return
const s={transporterKey:u.SPONSORED_TRACKING_TRANSPORTER_KEYS.TFE_TRANSPORTER},l={controlUrn:(0,c.createControlUrn)(this.pageKey?this.pageKey:this.tracking.getCurrentPageKey(),r),sponsoredEventHeader:{actionType:a,activityType:"SPONSORED",adTrackingCode:this.leadTrackingCode,deviceType:"DESKTOP",feedPosition:this.args.updatePosition||-1,version:null===(n=this.args.sponsoredMetadata)||void 0===n?void 0:n.version}}
null!==(o=this.args)&&void 0!==o&&null!==(i=o.updateTrackingObj)&&void 0!==i&&i.shouldPopulateVideoMrcMetadata&&(l.sponsoredEventHeader.mediaRatingCouncilInfo={videoAdsMediaRatingCouncilInfo:{hasVideoStartedPlaying:this.args.updateTrackingObj.sponsoredVideoHasStarted}})
this.tracking.fireTrackingPayload("SponsoredLeadgenFormActionEvent",l,s)}get islgfWorkemailPrefillExpansionEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.feed-revenue-lgf-work-email-prefill-expansion")}closeLeadGenModalManager(){this.isLeadGenModalManagerOpen=!1}openLeadGenModalManager(){this.isLeadGenModalManagerOpen=!0}},f=(0,o.default)(g.prototype,"tracking",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,o.default)(g.prototype,"lix",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,o.default)(g.prototype,"isLeadGenModalManagerOpen",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,o.default)(g.prototype,"fireCustomTracking",[d.action],Object.getOwnPropertyDescriptor(g.prototype,"fireCustomTracking"),g.prototype),(0,o.default)(g.prototype,"closeLeadGenModalManager",[d.action],Object.getOwnPropertyDescriptor(g.prototype,"closeLeadGenModalManager"),g.prototype),(0,o.default)(g.prototype,"openLeadGenModalManager",[d.action],Object.getOwnPropertyDescriptor(g.prototype,"openLeadGenModalManager"),g.prototype),g);(0,a.setComponentTemplate)(v,C)}))
define.alias("ember-line-clamp/components/line-clamp","feed-shared/components/line-clamp")
define.alias("artdeco-icons-web/components/linkedin-logo","feed-shared/components/linkedin-logo")
define.alias("ember-cloud-filepicker/components/local-file-input","feed-shared/components/local-file-input")
define.alias("ember-media-player/components/media-player","feed-shared/components/media-player")
define("feed-shared/components/mini-update",["exports","@ember/component","@ember/template-factory","mini-update/components/mini-update-base"],(function(e,t,n,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const i=(0,n.createTemplateFactory)({id:"JkfD2uvf",block:'[[[44,[[52,[30,0,["hasInterstitial"]],[50,"mini-update@interstitial-container",0,null,[["interstitialViewModel","templateType","backendUrn","actionTrackingHandler","updateTrackingObj"],[[30,1,["interstitial","interstitial"]],[30,1,["interstitial","templateType"]],[30,1,["metadata","backendUrn"]],[30,0,["actionTrackingHandler"]],[30,0,["updateTrackingObj"]]]]],[28,[37,3],[""],null]]],[[[1," "],[11,0],[17,3],[16,0,[29,["display-flex flex-column\\n ",[52,[30,0,["isContentComponentLast"]],"pb4"],[52,[30,0,["isCommentaryComponentLast"]],"pb2"]]]],[4,[38,4],null,[["registerOnImpression","thresholdMillisecondsInViewport","thresholdPercentageInViewport","routeName","currentRoute"],[[30,0,["onTrackImpression"]],0,50,[28,[37,5],[[53,"outletState"],"render.name"],null],[28,[37,5],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n"],[41,[30,0,["showActor"]],[[[1," "],[8,[39,7],null,[["@actor","@actionTrackingHandler","@trackingId"],[[30,1,["actor"]],[30,0,["actionTrackingHandler"]],[30,0,["trackingId"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["showContextualDescription"]],[[[1," "],[8,[39,8],null,[["@contextualDescription","@actionTrackingHandler","@trackingId","@disableFocusableNestedLink"],[[30,1,["contextualDescription"]],[30,0,["actionTrackingHandler"]],[30,0,["trackingId"]],[30,4]]],null],[1,"\\n"]],[]],null],[1," "],[8,[30,2],null,null,[["default"],[[[[1,"\\n"],[41,[30,0,["showCommentary"]],[[[1," "],[8,[39,9],null,[["@commentary","@nextToContent","@actionTrackingHandler","@trackingId","@disableFocusableNestedLink"],[[30,1,["commentary"]],[30,0,["hasContentComponent"]],[30,0,["actionTrackingHandler"]],[30,0,["trackingId"]],[30,4]]],null],[1,"\\n"]],[]],null],[41,[30,0,["showContent"]],[[[1," "],[8,[39,10],null,[["@content","@actionTrackingHandler","@trackingId","@disableFocusableNestedLink"],[[30,1,["content"]],[30,0,["actionTrackingHandler"]],[30,0,["trackingId"]],[30,4]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"],[41,[30,0,["showSocialActivityCounts"]],[[[1," "],[8,[39,11],null,[["@socialActivityCounts","@actionTrackingHandler","@backendUrn","@isMiniUpdate","@areSocialCountsClickable"],[[30,1,["socialActivityCounts"]],[30,0,["actionTrackingHandler"]],[30,1,["metadata","backendUrn"]],true,[30,0,["areSocialCountsClickable"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[2]]]],["@miniUpdate","MaybeInterstitialWrapper","&attrs","@disableFocusableNestedLink"],false,["let","if","component","element","ember-cli-pemberly-tracking@track-impression","get","-get-dynamic-var","mini-update@actor","mini-update@contextual-description","mini-update@commentary","mini-update@content","feed-shared@mini-update/social-activity-counts-wrapper"]]',moduleName:"feed-shared/components/mini-update.hbs",isStrictMode:!1})
class a extends o.default{}e.default=a;(0,t.setComponentTemplate)(i,a)}))
define("feed-shared/components/mini-update/social-activity-counts-wrapper",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","@ember/service","@glimmer/tracking"],(function(e,t,n,o,i,a,r,s,l,d,c){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var u,p,m,h,g,f
const b=(0,r.createTemplateFactory)({id:"VfAYEftd",block:'[[[41,[30,1],[[[1," "],[8,[39,1],[[24,0,"b0 m0 ph4 pv3"]],[["@socialActivityCounts","@onCommentsTotalClick","@onReactionsTotalClick","@onRepostsTotalClick","@totalReactionsCount","@isMiniUpdate","@isCommentsTotalClickable","@isReactionsTotalClickable","@isRepostsTotalClickable"],[[30,1],[30,0,["onCommentsTotalClick"]],[30,0,["onReactionsTotalClick"]],[30,0,["onRepostsTotalClick"]],[30,0,["totalReactionsCount"]],[30,2],[30,3],[30,3],[30,3]]],null],[1,"\\n "],[8,[39,2],null,[["@dismissReactorsModal","@isReactorModalOpen","@socialActivityCounts","@updateTotalReactionsCount"],[[30,0,["dismissReactorsModal"]],[30,0,["showReactorsModal"]],[30,1],[30,0,["updateTotalReactionsCount"]]]],null],[1,"\\n "],[8,[39,3],null,[["@dismissRepostsModal","@isRepostsModalOpen","@numShares","@updateId"],[[30,0,["dismissRepostsModal"]],[30,0,["showRepostsModal"]],[30,1,["numShares"]],[30,1,["urn"]]]],null],[1,"\\n"]],[]],null]],["@socialActivityCounts","@isMiniUpdate","@areSocialCountsClickable"],false,["if","social-details@social-counts","social-details@reactors-modal","feed-shared@reposts-modal"]]',moduleName:"feed-shared/components/mini-update/social-activity-counts-wrapper.hbs",isStrictMode:!1})
let y=e.default=(u=(0,d.inject)("router"),p=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"router",m,this);(0,t.default)(this,"showReactorsModal",h,this);(0,t.default)(this,"showRepostsModal",g,this);(0,t.default)(this,"totalReactionsCount",f,this)}onCommentsTotalClick(){if(this.args.backendUrn){this.router.transitionTo("feed.update",this.args.backendUrn)
this.args.actionTrackingHandler({actionType:"viewCommentsDetail",actionCategory:"VIEW",controlName:"comments_count"})}}dismissReactorsModal(){this.showReactorsModal=!1}dismissRepostsModal(){this.showRepostsModal=!1}onReactionsTotalClick(){this.showReactorsModal=!0
this.args.actionTrackingHandler({actionType:"viewLikers",actionCategory:"VIEW",controlName:"likes_count"})}updateTotalReactionsCount(e){this.totalReactionsCount=e}onRepostsTotalClick(){this.showRepostsModal=!0}},m=(0,o.default)(p.prototype,"router",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,o.default)(p.prototype,"showReactorsModal",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=(0,o.default)(p.prototype,"showRepostsModal",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=(0,o.default)(p.prototype,"totalReactionsCount",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,o.default)(p.prototype,"onCommentsTotalClick",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"onCommentsTotalClick"),p.prototype),(0,o.default)(p.prototype,"dismissReactorsModal",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"dismissReactorsModal"),p.prototype),(0,o.default)(p.prototype,"dismissRepostsModal",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"dismissRepostsModal"),p.prototype),(0,o.default)(p.prototype,"onReactionsTotalClick",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"onReactionsTotalClick"),p.prototype),(0,o.default)(p.prototype,"updateTotalReactionsCount",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"updateTotalReactionsCount"),p.prototype),(0,o.default)(p.prototype,"onRepostsTotalClick",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"onRepostsTotalClick"),p.prototype),p);(0,a.setComponentTemplate)(b,y)}))
define("feed-shared/components/object-bin",["exports","ember-drag-drop/components/object-bin"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=t.default}))
define.alias("ember-cloud-filepicker/components/onedrive-file-picker","feed-shared/components/onedrive-file-picker")
define("feed-shared/components/post-cta",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/component","@ember/template-factory","@glimmer/component","@ember/service","organization-detour/broadcast-to-share-detour-manager","@ember/object"],(function(e,t,n,o,i,a,r,s,l,d,c){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var u,p,m,h,g,f,b,y,v
const C=(0,r.createTemplateFactory)({id:"k/sIeiFE",block:'[[[10,0],[14,0,"feed-shared-post-cta"],[12],[1,"\\n "],[10,0],[12],[1,"\\n"],[41,[30,1,["socialProofText"]],[[[1," "],[10,0],[14,0,"t-12 t-black--light truncate pv2 ph3"],[12],[1,"\\n "],[8,[39,1],null,[["@tvm"],[[30,1,["socialProofText"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,2],null,[["@shareOrigin","@initialDetourManager","@disableDetourEdit","@disableDetourPreviewRemoval"],[[30,0,["shareOrigin"]],[30,0,["initialDetourManager"]],true,true]],[["default"],[[[[1,"\\n "],[10,"footer"],[14,0,"artdeco-card__actions"],[12],[1,"\\n "],[8,[39,3],[[24,0,"justify-flex-start p3"],[4,[38,4],["click",[28,[37,5],[[30,0,["onCTAClick"]],[30,3],[30,2]],null]],null],[4,[38,6],["broadcast_share_post"],null]],[["@type","@color","@stretch","@icon","@text"],["tertiary","muted","fluid","compose",[30,1,["ctaText"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[2]]]]],[1,"\\n "],[13],[1,"\\n"],[13]],["@model","openShareboxModal","@updateMetadata"],false,["if","text-view-model@text-view-model-v2","sharing-entry@share-button","artdeco-button@artdeco-button","on","fn","ember-cli-pemberly-tracking@track-interaction"]]',moduleName:"feed-shared/components/post-cta.hbs",isStrictMode:!1})
let T=e.default=(u=(0,l.inject)("feed-tracking@feed-action-event"),p=(0,l.inject)("global-services@store-shim"),m=(0,l.inject)("m3-schema"),h=(0,l.inject)("lix"),g=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"feedActionEvent",f,this);(0,t.default)(this,"storeShim",b,this);(0,t.default)(this,"m3Schema",y,this);(0,t.default)(this,"lix",v,this);(0,n.default)(this,"shareOrigin","BROADCAST")}get isDashBroadcastDetourEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.organization-dash-broadcast-detour")}get initialDetourManager(){return new d.default(this.args.updateMetadata,this.args.commentary,this.args.content,this.storeShim,this.m3Schema,this.isDashBroadcastDetourEnabled)}onCTAClick(e,t){t()
this.feedActionEvent.fireFAE(e,{actionCategory:"SHARE",actionType:"broadcastShare",controlName:"broadcast_share_post"})}},f=(0,o.default)(g.prototype,"feedActionEvent",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,o.default)(g.prototype,"storeShim",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,o.default)(g.prototype,"m3Schema",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,o.default)(g.prototype,"lix",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,o.default)(g.prototype,"onCTAClick",[c.action],Object.getOwnPropertyDescriptor(g.prototype,"onCTAClick"),g.prototype),g);(0,a.setComponentTemplate)(C,T)}))
define("feed-shared/components/prompt-component",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/component","@ember/template-factory","@ember/destroyable","@ember/object","@glimmer/tracking","@ember/service","@glimmer/component","feed-utils/utils/constants","tracked-toolbox","global-utils/utils/url","feed-utils/utils/error-parsing","global-utils/utils/html-safe","global-helpers/helpers/name","sharing-shared/utils/sharing-shared-constants","groups-shared/utils/constants","dash-interop-helper/utils/get-graphql-value-with-dash-fallback","graphql-queries/mutations/groups/recommend-group-post.graphql","graphql-queries/queries/groups/fetch-groups-post-recommendation-info.graphql","@linkedin/ember-restli-graphql"],(function(e,t,n,o,i,a,r,s,l,d,c,u,p,m,h,g,f,b,y,v,C,T,k,S){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var O,E,_,M,w,D,A,P,I,R,x,U,N,j,L,F,B,z,G,V,H,K,q,W,Q
const Y=(0,r.createTemplateFactory)({id:"iEkXRBV1",block:'[[[41,[30,0,["showPromptComponent"]],[[[1," "],[11,0],[16,0,[29,["feed-shared-prompt-component ",[30,1]]]],[17,2],[4,[38,1],null,[["registerOnImpression","routeName","currentRoute"],[[30,0,["handleImpressionTracking"]],[28,[37,2],[[53,"outletState"],"render.name"],null],[28,[37,2],[[53,"outletState"],"render"],null]]]],[4,[38,4],null,[["onEnter","options","maxEnter"],[[30,0,["handleLegoImpressionTracking"]],[28,[37,5],null,[["threshold"],[0.5]]],1]]],[12],[1,"\\n "],[10,0],[14,0,"feed-shared-prompt-component__content"],[12],[1,"\\n"],[41,[30,0,["image"]],[[[1," "],[10,0],[14,0,"feed-shared-prompt-component__image"],[12],[1,"\\n"],[41,[30,0,["navigationContext"]],[[[1," "],[8,[39,6],[[16,"aria-label",[30,0,["navigationContext","accessibilityText"]]],[24,"target","_self"],[4,[38,7],["click",[30,0,["onImageClick"]]],null],[4,[38,8],[[30,0,["imageControlName"]]],null]],[["@href","@useDefaultLinkBehavior"],[[30,0,["navigationContext","actionTarget"]],false]],[["default"],[[[[1,"\\n "],[8,[39,9],null,[["@entitySize","@images"],[1,[30,0,["image"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[39,9],null,[["@entitySize","@images"],[2,[30,0,["image"]]]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"feed-shared-prompt-component__main"],[12],[1,"\\n"],[41,[30,3,["title"]],[[[1," "],[10,0],[15,0,[29,["feed-shared-prompt-component__title\\n ",[52,[51,[30,3,["description"]]],"update-components-prompt-component__title--no-description"]]]],[12],[1,"\\n"],[41,[30,4],[[[1," "],[8,[39,11],null,[["@tvm"],[[30,3,["title"]]]],null],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,12],[[30,3,["title"]]],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,3,["description"]],[[[1," "],[10,0],[14,0,"feed-shared-prompt-component__description text-body-small"],[12],[1,"\\n"],[41,[30,4],[[[1," "],[8,[39,11],null,[["@tvm"],[[30,3,["description"]]]],null],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,12],[[30,3,["description"]]],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["hasAction"]],[[[1," "],[10,0],[14,0,"feed-shared-prompt-component__action"],[12],[1,"\\n"],[41,[30,0,["navigateButton"]],[[[1," "],[8,[39,13],[[24,0,"artdeco-button artdeco-button--secondary artdeco-button--2"]],[["@model","@updateTrackingObj","@invokeAction","@openLinkInNewTab"],[[30,0,["navigateButton"]],[30,5],[30,0,["handleNavigateButtonClick"]],false]],null],[1,"\\n"]],[]],null],[41,[30,0,["connectAction"]],[[[1," "],[8,[39,14],[[4,[38,8],["prompt_connect_toggle"],null]],[["@hasInvitedToConnect","@onConnectClick","@shouldShowIcon","@buttonClass"],[[30,0,["hasInvitedToConnect"]],[30,0,["sendConnectionInvite"]],true,"artdeco-button artdeco-button--secondary artdeco-button--2"]],null],[1,"\\n"]],[]],null],[41,[30,0,["subscribeAction"]],[[[1," "],[8,[39,15],[[4,[38,7],["click",[30,0,["handleSubscribeButtonClick"]]],null],[4,[38,8],["prompt_subscribe_toggle"],null]],[["@circle","@color","@controlType","@icon","@size","@type"],[true,"muted","button",[52,[30,0,["isSubscribed"]],"bell-fill","bell-outline"],2,"secondary"]],null],[1,"\\n"]],[]],null],[41,[30,0,["followAction"]],[[[1," "],[8,[39,16],[[24,0,"artdeco-button artdeco-button--secondary artdeco-button--2"]],[["@controlName","@fireCustomTracking","@followingInfo","@iconType","@showText","@isDashEnabled"],[[30,0,["followControlName"]],[30,0,["handleFollowButtonClick"]],[30,0,["followingInfo"]],"add",true,[30,4]]],null],[1,"\\n"]],[]],null],[41,[30,0,["recommendGroupPostAction"]],[[[1," "],[8,[39,15],[[4,[38,7],["click",[30,0,["handleRecommendButtonClick"]]],null],[4,[38,8],["prompt_recommend_group_post_click"],null]],[["@color","@controlType","@size","@text","@type"],["muted","button",2,[28,[37,17],["i18n_recommend_btn_text","feed-shared/components/prompt-component"],null],"secondary"]],null],[1,"\\n"]],[]],null],[41,[30,0,["postGroupQuestionAction"]],[[[1," "],[8,[39,15],[[4,[38,7],["click",[30,0,["handlePostGroupQuestionClick"]]],null]],[["@color","@controlType","@size","@text","@type"],["muted","button",2,[30,0,["postGroupQuestionAction","buttonText"]],"secondary"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"feed-shared-prompt-component__dismiss-btn"],[12],[1,"\\n "],[8,[39,15],[[16,"aria-label",[28,[37,17],["i18n_close_btn_a11y_text","feed-shared/components/prompt-component"],null]],[4,[38,7],["click",[30,0,["onPromptComponentDismiss"]]],null],[4,[38,8],["prompt_dismiss"],null]],[["@circle","@color","@icon","@size","@type"],[true,"muted","close",1,"tertiary"]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showDecisionModal"]],[[[41,[30,0,["decisionModalContext","modalInfoItems"]],[[[1," "],[8,[39,18],null,[["@isModalOpen","@modalContext","@closeDecisionModal"],[[30,0,["showDecisionModal"]],[30,0,["decisionModalContext"]],[30,0,["closeDecisionModal"]]]],[["default"],[[[[1,"\\n"],[42,[28,[37,20],[[28,[37,20],[[30,0,["decisionModalContext","modalInfoItems"]]],null]],null],null,[[[1," "],[10,0],[14,0,"display-flex mv5 pl4 pr2"],[12],[1,"\\n "],[8,[39,9],[[24,0,"mr4"]],[["@images"],[[30,6,["icon"]]]],null],[1,"\\n "],[10,1],[12],[8,[39,11],null,[["@tvm"],[[30,6,["text"]]]],null],[13],[1,"\\n "],[13],[1,"\\n"]],[6]],null],[1," "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[39,18],null,[["@isModalOpen","@modalContext","@closeDecisionModal"],[[30,0,["showDecisionModal"]],[30,0,["decisionModalContext"]],[30,0,["closeDecisionModal"]]]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,0,["showGroupsShareboxModal"]],[[[1," "],[8,[39,21],null,[["@recommendationUrn","@referenceUrn","@recommendationAction","@onShareSuccess","@usecase"],[[30,0,["postGroupQuestionAction","questionUrn"]],[30,0,["groupUrn"]],[30,0,["questionRecommendationAction"]],[30,0,["closeGroupsShareboxModal"]],[30,0,["questionRecommendationUseCase"]]]],[["default"],[[[[1,"\\n "],[8,[30,7],null,[["@fixedVisibilityType","@isShareboxModalOpen","@prefilledTextTVMV2","@onCloseShareboxModal","@shareOrigin"],[[30,0,["groupsShareboxVisibilityType"]],[30,0,["showGroupsShareboxModal"]],[30,0,["postGroupQuestionAction","questionText"]],[30,0,["closeGroupsShareboxModal"]],[30,0,["shareOrigin"]]]],null],[1,"\\n "]],[7]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["@classNames","&attrs","@model","@isDashEnabled","@updateTrackingObj","infoItem","ShareboxModal"],false,["if","ember-cli-pemberly-tracking@track-impression","get","-get-dynamic-var","ember-scroll-modifiers@did-intersect","hash","app-aware-link@navigation-context-link","on","ember-cli-pemberly-tracking@track-interaction","image-view-model@image-view-model","unless","text-view-model@text-view-model-v2","text-view-model@text-view-model","update-components@button","follows@connect-button","artdeco-button@artdeco-button","follows@follow-button","t","feed-components-shared@modals/decision-modal","each","-track-array","feed-shared@sharebox-modal-with-success-callback"]]',moduleName:"feed-shared/components/prompt-component.hbs",isStrictMode:!1}),$="components/feed-components-shared@modals/decision-modal"
let Z=e.default=(O=(0,c.inject)("tracking"),E=(0,c.inject)("lego@tracking"),_=(0,c.inject)("global-services@local-storage"),M=(0,c.inject)("global-services@store-shim"),w=(0,c.inject)("persistent-toast-manager@persistent-toast-manager"),D=(0,c.inject)("i18n"),A=(0,c.inject)("invitation-platform@invitation-platform"),P=(0,c.inject)("@linkedin/ember-restli-graphql@graphql"),I=(0,m.localCopy)("promptAction.subscribe.subscribed"),R=(0,c.inject)("lix"),x=class extends u.default{constructor(){super(...arguments);(0,t.default)(this,"tracking",U,this);(0,t.default)(this,"legoTracking",N,this);(0,t.default)(this,"localStorage",j,this);(0,t.default)(this,"storeShim",L,this);(0,t.default)(this,"persistentToastManager",F,this);(0,t.default)(this,"i18n",B,this);(0,t.default)(this,"invitationPlatform",z,this);(0,t.default)(this,"graphql",G,this);(0,t.default)(this,"isSubscribed",V,this);(0,t.default)(this,"lix",H,this);(0,t.default)(this,"isPromptComponentDismissed",K,this);(0,t.default)(this,"showDecisionModal",q,this);(0,t.default)(this,"showGroupsShareboxModal",W,this);(0,t.default)(this,"decisionModalContext",Q,this);(0,n.default)(this,"followControlName",p.PROMPT_COMPONENT_TRACKING_CONSTANTS.FOLLOW.BUTTON_CONTROL_NAME);(0,n.default)(this,"shareOrigin",y.SHARE_ORIGIN.FEED);(0,n.default)(this,"questionRecommendationUseCase",v.GROUP_RECOMMENDATION_USECASES.MAIN_FEED_UPDATE_ATTACHMENT);(0,n.default)(this,"questionRecommendationAction",v.GROUP_RECOMMENDATION_ACTIONS.QUESTION_POSTED)}get isPostRecommendationUpdatesEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.groups-post-recommendation-updates")}get isPostRecommendationsGraphqlEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.groups-post-recommendations-recommend-post-graphql")}get promptAction(){return(0,C.getGraphQlValueWithDashFallback)(this.args.model,"promptAction")||this.args.model.promptActionUnion}get hasAction(){return!!this.promptAction}get navigateButton(){var e
return null===(e=this.promptAction)||void 0===e?void 0:e.navigate}get navigationContext(){return this.args.model.imageNavigationContext}get image(){return this.args.model.image}get subscribeAction(){var e
return null===(e=this.promptAction)||void 0===e?void 0:e.subscribe}get connectAction(){var e
return null===(e=this.promptAction)||void 0===e?void 0:e.connect}get followAction(){var e
return null===(e=this.promptAction)||void 0===e?void 0:e.follow}get followingInfo(){return this.args.isDashEnabled?this.followAction.followingState:this.followAction.followingInfo}get hasInvitedToConnect(){return this.connectAction&&"INVITATION_PENDING"===(0,l.get)(this.connectAction,"type")}get recommendGroupPostAction(){var e
return null===(e=this.promptAction)||void 0===e?void 0:e.recommendGroupPostAction}get postGroupQuestionAction(){var e
return null===(e=this.promptAction)||void 0===e?void 0:e.postGroupQuestionAction}get showPromptComponent(){if(this.args.isMultiPhotoPost){return!this.localStorage.getItem("has-dismissed-multiphoto-deprecation-experiment-prompt")&&!this.isPromptComponentDismissed}return!this.isPromptComponentDismissed}get imageControlName(){let e
e=this.subscribeAction?p.PROMPT_COMPONENT_TRACKING_CONSTANTS.SUBSCRIBE.IMAGE_CONTROL_NAME:this.followAction?p.PROMPT_COMPONENT_TRACKING_CONSTANTS.FOLLOW.IMAGE_CONTROL_NAME:p.PROMPT_COMPONENT_TRACKING_CONSTANTS.IMAGE_CONTROL_NAME
return e}get recommendedGroupPostUrn(){return this.recommendGroupPostAction.groupPostUrn}get groupUrn(){var e,t,n
return this.args.isDashEnabled?null===(e=this.args.updateMetadata)||void 0===e?void 0:e.group.entityUrn:null===(t=this.args.updateMetadata)||void 0===t||null===(n=t.miniGroup)||void 0===n?void 0:n.dashEntityUrn}get groupName(){var e,t,n,o
return(this.args.isDashEnabled?null===(e=this.args.updateMetadata)||void 0===e||null===(t=e.group)||void 0===t?void 0:t.name:null===(n=this.args.updateMetadata)||void 0===n||null===(o=n.miniGroup)||void 0===o?void 0:o.groupName)||""}get legoTrackingId(){var e
return null===(e=this.args.updateMetadata.trackingData)||void 0===e?void 0:e.trackingId}get isSponsored(){var e
return!(null===(e=this.args.updateMetadata.trackingData)||void 0===e||!e.sponsoredTracking)}get isPublicGroup(){var e,t,n,o,i
return(this.args.isDashEnabled?null===(e=this.args.updateMetadata)||void 0===e||null===(t=e.group)||void 0===t?void 0:t.publicVisibility:null===(n=this.args.updateMetadata)||void 0===n||null===(o=n.miniGroup)||void 0===o?void 0:o.publicVisibility)||"PUBLIC"===(null===(i=this.args.updateMetadata)||void 0===i?void 0:i.shareAudience)}onPromptComponentDismiss(){var e,t
this.args.isMultiPhotoPost&&this.localStorage.setItem("has-dismissed-multiphoto-deprecation-experiment-prompt",!0)
this.isPromptComponentDismissed=!0
const{model:n,updateTrackingObj:o,isMultiPhotoPost:i,isDocumentPost:a}=this.args
let r=""
r=i?"dismissMultiPhotoPrompt":a?"dismissDocumentPrompt":n.dismissTrackingActionType
r&&(null==o||o.fireFeedActionAndSponsoredTrackingEvents({actionType:r,controlName:"prompt_dismiss",accessoryTrackingId:n.trackingId,actionCategory:"DISMISS"}))
this._fireLegoEvent(this.legoTracking.LEGO_ACTION_DISMISS)
null===(e=(t=this.args).onHideUpdateAttachment)||void 0===e||e.call(t)}onImageClick(){const{model:e,updateTrackingObj:t}=this.args,n=this.navigationContext.trackingActionType,o=this.imageControlName
n&&(null==t||t.fireFeedActionAndSponsoredTrackingEvents({actionType:n,controlName:o,accessoryTrackingId:e.trackingId,actionCategory:"VIEW"}))}handleImpressionTracking(){const{model:e,updateTrackingObj:t,triggerAction:n=null}=this.args,{trackingId:o}=e
let i
i=this.subscribeAction?p.PROMPT_COMPONENT_TRACKING_CONSTANTS.SUBSCRIBE.CONTROL_NAME:this.connectAction?p.PROMPT_COMPONENT_TRACKING_CONSTANTS.CONNECT.CONTROL_NAME:this.followAction?this.followControlName:this.recommendGroupPostAction?p.PROMPT_COMPONENT_TRACKING_CONSTANTS.RECOMMEND_GROUP_POST.CONTROL_NAME:this.postGroupQuestionAction?p.PROMPT_COMPONENT_TRACKING_CONSTANTS.POST_GROUP_QUESTION.CONTROL_NAME:p.PROMPT_COMPONENT_TRACKING_CONSTANTS.PROMPT_CONTROL_NAME
const a=null==t?void 0:t.generateFeedAccessoryImpressionEventBody([{accessoryEntityUrn:null,accessoryTrackingId:o,controlUrn:this.tracking.generateControlUrn(i),listPosition:{index:1}}],o,p.ACCESSORY_TRIGGER_TYPE_MAP[n])
return()=>a?{body:a,name:"FeedAccessoryImpressionEvent"}:[]}handleLegoImpressionTracking(){this._fireLegoEvent(this.legoTracking.LEGO_IMPRESSION_VISIBILITY_SHOW)}handleFollowButtonClick(){const{model:e,updateTrackingObj:t}=this.args,{followAction:n}=this,{following:o}=this.followingInfo,{unfollowTrackingActionType:i}=n,{followTrackingActionType:a}=n
if(i||a){null==t||t.fireFeedActionAndSponsoredTrackingEvents({actionType:o?i:a,controlName:p.PROMPT_COMPONENT_TRACKING_CONSTANTS.FOLLOW.BUTTON_CONTROL_NAME,accessoryTrackingId:e.trackingId,actionCategory:o?p.FeedConstants.UNFOLLOW:p.FeedConstants.FOLLOW})
this._fireLegoEvent(this.legoTracking.LEGO_ACTION_PRIMARY)}}handleNavigateButtonClick(){var e
const t=null===(e=this.navigateButton.navigationContext)||void 0===e?void 0:e.trackingActionType,{updateTrackingObj:n}=this.args
null==n||n.fireFeedActionAndSponsoredTrackingEvents({actionType:t,controlName:p.PROMPT_COMPONENT_TRACKING_CONSTANTS.PROMPT_CONTROL_NAME,actionCategory:"VIEW"})
this._fireLegoEvent(this.legoTracking.LEGO_ACTION_PRIMARY)}handleSubscribeButtonClick(){const e=this.isSubscribed
let t
if(this.args.isDashEnabled){var n,o
t=`/voyager/api/voyagerPublishingDashSubscribeAction/${null===(n=this.promptAction)||void 0===n||null===(o=n.subscribe)||void 0===o?void 0:o.entityUrn}`}else{var i,a
t=`/voyager/api/voyagerPublishingDashSubscribeAction/${null===(i=this.promptAction)||void 0===i||null===(a=i.subscribe)||void 0===a?void 0:a.dashEntityUrn}`}const r={patch:{$set:{type:"AUTHOR",subscribed:!e}}}
return this.storeShim.queryURL(t,{method:"POST",reload:!0,params:r}).then((()=>{if(!this.isDestroying){var t,n,o,i,a,r
this.isSubscribed=!e
const s=null===(t=this.promptAction)||void 0===t||null===(n=t.subscribe)||void 0===n||null===(o=n.subscribeConfirmationMessage)||void 0===o?void 0:o.text,l=null===(i=this.promptAction)||void 0===i||null===(a=i.subscribe)||void 0===a||null===(r=a.unsubscribeConfirmationMessage)||void 0===r?void 0:r.text,d=this.isSubscribed?s:l
d&&this.persistentToastManager.success({message:d})
const{model:c,updateTrackingObj:u}=this.args
null==u||u.fireFeedActionAndSponsoredTrackingEvents({actionType:this.isSubscribed?p.PROMPT_COMPONENT_TRACKING_CONSTANTS.SUBSCRIBE.ACTION_TYPE.subscribe:p.PROMPT_COMPONENT_TRACKING_CONSTANTS.SUBSCRIBE.ACTION_TYPE.unsubscribe,controlName:p.PROMPT_COMPONENT_TRACKING_CONSTANTS.SUBSCRIBE.CONTROL_NAME,accessoryTrackingId:c.trackingId,actionCategory:this.isSubscribed?p.PROMPT_COMPONENT_TRACKING_CONSTANTS.SUBSCRIBE.ACTION_CATEGORY.subscribe:p.PROMPT_COMPONENT_TRACKING_CONSTANTS.SUBSCRIBE.ACTION_CATEGORY.unsubscribe})
this._fireLegoEvent(this.legoTracking.LEGO_ACTION_PRIMARY)}})).catch((e=>{if((0,s.isDestroying)(this))throw e
const t=this.i18n.lookupTranslation("components/feed-shared@prompt-component","i18n_subscribe_error_toast")()
this.persistentToastManager.error({message:t})
throw e}))}sendConnectionInvite(){if(this.connectAction){var e
const t=this.args.isDashEnabled?this.connectAction.publicProfileIdentifier:this.connectAction.profileId
null===(e=this.args.updateTrackingObj)||void 0===e||e.fireFeedActionAndSponsoredTrackingEvents({actionCategory:"CONNECT",actionType:"connectActor",controlName:"prompt_connect_toggle"})
this._fireLegoEvent(this.legoTracking.LEGO_ACTION_PRIMARY)
this.invitationPlatform.sendInvitationByProfileId({profileId:t}).then((e=>{if(!this.isDestroying){(0,l.set)(this.connectAction,"type","INVITATION_PENDING")
if(e&&e.followEdgeUpdated){const t=(0,b.getName)(e.invitee),n=(0,f.default)(this.i18n.lookupTranslation("components/feed-shared@prompt-component","toast_connect_auto_follow_confirmation")([{member:t,linkInfo:{href:`${(0,h.getDomainUrl)()}/help/linkedin/answer/a702683`,target:"_blank"}}]))
this.persistentToastManager.success({message:n})}}})).catch((e=>{if((0,s.isDestroying)(this))throw e
if(!e||!e.isAdapterError)throw e
{const e=this.i18n.lookupTranslation("components/feed-shared@prompt-component","i18n_connect_error_toast")()
this.persistentToastManager.error({message:e})}}))}}closeDecisionModal(){this.showDecisionModal=!1}closeGroupsShareboxModal(){this.showGroupsShareboxModal=!1}handleRecommendButtonClick(){this.decisionModalContext={pageTrackingKey:"",learnMoreTrackingKey:"learn_more_recommend_post",modalTitle:void 0,modalDescription:void 0,modalInfoItems:void 0,confirmKeyText:void 0,cancelKeyText:void 0,learnMoreLink:void 0,modalCSS:void 0,descriptionCSS:void 0,cancelKeyCSS:void 0,illustrationCSS:"mh6 ph6 block",learnMoreCSS:void 0,isLoading:!0,modalSize:"medium"}
this.isDestroying||(this.showDecisionModal=!0)
const{model:e,updateTrackingObj:t}=this.args
null==t||t.fireFeedActionAndSponsoredTrackingEvents({actionType:"recommendGroupPostAction",controlName:p.PROMPT_COMPONENT_TRACKING_CONSTANTS.RECOMMEND_GROUP_POST.CONTROL_NAME,accessoryTrackingId:e.trackingId,actionCategory:p.FeedConstants.RECOMMEND_GROUP_POST})
this._fireLegoEvent(this.legoTracking.LEGO_ACTION_PRIMARY)
let n
if(this.isPostRecommendationsGraphqlEnabled){var o
n=this.graphql.executeQuery(k.default,{updateUrn:null===(o=this.args)||void 0===o?void 0:o.dashEntityUrn},{reload:!0})}else n=this.storeShim.queryURL("voyagerGroupsPostRecommendation",{params:{q:"post",groupPostUrn:this.recommendedGroupPostUrn},reload:!0})
n.then((e=>{var t
if((0,s.isDestroying)(this))return
const n=this.isPostRecommendationsGraphqlEnabled?null===(t=e.data.groupsDashPostRecommendationByPost)||void 0===t?void 0:t.elements[0]:e.elements[0]||{},o=n.dialogTitle||"",i=n.dialogBody||"",a=this.isPostRecommendationUpdatesEnabled?n.infoItems:null,r=n.canRecommend,d=a?null:`${(0,h.getDomainUrl)()}/help/linkedin/answer/99576`,c=this.isPostRecommendationUpdatesEnabled?"text-align-left":null
r?(0,l.setProperties)(this.decisionModalContext,{modalTitle:o,modalDescription:i,modalInfoItems:a,isLoading:false,learnMoreLink:d,confirmKeyText:this.i18n.lookupTranslation($,a?"confirm":"recommend")(),cancelKeyText:this.i18n.lookupTranslation($,"cancel")(),modalCSS:c,confirmAction:this.handleRecommendButtonConfirmClick,cancelTrackingKey:"cancel_recommend_post",confirmTrackingKey:"recommend_group_post"}):(0,l.setProperties)(this.decisionModalContext,{modalTitle:o,modalDescription:i,isLoading:false,confirmKeyText:this.i18n.lookupTranslation($,"okay")(),modalCSS:c,descriptionCSS:this.isPostRecommendationUpdatesEnabled?"text-body-medium t-black pl4 pr2 mv5":null,learnMoreCSS:this.isPostRecommendationUpdatesEnabled?"artdeco-button artdeco-button--secondary mr2":null,illustrationCSS:this.isPostRecommendationUpdatesEnabled?null:"circle-warning illustration-56 inline-block mb1",confirmTrackingKey:"close_recommend_post"})})).catch((e=>{if((0,s.isDestroying)(this))throw e
const t=e.errors||[],{message:n}=t[0]||{}
if((e.isAdapterError||e instanceof S.GraphQLQueryError)&&(0,g.isHttpErrorStatus)(e)){this.persistentToastManager.error({message:n})
this.showDecisionModal=!1}throw e}))}handleRecommendButtonConfirmClick(){var e;(this.isPostRecommendationsGraphqlEnabled?this.graphql.executeMutation(T.default,{updateUrn:null===(e=this.args)||void 0===e?void 0:e.dashEntityUrn}):this.storeShim.queryURL("voyagerGroupsPostRecommendation",{params:{action:"recommendPost",q:"post",groupPostUrn:this.recommendedGroupPostUrn}})).then((()=>{if((0,s.isDestroying)(this))return
const e=this.i18n.lookupTranslation($,"i18n_recommend_group_post_success")()
this.persistentToastManager.success({message:e})})).catch((e=>{if((0,s.isDestroying)(this))throw e
const t=e.errors||[],{message:n}=t[0]||{}
if((e.isAdapterError||e instanceof S.GraphQLQueryError)&&(0,g.isHttpErrorStatus)(e)){this.persistentToastManager.error({message:n})
this.showDecisionModal=!1}throw e}))}handlePostGroupQuestionClick(){const{model:e,updateTrackingObj:t}=this.args
this.groupsShareboxVisibilityType={type:"GROUP",containerEntity:this.groupUrn,name:this.groupName,iconType:this.isPublicGroup?"globe-americas":"group"}
this._openGroupsShareboxModal()
this.tracking.fireInteractionEvent(p.PROMPT_COMPONENT_TRACKING_CONSTANTS.POST_GROUP_QUESTION.CONTROL_NAME)
null==t||t.fireFeedActionAndSponsoredTrackingEvents({actionType:"share",controlName:p.PROMPT_COMPONENT_TRACKING_CONSTANTS.POST_GROUP_QUESTION.CONTROL_NAME,accessoryTrackingId:e.trackingId,actionCategory:"SHARE"})
this._fireLegoEvent(this.legoTracking.LEGO_ACTION_PRIMARY)}_openGroupsShareboxModal(){var e,t
null===(e=(t=this.args).onShareBoxModalOpen)||void 0===e||e.call(t)
this.showGroupsShareboxModal=!0}_fireLegoEvent(e){const{legoTrackingToken:t}=this.args.model
if(e&&t){const{legoTracking:n}=this
e===n.LEGO_IMPRESSION_VISIBILITY_SHOW?n.sendLegoImpression(t,e):n.sendLegoAction(t,e,1)}}},U=(0,o.default)(x.prototype,"tracking",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,o.default)(x.prototype,"legoTracking",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,o.default)(x.prototype,"localStorage",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,o.default)(x.prototype,"storeShim",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,o.default)(x.prototype,"persistentToastManager",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,o.default)(x.prototype,"i18n",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,o.default)(x.prototype,"invitationPlatform",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=(0,o.default)(x.prototype,"graphql",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,o.default)(x.prototype,"isSubscribed",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=(0,o.default)(x.prototype,"lix",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K=(0,o.default)(x.prototype,"isPromptComponentDismissed",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),q=(0,o.default)(x.prototype,"showDecisionModal",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),W=(0,o.default)(x.prototype,"showGroupsShareboxModal",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Q=(0,o.default)(x.prototype,"decisionModalContext",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,o.default)(x.prototype,"onPromptComponentDismiss",[l.action],Object.getOwnPropertyDescriptor(x.prototype,"onPromptComponentDismiss"),x.prototype),(0,o.default)(x.prototype,"onImageClick",[l.action],Object.getOwnPropertyDescriptor(x.prototype,"onImageClick"),x.prototype),(0,o.default)(x.prototype,"handleImpressionTracking",[l.action],Object.getOwnPropertyDescriptor(x.prototype,"handleImpressionTracking"),x.prototype),(0,o.default)(x.prototype,"handleLegoImpressionTracking",[l.action],Object.getOwnPropertyDescriptor(x.prototype,"handleLegoImpressionTracking"),x.prototype),(0,o.default)(x.prototype,"handleFollowButtonClick",[l.action],Object.getOwnPropertyDescriptor(x.prototype,"handleFollowButtonClick"),x.prototype),(0,o.default)(x.prototype,"handleNavigateButtonClick",[l.action],Object.getOwnPropertyDescriptor(x.prototype,"handleNavigateButtonClick"),x.prototype),(0,o.default)(x.prototype,"handleSubscribeButtonClick",[l.action],Object.getOwnPropertyDescriptor(x.prototype,"handleSubscribeButtonClick"),x.prototype),(0,o.default)(x.prototype,"sendConnectionInvite",[l.action],Object.getOwnPropertyDescriptor(x.prototype,"sendConnectionInvite"),x.prototype),(0,o.default)(x.prototype,"closeDecisionModal",[l.action],Object.getOwnPropertyDescriptor(x.prototype,"closeDecisionModal"),x.prototype),(0,o.default)(x.prototype,"closeGroupsShareboxModal",[l.action],Object.getOwnPropertyDescriptor(x.prototype,"closeGroupsShareboxModal"),x.prototype),(0,o.default)(x.prototype,"handleRecommendButtonClick",[l.action],Object.getOwnPropertyDescriptor(x.prototype,"handleRecommendButtonClick"),x.prototype),(0,o.default)(x.prototype,"handleRecommendButtonConfirmClick",[l.action],Object.getOwnPropertyDescriptor(x.prototype,"handleRecommendButtonConfirmClick"),x.prototype),(0,o.default)(x.prototype,"handlePostGroupQuestionClick",[l.action],Object.getOwnPropertyDescriptor(x.prototype,"handlePostGroupQuestionClick"),x.prototype),x);(0,a.setComponentTemplate)(Y,Z)}))
define("feed-shared/components/render-models/update-v2",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/component","@ember/template-factory","@ember/destroyable","@glimmer/component","@ember/debug","@ember/object","tracked-toolbox","@ember/service","@glimmer/tracking","@ember/utils","comments/utils/constants","ember","@ember/object/internals","ember-lifeline","feed-requests/update-actions","feed-requests/updates","feed-utils/helpers/render-model-path","feed-utils/utils/client-sensor-constants","feed-utils/utils/constants","feed-utils/utils/public-group","feed-tracking/utils/update-tracking-obj","global-utils/utils/a11y-focus-element","global-utils/utils/api-compat","global-utils/utils/is-browser","global-utils/utils/scroller","global-utils/utils/url","global-utils/utils/urn-converter","groups-shared/utils/constants","feed-utils/utils/authenticated-member-actor","rsvp","@ember/runloop","global-utils/utils/custom-tracking-transporters","feed-utils/utils/update-content-union-util","dash-interop-helper/utils/get-graphql-value-with-dash-fallback","feed-utils/utils/feed-simplification-status","graphql-queries/queries/feed/single-update.graphql","voyager-web/config/environment","app-aware-link/utils/get-sponsored-url-attributes"],(function(e,t,n,o,i,a,r,s,l,d,c,u,p,m,h,g,f,b,y,v,C,T,k,S,O,E,_,M,w,D,A,P,I,R,x,U,N,j,L,F,B,z,G){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var V,H,K,q,W,Q,Y,$,Z,X,J,ee,te,ne,oe,ie,ae,re,se,le,de,ce,ue,pe,me,he,ge,fe,be,ye,ve,Ce,Te,ke,Se,Oe,Ee,_e,Me,we,De,Ae,Pe,Ie,Re,xe,Ue,Ne,je,Le,Fe,Be,ze,Ge,Ve
const He=(0,r.createTemplateFactory)({id:"ZWjP7Pvw",block:'[[[11,0],[24,0,"full-height"],[4,[52,[30,0,["shouldBindPVEScrollModifier"]],[50,[28,[37,2],["modifier:ember-scroll-modifiers@did-intersect"],null],2,null,[["onEnter","options"],[[30,0,["pageViewDidIntersectOptions","onEnter"]],[30,0,["pageViewDidIntersectOptions","options"]]]]]],null,null],[12],[1,"\\n "],[11,0],[24,0,"full-height"],[4,[52,[30,0,["shouldUseUpdateDwellTracking"]],[50,[28,[37,2],["modifier:ember-scroll-modifiers@did-intersect"],null],2,null,[["onEnter","onExit","options"],[[30,0,["onUpdateEnteredViewport"]],[30,0,["onUpdateExitedViewport"]],[28,[37,3],null,[["threshold"],[0.95]]]]]]],null,null],[12],[1,"\\n "],[11,0],[16,0,[29,["feed-shared-update-v2 feed-shared-update-v2--minimal-padding full-height relative\\n ",[52,[30,1],"feed-shared-update-v2--highlighted"],"\\n ",[52,[30,0,["showPremiumBranding"]],"premium-accent-bar"],"\\n ",[52,[30,0,["isEdgeToEdge"]],"feed-shared-update-v2--e2e"],"\\n ",[52,[30,2],"feed-shared-update-v2--wrapped"],"\\n ",[52,[30,0,["hasElevation"]],"artdeco-card"],"\\n ",[52,[30,0,["hasBottomPadding"]],"pb4"],"\\n ",[52,[30,0,["isClickToMessageAd"]],"pb6"],"\\n "]]],[16,1,[30,0,["elementId"]]],[16,"tabindex",[52,[30,0,["shouldFocusOnFeedUpdate"]],"-1"]],[24,"role","region"],[16,"aria-label",[52,[30,1],[28,[37,4],["highlighted_update_a11y_landmark","feed-shared/components/render-models/update-v2"],null]]],[16,"data-urn",[30,0,["updateId"]]],[17,3],[4,[38,5],[[30,0,["handleDidInsert"]]],null],[4,[38,6],[[30,0,["handleHiddenSponsoredUpdates"]]],null],[4,[38,7],null,[["onEnter","onExit","options"],[[52,[30,0,["didIntersectOptions","onEnter"]],[30,0,["didIntersectOptions","onEnter"]],[28,[37,8],null,null]],[52,[30,0,["didIntersectOptions","onExit"]],[30,0,["didIntersectOptions","onExit"]],[28,[37,8],null,null]],[30,0,["didIntersectOptions","options"]]]]],[4,[38,9],[[30,0,["onResizeWindow"]]],null],[4,[38,10],null,[["registerOnImpression","thresholdMillisecondsInViewport","thresholdPercentageInViewport","routeName","currentRoute"],[[30,0,["onTrackImpression"]],0,50,[28,[37,11],[[53,"outletState"],"render.name"],null],[28,[37,11],[[53,"outletState"],"render"],null]]]],[4,[38,13],null,[["rumComponentId","elementId"],[[30,0,["rumComponentId"]],[30,0,["elementId"]]]]],[12],[1,"\\n "],[8,[39,14],[[16,0,[30,4]]],[["@sponsoredMetadata","@updatePosition","@shouldSuppressTracking"],[[30,0,["sponsoredMetadata"]],[30,5],[28,[37,15],[[30,0,["isPromoComponent"]],[30,6,["sponsored"]]],null]]],[["default"],[[[[1,"\\n"],[1," "],[10,0],[14,"role","status"],[12],[1,"\\n"],[41,[30,0,["isUpdateHiddenByControlMenuAction"]],[[[1," "],[8,[39,16],null,[["@hideOrUnhideUpdateOnAction","@isCenteredLayout","@update","@updateTrackingObj","@menuAction","@associatedSettingType","@isDashEnabled"],[[30,0,["hideOrUnhideUpdateOnAction"]],[30,7],[30,0,["update"]],[30,0,["updateTrackingObj"]],[30,0,["menuAction"]],[30,0,["menuActionAssociatedSettingType"]],[30,8]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[51,[30,0,["isUpdateHiddenByControlMenuAction"]]],[[[1," "],[18,41,[[28,[37,19],null,[["controlMenu","header","contextualHeader","detailHeader","actor","contextualDescriptionV2","captionsEdit","shareEdit","inlineShowMoreText","interstitial","commentary","commentaryContainer","content","carouselContent","footer","resharedUpdate","aggregatedContent","inlineFeedback","additionalContents","updateV2SocialActivity","leadGenModal","leadGenCTA","leadGenThankYou"],[[52,[51,[30,9]],[50,"feed-control-menu@control-menu",0,null,[["actor","allowedCommentersScope","class","contentClass","hasDocument","hasLinkedInVideo","hideOrUnhideUpdateOnAction","isDashEnabled","feedSimplificationStatus","reloadActionsDisabled","menuActions","normalizedCommentary","onControlMenuItemSelection","onEdit","onEditCaptions","onHideUpdateAttachment","onToggleCommenting","onTriggerUpdateAttachment","reloadUpdate","removeUpdate","updateCommentRestrictionSetting","updateEntityUrn","updateMetadata","updateTrackingObj","shouldFocusOnControlTrigger","expandCommentBox"],[[30,0,["update","actor"]],[30,0,["update","socialDetail","allowedCommentersScope"]],"feed-shared-update-v2__control-menu absolute text-align-right",[30,0,["normalizedContentClass"]],[30,0,["hasDocument"]],[30,0,["hasLinkedInVideo"]],[30,0,["hideOrUnhideUpdateOnAction"]],[30,8],[30,0,["feedSimplificationStatus"]],[30,10],[30,0,["updateMetadata","actions"]],[30,0,["normalizedCommentary"]],[30,11],[28,[37,21],[[28,[37,22],[[30,12]],null],true],null],[28,[37,21],[[28,[37,22],[[30,13]],null],true],null],[30,14],[30,0,["onToggleCommenting"]],[30,15],[30,0,["reloadUpdate"]],[30,16],[30,0,["updateCommentRestrictionSetting"]],[30,0,["update","entityUrn"]],[30,0,["updateMetadata"]],[30,0,["updateTrackingObj"]],[30,0,["shouldFocusOnControlTrigger"]],[30,0,["expandCommentBox"]]]]]],[52,[30,0,["update","header"]],[50,"update-components@header",0,null,[["model","openLinksExternally","updateMetadata","updateTrackingObj","isDashEnabled","useTVM","feedSimplificationStatus","fsActionBarOptimizationEnabled"],[[30,0,["update","header"]],[30,0,["openLinksExternally"]],[30,0,["updateMetadata"]],[30,0,["updateTrackingObj"]],[30,8],false,[30,0,["feedSimplificationStatus"]],[30,0,["fsActionBarOptimizationEnabled"]]]]]],[52,[30,0,["update","contextualHeader"]],[50,"update-components@contextual-header",0,null,[["model","updateTrackingObj","isDashEnabled","feedSimplificationStatus"],[[30,0,["update","contextualHeader"]],[30,0,["updateTrackingObj"]],[30,8],[30,0,["feedSimplificationStatus"]]]]]],[52,[30,0,["update","detailHeader"]],[50,"update-components@header",0,null,[["model","openLinksExternally","testSelector","updateMetadata","updateTrackingObj","isDashEnabled"],[[30,0,["update","detailHeader"]],[30,0,["openLinksExternally"]],"data-test-feed-shared-detail-header",[30,0,["updateMetadata"]],[30,0,["updateTrackingObj"]],[30,8]]]]],[52,[30,0,["update","actor"]],[50,"update-components@actor",0,null,[["class","model","onTriggerUpdateAttachment","openLinksExternally","updateMetadata","updateTrackingObj","isDashEnabled","feedSimplificationStatus","onGroupMembershipUpdate","expandCommentBox"],[[52,[30,17],"hidden"],[30,0,["update","actor"]],[30,15],[30,0,["openLinksExternally"]],[30,0,["updateMetadata"]],[30,0,["updateTrackingObj"]],[30,8],[30,0,["feedSimplificationStatus"]],[30,0,["onGroupMembershipUpdate"]],[30,0,["expandCommentBox"]]]]]],[52,[30,0,["contextualDescription"]],[50,"update-components@contextual-description-v2",0,null,[["containsActorComponent","model","openLinksExternally","updateMetadata","updateTrackingObj","isDashEnabled"],[[28,[37,23],[[30,0,["update","actor"]]],null],[30,0,["contextualDescription"]],[30,0,["openLinksExternally"]],[30,0,["updateMetadata"]],[30,0,["updateTrackingObj"]],[30,8]]]]],[50,"video@edit-captions-modal",0,null,[["onCloseEditCaptionsModal","isEditModalOpen","videoPlayMetadata","updateUrn","actor","entityUrn"],[[28,[37,21],[[28,[37,22],[[30,13]],null],false],null],[30,18],[30,0,["normalizedContent","videoPlayMetadata"]],[30,0,["updateId"]],[30,0,["update","actor"]],[30,0,["update","entityUrn"]]]]],[50,"sharing-entry@share-box-modal",0,null,[["actorsOverride","groupId","isShareboxModalOpen","onCloseShareboxModal","onEditShareSuccess","shareUrn","updateV2","returnFocusTo"],[[30,0,["actorsOverride"]],[30,0,["groupId"]],[30,17],[28,[37,21],[[28,[37,22],[[30,12]],null],false],null],[30,0,["onEditShareSuccess"]],[30,0,["updateMetadata","shareUrn"]],[30,0,["update"]],[28,[37,15],[[30,19],[28,[37,24],["#",[30,0,["elementId"]]," .feed-shared-update-v2__control-menu button"],null]],null]]]],[50,"feed-components-shared@inline-show-more-text",0,null,[["class","numLinesBeforeTruncation","trackingOverrides","updateTrackingObj"],["feed-shared-inline-show-more-text--minimal-padding",[30,0,["commentaryNumLines"]],[30,0,["commentaryInlineSeeMoreTrackingOverrides"]],[30,0,["updateTrackingObj"]]]]],[50,"feed-components-shared@interstitial-container",0,null,[["model","coverage","size","updateTrackingObj","entityUrn","isDashEnabled"],[[30,0,["update","interstitial","interstitial"]],[30,0,["update","interstitial","coverageType"]],[30,0,["update","interstitial","templateType"]],[30,0,["updateTrackingObj"]],[30,0,["updateId"]],[30,8]]]],[52,[30,0,["normalizedCommentary"]],[50,"update-components@text",0,null,[["class","testSelector","ignoreNavigationContext","model","openLinksExternally","textAttributeControlNames","textDirection","updateMetadata","updateTrackingObj","isDashEnabled","shouldShowLineBreaks"],["update-components-update-v2__commentary","data-test-feed-shared-commentary",true,[30,0,["normalizedCommentary"]],[30,0,["openLinksExternally"]],[28,[37,3],null,[["companyMention","email","hashtag","hyperlink","textLink","profileMention"],["commentary_mention","commentary_link","commentary_hashtag","commentary_link","commentary_link","commentary_mention"]]],[28,[37,25],[[30,0,["normalizedCommentary","text","text"]]],null],[30,0,["updateMetadata"]],[30,0,["updateTrackingObj"]],[30,8],[30,20]]]]],[52,[30,0,["normalizedCommentary"]],[50,"update-components@commentary-container",0,null,[["class","commentary","commentaryInlineSeeMoreTrackingOverrides","ignoreNavigationContext","isCarouselUpdate","isDashEnabled","isExpanded","feedSimplificationStatus","isTextOnly","isTranslationSupported","numLinesBeforeTruncation","openLinksExternally","updateMetadata","updateTrackingObj","expandCommentBox"],["feed-shared-update-v2__description-wrapper",[30,0,["normalizedCommentary"]],[30,0,["commentaryInlineSeeMoreTrackingOverrides"]],[28,[37,26],[[30,7]],null],[30,7],[30,8],[30,0,["shouldExpandCommentaryText"]],[30,0,["feedSimplificationStatus"]],[30,0,["isTextOnlyPost"]],[30,0,["showTranslateButton"]],[30,0,["commentaryNumLines"]],[30,0,["openLinksExternally"]],[30,0,["updateMetadata"]],[30,0,["updateTrackingObj"]],[30,0,["expandCommentBox"]]]]]],[52,[28,[37,27],[[30,0,["normalizedContent"]]],null],[50,[28,[37,28],[[28,[37,27],[[30,0,["normalizedContent"]]],null]],null],0,null,[["class","actor","authenticatedActor","content","entityUrn","hasActor","hideOrUnhideUpdateOnAction","isAccuratePreview","isAdsTransparency","isCarouselUpdate","isDetailView","isEditingShare","isLeadGenFormUpdate","model","onEdit","onEditCaptions","onTriggerUpdateAttachment","openLinksExternally","setSurveyDisplayContent","shouldSuppressTracking","surveyDisplayContent","update","updateMetadata","updateModelWithProperties","updateTrackingObj","isDashEnabled","feedSimplificationStatus","fireCustomTracking","expandCommentBox"],[[30,0,["contentClass"]],[30,0,["update","actor"]],[30,0,["actor"]],[30,0,["update","content"]],[30,0,["update","entityUrn"]],[30,0,["hasActor"]],[30,0,["hideOrUnhideUpdateOnAction"]],[30,0,["isAccuratePreview"]],[30,21],[30,7],[30,22],[30,17],[30,0,["isLeadGenFormUpdate"]],[30,0,["normalizedContent"]],[28,[37,21],[[28,[37,22],[[30,12]],null],true],null],[28,[37,21],[[28,[37,22],[[30,13]],null],true],null],[30,15],[30,0,["openLinksExternally"]],[30,23],[30,6],[30,24],[30,0,["update"]],[30,0,["updateMetadata"]],[30,0,["updateModelWithProperties"]],[30,0,["updateTrackingObj"]],[30,8],[30,0,["feedSimplificationStatus"]],[30,0,["fireCustomTracking"]],[30,0,["expandCommentBox"]]]]]],[52,[30,0,["normalizedCarouselContent"]],[50,"feed-shared@carousel",0,null,[["hideCaEntryPoint","impressionRowPosition","isDashEnabled","model","openLinksExternally","organizationUniversalName","shouldSuppressTracking","showADNavigationButtons","carouselNextAriaLabel","carouselPreviousAriaLabel","updateMetadata","updateTrackingObj","feedSimplificationStatus","expandCommentBox","authenticatedActor"],[[30,25],[30,5],[30,8],[30,0,["normalizedCarouselContent"]],[30,0,["openLinksExternally"]],[30,26],[30,6],[30,27],[30,28],[30,29],[30,0,["updateMetadata"]],[30,0,["updateTrackingObj"]],[30,0,["feedSimplificationStatus"]],[30,0,["expandCommentBox"]],[30,0,["actor"]]]]]],[52,[28,[37,27],[[30,0,["normalizedFooter"]]],null],[50,[28,[37,28],[[28,[37,27],[[30,0,["normalizedFooter"]]],null]],null],0,null,[["actor","class","commentary","content","data-test-update-v2-footer","model","updateMetadata","updateTrackingObj","isDashEnabled","isUpdateFooter","feedSimplificationStatus","isDetailView","updateReferenceId","socialDetail","isEligibleForDwellAnimation"],[[30,0,["update","actor"]],"feed-shared-footer",[30,0,["update","commentary"]],[30,0,["normalizedContent"]],true,[30,0,["normalizedFooter"]],[30,0,["updateMetadata"]],[30,0,["updateTrackingObj"]],[30,8],true,[30,0,["feedSimplificationStatus"]],[30,22],[30,0,["elementId"]],[30,0,["update","socialDetail"]],[30,0,["isEligibleForDwellAnimation"]]]]]],[52,[30,0,["update","resharedUpdate"]],[50,"update-components@mini-update-v2",0,null,[["authenticatedActor","isReshareContent","update","navigateToDetailTracking","onTriggerUpdateAttachment","updateTrackingObj","isDashEnabled"],[[30,0,["actor"]],true,[30,0,["update","resharedUpdate"]],[30,0,["navigateToDetailTracking"]],[30,15],[30,0,["updateTrackingObj"]],[30,8]]]]],[52,[30,0,["update","aggregatedContent"]],[50,"feed-shared@aggregated-content",0,null,[["model","updateMetadata","updatePosition","updateTrackingObj","isDashEnabled","feedSimplificationStatus"],[[30,0,["update","aggregatedContent"]],[30,0,["updateMetadata"]],[30,5],[30,0,["updateTrackingObj"]],[30,8],[30,0,["feedSimplificationStatus"]]]]]],[52,[30,0,["inlineFeedback"]],[50,"artdeco-inline-feedback@artdeco-inline-feedback",0,null,[["classNames","linkText","message","onClick","type"],["pv2 ph3",[52,[30,8],[30,0,["inlineFeedback","linkText"]],[30,0,["inlineFeedback","link","text"]]],[30,0,["inlineFeedback","text"]],[28,[37,21],[[30,0,["onClickInlineFeedbackLink"]],[30,0,["update","annotation"]]],null],[28,[37,29],[[30,0,["inlineFeedback","type"]]],null]]]]],[52,[30,0,["normalizedAdditionalContents"]],[50,"update-components@additional-contents",0,null,[["isDetailView","feedSimplificationStatus","updateTrackingObj","additionalContents"],[[30,22],[30,0,["feedSimplificationStatus"]],[30,0,["updateTrackingObj"]],[30,0,["normalizedAdditionalContents"]]]]]],[50,"social-details@social-activity-types/update-v2-social-activity",0,null,[["a11yContext","authenticatedActor","caEngineName","canRequestConversationStarters","commentingAtActors","commentNetworkErrorMessage","commentSortType","conversationStarters","conversationStartersUseCase","entityUrn","feedSimplificationStatus","fireCustomTracking","groupId","hideCaEntryPoint","hideCommentsWithoutInteraction","hideDetourButtons","hideReactionsMenu","hideReshare","hideSendPrivately","initialTextAndMentions","isCarouselUpdate","isClickToMessageAd","isCommentingDisabled","isCommentsCountVisible","isCurrentUserAuthor","isDashEnabled","isDashUpdate","isDetailView","isLoadingComments","loadCommentsOnSocialActions","maxQuickReplies","onReactionClick","onRepostsTotalClick","onTriggerUpdateAttachment","reshareUrlOverride","shareAudience","shouldDisableAllSocialActions","shouldExpandCommentBox","shouldFocusTexteditor","shouldOpenCommentsList","shouldShowContentAdminIdentityToggle","showCommentBox","socialCountClassNames","socialDetail","sponsoredMetadata","switchActorIdentity","update","updateAuthor","updateId","updateMetadata","updatePosition","updateTrackingObj","videoAnalyticsRouteName"],[[30,0,["a11yContext"]],[30,0,["actor"]],[30,0,["caEngineName"]],[30,0,["canRequestConversationStarters"]],[30,0,["commentingAtActors"]],[30,0,["commentNetworkErrorMessage"]],[30,0,["commentSortType"]],[30,30],[30,0,["conversationStartersUseCase"]],[30,0,["updateId"]],[30,0,["feedSimplificationStatus"]],[30,0,["fireCustomTracking"]],[30,0,["groupId"]],[30,25],[30,31],[30,0,["isLegacyGroupPost"]],[30,32],[30,33],[30,0,["hideSendPrivately"]],[30,34],[30,7],[30,0,["isClickToMessageAd"]],[30,0,["isCommentingDisabled"]],[30,0,["isCommentsCountVisible"]],[30,0,["isCurrentUserAuthor"]],[30,8],[30,8],[30,22],[30,35],true,[52,[30,7],1],[30,0,["onReactionClick"]],[30,0,["onRepostsTotalClick"]],[30,15],[30,0,["reshareUrlOverride"]],[30,0,["updateMetadata","shareAudience"]],[30,0,["shouldDisableAllSocialActions"]],[30,0,["shouldExpandCommentBox"]],[30,36],[30,0,["shouldOpenCommentsList"]],[30,0,["shouldShowContentAdminIdentityToggle"]],[30,37],[30,38],[30,0,["update","socialDetail"]],[30,0,["sponsoredMetadata"]],[30,0,["switchActorIdentity"]],[30,0,["update"]],[30,0,["updateAuthor"]],[30,0,["updateId"]],[30,0,["updateMetadata"]],[30,5],[30,0,["updateTrackingObj"]],[30,39]]]],[52,[30,0,["isLeadGenFormUpdate"]],[50,"feed-shared@lead-gen-modal-wrapper",0,null,[["channelId","closeModal","isOpen","leadGenForm","sponsoredMetadata","updatePosition","updateTrackingObj"],[[30,0,["channelId"]],[30,0,["closeLeadGenForm"]],[30,0,["isLeadGenFormOpen"]],[30,0,["leadGenFormContent","leadGenForm"]],[30,0,["updateMetadata","trackingData","sponsoredTracking"]],[30,5],[30,0,["updateTrackingObj"]]]]]],[52,[30,0,["leadGenFormContent","ctaButton"]],[50,"update-components@button",0,null,[["controlName","model","updateMetadata","updateTrackingObj"],["call_to_action",[30,0,["leadGenFormContent","ctaButton"]],[30,0,["updateMetadata"]],[30,0,["updateTrackingObj"]]]]]],[52,[30,0,["isLeadGenFormUpdate"]],[50,"lead-gen@lead-gen-v2/lead-gen-gated-content",0,null,[["leadGenForm","openLinksExternally","updateTrackingObj","shouldFocus"],[[30,0,["leadGenFormContent","leadGenForm"]],[30,0,["openLinksExternally"]],[30,0,["updateTrackingObj"]],true]]]]]]],[28,[37,3],null,[["navigateToDetailTracking"],[[30,0,["navigateToDetailTracking"]]]]],[28,[37,3],null,[["feedSimplificationStatus","hasContent","hasResharedUpdate","hasSocialDetail","isActionsPositionInContent","isClickToMessageAd","isCommentingDisabled","isEditingCaptions","isEditingShare","isLeadGenSubmitted","showContributionExperience","showHeader","sortCommentsByRelevance","updateTrackingObj","useSubmitAndRender"],[[30,0,["feedSimplificationStatus"]],[30,0,["hasContent"]],[30,0,["hasResharedUpdate"]],[30,0,["hasSocialDetail"]],[30,0,["isActionsPositionInContent"]],[30,0,["isClickToMessageAd"]],[30,0,["isCommentingDisabled"]],[30,18],[30,17],[30,0,["isLeadGenSubmitted"]],[30,0,["update","socialContent","showContributionExperience"]],[30,0,["showHeader"]],[30,0,["sortCommentsByRelevance"]],[30,0,["updateTrackingObj"]],[30,0,["hasDocument"]]]]]]],[1,"\\n"]],[]],null],[1," "],[8,[39,30],null,[["@dismissRepostsModal","@isRepostsModalOpen","@openRepostListOnPageLoad","@numShares","@updateId"],[[30,0,["dismissRepostsModal"]],[30,0,["isRepostsModalOpen"]],[30,40],[30,0,["update","socialDetail","totalSocialActivityCounts","numShares"]],[30,0,["updateMetadata","shareUrn"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["@isHighlighted","@isWrapped","&attrs","@wrapperClass","@updatePosition","@shouldSuppressTracking","@isCarouselUpdate","@isDashEnabled","@isAdminPost","@reloadActionsDisabled","@onControlMenuItemSelection","@setEditingShareState","@setEditingCaptionsState","@onHideUpdateAttachment","@onTriggerUpdateAttachment","@removeUpdate","@isEditingShare","@isEditingCaptions","@editModalReturnToFocus","@shouldShowLineBreaks","@isAdsTransparency","@isDetailView","@setSurveyDisplayContent","@surveyDisplayContent","@hideCaEntryPoint","@organizationUniversalName","@showADCarouselNavigationButtons","@carouselNextAriaLabel","@carouselPreviousAriaLabel","@conversationStarters","@hideCommentsWithoutInteraction","@hideReactionsMenu","@hideReshare","@initialTextAndMentions","@isLoadingComments","@shouldFocusTexteditor","@showCommentBox","@socialCountClassNames","@videoAnalyticsRouteName","@openRepostListOnPageLoad","&default"],false,["if","modifier","-resolve","hash","t","did-insert","will-destroy","ember-scroll-modifiers@did-intersect","global-helpers@noop","global-modifiers@on-resize-window","ember-cli-pemberly-tracking@track-impression","get","-get-dynamic-var","ember-cli-pemberly-tracking@rum-render-event","feed-shared@sponsored-multithreshold-impression-tracking-wrapper","global-helpers@or","update-components@hidden-update-v2","unless","yield","global-helpers@lazy-hash","component","fn","global-helpers@optional","feed-utils@exists","concat","ember-cli-pemberly-i18n@bidi-dir","global-helpers@not","feed-utils@render-model-path","ember-holy-futuristic-template-namespacing-batman-translate-dynamic-2","global-helpers@map-inline-feedback-type","feed-shared@reposts-modal"]]',moduleName:"feed-shared/components/render-models/update-v2.hbs",isStrictMode:!1}),Ke=["feed.sponsored-update","feed.live-preview"],qe="com.linkedin.voyager.feed.render.PollComponent",We="com.linkedin.voyager.dash.feed.component.polls.PollComponent",Qe=[qe,We],Ye=["com.linkedin.voyager.feed.render.FeedDividerComponent","com.linkedin.voyager.dash.feed.component.divider.FeedDividerComponent"],$e=["article","image","external-video"],Ze="-52px 0% 0% 0%",Xe=Object.freeze({LINES_2:2,LINES_3:3,LINES_5:5,LINES_15:15})
let Je=e.default=(V=(0,p.inject)("authentication@authenticated-user"),H=(0,p.inject)("client-sensor-web@client-sensor"),K=(0,p.inject)("app-aware-link@custom-navigation-context-router"),q=(0,p.inject)("feed-utils@content-admin-identities"),W=(0,p.inject)("feed-utils@dwell-tracking-manager"),Q=(0,p.inject)("feed-tracking@feed-action-event"),Y=(0,p.inject)("@linkedin/ember-restli-graphql@graphql"),$=(0,p.inject)("i18n"),Z=(0,p.inject)("jet"),X=(0,p.inject)("lego@tracking"),J=(0,p.inject)("lix"),ee=(0,p.inject)("persistent-toast-manager@persistent-toast-manager"),te=(0,p.inject)("router"),ne=(0,p.inject)("feed-tracking@sponsored-action-tracking"),oe=(0,p.inject)("global-services@store-shim"),ie=(0,p.inject)("tracking"),ae=(0,p.inject)("global-services@window"),re=(0,p.inject)("social-counts-service@social-counts"),se=(0,u.localCopy)("args.authenticatedActor"),le=(0,u.localCopy)("args.update"),de=class extends l.default{get isFeedInvokeARAOnViewportEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.feed-invoke-ara-on-viewport")}get updateMetadata(){var e,t
return(null===(e=this.update)||void 0===e?void 0:e.metadata)||(null===(t=this.update)||void 0===t?void 0:t.updateMetadata)}get isUpdateHiddenByControlMenuAction(){var e
return this.args.isDashEnabled?this.args.isUpdateHiddenByControlMenuAction:null===(e=this.update)||void 0===e?void 0:e.isHidden}get a11yContext(){return{actor:(0,c.get)(this,`update.actor.name.${this.args.isDashEnabled?"attributesV2":"attributes"}.0`),context:"update"}}get actor(){return this.localAuthenticatedActor||(0,R.default)(this.storeShim,this.authenticatedUser)}get hideSendPrivately(){var e
return this.args.hideSendPrivately||"member"!==(null===(e=this.actor)||void 0===e?void 0:e.actorType)}get actorsOverride(){var e
const t=null===(e=this.args.authenticatedActor)||void 0===e?void 0:e.miniCompany
return t?[t]:void 0}get normalizedAdditionalContents(){var e
if(this.args.isDashEnabled){var t
return null===(t=(0,L.getGraphQlValueWithDashFallback)(this,"update.additionalContents"))||void 0===t?void 0:t.map(j.default)}return null===(e=this.update)||void 0===e?void 0:e.additionalContents}get caEngineName(){return this.args.caEngineName||"feed.update.feed-ca"}get canRequestConversationStarters(){var e
return!this.args.isDetailView&&!this.isSponsored&&!(0,h.isPresent)(this.args.conversationStarters)&&(null===(e=this.updateMetadata)||void 0===e?void 0:e.actionTriggerEnabled)}get channelId(){return this.args.channelId||this.update.channelId}get commentaryNumLines(){var e,t
const{isTextOnlyPost:n,isSponsored:o,feedSimplificationStatus:i}=this,{isCarouselUpdate:a,hasInterstitial:r}=this.args,s=null===(e=this.normalizedCommentary)||void 0===e?void 0:e.numLines
if(this.isRespectAPILineCountEnabled&&s)return s
if(i.isG9Enabled&&s)return s
if(r)return Xe.LINES_3
switch(null===(t=this.normalizedCommentary)||void 0===t?void 0:t.templateType){case"VISUAL_BASED":return Xe.LINES_5
case"TEXT_BASED":return Xe.LINES_3}return a?n?Xe.LINES_15:Xe.LINES_2:n&&!o?Xe.LINES_5:o?s||2:void 0}get shouldExpandCommentaryText(){return!this.args.hasInterstitial&&this.args.isDetailView}get commentingAtActors(){var e
return this.isCurrentUserAuthor?[]:[null===(e=this.update)||void 0===e?void 0:e.actor]}get didIntersectOptions(){let e,t,n=1
if(this.isSponsored&&this.isFeedInvokeARAOnViewportEnabled)e=this.onEnterIntersectionAttributionSource
else if(!this.isSponsored){e=this.onEnterIntersectionDesktopZoom
t=this.onExitIntersectionDesktopZoom
n=this.impressionPercentageThresholdDesktopZoom}if(this.canRequestConversationStarters&&(!f.default.testing||this.args.isTestingDwellTimeRequest)){e=this.onEnterIntersectionConversationStarters
t=this.onExitIntersectionConversationStarters
n=.8}this.legoTrackingToken&&!e&&(e=this.handleLegoImpressionTracking)
return{onEnter:e,onExit:t,options:{threshold:n,rootMargin:Ze}}}get updatesPaginationPVETracker(){var e,t
return null===(e=(t=this.args).updatesPaginationPVETracker)||void 0===e?void 0:e.call(t,this.args.updatePosition)}get shouldBindPVEScrollModifier(){return this.lix.getTreatmentIsEnabled("voyager.web.feed-updates-pagination-pve-fix")}get shouldUseUpdateDwellTracking(){return this.lix.getTreatmentIsEnabled("voyager.web.feed-dwell-time-tracking-for-nudge")}get pageViewDidIntersectOptions(){return{onEnter:this.onEnterIntersectionPageView,options:{rootMargin:Ze,threshold:0}}}get commentSortType(){return this.args.commentSort||S.SortOrder.RELEVANCE}get groupId(){var e,t,n,o
if(null!==(e=this.updateMetadata)&&void 0!==e&&null!==(t=e.miniGroup)&&void 0!==t&&t.entityUrn){var i,a
return(0,P.fromUrn)(null===(i=this.updateMetadata)||void 0===i||null===(a=i.miniGroup)||void 0===a?void 0:a.entityUrn).id}if(null!==(n=this.updateMetadata)&&void 0!==n&&null!==(o=n.group)&&void 0!==o&&o.entityUrn){var r,s
return(0,P.fromUrn)(null===(r=this.updateMetadata)||void 0===r||null===(s=r.group)||void 0===s?void 0:s.entityUrn).id}return null}get hasActor(){var e
return!(null===(e=this.update)||void 0===e||!e.actor)}get normalizedContentClass(){return(0,M.classNameOf)(this.normalizedContent)}get hasBottomPadding(){return!this.hasSocialDetail&&Qe.includes(this.normalizedContentClass)}get hasContent(){return!!this.normalizedContent}get hasPollComponent(){return this.hasContent&&(this.normalizedContentClass===qe||this.normalizedContentClass===We)}get hasDocument(){const e=this.normalizedContent
return"document"===(0,T.getComponentType)(e)}get hasElevation(){return!this.args.isWrapped&&!Ye.includes(this.normalizedContentClass)}get hasLinkedInVideo(){const e=this.normalizedContent
return"linkedin-video"===(0,T.getComponentType)(e)}get hasResharedUpdate(){var e
return!(null===(e=this.update)||void 0===e||!e.resharedUpdate)}get isShareAudiencePublic(){var e
return"PUBLIC"===(null===(e=this.updateMetadata)||void 0===e?void 0:e.shareAudience)}get hasSocialDetail(){var e,t,n
const o=!(0,h.isPresent)(null===(e=this.update)||void 0===e?void 0:e.showSocialDetail)||(null===(t=this.update)||void 0===t?void 0:t.showSocialDetail)
return(0,h.isPresent)(null===(n=this.update)||void 0===n?void 0:n.socialDetail)&&o}get isAccuratePreview(){var e
const t=null===(e=this.router)||void 0===e?void 0:e.currentRouteName
return Ke.includes(t)}get isActionsPositionInContent(){var e
const t=null===(e=this.updateMetadata)||void 0===e?void 0:e.actionsPosition
return this.isPromoComponent||this.isSurveyComponent||t===S.ACTIONS_POSITION.ANNOUNCEMENT_COMPONENT||t===S.ACTIONS_POSITION.PROMO_COMPONENT_V2||t===S.ACTIONS_POSITION.SURVEY_COMPONENT||this.normalizedCarouselContent&&this.args.showADCarouselNavigationButtons}get isCarouselResharedUpdate(){return this.args.isCarouselUpdate&&this.hasResharedUpdate}get isCommentsCountVisible(){return(0,O.checkIsPublicGroupPost)(this.updateMetadata)?!this.isCommentingDisabled:null}get isCommentingDisabled(){var e,t,n,o,i
if(null===(e=this.update)||void 0===e||null===(t=e.socialDetail)||void 0===t||!t.socialPermissions){var a,r
return null===(a=this.update)||void 0===a||null===(r=a.socialDetail)||void 0===r?void 0:r.commentingDisabled}return!(null!==(n=this.update)&&void 0!==n&&null!==(o=n.socialDetail)&&void 0!==o&&null!==(i=o.socialPermissions)&&void 0!==i&&i.canPostComments)}get isCurrentUserAuthor(){const{update:e}=this
if(e){var t,n,o,i,a,r,s,l,d,c,u,p,m,h,g,f,b,y
const v=this.args.isDashEnabled?null===(t=e.actor)||void 0===t||null===(n=t.name)||void 0===n||null===(o=n.attributesV2)||void 0===o||null===(i=o[0])||void 0===i||null===(a=i.detailData)||void 0===a||null===(r=a.profileFullName)||void 0===r?void 0:r.objectUrn:(null===(s=e.actor)||void 0===s||null===(l=s.image)||void 0===l||null===(d=l.attributes)||void 0===d||null===(c=d[0])||void 0===c||null===(u=c.miniProfile)||void 0===u?void 0:u.objectUrn)||(null===(p=e.actor)||void 0===p||null===(m=p.name)||void 0===m||null===(h=m.attributes)||void 0===h||null===(g=h[0])||void 0===g||null===(f=g.miniProfile)||void 0===f?void 0:f.objectUrn)
return(null===(b=this.authenticatedUser)||void 0===b||null===(y=b.miniProfile)||void 0===y?void 0:y.objectUrn)===v}return!1}get isEdgeToEdge(){const e=(0,T.getComponentType)(this.normalizedContent)
return $e.includes(e)}get isLeadGenFormUpdate(){var e,t
return this.args.isDashEnabled?!(null===(e=this.update)||void 0===e||!e.leadGenFormContent):!(null===(t=this.update)||void 0===t||!t.leadGenFormContentV2)}get leadGenFormContent(){if(this.isLeadGenFormUpdate){var e,t
return this.args.isDashEnabled?null===(e=this.update)||void 0===e?void 0:e.leadGenFormContent:null===(t=this.update)||void 0===t?void 0:t.leadGenFormContentV2}return{}}get isLegacyGroupPost(){var e,t
return!(null===(e=this.update)||void 0===e||null===(t=e.socialDetail)||void 0===t||!t.legacyGroupPost)}get isOutOfNetworkUpdate(){var e,t
return(null===(e=this.update)||void 0===e?void 0:e.contextualHeader)&&!(null!==(t=this.update)&&void 0!==t&&t.actor)}get isSponsored(){return!!this.sponsoredMetadata}get isTextOnlyPost(){var e
return this.normalizedCommentary&&!this.normalizedContent&&(!(null!==(e=this.update)&&void 0!==e&&e.resharedUpdate)&&!this.normalizedCarouselContent||this.isCarouselResharedUpdate)}get legoTrackingToken(){var e
return null===(e=this.updateMetadata)||void 0===e?void 0:e.legoTrackingToken}get normalizedCarouselContent(){var e
if(!this.normalizedContent)return this.isLeadGenFormUpdate?this.leadGenFormContent.carouselContent:null===(e=this.update)||void 0===e?void 0:e.carouselContent}get normalizedCommentary(){var e
if(this.isCarouselResharedUpdate){var t,n
return null===(t=this.update)||void 0===t||null===(n=t.resharedUpdate)||void 0===n?void 0:n.commentary}return this.leadGenFormContent.commentary??(null===(e=this.update)||void 0===e?void 0:e.commentary)}get normalizedContent(){if(this.isLeadGenFormUpdate){if(this.args.isDashEnabled){const e=(0,c.get)(this.leadGenFormContent,"content")
return(0,j.default)(e)}return(0,c.get)(this.leadGenFormContent,"content")}if(this.isCarouselResharedUpdate){if(this.args.isDashEnabled){const e=(0,c.get)(this,"update.resharedUpdate.content")
return(0,j.default)(e)}return(0,c.get)(this,"update.resharedUpdate.content")}if(this.args.isDashEnabled){const e=(0,c.get)(this,"update.content")
return(0,j.default)(e)}return(0,c.get)(this,"update.content")}get normalizedFooter(){var e
if(this.args.isDashEnabled){var t
const e=null===(t=this.update)||void 0===t?void 0:t.footer
return(0,j.default)(e)}return null===(e=this.update)||void 0===e?void 0:e.footer}get normalizedUpdateUrn(){var e,t
return(null===(e=this.updateMetadata)||void 0===e?void 0:e.urn)||(null===(t=this.updateMetadata)||void 0===t?void 0:t.backendUrn)}get nudgeType(){var e
return null!==(e=this.normalizedFooter)&&void 0!==e&&e.dwellTriggerTime?"REACTION":null}get openLinksExternally(){return this.isAccuratePreview}get reshareUrlOverride(){if(this.isCarouselResharedUpdate){var e,t,n,o,i,a
return`${(0,A.getDomainUrl)()}/feed/update/${this.args.isDashEnabled?null===(e=this.update)||void 0===e||null===(t=e.resharedUpdate)||void 0===t||null===(n=t.metadata)||void 0===n?void 0:n.backendUrn:null===(o=this.update)||void 0===o||null===(i=o.resharedUpdate)||void 0===i||null===(a=i.updateMetadata)||void 0===a?void 0:a.urn}`}if(this.isOutOfNetworkUpdate)return`${(0,A.getDomainUrl)()}/feed/update/${this.updateId}`}get rumComponentId(){var e,t,n,o,i
const{normalizedContent:a,hasResharedUpdate:r,isLegacyGroupPost:s,isLeadGenFormUpdate:l,isSponsored:d}=this,c=(0,h.isPresent)(this.groupId),u=null===(e=this.update)||void 0===e||null===(t=e.resharedUpdate)||void 0===t?void 0:t.content,p=null===(n=this.update)||void 0===n||null===(o=n.highlightedComments)||void 0===o?void 0:o.length,m=null===(i=this.update)||void 0===i?void 0:i.aggregatedContent,g=(0,T.getComponentType)(this.normalizedCarouselContent),f=(0,T.getComponentType)(a)||(0,T.getComponentType)(u),b=["feed/update-v2"]
s&&b.push("legacy-group")
l&&b.push("lead-gen")
c&&b.push("group")
d?b.push("sponsored"):p?b.push("viral-comment"):r?b.push("reshare"):m?b.push("aggregated"):g&&b.push("carousel")
f&&b.push(f)
return b.join("/")}get shouldDisableAllSocialActions(){return(0,c.get)(this,"update.interstitial.interstitial.shouldShowInterstitial")}get shouldOpenCommentsList(){var e,t
return!(null===(e=this.update)||void 0===e||null===(t=e.highlightedComments)||void 0===t||!t.length)}get shouldSuppressImpressionEvents(){var e,t
return(null===(e=this.args.shouldSuppressTracking)||void 0===e?void 0:e.feed)||(null===(t=this.update)||void 0===t?void 0:t.aggregatedContent)}get showHeader(){var e
return(null===(e=this.update)||void 0===e?void 0:e.header)&&(!this.normalizedCarouselContent||this.normalizedCarouselContent&&!this.args.showADCarouselNavigationButtons)}get showPremiumBranding(){var e,t
return null===(e=this.update)||void 0===e||null===(t=e.header)||void 0===t?void 0:t.showPremiumBranding}get translationUrn(){var e,t,n,o,i
return this.args.isDashEnabled?null===(e=this.update)||void 0===e||null===(t=e.commentary)||void 0===t||null===(n=t.translation)||void 0===n?void 0:n.entityUrn:null===(o=this.update)||void 0===o||null===(i=o.commentary)||void 0===i?void 0:i.translationUrn}get showTranslateButton(){var e,t,n
return this.translationUrn&&!this.isCurrentUserAuthor&&"SPONSORED"!==(null===(e=this.updateMetadata)||void 0===e||null===(t=e.trackingData)||void 0===t||null===(n=t.sponsoredTracking)||void 0===n?void 0:n.activityType)}get socialDetail(){var e
return null===(e=this.update)||void 0===e?void 0:e.socialDetail}get sortCommentsByRelevance(){return this.commentSortType===S.SortOrder.RELEVANCE}get sponsoredMetadata(){var e,t
return null===(e=this.updateMetadata)||void 0===e||null===(t=e.trackingData)||void 0===t?void 0:t.sponsoredTracking}get updateAuthor(){var e
return null===(e=this.update)||void 0===e?void 0:e.actor}get isPromoComponent(){return"promo"===(0,T.getComponentType)(this.normalizedContent)}get isSurveyComponent(){return"survey"===(0,T.getComponentType)(this.normalizedContent)}get windowHeight(){return w.default?this.windowService.innerHeight-52:0}get shouldShowContentAdminIdentityToggle(){return this.isShareAudiencePublic&&this.contentAdminIdentities.identities.length&&!this.hasPollComponent&&!this.args.shouldHideContentAdminIdentityToggle}get isViralUpdate(){var e,t
return"VIRAL"===(null===(e=(this.updateMetadata||{}).trackingData)||void 0===e||null===(t=e.sponsoredTracking)||void 0===t?void 0:t.activityType)}get shouldTrackSponsoredImpression(){return this.updateTrackingObj&&!this.updateTrackingObj.shouldSuppressSponsoredTracking}get contentClass(){const e=["feed-shared-update-v2__content"]
this.args.isEditingShare&&e.push("feed-shared-update-v2--is-editing-share","hidden")
this.lix.getTreatmentIsEnabled("voyager.web.feed-content-design-update")&&e.push("feed-shared-update-v2__content--simplification")
return e.join(" ")}get feedSimplificationValue(){return this.lix.getTreatment("voyager.web.feed-simplification")}get feedSimplificationStatus(){return new F.default(this.feedSimplificationValue)}get contextualDescription(){var e,t
return this.args.isDashEnabled?null===(e=this.update)||void 0===e?void 0:e.contextualDescription:null===(t=this.update)||void 0===t?void 0:t.contextualDescriptionV2}get inlineFeedback(){var e,t,n,o
return this.args.isDashEnabled?null===(e=this.update)||void 0===e||null===(t=e.annotation)||void 0===t?void 0:t.inlineFeedBackComponent:null===(n=this.update)||void 0===n||null===(o=n.annotation)||void 0===o?void 0:o.inlineFeedBack}get isClickToMessageAd(){var e,t,n,o
const i=null===(e=this.normalizedContent)||void 0===e||null===(t=e.navigationContext)||void 0===t?void 0:t.actionTarget
return(null==i?void 0:i.includes("mbcCompose"))&&(null===(n=this.normalizedContent)||void 0===n?void 0:n.largeCtaButton)&&0!==Object.keys(null===(o=this.normalizedContent)||void 0===o?void 0:o.largeCtaButton).length}get updateId(){var e,t
return this.args.isDashEnabled?null===(e=this.updateMetadata)||void 0===e?void 0:e.backendUrn:null===(t=this.updateMetadata)||void 0===t?void 0:t.urn}get dwellTimeAnimationDelay(){var e
return(null===(e=this.normalizedFooter)||void 0===e?void 0:e.dwellTriggerTime)??1e4}constructor(){var e,o,i,a,r,s
super(...arguments);(0,t.default)(this,"authenticatedUser",ce,this);(0,t.default)(this,"clientSensor",ue,this);(0,t.default)(this,"cncRouter",pe,this);(0,t.default)(this,"contentAdminIdentities",me,this);(0,t.default)(this,"dwellTrackingManager",he,this);(0,t.default)(this,"feedActionEvent",ge,this);(0,t.default)(this,"graphql",fe,this);(0,t.default)(this,"i18n",be,this);(0,t.default)(this,"jet",ye,this);(0,t.default)(this,"legoTracking",ve,this);(0,t.default)(this,"lix",Ce,this);(0,t.default)(this,"persistentToastManager",Te,this);(0,t.default)(this,"router",ke,this);(0,t.default)(this,"sponsoredActionTracking",Se,this);(0,t.default)(this,"storeShim",Oe,this);(0,t.default)(this,"tracking",Ee,this);(0,t.default)(this,"windowService",_e,this);(0,t.default)(this,"socialCountsService",Me,this);(0,n.default)(this,"commentaryInlineSeeMoreTrackingOverrides",{expandActionName:"expandCommentaryText",expandControlName:"commentary_expand"});(0,n.default)(this,"commentNetworkErrorMessage",this.i18n.lookupTranslation("components/feed-shared@render-models/update-v2","save_comment_error")());(0,n.default)(this,"elementId",(0,b.guidFor)(this));(0,n.default)(this,"enterTime",0);(0,n.default)(this,"araEndpointInvoked",!1);(0,n.default)(this,"isRespectAPILineCountEnabled",this.lix.getTreatmentIsEnabled("voyager.web.feed-respect-api-line-count"));(0,n.default)(this,"updateTrackingObj",this.updateMetadata?new E.default(this.updateMetadata,this.feedActionEvent,this.sponsoredActionTracking,this.tracking,this.args.updatePosition,this.channelId,this.args.shouldSuppressTracking,this.args.customModuleKey,null===(e=this.args)||void 0===e?void 0:e.pageKey,this.legoTracking,this.legoTrackingToken,void 0,null===(o=this.args)||void 0===o?void 0:o.searchId):null);(0,t.default)(this,"localAuthenticatedActor",we,this);(0,t.default)(this,"update",De,this);(0,t.default)(this,"_hasRequestedConversationStarters",Ae,this);(0,t.default)(this,"conversationStartersUseCase",Pe,this);(0,t.default)(this,"hasAnchored",Ie,this);(0,t.default)(this,"impressionPercentageThresholdDesktopZoom",Re,this);(0,t.default)(this,"isLeadGenFormOpen",xe,this);(0,t.default)(this,"isLeadGenSubmitted",Ue,this);(0,t.default)(this,"isUpdateHidden",Ne,this);(0,t.default)(this,"isRepostsModalOpen",je,this);(0,t.default)(this,"shouldFocusOnControlTrigger",Le,this);(0,t.default)(this,"shouldExpandCommentBox",Fe,this);(0,t.default)(this,"menuAction",Be,this);(0,t.default)(this,"menuActionAssociatedSettingType",ze,this);(0,t.default)(this,"shouldFocusOnFeedUpdate",Ge,this);(0,t.default)(this,"isEligibleForDwellAnimation",Ve,this);(0,n.default)(this,"fsActionBarOptimizationEnabled",(null===(i=this.feedSimplificationStatus)||void 0===i?void 0:i.isAB1Enabled)||(null===(a=this.feedSimplificationStatus)||void 0===a?void 0:a.isAB3Enabled)||(null===(r=this.feedSimplificationStatus)||void 0===r?void 0:r.isAB2Enabled)||(null===(s=this.feedSimplificationStatus)||void 0===s?void 0:s.isAB4Enabled))
this.isLeadGenFormUpdate&&this._registerLeadGenFormURL()
this.shouldUseUpdateDwellTracking&&this.dwellTrackingManager.setupEventListeners(this.updateDwellTimeRequirement)}willDestroy(){super.willDestroy(...arguments)
this.isLeadGenFormUpdate&&this._deregisterLeadGenFormURL()}constructImpressionEvent(){var e,t,n,o,i,a,r,s,l
let d,c
if(this.args.isCarouselUpdate)c={row:this.args.impressionRowPosition||0,column:this.args.impressionColumnPosition||0}
else{const{updatePosition:e}=this.args
d=(0,h.isPresent)(e)?{index:e}:{index:1}}const u=(null===(e=this.updateMetadata)||void 0===e||null===(t=e.trackingData)||void 0===t?void 0:t.searchId)||this.args.searchId,p={timeZoneOffsetMinutes:-1*(new Date).getTimezoneOffset(),entities:[{urn:(null===(n=this.updateMetadata)||void 0===n?void 0:n.urn)||(null===(o=this.updateMetadata)||void 0===o?void 0:o.backendUrn)||(null===(i=this.update)||void 0===i?void 0:i.urn),trackingId:(null===(a=this.updateMetadata)||void 0===a||null===(r=a.trackingData)||void 0===r?void 0:r.trackingId)||(null===(s=this.update)||void 0===s||null===(l=s.tracking)||void 0===l?void 0:l.trackingId),listPosition:d,gridPosition:c}]}
u&&(p.searchId=u)
return p}dismissRepostsModal(){this.isRepostsModalOpen=!1}expandCommentBox(e){if(!this.shouldExpandCommentBox){var t,n,o,i
this.shouldExpandCommentBox=!0
const a=(null===(t=this.updateMetadata)||void 0===t||null===(n=t.trackingData)||void 0===n?void 0:n.trackingId)||(null===(o=this.update)||void 0===o||null===(i=o.tracking)||void 0===i?void 0:i.trackingId)
this.updateTrackingObj.fireFeedAccessoryImpressionEvent([{controlUrn:"comment_box_dropdown"}],a,e)}}handleDidInsert(e){var t,n,o,i
null===(t=(n=this.args).onUpdateInserted)||void 0===t||t.call(n)
null===(o=(i=this.args).onUpdateInsertedForViewState)||void 0===o||o.call(i,e)
if(!f.default.testing&&w.default&&this.args.updateIsAnchored&&!this.hasAnchored){const t=e.getBoundingClientRect().top-120,n=!1
if(t>0){D.default.scrollTo(window,{top:t,animate:n})
this.hasAnchored=!0}}}handleHiddenSponsoredUpdates(e){if(e&&("none"===e.style.display||"none"===window.getComputedStyle(e).display)){this.isUpdateHidden=!0
this.sponsoredMetadata&&"SPONSORED"===this.sponsoredMetadata.activityType&&this.clientSensor.incrementMetricCounter({groupName:k.CLIENT_SENSOR_GROUP_NAME,metricName:k.SponsoredClientSensorMetrics.SPONSORED_HIDDEN_UPDATES})}}onResizeWindow(e){const{offsetHeight:t}=e,n=t?this.windowHeight/2/t:0
this.impressionPercentageThresholdDesktopZoom=n>1?1:n}navigateToDetailTracking(){const e=this.isSponsored?"commentary_text":"object_description"
this.updateTrackingObj.fireFeedActionAndSponsoredTrackingEvents({controlName:e,actionType:"viewUpdateDetail",actionCategory:"VIEW"})}fireCustomTracking(e){if(!e){this.jet.logError(new Error("fireCustomTracking called without a trackingPayload"),S.JET_TAGS.FEED_CUSTOM_TRACKING)
return}const{actionCategory:t,actionType:n,controlName:o}=e
t&&n&&o?this.updateTrackingObj.fireFeedActionAndSponsoredTrackingEvents(e):this.jet.logError(new Error(`fireCustomTracking called with invalid trackingPayload ${t} ${n} ${o}`),S.JET_TAGS.FEED_CUSTOM_TRACKING)}hideOrUnhideUpdateOnAction(e){var t,n
let{shouldHide:o,menuAction:i,associatedSettingType:a,shouldReloadFeed:r,shouldFocusOnControlTrigger:s=!1,shouldFocusOnFeedUpdate:l=!1}=e
if(r&&this.args.onRequestReload){var d,u
null===(d=(u=this.args).onRequestReload)||void 0===d||d.call(u)}null===(t=(n=this.args).setIsUpdateHiddenByControlMenuAction)||void 0===t||t.call(n,o)
if(this.args.isDashEnabled){this.menuAction=i
this.menuActionAssociatedSettingType=a}else(0,c.setProperties)(this.update,{menuAction:i,isHidden:o})
this.shouldFocusOnControlTrigger=s
this.shouldFocusOnFeedUpdate=l
l&&(0,_.default)(this,`#${this.elementId}`)}onToggleCommenting(e){var t
const n="DISABLE_COMMENTS"===e.actionType,o=n?"NONE":"ALL",[i,a,r]=this.args.isDashEnabled?(0,v.dashUpdateCommentRestrictionSettingRequest)(null===(t=this.update.socialDetail)||void 0===t?void 0:t.entityUrn,o):(0,v.toggleCommentingRequest)(e.targetUrn,n)
return this.storeShim.adapterFor("-ember-m3").ajax(i,a,r).then((()=>{this.args.isDashEnabled?this.update.socialDetail.socialPermissions&&(this.update.socialDetail.socialPermissions.canPostComments=!n):(0,c.setProperties)(this.update,{"socialDetail.commentingDisabled":n,"socialDetail.socialPermissions.canPostComments":!n})})).catch((e=>{if((0,s.isDestroying)(this))throw e
const t=this.i18n.lookupTranslation("components/feed-shared@render-models/update-v2","network_error_occurred")()
t&&this.persistentToastManager.error({message:t})
throw e}))}updateCommentRestrictionSetting(e,t){var n
const[o,i,a]=this.args.isDashEnabled?(0,v.dashUpdateCommentRestrictionSettingRequest)(null===(n=this.update.socialDetail)||void 0===n?void 0:n.entityUrn,t):(0,v.updateCommentRestrictionSettingRequest)(e,t)
return this.storeShim.adapterFor("-ember-m3").ajax(o,i,a).then((()=>{(0,c.set)(this.update,"socialDetail.allowedCommentersScope",t)
if(t===g.ALLOWED_COMMENTERS_SCOPE.NONE){this.args.isDashEnabled||(0,c.set)(this.update,"socialDetail.commentingDisabled",!0);(0,c.set)(this.update,"socialDetail.socialPermissions.canPostComments",!1)
this.socialCountsService.registerSocialCounts(this.update.socialDetail)}else{this.args.isDashEnabled||(0,c.set)(this.update,"socialDetail.commentingDisabled",!1);(0,c.set)(this.update,"socialDetail.socialPermissions.canPostComments",!0)}const e=this.i18n.lookupTranslation("components/feed-control-menu@comment-restriction-settings-modal",{ALL:"comment_restriction_success_ALL",CONNECTIONS_ONLY:"comment_restriction_success_CONNECTIONS_ONLY",NONE:"comment_restriction_success_NONE"}[t])()
this.persistentToastManager.success({message:e})})).catch((e=>{if((0,s.isDestroying)(this))throw e
const t=this.i18n.lookupTranslation("components/feed-control-menu@comment-restriction-settings-modal","comment_restriction_network_error_occurred")()
t&&this.persistentToastManager.error({message:t})
throw e}))}updateModelWithProperties(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,c.setProperties)(this.update,e)}switchActorIdentity(e){var t,n,o,i
const a=this.feedActionEvent.getModuleKeyForCurrentPage(),r=this.args.isDashEnabled?this.update.entityUrn:(null===(t=this.updateMetadata)||void 0===t?void 0:t.shareUrn)||(null===(n=this.updateMetadata)||void 0===n?void 0:n.urn),l="company"===e.actorType&&(0,P.fromUrn)(null===(o=e.miniCompany)||void 0===o?void 0:o.entityUrn).id,d="organizationalPage"===e.actorType?e.dashEntityUrn:null===(i=e.miniCompany)||void 0===i?void 0:i.dashCompanyUrn,c=l||d
let u
if(this.args.isDashEnabled)u=this.graphql.executeQuery(B.default,{moduleKey:a,actor:d,updateUrn:r,commentsCount:10,likesCount:10,includeCommentsFirstReply:!0},{reload:!0})
else{const e=c?(0,C.findRequestV2)(r,a,d):(0,C.findRequestV2)(r,a)
u=this.storeShim.queryURL(e,{reload:!0})}return u.then((t=>{var n
if((0,s.isDestroying)(this))return
const o=this.args.isDashEnabled?t.data.feedDashUpdatesById:null===(n=t.elements)||void 0===n?void 0:n[0]
this.update=o
this.socialCountsService.registerSocialCounts(this.update.socialDetail)
this.localAuthenticatedActor=e
this._updateCommentBoxEditorPlaceholder()
return(0,x.resolve)()})).catch((e=>{if((0,s.isDestroying)(this))throw e
if(e&&e.isAdapterError)throw e}))}reloadUpdate(){const e=this.feedActionEvent.getModuleKeyForCurrentPage(),{storeShim:t,graphql:n}=this
return this.args.isDashEnabled?n.executeQuery(B.default,{updateUrn:this.update.entityUrn,moduleKey:e}).then((e=>{var t
if((0,s.isDestroying)(this))return
const n=null==e||null===(t=e.data)||void 0===t?void 0:t.feedDashUpdatesById
if(n){this.update=n
this.socialCountsService.registerSocialCounts(this.update.socialDetail)}})):t.queryURL(`/${z.default.namespace}/feed/updatesV2`,{params:{q:"backendUrnOrNss",urnOrNss:this.updateId,moduleKey:e},reload:!0}).then((e=>{var t
if((0,s.isDestroying)(this))return
const n=null==e||null===(t=e.elements)||void 0===t?void 0:t[0]
if(n){this.update=n
this.socialCountsService.registerSocialCounts(this.update.socialDetail)}}))}onEditShareSuccess(e){(0,h.isPresent)(e)&&(this.update=e)}openLeadGenForm(){this.isLeadGenFormOpen=!0}closeLeadGenForm(e){const{clientSensor:t}=this
e?e.then((()=>{if(!(0,s.isDestroying)(this)){t.incrementMetricCounter({groupName:k.CLIENT_SENSOR_GROUP_NAME,metricName:k.SponsoredClientSensorMetrics.SPONSORED_LEADGEN_V2_SUBMISSION_SUCCESS})
if(!this.isDestroying){this.isLeadGenSubmitted=!0
if(this.hasDocument){var e,n
const t=null===(e=this.leadGenFormContent.leadGenForm)||void 0===e||null===(n=e.postSubmissionContent)||void 0===n?void 0:n.document
if(t)if(this.args.isDashEnabled){(0,c.set)(this.leadGenFormContent,"content.documentComponent.document",t);(0,c.set)(this.leadGenFormContent,"content.documentComponent.showDownloadCTA",!0);(0,c.set)(this.leadGenFormContent,"ctaButton",null)}else{(0,c.set)(this.leadGenFormContent,"content.document",t);(0,c.set)(this.leadGenFormContent,"content.showDownloadCTA",!0);(0,c.set)(this.leadGenFormContent,"ctaButton",null)}}}}})).catch((e=>{var n,o
if((0,s.isDestroying)(this))throw e
t.incrementMetricCounter({groupName:k.CLIENT_SENSOR_GROUP_NAME,metricName:k.SponsoredClientSensorMetrics.SPONSORED_LEADGEN_V2_SUBMISSION_FAILURE})
const i=e&&(null===(n=e.errors)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.status),a=i&&parseInt(i,10)
if(403!==a&&500!==a)throw e})):this.isLeadGenFormOpen=!1}onClickInlineFeedbackLink(e){var t,n,o,i,a
const r=(null===(t=e.inlineFeedBack)||void 0===t||null===(n=t.link)||void 0===n?void 0:n.url)||(null===(o=e.inlineFeedBackComponent)||void 0===o?void 0:o.linkUrl),s=(null===(i=e.inlineFeedBack)||void 0===i?void 0:i.controlName)||(null===(a=e.inlineFeedBackComponent)||void 0===a?void 0:a.controlName)
this.windowService.open(jSecure.sanitizeUrl((0,A.generateUrlByDomain)(r)),"_blank")
this.updateTrackingObj.fireControlInteractionEvent(s)
this.updateTrackingObj.fireFeedActionAndSponsoredTrackingEvents({actionType:e.actionType,actionCategory:"VIEW",controlName:s})}onRepostsTotalClick(){this.isRepostsModalOpen=!0}onTrackImpression(){if(!this.update)return()=>[]
if(!this.isDestroying){if(this.shouldSuppressImpressionEvents)return()=>[]
const e=this.constructImpressionEvent(),{isUpdateHidden:t,updateMetadata:n,updateTrackingObj:o,clientSensor:i,elementId:a,shouldTrackSponsoredImpression:r,isViralUpdate:s}=this,{updatePosition:l}=this.args
return d=>{const c=e.entities[0]
d.boundingClientRect&&(c.size={width:Math.round(d.boundingClientRect.width),height:Math.round(d.boundingClientRect.height)})
c.visibleTime=d.visibleTime||0
c.visibleHeight=d.visibleHeight
c.duration=d.duration
c.duration<0&&i.incrementMetricCounter({groupName:k.CLIENT_SENSOR_GROUP_NAME,metricName:k.FeedTrackingClientSensorMetrics.NEGATIVE_FEED_IMPRESSION_DURATION})
const u=[{body:e,name:"FeedImpressionEvent"}],p=t||function(e){if(w.default){const t=document.querySelector(`#${e}`)
return t&&("none"===t.style.display||"none"===window.getComputedStyle(t).display)}return!1}(a)
if(d.duration>=(f.default.testing?0:1e3)&&!p&&r){var m
const{activityType:e,adTrackingCode:t,version:a}=(null===(m=n.trackingData)||void 0===m?void 0:m.sponsoredTracking)||{},r={impressionDuration:"number"==typeof d.duration?Math.floor(d.duration):0,impressionType:"VIEWABLE",sequenceNumber:-1,sponsoredEventHeader:{actionType:"impression",activityType:e,adTrackingCode:t,deviceType:"DESKTOP",feedPosition:l||1,version:a}}
if(o.shouldPopulateVideoMrcMetadata){const e={videoAdsMediaRatingCouncilInfo:{hasVideoStartedPlaying:o.sponsoredVideoHasStarted}}
r.sponsoredEventHeader.mediaRatingCouncilInfo=e}s||i.incrementMetricCounter({groupName:k.CLIENT_SENSOR_GROUP_NAME,metricName:k.SponsoredTrackingClientSensorMetrics.VIEWABLE_IMPRESSION})
u.push({body:r,meta:{transporterKey:N.SPONSORED_TRACKING_TRANSPORTER_KEYS.TFE_TRANSPORTER},name:"SponsoredImpressionEvent"})}return u}}return()=>[]}onGroupMembershipUpdate(e){var t,n
const{SEND_REQUEST:o,LEAVE_GROUP:i}=I.ACTION_TYPE
if(![o,i].includes(e))return
const a=null===(t=this.update.actor)||void 0===t||null===(n=t.groupMembershipForJoinAction)||void 0===n?void 0:n.status
if(e===i){this.args.isDashEnabled||(0,c.set)(this.update,"socialDetail.commentingDisabled",!0);(0,c.set)(this.update,"socialDetail.socialPermissions.canPostComments",!1)
this.socialCountsService.registerSocialCounts(this.update.socialDetail)}else if("MEMBER"===a&&e===o){this.args.isDashEnabled||(0,c.setProperties)(this.update,{"socialDetail.commentingDisabled":!1,"socialDetail.comments.metadata.sort":null});(0,c.set)(this.update,"socialDetail.socialPermissions.canPostComments",!0)}}onEnterIntersectionConversationStarters(){if(this.isDestroying||!w.default)return
const e=f.default.testing?0:1e4
this.legoTrackingToken&&this._fireLegoImpressionEvent()
this.requestConversationStartersTask=(0,y.runTask)(this,(()=>{this.conversationStartersUseCase="VIEW_POST"}),e)}onExitIntersectionConversationStarters(){if(!this.isDestroying&&w.default&&(0,h.isPresent)(this.requestConversationStartersTask)){(0,y.cancelTask)(this,this.requestConversationStartersTask)
this.requestConversationStartersTask=null}}onEnterIntersectionDesktopZoom(e){if(this.isDestroying||!w.default)return
const{offsetHeight:t}=e.target
this.legoTrackingToken&&this._fireLegoImpressionEvent()
if(t&&t>2*this.windowHeight){e.isIntersecting&&e.intersectionRatio>this.impressionPercentageThresholdDesktopZoom&&!this.enterTime&&(this.enterTime=e.time)}}_fetchAndInvokeARAEndpoint(e){const t=(0,G.getAttributionSrc)(e,this.router)
if(t){fetch(t,{keepalive:!0,attributionReporting:{eventSourceEligible:!0,triggerEligible:!1}})
this.araEndpointInvoked=!0}}_processSponsoredUrlAttributes(e){null==e||e.forEach((e=>{let t
if(this.normalizedCarouselContent){var n,o,i,a,r
t=(null===(n=e.content)||void 0===n||null===(o=n.creativeComponent)||void 0===o||null===(i=o.navigationContext)||void 0===i?void 0:i.sponsoredUrlAttributes)??(null===(a=e.content)||void 0===a||null===(r=a.navigationContext)||void 0===r?void 0:r.sponsoredUrlAttributes)}else if(!this.normalizedContent){var s,l,d
t=(null===(s=e.detailData)||void 0===s||null===(l=s.textLink)||void 0===l?void 0:l.sponsoredUrlAttributes)??(null===(d=e.textLink)||void 0===d?void 0:d.sponsoredUrlAttributes)}t&&this._fetchAndInvokeARAEndpoint(t)}))}onEnterIntersectionAttributionSource(e){if(!this.isDestroying&&w.default&&!this.araEndpointInvoked&&e.isIntersecting)if(this.normalizedCarouselContent)this._processSponsoredUrlAttributes(this.normalizedCarouselContent.items)
else if(this.normalizedContent){var t,n
this._fetchAndInvokeARAEndpoint(null===(t=this.normalizedContent)||void 0===t||null===(n=t.navigationContext)||void 0===n?void 0:n.sponsoredUrlAttributes)}else{var o,i,a,r
this._processSponsoredUrlAttributes((null===(o=this.normalizedCommentary)||void 0===o||null===(i=o.text)||void 0===i?void 0:i.attributesV2)??(null===(a=this.normalizedCommentary)||void 0===a||null===(r=a.text)||void 0===r?void 0:r.attributes))}}onExitIntersectionDesktopZoom(e){if(this.isDestroying||!w.default)return
const t=e.target,{offsetHeight:n}=t
if(n&&n>2*this.windowHeight){if(!(e.isIntersecting&&e.intersectionRatio>this.impressionPercentageThresholdDesktopZoom)&&this.enterTime){const n=this.constructImpressionEvent(),o=n.entities[0]
o.duration=e.time-this.enterTime
o.visibleTime=e.time||0
o.size={width:t.clientWidth,height:t.clientHeight}
o.duration<0&&this.clientSensor.incrementMetricCounter({groupName:k.CLIENT_SENSOR_GROUP_NAME,metricName:k.FeedTrackingClientSensorMetrics.NEGATIVE_FEED_IMPRESSION_DURATION})
this.tracking.fireTrackingPayload("FeedImpressionEvent",n)}}}onEnterIntersectionPageView(){var e,t
!this.isDestroying&&w.default&&(null===(e=this.updatesPaginationPVETracker)||void 0===e||null===(t=e.onDisplayUpdate)||void 0===t||t.call(e))}onReactionClick(){"REACTION"===this.nudgeType&&this.dwellTrackingManager.cancelExistingTimer(this.normalizedUpdateUrn)}handleLegoImpressionTracking(){this._fireLegoImpressionEvent()}onUpdateEnteredViewport(){const e=this.normalizedUpdateUrn
this.dwellTrackingManager.entityEnteredViewport(e,this.updateDwellTimeRequirement,this.dwellTimeAnimationDelay,!0)}onUpdateExitedViewport(){const e=this.normalizedUpdateUrn
this.dwellTrackingManager.entityExitedViewport(e)}updateDwellTimeRequirement(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
this.normalizedUpdateUrn===e&&(this.isEligibleForDwellAnimation=t)}_registerLeadGenFormURL(){var e,t,n,o
this.leadGenNavigationUrl=null===(e=this.leadGenFormContent)||void 0===e||null===(t=e.commentary)||void 0===t||null===(n=t.navigationContext)||void 0===n?void 0:n.actionTarget
this.leadGenFormURL=`${(0,A.getDomainUrl)()}/leadGenForm/${null===(o=this.leadGenFormContent.leadGenForm)||void 0===o?void 0:o.entityUrn}`
this.cncRouter.registerHandler(this.leadGenFormURL,this.openLeadGenForm)
this.leadGenNavigationUrl&&this.cncRouter.registerHandler(this.leadGenNavigationUrl,this.openLeadGenForm)}_deregisterLeadGenFormURL(){if(w.default){this.cncRouter.deleteHandler(this.leadGenFormURL)
this.cncRouter.deleteHandler(this.leadGenNavigationUrl)}}_fireLegoImpressionEvent(){this.legoTracking.sendLegoImpression(this.legoTrackingToken,this.legoTracking.LEGO_IMPRESSION_VISIBILITY_SHOW)}_updateCommentBoxEditorPlaceholder(){w.default&&(0,U.later)((()=>{const e=document.querySelector(`#${this.elementId} .ql-editor`)
if(e){const{actorType:t}=this.actor
let n
if(["company","organizationalPage"].includes(t)){const e="organizationalPage"===t?(0,c.get)(this.actor,"name"):(0,c.get)(this.actor,"miniCompany.name")
n=this.i18n.lookupTranslation("components/comments@comment-box","admin_placeholder_comment")([{actorName:e}])}else n=this.i18n.lookupTranslation("components/comments@comment-box","placeholder_comment")()
n=jSecure.htmlUnencode(n)
null==e||e.setAttribute("data-placeholder",n)
null==e||e.setAttribute("aria-placeholder",n)}}))}},ce=(0,o.default)(de.prototype,"authenticatedUser",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ue=(0,o.default)(de.prototype,"clientSensor",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pe=(0,o.default)(de.prototype,"cncRouter",[K],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),me=(0,o.default)(de.prototype,"contentAdminIdentities",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),he=(0,o.default)(de.prototype,"dwellTrackingManager",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ge=(0,o.default)(de.prototype,"feedActionEvent",[Q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fe=(0,o.default)(de.prototype,"graphql",[Y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),be=(0,o.default)(de.prototype,"i18n",[$],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ye=(0,o.default)(de.prototype,"jet",[Z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ve=(0,o.default)(de.prototype,"legoTracking",[X],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ce=(0,o.default)(de.prototype,"lix",[J],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Te=(0,o.default)(de.prototype,"persistentToastManager",[ee],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ke=(0,o.default)(de.prototype,"router",[te],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Se=(0,o.default)(de.prototype,"sponsoredActionTracking",[ne],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Oe=(0,o.default)(de.prototype,"storeShim",[oe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ee=(0,o.default)(de.prototype,"tracking",[ie],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_e=(0,o.default)(de.prototype,"windowService",[ae],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Me=(0,o.default)(de.prototype,"socialCountsService",[re],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),we=(0,o.default)(de.prototype,"localAuthenticatedActor",[se],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),De=(0,o.default)(de.prototype,"update",[le],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ae=(0,o.default)(de.prototype,"_hasRequestedConversationStarters",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pe=(0,o.default)(de.prototype,"conversationStartersUseCase",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ie=(0,o.default)(de.prototype,"hasAnchored",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Re=(0,o.default)(de.prototype,"impressionPercentageThresholdDesktopZoom",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),xe=(0,o.default)(de.prototype,"isLeadGenFormOpen",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ue=(0,o.default)(de.prototype,"isLeadGenSubmitted",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ne=(0,o.default)(de.prototype,"isUpdateHidden",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),je=(0,o.default)(de.prototype,"isRepostsModalOpen",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.openRepostListOnPageLoad}}),Le=(0,o.default)(de.prototype,"shouldFocusOnControlTrigger",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Fe=(0,o.default)(de.prototype,"shouldExpandCommentBox",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Be=(0,o.default)(de.prototype,"menuAction",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ze=(0,o.default)(de.prototype,"menuActionAssociatedSettingType",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ge=(0,o.default)(de.prototype,"shouldFocusOnFeedUpdate",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ve=(0,o.default)(de.prototype,"isEligibleForDwellAnimation",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,o.default)(de.prototype,"dismissRepostsModal",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"dismissRepostsModal"),de.prototype),(0,o.default)(de.prototype,"expandCommentBox",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"expandCommentBox"),de.prototype),(0,o.default)(de.prototype,"handleDidInsert",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"handleDidInsert"),de.prototype),(0,o.default)(de.prototype,"handleHiddenSponsoredUpdates",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"handleHiddenSponsoredUpdates"),de.prototype),(0,o.default)(de.prototype,"onResizeWindow",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"onResizeWindow"),de.prototype),(0,o.default)(de.prototype,"navigateToDetailTracking",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"navigateToDetailTracking"),de.prototype),(0,o.default)(de.prototype,"fireCustomTracking",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"fireCustomTracking"),de.prototype),(0,o.default)(de.prototype,"hideOrUnhideUpdateOnAction",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"hideOrUnhideUpdateOnAction"),de.prototype),(0,o.default)(de.prototype,"onToggleCommenting",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"onToggleCommenting"),de.prototype),(0,o.default)(de.prototype,"updateCommentRestrictionSetting",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"updateCommentRestrictionSetting"),de.prototype),(0,o.default)(de.prototype,"updateModelWithProperties",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"updateModelWithProperties"),de.prototype),(0,o.default)(de.prototype,"switchActorIdentity",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"switchActorIdentity"),de.prototype),(0,o.default)(de.prototype,"reloadUpdate",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"reloadUpdate"),de.prototype),(0,o.default)(de.prototype,"onEditShareSuccess",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"onEditShareSuccess"),de.prototype),(0,o.default)(de.prototype,"openLeadGenForm",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"openLeadGenForm"),de.prototype),(0,o.default)(de.prototype,"closeLeadGenForm",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"closeLeadGenForm"),de.prototype),(0,o.default)(de.prototype,"onClickInlineFeedbackLink",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"onClickInlineFeedbackLink"),de.prototype),(0,o.default)(de.prototype,"onRepostsTotalClick",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"onRepostsTotalClick"),de.prototype),(0,o.default)(de.prototype,"onTrackImpression",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"onTrackImpression"),de.prototype),(0,o.default)(de.prototype,"onGroupMembershipUpdate",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"onGroupMembershipUpdate"),de.prototype),(0,o.default)(de.prototype,"onEnterIntersectionConversationStarters",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"onEnterIntersectionConversationStarters"),de.prototype),(0,o.default)(de.prototype,"onExitIntersectionConversationStarters",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"onExitIntersectionConversationStarters"),de.prototype),(0,o.default)(de.prototype,"onEnterIntersectionDesktopZoom",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"onEnterIntersectionDesktopZoom"),de.prototype),(0,o.default)(de.prototype,"onEnterIntersectionAttributionSource",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"onEnterIntersectionAttributionSource"),de.prototype),(0,o.default)(de.prototype,"onExitIntersectionDesktopZoom",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"onExitIntersectionDesktopZoom"),de.prototype),(0,o.default)(de.prototype,"onEnterIntersectionPageView",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"onEnterIntersectionPageView"),de.prototype),(0,o.default)(de.prototype,"onReactionClick",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"onReactionClick"),de.prototype),(0,o.default)(de.prototype,"handleLegoImpressionTracking",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"handleLegoImpressionTracking"),de.prototype),(0,o.default)(de.prototype,"onUpdateEnteredViewport",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"onUpdateEnteredViewport"),de.prototype),(0,o.default)(de.prototype,"onUpdateExitedViewport",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"onUpdateExitedViewport"),de.prototype),(0,o.default)(de.prototype,"updateDwellTimeRequirement",[c.action],Object.getOwnPropertyDescriptor(de.prototype,"updateDwellTimeRequirement"),de.prototype),de);(0,a.setComponentTemplate)(He,Je)}))
define("feed-shared/components/reposts-modal",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/component","@ember/template-factory","@ember/object","feed-requests/reshares","feed-utils/helpers/render-model-path","@ember/service","@ember/utils","feed-utils/utils/error-parsing","feed-requests/update-actions","@glimmer/tracking","@glimmer/component","comments/utils/constants","voyager-web/config/environment","feed-utils/utils/constants","ember-lifeline","graphql-queries/mutations/feed/delete-contentcreation-feed-shares-by-urn.graphql","graphql-queries/mutations/feed/delete-feed-dash-repost-by-urn.graphql","@ember/destroyable"],(function(e,t,n,o,i,a,r,s,l,d,c,u,p,m,h,g,f,b,y,v,C,T,k){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var S,O,E,_,M,w,D,A,P,I,R,x,U,N,j,L,F,B,z,G,V,H,K,q,W
const Q=(0,r.createTemplateFactory)({id:"Sfjo3WDu",block:'[[[8,[39,0],null,[["@dismissModal","@headerId","@isOpen","@modalClasses","@size"],[[30,0,["dismissRepostsModal"]],"feed-shared-reposts-modal__header",[30,1],"feed-shared-reposts-modal","medium"]],[["default"],[[[[1,"\\n "],[8,[30,2,["artdeco-modal-header"]],null,[["@classNames"],["feed-shared-reposts-modal__header-container pl5"]],[["default"],[[[[1,"\\n "],[10,"h2"],[14,1,"feed-shared-reposts-modal__header"],[14,0,"t-20 t-black--light t-normal"],[12],[1,"\\n "],[1,[28,[35,1],["i18n_num_reposts_v2","feed-shared/components/reposts-modal"],[["value"],[[30,3]]]]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[30,2,["artdeco-modal-content"]],[[16,0,[29,["feed-shared-reposts-modal__content loading-bg p0\\n ",[52,[28,[37,3],[[30,0,["repostsData"]]],null],"feed-shared-reposts-modal__content--empty"]]]]],null,[["default"],[[[[1,"\\n"],[41,[30,1],[[[44,[[28,[37,5],[[30,0,["initialReposts"]]],null]],[[[41,[30,4,["isLoading"]],[[[1," "],[8,[39,6],null,null,null],[1,"\\n"]],[]],[[[41,[30,4,["isLoaded"]],[[[1," "],[8,[39,7],[[4,[38,9],null,[["pageKey","routeName","currentRoute"],[[30,0,["pageKey"]],[28,[37,10],[[53,"outletState"],"render.name"],null],[28,[37,10],[[53,"outletState"],"render"],null]]]],[4,[38,12],[[30,0,["checkReloadReposts"]]],null]],[["@isDisabled","@items","@onTrigger"],[[28,[37,8],[[30,0,["hasMoreItems"]]],null],[30,0,["repostsData"]],[30,0,["loadMoreReposts"]]]],[["content","empty"],[[[[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,6]],null]],null],null,[[[1," "],[8,[30,5],null,[["@index"],[[30,8]]],[["default"],[[[[1,"\\n "],[8,[39,15],null,[["@customModuleKey","@hideCaEntryPoint","@hideComments","@hideFirstPrompt","@hideReshare","@hideSendPrivately","@isRepostsTotalClickable","@isWrapped","@model","@shouldShowReshare","@onCommentButtonClick","@onCommentsTotalClick","@onControlMenuItemSelection","@onReactionsTotalClick","@openFeedDetailPage","@reloadActionsDisabled","@shouldHideContentAdminIdentityToggle","@socialActionsClassNames","@socialCountClassNames","@updateIndex","@isDashEnabled"],[[30,0,["pageKey"]],true,true,true,true,true,false,true,[30,7],false,[28,[37,16],[[30,0,["goToFeedDetailsPage"]],[52,[30,0,["isDashRepostModalEnabled"]],[30,7,["metadata","backendUrn"]],[30,7,["updateMetadata","urn"]]]],null],[28,[37,16],[[30,0,["goToFeedDetailsPage"]],[52,[30,0,["isDashRepostModalEnabled"]],[30,7,["metadata","backendUrn"]],[30,7,["updateMetadata","urn"]]]],null],[30,0,["onControlMenuItemSelection"]],[28,[37,16],[[30,0,["goToFeedDetailsPage"]],[52,[30,0,["isDashRepostModalEnabled"]],[30,7,["metadata","backendUrn"]],[30,7,["updateMetadata","urn"]]]],null],[28,[37,16],[[30,0,["goToFeedDetailsPage"]],[52,[30,0,["isDashRepostModalEnabled"]],[30,7,["metadata","backendUrn"]],[30,7,["updateMetadata","urn"]]]],null],true,true,"feed-shared-social-action-bar--extra-horizontal-padding-for-humor-reaction",[30,0,["socialCountClassNames"]],[30,8],[30,0,["isDashRepostModalEnabled"]]]],null],[1,"\\n "],[10,"hr"],[14,0,"artdeco-divider feed-shared-reposts-modal__update-divider mb0"],[12],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[7,8]],null],[1," "]],[5,6]],[[[1,"\\n "],[10,0],[14,0,"feed-shared-reposts-modal__image-and-message display-flex align-items-center flex-column text-align-center justify-content-center feed-shared-reposts-modal__image-and-message--lighter"],[12],[1,"\\n "],[8,[39,17],null,[["@headline","@illustration","@message","@size"],[[28,[37,1],["i18n_reposts_list_empty_state_title","feed-shared/components/reposts-modal"],null],"empty-no-mail",[28,[37,1],["i18n_reposts_list_empty_state_message","feed-shared/components/reposts-modal"],null],2]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"],[41,[30,0,["shouldShowBottomBanner"]],[[[1," "],[10,0],[14,0,"feed-shared-reposts-modal__private-shares-footer"],[12],[1,"\\n "],[1,[28,[35,1],["i18n_reposts_list_empty_state_message","feed-shared/components/reposts-modal"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],[[[41,[30,4,["isError"]],[[[1," "],[10,0],[14,0,"feed-shared-reposts-modal__image-and-message p4 display-flex align-items-center flex-column text-align-center justify-content-center"],[12],[1,"\\n "],[8,[39,17],null,[["@actionText","@buttonType","@headline","@illustration","@message","@onButtonClick","@size"],[[28,[37,1],["i18n_try_again","feed-shared/components/reposts-modal"],null],"secondary",[28,[37,1],["i18n_reposts_list_failed_title","feed-shared/components/reposts-modal"],null],"error-server",[28,[37,1],["i18n_reposts_list_failed_message","feed-shared/components/reposts-modal"],null],[30,0,["getInitialReposts"]],2]],null],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]]],[]]]],[4]]]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[2]]]]],[1,"\\n\\n"],[41,[28,[37,18],[[30,0,["modalToShow"]],[30,0,["modalTypes","REPORT"]]],null],[[[41,[30,0,["shouldUseNewReportingFlow"]],[[[1," "],[8,[39,19],null,[["@authorUrn","@cancel","@class","@contentSource","@entityUrn","@failure","@isDisinterestOptionEnabled","@success","@track"],[[30,0,["semaphoreArgs","authorUrn"]],[30,0,["_resetAllModals"]],"feed-shared-reposts-modal__semaphore",[30,0,["semaphoreArgs","contentSource"]],[30,0,["semaphoreArgs","entityUrn"]],[30,0,["_onReportFailure"]],false,[30,0,["_onReportSuccess"]],[30,0,["_onReportTrack"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,20],null,[["@authorProfileId","@authorUrn","@cancel","@class","@contentSource","@entityUrn","@failure","@isBackButtonEnabled","@isDisinterestOptionEnabled","@parentUrn","@success","@track"],[[30,0,["semaphoreArgs","authorProfileId"]],[30,0,["semaphoreArgs","authorUrn"]],[30,0,["_resetAllModals"]],"feed-shared-reposts-modal__semaphore",[30,0,["semaphoreArgs","contentSource"]],[30,0,["semaphoreArgs","entityUrn"]],[30,0,["_onReportFailure"]],false,false,[30,0,["semaphoreArgs","parentUrn"]],[30,0,["_onReportSuccess"]],[30,0,["_onReportTrack"]]]],null],[1,"\\n"]],[]]]],[]],[[[41,[28,[37,18],[[30,0,["modalToShow"]],[30,0,["modalTypes","COMMENTS_RESTRICTIONS_SETTINGS"]]],null],[[[1," "],[8,[39,21],null,[["@isModalOpen","@onUpdateCommentRestrictionSettings","@dismissModal","@update","@allowedCommentersScope"],[true,[30,0,["_onUpdateCommentRestrictionSettings"]],[30,0,["commentRestrictionModalArgs","dismissModal"]],[30,0,["commentRestrictionModalArgs","update"]],[30,0,["commentRestrictionModalArgs","update","socialDetail","allowedCommentersScope"]]]],null],[1,"\\n"]],[]],[[[41,[28,[37,18],[[30,0,["modalToShow"]],[30,0,["modalTypes","DECISION"]]],null],[[[1," "],[8,[39,22],null,[["@isModalOpen","@modalContext","@closeDecisionModal"],[true,[30,0,["decisionModalContext"]],[30,0,["_resetAllModals"]]]],null],[1,"\\n"]],[]],[[[41,[28,[37,18],[[30,0,["modalToShow"]],[30,0,["modalTypes","EMBED"]]],null],[[[1," "],[8,[39,23],null,[["@hasLinkedInVideo","@isOpen","@model","@onDismissModal","@useLiveEmbedRoute"],[[30,0,["embedModalArgs","hasLinkedInVideo"]],true,[30,0,["embedModalArgs","action"]],[30,0,["_resetAllModals"]],[30,0,["embedModalArgs","useLiveEmbedRoute"]]]],null],[1,"\\n"]],[]],[[[41,[28,[37,18],[[30,0,["modalToShow"]],[30,0,["modalTypes","EDIT_SHARE"]]],null],[[[1," "],[8,[39,24],null,[["@isShareboxModalOpen","@onCloseShareboxModal","@onEditShareSuccess","@shareUrn","@updateV2"],[true,[30,0,["_resetAllModals"]],[30,0,["editModalArgs","success"]],[52,[30,0,["isDashRepostModalEnabled"]],[30,0,["editModalArgs","update","metadata","shareUrn"]],[30,0,["editModalArgs","update","updateMetadata","shareUrn"]]],[30,0,["editModalArgs","update"]]]],null],[1,"\\n"]],[]],null]],[]]]],[]]]],[]]]],[]]]],["@isRepostsModalOpen","modal","@numShares","promise","ItemContainer","items","repost","index"],false,["artdeco-modal@artdeco-modal","t","if","global-helpers@is-empty","let","global-helpers@load","artdeco-loader@artdeco-loader","scaffold-finite-scroll@finite-scroll","global-helpers@not","ember-cli-pemberly-tracking@track-render","get","-get-dynamic-var","did-insert","each","-track-array","feed-shared@update/generic-update","fn","artdeco-empty-state@artdeco-empty-state","global-helpers@eq","trust@reporting-flow-modal","ember-semaphore@ember-semaphore","feed-control-menu@comment-restriction-settings-modal","feed-components-shared@modals/decision-modal","feed-components-shared@modals/embed-modal","sharing-entry@share-box-modal"]]',moduleName:"feed-shared/components/reposts-modal.hbs",isStrictMode:!1}),Y="components/feed-components-shared@modals/decision-modal",$="components/feed-control-menu@control-menu"
let Z=e.default=(S=(0,c.inject)("tracking"),O=(0,c.inject)("global-services@store-shim"),E=(0,c.inject)("social-counts-service@social-counts"),_=(0,c.inject)("i18n"),M=(0,c.inject)("persistent-toast-manager@persistent-toast-manager"),w=(0,c.inject)("jet"),D=(0,c.inject)("lix"),A=(0,c.inject)("router"),P=(0,c.inject)("pem-tracking"),I=(0,c.inject)("@linkedin/ember-restli-graphql@graphql"),R=class extends g.default{constructor(){super(...arguments);(0,t.default)(this,"tracking",x,this);(0,t.default)(this,"storeShim",U,this);(0,t.default)(this,"socialCountsService",N,this);(0,t.default)(this,"i18n",j,this);(0,t.default)(this,"persistentToastManager",L,this);(0,t.default)(this,"jet",F,this);(0,t.default)(this,"lix",B,this);(0,t.default)(this,"router",z,this);(0,t.default)(this,"pemTracking",G,this);(0,t.default)(this,"graphql",V,this);(0,t.default)(this,"repostsData",H,this);(0,t.default)(this,"promise",K,this);(0,t.default)(this,"hasMoreItems",q,this);(0,t.default)(this,"modalToShow",W,this);(0,n.default)(this,"hasBeenOpened",!1);(0,n.default)(this,"metadata",void 0);(0,n.default)(this,"paging",void 0);(0,n.default)(this,"pageKey","flagship3_feed_reshare_list");(0,n.default)(this,"modalTypes",{COMMENTS_RESTRICTIONS_SETTINGS:"COMMENTS_RESTRICTIONS_SETTINGS",DECISION:"DECISION",DELETE:"DELETE",EDIT_SHARE:"EDIT_SHARE",EMBED:"EMBED",REPORT:"REPORT"})}get isDashRepostModalEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.feed-dash-repost-modal")}get shouldShowBottomBanner(){const{numShares:e}=this.args,t=this.repostsData.length
return!(0,u.isEmpty)(this.repostsData)&&t!==e}get isCommentPermissionDashEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.feed-enable-dash-comment-permissions")}get shouldUseNewReportingFlow(){return this.lix.getTreatmentIsEnabled("voyager.web.tsx-report-in-for-posts")&&("UGC_POST"===this.semaphoreArgs.contentSource||"GROUPS_POST"===this.semaphoreArgs.contentSource)}get initialReposts(){return this.getInitialReposts()}dismissRepostsModal(){var e,t
null===(e=(t=this.args).dismissRepostsModal)||void 0===e||e.call(t)
this.hasBeenOpened=!0}get isGraphQlEnabledForRepostDelete(){return this.lix.getTreatmentIsEnabled("voyager.web.feed-repost-delete-graphql")}getInitialReposts(){this.promise=(0,l.getReshares)({storeService:this.storeShim,targetUrn:this.args.updateId,options:{reload:!0},graphQlService:this.graphql,useDash:this.isDashRepostModalEnabled}).then((e=>{let{elements:t,metadata:n,paging:o,hasMoreItems:i}=e
if(!this.isDestroying){this.repostsData=t
this.socialCountsService.registerElementsList(this.repostsData)
this.metadata=n
this.paging=o
this.hasMoreItems=i}})).catch((e=>{if(!this.isDestroying&&(0,p.isHttpErrorStatus)(e)){const e=this.i18n.lookupTranslation("components/feed-shared@reposts-modal","i18n_reposts_list_failed_title")()
this.persistentToastManager.error({message:e})
this.jet.logError(new Error("Network request failed while attempting to fetch reposts list"),y.JET_TAGS.GET_SHARES,!1)}throw e}))
return this.promise}checkReloadReposts(){if(this.hasBeenOpened){this.hasBeenOpened=!1
this.getInitialReposts()}}loadMoreReposts(){var e
return(0,l.getReshares)({storeService:this.storeShim,targetUrn:this.args.updateId,pagination:this.paging,additionalParams:{paginationToken:null===(e=this.metadata)||void 0===e?void 0:e.paginationToken},graphQlService:this.graphql,useDash:this.isDashRepostModalEnabled}).then((e=>{let{elements:t,metadata:n,paging:o,hasMoreItems:i}=e
if(!this.isDestroying){this.repostsData.push(...t)
this.socialCountsService.registerElementsList(t)
this.paging=o
this.metadata=n
this.hasMoreItems=i}}))}retry(){this.getInitialReposts()}goToFeedDetailsPage(e){var t,n
null===(t=(n=this.args).dismissRepostsModal)||void 0===t||t.call(n)
this.router.transitionTo("feed.update",e)}onControlMenuItemSelection(e){if({[y.controlMenuMap.COMMENTS_RESTRICTIONS_SETTINGS.action]:!0,[y.controlMenuMap.DELETE.action]:!0,[y.controlMenuMap.DISABLE_COMMENTS.action]:!0,[y.controlMenuMap.EDIT_SHARE.action]:!0,[y.controlMenuMap.EMBED.action]:!0,[y.controlMenuMap.REPORT.action]:!0,[y.controlMenuMap.DELETE_REPOST.action]:!0}[e.action]){this.args.dismissRepostsModal();(0,v.scheduleTask)(this,"render",(()=>{switch(e.action){case y.controlMenuMap.REPORT.action:this._reportingFlow(e)
break
case y.controlMenuMap.COMMENTS_RESTRICTIONS_SETTINGS.action:this._commentRestrictionsSettingsFlow(e)
break
case y.controlMenuMap.DELETE.action:this._deleteFlow(e)
break
case y.controlMenuMap.DELETE_REPOST.action:this._deleteRepostFlow(e)
break
case y.controlMenuMap.DISABLE_COMMENTS.action:this._disableCommentsFlow(e,e.menuAction.targetUrn)
break
case y.controlMenuMap.EDIT_SHARE.action:this._editFlow(e)
break
case y.controlMenuMap.EMBED.action:this._embedFlow(e)
break
default:this.goToFeedDetailsPage(e.menuAction.targetUrn)}}))}return null}_resetAllModals(){this.modalToShow=null
this.decisionModalContext={}
this.commentRestrictionModalArgs={}
this.editModalArgs={}
this.embedModalArgs={}
this.semaphoreArgs={}}_findUpdateByUrn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"DELETE"
for(let o=0;o<this.repostsData.length;o++){var n
const i=this.repostsData[o],a=this.isDashRepostModalEnabled?i.metadata:i.updateMetadata
if(e===(null==a?void 0:a.shareUrn))return{item:i,index:o}
const r=null==a||null===(n=a.updateActions)||void 0===n?void 0:n.actions
if(null==r?void 0:r.find((n=>n.actionType===t&&n.targetUrn===e)))return{item:i,index:o}}return{}}_removeUpdateFromList(e){const{index:t}=this._findUpdateByUrn(e,"DELETE")
t&&this.repostsData.splice(t,1)}_commentRestrictionsSettingsFlow(e){let{menuAction:t}=e
const{targetUrn:n}=t,{item:o}=this._findUpdateByUrn(n,"COMMENTS_RESTRICTIONS_SETTINGS")
if(o){this.modalToShow=this.modalTypes.COMMENTS_RESTRICTIONS_SETTINGS
this.commentRestrictionModalArgs={update:o,targetUrn:n,dismissModal:()=>{this.decisionModalContext||this._resetAllModals()}}}}_deleteRepostFlow(e){let{menuAction:t}=e
const n=this.i18n.lookupTranslation(Y,"delete_repost")(),o=this.i18n.lookupTranslation(Y,"delete_repost_description")(),i=this.i18n.lookupTranslation(Y,"delete")(),a=this.i18n.lookupTranslation(Y,"cancel")(),{targetUrn:r}=t
this.decisionModalContext={confirmAction:this._onDeleteRepostConfirmed(r),trackingPrefix:"deletereposts.",confirmTrackingKey:"delete",cancelTrackingKey:"cancel",pageTrackingKey:"flagship3_feed_deletereposts.module",modalTitle:n,modalDescription:o,confirmKeyText:i,cancelKeyText:a}
this.modalToShow=this.modalTypes.DECISION}_deleteFlow(e){let{menuAction:t}=e
const n=this.i18n.lookupTranslation(Y,"delete_post")(),o=this.i18n.lookupTranslation(Y,"delete_post_description")(),i=this.i18n.lookupTranslation(Y,"delete")(),a=this.i18n.lookupTranslation(Y,"cancel")(),{targetUrn:r}=t
this.decisionModalContext={confirmAction:()=>this._onDeleteConfirmed(r),trackingPrefix:"deleteshares.",confirmTrackingKey:"delete",cancelTrackingKey:"cancel",pageTrackingKey:this.pageKey,modalTitle:n,modalDescription:o,confirmKeyText:i,cancelKeyText:a}
this.modalToShow=this.modalTypes.DECISION}_reportingFlow(e){let{menuAction:t}=e
this.semaphoreArgs={authorProfileId:t.authorProfileId,authorUrn:t.authorUrn,contentSource:t.contentSource,entityUrn:t.targetUrn,parentUrn:t.parentUrn??""}
this.modalToShow=this.modalTypes.REPORT}_editFlow(e){let{menuAction:t}=e
const{targetUrn:n}=t,{item:o,index:i}=this._findUpdateByUrn(n,"EDIT_SHARE")
if(o){this.modalToShow=this.modalTypes.EDIT_SHARE
this.editModalArgs={update:o,success:e=>{this.resharesData[i]=e}}}else this.goToFeedDetailsPage(n)}_embedFlow(e){let{menuAction:t}=e
const{item:n}=this._findUpdateByUrn(t.targetUrn,"EMBED")
if(n){const{content:e}=n,o="linkedin-video"===(0,d.getComponentType)(e)
this.embedModalArgs={action:t,hasLinkedInVideo:o,closeEmbedModal:this._resetAllModals}
this.modalToShow=this.modalTypes.EMBED}}_onUpdateCommentRestrictionSettings(e){const{update:t,targetUrn:n}=this.commentRestrictionModalArgs
if(e!==f.ALLOWED_COMMENTERS_SCOPE.NONE)this._updateCommentRestrictionSetting(n,e,t)
else{const e=this.i18n.lookupTranslation("components/feed-components-shared@modals/decision-modal","turn_off_comments")(),o=this.i18n.lookupTranslation("components/feed-components-shared@modals/decision-modal","turn_off_comments_description")(),i=this.i18n.lookupTranslation("components/feed-components-shared@modals/decision-modal","turn_off")(),a=this.i18n.lookupTranslation("components/feed-components-shared@modals/decision-modal","cancel")()
this.decisionModalContext={confirmAction:()=>{this._updateCommentRestrictionSetting(n,f.ALLOWED_COMMENTERS_SCOPE.NONE,t)},trackingPrefix:"select_comment_controls_settings",confirmTrackingKey:"_disable",cancelTrackingKey:"_cancel",pageTrackingKey:this.pageKey,modalTitle:e,modalDescription:o,confirmKeyText:i,cancelKeyText:a}
this.modalToShow=this.modalTypes.DECISION}}_updateCommentRestrictionSetting(e,t,n){var o,i
const[a,r,l]=this.isCommentPermissionDashEnabled?(0,m.dashUpdateCommentRestrictionSettingRequest)((null===(o=n.socialDetail)||void 0===o?void 0:o.dashEntityUrn)??(null===(i=n.socialDetail)||void 0===i?void 0:i.entityUrn),t):(0,m.updateCommentRestrictionSettingRequest)(e,t)
return this.storeShim.adapterFor("-ember-m3").ajax(a,r,l).then((()=>{if(!this.isDestroying){(0,s.set)(n,"socialDetail.allowedCommentersScope",t)
if(t===f.ALLOWED_COMMENTERS_SCOPE.NONE){this.isDashRepostModalEnabled||(0,s.set)(n,"socialDetail.commentingDisabled",!0);(0,s.set)(n,"socialDetail.socialPermissions.canPostComments",!1);(0,s.set)(n,"socialDetail.totalSocialActivityCounts.numComments",0)}else{this.isDashRepostModalEnabled||(0,s.set)(n,"socialDetail.commentingDisabled",!1);(0,s.set)(n,"socialDetail.socialPermissions.canPostComments",!0)}const e={ALL:"comment_restriction_success_ALL",CONNECTIONS_ONLY:"comment_restriction_success_CONNECTIONS_ONLY",NONE:"comment_restriction_success_NONE"},o=this.i18n.lookupTranslation("components/feed-control-menu@comment-restriction-settings-modal",e[t])()
this.persistentToastManager.success({message:o})}})).catch((e=>{if(!this.isDestroying){const e=this.i18n.lookupTranslation("components/feed-control-menu@comment-restriction-settings-modal","comment_restriction_network_error_occurred")()
e&&this.persistentToastManager.error({message:e})}throw e}))}_disableCommentsFlow(e,t){const n=this.i18n.lookupTranslation(Y,"disable_comments")(),o=this.i18n.lookupTranslation(Y,"disable_comments_description")(),i=this.i18n.lookupTranslation(Y,"disable")(),a=this.i18n.lookupTranslation(Y,"cancel")(),{item:r}=this._findUpdateByUrn(t,"DISABLE_COMMENTS")
this.decisionModalContext={confirmAction:()=>this._onToggleCommenting(e,r),trackingPrefix:"disable_comments",confirmTrackingKey:".disable",cancelTrackingKey:"cancel",pageTrackingKey:this.pageKey,modalTitle:n,modalDescription:o,confirmKeyText:i,cancelKeyText:a}
this.modalToShow=this.modalTypes.DECISION}_onToggleCommenting(e,t){var n
const o="DISABLE_COMMENTS"===e.actionType,[i,a]=this.isCommentPermissionDashEnabled?(0,m.dashUpdateCommentRestrictionSettingRequest)(null===(n=t.socialDetail)||void 0===n?void 0:n.entityUrn,o):(0,m.toggleCommentingRequest)(e.menuAction.targetUrn,o)
return this.storeShim.adapterFor("-ember-m3").ajax(i,a).then((()=>{if(!this.isDestroying){(0,s.set)(t,"socialDetail.commentingDisabled",o);(0,s.set)(t,"socialDetail.socialPermissions.canPostComments",!o)
if(o){var e
const n=this.socialCountsService.getSocialCountsManager(null===(e=t.socialDetail)||void 0===e?void 0:e.totalSocialActivityCounts)
null==n||n.updateCommentsCount(0)}}})).catch((e=>{if(!this.isDestroying){const e=this.i18n.lookupTranslation("components/feed-shared@render-models/update-v2","network_error_occurred")()
e&&this.persistentToastManager.error({message:e})}throw e})).then((()=>{if(!this.isDestroying){this._updateCommentPermissionsAction(e)
this._resetAllModals()}}))}_updateCommentPermissionsAction(e){let{menuAction:t}=e
const n="ENABLE_COMMENTS"===t.actionType?"DISABLE_COMMENTS":"ENABLE_COMMENTS",o="ENABLE_COMMENTS"===n?this.i18n.lookupTranslation($,"i18n_enable_comments")():this.i18n.lookupTranslation($,"i18n_disable_comments")();(0,s.setProperties)(t,{actionType:n,text:o})}_onReportSuccess(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).includes("HIDE_CONTENT")&&this._removeUpdateFromList(this.semaphoreArgs.entityUrn)
this._resetAllModals()}_onReportFailure(){this._resetAllModals()
const e=this.i18n.lookupTranslation("components/feed-control-menu@control-menu","network_error")()
this.persistentToastManager.error({message:e})}_onReportTrack(e){const t=e.moduleKey
t&&this.tracking.fireInteractionEvent(t)}_onDeleteConfirmed(e){const t=`/${b.default.namespace}/contentcreation/normShares/${e}`,n=this.isGraphQlEnabledForRepostDelete?this.graphql.executeMutation(C.default,{resourceKey:e}):this.storeShim.adapterFor("-ember-m3").ajax(t,"DELETE")
this.pemTracking.trackFeatureDegradations(t,[e],[y.DEGRADATION_TRACKING_METADATA.POST_DELETE],n)
n.then((()=>{this.isDestroying||this._removeUpdateFromList(e)})).catch((e=>{if(!this.isDestroying){const e=this.i18n.lookupTranslation($,"i18n_delete_post_unsuccessful")()
this.persistentToastManager.error({message:e})}throw e}))}_onDeleteRepostConfirmed(e){const t=`/${b.default.namespace}/voyagerFeedDashReposts/${e}`,n=this.isGraphQlEnabledForRepostDelete?this.graphql.executeMutation(T.default,{resourceKey:e}):this.storeShim.adapterFor("-ember-m3").ajax(t,"DELETE"),o=[y.DEGRADATION_TRACKING_METADATA.REPOST_DELETE]
this.pemTracking.trackFeatureDegradations(t,[e],o,n)
n.then((()=>{var e;(0,k.isDestroying)(this)||null===(e=this.args.updateTrackingObj)||void 0===e||e.fireFeedActionAndSponsoredTrackingEvents({actionCategory:"DELETE",actionType:"deleteRepost",controlName:"control_delete"})})).catch((e=>{if((0,k.isDestroying)(this))throw e
const t=this.i18n.lookupTranslation($,"i18n_delete_repost_unsuccessful")()
this.persistentToastManager.error({message:t})
throw e}))}},x=(0,o.default)(R.prototype,"tracking",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,o.default)(R.prototype,"storeShim",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,o.default)(R.prototype,"socialCountsService",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,o.default)(R.prototype,"i18n",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,o.default)(R.prototype,"persistentToastManager",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,o.default)(R.prototype,"jet",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,o.default)(R.prototype,"lix",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,o.default)(R.prototype,"router",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=(0,o.default)(R.prototype,"pemTracking",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,o.default)(R.prototype,"graphql",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=(0,o.default)(R.prototype,"repostsData",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),K=(0,o.default)(R.prototype,"promise",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=(0,o.default)(R.prototype,"hasMoreItems",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),W=(0,o.default)(R.prototype,"modalToShow",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),(0,o.default)(R.prototype,"dismissRepostsModal",[s.action],Object.getOwnPropertyDescriptor(R.prototype,"dismissRepostsModal"),R.prototype),(0,o.default)(R.prototype,"getInitialReposts",[s.action],Object.getOwnPropertyDescriptor(R.prototype,"getInitialReposts"),R.prototype),(0,o.default)(R.prototype,"checkReloadReposts",[s.action],Object.getOwnPropertyDescriptor(R.prototype,"checkReloadReposts"),R.prototype),(0,o.default)(R.prototype,"loadMoreReposts",[s.action],Object.getOwnPropertyDescriptor(R.prototype,"loadMoreReposts"),R.prototype),(0,o.default)(R.prototype,"retry",[s.action],Object.getOwnPropertyDescriptor(R.prototype,"retry"),R.prototype),(0,o.default)(R.prototype,"goToFeedDetailsPage",[s.action],Object.getOwnPropertyDescriptor(R.prototype,"goToFeedDetailsPage"),R.prototype),(0,o.default)(R.prototype,"onControlMenuItemSelection",[s.action],Object.getOwnPropertyDescriptor(R.prototype,"onControlMenuItemSelection"),R.prototype),(0,o.default)(R.prototype,"_resetAllModals",[s.action],Object.getOwnPropertyDescriptor(R.prototype,"_resetAllModals"),R.prototype),(0,o.default)(R.prototype,"_onUpdateCommentRestrictionSettings",[s.action],Object.getOwnPropertyDescriptor(R.prototype,"_onUpdateCommentRestrictionSettings"),R.prototype),(0,o.default)(R.prototype,"_updateCommentRestrictionSetting",[s.action],Object.getOwnPropertyDescriptor(R.prototype,"_updateCommentRestrictionSetting"),R.prototype),(0,o.default)(R.prototype,"_onToggleCommenting",[s.action],Object.getOwnPropertyDescriptor(R.prototype,"_onToggleCommenting"),R.prototype),(0,o.default)(R.prototype,"_onReportSuccess",[s.action],Object.getOwnPropertyDescriptor(R.prototype,"_onReportSuccess"),R.prototype),(0,o.default)(R.prototype,"_onReportFailure",[s.action],Object.getOwnPropertyDescriptor(R.prototype,"_onReportFailure"),R.prototype),(0,o.default)(R.prototype,"_onReportTrack",[s.action],Object.getOwnPropertyDescriptor(R.prototype,"_onReportTrack"),R.prototype),(0,o.default)(R.prototype,"_onDeleteConfirmed",[s.action],Object.getOwnPropertyDescriptor(R.prototype,"_onDeleteConfirmed"),R.prototype),(0,o.default)(R.prototype,"_onDeleteRepostConfirmed",[s.action],Object.getOwnPropertyDescriptor(R.prototype,"_onDeleteRepostConfirmed"),R.prototype),R);(0,a.setComponentTemplate)(Q,Z)}))
define.alias("ember-finite-scroll/components/sentinel","feed-shared/components/sentinel")
define("feed-shared/components/share",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/component","@ember/template-factory","@glimmer/component","@ember/service","organization-detour/broadcast-to-share-detour-manager","@ember/object"],(function(e,t,n,o,i,a,r,s,l,d,c){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var u,p,m,h,g
const f=(0,r.createTemplateFactory)({id:"nlMqgI/L",block:'[[[10,0],[14,0,"feed-shared-share"],[12],[1,"\\n "],[10,0],[12],[1,"\\n"],[41,[30,1,["socialProofText"]],[[[1," "],[10,0],[14,0,"t-12 t-black--light truncate pv2 ph3"],[12],[1,"\\n "],[1,[28,[35,1],[[30,1,["socialProofText"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,2],null,[["@shareOrigin","@initialDetourManager","@disableDetourEdit","@disableDetourPreviewRemoval"],[[30,0,["shareOrigin"]],[30,0,["initialDetourManager"]],true,true]],[["default"],[[[[1,"\\n "],[10,"footer"],[14,0,"artdeco-card__actions"],[12],[1,"\\n "],[8,[39,3],[[24,0,"justify-flex-start p3"],[4,[38,4],["click",[28,[37,5],[[30,0,["onCTAClick"]],[30,3],[30,2]],null]],null],[4,[38,6],["broadcast_share_post"],null]],[["@type","@color","@stretch","@icon","@text"],["tertiary","muted","fluid","compose",[30,1,["postCTAText"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[2]]]]],[1,"\\n "],[13],[1,"\\n"],[13]],["@model","openShareboxModal","@updateMetadata"],false,["if","text-view-model@text-view-model","sharing-entry@share-button","artdeco-button@artdeco-button","on","fn","ember-cli-pemberly-tracking@track-interaction"]]',moduleName:"feed-shared/components/share.hbs",isStrictMode:!1})
let b=e.default=(u=(0,l.inject)("feed-tracking@feed-action-event"),p=(0,l.inject)("global-services@store-shim"),m=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"feedActionEvent",h,this);(0,t.default)(this,"storeShim",g,this);(0,n.default)(this,"shareOrigin","BROADCAST")}get initialDetourManager(){return new d.default(this.args.updateMetadata,this.args.commentary,this.args.content,this.storeShim)}onCTAClick(e,t){t()
this.feedActionEvent.fireFAE(e,{actionCategory:"SHARE",actionType:"broadcastShare",controlName:"broadcast_share_post"})}},h=(0,o.default)(m.prototype,"feedActionEvent",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,o.default)(m.prototype,"storeShim",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,o.default)(m.prototype,"onCTAClick",[c.action],Object.getOwnPropertyDescriptor(m.prototype,"onCTAClick"),m.prototype),m);(0,a.setComponentTemplate)(f,b)}))
define("feed-shared/components/sharebox-modal-with-success-callback",["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/component","@ember/template-factory","@glimmer/component","@ember/object","groups-shared/utils/requests/group-recommendation","@ember/service","global-utils/utils/api-compat","sharing-shared/utils/sharing-shared-constants"],(function(e,t,n,o,i,a,r,s,l,d,c,u,p,m){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var h,g,f,b,y,v
const C=(0,s.createTemplateFactory)({id:"bQ1RNPD6",block:'[[[18,1,[[50,"sharing-entry@share-box-modal",0,null,[["onShareSuccess","updateShareStatusCollection"],[[30,0,["onShareSuccess"]],[30,0,["updateShareStatusCollection"]]]]]]]],["&default"],false,["yield","component"]]',moduleName:"feed-shared/components/sharebox-modal-with-success-callback.hbs",isStrictMode:!1})
let T=e.default=(h=(0,u.inject)("global-services@store-shim"),g=(0,u.inject)("sharing-entry@sharebox-upload-state"),f=(v=new WeakSet,class extends l.default{constructor(){super(...arguments)
v.add(this);(0,t.default)(this,"storeShim",b,this);(0,t.default)(this,"shareboxUploadState",y,this)}onShareSuccess(e){var t,n,i,a,r,s,l,d,c,u,h,g
const f=(null!==(t=e.status)&&void 0!==t&&t.pendingModeration?null===(n=e.status.updateV2.updateMetadata)||void 0===n?void 0:n.shareUrn:null===(i=e.updateMetadata)||void 0===i?void 0:i.shareUrn)||((null==e||null===(a=e.data)||void 0===a||null===(r=a.createContentcreationDashShares.entity)||void 0===r||null===(s=r.status)||void 0===s||null===(l=s.lifecycleState)||void 0===l?void 0:l.UnpublishedState)===m.SHARE_UNPUBLISHED_STATES.PENDING_MODERATION?`urn:li:groupPost:${(0,p.entityUrnToId)(null==e||null===(d=e.data)||void 0===d||null===(c=d.createContentcreationDashShares.entity)||void 0===c?void 0:c.entityUrn)}`:null===(u=e.metadata)||void 0===u?void 0:u.shareUrn);(0,o.default)(this,v,k).call(this,f)
null===(h=(g=this.args).onShareSuccess)||void 0===h||h.call(g,e)}updateShareStatusCollection(e){var t,n,i
this.shareboxUploadState.storeUploadState(e);(0,o.default)(this,v,k).call(this,null===(t=e[0].updateMetadata)||void 0===t?void 0:t.shareUrn)
null===(n=(i=this.args).updateShareStatusCollection)||void 0===n||n.call(i,e)}}),b=(0,i.default)(f.prototype,"storeShim",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,i.default)(f.prototype,"shareboxUploadState",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(f.prototype,"onShareSuccess",[d.action],Object.getOwnPropertyDescriptor(f.prototype,"onShareSuccess"),f.prototype),(0,i.default)(f.prototype,"updateShareStatusCollection",[d.action],Object.getOwnPropertyDescriptor(f.prototype,"updateShareStatusCollection"),f.prototype),f)
function k(e){const{recommendationUrn:t,recommendationAction:n,referenceUrn:o,usecase:i}=this.args
n&&o&&t&&this.storeShim.queryURL(...(0,c.updateRecommendationForPostAction)(t,o,e,n,i))}(0,r.setComponentTemplate)(C,T)}))
define.alias("ember-cloud-filepicker/components/slideshare-file-picker","feed-shared/components/slideshare-file-picker")
define("feed-shared/components/sortable-objects",["exports","ember-drag-drop/components/sortable-objects"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=t.default}))
define("feed-shared/components/sponsored-multithreshold-impression-tracking-wrapper",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/component","@ember/template-factory","@glimmer/component","ember","@ember/object","@ember/service","@ember/debug","global-utils/utils/custom-tracking-transporters"],(function(e,t,n,o,i,a,r,s,l,d,c,u,p){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var m,h,g
const f=(0,r.createTemplateFactory)({id:"y89i1iTH",block:'[[[41,[30,0,["shouldTrackMultiThresholdSponsoredImpressions"]],[[[1," "],[11,0],[17,1],[4,[38,1],null,[["registerOnImpression","key","routeName","currentRoute"],[[30,0,["onTrackMultiThresholdImpression"]],"d_impression_3pp_multithreshold",[28,[37,2],[[53,"outletState"],"render.name"],null],[28,[37,2],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n "],[18,2,null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[11,0],[17,1],[12],[1,"\\n "],[18,2,null],[1,"\\n "],[13],[1,"\\n"]],[]]]],["&attrs","&default"],false,["if","ember-cli-pemberly-tracking@track-impression","get","-get-dynamic-var","yield"]]',moduleName:"feed-shared/components/sponsored-multithreshold-impression-tracking-wrapper.hbs",isStrictMode:!1})
let b=e.default=(m=(0,c.inject)("tracking"),h=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"tracking",g,this)}get isSponsored(){return!!(this.args.sponsoredMetadata&&this.args.sponsoredMetadata.activityType&&this.args.sponsoredMetadata.adTrackingCode&&this.args.sponsoredMetadata.version)}get isViral(){var e
return"VIRAL"===(null===(e=this.args.sponsoredMetadata)||void 0===e?void 0:e.activityType)}get metricsSizeLimit(){return l.default.testing&&this.args.metricsSizeLimit||25}get shouldTrackMultiThresholdSponsoredImpressions(){return this.isSponsored&&!this.isViral&&!this.args.shouldSuppressTracking&&this.args.sponsoredMetadata.shouldTrackMultiThresholds}onTrackMultiThresholdImpression(){const{activityType:e,adTrackingCode:t,version:n}=this.args.sponsoredMetadata,o={sponsoredEventHeader:{activityType:e,adTrackingCode:t,version:n,actionType:"impression",deviceType:"DESKTOP",feedPosition:this.args.updatePosition||-1}},{tracking:i}=this
return e=>{o.hasAllImpressionThresholds=e.thresholdEvents.length<=this.metricsSizeLimit
o.impressionThresholds=e.thresholdEvents.slice(0,this.metricsSizeLimit).map((e=>{const{duration:t,threshold:n,visibleTime:o,boundingClientRect:i}=e,a={visibleStartTime:o,hasViewedOnePixel:0===n.ratio,visibleDuration:t,size:{height:i.height,width:i.width}}
a.hasViewedOnePixel||(a.visiblePercentage=n.ratio)
return a}))
i.fireTrackingPayload("SponsoredMultiThresholdImpressionEvent",o,{transporterKey:p.SPONSORED_TRACKING_TRANSPORTER_KEYS.TFE_TRANSPORTER})
return[]}}},g=(0,o.default)(h.prototype,"tracking",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,o.default)(h.prototype,"onTrackMultiThresholdImpression",[d.action],Object.getOwnPropertyDescriptor(h.prototype,"onTrackMultiThresholdImpression"),h.prototype),h);(0,a.setComponentTemplate)(f,b)}))
define("feed-shared/components/update-attachments",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/component","@ember/template-factory","@ember/service","@glimmer/component","feed-tracking/utils/update-tracking-obj","global-utils/utils/api-compat","feed-utils/utils/update-content-union-util"],(function(e,t,n,o,i,a,r,s,l,d,c,u){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var p,m,h,g,f
const b=(0,r.createTemplateFactory)({id:"KYisvXZK",block:'[[[41,[30,0,["showUpdateAttachments"]],[[[1," "],[10,0],[14,0,"feed-shared-update-attachments feed-shared-update-attachments--ani"],[12],[1,"\\n"],[41,[30,0,["relatedContent"]],[[[44,[[50,[28,[37,3],[[28,[37,4],[[30,0,["relatedContent"]]],null]],null],0,null,null]],[[[41,[30,1],[[[1," "],[8,[30,1],null,[["@onHideUpdateAttachment","@model","@updateTrackingObj","@triggerAction","@isDashEnabled","@updateMetadata","@dashEntityUrn"],[[30,2],[30,0,["relatedContent"]],[30,0,["updateTrackingObj"]],[30,3],[30,0,["isAttachmentDash"]],[30,4],[30,5]]],null],[1,"\\n"]],[]],null]],[1]]]],[]],[[[41,[30,0,["relatedUpdate"]],[[[1," "],[8,[39,5],null,[["@onHideUpdateAttachment","@model","@isDashEnabled"],[[30,2],[30,0,["relatedUpdate"]],[30,0,["isAttachmentDash"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["relatedCarouselContent"]],[[[41,[30,0,["relatedCarouselContent","items","length"]],[[[1," "],[8,[39,6],null,null,[["default"],[[[[1,"\\n"],[41,[30,6,["headerText"]],[[[1," "],[10,"header"],[14,0,"pt3 ph3 pb1 bb0"],[12],[1,"\\n "],[10,"h2"],[14,0,"text-body-xsmall"],[12],[1,"\\n"],[41,[30,0,["isAttachmentDash"]],[[[1," "],[8,[39,7],null,[["@tvm"],[[30,6,["headerText"]]]],null],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,8],[[30,6,["headerText"]]],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,9],null,[["@class","@isDashEnabled","@model","@updateTrackingObj","@impressionRowPosition"],["ph2 pb2",[30,0,["isAttachmentDash"]],[30,0,["relatedCarouselContent"]],[30,0,["updateTrackingObj"]],[28,[37,10],[[30,7],1],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],[]],null]],[]]]],[]]],[1," "],[13],[1,"\\n"]],[]],null]],["RelatedContentComponent","@onHideUpdateAttachment","@triggerAction","@updateMetadata","@dashEntityUrn","@attachment","@updatePosition"],false,["if","let","component","ember-holy-futuristic-template-namespacing-batman-translate-dynamic-2","feed-utils@render-model-path","feed-shared@update/generic-update","artdeco-card@artdeco-card","text-view-model@text-view-model-v2","text-view-model@text-view-model","feed-shared@carousel","global-helpers@sum"]]',moduleName:"feed-shared/components/update-attachments.hbs",isStrictMode:!1})
let y=e.default=(p=(0,s.inject)("feed-tracking@feed-action-event"),m=(0,s.inject)("tracking"),h=class extends l.default{constructor(){super(...arguments);(0,t.default)(this,"feedActionEvent",g,this);(0,t.default)(this,"tracking",f,this)}get isAttachmentDash(){var e
return!!this.args.attachment&&(null===(e=(0,c.classNameOf)(this.args.attachment))||void 0===e?void 0:e.includes("dash"))}get relatedUpdate(){var e
return null===(e=this.args.attachment)||void 0===e?void 0:e.update}get relatedCarouselContent(){var e
return null===(e=this.args.attachment)||void 0===e?void 0:e.carouselContent}get relatedContent(){var e
if(this.isAttachmentDash){var t
return(0,u.default)(null===(t=this.args.attachment)||void 0===t?void 0:t.content)}return null===(e=this.args.attachment)||void 0===e?void 0:e.content}get showUpdateAttachments(){return!this.args.isUpdateHiddenByControlMenuAction&&(this.relatedUpdate||this.relatedCarouselContent||this.relatedContent)}get updateTrackingObj(){return this.args.updateMetadata?new d.default(this.args.updateMetadata,this.feedActionEvent,void 0,this.tracking,void 0,void 0,this.args.shouldSuppressTracking):null}},g=(0,o.default)(h.prototype,"feedActionEvent",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,o.default)(h.prototype,"tracking",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h);(0,a.setComponentTemplate)(b,y)}))
define("feed-shared/components/update/generic-update",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/component","@ember/template-factory","@ember/destroyable","@ember/service","@ember/debug","@ember/object","@glimmer/component","global-utils/utils/api-compat","feed-utils/utils/constants","feed-requests/utils/collection-queries","@ember/utils","feed-utils/utils/error-parsing","@glimmer/tracking","tracked-built-ins","tracked-toolbox","feed-utils/utils/update-content-union-util","video-utils/utils/video-constants","video-utils/utils/user-agent","global-utils/utils/is-browser"],(function(e,t,n,o,i,a,r,s,l,d,c,u,p,m,h,g,f,b,y,v,C,T,k,S){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var O,E,_,M,w,D,A,P,I,R,x,U,N,j,L,F,B,z,G,V,H,K
const q=(0,r.createTemplateFactory)({id:"AvQYk4/q",block:'[[[44,[[28,[37,1],[[52,[30,1,["shouldAutofocus"]],"div",""]],null]],[[[1," "],[8,[30,2],[[16,"tabindex",[52,[30,1,["shouldAutofocus"]],"-1",null]],[4,[38,3],null,[["when"],[[30,1,["shouldAutofocus"]]]]]],null,[["default"],[[[[1,"\\n "],[8,[39,4],null,[["@class","@hintClassName","@occlusionEnabled","@rootMarginBottomBuffer"],["occludable-update","occludable-update-hint",[30,3],[30,0,["rootMarginBottomBuffer"]]]],[["default"],[[[[1,"\\n "],[8,[39,5],[[17,4]],[["@authenticatedActor","@caEngineName","@carouselNextAriaLabel","@carouselPreviousAriaLabel","@channelId","@commentSort","@conversationStarters","@customModuleKey","@editModalReturnToFocus","@hasInterstitial","@hideCaEntryPoint","@hideReshare","@hideSendPrivately","@initialTextAndMentions","@isAdminPost","@isAdsTransparency","@isDashEnabled","@isDetailView","@isEditingCaptions","@isEditingShare","@isHighlighted","@showCommentBox","@isUpdateHiddenByControlMenuAction","@isWrapped","@onControlMenuItemSelection","@onDisplayUpdate","@onHideUpdateAttachment","@onRequestReload","@onTriggerUpdateAttachment","@onUpdateInserted","@onUpdateInsertedForViewState","@openRepostListOnPageLoad","@organizationUniversalName","@pageKey","@reloadActionsDisabled","@removeUpdate","@setEditingCaptionsState","@setEditingShareState","@setIsUpdateHiddenByControlMenuAction","@setSurveyDisplayContent","@shouldFocusTexteditor","@shouldHideContentAdminIdentityToggle","@shouldSuppressTracking","@showADCarouselNavigationButtons","@socialEventNotifier","@surveyDisplayContent","@update","@updatePosition","@updateIsAnchored","@updatesPaginationPVETracker","@videoAnalyticsRouteName","@searchId"],[[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,0,["conversationStarters"]],[30,11],[30,12],[30,0,["hasInterstitial"]],[30,13],[30,14],[30,15],[30,16],[30,17],[30,18],[30,19],[30,20],[30,0,["isEditingCaptions"]],[30,0,["isEditingShare"]],[30,21],[30,22],[30,0,["isUpdateHiddenByControlMenuAction"]],[30,23],[30,24],[30,25],[30,26],[30,27],[30,0,["handleUpdateAttachments"]],[30,28],[30,29],[30,30],[30,31],[30,32],[30,33],[30,34],[30,0,["setEditingCaptionsState"]],[30,0,["setEditingShareState"]],[30,0,["setIsUpdateHiddenByControlMenuAction"]],[30,0,["setSurveyDisplayContent"]],[30,35],[30,36],[30,37],[30,38],[30,39],[30,0,["surveyDisplayContent"]],[30,1],[30,0,["updatePosition"]],[30,40],[30,41],[30,42],[30,43]]],[["default"],[[[[1,"\\n"],[44,[[50,"feed-shared@update/update-detail-viewer",0,null,[["activeImageIndex","actorComponent","addCommentUrnToReportedUrns","attachment","commentaryComponent","displayImages","isAdminFeed","isDashEnabled","isReshareButtonShareboxOpen","isUpdateDetailViewerOpen","onCloseModalClick","reportedCommentUrns","shouldShowReshare","socialDetailComponent","toggleReshareButtonSharebox","transitionFromUpdateDetailToMessageDrawer","updateMetadata","updateTrackingObj"],[[30,0,["activeImageIndex"]],[30,44,["actor"]],[30,0,["addCommentUrnToReportedUrns"]],[30,0,["attachment"]],[30,44,["commentaryContainer"]],[30,0,["displayImages"]],[30,47],[30,19],[30,0,["isReshareButtonShareboxOpen"]],[30,0,["isUpdateDetailViewerOpen"]],[30,0,["toggleUpdateDetailViewer"]],[30,0,["reportedCommentUrns"]],[30,48],[52,[30,46,["hasSocialDetail"]],[30,44,["updateV2SocialActivity"]]],[30,0,["toggleReshareButtonSharebox"]],[30,0,["transitionFromUpdateDetailToMessageDrawer"]],[30,0,["updateMetadata"]],[30,46,["updateTrackingObj"]]]]]],[[[1," "],[10,"h2"],[14,0,"visually-hidden"],[12],[1,"\\n"],[41,[30,50],[[[1," "],[1,[28,[35,7],["update_a11y_landmark_with_index","feed-shared/components/update/generic-update"],[["updateIndex"],[[30,50]]]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,7],["update_a11y_landmark","feed-shared/components/update/generic-update"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"],[41,[30,46,["showHeader"]],[[[1," "],[8,[30,44,["header"]],null,[["@headerClasses"],[[30,51]]],null],[1,"\\n "],[8,[30,44,["controlMenu"]],null,[["@controlMenuTooltipText"],[[30,52]]],null],[1,"\\n"],[41,[30,0,["showDetailHeader"]],[[[1," "],[8,[30,44,["detailHeader"]],null,[["@headerClasses"],[[30,53]]],null],[1,"\\n"]],[]],null],[41,[30,44,["contextualHeader"]],[[[1," "],[8,[30,44,["contextualHeader"]],null,null,null],[1,"\\n"]],[]],null],[1," "],[8,[30,44,["actor"]],null,null,null],[1,"\\n"]],[]],[[[41,[30,44,["contextualHeader"]],[[[41,[30,0,["showDetailHeader"]],[[[1," "],[8,[30,44,["detailHeader"]],null,[["@headerClasses"],[[30,53]]],null],[1,"\\n "],[8,[30,44,["controlMenu"]],null,null,null],[1,"\\n"]],[]],null],[1," "],[8,[30,44,["contextualHeader"]],null,null,null],[1,"\\n"],[41,[51,[30,0,["showDetailHeader"]]],[[[1," "],[8,[30,44,["controlMenu"]],null,null,null],[1,"\\n"]],[]],null],[1," "],[8,[30,44,["actor"]],null,null,null],[1,"\\n"]],[]],[[[41,[30,0,["showDetailHeader"]],[[[1," "],[8,[30,44,["detailHeader"]],null,[["@headerClasses"],[[30,53]]],null],[1,"\\n "],[8,[30,44,["controlMenu"]],null,null,null],[1,"\\n "],[8,[30,44,["actor"]],null,null,null],[1,"\\n"]],[]],[[[1," "],[8,[30,44,["actor"]],null,null,null],[1,"\\n"],[41,[51,[30,46,["isActionsPositionInContent"]]],[[[1," "],[8,[30,44,["controlMenu"]],null,[["@controlMenuTooltipText"],[[30,52]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]],[]]]],[]]],[1,"\\n"],[41,[30,44,["contextualDescriptionV2"]],[[[1," "],[8,[30,44,["contextualDescriptionV2"]],null,null,null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[30,44,["leadGenModal"]],null,[["@shouldDisableSubmit","@shouldSuppressTracking"],[[30,18],[30,37]]],null],[1,"\\n\\n"],[41,[28,[37,9],[[30,46,["isLeadGenSubmitted"]],[28,[37,10],[[30,46,["useSubmitAndRender"]]],null]],null],[[[1," "],[1,[30,44,["leadGenThankYou"]]],[1,"\\n"]],[]],[[[41,[30,46,["isEditingShare"]],[[[1," "],[1,[30,44,["shareEdit"]]],[1,"\\n"]],[]],null],[41,[30,46,["isEditingCaptions"]],[[[1," "],[1,[30,44,["captionsEdit"]]],[1,"\\n"]],[]],null],[41,[28,[37,10],[[28,[37,11],[[30,54],[30,55]],null]],null],[[[41,[30,0,["hasInterstitial"]],[[[1," "],[8,[30,44,["interstitial"]],null,null,[["commentary","content","reshare"],[[[[1,"\\n"],[41,[30,44,["commentaryContainer"]],[[[1," "],[8,[30,44,["commentaryContainer"]],null,null,null],[1,"\\n"]],[]],null],[1," "]],[]],[[[1,"\\n"],[41,[30,46,["hasContent"]],[[[1," "],[8,[30,44,["content"]],null,[["@controlMenuComponent","@hasInterstitial","@toggleUpdateDetailViewer","@useUpdateDetailViewer"],[[52,[30,46,["isActionsPositionInContent"]],[30,44,["controlMenu"]]],[30,0,["hasInterstitial"]],[30,0,["toggleUpdateDetailViewer"]],[30,0,["useUpdateDetailViewer"]]]],null],[1,"\\n"]],[]],null],[1," "]],[]],[[[1,"\\n"],[41,[30,46,["hasResharedUpdate"]],[[[1," "],[8,[30,44,["resharedUpdate"]],[[24,0,"feed-shared-update-v2__update-content-wrapper artdeco-card"]],[["@isDetailView"],[[30,20]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,44,["commentaryContainer"]],[[[1," "],[8,[30,44,["commentaryContainer"]],null,null,null],[1,"\\n"]],[]],null],[41,[30,46,["hasContent"]],[[[1," "],[8,[30,44,["content"]],null,[["@controlMenuComponent","@toggleUpdateDetailViewer","@useUpdateDetailViewer","@updateDetailViewer","@isUpdateDetailViewerOpen"],[[52,[30,46,["isActionsPositionInContent"]],[30,44,["controlMenu"]]],[30,0,["toggleUpdateDetailViewer"]],[30,0,["useUpdateDetailViewer"]],[30,49],[30,0,["isUpdateDetailViewerOpen"]]]],null],[1,"\\n"]],[]],null],[41,[30,46,["hasResharedUpdate"]],[[[1," "],[8,[30,44,["resharedUpdate"]],[[24,0,"feed-shared-update-v2__update-content-wrapper artdeco-card"]],[["@isDetailView","@toggleUpdateDetailViewer","@useUpdateDetailViewer","@updateDetailViewer","@isUpdateDetailViewerOpen"],[[30,20],[30,0,["toggleUpdateDetailViewer"]],[30,0,["useUpdateDetailViewer"]],[30,49],[30,0,["isUpdateDetailViewerOpen"]]]],null],[1,"\\n"]],[]],null]],[]]],[1,"\\n"],[41,[30,44,["leadGenCTA"]],[[[1," "],[10,0],[14,0,"feed-shared-update-v2__lead-gen-cta-wrapper"],[12],[1,"\\n "],[8,[30,44,["leadGenCTA"]],[[16,0,[29,[[52,[30,46,["feedSimplificationStatus","isG3Enabled"]],"feed-shared-update-v2__lead-gen-cta-button--simplification artdeco-button--muted"],"\\n feed-shared-update-v2__lead-gen-cta-button artdeco-button artdeco-button--tertiary artdeco-button--fluid"]]]],null,null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[30,44,["aggregatedContent"]],null,null,null],[1,"\\n "],[8,[30,44,["carouselContent"]],null,[["@controlMenuComponent","@headerComponent","@preventStackedSocialIcons"],[[52,[30,38],[30,44,["controlMenu"]]],[52,[30,56],[30,56],[52,[30,38],[50,[28,[37,12],[[30,44,["header"]]],null],0,null,[["headerClasses","isCarouselHeader"],[[30,51],true]]]]],[30,57]]],null],[1,"\\n"]],[]],null]],[]]],[1,"\\n "],[8,[30,44,["inlineFeedback"]],null,null,null],[1,"\\n\\n"],[41,[30,44,["additionalContents"]],[[[1," "],[8,[30,44,["additionalContents"]],null,[["@updateTrackingObj","@isDashEnabled","@isMultiPhotoPost","@isDocumentPost","@updateMetadata"],[[30,46,["updateTrackingObj"]],[30,19],[28,[37,13],[[30,0,["displayImages","length"]],1],null],[30,46,["useSubmitAndRender"]],[30,0,["updateMetadata"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,58],[[[1," "],[8,[39,14],null,[["@socialActionsClassNames"],[[52,[30,46,["isClickToMessageAd"]],"pt6"]]],[["default"],[[[[1,"\\n "],[8,[30,59,["reactButton"]],null,null,null],[1,"\\n "],[8,[30,59,["commentButton"]],null,null,null],[1,"\\n "],[8,[30,59,["reshareButton"]],null,null,null],[1,"\\n "]],[59]]]]],[1,"\\n "],[8,[39,15],null,[["@socialActivityCounts"],[[30,0,["update","socialDetail","totalSocialActivityCounts"]]]],null],[1,"\\n"],[41,[30,44,["footer"]],[[[1," "],[8,[30,44,["footer"]],null,null,null],[1,"\\n"]],[]],null]],[]],[[[41,[30,46,["hasSocialDetail"]],[[[41,[30,46,["showContributionExperience"]],[[[1," "],[8,[30,44,["updateV2SocialActivity"]],null,[["@isReshareButtonShareboxOpen","@reportedCommentUrns","@isRepostsTotalClickable","@shouldShowReshareModal","@toggleReshareButtonSharebox","@updateMetadata","@isXArticleSocialActivity"],[[30,0,["isReshareButtonShareboxOpen"]],[30,0,["reportedCommentUrns"]],[30,60],[30,61],[30,0,["toggleReshareButtonSharebox"]],[30,0,["updateMetadata"]],true]],null],[1,"\\n"],[41,[30,44,["footer"]],[[[1," "],[8,[30,44,["footer"]],null,null,null],[1,"\\n"]],[]],null]],[]],[[[1," "],[8,[30,44,["updateV2SocialActivity"]],null,[["@anchoredComment","@dashAnchoredCommentUrn","@dashAnchoredReplyUrn","@hasNonClickThroughInterstitial","@hideComments","@hideCommentsWithoutInteraction","@hideFirstPrompt","@hideReshare","@hideSocialActions","@highlightedComments","@initialCommentReplies","@initialComments","@isAdminFeed","@isCommentsTotalClickable","@isFromCreatorNudge","@isRepostsTotalClickable","@isReshareButtonShareboxOpen","@isUpdateDetailViewerOpen","@onCommentButtonClick","@onCommentsTotalClick","@onReactionsTotalClick","@openCommentBoxFromExternal","@reportedCommentUrns","@shouldShowReshare","@shouldShowReshareModal","@socialActionsClassNames","@socialCountClassNames","@toggleReshareButtonSharebox","@updateDetailSupplements","@useUpdateDetailViewer"],[[30,62],[30,63],[30,64],[30,0,["hasNonClickThroughInterstitial"]],[30,65],[30,66],[30,0,["hideFirstPrompt"]],[30,14],[30,67],[30,0,["highlightedComments"]],[30,0,["initialCommentReducedReplies"]],[30,0,["initialComments"]],[30,47],[30,68],[30,69],[30,60],[30,0,["isReshareButtonShareboxOpen"]],[30,0,["isUpdateDetailViewerOpen"]],[30,70],[30,71],[30,72],[30,73],[30,0,["reportedCommentUrns"]],[30,48],[30,61],[30,74],[30,75],[30,0,["toggleReshareButtonSharebox"]],[30,76],[30,0,["useUpdateDetailViewer"]]]],[["footer"],[[[[1,"\\n"],[41,[30,44,["footer"]],[[[1," "],[8,[30,44,["footer"]],null,null,null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[]]]],[]],[[[41,[30,44,["footer"]],[[[41,[30,46,["feedSimplificationStatus","isG2Enabled"]],[[[1," "],[8,[30,44,["footer"]],null,[["@class"],["feed-shared-simplified-footer"]],null],[1,"\\n"]],[]],[[[1," "],[8,[30,44,["footer"]],null,null,null],[1,"\\n"]],[]]]],[]],null],[1," "]],[]]]],[]]],[1,"\\n"],[41,[30,44,["followPrompt"]],[[[1," "],[8,[30,44,["followPrompt"]],null,[["@updateMetadata","@updateTrackingObj"],[[30,0,["updateMetadata"]],[30,46,["updateTrackingObj"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["useUpdateDetailViewer"]],[[[1," "],[8,[30,49],null,null,null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,9],[[30,0,["shouldShowUpdateAttachment"]],[30,0,["updateAttachmentIsVisuallyContainedInTriggeringUpdate"]]],null],[[[1," "],[8,[39,16],null,[["@onHideUpdateAttachment","@shouldSuppressTracking","@triggerAction","@updatePosition","@isUpdateHiddenByControlMenuAction","@updateMetadata","@attachment","@dashEntityUrn"],[[30,0,["onHideUpdateAttachment"]],[30,37],[30,0,["triggerAction"]],[30,0,["updatePosition"]],[30,0,["isUpdateHiddenByControlMenuAction"]],[30,0,["updateMetadata"]],[30,0,["attachment"]],[30,0,["dashEntityUrn"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"]],[49]]],[1," "]],[44,45,46]]]]],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[28,[37,9],[[30,0,["shouldShowUpdateAttachment"]],[28,[37,10],[[30,0,["updateAttachmentIsVisuallyContainedInTriggeringUpdate"]]],null]],null],[[[1," "],[8,[39,16],null,[["@onHideUpdateAttachment","@shouldSuppressTracking","@triggerAction","@isUpdateHiddenByControlMenuAction","@updateMetadata","@attachment","@dashEntityUrn"],[[30,0,["onHideUpdateAttachment"]],[30,37],[30,0,["triggerAction"]],[30,0,["isUpdateHiddenByControlMenuAction"]],[30,0,["updateMetadata"]],[30,0,["attachment"]],[30,0,["dashEntityUrn"]]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[2]]]],["@model","Tag","@occlusionEnabled","&attrs","@authenticatedActor","@caEngineName","@carouselNextAriaLabel","@carouselPreviousAriaLabel","@channelId","@commentSort","@customModuleKey","@editModalReturnToFocus","@hideCaEntryPoint","@hideReshare","@hideSendPrivately","@initialTextAndMentions","@isAdminPost","@isAdsTransparency","@isDashEnabled","@isDetailView","@isHighlighted","@showCommentBox","@isWrapped","@onControlMenuItemSelection","@onDisplayUpdate","@onHideUpdateAttachment","@onRequestReload","@onUpdateInserted","@onUpdateInsertedForViewState","@openRepostListOnPageLoad","@organizationUniversalName","@pageKey","@reloadActionsDisabled","@removeUpdate","@shouldFocusTexteditor","@shouldHideContentAdminIdentityToggle","@shouldSuppressTracking","@showADCarouselNavigationButtons","@socialEventNotifier","@updateIsAnchored","@updatesPaginationPVETracker","@videoAnalyticsRouteName","@searchId","components","actions","properties","@isAdminFeed","@shouldShowReshare","UpdateDetailViewer","@updateIndex","@headerClasses","@controlMenuTooltipText","@detailHeaderClasses","@isEditingShare","@isEditingCaptions","@carouselHeaderComponent","@preventCarouselStackedSocialIcons","@isAccuratePreview","saComponents","@isRepostsTotalClickable","@shouldShowReshareModal","@anchoredComment","@dashAnchoredCommentUrn","@dashAnchoredReplyUrn","@hideComments","@hideCommentsWithoutInteraction","@hideSocialActions","@isCommentsTotalClickable","@isFromCreatorNudge","@onCommentButtonClick","@onCommentsTotalClick","@onReactionsTotalClick","@openCommentBoxFromExternal","@socialActionsClassNames","@socialCountClassNames","@updateDetailSupplements"],false,["let","element","if","global-modifiers@focus","occludable-area@occludable-area","feed-shared@render-models/update-v2","component","t","unless","global-helpers@and","global-helpers@not","global-helpers@or","ember-holy-futuristic-template-namespacing-batman-translate-dynamic-2","global-helpers@gte","social-details@social-actions","social-details@social-counts","feed-shared@update-attachments"]]',moduleName:"feed-shared/components/update/generic-update.hbs",isStrictMode:!1}),W={"com.linkedin.voyager.feed.render.ImageComponent":"images","com.linkedin.voyager.feed.render.CelebrationComponent":"image","com.linkedin.voyager.dash.feed.component.image.ImageComponent":"images","com.linkedin.voyager.dash.feed.component.celebration.CelebrationComponent":"image"}
let Q=e.default=(O=(0,l.inject)("lix"),E=(0,l.inject)("global-services@store-shim"),_=(0,l.inject)("social-counts-service@social-counts"),M=(0,l.inject)("@linkedin/ember-restli-graphql@graphql"),w=(0,v.localCopy)("args.conversationStarters"),D=(0,v.localCopy)("args.isEditingShare",!1),A=(0,v.localCopy)("args.isEditingCaptions",!1),P=class extends u.default{constructor(){var e,o
super(...arguments);(0,t.default)(this,"lix",I,this);(0,t.default)(this,"storeShim",R,this);(0,t.default)(this,"socialCountsService",x,this);(0,t.default)(this,"graphql",U,this);(0,n.default)(this,"reportedCommentUrns",new y.TrackedArray);(0,t.default)(this,"conversationStarters",N,this);(0,t.default)(this,"isEditingShare",j,this);(0,t.default)(this,"isEditingCaptions",L,this);(0,t.default)(this,"activeImageIndex",F,this);(0,t.default)(this,"isReshareButtonShareboxOpen",B,this);(0,t.default)(this,"isUpdateDetailViewerOpen",z,this);(0,t.default)(this,"triggerAction",G,this);(0,t.default)(this,"attachment",V,this);(0,t.default)(this,"isUpdateHiddenByControlMenuAction",H,this);(0,t.default)(this,"surveyDisplayContent",K,this)
this.attachment=this.args.isDashEnabled?null===(e=this.update)||void 0===e?void 0:e.attachment:null===(o=this.update)||void 0===o?void 0:o.relatedContent}get videoRootMarginBottomBuffer(){const e=this.lix.getTreatmentValue(T.LIX_KEYS.FEED_ROOT_MARGIN_BOTTOM_BUFFER)
if("number"==typeof e)return e
const t=S.default?window.navigator.userAgent:null
if(!t||!(0,k.isUserAgentSafari)(t))return 900
return this.lix.getTreatmentIsEnabled(T.LIX_KEYS.FEED_OVERRIDE_NATIVE_HLS_PLAYBACK)?900:600}get updateContent(){const{content:e}=this.update
return this.args.isDashEnabled?(0,C.default)(e):e}get hasVideo(){var e
return!(null===(e=this.updateContent)||void 0===e||!e.videoPlayMetadata)}get rootMarginBottomBuffer(){return this.hasVideo?this.videoRootMarginBottomBuffer:600}get initialCommentsExcludingAnchored(){var e,t,n,o,i
const a=[...!this.args.isDetailView&&null!==(e=this.update)&&void 0!==e&&null!==(t=e.highlightedComments)&&void 0!==t&&t.length?this.update.highlightedComments:(null===(n=this.update)||void 0===n||null===(o=n.socialDetail)||void 0===o||null===(i=o.comments)||void 0===i?void 0:i.elements)??[]]
return!this.args.isDetailView&&a.length>1&&(0,c.get)(a,a.length-1+".socialDetail.comments.elements.length")?a.slice(a.length-1):a}get initialComments(){const{initialCommentsExcludingAnchored:e}=this,{anchoredComment:t,dashAnchoredCommentUrn:n,dashAnchoredReplyUrn:o}=this.args
if(!(0,g.isPresent)(t)||e.includes(t))return e
if(n||o){const n=e.find((e=>e.entityUrn===t.predashEntityUrn))
if(n){const o=e.indexOf(n)
return[...e.slice(0,o),t,...e.slice(o+1)]}return[t,...e]}return[t,...e]}get initialCommentReducedReplies(){let e={}
const{initialCommentsExcludingAnchored:t}=this
if(this.args.isDetailView||null==t||!t.length)return e;[...t.length>1?[t.length-1]:[],0].every((n=>{const o=(0,c.get)(t,`${n}.socialDetail.comments.elements.length`)
if(o){e={commentEntityUrn:(0,c.get)(t,`${n}.entityUrn`),replies:(0,c.get)(t,`${n}.socialDetail.comments.elements`).slice(o-1)}
return!1}return!0}))
return e}get displayImages(){if(!this.update||!this.update.actor)return[]
let e
e=this.args.isDashEnabled?(0,C.default)(this.update.content):this.update.content
const t=W[(0,p.classNameOf)(e)]
if(t){const n=e[t]
if(n)return void 0===n.length?[n]:n}return[]}get hasInterstitial(){var e
return(0,g.isPresent)(null===(e=this.update)||void 0===e?void 0:e.interstitial)}get hasNonClickThroughInterstitial(){var e,t,n
return this.hasInterstitial&&!(null!==(e=this.update)&&void 0!==e&&null!==(t=e.interstitial)&&void 0!==t&&null!==(n=t.interstitial)&&void 0!==n&&n.shouldBlurContent)}get highlightedComments(){var e
return[...(null===(e=this.update)||void 0===e?void 0:e.highlightedComments)??[]]}get shouldShowUpdateAttachment(){return!!this.attachment&&"CONVERSATION_STARTERS"!==this.attachment.type}get updateAttachmentIsVisuallyContainedInTriggeringUpdate(){var e,t
return(null===(e=this.attachment)||void 0===e?void 0:e.content)||(null===(t=this.attachment)||void 0===t?void 0:t.carouselContent)}get hideFirstPrompt(){return this.updateAttachmentIsVisuallyContainedInTriggeringUpdate||this.args.hideFirstPrompt}get showDetailHeader(){return this.args.isDetailView&&this.update.detailHeader}get update(){return this.args.model}get updatePosition(){var e,t
return(null===(e=this.update)||void 0===e?void 0:e.updatePosition)||(null===(t=this.args)||void 0===t?void 0:t.updateIndex)}get dashEntityUrn(){var e,t
return this.args.isDashEnabled?null===(e=this.update)||void 0===e?void 0:e.entityUrn:null===(t=this.update)||void 0===t?void 0:t.dashEntityUrn}get updateMetadata(){var e,t
return(null===(e=this.update)||void 0===e?void 0:e.metadata)||(null===(t=this.update)||void 0===t?void 0:t.updateMetadata)}get useUpdateDetailViewer(){return!(0,g.isEmpty)(this.displayImages)}get dashAttachmentsEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.feed-dash-attachments")}handleUpdateAttachments(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:""
this.attachment||this._fetchUpdateAttachments(e,t,n)}toggleUpdateDetailViewer(e){this.isUpdateDetailViewerOpen=!this.isUpdateDetailViewerOpen
this.activeImageIndex=e}toggleReshareButtonSharebox(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null
this.isUpdateDetailViewerOpen&&(this.isUpdateDetailViewerOpen=!1)
this.isReshareButtonShareboxOpen=e||!this.isReshareButtonShareboxOpen}transitionFromUpdateDetailToMessageDrawer(){this.toggleUpdateDetailViewer()
const e=document.querySelector(".msg-connections-typeahead__search-field")
null==e||e.focus()}addCommentUrnToReportedUrns(e){this.reportedCommentUrns.push(e)}onHideUpdateAttachment(){this.attachment=void 0}setEditingShareState(e){this.isEditingShare=e
this.args.toggleParentSharingState&&this.args.toggleParentSharingState(e)}setEditingCaptionsState(e){this.isEditingCaptions=e}setIsUpdateHiddenByControlMenuAction(e){this.isUpdateHiddenByControlMenuAction=e}setSurveyDisplayContent(e){this.surveyDisplayContent=e}_fetchUpdateAttachments(e){var t,n,o,i,a,r,l,d
let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:""
this.triggerAction=e
const p=`urn:li:fs${this.dashAttachmentsEnabled?"d":""}_updateAttachment:${u||(null===(t=this.updateMetadata)||void 0===t?void 0:t.urn)||(null===(n=this.updateMetadata)||void 0===n?void 0:n.backendUrn)}`,g=this.dashAttachmentsEnabled?(null===(o=this.update)||void 0===o?void 0:o.dashEntityUrn)??(null===(i=this.update)||void 0===i?void 0:i.entityUrn):(null===(a=this.update)||void 0===a?void 0:a.preDashEntityUrn)??(null===(r=this.update)||void 0===r?void 0:r.entityUrn),b=null===(l=this.updateMetadata)||void 0===l||null===(d=l.trackingData)||void 0===d?void 0:d.trackingId,y={q:"related",actionType:e,attachmentUrn:p,relatedUrns:c,updateEntityUrn:g,supportedAttachmentTypes:m.SUPPORTED_UPDATE_ATTACHMENT_TYPES,sourceTrackingId:b},{q:v,supportedAttachmentTypes:C,...T}=y;(this.dashAttachmentsEnabled?(0,h.getUpdateAttachmentsDash)(this.graphql,T,!0).then((e=>{var t
if(!(0,s.isDestroying)(this))return null==e||null===(t=e.data)||void 0===t?void 0:t.feedDashAttachmentsByRelated})):(0,h.getUpdateAttachments)(this.storeShim,y,!0)).then((e=>{var t,n
if((0,s.isDestroying)(this))return
const o=null==e||null===(t=e.elements)||void 0===t?void 0:t[0]
if(o){var i,a,r
this.attachment=o
const e=null==o||null===(i=o.update)||void 0===i||null===(a=i.carouselContent)||void 0===a||null===(r=a.items)||void 0===r?void 0:r.map((e=>e.updateV2))
this.socialCountsService.registerElementsList(e)}!this.isDestroying&&o&&"CONVERSATION_STARTERS"===o.type?this.conversationStarters=o.content:!this.isDestroying&&null!=o&&null!==(n=o.content)&&void 0!==n&&n.conversationStartersComponent&&this.dashAttachmentsEnabled&&(this.conversationStarters=o.content.conversationStartersComponent)})).catch((e=>{if((0,s.isDestroying)(this))throw e
if(!(0,f.isHttpErrorStatus)(e))throw e}))}},I=(0,o.default)(P.prototype,"lix",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,o.default)(P.prototype,"storeShim",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,o.default)(P.prototype,"socialCountsService",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,o.default)(P.prototype,"graphql",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,o.default)(P.prototype,"conversationStarters",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,o.default)(P.prototype,"isEditingShare",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,o.default)(P.prototype,"isEditingCaptions",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,o.default)(P.prototype,"activeImageIndex",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),B=(0,o.default)(P.prototype,"isReshareButtonShareboxOpen",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),z=(0,o.default)(P.prototype,"isUpdateDetailViewerOpen",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),G=(0,o.default)(P.prototype,"triggerAction",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=(0,o.default)(P.prototype,"attachment",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=(0,o.default)(P.prototype,"isUpdateHiddenByControlMenuAction",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),K=(0,o.default)(P.prototype,"surveyDisplayContent",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),(0,o.default)(P.prototype,"handleUpdateAttachments",[c.action],Object.getOwnPropertyDescriptor(P.prototype,"handleUpdateAttachments"),P.prototype),(0,o.default)(P.prototype,"toggleUpdateDetailViewer",[c.action],Object.getOwnPropertyDescriptor(P.prototype,"toggleUpdateDetailViewer"),P.prototype),(0,o.default)(P.prototype,"toggleReshareButtonSharebox",[c.action],Object.getOwnPropertyDescriptor(P.prototype,"toggleReshareButtonSharebox"),P.prototype),(0,o.default)(P.prototype,"transitionFromUpdateDetailToMessageDrawer",[c.action],Object.getOwnPropertyDescriptor(P.prototype,"transitionFromUpdateDetailToMessageDrawer"),P.prototype),(0,o.default)(P.prototype,"addCommentUrnToReportedUrns",[c.action],Object.getOwnPropertyDescriptor(P.prototype,"addCommentUrnToReportedUrns"),P.prototype),(0,o.default)(P.prototype,"onHideUpdateAttachment",[c.action],Object.getOwnPropertyDescriptor(P.prototype,"onHideUpdateAttachment"),P.prototype),(0,o.default)(P.prototype,"setEditingShareState",[c.action],Object.getOwnPropertyDescriptor(P.prototype,"setEditingShareState"),P.prototype),(0,o.default)(P.prototype,"setEditingCaptionsState",[c.action],Object.getOwnPropertyDescriptor(P.prototype,"setEditingCaptionsState"),P.prototype),(0,o.default)(P.prototype,"setIsUpdateHiddenByControlMenuAction",[c.action],Object.getOwnPropertyDescriptor(P.prototype,"setIsUpdateHiddenByControlMenuAction"),P.prototype),(0,o.default)(P.prototype,"setSurveyDisplayContent",[c.action],Object.getOwnPropertyDescriptor(P.prototype,"setSurveyDisplayContent"),P.prototype),P);(0,a.setComponentTemplate)(q,Q)}))
define("feed-shared/components/update/update-detail-viewer",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/classPrivateFieldSet","@babel/runtime/helpers/esm/classPrivateFieldGet","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/component","@ember/template-factory","@ember/destroyable","@glimmer/component","@ember/service","feed-requests/update-actions","@ember/object","@glimmer/tracking","@ember/runloop","@ember/object/internals","ember-batcher","global-utils/utils/is-browser"],(function(e,t,n,o,i,a,r,s,l,d,c,u,p,m,h,g,f,b,y){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var v,C,T,k,S,O,E,_,M,w,D,A,P,I,R,x,U,N,j,L,F,B
const z=(0,l.createTemplateFactory)({id:"6eV0NFXP",block:'[[[41,[30,1],[[[1," "],[8,[39,1],null,[["@modalClasses","@size","@isOpen","@dismissModal","@overlayClasses"],[[30,0,["modalClassName"]],[30,0,["modalSize"]],[30,1],[28,[37,2],null,[["controlName","action"],["close",[30,0,["handleCloseModalClick"]]]]],"display-flex flex-column"]],[["default"],[[[[1,"\\n "],[8,[30,2,["artdeco-modal-header"]],[[24,0,"hidden"]],null,[["default"],[[[[1,"\\n "],[10,"h2"],[14,0,"a11y-text"],[14,1,"feed-shared-update-detail-viewer__header"],[12],[1,[28,[35,3],["i18n_caption","feed-shared/components/update/update-detail-viewer"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[30,2,["artdeco-modal-content"]],[[24,"role","group"],[24,"aria-labelledby","feed-shared-update-detail-viewer__header"]],[["@classNames"],["feed-shared-update-detail-viewer__modal-content full-height p0"]],[["default"],[[[[1,"\\n "],[10,0],[15,0,[52,[30,0,["isKindnessRemindersContentOpen"]],"hidden","feed-shared-update-detail-viewer__content"]],[12],[1,"\\n "],[10,0],[14,0,"feed-shared-update-detail-viewer__left-panel"],[12],[1,"\\n"],[41,[48,[30,20]],[[[1," "],[18,20,null],[1,"\\n"]],[]],[[[41,[30,3],[[[1," "],[8,[39,6],[[24,0,"display-flex align-items-center full-height full-width relative"]],[["@startingIndex","@hasTags","@images","@isDashEnabled","@onCloseModalClick","@onUntagClickAction","@showTags","@updateTrackingObj"],[[30,4],true,[30,3],[30,5],[30,6],[30,0,["onUntagClick"]],true,[30,7]]],null],[1,"\\n"]],[]],[[[41,[30,8],[[[1," "],[8,[39,7],[[24,0,"display-flex align-items-center full-height full-width relative"]],[["@model","@updateMetadata","@updateTrackingObj","@shouldPlayPauseSlideshowOnClick","@isInUpdateDetailViewer"],[[30,8],[30,9],[30,7],true,true]],null],[1,"\\n "]],[]],null]],[]]]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"feed-shared-update-detail-viewer__right-panel"],[12],[1,"\\n "],[8,[30,10],null,[["@isInModal"],[true]],null],[1,"\\n "],[10,0],[14,0,"feed-shared-update-detail-viewer__overflow-content"],[15,1,[30,0,["elementId"]]],[12],[1,"\\n"],[41,[30,11],[[[1," "],[8,[30,11],null,[["@isInModal","@isExpanded","@numLinesBeforeTruncation"],[true,false,15]],null],[1,"\\n"]],[]],null],[41,[30,12],[[[1," "],[8,[30,12],null,[["@classNames","@handleReportCommentFlow","@handleBlockCommenterFlow","@handleKindnessRemindersFlow","@hideFirstPrompt","@isAdminFeed","@isReshareButtonShareboxOpen","@isUpdateDetailViewer","@loadCommentsOnRender","@reportedCommentUrns","@shouldShowContentAdminIdentityToggle","@shouldShowReshare","@showCommentBox","@showQuickCommentsOverride","@showReactorsFacepileOverride","@toggleReshareButtonSharebox","@transitionFromUpdateDetailToMessageDrawer","@useUpdateDetailViewer","@onShareDropdownOpenOrWindowResize"],["ph2",[30,0,["handleReportCommentFlow"]],[30,0,["handleBlockCommenterFlow"]],[30,0,["handleKindnessRemindersFlow"]],true,[30,13],[30,14],true,true,[30,15],false,[30,16],true,false,false,[30,17],[30,18],[30,19],[30,0,["onShareDropdownOpenOrWindowResize"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["isKindnessRemindersContentOpen"]],[[[1," "],[10,0],[14,0,"kindness-reminders-modal"],[12],[1,"\\n "],[8,[39,8],null,[["@isCourtesyReminderDetectControl","@modalTitle","@modalDescription"],[[30,0,["isCourtesyReminderDetectControl"]],[30,0,["modalTitle"]],[30,0,["modalDescription"]]]],null],[1,"\\n "],[8,[30,2,["artdeco-modal-footer"]],[[24,0,"kindness-reminders-modal__footer"]],null,[["default"],[[[[1,"\\n "],[8,[39,9],null,[["@onEditModalClick","@onCloseModalClick","@onPostModalClick","@updateTrackingObj"],[[30,0,["onKindnessRemindersEditModalClick"]],[28,[37,10],[[30,0],"isKindnessRemindersContentOpen",false],null],[30,0,["onKindnessRemindersPostModalClick"]],[30,7]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "]],[2]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isReportingComment"]],[[[1," "],[8,[39,11],null,[["@authorProfileId","@authorUrn","@cancel","@contentSource","@entityUrn","@failure","@success","@track"],[[30,0,["reportedComment","commenterProfileId"]],[30,0,["reportedComment","commenter","urn"]],[30,0,["semaphoreClose"]],"USCP_COMMENT",[30,0,["reportedComment","urn"]],[30,0,["semaphoreFailure"]],[30,0,["semaphoreSuccess"]],[30,0,["semaphoreTrack"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isBlockingCommenter"]],[[[1," "],[8,[39,12],null,[["@profileUrn","@cancel","@failure","@success","@track"],[[30,0,["blockedCommenterUrn"]],[30,0,["blockModalClose"]],[30,0,["blockModalFailure"]],[30,0,["blockModalSuccess"]],[30,0,["semaphoreTrack"]]]],null],[1,"\\n"]],[]],null]],["@isUpdateDetailViewerOpen","modal","@displayImages","@activeImageIndex","@isDashEnabled","@onCloseModalClick","@updateTrackingObj","@slides","@updateMetadata","@actorComponent","@commentaryComponent","@socialDetailComponent","@isAdminFeed","@isReshareButtonShareboxOpen","@reportedCommentUrns","@shouldShowReshare","@toggleReshareButtonSharebox","@transitionFromUpdateDetailToMessageDrawer","@useUpdateDetailViewer","&mediaContent"],false,["if","artdeco-modal@artdeco-modal","ember-cli-pemberly-tracking@tracked-action","t","has-block","yield","feed-components-shared@image-viewer","slideshows@viewer","comments@kindness-reminders-content","comments@kindness-reminders-footer","ember-set-helper@set","trust@reporting-flow-modal","ember-semaphore@block-profile"]]',moduleName:"feed-shared/components/update/update-detail-viewer.hbs",isStrictMode:!1})
let G=e.default=(v=(0,u.inject)("i18n"),C=(0,u.inject)("comments@blocked-commenters"),T=(0,u.inject)("feed-tracking@feed-action-event"),k=(0,u.inject)("lix"),S=(0,u.inject)("persistent-toast-manager@persistent-toast-manager"),O=(0,u.inject)("global-services@store-shim"),E=(0,u.inject)("tracking"),_=(B=new WeakMap,class extends c.default{constructor(){super(...arguments);(0,t.default)(this,"i18n",M,this);(0,t.default)(this,"blockedCommenters",w,this);(0,t.default)(this,"feedActionEvent",D,this);(0,t.default)(this,"lix",A,this);(0,t.default)(this,"persistentToastManager",P,this);(0,t.default)(this,"storeShim",I,this);(0,t.default)(this,"tracking",R,this);(0,t.default)(this,"reportedComment",x,this);(0,t.default)(this,"isReportingComment",U,this);(0,t.default)(this,"blockedComment",N,this);(0,t.default)(this,"isBlockingCommenter",j,this);(0,t.default)(this,"isKindnessRemindersContentOpen",L,this);(0,t.default)(this,"onKindnessRemindersSubmitComment",F,this);(0,n.default)(this,"elementId",(0,f.guidFor)(this))
B.set(this,{writable:!0,value:void 0})}get modalClassName(){return this.isKindnessRemindersContentOpen?"kindness-reminders-modal":"feed-shared-update-detail-viewer"}get modalSize(){return this.isKindnessRemindersContentOpen?"medium":"x-large"}get blockedCommenter(){return this.blockedComment.commenter}get blockedCommenterUrn(){var e,t,n
return(null===(e=this.blockedCommenter.actorUnion)||void 0===e?void 0:e.companyUrn)||(null===(t=this.blockedCommenter.actorUnion)||void 0===t?void 0:t.schoolUrn)||(null===(n=this.blockedCommenter.actorUnion)||void 0===n?void 0:n.profileUrn)}get blockedCommenterName(){var e
return null===(e=this.blockedCommenter.title)||void 0===e?void 0:e.text}get updateDetailViewerElement(){y.default&&!(0,i.default)(this,B)&&(0,o.default)(this,B,document.getElementById(this.elementId))
return(0,i.default)(this,B)}get courtesyReminderDetectTreatment(){return this.lix.getTreatment("voyager.web.feed-courtesy-reminder-detect")}get isCourtesyReminderDetectControl(){return"control"===this.courtesyReminderDetectTreatment}closeBlockModal(){this.isBlockingCommenter=!1}closeSemaphore(){this.isReportingComment=!1}handleBlockCommenterFlow(e){this.args.onCloseModalClick();(0,g.next)(this,(()=>{this.blockedComment=e
this.isBlockingCommenter=!0}))}handleKindnessRemindersFlow(e,t,n){this.isKindnessRemindersContentOpen=!0
this.modalTitle=t
this.modalDescription=n
this.onKindnessRemindersSubmitComment=e}onKindnessRemindersPostModalClick(){this.onKindnessRemindersSubmitComment()}setFocusEditorHandler(e){this.focusCommentBoxCallback=e}onKindnessRemindersEditModalClick(){var e
this.isKindnessRemindersContentOpen=!1
null===(e=this.focusCommentBoxCallback)||void 0===e||e.call(this)}handleCloseModalClick(){var e
null===(e=this.args)||void 0===e||e.onCloseModalClick()
this.isKindnessRemindersContentOpen=!1}blockModalClose(){(0,g.once)(this,"closeBlockModal")}blockModalSuccess(){(0,g.once)(this,"closeBlockModal")
this.blockedCommenters.addCommenter(this.blockedCommenterUrn)
this.tracking.fireInteractionEvent("comment_submit_block_commenter_button")
const e={actionCategory:"MUTE",actionType:"blockCommenter",controlName:"comment_submit_block_commenter_button"},{updateMetadata:t}=this.args
t&&this.feedActionEvent.fireCommentAction(t,this.blockedComment,e)
this.feedActionEvent.fireFAE(t,e)
const n=this.i18n.lookupTranslation("components/social-details@comments/dash/comment-item","block_commenter_success")([{commenterName:this.blockedCommenterName}])
this.persistentToastManager.success({message:n})
this.args.onCloseModalClick()}blockModalFailure(){(0,g.once)(this,"closeBlockModal")
const e=this.i18n.lookupTranslation("components/social-details@comments/dash/comment-item","block_commenter_failure")([{commenterName:this.blockedCommenterName}])
this.persistentToastManager.error({message:e})
this.args.onCloseModalClick()}handleReportCommentFlow(e){this.args.onCloseModalClick();(0,g.next)(this,(()=>{this.reportedComment=e
this.isReportingComment=!0}))}semaphoreClose(){(0,g.once)(this,"closeSemaphore")}semaphoreTrack(e){const t=e&&e.moduleKey
t&&this.tracking.fireInteractionEvent(t)}semaphoreSuccess(e){(0,g.once)(this,"closeSemaphore")
e.includes("HIDE_CONTENT")&&this.args.addCommentUrnToReportedUrns(this.reportedComment.urn)
this.args.onCloseModalClick()}semaphoreFailure(){(0,g.once)(this,"closeSemaphore")
const e=this.i18n.lookupTranslation("components/social-details@comments/comment-item","save_like_error")()
this.persistentToastManager.error({message:e})
this.args.onCloseModalClick()}onUntagClick(e,t){const{shareUrn:n}=this.args.updateMetadata,{mediaUrn:o}=e,i=t.urn
e.tapTargets.removeObject(t)
this.storeShim.adapterFor("-ember-m3").ajax(...(0,p.removeTagRequest)(n,o,i)).catch((n=>{if((0,d.isDestroying)(this))throw n
e.tapTargets.pushObject(t)
const o=this.i18n.lookupTranslation("components/feed-shared@update/update-detail-viewer`","remove_tag_failed")()
this.persistentToastManager.error({message:o})
throw n}))}onShareDropdownOpenOrWindowResize(e){let{shareButtonContainer:t,dropdownContainer:n}=e
if(!this.updateDetailViewerElement)return;(0,b.readDOM)((()=>{const e=t.getBoundingClientRect().left-this.updateDetailViewerElement.getBoundingClientRect().left-4,o=this.updateDetailViewerElement.getBoundingClientRect().width-8;(0,b.mutateDOM)((()=>{n.style.left=`-${e}px`
n.style.width=`${o}px`}))}))}}),M=(0,a.default)(_.prototype,"i18n",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,a.default)(_.prototype,"blockedCommenters",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,a.default)(_.prototype,"feedActionEvent",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,a.default)(_.prototype,"lix",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,a.default)(_.prototype,"persistentToastManager",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,a.default)(_.prototype,"storeShim",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,a.default)(_.prototype,"tracking",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,a.default)(_.prototype,"reportedComment",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,a.default)(_.prototype,"isReportingComment",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,a.default)(_.prototype,"blockedComment",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,a.default)(_.prototype,"isBlockingCommenter",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,a.default)(_.prototype,"isKindnessRemindersContentOpen",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),F=(0,a.default)(_.prototype,"onKindnessRemindersSubmitComment",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,a.default)(_.prototype,"handleBlockCommenterFlow",[m.action],Object.getOwnPropertyDescriptor(_.prototype,"handleBlockCommenterFlow"),_.prototype),(0,a.default)(_.prototype,"handleKindnessRemindersFlow",[m.action],Object.getOwnPropertyDescriptor(_.prototype,"handleKindnessRemindersFlow"),_.prototype),(0,a.default)(_.prototype,"onKindnessRemindersPostModalClick",[m.action],Object.getOwnPropertyDescriptor(_.prototype,"onKindnessRemindersPostModalClick"),_.prototype),(0,a.default)(_.prototype,"setFocusEditorHandler",[m.action],Object.getOwnPropertyDescriptor(_.prototype,"setFocusEditorHandler"),_.prototype),(0,a.default)(_.prototype,"onKindnessRemindersEditModalClick",[m.action],Object.getOwnPropertyDescriptor(_.prototype,"onKindnessRemindersEditModalClick"),_.prototype),(0,a.default)(_.prototype,"handleCloseModalClick",[m.action],Object.getOwnPropertyDescriptor(_.prototype,"handleCloseModalClick"),_.prototype),(0,a.default)(_.prototype,"blockModalClose",[m.action],Object.getOwnPropertyDescriptor(_.prototype,"blockModalClose"),_.prototype),(0,a.default)(_.prototype,"blockModalSuccess",[m.action],Object.getOwnPropertyDescriptor(_.prototype,"blockModalSuccess"),_.prototype),(0,a.default)(_.prototype,"blockModalFailure",[m.action],Object.getOwnPropertyDescriptor(_.prototype,"blockModalFailure"),_.prototype),(0,a.default)(_.prototype,"handleReportCommentFlow",[m.action],Object.getOwnPropertyDescriptor(_.prototype,"handleReportCommentFlow"),_.prototype),(0,a.default)(_.prototype,"semaphoreClose",[m.action],Object.getOwnPropertyDescriptor(_.prototype,"semaphoreClose"),_.prototype),(0,a.default)(_.prototype,"semaphoreTrack",[m.action],Object.getOwnPropertyDescriptor(_.prototype,"semaphoreTrack"),_.prototype),(0,a.default)(_.prototype,"semaphoreSuccess",[m.action],Object.getOwnPropertyDescriptor(_.prototype,"semaphoreSuccess"),_.prototype),(0,a.default)(_.prototype,"semaphoreFailure",[m.action],Object.getOwnPropertyDescriptor(_.prototype,"semaphoreFailure"),_.prototype),(0,a.default)(_.prototype,"onUntagClick",[m.action],Object.getOwnPropertyDescriptor(_.prototype,"onUntagClick"),_.prototype),(0,a.default)(_.prototype,"onShareDropdownOpenOrWindowResize",[m.action],Object.getOwnPropertyDescriptor(_.prototype,"onShareDropdownOpenOrWindowResize"),_.prototype),_);(0,s.setComponentTemplate)(z,G)}))
define("feed-shared/config/environment",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
let t
try{const e="feed-shared/config/environment",n=document.querySelector('meta[name="'+e+'"]').getAttribute("content")
t=JSON.parse(unescape(n))}catch(e){t={}}e.default=t}))
define.alias("ember-truth-helpers/helpers/and","feed-shared/helpers/and")
define.alias("artdeco-datepicker/helpers/artdeco-adjust-date-for-timezone","feed-shared/helpers/artdeco-adjust-date-for-timezone")
define.alias("artdeco-datepicker/helpers/artdeco-is-between-dates","feed-shared/helpers/artdeco-is-between-dates")
define.alias("ember-media-player/helpers/autoplay-media","feed-shared/helpers/autoplay-media")
define.alias("artdeco-datepicker/helpers/cal-dates-equal","feed-shared/helpers/cal-dates-equal")
define.alias("ember-element-helper/helpers/element","feed-shared/helpers/element")
define.alias("ember-holy-futuristic-template-namespacing-batman/helpers/-translate-dynamic-2","feed-shared/helpers/ember-holy-futuristic-template-namespacing-batman-translate-dynamic-2")
define("feed-shared/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-shared/helpers/eq")
define.alias("ember-media-player/helpers/format-autoplay","feed-shared/helpers/format-autoplay")
define.alias("ember-cli-pemberly-i18n/helpers/format-number","feed-shared/helpers/format-number")
define.alias("ember-semaphore/helpers/format-title","feed-shared/helpers/format-title")
define.alias("ember-truth-helpers/helpers/gt","feed-shared/helpers/gt")
define.alias("ember-truth-helpers/helpers/gte","feed-shared/helpers/gte")
define.alias("@linkedin/hue-web-artdeco-migration-runtime/helpers/convert-to-icon-name","feed-shared/helpers/hue-web-artdeco-icon-migration-runtime")
define.alias("@linkedin/hue-web-artdeco-migration-runtime/helpers/convert-to-icon-v2","feed-shared/helpers/hue-web-artdeco-li-icon-migration-runtime-v2")
define.alias("@linkedin/hue-web-artdeco-migration-runtime/helpers/convert-to-icon-path","feed-shared/helpers/hue-web-artdeco-li-icon-migration-runtime")
define.alias("@linkedin/hue-web-artdeco-migration-runtime/helpers/convert-argument","feed-shared/helpers/hue-web-artdeco-migration-runtime")
define.alias("ember-truth-helpers/helpers/is-array","feed-shared/helpers/is-array")
define.alias("ember-truth-helpers/helpers/is-empty","feed-shared/helpers/is-empty")
define.alias("ember-truth-helpers/helpers/is-equal","feed-shared/helpers/is-equal")
define.alias("artdeco-icons-web/helpers/li-icon","feed-shared/helpers/li-icon")
define.alias("ember-async-data/helpers/load","feed-shared/helpers/load")
define.alias("ember-truth-helpers/helpers/lt","feed-shared/helpers/lt")
define.alias("ember-truth-helpers/helpers/lte","feed-shared/helpers/lte")
define.alias("ember-truth-helpers/helpers/not-eq","feed-shared/helpers/not-eq")
define.alias("ember-truth-helpers/helpers/not","feed-shared/helpers/not")
define.alias("ember-truth-helpers/helpers/or","feed-shared/helpers/or")
define("feed-shared/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-app-scheduler/helpers/route-idle","feed-shared/helpers/route-idle")
define.alias("ember-media-player/helpers/seek-media","feed-shared/helpers/seek-media")
define.alias("ember-set-helper/helpers/set","feed-shared/helpers/set")
define.alias("ember-cli-pemberly-i18n/helpers/t","feed-shared/helpers/t")
define.alias("ember-truth-helpers/helpers/xor","feed-shared/helpers/xor")
define.alias("ember-uuid","feed-shared/index")
define("feed-shared/initializers/coordinator-setup",["exports","feed-shared/models/coordinator"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default={name:"setup coordinator",initialize:function(){let e=arguments[1]||arguments[0]
e.register("drag:coordinator",t.default)}}}))
define("feed-shared/initializers/icons",["exports","artdeco-icons-web/src/icons","feed-shared/config/environment"],(function(e,t,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
function o(e){throw e}e.default={name:"icons",initialize:function(){const{environment:e,APP:i}=n.default
let a,r
i&&({artdecoCustomSpriteUrl:a,artdecoCustomSpriteName:r}=i)
const s="test"!==e
t.default.load(s,a,r).catch(o)}}}))
define.alias("ember-cli-pemberly-lix/initializers/lix","feed-shared/initializers/lix")
define.alias("ember-m3/initializers/m3-store","feed-shared/initializers/m3-store")
define.alias("ember-ref-bucket/instance-initializers/global-ref-cleanup","feed-shared/instance-initializers/global-ref-cleanup")
define.alias("video/instance-initializers/media-plugins","feed-shared/instance-initializers/media-plugins")
define("feed-shared/models/coordinator",["exports","@ember/object","@ember/object/evented","feed-shared/models/obj-hash","ember-drag-drop/utils/proxy-unproxy-objects"],(function(e,t,n,o,i){"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 o.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,i.unwrapper)(n.obj),source:n.ops.source,target:t.target})
return(0,i.unwrapper)(n.obj)},setObject:function(e,t){t=t||{}
return this.get("objectMap").add({obj:e,ops:t})}})}))
define("feed-shared/models/obj-hash",["exports","@ember/object","@ember/object/computed","@ember/array"],(function(e,t,n,o){"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,o.A)(e)}})}))
define.alias("artdeco-datepicker/modifiers/artdeco-calendar-click-watcher","feed-shared/modifiers/artdeco-calendar-click-watcher")
define.alias("ember-ref-bucket/modifiers/create-ref","feed-shared/modifiers/create-ref")
define.alias("ember-css-transitions/modifiers/css-transition","feed-shared/modifiers/css-transition")
define.alias("@ember/render-modifiers/modifiers/did-insert","feed-shared/modifiers/did-insert")
define.alias("ember-scroll-modifiers/modifiers/did-intersect","feed-shared/modifiers/did-intersect")
define.alias("ember-resize-modifier/modifiers/did-resize","feed-shared/modifiers/did-resize")
define.alias("@ember/render-modifiers/modifiers/did-update","feed-shared/modifiers/did-update")
define.alias("ember-finite-scroll/modifiers/ember-finite-scroll/focus","feed-shared/modifiers/ember-finite-scroll/focus")
define.alias("image-editor/modifiers/fabric","feed-shared/modifiers/fabric")
define.alias("ember-prop-modifier","feed-shared/modifiers/prop")
define.alias("ember-scroll-modifiers/modifiers/scroll-into-view","feed-shared/modifiers/scroll-into-view")
define.alias("ember-sortable/modifiers/sortable-group","feed-shared/modifiers/sortable-group")
define.alias("ember-sortable/modifiers/sortable-handle","feed-shared/modifiers/sortable-handle")
define.alias("ember-sortable/modifiers/sortable-item","feed-shared/modifiers/sortable-item")
define.alias("@ember/render-modifiers/modifiers/will-destroy","feed-shared/modifiers/will-destroy")
define.alias("ember-cloud-filepicker/providers/base-provider","feed-shared/providers/base-provider")
define.alias("ember-cloud-filepicker/providers/dropbox-provider","feed-shared/providers/dropbox-provider")
define.alias("ember-cloud-filepicker/providers/onedrive-provider","feed-shared/providers/onedrive-provider")
define("feed-shared/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(o){"default"!==o&&"__esModule"!==o&&(Object.prototype.hasOwnProperty.call(n,o)||o in e&&e[o]===t[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[o]}}))}))}))
define.alias("@embroider/util/services/ensure-registered","feed-shared/services/-ensure-registered")
define.alias("artdeco-hoverables/services/artdeco-hoverable","feed-shared/services/artdeco-hoverable")
define.alias("artdeco-modal/services/artdeco-modal","feed-shared/services/artdeco-modal")
define.alias("artdeco-toast/services/artdeco-toast","feed-shared/services/artdeco-toast")
define.alias("client-sensor-web/services/client-sensor","feed-shared/services/client-sensor")
define.alias("ember-date-service/services/date","feed-shared/services/date")
define("feed-shared/services/drag-coordinator",["exports","ember-drag-drop/services/drag-coordinator"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=t.default}))
define.alias("@linkedin/ember-restli-graphql/services/graphql","feed-shared/services/graphql")
define.alias("image-editor/services/image-editor-loader","feed-shared/services/image-editor-loader")
define.alias("@linkedin/ember-pem/services/internal-event-utils","feed-shared/services/internal-event-utils")
define.alias("@linkedin/ember-pem/services/internal-pem-tracking","feed-shared/services/internal-pem-tracking")
define.alias("ember-cli-pemberly-lix/services/lix","feed-shared/services/lix")
define.alias("ember-m3/services/m3-schema-manager","feed-shared/services/m3-schema-manager")
define.alias("ember-media-player/services/media-player","feed-shared/services/media-player")
define.alias("@linkedin/ember-pem/services/pem-response-metadata","feed-shared/services/pem-response-metadata")
define.alias("@linkedin/ember-pem/services/pem-tracking","feed-shared/services/pem-tracking")
define.alias("persistent-toast-manager/services/persistent-toast-manager","feed-shared/services/persistent-toast-manager")
define.alias("@linkedin/ember-qualtrics/services/qualtrics-surveys","feed-shared/services/qualtrics-surveys")
define.alias("ember-media-player/services/static-asset-loader","feed-shared/services/static-asset-loader")
define.alias("ember-cli-pemberly-m3/services/store","feed-shared/services/store")
define.alias("ember-cli-pemberly-litms/services/tag-manager","feed-shared/services/tag-manager")
define.alias("@linkedin/ember-pem/services/tracer","feed-shared/services/tracer")
define.alias("ember-cli-pemberly-litms/services/tracking-adapter-for-tag-manager","feed-shared/services/tracking-adapter-for-tag-manager")
define("feed-shared/template-registry",[],(function(){}))
define("feed-shared/templates/components/draggable-object-target",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"aJs0KquW",block:'[[[41,[30,1],[[[1," "],[11,3],[24,6,"#"],[4,[38,1],[[30,0,["acceptForDrop"]]],null],[12],[1,"\\n "],[18,2,null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[18,2,null],[1,"\\n"]],[]]]],["@enableClicking","&default"],false,["if","fn","yield"]]',moduleName:"feed-shared/templates/components/draggable-object-target.hbs",isStrictMode:!1})}))
define("feed-shared/templates/components/draggable-object",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"QvO/Z9as",block:'[[[41,[30,1],[[[1," "],[11,3],[24,6,"#"],[4,[38,1],[[30,0,["selectForDrag"]]],null],[12],[1,"\\n "],[18,2,null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[18,2,null],[1,"\\n"]],[]]]],["@enableClicking","&default"],false,["if","fn","yield"]]',moduleName:"feed-shared/templates/components/draggable-object.hbs",isStrictMode:!1})}))
define("feed-shared/templates/components/sortable-objects",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"3AAjcUDW",block:'[[[18,1,null]],["&default"],false,["yield"]]',moduleName:"feed-shared/templates/components/sortable-objects.hbs",isStrictMode:!1})}))
define.alias("ember-async-data/tracked-async-data","feed-shared/tracked-async-data")
define("feed-shared/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(o){"default"!==o&&"__esModule"!==o&&(Object.prototype.hasOwnProperty.call(n,o)||o in e&&e[o]===t[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[o]}}))}))}))
define.alias("ember-highcharts/utils/build-options","feed-shared/utils/build-options")
define("feed-shared/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(o){"default"!==o&&"__esModule"!==o&&(Object.prototype.hasOwnProperty.call(n,o)||o in e&&e[o]===t[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[o]}}))}))}))
define("feed-shared/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(o){"default"!==o&&"__esModule"!==o&&(Object.prototype.hasOwnProperty.call(n,o)||o in e&&e[o]===t[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[o]}}))}))}))
define("feed-shared/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(o){"default"!==o&&"__esModule"!==o&&(Object.prototype.hasOwnProperty.call(n,o)||o in e&&e[o]===t[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[o]}}))}))}))
define.alias("ember-cli-artdeco-tabs/utils/get-box-model-width","feed-shared/utils/get-box-model-width")
define.alias("client-sensor-web/utils/helpers","feed-shared/utils/helpers")
define.alias("@linkedin/hue-web-artdeco-migration-runtime/utils/mapping-data","feed-shared/utils/mapping-data")
define("feed-shared/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(o){"default"!==o&&"__esModule"!==o&&(Object.prototype.hasOwnProperty.call(n,o)||o in e&&e[o]===t[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[o]}}))}))}))
define("feed-shared/utils/promo",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.FEED_PROMO_STYLES=void 0
e.FEED_PROMO_STYLES=Object.freeze({PromoComponent:"com.linkedin.voyager.feed.render.PromoComponent"})}))
define("feed-shared/utils/promos/abi",["exports","ember-cli-pemberly-tracking/utils/tracking"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.ROUTE_MAP=e.IMPRESSION_TRACKING_HOOKS=void 0
const n=(0,t.generateTrackingId)()
function o(e,t,o){const i={CONNECTION_COUNT_ABI:"HOMEPAGE_FEED_RAIL",ABI:"HOMEPAGE_FEED_ABI_PROMO",ABI_NUX:"HOMEPAGE_FEED_NUX_PROMO",ABI_WYLO:"HOMEPAGE_FEED_ABI_PROMO"}
t.organicAbiShouldSkipImport().then((t=>{o.fireTrackingPayload("AbookImportEntryImpressionEvent",{abookImportTransactionId:n,entryPoint:i[e],suggestedRoute:t?"RESULT_LANDING":"INTRO"})
o.fireTrackingPayload("AbookImportImpressionEvent",{source:o.getCurrentPageKey(),abookImportTransactionId:n,autoFilledEmail:this.prefillEmail&&"true",autoSelectedEmailProvider:"OTHERS",orderOfEmailProviderss:[],socialProofCount:this.socialProofCount??0})}))}e.ROUTE_MAP={CONNECTION_COUNT_ABI:{route:"mynetwork.abi",queryParams:{afterRoute:"feed.index",transactionId:n}},ABI:{route:"mynetwork.abi",queryParams:{afterRoute:"feed.index",transactionId:n}},ABI_NUX:{route:"mynetwork.abi",queryParams:{afterRoute:"feed.index",transactionId:n}},ABI_WYLO:{route:"abi.results",queryParams:{afterRoute:"abi.intro",transactionId:n}}},e.IMPRESSION_TRACKING_HOOKS={CONNECTION_COUNT_ABI:o,ABI:o,ABI_NUX:o,ABI_WYLO:o}}))
define("feed-shared/utils/promos/index",["exports","feed-shared/utils/promos/abi"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.PROMOS_ROUTE_MAP=e.PROMOS_IMPRESSION_TRACKING_HOOKS=void 0
e.PROMOS_ROUTE_MAP={...t.ROUTE_MAP},e.PROMOS_IMPRESSION_TRACKING_HOOKS={...t.IMPRESSION_TRACKING_HOOKS}}))
define("feed-shared/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("feed-shared/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(o){"default"!==o&&"__esModule"!==o&&(Object.prototype.hasOwnProperty.call(n,o)||o in e&&e[o]===t[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[o]}}))}))}))
define.alias("ember-vector-images/utils/vector-url","feed-shared/utils/vector-url")
define("feed-shared/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(o){"default"!==o&&"__esModule"!==o&&(Object.prototype.hasOwnProperty.call(n,o)||o in e&&e[o]===t[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[o]}}))}))}))
//# sourceMappingURL=engine.map