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

1467 строки
404 KiB
Plaintext

define.alias("@glimmer/component/-private/ember-component-manager","sharing-v2/component-managers/glimmer")
define("sharing-v2/components/-dynamic-element-alt",["exports","@glimmer/component"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
class i extends t.default{}e.default=i}))
define("sharing-v2/components/-dynamic-element",["exports","@glimmer/component"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
class i extends t.default{}e.default=i}))
define("sharing-v2/components/actor-lockup",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const r=(0,i.createTemplateFactory)({id:"RQJ9kULF",block:'[[[8,[39,0],null,[["@class","@size"],["share-creation-state__member-info",3]],[["default"],[[[[1,"\\n "],[8,[30,1,["image"]],null,[["@type"],[[30,2,["lockupImageShape"]]]],[["default"],[[[[1,"\\n"],[41,[28,[37,2],[[30,2,["image"]]],null],[[[1," "],[8,[39,3],null,[["@a11yText","@entitySize","@images","@imgHeight","@imgWidth"],[[30,2,["name"]],3,[30,2,["image"]],50,50]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,4],null,[["@alt","@class","@desiredWidth","@ghostType","@image"],[[30,2,["name"]],[30,2,["imageEntityClass"]],50,[30,2,["vectorImageGhostType"]],[30,2,["image"]]]],null],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[8,[30,1,["content"]],null,[["@class"],[[29,["share-creation-state__actor-content ",[52,[51,[30,3]],"flex-column"]]]]],[["default"],[[[[1,"\\n "],[8,[30,1,["title"]],null,[["@altLink"],[false]],[["default"],[[[[1,"\\n"],[41,[30,3],[[[1," "],[11,0],[4,[38,6],null,[["when","onSelector"],[[28,[37,7],[[30,4],"ACTOR_TOGGLE"],null],"button"]]],[12],[1,"\\n "],[8,[39,8],null,[["@goToVisibilityScreen","@stateChangeButton"],[[30,5],[30,2]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[1,[30,2,["name"]]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[11,0],[4,[38,6],null,[["when","onSelector"],[[28,[37,7],[[30,4],"VISIBILITY_OPTIONS"],null],"button"]]],[12],[1,"\\n "],[8,[39,8],null,[["@goToVisibilityScreen","@stateChangeButton"],[[30,5],[30,6]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[1]]]]]],["elements","@currentActor","@showActorToggle","@focusOnActive","@goToVisibilityScreen","@currentVisibility"],false,["artdeco-entity-lockup@artdeco-entity-lockup","if","global-helpers@is-ivm-image","image-view-model@image-view-model","ember-vector-images@lazy-image","unless","global-modifiers@focus","eq","sharing-v2@state-change-button"]]',moduleName:"sharing-v2/components/actor-lockup.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(r,(0,n.default)())}))
define.alias("artdeco-button/components/artdeco-button","sharing-v2/components/artdeco-button")
define.alias("artdeco-datepicker/components/artdeco-calendar","sharing-v2/components/artdeco-calendar")
define.alias("artdeco-card/components/artdeco-card-image","sharing-v2/components/artdeco-card-image")
define.alias("artdeco-card/components/artdeco-card","sharing-v2/components/artdeco-card")
define.alias("artdeco-carousel/components/artdeco-carousel-item","sharing-v2/components/artdeco-carousel-item")
define.alias("artdeco-carousel/components/artdeco-carousel-slider","sharing-v2/components/artdeco-carousel-slider")
define.alias("artdeco-carousel/components/artdeco-carousel-title","sharing-v2/components/artdeco-carousel-title")
define.alias("artdeco-carousel/components/artdeco-carousel","sharing-v2/components/artdeco-carousel")
define.alias("artdeco-completeness-meter-linear/components/artdeco-completeness-meter-linear","sharing-v2/components/artdeco-completeness-meter-linear")
define.alias("artdeco-modal/components/artdeco-confirmation-dialog","sharing-v2/components/artdeco-confirmation-dialog")
define.alias("artdeco-datepicker/components/artdeco-datepicker-embedded-cal","sharing-v2/components/artdeco-datepicker-embedded-cal")
define.alias("artdeco-datepicker/components/artdeco-datepicker","sharing-v2/components/artdeco-datepicker")
define.alias("artdeco-datepicker/components/artdeco-daterange-embedded-cal","sharing-v2/components/artdeco-daterange-embedded-cal")
define.alias("artdeco-datepicker/components/artdeco-daterange","sharing-v2/components/artdeco-daterange")
define.alias("artdeco-dropdown/components/artdeco-dropdown-content","sharing-v2/components/artdeco-dropdown-content")
define.alias("artdeco-dropdown/components/artdeco-dropdown-header","sharing-v2/components/artdeco-dropdown-header")
define.alias("artdeco-dropdown/components/artdeco-dropdown-item","sharing-v2/components/artdeco-dropdown-item")
define.alias("artdeco-dropdown/components/artdeco-dropdown-trigger","sharing-v2/components/artdeco-dropdown-trigger")
define.alias("artdeco-dropdown/components/artdeco-dropdown","sharing-v2/components/artdeco-dropdown")
define.alias("artdeco-empty-state/components/artdeco-empty-state","sharing-v2/components/artdeco-empty-state")
define.alias("artdeco-entity-lockup/components/artdeco-entity-lockup-badge","sharing-v2/components/artdeco-entity-lockup-badge")
define.alias("artdeco-entity-lockup/components/artdeco-entity-lockup-caption","sharing-v2/components/artdeco-entity-lockup-caption")
define.alias("artdeco-entity-lockup/components/artdeco-entity-lockup-content","sharing-v2/components/artdeco-entity-lockup-content")
define.alias("artdeco-entity-lockup/components/artdeco-entity-lockup-image","sharing-v2/components/artdeco-entity-lockup-image")
define.alias("artdeco-entity-lockup/components/artdeco-entity-lockup-metadata","sharing-v2/components/artdeco-entity-lockup-metadata")
define.alias("artdeco-entity-lockup/components/artdeco-entity-lockup-subtitle","sharing-v2/components/artdeco-entity-lockup-subtitle")
define.alias("artdeco-entity-lockup/components/artdeco-entity-lockup-title","sharing-v2/components/artdeco-entity-lockup-title")
define.alias("artdeco-entity-lockup/components/artdeco-entity-lockup","sharing-v2/components/artdeco-entity-lockup")
define.alias("artdeco-entity-pile/components/artdeco-entity-pile","sharing-v2/components/artdeco-entity-pile")
define.alias("artdeco-hoverables/components/artdeco-hoverable-content","sharing-v2/components/artdeco-hoverable-content")
define.alias("artdeco-hoverables/components/artdeco-hoverable-trigger","sharing-v2/components/artdeco-hoverable-trigger")
define.alias("artdeco-inline-feedback/components/artdeco-inline-feedback","sharing-v2/components/artdeco-inline-feedback")
define.alias("artdeco-loader/components/artdeco-loader","sharing-v2/components/artdeco-loader")
define.alias("artdeco-modal/components/container","sharing-v2/components/artdeco-modal-container")
define.alias("artdeco-modal/components/artdeco-modal-content","sharing-v2/components/artdeco-modal-content")
define.alias("artdeco-modal/components/artdeco-modal-footer","sharing-v2/components/artdeco-modal-footer")
define.alias("artdeco-modal/components/artdeco-modal-header","sharing-v2/components/artdeco-modal-header")
define.alias("artdeco-modal/components/artdeco-modal","sharing-v2/components/artdeco-modal")
define.alias("artdeco-notification-badge/components/artdeco-notification-badge","sharing-v2/components/artdeco-notification-badge")
define.alias("artdeco-pagination/components/artdeco-pagination-ellipsis","sharing-v2/components/artdeco-pagination-ellipsis")
define.alias("artdeco-pagination/components/artdeco-pagination-indicator","sharing-v2/components/artdeco-pagination-indicator")
define.alias("artdeco-pagination/components/artdeco-pagination","sharing-v2/components/artdeco-pagination")
define.alias("artdeco-pill/components/artdeco-pill-choice-group","sharing-v2/components/artdeco-pill-choice-group")
define.alias("artdeco-pill/components/artdeco-pill-choice","sharing-v2/components/artdeco-pill-choice")
define.alias("artdeco-pill/components/artdeco-pill-dismiss","sharing-v2/components/artdeco-pill-dismiss")
define.alias("artdeco-pill/components/artdeco-pill-input","sharing-v2/components/artdeco-pill-input")
define.alias("artdeco-pill/components/artdeco-pill-link","sharing-v2/components/artdeco-pill-link")
define.alias("artdeco-pill/components/artdeco-pill-toggle","sharing-v2/components/artdeco-pill-toggle")
define.alias("artdeco-slider/components/artdeco-slider","sharing-v2/components/artdeco-slider")
define.alias("ember-cli-artdeco-tabs/components/artdeco-spotlight-tab","sharing-v2/components/artdeco-spotlight-tab")
define.alias("ember-cli-artdeco-tabs/components/artdeco-spotlight-tablist","sharing-v2/components/artdeco-spotlight-tablist")
define.alias("ember-cli-artdeco-tabs/components/artdeco-tab","sharing-v2/components/artdeco-tab")
define.alias("ember-cli-artdeco-tabs/components/artdeco-tablist","sharing-v2/components/artdeco-tablist")
define.alias("ember-cli-artdeco-tabs/components/artdeco-tabpanel","sharing-v2/components/artdeco-tabpanel")
define.alias("ember-cli-artdeco-tabs/components/artdeco-tabs","sharing-v2/components/artdeco-tabs")
define.alias("artdeco-text-input/components/artdeco-text-input-multi","sharing-v2/components/artdeco-text-input-multi")
define.alias("artdeco-text-input/components/artdeco-text-input-single","sharing-v2/components/artdeco-text-input-single")
define.alias("artdeco-text-input/components/artdeco-text-input","sharing-v2/components/artdeco-text-input")
define.alias("artdeco-toast/components/artdeco-toast-item","sharing-v2/components/artdeco-toast-item")
define.alias("artdeco-toast/components/artdeco-toasts","sharing-v2/components/artdeco-toasts")
define.alias("artdeco-toggle/components/artdeco-toggle","sharing-v2/components/artdeco-toggle")
define.alias("ember-cli-artdeco-typeahead/components/artdeco-typeahead-input","sharing-v2/components/artdeco-typeahead-input")
define.alias("ember-cli-artdeco-typeahead/components/artdeco-typeahead-result","sharing-v2/components/artdeco-typeahead-result")
define.alias("ember-cli-artdeco-typeahead/components/artdeco-typeahead-results-list","sharing-v2/components/artdeco-typeahead-results-list")
define.alias("ember-cli-artdeco-typeahead/components/artdeco-typeahead","sharing-v2/components/artdeco-typeahead")
define.alias("ember-semaphore/components/block-profile","sharing-v2/components/block-profile")
define.alias("ember-semaphore/components/cleared-content-modal-v2","sharing-v2/components/cleared-content-modal-v2")
define.alias("ember-semaphore/components/cleared-content-modal","sharing-v2/components/cleared-content-modal")
define("sharing-v2/components/creation-state-footer",["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","sharing-v2/utils/sharing-constants","global-nav-shared/utils/reflow-breakpoints","detour-framework/utils/detour-buttons","detour-framework/utils/partner-detour-buttons","global-utils/utils/keyboard-utils","@glimmer/tracking"],(function(e,t,i,n,r,a,o,s,l,d,c,u,h,p,g,m){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var b,f,y,_,T,v,E
const S=(0,o.createTemplateFactory)({id:"B6ROxpnf",block:'[[[10,0],[15,0,[29,["share-creation-state__footer\\n ",[52,[30,1],"justify-flex-end"]]]],[12],[1,"\\n"],[41,[51,[30,1]],[[[41,[28,[37,2],[[30,2]],null],[[[1," "],[10,0],[14,0,"share-creation-state__detour-btn-container"],[12],[1,"\\n"],[41,[30,0,["showDetourToolbar"]],[[[42,[28,[37,4],[[28,[37,4],[[30,0,["toolbarDetours"]]],null]],null],null,[[[1," "],[8,[39,5],[[4,[38,6],["keyup",[30,5]],null]],[["@disableHoverable"],[[30,0,["disableFooterDetourButtonTooltips"]]]],[["default"],[[[[1,"\\n "],[11,0],[4,[38,7],null,[["when","onSelector"],[[28,[37,8],[[30,7],[30,3,["dataTestName"]]],null],"button"]]],[12],[1,"\\n "],[8,[39,9],[[16,"aria-describedby",[29,[[30,6,["ariaId"]]]]],[4,[38,6],["click",[28,[37,11],[[30,8],[30,3]],null]],null],[4,[38,12],[[30,3,["toolbarControlName"]]],null]],[["@circle","@color","@disabled","@icon","@text","@type"],[true,"muted",[30,2],[30,3,["iconName"]],[28,[37,10],[[30,3,["i18nLabelKey"]],"sharing-v2/components/creation-state-footer"],null],"tertiary"]],null],[1,"\\n "],[13],[1,"\\n "],[8,[30,6,["artdeco-hoverable-content"]],null,[["@theme","@contentClass"],["inverse","share-creation-state__hoverable-content"]],[["default"],[[[[1,"\\n"],[1," "],[10,0],[12],[1,"\\n "],[1,[28,[35,10],[[30,3,["i18nLabelKey"]],"sharing-v2/components/creation-state-footer"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[6]]]]],[1,"\\n"]],[3,4]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]],null],[41,[28,[37,13],[[28,[37,2],[[30,1]],null],[30,9]],null],[[[1," "],[11,0],[16,0,[29,["share-creation-state__comment-controls-container\\n ",[52,[28,[37,2],[[28,[37,14],[[30,1],[30,2]],null]],null],"share-creation-state__comment-controls-container--divider","share-creation-state__comment-controls-container--no-divider"]]]],[4,[38,7],null,[["when","onSelector"],[[28,[37,8],[[30,7],"COMMENT_CONTROLS"],null],"button"]]],[12],[1,"\\n "],[8,[39,15],null,[["@goToVisibilityScreen","@stateChangeButton"],[[30,0,["goToCommentControlVisibilityScreen"]],[30,10]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"share-creation-state__schedule-and-post-container"],[12],[1,"\\n"],[41,[30,11],[[[1," "],[10,0],[14,0,"display-flex align-items-center"],[12],[1,"\\n\\n "],[8,[39,5],[[4,[38,6],["keyup",[30,5]],null]],[["@disableHoverable"],[[30,12]]],[["default"],[[[[1,"\\n "],[11,0],[4,[38,7],null,[["when","onSelector"],[[28,[37,8],[[30,7],"MANAGEMENT"],null],"button"]]],[12],[1,"\\n "],[8,[39,9],[[16,"aria-label",[28,[37,10],["i18n_scheduled_post_btn_a11y_text","sharing-v2/components/creation-state-footer"],null]],[16,"aria-describedby",[29,[[30,13,["ariaId"]]]]],[4,[38,6],["click",[30,15]],null],[4,[38,12],[[30,0,["schedulePickerControlName"]]],null]],[["@class","@circle","@color","@disabled","@icon","@type"],["share-actions__scheduled-post-btn",true,"muted",[30,14],"clock","tertiary"]],null],[1,"\\n "],[13],[1,"\\n "],[8,[30,13,["artdeco-hoverable-content"]],null,[["@theme","@contentClass"],["inverse","share-creation-state__hoverable-content"]],[["default"],[[[[1,"\\n "],[1,[28,[35,10],["i18n_a11y_scheduled_post_later_cta","sharing-v2/components/creation-state-footer"],null]],[1,"\\n "]],[]]]]],[1,"\\n "]],[13]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"share-box_actions"],[12],[1,"\\n "],[8,[39,9],[[4,[38,6],["click",[30,0,["onPrimaryButtonClick"]]],null],[4,[38,12],[[30,0,["primaryButtonControlName"]]],null]],[["@size","@type","@class","@disabled","@aria-label"],[2,"primary","share-actions__primary-action",[30,16],[52,[30,17],[28,[37,10],["i18n_save","sharing-v2/components/creation-state-footer"],null]]]],[["default"],[[[[1,"\\n"],[41,[30,18],[[[1," "],[8,[39,16],null,[["@size"],["xsmall"]],null],[1,"\\n"]],[]],[[[1," "],[1,[30,0,["primaryButtonText"]]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n"],[8,[39,17],null,[["@isOpen","@title","@content","@primaryActionText","@secondaryActionText","@onPrimary","@onSecondary","@onEscape","@testId"],[[30,0,["showUnsupportedScheduleConfirmationModal"]],[28,[37,10],["i18n_schedule_unsupported_title","sharing-v2/components/creation-state-footer"],null],[28,[37,10],["i18n_schedule_unsupported_content","sharing-v2/components/creation-state-footer"],[["linkInfo"],[[28,[37,18],null,[["target","href","rel"],["_blank","/help/linkedin/answer/a1347212","noopener noreferrer"]]]]]],[28,[37,10],["i18n_schedule_unsupported_clearn_time","sharing-v2/components/creation-state-footer"],null],[28,[37,10],["i18n_schedule_unsupported_cancel","sharing-v2/components/creation-state-footer"],null],[30,0,["clearSchedule"]],[30,0,["hideUnsupportedScheduleConfirmationModal"]],[30,0,["hideUnsupportedScheduleConfirmationModal"]],"unsupported-schedule-dialog"]],null]],["@isPhoenixUIEnabled","@disableDetourButtons","detourToolbarButton","index","@removeFocus","trigger","@focusOnActive","@openDetour","@shouldShowCommentControls","@currentCommentRestriction","@isScheduledPostsEnabled","@writingAssistantIsOpen","trigger","@isWritingAssistantRequestInProgress","@goToPostManager","@primaryButtonDisabled","@isInEditMode","@isPostRequestPending"],false,["if","unless","global-helpers@not","each","-track-array","artdeco-hoverables@artdeco-hoverable-trigger","on","global-modifiers@focus","eq","artdeco-button@artdeco-button","t","fn","ember-cli-pemberly-tracking@track-interaction","global-helpers@and","global-helpers@or","sharing-v2@state-change-button","artdeco-loader@artdeco-loader","artdeco-modal@artdeco-confirmation-dialog","hash"]]',moduleName:"sharing-v2/components/creation-state-footer.hbs",isStrictMode:!1}),I="i18n_save",C="i18n_post",A="i18n_schedule"
let O=e.default=(b=(0,l.inject)("scaffold-layout@reflow"),f=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"i18n",y,this);(0,t.default)(this,"lix",_,this);(0,t.default)(this,"locale",T,this);(0,t.default)(this,"reflow",v,this);(0,i.default)(this,"controlInteractionEvents",c.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS);(0,t.default)(this,"showUnsupportedScheduleConfirmationModal",E,this)}get disableFooterDetourButtonTooltips(){return!this.args.showChooserMenuTrigger||this.args.disableDetourButtons}get isScheduling(){return!!this.args.scheduledDate&&!!this.args.canBeScheduled}get primaryButtonControlName(){const{SAVE_BTN:e,POST_BTN:t,SCHEDULE_BTN:i,SCHEDULE_BTN_V2:n}=c.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS
return this.args.isInEditMode?e:this.isScheduling?this.args.isPhoenixUIEnabled?n:i:t}get primaryButtonText(){return this.args.isInEditMode?this.i18n.lookupTranslation("components/sharing-v2@creation-state-footer",I)():this.isScheduling?this.i18n.lookupTranslation("components/sharing-v2@open-share-box",A)():this.args.customPrimaryButtonText?this.args.customPrimaryButtonText:this.i18n.lookupTranslation("components/sharing-v2@creation-state-footer",C)()}get schedulePickerControlName(){return this.args.isPhoenixUIEnabled?this.controlInteractionEvents.SCHEDULE_PICKER_OPEN_V2:this.controlInteractionEvents.SCHEDULE_PICKER_OPEN}get showDetourToolbar(){const e=this.reflow.clientWidth
return 0===e||e>=u.REFLOW_BREAKPOINTS.XS}get isPageContentGraphQLEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.hiring-lego-page-content-graphql-migration")}get toolbarDetours(){var e,t
let i=p.REGISTERED_EXTENDED_TOOLBAR_DETOUR_BUTTONS
this.args.isScheduledPostsEnabled&&(i=p.REGISTERED_EXTENDED_TOOLBAR_DETOUR_BUTTONS.slice(0,4))
return(0,h.getDetourButtons)(i,this.lix,this.locale,null===(e=this.args.currentActor)||void 0===e?void 0:e.actorType,null===(t=this.args.currentVisibility)||void 0===t?void 0:t.type)}clearSchedule(){this.args.onScheduleSelected(null)
this.hideUnsupportedScheduleConfirmationModal()}goToCommentControlVisibilityScreen(){this.args.goToVisibilityScreen(c.VISIBILITY_SCREEN.COMMENT_CONTROLS)}hideUnsupportedScheduleConfirmationModal(){this.showUnsupportedScheduleConfirmationModal=!1}onPrimaryButtonClick(){if(!this.args.primaryButtonDisabled){var e,t
if(this.args.scheduledDate&&!this.args.canBeScheduled){this.showUnsupportedScheduleConfirmationModal=!0
return}null===(e=(t=this.args).publishPost)||void 0===e||e.call(t)}}removeFocus(e){(0,g.isEscapeKey)(e)&&e.stopPropagation()}},y=(0,n.default)(f.prototype,"i18n",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,n.default)(f.prototype,"lix",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,n.default)(f.prototype,"locale",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,n.default)(f.prototype,"reflow",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,n.default)(f.prototype,"showUnsupportedScheduleConfirmationModal",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(f.prototype,"clearSchedule",[d.action],Object.getOwnPropertyDescriptor(f.prototype,"clearSchedule"),f.prototype),(0,n.default)(f.prototype,"goToCommentControlVisibilityScreen",[d.action],Object.getOwnPropertyDescriptor(f.prototype,"goToCommentControlVisibilityScreen"),f.prototype),(0,n.default)(f.prototype,"hideUnsupportedScheduleConfirmationModal",[d.action],Object.getOwnPropertyDescriptor(f.prototype,"hideUnsupportedScheduleConfirmationModal"),f.prototype),(0,n.default)(f.prototype,"onPrimaryButtonClick",[d.action],Object.getOwnPropertyDescriptor(f.prototype,"onPrimaryButtonClick"),f.prototype),(0,n.default)(f.prototype,"removeFocus",[d.action],Object.getOwnPropertyDescriptor(f.prototype,"removeFocus"),f.prototype),f);(0,a.setComponentTemplate)(S,O)}))
define("sharing-v2/components/creation-state",["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","@glimmer/tracking","@ember/service","@ember/object","@ember/utils","global-utils/utils/api-compat","global-utils/utils/urn-converter","global-utils/utils/url","sharing-v2/utils/sharing-constants","sharing-shared/utils/sharing-shared-constants","sharing-v2/utils/sharing-utils","global-utils/utils/a11y-focus-element","detour-framework/utils/partner-detour-buttons","detour-framework/utils/detour-buttons","scaffold-layout/services/reflow","ember-lifeline","writing-assistant/utils/writing-assistant-constants"],(function(e,t,i,n,r,a,o,s,l,d,c,u,h,p,g,m,b,f,y,_,T,v,E,S,I){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var C,A,O,D,N,w,P,R,k,M,x,V,L,U,B,H,F,W,z,G,j,Y,K,q,X,Q,$,Z,J,ee,te,ie,ne,re,ae,oe,se
const le=(0,s.createTemplateFactory)({id:"SXNGX66b",block:'[[[11,0],[24,0,"relative"],[4,[38,0],null,[["onDropCallback"],[[30,1]]]],[4,[38,1],["paste",[30,2]],null],[12],[1,"\\n"],[41,[28,[37,3],[[28,[37,4],[[30,3],[30,4]],null]],null],[[[1," "],[8,[39,5],null,null,null],[1,"\\n"]],[]],null],[1," "],[11,0],[16,0,[29,["share-creation-state\\n ",[52,[30,5],"share-creation-state__share-box-v2"],"\\n ",[52,[30,6],"share-creation-state__share-box-v2--redesigned-detours"]]]],[17,7],[4,[38,6],null,[["pageKey","routeName","currentRoute"],[[30,0,["pageKey"]],[28,[37,7],[[53,"outletState"],"render.name"],null],[28,[37,7],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n"],[41,[30,8],[[[1," "],[8,[39,9],null,[["@disableFocusOnHeader","@headerType","@titleText"],[true,[30,9],[28,[37,10],["i18n_create_a_post","sharing-v2/components/creation-state"],null]]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[15,0,[29,["share-creation-state__content-scrollable\\n ",[52,[30,0,["showWAFeedbackCard"]],"share-creation-state__content-scrollable--flex-grow-zero"]]]],[12],[1,"\\n"],[41,[51,[30,6]],[[[1," "],[8,[39,12],null,[["@focusOnActive","@currentActor","@showActorToggle","@goToVisibilityScreen","@currentVisibility"],[[30,10],[30,11],[30,12],[30,13],[30,14]]],null],[1,"\\n"]],[]],null],[41,[30,0,["showStickyVisibilityInlineCallout"]],[[[1," "],[8,[39,13],null,[["@visibilityType"],[[30,14,["type"]]]],null],[1,"\\n"]],[]],null],[41,[30,15],[[[1," "],[10,0],[14,0,"share-creation-state__schedule-info-container t-14"],[12],[1,"\\n "],[8,[39,14],[[24,0,"share-creation-state__schedule-info-icon"]],[["@name","@size","@type"],[[30,14,["iconName"]],"small","system"]],null],[1,"\\n "],[1,[28,[35,10],["i18n_schedule_info_text","sharing-v2/components/creation-state"],[["scheduledWeekDay","scheduledDate","scheduledTime"],[[28,[37,15],[[30,15]],[["format","useTimeZone"],["fmt_d_medium",true]]],[28,[37,15],[[30,15]],[["format","useTimeZone"],["fmt_md_medium",true]]],[28,[37,16],[[30,15]],[["format","useTimeZone"],["fmt_hm",true]]]]]]],[1,"\\n "],[8,[39,17],[[4,[38,1],["click",[30,17]],null],[4,[38,18],[[30,0,["controlInteractionEvents","SCHEDULE_EDIT_OPEN"]]],null]],[["@disabled","@size","@text","@type"],[[30,16],1,[28,[37,10],["i18n_edit_schedule","sharing-v2/components/creation-state"],null],"tertiary"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[11,0],[16,0,[52,[30,0,["isWritingAssistantInExpandedMode"]],"hidden",""]],[4,[38,19],null,[["onSelector","when"],[[30,0,["quillEditorSelector"]],[30,0,["focusOnTexteditor"]]]]],[12],[1,"\\n "],[8,[39,20],[[16,0,[29,["share-creation-state__text-editor\\n ",[52,[30,6],"share-creation-state__text-editor-redesigned"],"\\n ",[52,[28,[37,4],[[30,4],[30,0,["showWritingAssistantOnboardingCallout"]]],null],"share-creation-state__text-editor--with-attachment"],"\\n ",[52,[30,0,["showWAFeedbackCard"]],"share-creation-state__text-editor--no-bottom-spacing"],"\\n "]]]],[["@controlName","@cursorRange","@disabled","@firstTextChangeHandler","@ghostCtaText","@ghostCtaAction","@groupIdForMentionsTypeahead","@initialContent","@onFoundUrl","@placeholder","@placeholderA11ySpecialized","@scrollableContainerSelector","@setFocusEditorHandler","@setInsertContentHandler","@setResetEditorHandler","@shouldFocusOnRender","@textChangeHandler","@trackableRootObject"],[[30,0,["controlInteractionEvents","ADD_COMMENTARY"]],[30,18],[30,0,["isWritingAssisantInInlineMode"]],[30,19],[28,[37,10],["i18n_draft_ai","sharing-v2/components/creation-state"],null],[30,20],[30,0,["groupIdForMentionsTypeahead"]],[30,21],[30,22],[52,[28,[37,21],[[30,23],[28,[37,3],[[30,24]],null]],null],[30,0,["ghostTextCtaPlaceholder"]],[30,25]],[52,[28,[37,21],[[30,23],[28,[37,3],[[30,24]],null]],null],[28,[37,10],["i18n_alt_a11y_placeholder","sharing-v2/components/creation-state"],null]],".share-creation-state__content-scrollable",[30,0,["setFocusEditorHandler"]],[30,0,["setInsertContentHandler"]],[30,0,["setResetEditorHandler"]],[30,26],[30,0,["textChangeHandler"]],[30,0,["trackableRootObject"]]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showWritingAssistantOnboardingCallout"]],[[[1," "],[8,[39,13],null,[["@heading","@content","@controlName","@closeActionHandler"],[[28,[37,10],["i18n_writing_assistant_promotion_heading","sharing-v2/components/creation-state"],null],[28,[37,10],["i18n_writing_assistant_promotion_content","sharing-v2/components/creation-state"],null],[30,0,["controlInteractionEvents","AI_ONBOARDING_DISMISS"]],[30,27]]],null],[1,"\\n"]],[]],null],[41,[28,[37,21],[[30,23],[30,28]],null],[[[1," "],[11,0],[24,0,"share-creation-state__writing-assistant"],[4,[38,22],null,null],[12],[1,"\\n "],[8,[39,23],null,[["@apiRequestCancelHandler","@cacheAiInputQuery","@cancelHandler","@dashNonMemberActorUrn","@errorHandler","@improveWithAiQuery","@initQuery","@initInvalidAiInputErrorMessage","@initInvalidQuery","@inProgressHandler","@isWritingAssistantInExpandedMode","@isPremiumEnabled","@successHandler","@trackingUrn"],[[30,0,["writingAssistantCancelCallback"]],[30,29],[30,0,["closeWritingAssistant"]],[52,[30,11,["isNonMemberActor"]],[30,11,["dashUrn"]]],[30,30],[30,0,["improveWithAiQueryText"]],[30,31],[30,32],[30,33],[30,34],[30,0,["isWritingAssistantInExpandedMode"]],[30,0,["isWritingAssistantPremiumEnabled"]],[30,0,["writingAssistantSuccessCallback"]],[30,35]]],null],[1,"\\n "],[13],[1,"\\n\\n"]],[]],null],[41,[30,36],[[[1," "],[10,0],[15,0,[29,["share-creation-state__preview-container\\n ",[52,[30,0,["isRedesignedExperienceDisabled"]],"share-creation-state__preview-container--narrow"]]]],[12],[1,"\\n "],[10,0],[14,0,"share-creation-state__preview-container-controls"],[12],[1,"\\n"],[41,[30,37],[[[1," "],[8,[39,17],[[16,"aria-label",[28,[37,10],["i18n_edit_media_preview","sharing-v2/components/creation-state"],null]],[4,[38,1],["click",[30,38]],null],[4,[38,18],[[30,39]],null]],[["@circle","@class","@color","@icon","@size","@type"],[true,"share-creation-state__preview-container-btn","muted","edit","1","primary"]],null],[1,"\\n"]],[]],null],[41,[30,40],[[[1," "],[8,[39,17],[[4,[38,1],["click",[30,0,["onDetourPreviewRemoval"]]],null],[4,[38,18],[[30,41]],null]],[["@type","@circle","@class","@color","@icon","@size"],["primary",true,"share-creation-state__preview-container-btn","muted","close","1"]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"visually-hidden"],[12],[1,[28,[35,10],["i18n_remove_media_a11y","sharing-v2/components/creation-state"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,36],[[[1," "],[8,[39,24],[[16,0,[28,[37,25],["share-creaton-state__preview-container--as-box",[52,[30,36]," feed-shared-update-v2--minimal-padding"],[52,[30,42]," share-creation-state__preview-container--has-error"]],null]]],[["@disableContentDisplayed","@isDashEnabled","@isEditingShare","@isPreviewMode","@onEditShareMedia","@showContentOnly","@shouldHideRepost","@update"],[false,[28,[37,26],[[30,43,["metadata"]]],null],[30,0,["isInEditMode"]],true,[30,44],[30,0,["showContentOnlyInPreviewedUpdate"]],[30,0,["shouldHideRepost"]],[30,43]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["showWAFeedbackCard"]],[[[41,[30,24],[[[1," "],[8,[39,27],null,[["@improveWithAiQuery","@isWritingAssistantPremiumEnabled","@onFeedbackCardClose","@feedbackCardView","@onFeedbackCardUndo","@onFeedbackCardAction","@gaiContentUrn","@customClass"],[[30,45],[30,0,["isWritingAssistantPremiumEnabled"]],[30,46],[30,47],[30,0,["undoAiDraftHandler"]],[30,48],[30,49],"share-creation-state__feedback-card"]],null],[1,"\\n\\n"]],[]],[[[1," "],[8,[39,28],null,[["@onFeedbackCardClose","@feedbackCardView","@onFeedbackCardAction","@gaiContentUrn","@class"],[[30,46],[30,47],[30,48],[30,49],"share-creation-state__feedback-card"]],null],[1,"\\n"]],[]]]],[]],null],[1," "],[10,0],[15,0,[29,["share-creation-state__bottom\\n ",[52,[51,[30,0,["showWAFeedbackCard"]]],"share-creation-state__bottom--margin"]]]],[12],[1,"\\n"],[41,[30,0,["shouldShowAdditionalToolbarInEditorContainer"]],[[[41,[28,[37,3],[[30,28]],null],[[[1," "],[10,0],[14,0,"share-creation-state__additional-toolbar"],[12],[1,"\\n"],[41,[30,50],[[[1," "],[8,[39,29],null,[["@inputQueryWordCount","@minInputWordsRequired"],[[30,51],[30,52]]],null],[1,"\\n"]],[]],[[[41,[30,53],[[[1," "],[8,[39,30],null,[["@message","@type","@isIconHidden"],[[30,32],"note",false]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,31],null,[["@bundle"],["emoji-picker"]],[["default"],[[[[1,"\\n"],[41,[30,54,["state","fulfilled"]],[[[1," "],[8,[39,32],null,[["@disabled","@doNotFocusTrigger","@size","@handleEmojiSelect","@hoverableIdPrefix","@trackingClosePickerString","@trackingOpenPickerString","@trackingSelectEmojiString","@trackingSelectSearchedEmojiString","@triggerClasses","@triggerData"],[[30,28],true,2,[30,0,["onEmojiSelected"]],"share_creation_state_emoji","share_creation_state.close_emoji_picker","share_creation_state.open_emoji_picker","share_creation_state.select_emoji","share_creation_state.select_searched_emoji","share_creation_state__emoji-picker-trigger",[30,0,["triggerData"]]]],null],[1,"\\n\\n"]],[]],[[[1," "],[8,[39,17],null,[["@type","@circle","@color","@icon","@disabled"],["tertiary",true,"muted","emoji",true]],null],[1,"\\n"]],[]]],[1," "]],[54]]]]],[1,"\\n "],[10,0],[14,0,"share-creation-state__msg-wrapper"],[12],[1,"\\n"],[41,[30,0,["isShowingFeedbackMsg"]],[[[1," "],[8,[39,33],null,[["@charCountOverLimit","@feedbackMsgType","@onFeedbackMessageClick","@feedbackMsgToken","@feedbackMsgLinkText","@feedbackMsgText"],[[30,21,["charCountOverLimit"]],[30,0,["feedbackMsgType"]],[30,0,["feedbackMsgAction"]],[30,0,["feedbackMsgToken"]],[30,0,["feedbackMsgLinkText"]],[30,0,["feedbackMsgText"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["showGuider"]],[[[1," "],[8,[39,34],null,[["@guiderManager","@onInsertText","@openDetour"],[[30,55],[30,0,["onInsertText"]],[30,56]]],null],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n "]],[]]]],[]]],[1," "],[13],[1,"\\n"],[41,[28,[37,4],[[30,24],[30,0,["isPremiumUpsellExperienceEnabled"]]],null],[[[41,[30,0,["showWritingAssistantOnboardingTooltip"]],[[[1," "],[8,[39,35],null,[["@customClasses","@horizontalPosition","@close","@verticalPosition"],[[29,["share-creation-state__wa-ai-tooltip-with-attachment ",[52,[30,0,["isWritingAssistantPremiumEnabled"]],"share-creation-state__wa-ai-premium-tooltip","share-creation-state__wa-ai-tooltip"]]],"left",[52,[30,0,["isWritingAssistantPremiumEnabled"]],[30,0,["premiumTooltipDismissButtonHandler"]],[30,27]],"bottom"]],[["default"],[[[[1,"\\n"],[41,[30,0,["isWritingAssistantPremiumEnabled"]],[[[1," "],[10,0],[14,0,"share-creation-state__wa-ai-tooltip-content text-body-small"],[12],[1,"\\n "],[10,1],[15,0,[29,["hue-web-color-scheme--",[30,0,["theme"]]]]],[12],[1,"\\n "],[8,[39,14],null,[["@a11yText","@type","@size","@name"],[[28,[37,10],["i18n_premium_feature","sharing-v2/components/creation-state"],null],"logo","xxxsmall","premium-badge"]],null],[1,"\\n "],[13],[1,"\\n "],[10,2],[14,0,"share-creation-state__wa-ai-premium-tooltip-text"],[12],[1,[28,[35,10],["i18n_ai_premium_tooltip","sharing-v2/components/creation-state"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"share-creation-state__wa-ai-tooltip-content text-body-small"],[12],[1,"\\n "],[1,[28,[35,10],["i18n_improve_ai_description","sharing-v2/components/creation-state"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n"]],[]],null],[41,[30,0,["showPremiumUpsellTooltip"]],[[[1," "],[8,[39,36],[[4,[38,19],null,[["when","onSelector"],[[30,0,["focusOnPremiumUpsellTooltip"]],"a"]]],[4,[38,6],null,[["pageKey","routeName","currentRoute"],["flagship3_feed_share_premium_upsell",[28,[37,7],[[53,"outletState"],"render.name"],null],[28,[37,7],[[53,"outletState"],"render"],null]]]],[4,[38,1],["click",[30,58]],[["capture"],[true]]]],[["@defaultConfig","@onDismissClick","@redirectQueryParams","@upsellCard","@upsellStyles"],[[28,[37,37],null,[["dismissButtonSize"],[1]]],[30,0,["onUpsellTooltipDismissClick"]],"shareActive=true",[30,57],[28,[37,37],null,[["upsellWrapperClass"],["share-creation-state__wa-ai-premium-upsell share-creation-state__wa-ai-tooltip-with-attachment"]]]]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"share-creation-state__wa-toolbar"],[12],[1,"\\n"],[41,[30,0,["isWritingAssistantPremiumEnabled"]],[[[1," "],[10,0],[14,0,"display-flex align-items-center"],[12],[1,"\\n "],[8,[39,17],[[4,[38,1],["click",[30,0,["improveWithAiPremiumHandler"]]],null],[4,[38,18],[[30,0,["controlInteractionEvents","AI_TOOLBAR_BTN"]]],null]],[["@type","@color","@class","@disabled","@size"],["secondary","muted","share-creation-state__writing-assistant-premium-button",[30,59],1]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"display-flex align-items-center text-body-medium-bold"],[12],[1,"\\n "],[8,[39,14],[[24,0,"share-creation-state__writing-assistant-premium-button-icon"]],[["@type","@size","@name"],["system","small","signal-ai"]],null],[1,"\\n "],[1,[28,[35,10],["i18n_write_with_ai","sharing-v2/components/creation-state"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"],[41,[30,59],[[[1," "],[8,[39,29],null,[["@inputQueryWordCount","@minInputWordsRequired","@shouldOnlyShowCount","@class"],[[30,51],[30,52],true,"share-creation-state__writing-assistant-premium-min-word-count"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],[[[41,[30,0,["isPremiumUpsellExperienceEnabled"]],[[[1," "],[8,[39,17],[[4,[38,1],["click",[30,0,["onUpsellTriggerClick"]]],null],[4,[38,18],[[30,0,["controlInteractionEvents","AI_TOOLBAR_BTN"]]],null],[4,[38,19],null,[["when"],[[30,0,["focusOnAiUpsellButton"]]]]]],[["@type","@color","@class","@size"],["secondary","muted","share-creation-state__writing-assistant-premium-button",1]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"display-flex align-items-center text-body-medium-bold"],[12],[1,"\\n "],[8,[39,14],[[24,0,"share-creation-state__writing-assistant-premium-button-icon"]],[["@type","@size","@name"],["system","small","signal-ai"]],null],[1,"\\n "],[1,[28,[35,10],["i18n_write_with_ai","sharing-v2/components/creation-state"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[11,"button"],[24,0,"share-creation-state__writing-assistant-trigger"],[16,"aria-label",[28,[37,10],["i18n_improve_ai","sharing-v2/components/creation-state"],null]],[24,4,"button"],[4,[38,1],["click",[30,60]],null],[4,[38,18],[[30,0,["controlInteractionEvents","AI_TOOLBAR_BTN"]]],null],[12],[1,"\\n "],[8,[39,14],null,[["@type","@size","@name"],["system","medium",[52,[30,0,["isWritingAssistantPremiumEnabled"]],"signal-ai","magic-wand"]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]],[]]],[1," "],[13],[1,"\\n"]],[]],null]],[]],null]],[]],null],[41,[28,[37,21],[[30,6],[28,[37,3],[[30,0,["isInEditMode"]]],null]],null],[[[1," "],[10,0],[15,0,[52,[30,28],"hidden",""]],[12],[1,"\\n"],[41,[28,[37,3],[[30,0,["disableDetourButtons"]]],null],[[[1," "],[10,0],[14,0,"share-creation-state__promoted-detour-btn-container"],[12],[1,"\\n "],[8,[39,38],[[4,[38,39],[[28,[37,40],["clientWidth",[30,0,["handleReflow"]]],null]],null]],[["@carouselItems","@currentSlideIndex","@hidePagination","@hidePrevNextBtns","@loop","@pageSize","@prevDataControlName","@nextDataControlName","@cardWidth","@hidePrevNextBtnText"],[[30,0,["carouselItemSize"]],[30,0,["currentDetourSlideIndex"]],true,[30,0,["hideCarouselNavButtons"]],[30,0,["loopSlides"]],[52,[30,0,["isScreenWidthSmall"]],[27],[30,0,["pageSizeWithIcons"]]],[30,0,["controlInteractionEvents","DETOUR_OPTIONS_SCROLL_LEFT"]],[30,0,["controlInteractionEvents","DETOUR_OPTIONS_SCROLL_RIGHT"]],[30,0,["cardWidth"]],true]],[["default"],[[[[1,"\\n "],[8,[30,61,["title"]],null,[["@class"],["flex-grow-1"]],[["default"],[[[[1,"\\n"],[1," "],[10,0],[14,0,"share-creation-state__additional-toolbar share-creation-state__additional-toolbar--no-padding"],[12],[1,"\\n"],[41,[30,50],[[[1," "],[8,[39,29],null,[["@inputQueryWordCount","@minInputWordsRequired"],[[30,51],[30,52]]],null],[1,"\\n"]],[]],[[[41,[30,53],[[[1," "],[8,[39,14],[[24,0,"share-creation-state__writing-assistant-error-msg--icon"]],[["@name","@size","@type"],["signal-caution","small","system"]],null],[1,"\\n "],[10,1],[14,0,"share-creation-state__writing-assistant-error-msg--text"],[12],[1,[30,32]],[13],[1,"\\n"]],[]],[[[1," "],[8,[39,31],null,[["@bundle"],["emoji-picker"]],[["default"],[[[[1,"\\n"],[41,[30,62,["state","fulfilled"]],[[[1," "],[8,[39,32],null,[["@disabled","@doNotFocusTrigger","@size","@handleEmojiSelect","@hoverableIdPrefix","@trackingClosePickerString","@trackingOpenPickerString","@trackingSelectEmojiString","@trackingSelectSearchedEmojiString","@triggerClasses","@triggerData"],[[30,28],true,2,[30,0,["onEmojiSelected"]],"share_creation_state_emoji","share_creation_state.close_emoji_picker","share_creation_state.open_emoji_picker","share_creation_state.select_emoji","share_creation_state.select_searched_emoji","share_creation_state__emoji-picker-trigger",[30,0,["triggerData"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,17],null,[["@type","@circle","@color","@icon","@disabled"],["tertiary",true,"muted","emoji",true]],null],[1,"\\n"]],[]]],[1," "]],[62]]]]],[1,"\\n "],[10,0],[14,0,"share-creation-state__msg-wrapper"],[12],[1,"\\n"],[41,[30,0,["isShowingFeedbackMsg"]],[[[1," "],[8,[39,33],null,[["@feedbackMsgType","@onFeedbackMessageClick","@feedbackMsgToken","@feedbackMsgLinkText","@feedbackMsgText","@charCountOverLimit"],[[30,0,["feedbackMsgType"]],[30,0,["feedbackMsgAction"]],[30,0,["feedbackMsgToken"]],[30,0,["feedbackMsgLinkText"]],[30,0,["feedbackMsgText"]],[30,21,["charCountOverLimit"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["showGuider"]],[[[1," "],[8,[39,34],null,[["@guiderManager","@onInsertText","@openDetour"],[[30,55],[30,0,["onInsertText"]],[30,56]]],null],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n "]],[]]]],[]]],[1," "],[13],[1,"\\n"],[41,[30,0,["showWritingAssistantOnboardingTooltip"]],[[[1," "],[8,[39,35],null,[["@customClasses","@horizontalPosition","@close","@verticalPosition"],[[52,[30,0,["isWritingAssistantPremiumEnabled"]],"share-creation-state__wa-ai-premium-tooltip","share-creation-state__wa-ai-tooltip"],"left",[52,[30,0,["isWritingAssistantPremiumEnabled"]],[30,0,["premiumTooltipDismissButtonHandler"]],[30,27]],"bottom"]],[["default"],[[[[1,"\\n"],[41,[30,0,["isWritingAssistantPremiumEnabled"]],[[[1," "],[10,0],[14,0,"share-creation-state__wa-ai-tooltip-content text-body-small"],[12],[1,"\\n "],[10,1],[15,0,[29,["hue-web-color-scheme--",[30,0,["theme"]]]]],[12],[1,"\\n "],[8,[39,14],null,[["@a11yText","@type","@size","@name"],[[28,[37,10],["i18n_premium_feature","sharing-v2/components/creation-state"],null],"logo","xxxsmall","premium-badge"]],null],[1,"\\n "],[13],[1,"\\n "],[10,2],[14,0,"share-creation-state__wa-ai-premium-tooltip-text"],[12],[1,[28,[35,10],["i18n_ai_premium_tooltip","sharing-v2/components/creation-state"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"share-creation-state__wa-ai-tooltip-content text-body-small"],[12],[1,"\\n "],[1,[28,[35,10],["i18n_improve_ai_description","sharing-v2/components/creation-state"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n"]],[]],null],[41,[30,0,["showPremiumUpsellTooltip"]],[[[1," "],[8,[39,36],[[4,[38,19],null,[["when","onSelector"],[[30,0,["focusOnPremiumUpsellTooltip"]],"a"]]],[4,[38,6],null,[["pageKey","routeName","currentRoute"],["flagship3_feed_share_premium_upsell",[28,[37,7],[[53,"outletState"],"render.name"],null],[28,[37,7],[[53,"outletState"],"render"],null]]]],[4,[38,1],["click",[30,58]],[["capture"],[true]]]],[["@defaultConfig","@onDismissClick","@redirectQueryParams","@upsellCard","@upsellStyles"],[[28,[37,37],null,[["dismissButtonSize"],[1]]],[30,0,["onUpsellTooltipDismissClick"]],"shareActive=true",[30,57],[28,[37,37],null,[["upsellWrapperClass","customAnchorClass"],["share-creation-state__wa-ai-premium-upsell","share-creation-state__upsell-link"]]]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "],[8,[30,61,["slider"]],null,null,[["default"],[[[[1,"\\n"],[41,[30,0,["shouldShowPersistentWAEntryPoint"]],[[[1," "],[8,[30,61,["item"]],[[24,0,"share-creation-state__writing-assistant-container"]],null,[["default"],[[[[1,"\\n "],[11,"button"],[16,0,[29,["share-creation-state__writing-assistant-trigger\\n ",[52,[30,0,["shouldDisablePersistentWAEntryPoint"]],"share-creation-state__writing-assistant-trigger--disabled"]]]],[16,"aria-label",[28,[37,10],["i18n_draft_ai","sharing-v2/components/creation-state"],null]],[16,"disabled",[30,0,["shouldDisablePersistentWAEntryPoint"]]],[24,4,"button"],[4,[38,1],["click",[30,20]],null],[4,[38,18],[[30,0,["controlInteractionEvents","AI_TOOLBAR_BTN"]]],null],[12],[1,"\\n "],[8,[39,14],null,[["@type","@size","@name"],["system","medium",[52,[30,0,["isWritingAssistantPremiumEnabled"]],"signal-ai","magic-wand"]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[28,[37,21],[[30,23],[30,6],[30,24],[28,[37,3],[[30,63]],null]],null],[[[1," "],[8,[30,61,["item"]],[[16,0,[29,["share-creation-state__promoted-detour-button-item\\n ",[52,[30,0,["isWritingAssistantPremiumEnabled"]],"share-creation-state__writing-assistant-container--premium","share-creation-state__writing-assistant-container"],"\\n ",[52,[28,[37,21],[[30,0,["isWritingAssistantPremiumEnabled"]],[30,59]],null],"share-creation-state__writing-assistant-container--premium-with-min-words"]]]]],null,[["default"],[[[[1,"\\n"],[41,[30,0,["isWritingAssistantPremiumEnabled"]],[[[1," "],[10,0],[14,0,"display-flex align-items-center"],[12],[1,"\\n "],[8,[39,17],[[4,[38,1],["click",[30,0,["improveWithAiPremiumHandler"]]],null],[4,[38,18],[[30,0,["controlInteractionEvents","AI_TOOLBAR_BTN"]]],null]],[["@type","@color","@class","@disabled","@size"],["secondary","muted","share-creation-state__writing-assistant-premium-button",[30,59],1]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"display-flex align-items-center text-body-medium-bold"],[12],[1,"\\n "],[8,[39,14],[[24,0,"share-creation-state__writing-assistant-premium-button-icon"]],[["@type","@size","@name"],["system","small","signal-ai"]],null],[1,"\\n "],[1,[28,[35,10],["i18n_write_with_ai","sharing-v2/components/creation-state"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"],[41,[30,59],[[[1," "],[8,[39,29],null,[["@inputQueryWordCount","@minInputWordsRequired","@shouldOnlyShowCount","@class"],[[30,51],[30,52],true,"share-creation-state__writing-assistant-premium-min-word-count"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[11,"button"],[24,0,"share-creation-state__writing-assistant-trigger"],[16,"aria-label",[28,[37,10],["i18n_improve_ai","sharing-v2/components/creation-state"],null]],[24,4,"button"],[4,[38,1],["click",[30,60]],null],[4,[38,18],[[30,0,["controlInteractionEvents","AI_TOOLBAR_BTN"]]],null],[12],[1,"\\n "],[8,[39,14],null,[["@type","@size","@name"],["system","medium",[52,[30,0,["isWritingAssistantPremiumEnabled"]],"signal-ai","magic-wand"]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["shouldShowUndoButtonInCarousel"]],[[[1," "],[8,[30,61,["item"]],[[24,0,"share-creation-state__writing-assistant-container"]],null,[["default"],[[[[1,"\\n "],[11,"button"],[24,0,"share-creation-state__writing-assistant-trigger"],[16,"aria-label",[28,[37,10],["i18n_undo","sharing-v2/components/creation-state"],null]],[24,4,"button"],[4,[38,1],["click",[30,0,["undoAiDraftHandler"]]],null],[4,[38,18],[[30,0,["controlInteractionEvents","UNDO"]]],null],[12],[1,"\\n "],[8,[39,14],null,[["@type","@size","@name"],["system","medium","undo"]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null]],[]],[[[41,[30,0,["isPremiumUpsellExperienceEnabled"]],[[[1," "],[8,[30,61,["item"]],[[24,0,"share-creation-state__promoted-detour-button-item share-creation-state__writing-assistant-container--premium"]],null,[["default"],[[[[1,"\\n "],[10,0],[14,0,"display-flex align-items-center"],[12],[1,"\\n "],[8,[39,17],[[4,[38,1],["click",[30,0,["onUpsellTriggerClick"]]],null],[4,[38,18],[[30,0,["controlInteractionEvents","AI_TOOLBAR_BTN"]]],null],[4,[38,19],null,[["when"],[[30,0,["focusOnAiUpsellButton"]]]]]],[["@type","@color","@class","@size"],["secondary","muted","share-creation-state__writing-assistant-premium-button",1]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"display-flex align-items-center text-body-medium-bold"],[12],[1,"\\n "],[8,[39,14],[[24,0,"share-creation-state__writing-assistant-premium-button-icon"]],[["@type","@size","@name"],["system","small","signal-ai"]],null],[1,"\\n "],[1,[28,[35,10],["i18n_write_with_ai","sharing-v2/components/creation-state"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[]],null]],[]]]],[]]],[42,[28,[37,42],[[28,[37,42],[[30,0,["toolbarDetours"]]],null]],null],null,[[[1," "],[8,[30,61,["item"]],[[16,0,[29,["share-creation-state__promoted-detour-button-item\\n ",[52,[28,[37,4],[[30,0,["isWritingAssistantPremiumEnabled"]],[30,0,["isPremiumUpsellExperienceEnabled"]]],null],"share-creation-state__promoted-detour-button-item-premium"]]]]],null,[["default"],[[[[1,"\\n "],[11,0],[4,[38,19],null,[["when","onSelector"],[[28,[37,43],[[30,10],[30,64,["dataTestName"]]],null],"button"]]],[12],[1,"\\n "],[8,[39,44],null,[["@clickHandler","@dataTestName","@disabled","@hoverText","@text","@order","@toolbarControlName","@iconName","@isWritingAssistantPremiumEnabled"],[[28,[37,45],[[30,56],[30,64]],null],[30,64,["dataTestName"]],[30,28],[28,[37,10],[[30,64,["i18nLabelKey"]],"sharing-v2/components/creation-state"],null],[28,[37,10],[[30,64,["i18nShortLabelKey"]],"sharing-v2/components/creation-state"],null],[29,["neutral-",[28,[37,46],[[30,65],1],null]]],[30,64,["toolbarControlName"]],[30,64,["iconName"]],[28,[37,4],[[30,0,["isWritingAssistantPremiumEnabled"]],[30,0,["isPremiumUpsellExperienceEnabled"]]],null]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[64,65]],null],[41,[30,66],[[[42,[28,[37,42],[[28,[37,42],[[30,0,["extendedToolbarDetours"]]],null]],null],null,[[[1," "],[8,[30,61,["item"]],[[16,0,[29,["share-creation-state__promoted-detour-button-item\\n ",[52,[28,[37,4],[[30,0,["isWritingAssistantPremiumEnabled"]],[30,0,["isPremiumUpsellExperienceEnabled"]]],null],"share-creation-state__promoted-detour-button-item-premium"]]]]],null,[["default"],[[[[1,"\\n "],[11,0],[4,[38,19],null,[["when","onSelector"],[[28,[37,43],[[30,10],[30,67,["dataTestName"]]],null],"button"]]],[12],[1,"\\n "],[8,[39,44],null,[["@clickHandler","@dataTestName","@disabled","@text","@hoverText","@order","@toolbarControlName","@iconName","@isWritingAssistantPremiumEnabled"],[[28,[37,45],[[30,56],[30,67]],null],[30,67,["dataTestName"]],[30,28],[28,[37,10],[[30,67,["i18nShortLabelKey"]],"sharing-v2/components/creation-state"],null],[28,[37,10],[[30,67,["i18nLabelKey"]],"sharing-v2/components/creation-state"],null],[29,["neutral-",[28,[37,46],[[30,68],1],null]]],[30,67,["toolbarControlName"]],[30,67,["iconName"]],[28,[37,4],[[30,0,["isWritingAssistantPremiumEnabled"]],[30,0,["isPremiumUpsellExperienceEnabled"]]],null]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[67,68]],null]],[]],[[[41,[28,[37,47],[[30,0,["extendedToolbarDetours","length"]],0],null],[[[1," "],[8,[30,61,["item"]],[[16,0,[29,["share-creation-state__promoted-detour-button-item\\n ",[52,[28,[37,4],[[30,0,["isWritingAssistantPremiumEnabled"]],[30,0,["isPremiumUpsellExperienceEnabled"]]],null],"share-creation-state__promoted-detour-button-item-premium"]]]]],null,[["default"],[[[[1,"\\n "],[8,[39,44],null,[["@clickHandler","@dataTestName","@disabled","@text","@hoverText","@order","@toolbarControlName","@iconName","@isWritingAssistantPremiumEnabled"],[[28,[37,45],[[30,69],[30,0,["extendedToolbarDetours"]]],null],"more-detour-btn",[30,28],[28,[37,10],["i18n_more_detours_label","sharing-v2/components/creation-state"],null],[28,[37,10],["i18n_more_detours_label","sharing-v2/components/creation-state"],null],"neutral-more",[30,0,["controlInteractionEvents","DETOUR_OPTIONS_VIEW_ALL"]],[52,[30,24],"add","overflow-web-ios"],[28,[37,4],[[30,0,["isWritingAssistantPremiumEnabled"]],[30,0,["isPremiumUpsellExperienceEnabled"]]],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[]],null]],[]]],[1," "]],[]]]]],[1,"\\n "]],[61]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showCreationStateFooter"]],[[[41,[30,6],[[[1," "],[10,"hr"],[14,0,"artdeco-divider share-creation-state__redesigned-footer-divider"],[12],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,48],null,[["@canBeScheduled","@currentActor","@currentCommentRestriction","@currentVisibility","@customPrimaryButtonText","@disableDetourButtons","@focusOnActive","@goToPostManager","@goToVisibilityScreen","@isInEditMode","@isPostRequestPending","@isPhoenixUIEnabled","@isScheduledPostsEnabled","@isWritingAssistantRequestInProgress","@onScheduleSelected","@openDetour","@primaryButtonDisabled","@publishPost","@removeFocus","@scheduledDate","@shareOrigin","@shouldShowCommentControls","@showChooserMenuTrigger","@writingAssistantIsOpen"],[[30,70],[30,11],[30,71],[30,14],[30,72],[30,0,["disableDetourButtons"]],[30,10],[30,17],[30,13],[30,0,["isInEditMode"]],[30,73],[30,6],[30,74],[30,16],[30,75],[30,56],[30,0,["primaryButtonDisabled"]],[30,76],[30,0,["removeFocus"]],[30,15],[30,77],[30,0,["shouldShowCommentControls"]],[30,0,["showChooserMenuTrigger"]],[30,28]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["@dragAndDropCallback","@pasteEventHandler","@detourData","@shareboxHasAttachment","@isModalSharebox","@isPhoenixUIEnabled","&attrs","@showInlineHeader","@headerType","@focusOnActive","@currentActor","@showActorToggle","@goToVisibilityScreen","@currentVisibility","@scheduledDate","@isWritingAssistantRequestInProgress","@goToPostManager","@cursorRange","@firstTextChangeHandler","@openWritingAssistant","@shareContentsData","@onFoundUrl","@isWritingAssistantEnabled","@isWritingAssistantV2Enabled","@textInputI18nPlaceholderText","@autoFocusTexteditor","@tookWritingAssistantAction","@writingAssistantIsOpen","@cacheAiInputQuery","@onWritingAssistantError","@aiInputQuery","@invalidAiInputErrorMessage","@invalidAiInputQuery","@writingAssistantRequestInProgressHandler","@shareBoxSessionUrn","@isShowingDetourPreview","@showDetourPreviewEditButton","@editDetour","@detourPreviewEditControlInteractionEventName","@showDetourPreviewRemoveButton","@detourPreviewRemoveControlInteractionEventName","@showDetourPreviewError","@previewedUpdateV2","@onEditShareMedia","@improveWithAiQuery","@onWAFeedbackCardCloseAction","@waFeedbackCardView","@onWAFeedbackCardAction","@gaiContentUrn","@shouldShowWritingAssistantInputLimitMessage","@aiInputQueryWordCount","@waMinInputWordsRequired","@showWritingAssistantErrorMessage","assetLoader","@guiderManager","@openDetour","@upsellCardData","@onUpsellContainerClickHandler","@isAiInputQueryTooShort","@improveWithAiHandler","carousel","assetLoader","@isOrganizationActor","detourToolbarButton","index","@isExtendedDetoursVisible","detourToolbarButton","index","@showExtendedDetours","@canBeScheduled","@currentCommentRestriction","@customPrimaryButtonText","@isPostRequestPending","@isScheduledPostsEnabled","@onScheduleSelected","@publishPost","@shareOrigin"],false,["media-modifiers@drag-and-drop","on","if","global-helpers@not","global-helpers@or","media-modifiers@drag-and-drop-dropzone","ember-cli-pemberly-tracking@track-render","get","-get-dynamic-var","detour-framework@title-bar","t","unless","sharing-v2@actor-lockup","sharing-v2@share-box-inline-callout","hue-web-icons@icon","ember-cli-pemberly-i18n@format-date","ember-cli-pemberly-i18n@format-time","artdeco-button@artdeco-button","ember-cli-pemberly-tracking@track-interaction","global-modifiers@focus","participate-text-editor-loader@text-editor-loader","global-helpers@and","global-modifiers@scroll-into-view","writing-assistant@writing-assistant","update-components@mini-update-v2","concat","global-helpers@is-present","writing-assistant@feedback-card-v2","writing-assistant@feedback-card","writing-assistant@min-words-count","artdeco-inline-feedback@artdeco-inline-feedback","asset-loader@deferred-asset-loader","emoji-picker@emoji-hoverable","sharing-v2@feedback-message","sharing-v2@guider/guider-bar","ui@inline-tooltip","s-upsell@upsell-templates-v2/upsell-template-container-v2","hash","artdeco-carousel@artdeco-carousel","global-modifiers@on-resize-window","global-helpers@pick","each","-track-array","eq","sharing-v2@promoted-detour-button","fn","global-helpers@sum","global-helpers@gt","sharing-v2@creation-state-footer"]]',moduleName:"sharing-v2/components/creation-state.hbs",isStrictMode:!1})
let de=e.default=(C=(0,c.inject)("i18n"),A=(0,c.inject)("lix"),O=(0,c.inject)("locale"),D=(0,c.inject)("global-services@theme"),N=(0,c.inject)("tracking"),w=(0,c.inject)("lego@resolver"),P=(0,c.inject)("lego@tracking"),R=(0,c.inject)("global-services@window"),k=(0,c.inject)("scaffold-layout@reflow"),M=(ie=new WeakSet,ne=new WeakSet,re=new WeakSet,ae=new WeakSet,oe=new WeakSet,se=new WeakSet,class extends l.default{get cardWidth(){if(this.isScreenWidthSmall)return"64px"}get carouselItemSize(){return this.args.isExtendedDetoursVisible?this.toolbarDetours.length+this.extendedToolbarDetours.length:4}get currentCharCount(){var e,t
return null===(e=this.args.shareContentsData)||void 0===e||null===(t=e.text)||void 0===t?void 0:t.length}get detours(){var e,t,i,n
const r=(0,v.getPromotedDetourButtons)(this.args.isWritingAssistantV2Enabled?T.PROMOTED_DETOUR_BUTTONS_V2:T.PROMOTED_DETOUR_BUTTONS,this.lix,this.locale,null===(e=this.args.currentActor)||void 0===e?void 0:e.actorType,null===(t=this.args.currentVisibility)||void 0===t?void 0:t.type),a=(0,v.getPromotedDetourButtons)(this.args.isWritingAssistantV2Enabled?T.PROMOTED_EXTENDED_DETOUR_BUTTONS_V2:T.PROMOTED_EXTENDED_DETOUR_BUTTONS,this.lix,this.locale,null===(i=this.args.currentActor)||void 0===i?void 0:i.actorType,null===(n=this.args.currentVisibility)||void 0===n?void 0:n.type)
if(this.args.isWritingAssistantV2Enabled){if(0===r.length){const e=a.shift()
e&&r.push(e)}}else if(r.length<3){for(let e=3-r.length;e>0;e--){const e=a.shift()
e&&r.push(e)}}return{promoted:r,extended:a}}get detourButtonPrefix(){return this.args.isWritingAssistantEnabled?"neutral":"promoted"}get detourPreviewStatusDataLink(){var e
return null===(e=this.args.detourPreviewStatusData)||void 0===e?void 0:e.link}get disableDetourButtons(){return this.isInEditMode||this.args.shareboxHasAttachment||this.args.broadcastContentAttached}get exceededMaxCharLimitError(){var e
return!(null===(e=this.args.shareContentsData)||void 0===e||!e.exceedsMaxCharLimit)}get exceededMaxMentionsError(){var e
return null===(e=this.args.shareContentsData)||void 0===e?void 0:e.exceedsMaxMentions}get extendedToolbarDetours(){return this.detours.extended}get feedbackMsgAction(){return this.showBeKindMessage?this.openCommunityPolicies:this.args.showDetourPreviewError&&this.detourPreviewStatusDataLink?this.onDetourPreviewErrorClick:void 0}get feedbackMsgLinkText(){return this.showBeKindMessage?this.i18n.lookupTranslation("components/sharing-v2@creation-state","i18n_safe_conversations_cta_text")():this.args.showDetourPreviewError&&this.detourPreviewStatusDataLink?this.detourPreviewStatusDataLink.text:void 0}get feedbackMsgText(){if(this.args.showDetourPreviewError){var e
return(null===(e=this.args.detourPreviewStatusData)||void 0===e?void 0:e.message)||this.i18n.lookupTranslation("components/sharing-v2@creation-state","i18n_detour_preview_default_error_temp")()}return this.args.dragAndDropErrorMessage?this.args.dragAndDropErrorMessage:this.args.postFailureErrorMessage?this.args.postFailureErrorMessage:this.showBeKindMessage?this.i18n.lookupTranslation("components/sharing-v2@creation-state","i18n_be_kind_message")():this.exceededMaxCharLimitError?this.i18n.lookupTranslation("components/sharing-v2@creation-state","i18n_exceeded_max_char_limit_msg")():this.exceededMaxMentionsError?this.i18n.lookupTranslation("components/sharing-v2@creation-state","i18n_exceeded_max_mentions_msg")():this.args.showDetourPreviewLoading?this.i18n.lookupTranslation("components/sharing-v2@creation-state","i18n_content_preview_load")():void 0}get feedbackMsgToken(){return this.showBeKindMessage?this.beKindToken:this.args.showDetourPreviewError&&this.detourPreviewStatusDataLink?this.detourPreviewStatusDataLink.url:void 0}get feedbackMsgType(){return this.showBeKindMessage?b.FEEDBACK_MESSAGE_TYPE.BE_KIND:this.exceededMaxCharLimitError?b.FEEDBACK_MESSAGE_TYPE.CHAR_LIMIT:this.args.showDetourPreviewError?b.FEEDBACK_MESSAGE_TYPE.DETOUR_PREVIEW_ERROR:this.exceededMaxMentionsError?b.FEEDBACK_MESSAGE_TYPE.MENTIONS_LIMIT:this.args.dragAndDropErrorMessage?b.FEEDBACK_MESSAGE_TYPE.DRAG_AND_DROP_ERROR:this.args.postFailureErrorMessage?b.FEEDBACK_MESSAGE_TYPE.POST_FAILURE:this.args.showDetourPreviewLoading?b.FEEDBACK_MESSAGE_TYPE.PREVIEW_LOADING:void 0}get ghostTextCtaPlaceholder(){const e=this.i18n.lookupTranslation("components/sharing-v2@creation-state","i18n_ghost_text_Cta_placeholder")
return"en_US"===this.locale.interfaceLocale?"Start typing or":e()}get groupIdForMentionsTypeahead(){var e
if(this.args.groupId)return this.args.groupId
const t=null===(e=this.args.currentVisibility)||void 0===e?void 0:e.containerEntity
return(0,h.isPresent)(t)&&(0,n.default)(this,ie,ce).call(this,t)?(0,p.entityUrnToId)(t):null}get hideCarouselNavButtons(){const{clientWidth:e}=this.reflow
return!this.args.isExtendedDetoursVisible||e>480}get improveWithAiQueryText(){var e
return null===(e=this.args.improveWithAiQuery)||void 0===e?void 0:e.text}get isInEditMode(){return this.args.shareType===f.SHARE_TYPES.EDIT}get isRedesignedExperienceDisabled(){return!this.args.isPhoenixUIEnabled}get isScreenWidthSmall(){const{clientWidth:e}=this.reflow
return this.isScreenWidthSmallCached||e<E.REFLOW_BREAKPOINTS.md.maxWidth}get isShowingFeedbackMsg(){return this.exceededMaxCharLimitError||this.exceededMaxMentionsError||this.args.dragAndDropErrorMessage||this.args.postFailureErrorMessage||this.args.showDetourPreviewLoading||this.args.showDetourPreviewError||this.showBeKindMessage}get isWritingAssistantInExpandedMode(){return this.args.isWritingAssistantV2Enabled?this.args.writingAssistantIsOpen:this.args.isWritingAssistantEnabled&&this.args.writingAssistantIsOpen&&!this.args.shareContentsData.hasText}get isWritingAssisantInInlineMode(){return!this.args.isWritingAssistantV2Enabled&&(this.args.isWritingAssistantEnabled&&this.args.writingAssistantIsOpen&&this.args.shareContentsData.hasText)}get isWritingAssistantPremiumEnabled(){return"v2_premium"===this.args.writingAssistantTreatment}get pageKey(){return this.isInEditMode?b.SHAREBOX_TRACKING.PAGEVIEW_EVENTS.EDIT:this.args.shareType===f.SHARE_TYPES.REPOST?b.SHAREBOX_TRACKING.PAGEVIEW_EVENTS.REPOST:this.args.shareType===f.SHARE_TYPES.DRAFT?b.SHAREBOX_TRACKING.PAGEVIEW_EVENTS.DRAFT:this.args.isPhoenixUIEnabled?b.SHAREBOX_TRACKING.PAGEVIEW_EVENTS.SHARE_V2:b.SHAREBOX_TRACKING.PAGEVIEW_EVENTS.SHARE}get primaryButtonDisabled(){var e
return!this.args.shareboxHasValidContent||this.args.isPostRequestPending||this.exceededMaxCharLimitError||this.exceededMaxMentionsError||this.isInEditMode&&!this.args.editedShareHasChanged||(null===(e=this.args.currentVisibility)||void 0===e?void 0:e.type)===f.VALID_VISIBILITY_TYPES.SELECT_VISIBILITY||this.args.isWritingAssistantRequestInProgress}get shouldDisablePersistentWAEntryPoint(){var e,t
const i=null===(e=this.args.shareContentsData.text)||void 0===e?void 0:e.trim()
return!!this.args.aiGeneratedText&&!(null==i||!i.length)&&i!==(null===(t=this.args.prefilledTextTVMV2)||void 0===t?void 0:t.text.trim())}get shouldHideRepost(){var e
return!this.isInEditMode&&(null===(e=this.args.previewedUpdateV2)||void 0===e?void 0:e.resharedUpdate)}get shouldShowAdditionalToolbarInEditorContainer(){return!this.args.isPhoenixUIEnabled||this.args.shareboxHasAttachment||this.isInEditMode}get shouldShowUndoButtonInCarousel(){return this.args.improveWithAiQuery&&this.args.aiGeneratedText&&!this.isWritingAssistantPremiumEnabled}get shouldShowCommentControls(){const e=this.args.currentVisibility.type
return!this.isInEditMode&&!this.args.isInBroadcastMode&&e!==f.VALID_VISIBILITY_TYPES.SELECT_VISIBILITY&&this.showCreationStateFooter&&!this.args.isPhoenixUIEnabled}get shouldShowPersistentWAEntryPoint(){return!this.args.writingAssistantIsOpen&&this.args.showWritingAssistantPersistentEntryPoint}get showChooserMenuTrigger(){var e
return null===(e=this.args.chooserMenuButtons)||void 0===e?void 0:e.length}get showContentOnlyInPreviewedUpdate(){return this.isInEditMode}get showCreationStateFooter(){return!this.args.hideCreationStateFooter}get showGuider(){return!this.isInEditMode}get showPremiumUpsellTooltip(){return this.args.isPremiumUpsellExperienceEnabled&&this.args.upsellCardData&&this.upsellPremiumTooltipEnabled}get showStickyVisibilityInlineCallout(){return this.args.usingStickyVisibility&&this.isStickyVisibilityInlineCalloutEnabled}get showWAFeedbackCard(){return!(this.args.waFeedbackCardView===I.FEEDBACK_CARD_VIEW.CLOSED)}get showWritingAssistantOnboardingCallout(){return!this.args.hasInteractedWithWritingAssistant&&!this.args.isWritingAssistantV2Enabled&&this.writingAssistantOnboardingCalloutEnabled}get showWritingAssistantOnboardingTooltip(){return!this.args.hasInteractedWithWritingAssistant&&this.args.isWritingAssistantV2Enabled&&this.writingAssistantOnboardingCalloutEnabled}get theme(){return{dark:"light",light:"dark"}[this.themeService.theme]}get toolbarDetours(){return this.detours.promoted}get trackableRootObject(){var e,t,i,n,r,a,o,s,l,d,c
return{associatedEntityUrn:null===(e=this.args.updateV2)||void 0===e?void 0:e.entityUrn,controlType:"share",objectUrn:this.isDashUpdate?null===(t=this.args.updateV2)||void 0===t||null===(i=t.metadata)||void 0===i?void 0:i.shareUrn:null===(n=this.args.updateV2)||void 0===n||null===(r=n.updateMetadata)||void 0===r?void 0:r.shareUrn,trackingId:this.isDashUpdate?null===(a=this.args.updateV2)||void 0===a||null===(o=a.metadata)||void 0===o||null===(s=o.trackingData)||void 0===s?void 0:s.trackingId:null===(l=this.args.updateV2)||void 0===l||null===(d=l.updateMetadata)||void 0===d||null===(c=d.trackingData)||void 0===c?void 0:c.trackingId}}get isPageContentGraphQLEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.hiring-lego-page-content-graphql-migration")}get isPremiumUpsellExperienceEnabled(){return this.args.isPremiumUpsellExperienceEnabled&&this.args.upsellCardData}get triggerData(){return{insertEmojiCallback:(0,n.default)(this,ne,ue).bind(this)}}constructor(){var e,r
super(...arguments)
se.add(this)
oe.add(this)
ae.add(this)
re.add(this)
ne.add(this)
ie.add(this);(0,t.default)(this,"i18n",x,this);(0,t.default)(this,"lix",V,this);(0,t.default)(this,"locale",L,this);(0,t.default)(this,"themeService",U,this);(0,t.default)(this,"tracking",B,this);(0,t.default)(this,"legoResolver",H,this);(0,t.default)(this,"legoTracking",F,this);(0,t.default)(this,"windowService",W,this);(0,t.default)(this,"reflow",z,this);(0,i.default)(this,"beKindToken","share.prompt_beKindLearnMore");(0,i.default)(this,"controlInteractionEvents",b.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS);(0,i.default)(this,"quillEditorSelector",".ql-editor");(0,i.default)(this,"isScreenWidthSmallCached",!1);(0,t.default)(this,"currentDetourSlideIndex",G,this);(0,t.default)(this,"focusOnAiUpsellButton",j,this);(0,t.default)(this,"focusOnPremiumUpsellTooltip",Y,this);(0,t.default)(this,"focusOnTexteditor",K,this);(0,t.default)(this,"isStickyVisibilityInlineCalloutEnabled",q,this);(0,t.default)(this,"loopSlides",X,this);(0,t.default)(this,"pageSizeWithCards",Q,this);(0,t.default)(this,"pageSizeWithIcons",$,this);(0,t.default)(this,"showBeKindMessage",Z,this);(0,t.default)(this,"upsellPremiumTooltipEnabled",J,this);(0,t.default)(this,"writingAssistantOnboardingCalloutEnabled",ee,this);(0,t.default)(this,"writingAssistantTooltipLegoToken",te,this)
null===(e=(r=this.args).updateModalConfig)||void 0===e||e.call(r,{modalHeader:this.args.initialHeader,controlName:this.controlInteractionEvents.UNFOCUS_SHAREBOX,shouldFocusOnHeader:!1})
this._showBeKind()
!this.args.isWritingAssistantEnabled||this.args.hasInteractedWithWritingAssistant||this.args.showWritingAssistantPersistentEntryPoint||(0,n.default)(this,oe,ge).call(this)
this.args.usingStickyVisibility&&this._checkInlineStickyVisibilityLegoStatus();(0,n.default)(this,ae,pe).call(this)}_checkInlineStickyVisibilityLegoStatus(){this.args.currentVisibility.type!==f.VALID_VISIBILITY_TYPES.CONNECTIONS&&this.args.currentVisibility.type!==f.VALID_VISIBILITY_TYPES.CONTAINER||(0,y.fireLegoRequestHelper)(this.legoResolver,{pageKey:"feed_share",slotId:"sticky_visibility_inline_callout",groupId:"sticky_visibility_inline_callout",widgetId:"sharing:_show_sticky_visibility_inline_callout"},(e=>this._updateStickyVisibilityInlineCalloutLego(null==e?void 0:e.trackingToken)),this.isPageContentGraphQLEnabled)}_showBeKind(){(0,y.fireLegoRequestHelper)(this.legoResolver,{pageKey:"feed_share",slotId:"be_kind_prompt",groupId:"be_kind_prompt",widgetId:"participate-sharing:_be_kind_prompt"},(e=>this._updateBeKindLegoStatus(null==e?void 0:e.trackingToken)),this.isPageContentGraphQLEnabled)}_updateBeKindLegoStatus(e){this.showBeKindMessage=!0
this.legoTracking.sendLegoImpression(e,this.legoTracking.LEGO_IMPRESSION_VISIBILITY_SHOW)}_updateStickyVisibilityInlineCalloutLego(e){this.isStickyVisibilityInlineCalloutEnabled=!0
this.legoTracking.sendLegoImpression(e,this.legoTracking.LEGO_IMPRESSION_VISIBILITY_SHOW)}_updateWritingAssistantOnboardingLegoStatus(e){this.writingAssistantOnboardingCalloutEnabled=!0
this.legoTracking.sendLegoImpression(e,this.legoTracking.LEGO_IMPRESSION_VISIBILITY_SHOW)}closeWritingAssistant(){this.args.closeWritingAssistant()
this.args.shareContentsData.hasText?(0,S.runTask)(this,(()=>{this.focusEditor()})):this.focusOnTexteditor=!0}handleReflow(){const{clientWidth:e}=this.reflow
!this.isScreenWidthSmallCached&&e<E.REFLOW_BREAKPOINTS.md.maxWidth&&(this.isScreenWidthSmallCached=!0);(0,n.default)(this,ae,pe).call(this)}improveWithAiPremiumHandler(){var e,t
this.showWritingAssistantOnboardingTooltip&&(0,n.default)(this,se,me).call(this,this.legoTracking.LEGO_ACTION_PRIMARY)
null===(e=(t=this.args).improveWithAiHandler)||void 0===e||e.call(t)}onDetourPreviewErrorClick(e){this.windowService.open(e,"_blank")}onDetourPreviewRemoval(){this.focusOnTexteditor=!0
this.args.removeDetourPreview()}focusEditor(){var e
null===(e=this.focusEditorCallback)||void 0===e||e.call(this)}onEmojiSelected(e){let{body:t,triggerData:i}=e
i.insertEmojiCallback(t);(0,_.default)(this,".ql-editor")}onInsertText(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,n.default)(this,ne,ue).call(this,e,t)}openCommunityPolicies(e){this.tracking.fireInteractionEvent(e,"SHORT_PRESS")
this.windowService.open(`${(0,m.getDomainUrl)()}/legal/professional-community-policies`,"_blank")}removeFocus(e){this.args.removeFocus&&this.args.removeFocus(e)}setInsertContentHandler(e){this.insertContentCallback=e}setResetEditorHandler(e){this.resetEditorCallback=e}setFocusEditorHandler(e){this.focusEditorCallback=e}textChangeHandler(){if(this.args.isPhoenixUIEnabled){(0,n.default)(this,ae,pe).call(this)
this.args.textChangeHandler&&this.args.textChangeHandler(...arguments)}this.args.updateShareViewModel(...arguments)}premiumTooltipDismissButtonHandler(){var e,t;(0,n.default)(this,se,me).call(this,this.legoTracking.LEGO_ACTION_DISMISS)
null===(e=(t=this.args).tookWritingAssistantAction)||void 0===e||e.call(t)}writingAssistantSuccessCallback(e,t){this.closeWritingAssistant();(0,S.runTask)(this,(()=>{if(this.args.isWritingAssistantV2Enabled){var i
null===(i=this.resetEditorCallback)||void 0===i||i.call(this)}this.onInsertText(e,!1)
this.args.updateAiGeneratedData(e,t)}))
this.args.showWAFeedbackCard()}writingAssistantCancelCallback(){this.args.gaiContentUrn&&this.args.showWAFeedbackCard()}undoAiDraftHandler(){var e,t,i
null===(e=this.resetEditorCallback)||void 0===e||e.call(this);(0,n.default)(this,re,he).call(this,this.args.improveWithAiQuery.text,this.args.improveWithAiQuery.mentions)
null===(t=(i=this.args).undoAiDraftHandler)||void 0===t||t.call(i)}onUpsellTriggerClick(){this.upsellPremiumTooltipEnabled=!0
this.focusOnPremiumUpsellTooltip=!0}onUpsellTooltipDismissClick(){this.upsellPremiumTooltipEnabled=!1
this.focusOnAiUpsellButton=!0
this.args.upsellTooltipDismissHandler()}}),x=(0,r.default)(M.prototype,"i18n",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,r.default)(M.prototype,"lix",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,r.default)(M.prototype,"locale",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,r.default)(M.prototype,"themeService",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,r.default)(M.prototype,"tracking",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=(0,r.default)(M.prototype,"legoResolver",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,r.default)(M.prototype,"legoTracking",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W=(0,r.default)(M.prototype,"windowService",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,r.default)(M.prototype,"reflow",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=(0,r.default)(M.prototype,"currentDetourSlideIndex",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),j=(0,r.default)(M.prototype,"focusOnAiUpsellButton",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Y=(0,r.default)(M.prototype,"focusOnPremiumUpsellTooltip",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),K=(0,r.default)(M.prototype,"focusOnTexteditor",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),q=(0,r.default)(M.prototype,"isStickyVisibilityInlineCalloutEnabled",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),X=(0,r.default)(M.prototype,"loopSlides",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Q=(0,r.default)(M.prototype,"pageSizeWithCards",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 6}}),$=(0,r.default)(M.prototype,"pageSizeWithIcons",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 10}}),Z=(0,r.default)(M.prototype,"showBeKindMessage",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),J=(0,r.default)(M.prototype,"upsellPremiumTooltipEnabled",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!this.args.hasUpsellTooltipBeenDismissed}}),ee=(0,r.default)(M.prototype,"writingAssistantOnboardingCalloutEnabled",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),te=(0,r.default)(M.prototype,"writingAssistantTooltipLegoToken",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),(0,r.default)(M.prototype,"closeWritingAssistant",[u.action],Object.getOwnPropertyDescriptor(M.prototype,"closeWritingAssistant"),M.prototype),(0,r.default)(M.prototype,"handleReflow",[u.action],Object.getOwnPropertyDescriptor(M.prototype,"handleReflow"),M.prototype),(0,r.default)(M.prototype,"improveWithAiPremiumHandler",[u.action],Object.getOwnPropertyDescriptor(M.prototype,"improveWithAiPremiumHandler"),M.prototype),(0,r.default)(M.prototype,"onDetourPreviewErrorClick",[u.action],Object.getOwnPropertyDescriptor(M.prototype,"onDetourPreviewErrorClick"),M.prototype),(0,r.default)(M.prototype,"onDetourPreviewRemoval",[u.action],Object.getOwnPropertyDescriptor(M.prototype,"onDetourPreviewRemoval"),M.prototype),(0,r.default)(M.prototype,"focusEditor",[u.action],Object.getOwnPropertyDescriptor(M.prototype,"focusEditor"),M.prototype),(0,r.default)(M.prototype,"onEmojiSelected",[u.action],Object.getOwnPropertyDescriptor(M.prototype,"onEmojiSelected"),M.prototype),(0,r.default)(M.prototype,"onInsertText",[u.action],Object.getOwnPropertyDescriptor(M.prototype,"onInsertText"),M.prototype),(0,r.default)(M.prototype,"openCommunityPolicies",[u.action],Object.getOwnPropertyDescriptor(M.prototype,"openCommunityPolicies"),M.prototype),(0,r.default)(M.prototype,"removeFocus",[u.action],Object.getOwnPropertyDescriptor(M.prototype,"removeFocus"),M.prototype),(0,r.default)(M.prototype,"setInsertContentHandler",[u.action],Object.getOwnPropertyDescriptor(M.prototype,"setInsertContentHandler"),M.prototype),(0,r.default)(M.prototype,"setResetEditorHandler",[u.action],Object.getOwnPropertyDescriptor(M.prototype,"setResetEditorHandler"),M.prototype),(0,r.default)(M.prototype,"setFocusEditorHandler",[u.action],Object.getOwnPropertyDescriptor(M.prototype,"setFocusEditorHandler"),M.prototype),(0,r.default)(M.prototype,"textChangeHandler",[u.action],Object.getOwnPropertyDescriptor(M.prototype,"textChangeHandler"),M.prototype),(0,r.default)(M.prototype,"premiumTooltipDismissButtonHandler",[u.action],Object.getOwnPropertyDescriptor(M.prototype,"premiumTooltipDismissButtonHandler"),M.prototype),(0,r.default)(M.prototype,"writingAssistantSuccessCallback",[u.action],Object.getOwnPropertyDescriptor(M.prototype,"writingAssistantSuccessCallback"),M.prototype),(0,r.default)(M.prototype,"writingAssistantCancelCallback",[u.action],Object.getOwnPropertyDescriptor(M.prototype,"writingAssistantCancelCallback"),M.prototype),(0,r.default)(M.prototype,"undoAiDraftHandler",[u.action],Object.getOwnPropertyDescriptor(M.prototype,"undoAiDraftHandler"),M.prototype),(0,r.default)(M.prototype,"onUpsellTriggerClick",[u.action],Object.getOwnPropertyDescriptor(M.prototype,"onUpsellTriggerClick"),M.prototype),(0,r.default)(M.prototype,"onUpsellTooltipDismissClick",[u.action],Object.getOwnPropertyDescriptor(M.prototype,"onUpsellTooltipDismissClick"),M.prototype),M)
function ce(e){const t=(0,g.fromUrn)(e,!1).type
return!("group"!==t&&"fsd_group"!==t)}function ue(e){var t
let i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]
null===(t=this.insertContentCallback)||void 0===t||t.call(this,{text:e},i)}function he(e,t){var i
null===(i=this.insertContentCallback)||void 0===i||i.call(this,{text:e,mentions:t},!1)}function pe(){this.currentDetourSlideIndex=0
this.loopSlides=!0;(0,S.runTask)(this,(()=>{this.loopSlides=!1}),1)}function ge(){(0,y.fireLegoRequestHelper)(this.legoResolver,{pageKey:"feed_share",slotId:"writing_assistant_onboarding",groupId:"writing_assistant_onboarding",widgetId:this.isWritingAssistantPremiumEnabled?"sharing:writing_assistant_onboarding_premium":"sharing:writing_assistant_onboarding_web"},(e=>{this.writingAssistantTooltipLegoToken=null==e?void 0:e.trackingToken
this._updateWritingAssistantOnboardingLegoStatus(null==e?void 0:e.trackingToken)}),this.isPageContentGraphQLEnabled)}function me(e){if(this.writingAssistantTooltipLegoToken){var t
null===(t=this.legoTracking)||void 0===t||t.sendLegoAction(this.writingAssistantTooltipLegoToken,e,1)}}(0,o.setComponentTemplate)(le,de)}))
define.alias("ember-vector-images/components/custom-image","sharing-v2/components/custom-image")
define("sharing-v2/components/detour-toolbar",["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","sharing-v2/utils/sharing-constants","global-nav-shared/utils/reflow-breakpoints","detour-framework/utils/detour-buttons","detour-framework/utils/partner-detour-buttons","@glimmer/tracking"],(function(e,t,i,n,r,a,o,s,l,d,c,u,h,p){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var g,m,b,f,y,_
const T=(0,o.createTemplateFactory)({id:"KTX/pwVM",block:'[[[10,0],[15,0,[29,["share-creation-state__detour-btn-container ",[30,1]]]],[12],[1,"\\n"],[41,[30,0,["showDetourToolbar"]],[[[42,[28,[37,2],[[28,[37,2],[[30,0,["toolbarDetours"]]],null]],null],null,[[[1," "],[8,[39,3],[[4,[38,4],["keyup",[30,4]],null]],[["@disableHoverable"],[[30,0,["disableFooterDetourButtonTooltips"]]]],[["default"],[[[[1,"\\n "],[8,[39,5],[[16,"aria-describedby",[29,[[30,5,["ariaId"]]]]],[4,[38,4],["click",[28,[37,7],[[30,7],[30,2]],null]],null],[4,[38,8],[[30,2,["toolbarControlName"]]],null]],[["@circle","@color","@disabled","@icon","@text","@type"],[true,"muted",[30,6],[30,2,["iconName"]],[28,[37,6],[[30,2,["i18nLabelKey"]],"sharing-v2/components/detour-toolbar"],null],"tertiary"]],null],[1,"\\n\\n "],[8,[30,5,["artdeco-hoverable-content"]],null,[["@theme","@contentClass"],["inverse","share-creation-state__hoverable-content"]],[["default"],[[[[1,"\\n"],[1," "],[10,0],[12],[1,"\\n "],[1,[28,[35,6],[[30,2,["i18nLabelKey"]],"sharing-v2/components/detour-toolbar"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[5]]]]],[1,"\\n"]],[2,3]],null],[1,"\\n"]],[]],null],[13]],["@classNames","detourToolbarButton","index","@removeFocus","trigger","@disableDetourButtons","@openDetour"],false,["if","each","-track-array","artdeco-hoverables@artdeco-hoverable-trigger","on","artdeco-button@artdeco-button","t","fn","ember-cli-pemberly-tracking@track-interaction"]]',moduleName:"sharing-v2/components/detour-toolbar.hbs",isStrictMode:!1})
let v=e.default=(g=(0,l.inject)("scaffold-layout@reflow"),m=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"lix",b,this);(0,t.default)(this,"locale",f,this);(0,t.default)(this,"reflow",y,this);(0,i.default)(this,"controlInteractionEvents",d.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS);(0,t.default)(this,"showUnsupportedScheduleConfirmationModal",_,this)}get disableFooterDetourButtonTooltips(){return!this.args.showChooserMenuTrigger||this.args.disableDetourButtons}get showDetourToolbar(){const e=this.reflow.clientWidth
return 0===e||e>=c.REFLOW_BREAKPOINTS.XS}get toolbarDetours(){var e,t
let i=h.REGISTERED_EXTENDED_TOOLBAR_DETOUR_BUTTONS
this.args.isScheduledPostsEnabled&&(i=h.REGISTERED_EXTENDED_TOOLBAR_DETOUR_BUTTONS.slice(0,4))
return(0,u.getDetourButtons)(i,this.lix,this.locale,null===(e=this.args.currentActor)||void 0===e?void 0:e.actorType,null===(t=this.args.currentVisibility)||void 0===t?void 0:t.type)}},b=(0,n.default)(m.prototype,"lix",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,n.default)(m.prototype,"locale",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,n.default)(m.prototype,"reflow",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,n.default)(m.prototype,"showUnsupportedScheduleConfirmationModal",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m);(0,a.setComponentTemplate)(T,v)}))
define("sharing-v2/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("sharing-v2/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","sharing-v2/components/dropbox-file-picker")
define.alias("ember-semaphore/components/ember-semaphore","sharing-v2/components/ember-semaphore")
define.alias("ember-wormhole/components/ember-wormhole","sharing-v2/components/ember-wormhole")
define("sharing-v2/components/feedback-message",["exports","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@ember/component","@ember/template-factory","@glimmer/component","sharing-v2/utils/sharing-constants","@ember/object","@ember/debug"],(function(e,t,i,n,r,a,o,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var l
const d=(0,n.createTemplateFactory)({id:"qFozIFyH",block:'[[[10,0],[14,0,"share-feedback-message__container"],[12],[1,"\\n"],[41,[30,0,["isPreviewLoading"]],[[[1," "],[8,[39,1],null,[["@type","@size"],["muted","xsmall"]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,2],null,[["@linkText","@message","@onClick","@type","@isIconHidden"],[[30,1],[30,2],[52,[30,3],[28,[37,3],[[30,0,["onMessageClick"]],[30,4]],null]],[30,0,["artdecoFeedbackType"]],[30,0,["isIconHidden"]]]],null],[1,"\\n"],[41,[30,0,["isCharLimitError"]],[[[1," "],[10,1],[14,0,"share-feedback-message__char-count"],[12],[1,"\\n "],[1,[28,[35,4],["i18n_current_char_count","sharing-v2/components/feedback-message"],[["numChars"],[[30,5]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],["@feedbackMsgLinkText","@feedbackMsgText","@onFeedbackMessageClick","@feedbackMsgToken","@charCountOverLimit"],false,["if","artdeco-loader@artdeco-loader","artdeco-inline-feedback@artdeco-inline-feedback","fn","t"]]',moduleName:"sharing-v2/components/feedback-message.hbs",isStrictMode:!1})
let c=e.default=(l=class extends r.default{get artdecoFeedbackType(){return this.args.feedbackMsgType===a.FEEDBACK_MESSAGE_TYPE.PREVIEW_LOADING||this.args.feedbackMsgType===a.FEEDBACK_MESSAGE_TYPE.BE_KIND?"note":"error"}get isPreviewLoading(){return this.args.feedbackMsgType===a.FEEDBACK_MESSAGE_TYPE.PREVIEW_LOADING}get isIconHidden(){return this.args.feedbackMsgType===a.FEEDBACK_MESSAGE_TYPE.PREVIEW_LOADING}get isCharLimitError(){return this.args.feedbackMsgType===a.FEEDBACK_MESSAGE_TYPE.CHAR_LIMIT}constructor(){super(...arguments)
this.args.onFeedbackMessageClick
this.args.feedbackMsgToken
this.args.feedbackMsgLinkText}onMessageClick(e){this.args.onFeedbackMessageClick(e)}},(0,t.default)(l.prototype,"onMessageClick",[o.action],Object.getOwnPropertyDescriptor(l.prototype,"onMessageClick"),l.prototype),l);(0,i.setComponentTemplate)(d,c)}))
define.alias("ember-cloud-filepicker/components/file-picker","sharing-v2/components/file-picker")
define.alias("ember-finite-scroll/components/finite-scroll","sharing-v2/components/finite-scroll")
define.alias("ember-cloud-filepicker/components/google-drive-file-picker","sharing-v2/components/google-drive-file-picker")
define("sharing-v2/components/guider/guider-bar",["exports","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","detour-framework/utils/partner-detour-buttons"],(function(e,t,i,n,r,a,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var s
const l=(0,n.createTemplateFactory)({id:"v9+5Sv7k",block:'[[[10,0],[14,0,"full-width display-flex"],[12],[1,"\\n"],[41,[30,1,["headerPrompt","name"]],[[[1," "],[10,0],[14,0,"share-guider-prompt__button share-box__guider-prompt--fade-in"],[12],[1,"\\n "],[10,0],[14,0,"share-guider-prompt__button"],[12],[1,"\\n "],[8,[39,1],null,[["@prompt","@onPromptClick"],[[30,1,["headerPrompt"]],[30,0,["onPromptClick"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["prompts","length"]],[[[1," "],[8,[39,2],null,[["@onSlideTransitionComplete","@onPromptClick","@prompts"],[[30,0,["onSlideTransitionComplete"]],[30,0,["onPromptClick"]],[30,1,["prompts"]]]],null],[1,"\\n"]],[]],null],[13]],["@guiderManager"],false,["if","sharing-v2@guider/guider-prompt","sharing-v2@guider/guider-carousel"]]',moduleName:"sharing-v2/components/guider/guider-bar.hbs",isStrictMode:!1})
let d=e.default=(s=class extends r.default{onPromptClick(e,t){e.textToInsert?this.args.onInsertText(e.textToInsert):e.editText?this.args.onInsertText(e.editText,!1):e.detourType&&o.SHAREBOX_DETOUR_BUTTON_MAP_BY_TYPE[e.detourType]&&this.args.openDetour(o.SHAREBOX_DETOUR_BUTTON_MAP_BY_TYPE[e.detourType])
this.args.guiderManager.handleGuiderPromptClickTracking(e,t)}onSlideTransitionComplete(){this.args.guiderManager.handleCarouselImpressionTracking()}},(0,t.default)(s.prototype,"onPromptClick",[a.action],Object.getOwnPropertyDescriptor(s.prototype,"onPromptClick"),s.prototype),(0,t.default)(s.prototype,"onSlideTransitionComplete",[a.action],Object.getOwnPropertyDescriptor(s.prototype,"onSlideTransitionComplete"),s.prototype),s);(0,i.setComponentTemplate)(l,d)}))
define("sharing-v2/components/guider/guider-carousel",["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","@glimmer/tracking","@ember/debug","@ember/object","ember-batcher","sharing-v2/utils/sharing-constants"],(function(e,t,i,n,r,a,o,s,l,d,c,u,h,p){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var g,m,b,f
const y=(0,o.createTemplateFactory)({id:"yWqTYQQ9",block:'[[[11,0],[24,0,"share-guider-custom-carousel-prompt"],[17,1],[12],[1,"\\n"],[41,[30,0,["showScrollLeft"]],[[[1," "],[8,[39,1],[[4,[38,2],["click",[28,[37,3],[[30,0,["scrollHandler"]],"LEFT"],null]],null],[4,[38,4],[[30,0,["scrollTrackingEvent"]]],null]],[["@class","@color","@type"],["share-guider-custom-carousel-prompt__left-scroll-btn","default","tertiary"]],[["default"],[[[[1,"\\n\\n "],[8,[39,5],null,[["@a11yText","@type","@size","@name"],[[28,[37,6],["i18n_scroll_guider_carousel_left","sharing-v2/components/guider/guider-carousel"],null],"system","small","chevron-left"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[11,"ul"],[24,0,"share-guider-custom-carousel-prompt__container relative list-style-none display-flex justify-flex-start align-items-center full-width overflow-hidden"],[4,[38,7],[[30,0,["setScrollingElement"]]],null],[4,[38,8],[[30,0,["updateOverflowButtons"]],[30,2]],null],[12],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,2]],null]],null],null,[[[1," "],[10,"li"],[15,0,[29,["share-guider-custom-carousel-prompt__slide flex-shrink-zero\\n ",[52,[28,[37,11],[[30,4],0],null],"share-guider-custom-carousel-prompt__first-slide "]]]],[15,"data-index",[30,4]],[12],[1,"\\n "],[8,[39,12],null,[["@prompt","@onPromptClick"],[[30,3],[28,[37,3],[[30,5],[30,3],[30,4]],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[3,4]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["showScrollRight"]],[[[1," "],[8,[39,1],[[4,[38,2],["click",[28,[37,3],[[30,0,["scrollHandler"]],"RIGHT"],null]],null],[4,[38,4],[[30,0,["scrollTrackingEvent"]]],null]],[["@class","@color","@type"],["share-guider-custom-carousel-prompt__right-scroll-btn","default","tertiary"]],[["default"],[[[[1,"\\n\\n "],[8,[39,5],null,[["@a11yText","@type","@size","@name"],[[28,[37,6],["i18n_scroll_guider_carousel_right","sharing-v2/components/guider/guider-carousel"],null],"system","small","chevron-right"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[13]],["&attrs","@prompts","prompt","index","@onPromptClick"],false,["if","artdeco-button@artdeco-button","on","fn","ember-cli-pemberly-tracking@track-interaction","hue-web-icons@icon","t","did-insert","did-update","each","-track-array","global-helpers@neq","sharing-v2@guider/guider-prompt"]]',moduleName:"sharing-v2/components/guider/guider-carousel.hbs",isStrictMode:!1})
let _=e.default=(g=class extends s.default{constructor(){super(...arguments);(0,i.default)(this,"scrollTrackingEvent",p.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.SHOW_MORE_HASHTAGS);(0,t.default)(this,"showScrollRight",m,this);(0,t.default)(this,"showScrollLeft",b,this);(0,t.default)(this,"scrollingElement",f,this)
const{onPromptClick:e}=this.args}_updateOverflowButtons(){var e,t,i
const n=null===(e=this.scrollingElement)||void 0===e?void 0:e.scrollLeft,r=null===(t=this.scrollingElement)||void 0===t?void 0:t.scrollWidth,a=null===(i=this.scrollingElement)||void 0===i?void 0:i.clientWidth
if(r<a){this.showScrollLeft=!1
this.showScrollRight=!1
return}const o=n>0,s=n<r-a
if(o&&!s){var d,c
null===(d=(c=this.args).onSlideTransitionComplete)||void 0===d||d.call(c)}this.showScrollLeft=o
this.showScrollRight=s
if(l.default.testing){this.showScrollLeft=!0
this.showScrollRight=!0}}setScrollingElement(e){this.scrollingElement=e
this._updateOverflowButtons()}updateOverflowButtons(){this._updateOverflowButtons()}scrollHandler(e){(0,h.mutateDOM)((()=>{if(!this.isDestroying){var t,i
const n=null===(t=this.scrollingElement)||void 0===t?void 0:t.clientWidth,r=null===(i=this.scrollingElement)||void 0===i?void 0:i.scrollLeft,a="LEFT"===e?r-n:r+n
this.scrollingElement.scrollLeft=a
this._updateOverflowButtons()}}))}},m=(0,n.default)(g.prototype,"showScrollRight",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,n.default)(g.prototype,"showScrollLeft",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,n.default)(g.prototype,"scrollingElement",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(g.prototype,"setScrollingElement",[u.action],Object.getOwnPropertyDescriptor(g.prototype,"setScrollingElement"),g.prototype),(0,n.default)(g.prototype,"updateOverflowButtons",[u.action],Object.getOwnPropertyDescriptor(g.prototype,"updateOverflowButtons"),g.prototype),(0,n.default)(g.prototype,"scrollHandler",[u.action],Object.getOwnPropertyDescriptor(g.prototype,"scrollHandler"),g.prototype),g);(0,a.setComponentTemplate)(y,_)}))
define("sharing-v2/components/guider/guider-prompt",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const r=(0,i.createTemplateFactory)({id:"r7CShVlY",block:'[[[41,[28,[37,1],[[30,1,["textToInsert"]],[30,1,["detourType"]],[30,1,["editText"]]],null],[[[1," "],[8,[39,2],[[16,"aria-label",[30,1,["textToInsert"]]],[24,"data-view-name","sharebox-guider-prompt-cta"],[4,[38,3],["click",[28,[37,4],[[30,2],[30,1]],null]],null],[4,[38,5],null,[["viewName","view","genericTrackingLixKey","routeName","currentRoute"],["sharebox-guider-prompt-cta",[30,0],"voyager.web.tracking3-batch-7",[28,[37,6],[[53,"outletState"],"render.name"],null],[28,[37,6],[[53,"outletState"],"render"],null]]]]],[["@type","@size","@class","@color"],["tertiary","2","share-guider-button-prompt__button","default"]],[["default"],[[[[1,"\\n "],[8,[39,8],null,[["@tvm"],[[30,1,["name"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"t-14 t-black--light share-guider-prompt__text"],[12],[1,"\\n "],[8,[39,8],null,[["@tvm"],[[30,1,["name"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]]],["@prompt","@onPromptClick"],false,["if","global-helpers@or","artdeco-button@artdeco-button","on","fn","ember-cli-pemberly-tracking@track-view","get","-get-dynamic-var","text-view-model@text-view-model-v2"]]',moduleName:"sharing-v2/components/guider/guider-prompt.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(r,(0,n.default)())}))
define.alias("ember-highcharts/components/high-charts","sharing-v2/components/high-charts")
define.alias("image-editor/components/image-editor-loader","sharing-v2/components/image-editor-loader")
define.alias("image-editor/components/image-editor","sharing-v2/components/image-editor")
define.alias("ember-finite-scroll/components/item-container","sharing-v2/components/item-container")
define.alias("ember-vector-images/components/lazy-background","sharing-v2/components/lazy-background")
define.alias("ember-vector-images/components/lazy-image","sharing-v2/components/lazy-image")
define.alias("ember-line-clamp/components/line-clamp","sharing-v2/components/line-clamp")
define.alias("artdeco-icons-web/components/linkedin-logo","sharing-v2/components/linkedin-logo")
define.alias("ember-cloud-filepicker/components/local-file-input","sharing-v2/components/local-file-input")
define.alias("ember-media-player/components/media-player","sharing-v2/components/media-player")
define("sharing-v2/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","sharing-v2/components/onedrive-file-picker")
define("sharing-v2/components/open-share-box",["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","@ember/destroyable","@glimmer/component","@glimmer/tracking","tracked-toolbox","@ember/service","@ember/debug","@ember/object","@ember/utils","global-utils/utils/api-compat","ember-copy","ember-lifeline","global-utils/utils/is-browser","sharing-shared/utils/text-view-model-helpers","rsvp","detour-framework/utils/detour-buttons","detour-framework/utils/partner-detour-buttons","sharing-v2/utils/guider/dash-guider-manager","sharing-v2/utils/visibility/share-box-actor","sharing-v2/utils/visibility/comment-restriction","sharing-shared/utils/share-create-request","sharing-shared/utils/norm-share-utils","sharing-v2/utils/share-status-helper","detour-framework/utils/detour-constants","sharing-v2/utils/sharing-constants","sharing-shared/utils/sharing-shared-constants","sharing-shared/utils/client-sensor-utils","sharing-v2/utils/sharing-utils","sharing-v2/utils/repost-education-utils","sharing-v2/utils/visibility/visibility-option","sharing-v2/utils/visibility/visibility-utils","detour-framework/utils/preview-utils","organization-detour/url-preview-detour-manager","sharing-shared/utils/client-sensor-constants","sharing-v2/utils/visibility/visibility-option-configs","text-view-model/utils/generator","scaffold-sound/services/sound","sharing-v2/utils/tracked-post-contents","detour-framework/utils/media-data","vector/utils/constants","media-shared/utils/media-upload-error","media-modifiers/utils/track-drag-and-drop","sharing-shared/utils/sharing-shared-utils","sharing-shared/utils/instant-repost","tracked-built-ins","writing-assistant/utils/writing-assistant-constants","global-utils/utils/url"],(function(e,t,i,n,r,a,o,s,l,d,c,u,h,p,g,m,b,f,y,_,T,v,E,S,I,C,A,O,D,N,w,P,R,k,M,x,V,L,U,B,H,F,W,z,G,j,Y,K,q,X,Q,$,Z,J){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var ee,te,ie,ne,re,ae,oe,se,le,de,ce,ue,he,pe,ge,me,be,fe,ye,_e,Te,ve,Ee,Se,Ie,Ce,Ae,Oe,De,Ne,we,Pe,Re,ke,Me,xe,Ve,Le,Ue,Be,He,Fe,We,ze,Ge,je,Ye,Ke,qe,Xe,Qe,$e,Ze,Je,et,tt,it,nt,rt,at,ot,st,lt,dt,ct,ut,ht,pt,gt,mt,bt,ft,yt,_t,Tt,vt,Et,St,It,Ct,At,Ot,Dt,Nt,wt,Pt,Rt,kt,Mt,xt,Vt,Lt,Ut,Bt,Ht,Ft,Wt,zt,Gt,jt,Yt,Kt,qt,Xt,Qt,$t,Zt,Jt,ei
const ti=(0,s.createTemplateFactory)({id:"B8bC6D2G",block:'[[[11,0],[24,0,"full-height"],[17,1],[12],[1,"\\n "],[10,0],[14,0,"share-box"],[12],[1,"\\n"],[41,[28,[37,1],[[30,0,["currentShareboxState"]],"CREATION"],null],[[[1," "],[8,[39,2],null,[["@aiInputQueryWordCount","@autoFocusTexteditor","@broadcastContentAttached","@canBeScheduled","@chooserMenuButtons","@currentActor","@currentCommentRestriction","@currentVisibility","@cursorRange","@customPrimaryButtonText","@detourPreviewEditControlInteractionEventName","@detourPreviewRemoveControlInteractionEventName","@detourPreviewStatusData","@editDetour","@editedShareHasChanged","@focusOnActive","@goToPostManager","@goToVisibilityScreen","@groupId","@guiderManager","@hasUpsellTooltipBeenDismissed","@headerType","@hideCreationStateFooter","@improveWithAiHandler","@improveWithAiQuery","@invalidAiInputErrorMessage","@isAiDraftUnmodified","@isAiInputQueryTooShort","@isDashUpdate","@isInBroadcastMode","@isOrganizationActor","@isPostRequestPending","@isPremiumUpsellExperienceEnabled","@isScheduledPostsEnabled","@isShowingDetourPreview","@isWritingAssistantEnabled","@isWritingAssistantV2Enabled","@onEditShareMedia","@onFoundUrl","@onScheduleSelected","@openDetour","@pasteEventHandler","@postFailureErrorMessage","@previewedUpdateV2","@publishPost","@removeDetourPreview","@scheduledDate","@scheduledTimestamp","@shareboxHasAttachment","@shareboxHasValidContent","@shareBoxSessionId","@shareBoxSessionUrn","@shareContentsData","@shareOrigin","@shareType","@shouldShowWritingAssistantInputLimitMessage","@showActorToggle","@showDetourPreviewEditButton","@showDetourPreviewError","@showDetourPreviewLoading","@showDetourPreviewRemoveButton","@showInlineHeader","@showWritingAssistantErrorMessage","@textInputI18nPlaceholderText","@undoAiDraftHandler","@updateAiGeneratedData","@updateShareViewModel","@updateV2","@upsellCardData","@upsellTooltipDismissHandler","@usingStickyVisibility","@writingAssistantTreatment","@waMinInputWordsRequired"],[[30,0,["aiInputQueryWordCount"]],[30,0,["autoFocusTexteditor"]],[30,0,["broadcastContentAttached"]],[30,0,["canBeScheduled"]],[30,0,["chooserMenuDetourButtons"]],[30,0,["currentActor"]],[30,0,["currentCommentRestriction"]],[30,0,["currentVisibility"]],[30,0,["cursorRange"]],[30,2],[30,0,["detourPreviewEditControlInteractionEventName"]],[30,0,["detourPreviewRemoveControlInteractionEventName"]],[30,0,["detourPreviewStatusData"]],[30,0,["editDetour"]],[30,0,["editedShareHasChanged"]],[30,0,["focusOnActive"]],[30,0,["goToPostManager"]],[30,0,["goToVisibilityScreen"]],[30,3],[30,0,["guiderManager"]],[30,0,["hasUpsellTooltipBeenDismissed"]],[30,4],[30,5],[30,0,["improveWithAiHandler"]],[30,0,["improveWithAiQuery"]],[30,0,["invalidAiInputErrorMessage"]],[30,0,["isAiDraftUnmodified"]],[30,0,["isAiInputQueryTooShort"]],[30,0,["isDashUpdate"]],[30,0,["isInBroadcastMode"]],[30,0,["isOrganizationActor"]],[30,0,["isPostRequestPending"]],[30,6],[30,0,["isScheduledPostsEnabled"]],[30,0,["isShowingDetourPreview"]],[30,7],[30,8],[30,0,["onEditShareMedia"]],[30,0,["onFoundUrl"]],[30,0,["onScheduleSelected"]],[30,0,["openDetour"]],[30,0,["pasteEventHandler"]],[30,0,["postFailureErrorMessage"]],[30,0,["previewedUpdateV2"]],[30,0,["publishPost"]],[30,0,["removeDetourPreview"]],[30,0,["scheduledDate"]],[30,0,["scheduledAt"]],[30,0,["shareboxHasAttachment"]],[30,0,["shareboxHasValidContent"]],[30,9],[30,10],[30,0,["trackedPostContents"]],[30,11],[30,12],[30,0,["shouldShowWritingAssistantInputLimitMessage"]],[30,0,["showActorToggle"]],[30,0,["showDetourPreviewEditButton"]],[30,0,["showDetourPreviewError"]],[30,0,["showDetourPreviewLoading"]],[30,0,["showDetourPreviewRemoveButton"]],[30,13],[30,0,["showWritingAssistantErrorMessage"]],[30,0,["textInputI18nPlaceholderText"]],[30,0,["undoAiDraftHandler"]],[30,0,["updateAiGeneratedData"]],[30,0,["updateShareViewModel"]],[30,14],[30,15],[30,0,["upsellTooltipDismissHandler"]],[30,0,["useStickyVisibility"]],[30,16],[30,0,["waMinInputWordsRequired"]]]],null],[1,"\\n"]],[]],null],[41,[28,[37,1],[[30,0,["currentShareboxState"]],"DETOUR"],null],[[[44,[[50,[28,[37,5],[[30,0,["detourPath"]]],null],0,null,null]],[[[1," "],[8,[30,17],null,[["@class","@detourData","@goToCreation","@nonMemberActor","@onDetourComplete","@setHasUnsavedDetourChanges","@shouldShowBackButton"],["full-height",[30,0,["detourData"]],[30,0,["goToCreation"]],[52,[30,0,["currentActor","isNonMemberActor"]],[30,0,["currentActor"]]],[30,0,["onDetourComplete"]],[30,0,["setHasUnsavedDetourChanges"]],true]],null],[1,"\\n"]],[17]]]],[]],null],[41,[28,[37,1],[[30,0,["currentShareboxState"]],"VISIBILITY"],null],[[[1," "],[8,[39,6],null,[["@authorAndAudienceSettings","@availableActors","@eventContentVisibilityRestriction","@excludedVisibilityTypes","@goToCreation","@headerType","@isFixedVisibility","@isInBroadcastMode","@isInEditMode","@isInRepostMode","@protectedMediaPresentForDraft","@shareboxHasAttachment","@showInlineHeader","@updateAuthorAndAudienceSettings","@visibilityScreen"],[[30,0,["authorAndAudienceSettings"]],[30,0,["availableActors"]],[30,0,["eventContentVisibilityRestriction"]],[30,18],[30,0,["goToCreation"]],[30,4],[30,0,["isFixedVisibility"]],[30,0,["isInBroadcastMode"]],[30,0,["isInEditMode"]],[30,0,["isInRepostMode"]],[30,0,["protectedMediaPresentForDraft"]],[30,0,["shareboxHasAttachment"]],[30,13],[30,0,["updateAuthorAndAudienceSettings"]],[30,0,["visibilityScreen"]]]],null],[1,"\\n"]],[]],null],[41,[28,[37,1],[[30,0,["currentShareboxState"]],"MANAGEMENT"],null],[[[1," "],[8,[39,7],null,[["@canBeScheduled","@goToCreation","@onScheduleSelected","@organizationActor","@showInlineHeader","@timestamp","@updateModalConfig"],[[30,0,["canBeScheduled"]],[30,0,["goToCreation"]],[30,0,["onScheduleSelected"]],[52,[30,0,["isOrganizationActor"]],[30,0,["currentActor"]]],[30,13],[30,0,["scheduledAt"]],[30,0,["updateModalConfig"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13]],["&attrs","@customPrimaryButtonText","@groupId","@headerType","@hideCreationStateFooter","@isPremiumUpsellExperienceEnabled","@isWritingAssistantEnabled","@isWritingAssistantV2Enabled","@shareBoxSessionId","@shareBoxSessionUrn","@shareOrigin","@shareType","@showInlineHeader","@updateV2","@upsellCardData","@writingAssistantTreatment","DetourComponent","@excludedVisibilityTypes"],false,["if","global-helpers@eq","sharing-v2@creation-state","let","component","ember-holy-futuristic-template-namespacing-batman-translate-dynamic-2","sharing-v2@visibility/visibility-manager","sharing-v2@post-manager"]]',moduleName:"sharing-v2/components/open-share-box.hbs",isStrictMode:!1}),ii={MANAGEMENT:"management"}
let ni=e.default=(ee=(0,h.inject)("global-services@a11y-notification"),te=(0,h.inject)("client-sensor-web@client-sensor"),ie=(0,h.inject)("i18n"),ne=(0,h.inject)("jet"),re=(0,h.inject)("lix"),ae=(0,h.inject)("locale"),oe=(0,h.inject)("m3-schema"),se=(0,h.inject)("persistent-toast-manager@persistent-toast-manager"),le=(0,h.inject)("social-counts-service@social-counts"),de=(0,h.inject)("scaffold-sound@sound"),ce=(0,h.inject)("global-services@store-shim"),ue=(0,h.inject)("tracking"),he=(0,h.inject)("sharing-shared@typeahead-tracking"),pe=(0,h.inject)("watchman-tracking@watchman-tracking"),ge=(0,h.inject)("global-services@window"),me=(0,h.inject)("vector@vector-media-upload"),be=(0,h.inject)("lego@resolver"),fe=(0,h.inject)("lego@tracking"),ye=(0,h.inject)("@linkedin/ember-restli-graphql@graphql"),_e=(0,h.inject)("router"),Te=(jt=new WeakSet,Yt=new WeakSet,Kt=new WeakSet,qt=new WeakSet,Xt=new WeakSet,Qt=new WeakSet,$t=new WeakSet,Zt=new WeakSet,Jt=new WeakSet,ei=new WeakSet,class extends d.default{get aiInputQueryWordCount(){var e,t
const i=(null===(e=this.trackedPostContents)||void 0===e?void 0:e.text)||""
return(null==i||null===(t=i.match(/(\w+'\w+)|(\b\w+\b)/g))||void 0===t?void 0:t.length)||0}get authorAndAudienceSettings(){var e
return{actor:this.currentActor,commentRestriction:this.currentCommentRestriction,commentRestrictionUserSelectionType:this.commentRestrictionUserSelectionType,stickyVisibilityData:this.currentStickyVisibilityData,targetedAudience:this.currentTargetedAudience,twitterAuthorized:null===(e=this.args.initializationData)||void 0===e?void 0:e.twitterAuthorized,visibility:this.currentVisibility,isPaidEndorsement:this.currentIsPaidEndorsement}}get autoFocusTexteditor(){return this.isTextEditorFocused||!this.args.disableTexteditorAutoFocus}get availableActors(){return this.args.shareboxAvailableActors.map((e=>new C.default(e,this.formatter)))}get broadcastContentAttached(){var e
return(null===(e=this.args.initialDetourManager)||void 0===e?void 0:e.detourType)===w.DETOUR_TYPES.BROADCAST_TO_SHARE}get canBeSavedAsDraft(){var e
return this.isAllowedDraftEntrypoint&&!this.isInEditMode&&!P.EXTERNAL_DETOURS.includes(null===(e=this.detourManager)||void 0===e?void 0:e.detourType)&&!this.multiImageContentAttached}get canBeScheduled(){if(this.isScheduledPostsEnabled){var e
return!(P.EXTERNAL_DETOURS.includes(null===(e=this.detourManager)||void 0===e?void 0:e.detourType)||this.multiImageContentAttached||this.currentVisibility.type===R.VALID_VISIBILITY_TYPES.SELECT_VISIBILITY)}return!1}get chooserMenuDetourButtons(){var e,t
return(0,E.getDetourButtons)(S.REGISTERED_CHOOSER_MENU_DETOUR_BUTTONS,this.lix,this.locale,null===(e=this.currentActor)||void 0===e?void 0:e.actorType,null===(t=this.currentVisibility)||void 0===t?void 0:t.type)}get currentActor(){return this.localActor||this.initialActor}get currentShareboxState(){return this.shareboxState||this.initialShareboxState}get currentStickyVisibilityData(){return this.localStickyVisibilityData?this.localStickyVisibilityData:this.initializationStickyVisibilityData}get dashOrganizationActorUrn(){return this.isOrganizationActor?this.currentActor.dashUrn:null}get dashPostCreationEnabled(){return!this.args.disableDashPostCreation&&this.isDashPostCreationLixEnabled}get detourManagerCustomTextInputPlaceholderText(){var e,t
return null===(e=this.detourManager)||void 0===e||null===(t=e.getPlaceholderText)||void 0===t?void 0:t.call(e)}get detourPath(){return w.DETOUR_PATHS[this.detourType]}get detourPreviewEditControlInteractionEventName(){const e=P.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.EDIT_PREVIEW_PREFIX,t=this.detourType
return`${e}${null==t?void 0:t.toLowerCase()}`}get detourPreviewRemoveControlInteractionEventName(){const e=P.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.REMOVE_PREVIEW_PREFIX,t=this.detourType
return`${e}${null==t?void 0:t.toLowerCase()}`}get detourPreviewState(){var e
return null===(e=this.detourPreviewData)||void 0===e?void 0:e.previewState}get detourPreviewStatusData(){var e
return null===(e=this.detourPreviewData)||void 0===e?void 0:e.previewStatusData}get draftPostHasChanged(){return!!this.isInDraftMode&&((0,m.isPresent)(this.newEditedCommentary)||this.draftAttachmentHasChanged||this.draftCommentRestrictionHasChanged)}get dragAndDropError(){return this.dragAndDropErrorMessage??this.args.dragAndDropErrorMessage}get editedShareHasChanged(){return!!this.isInEditMode&&((0,m.isPresent)(this.newEditedCommentary)||(0,m.isPresent)(this.editedShareMedia))}get eventContentAttached(){var e
return(null===(e=this.detourManager)||void 0===e?void 0:e.detourType)===w.DETOUR_TYPES.EVENTS}get eventContentVisibilityRestriction(){return this.eventContentAttached}get ignoreShareboxInitializationData(){return!(!this.isFixedVisibility&&this.args.initializationData&&!this.isInEditMode&&!this.args.excludedVisibilityTypes)}get initialActor(){var e
return new C.default(null===(e=this.args.shareboxAvailableActors)||void 0===e?void 0:e[0],this.formatter)}get initializationDraftData(){if(!this.ignoreShareboxInitializationData)return this.args.initializationData.draft}get initializationStickyVisibilityData(){if(!this.ignoreShareboxInitializationData)return this.args.initializationData.visibilities}get isAiDraftUnmodified(){return!!(this.args.isWritingAssistantEnabled&&this.trackedPostContents.text&&this.aiGeneratedText)&&this.trackedPostContents.text.trim()===this.aiGeneratedText.trim()}get isAiInputQueryTooShort(){return this.aiInputQueryWordCount<this.waMinInputWordsRequired}get isAllowedDraftEntrypoint(){const e=this.args.shareOrigin===R.SHARE_ORIGIN.FEED&&!this.isOrganizationActor,t=this.args.shareOrigin===R.SHARE_ORIGIN.ORGANIZATION
return e||t}get isDashPostCreationLixEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.sharing-dash-post-creation")}get isDashUpdate(){return(0,m.isPresent)(this.args.updateV2)&&"com.linkedin.voyager.dash.feed.Update"===(0,b.classNameOf)(this.args.updateV2)||this.isDetourPreviewDash}get isFixedVisibility(){return!!this.args.fixedVisibilityType}get isGraphQlEnabledForShareDelete(){return this.lix.getTreatmentIsEnabled("voyager.web.sharing-share-delete-graphql")}get isInBroadcastMode(){var e
if(this.isInEditMode){var t,i,n,r
return this.isDashUpdate?(null===(t=this.args.updateV2)||void 0===t||null===(i=t.metadata)||void 0===i?void 0:i.shareAudience)===P.SHARE_AUDIENCE_VISIBILITY.EMPLOYEES:(null===(n=this.args.updateV2)||void 0===n||null===(r=n.updateMetadata)||void 0===r?void 0:r.shareAudience)===P.SHARE_AUDIENCE_VISIBILITY.EMPLOYEES}return(null===(e=this.args.fixedVisibilityType)||void 0===e?void 0:e.type)===R.VALID_VISIBILITY_TYPES.EMPLOYEE_BROADCAST_FEED}get isInDraftMode(){return this.args.shareType===R.SHARE_TYPES.DRAFT}get isInEditMode(){return this.args.shareType===R.SHARE_TYPES.EDIT}get isInRepostMode(){return this.args.shareType===R.SHARE_TYPES.REPOST}get isMultiphotoMaxItemCountEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.media-multi-photo-max-item-count")}get isOrganizationActor(){var e
return(null===(e=this.currentActor)||void 0===e?void 0:e.actorType)===R.ACTOR_TYPES.company}get isOrganizationalPagesEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.organization-org-pages-to-sharebox-identity-switcher")}get isPageContentGraphQLEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.hiring-lego-page-content-graphql-migration")}get isPrefilledTextUnmodified(){const{originalShareContentsData:e,trackedPostContents:t}=this
return!!(this.args.showPrefilledTextUnmodifiedWarning&&this.args.prefilledTextTVMV2&&e&&t)&&(0,X.areTextAndMentionsEqual)(e,t)}get isPrefilledTextWithAiDraftUnmodified(){const{aiGeneratedText:e,originalShareContentsData:t,trackedPostContents:i}=this,{isWritingAssistantEnabled:n,prefilledTextTVMV2:r,showPrefilledTextUnmodifiedWarning:a}=this.args
return!!(e&&n&&t&&r&&a&&i)&&`${t.text}${e}`.trim()===this.trackedPostContents.text.trim()}get isRepostUrlPreview(){var e,t
if(this.isUrlPreviewDashLixEnabled){var i,n
return!(null===(i=this.previewedUpdateV2)||void 0===i||null===(n=i.metadata)||void 0===n||!n.shareUrn)}return!(null===(e=this.previewedUpdateV2)||void 0===e||null===(t=e.updateMetadata)||void 0===t||!t.shareUrn)}get isScheduledPostsEnabled(){return[R.SHARE_ORIGIN.CREATOR_DASHBOARD_PROMPTS,R.SHARE_ORIGIN.FEED,R.SHARE_ORIGIN.FEED_THOUGHT_STARTERS,R.SHARE_ORIGIN.DEEPLINK,R.SHARE_ORIGIN.ORGANIZATION,R.SHARE_ORIGIN.PROFILE,R.SHARE_ORIGIN.PUBLISHING,R.SHARE_ORIGIN.RESHARE].includes(this.args.shareOrigin)}get isShowingDetourPreview(){return this.shareboxHasAttachment&&!this.args.hideDetourPreview}get isThoughtStarters(){return new Set([R.SHARE_ORIGIN.CREATOR_DASHBOARD_PROMPTS,R.SHARE_ORIGIN.FEED_THOUGHT_STARTERS,R.SHARE_ORIGIN.FEED_CAMPAIGN_PROMPTS]).has(this.args.shareOrigin)}get isUrlPreviewDashLixEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.sharing-dash-url-preview")}get isWritingAssistantEnabled(){return this.args.isWritingAssistantEnabled&&!this.isOrganizationActor}get isWritingAssistantV2Enabled(){return this.args.isWritingAssistantV2Enabled&&this.isWritingAssistantEnabled}get multiImageContentAttached(){var e
if((null===(e=this.detourManager)||void 0===e?void 0:e.detourType)===w.DETOUR_TYPES.IMAGE){var t
return(null===(t=this.detourData)||void 0===t?void 0:t.isMultiImage)&&this.shouldCheckMultiImageIsPresent}return!1}get multiPhotoUploadLimit(){return this.isMultiphotoMaxItemCountEnabled?Y.IMAGE_UPLOAD_LIMIT_NEW:Y.IMAGE_UPLOAD_LIMIT}get newEditedCommentary(){return!this.isInEditMode&&!this.isInDraftMode||(0,X.areTextAndMentionsEqual)(this.originalShareContentsData,this.trackedPostContents)?null:this.trackedPostContents}get previewIsRemovable(){return this.shareboxHasAttachment&&this.showDetourPreviewRemoveButton}get promptWarningDialogBeforeClosingDetour(){return this.hasUnsavedDetourChanges&&this.currentShareboxState===P.SHAREBOX_STATE.DETOUR}get promptWarningDialogBeforeClosingSharebox(){return this.shareboxHasValidContent&&!this.isInEditMode||this.isInEditMode&&this.editedShareHasChanged||this.isInDraftMode}get promptWarningDialogBeforeNavigatingToPremium(){return this.args.isPremiumUpsellExperienceEnabled&&this.shareboxHasValidContent&&this.premiumTargetUrl}get promptWarningDialogBeforePosting(){return this.isAiDraftUnmodified||this.isPrefilledTextUnmodified||this.isPrefilledTextWithAiDraftUnmodified||this.showInsantRepostEducationDialog}get repostEducationEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.feed-repost-education")}get scheduledDate(){return this.scheduledAt?new Date(this.scheduledAt):null}get shareboxHasAttachment(){return!(0,m.isEmpty)(this.previewedUpdateV2)}get shareboxHasValidContent(){return!this.showDetourPreviewError&&this.shareboxHasAttachment||this.trackedPostContents.hasText}get shouldCheckMultiImageIsPresent(){return!this.lix.getTreatmentIsEnabled("voyager.web.sharing-multi-image-is-ugc-v2")}get shouldConvertToInstantRepost(){return this.isInRepostMode&&!this.trackedPostContents.hasText&&!this.scheduledAt&&this.currentVisibility.type===R.VALID_VISIBILITY_TYPES.ANYONE&&this.repostEducationEnabled}get shouldShowWritingAssistantInputLimitMessage(){return this.isWritingAssistantV2Enabled&&"v2_premium"!==this.args.writingAssistantTreatment&&this.shouldCheckWordLengthForWritingAssistant&&this.isAiInputQueryTooShort}get showActorToggle(){return this.availableActors.length>1&&!this.isInEditMode}get showDetourPreviewEditButton(){return this.isShowingDetourPreview&&this.detourManager&&this.detourData&&this.detourPath&&!this.args.disableDetourEdit}get showDetourPreviewError(){return this.detourPreviewState===w.DETOUR_PREVIEW_STATES.FAILED&&!this.args.hideDetourPreview}get showDetourPreviewLoading(){return(this.detourPreviewState===w.DETOUR_PREVIEW_STATES.IN_PROGRESS||this.draftMediaIsLoading)&&!this.args.hideDetourPreview}get showDetourPreviewRemoveButton(){return this.isShowingDetourPreview&&!this.args.disableDetourPreviewRemoval&&!this.isInEditMode}get showInsantRepostEducationDialog(){return this.shouldConvertToInstantRepost&&this.repostEducationUtility.repostEducationTrackingToken}get showPaidEndorsement(){return!this.isInEditMode}get showWritingAssistantErrorMessage(){var e
return(null===(e=this.trackedPostContents)||void 0===e?void 0:e.text)===this.invalidAiInputQuery&&!!this.invalidAiInputErrorMessage}get showWritingAssistantPersistentEntryPoint(){return this.isThoughtStarters&&this.args.isWritingAssistantEnabled}get textInputI18nPlaceholderText(){return this.detourManagerCustomTextInputPlaceholderText||this.args.customTextInputI18nPlaceholderText||(this.isWritingAssistantV2Enabled?this._getI18nMessage("i18n_writing_assistant_placeholder"):this._getI18nMessage("i18n_default_focused_placeholder_text"))}get useStickyVisibility(){var e
return!(this.ignoreShareboxInitializationData||null!==(e=this.currentActor)&&void 0!==e&&e.isNonMemberActor)}get waFeedbackCardView(){return this.writingAssistantFeedbackCardView}constructor(){super(...arguments)
ei.add(this)
Jt.add(this)
Zt.add(this)
$t.add(this)
Qt.add(this)
Xt.add(this)
qt.add(this)
Kt.add(this)
Yt.add(this)
jt.add(this);(0,t.default)(this,"a11yNotification",ve,this);(0,t.default)(this,"clientSensor",Ee,this);(0,t.default)(this,"formatter",Se,this);(0,t.default)(this,"i18n",Ie,this);(0,t.default)(this,"jet",Ce,this);(0,t.default)(this,"lix",Ae,this);(0,t.default)(this,"locale",Oe,this);(0,t.default)(this,"m3Schema",De,this);(0,t.default)(this,"persistentToastManager",Ne,this);(0,t.default)(this,"socialCountsService",we,this);(0,t.default)(this,"sound",Pe,this);(0,t.default)(this,"storeShim",Re,this);(0,t.default)(this,"tracking",ke,this);(0,t.default)(this,"typeaheadTracking",Me,this);(0,t.default)(this,"watchmanTracking",xe,this);(0,t.default)(this,"windowService",Ve,this);(0,t.default)(this,"vectorMediaUpload",Le,this);(0,t.default)(this,"legoResolver",Ue,this);(0,t.default)(this,"legoTracking",Be,this);(0,t.default)(this,"graphql",He,this);(0,t.default)(this,"router",Fe,this);(0,i.default)(this,"anyoneVisibilityOptionType",(0,L.buildVisibilityOptionFromConfig)(this.i18n,F.ANYONE_VISIBILITY_CONFIG));(0,i.default)(this,"controlInteractionEvents",P.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS);(0,i.default)(this,"dragAndDropEnabled",void 0);(0,i.default)(this,"waMinInputWordsRequired",20);(0,i.default)(this,"warningDialogWasRendered",!1);(0,t.default)(this,"aiInputQuery",We,this);(0,t.default)(this,"aiGeneratedText",ze,this);(0,t.default)(this,"attachedShareMediaUrn",Ge,this);(0,t.default)(this,"commentRestrictionUserSelectionType",je,this);(0,t.default)(this,"currentCommentRestriction",Ye,this);(0,t.default)(this,"currentIsPaidEndorsement",Ke,this);(0,t.default)(this,"currentTargetedAudience",qe,this);(0,t.default)(this,"currentVisibility",Xe,this);(0,t.default)(this,"cursorRange",Qe,this);(0,t.default)(this,"dashDetourPreviewHandler",$e,this);(0,t.default)(this,"detourData",Ze,this);(0,t.default)(this,"detourManager",Je,this);(0,t.default)(this,"detourPreviewData",et,this);(0,t.default)(this,"detourPreviewHandler",tt,this);(0,t.default)(this,"detourStatusHandler",it,this);(0,t.default)(this,"detourType",nt,this);(0,t.default)(this,"draftAttachmentHasChanged",rt,this);(0,t.default)(this,"draftCommentRestrictionHasChanged",at,this);(0,t.default)(this,"draftData",ot,this);(0,t.default)(this,"draftMediaIsLoading",st,this);(0,t.default)(this,"dragAndDropErrorMessage",lt,this);(0,t.default)(this,"editedShareMedia",dt,this);(0,t.default)(this,"focusOnActive",ct,this);(0,t.default)(this,"gaiContentUrn",ut,this);(0,t.default)(this,"hasInteractedWithWritingAssistant",ht,this);(0,t.default)(this,"hasUnsavedDetourChanges",pt,this);(0,t.default)(this,"hasUpsellTooltipBeenDismissed",gt,this);(0,t.default)(this,"improveWithAiQuery",mt,this);(0,t.default)(this,"initialShareboxState",bt,this);(0,t.default)(this,"invalidAiInputErrorMessage",ft,this);(0,t.default)(this,"invalidAiInputQuery",yt,this);(0,t.default)(this,"isDetourPreviewDash",_t,this);(0,t.default)(this,"isPostRequestPending",Tt,this);(0,t.default)(this,"isTextEditorFocused",vt,this);(0,t.default)(this,"isWarningDialogOpen",Et,this);(0,t.default)(this,"isWritingAssistantRequestInProgress",St,this);(0,t.default)(this,"localActor",It,this);(0,t.default)(this,"localStickyVisibilityData",Ct,this);(0,t.default)(this,"nonUgcSupportedDraftChangesMade",At,this);(0,t.default)(this,"originalShareContentsData",Ot,this);(0,t.default)(this,"organizationActors",Dt,this);(0,t.default)(this,"postFailureErrorMessage",Nt,this);(0,t.default)(this,"postingState",wt,this);(0,t.default)(this,"preDetourCharCount",Pt,this);(0,t.default)(this,"previewedUpdateV2",Rt,this);(0,t.default)(this,"protectedMediaPresentForDraft",kt,this);(0,t.default)(this,"repostEducationTrackingToken",Mt,this);(0,t.default)(this,"routedView",xt,this);(0,t.default)(this,"scheduledAt",Vt,this);(0,t.default)(this,"shareboxState",Lt,this);(0,t.default)(this,"shouldCheckWordLengthForWritingAssistant",Ut,this);(0,t.default)(this,"timeZoneDescriptionTVMV2",Bt,this);(0,t.default)(this,"trackedPostContents",Ht,this);(0,t.default)(this,"useDashCreationFlow",Ft,this);(0,t.default)(this,"visibilityScreen",Wt,this);(0,t.default)(this,"writingAssistantFeedbackCardView",zt,this);(0,t.default)(this,"writingAssistantIsOpen",Gt,this)
this._attachBeforeUnloadListener();(0,X.fireShareboxInteractionEvent)({shareSessionUrn:this.args.shareBoxSessionUrn,actionType:R.SHAREBOX_INTERACTION_TYPES.SHARE_BOX_OPEN,tracking:this.tracking})
this.mediaDataGenerator=new j.default({lix:this.lix,windowService:this.windowService,tracking:this.tracking,videoUpload:this.vectorMediaUpload})
if(this.isInEditMode){this._setupEditModeSharebox(this.args.updateV2)
this._initialGoToCreation(!0,!1)}else{var e,r,a,o,s,l,d
this._setInitialCurrentVisibility()
this.currentCommentRestriction=new A.default(this.currentVisibility,this.commentRestrictionUserSelectionType,null===(e=this.currentActor)||void 0===e?void 0:e.isNonMemberActor,this.isInBroadcastMode)
this.currentIsPaidEndorsement=null===(r=this.args.initializationData)||void 0===r||null===(a=r.draft)||void 0===a?void 0:a.paidEndorsement
this._setupShareboxWithInitialContent()
this.guiderManager=new I.DashGuiderManager(this.attachedShareMediaUrn||(null===(o=this.args.updateV2)||void 0===o||null===(s=o.metadata)||void 0===s?void 0:s.backendUrn)||(null===(l=this.args.updateV2)||void 0===l||null===(d=l.updateMetadata)||void 0===d?void 0:d.urn),this.clientSensor,this.currentVisibility.containerEntity,this.shareboxHasAttachment,this.dashOrganizationActorUrn,this.args.shareBoxSessionId,this.trackedPostContents.text,this.storeShim,this.tracking,this.typeaheadTracking)
this.isInDraftMode||this.guiderManager.setInitialPrompt()
this.args.initialDetourData&&(this.detourData=this.args.initialDetourData)
if(this.args.initialDetourType){this.detourType=this.args.initialDetourType
this.initialShareboxState=P.SHAREBOX_STATE.DETOUR}else Object.values(ii).includes(this.args.routedView)?(0,n.default)(this,Xt,li).call(this,this.args.routedView):this._initialGoToCreation(!0,!1)}if(this.args.hideCreationStateFooter){var c,u
null===(c=(u=this.args).registerPostFn)||void 0===c||c.call(u,(()=>this.publishPost()))}if(this.args.registerOnDetourCompleteFn){var h,p
null===(h=(p=this.args).registerOnDetourCompleteFn)||void 0===h||h.call(p,(e=>this.onDetourComplete(e)))}}willDestroy(){super.willDestroy(...arguments)
if(this.detourManager){this.dashDetourPreview?this.detourManager.dashDetourPreview.unsubscribe(this.dashDetourPreviewHandler):this.detourManager.detourPreview.unsubscribe(this.detourPreviewHandler)
this.detourManager.detourStatus.unsubscribe(this.detourStatusHandler)}this._removeBeforeUnloadListener()}_attachBeforeUnloadListener(){_.default&&(0,y.addEventListener)(this,window,"beforeunload",this._beforeUnloadHandler)}_beforeUnloadHandler(e){if(this.promptWarningDialogBeforeClosingSharebox){const t=this._getI18nMessage("i18n_discard_draft_content")
e.preventDefault()
e.returnValue=t
return t}}_callInstantRepost(){this.isPostRequestPending=!0
return(0,Q.default)({storeShim:this.storeShim,rootContentUrn:x.default.getShareUrn(this.args.shareUrn,this.previewedUpdateV2),actor:this.currentActor}).then((e=>{if(!this.isDestroying){var t,i,n,r
if(null!=e&&null!==(t=e.feedbackDataUnion)&&void 0!==t&&t.promptComponentV2)this._renderPostPostPrompt(e.feedbackDataUnion.promptComponentV2)
else if(null!=e&&null!==(i=e.feedbackDataUnion)&&void 0!==i&&i.toastComponent){const{linkUrl:t,linkText:i,text:n}=e.feedbackDataUnion.toastComponent
this._renderSuccessToast({message:n,ctaUrl:t,ctaText:i})}else this._renderSuccessToast({message:null==e?void 0:e.toastMainText,ctaUrl:null==e?void 0:e.toastCtaUrl,ctaText:null==e?void 0:e.toastCtaText})
null===(n=(r=this.args).onShareSuccess)||void 0===n||n.call(r,e,null==e?void 0:e.toastCtaUrl)}})).catch((e=>{if(!this.isDestroying){let t=P.I18N_KEYS.SHARE_UNSUCCESSFUL;(0,M.isDuplicatePostError)(e)&&(t=P.I18N_KEYS.DUPLICATE_SHARE_UNSUCCESSFUL);(0,n.default)(this,Jt,hi).call(this,this._getI18nMessage(t));(0,n.default)(this,ei,pi).call(this)}throw e})).finally((()=>{if(!this.isDestroying){var e,t
this.isPostRequestPending=!1
null===(e=(t=this.args).onCloseShareboxModal)||void 0===e||e.call(t)}}))}_removeBeforeUnloadListener(){_.default&&(0,y.removeEventListener)(this,window,"beforeunload",this._beforeUnloadHandler)}_buildShareCreateRequest(){return(0,n.default)(this,jt,ri).call(this).then((e=>{var t,i,n,r,a,o
if(this.isDestroying)return
const s=null===(t=this.detourManager)||void 0===t||null===(i=t.getReferencedUrn)||void 0===i?void 0:i.call(t),l=null===(n=this.currentVisibility)||void 0===n?void 0:n.type,d=this.isInBroadcastMode?R.DISTRIBUTION_TYPES.CONTAINER_ONLY:void 0,c=this.currentCommentRestriction.type,u=this.postingState===R.POST_STATES.SCHEDULED?this.scheduledAt:void 0,h=this.trackedPostContents
return new O.default({m3Schema:this.m3Schema,store:this.storeShim,jet:this.jet,graphql:this.graphql,currentVisibilityType:l,shareContentsData:h,origin:this.args.shareOrigin,shareMedia:e,previewedUpdateV2:this.previewedUpdateV2,containerEntity:null===(r=this.currentVisibility)||void 0===r?void 0:r.containerEntity,dashNonMemberActorUrn:null!==(a=this.currentActor)&&void 0!==a&&a.isNonMemberActor?this.currentActor.dashUrn:void 0,targetAudience:this.currentTargetedAudience,distribution:d,allowedCommentersScope:c,rootBroadcastUrn:null===(o=this.detourData)||void 0===o?void 0:o.rootBroadcastUrn,postState:this.postingState,scheduledAt:u,isPaidEndorsement:this.currentIsPaidEndorsement,referencedUrn:s})}))}_buildShareStatusData(e){var t,i
const n=this.args.shareStatusCollection||new $.TrackedArray,r=new N.default(this.m3Schema,e.status,this.trackedPostContents.text,this.trackedPostContents.mentions,this.detourManager)
n.unshift(r.generateShareStatusData())
null===(t=(i=this.args).updateShareStatusCollection)||void 0===t||t.call(i,n)}_createNormShareRecord(e){this._buildShareCreateRequest().catch((e=>{if((0,l.isDestroying)(this))throw e
this.jet.logError(e,["sharebox-getShareMedia-fail"],!1)
throw e})).then((t=>{if((0,l.isDestroying)(this))return
return(this.useDashCreationFlow?t.post():t.share()).then((t=>{if(!(0,l.isDestroying)(this)){(0,n.default)(this,$t,ci).call(this,t)
if(e){const t=(0,J.getInAppParams)(this.router,e)
this.router.transitionTo(t)}}}))})).catch((e=>{if((0,l.isDestroying)(this))throw e
this._onShareFailure(e)
if(!e||!e.errors)throw e})).finally((()=>{this.isDestroying||(this.isPostRequestPending=!1)}))}_deleteSavedDraft(){(0,D.deleteNormShare)(this.storeShim,this.initializationDraftData.ugcUrn,this.graphql,this.isGraphQlEnabledForShareDelete).then((()=>{(0,l.isDestroying)(this)||(0,k.fireSharingClientSensor)(this.clientSensor,H.SharingClientSensorMetrics.DELETE_DRAFT_SUCCESS)})).catch((e=>{if((0,l.isDestroying)(this))throw e;(0,k.fireSharingClientSensor)(this.clientSensor,H.SharingClientSensorMetrics.DELETE_DRAFT_FAILURE)
throw e}))}_fetchURLPreview(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
this.watchmanTracking.startInteraction({groupName:"sharing",userJourney:"share-box-core",userInteraction:"sharing-url-preview"})
const i=this.isUrlPreviewDashLixEnabled?(0,M.fetchDashUrlPreviewPromise)(e,this.graphql):(0,M.fetchUrlPreviewPromise)(e,this.storeShim),r=new B.default({urlPreviewDataPromise:i,i18nService:this.i18n,isOrganizationActor:this.isOrganizationActor,isUrlPreviewDashEnabled:this.isUrlPreviewDashLixEnabled,m3Schema:this.m3Schema})
t?(0,n.default)(this,Qt,di).call(this,r):this._onDetourComplete(r)
i.then((e=>{var t,i
if((0,l.isDestroying)(this))return
const n=this.isUrlPreviewDashLixEnabled?null===(t=e.data)||void 0===t||null===(i=t.contentcreationDashUpdateUrlPreviewByUrl)||void 0===i?void 0:i.elements[0]:e
this._onUrlPreviewData(r,n)
this.watchmanTracking.endInteraction({groupName:"sharing",userJourney:"share-box-core",userInteraction:"sharing-url-preview"})})).catch((e=>{if((0,l.isDestroying)(this))throw e
this.detourManager=null
this.watchmanTracking.endInteractionWithError({groupName:"sharing",userJourney:"share-box-core",userInteraction:"sharing-url-preview"})
throw new Error("Ember Data Request GET /voyager/api/contentcreation/urlPreview [sharing-v2-base/share-box]")}))}_getDraftSuccessToast(){this._renderSuccessToast({message:this._getI18nMessage(P.I18N_KEYS.SUCCESS_TOAST_DRAFT)})}_getFixedVisibilityOption(){var e
return null!==(e=this.args.fixedVisibilityType)&&void 0!==e&&e.containerEntity?(0,L.formatContainerFixedVisibilityOption)(this.args.fixedVisibilityType):this.anyoneVisibilityOptionType}_getI18nMessage(e){if(this.isDestroying)return""
if(!this.i18nCache||!this.i18nCache[e]){const t=(0,f.copy)(this.i18nCache)||{}
t[e]=this.i18n.lookupTranslation("components/sharing-v2@open-share-box",e)()
this.i18nCache=t}return this.i18nCache[e]}_getPostPostPrompt(e){var t,i
const n=e.status,r=null===(t=e.data)||void 0===t||null===(i=t.createContentcreationDashShares.entity)||void 0===i?void 0:i.status
if(r||n){var a,o,s,l,d,c,u,h
this.args.openPostPostPrompt({promptComponent:null==n?void 0:n.promptComponent,promptComponentV2:null==n?void 0:n.promptComponentV2,dashPromptComponent:null==r||null===(a=r.feedbackData)||void 0===a?void 0:a.promptComponentV2,mainToastText:null==n?void 0:n.mainToastText,mainToastCtaText:null==n?void 0:n.toastCtaText,mainToastCtaUrl:null==n?void 0:n.toastCtaUrl,successIcon:null==n?void 0:n.successIcon,modalTitle:null==n?void 0:n.modalTitle,updateTrackingId:(null==r||null===(o=r.lifecycleState)||void 0===o||null===(s=o.PublishedState)||void 0===s||null===(l=s.metadata)||void 0===l||null===(d=l.trackingData)||void 0===d?void 0:d.trackingId)||(null==n||null===(c=n.updateV2)||void 0===c||null===(u=c.updateMetadata)||void 0===u||null===(h=u.trackingData)||void 0===h?void 0:h.trackingId),promptProviderType:null==n?void 0:n.promptType})}this._handleOnSuccessCallback(e)}_getPostSuccessToast(e){var t,i,n,r
const a=null==e?void 0:e.status,o=null==e||null===(t=e.data)||void 0===t||null===(i=t.createContentcreationDashShares.entity)||void 0===i||null===(n=i.status)||void 0===n||null===(r=n.feedbackData)||void 0===r?void 0:r.toastComponent,s=(null==o?void 0:o.text)||(null==a?void 0:a.mainToastText),l=(null==o?void 0:o.linkText)||(null==a?void 0:a.toastCtaText),d=(null==o?void 0:o.linkUrl)||(null==a?void 0:a.toastCtaUrl)
s&&l&&d&&this._renderSuccessToast({message:s,ctaText:l,ctaUrl:d})
this._handleOnSuccessCallback(e)}_goToCreation(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]
e||(this.cursorRange={})
this.shareboxState=P.SHAREBOX_STATE.CREATION
this.isTextEditorFocused=t}_initialGoToCreation(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]
e||(this.cursorRange={})
this.initialShareboxState=P.SHAREBOX_STATE.CREATION
this.isTextEditorFocused=t}_handleDetourShareText(e){this.trackedPostContents.appendTextAndMentions(this.storeShim,e)
const t=e&&(!(0,m.isEmpty)(e.values)||!(0,m.isEmpty)(e.text)),{preDetourCharCount:i}=this
t&&i&&(this.cursorRange={startCursor:0,endCursor:i+1})}_handleOnSuccessCallback(e){try{var t,i,n,r,a,o,s,l
const d=(null==e||null===(t=e.data)||void 0===t||null===(i=t.createContentcreationDashShares.entity)||void 0===i||null===(n=i.status)||void 0===n||null===(r=n.feedbackData)||void 0===r||null===(a=r.toastComponent)||void 0===a?void 0:a.linkUrl)||(null==e||null===(o=e.status)||void 0===o?void 0:o.toastCtaUrl)
null===(s=(l=this.args).onShareSuccess)||void 0===s||s.call(l,(0,M.getRecordFromResponse)(e),d,this.postingState);(0,k.fireSharingClientSensor)(this.clientSensor,H.SharingClientSensorMetrics.ON_SHARE_SUCCESS_CALLBACK_SUCCESS)}catch(e){(0,k.fireSharingClientSensor)(this.clientSensor,H.SharingClientSensorMetrics.ON_SHARE_SUCCESS_CALLBACK_FAILURE)
this.jet.info(e,["open-share-box-handle-onsuccess-callback"],{shouldRethrow:!1})}}_onDetourComplete(e){var t;(0,n.default)(this,qt,si).call(this,e)
this.detourManager=e
this.isInDraftMode&&this.multiImageContentAttached&&(this.nonUgcSupportedDraftChangesMade=!0)
this._goToCreation()
const i=null===(t=e.getShareText)||void 0===t?void 0:t.call(e)
i&&this._handleDetourShareText(i)
this.hasUnsavedDetourChanges=!1}_onDetourPreviewDataChanged(e){if(e){this.detourPreviewData=e
const{previewComponent:t,previewAdditionalContents:i,isDashPreview:n}=e
this._setPreviewFeedComponent(t,i,n)}this.isInDraftMode&&(this.draftAttachmentHasChanged=!0)}_onDetourStatusDataChanged(e){e&&(this.detourData=e.detourData)}_onShareFailure(e){if(!this.isDestroying){(0,k.fireNormShareErrorClientSensors)(this.clientSensor,e,this.args.shareType);(0,M.isDuplicatePostError)(e)?(0,n.default)(this,Jt,hi).call(this,this._getI18nMessage(P.I18N_KEYS.DUPLICATE_SHARE_UNSUCCESSFUL)):"imagePostFailed"===e.name?this.postFailureErrorMessage=e.message||this._getI18nMessage(P.I18N_KEYS.SHARE_UNSUCCESSFUL):this.postFailureErrorMessage=this._getI18nMessage(P.I18N_KEYS.SHARE_UNSUCCESSFUL);(0,n.default)(this,ei,pi).call(this)}}_onUrlPreviewData(e,t){var i,n,r,a,o,s,l,d
if(this.isDestroying)return
this.attachedShareMediaUrn=this.isUrlPreviewDashLixEnabled?null===(i=t.update)||void 0===i||null===(n=i.metadata)||void 0===n?void 0:n.shareMediaUrn:null===(r=t.update)||void 0===r||null===(a=r.updateMetadata)||void 0===a?void 0:a.shareMediaUrn
if(this.guiderManager){var c,u
this.guiderManager.updateattachedShareMediaUrn(this.attachedShareMediaUrn||(null===(c=t.update)||void 0===c||null===(u=c.content)||void 0===u?void 0:u.urn))}if(this.isUrlPreviewDashLixEnabled?null===(o=t.update)||void 0===o||null===(s=o.metadata)||void 0===s?void 0:s.shareUrn:null===(l=t.update)||void 0===l||null===(d=l.updateMetadata)||void 0===d?void 0:d.shareUrn){var h
this.previewedUpdateV2=t.update
null===(h=e.onCancel)||void 0===h||h.call(e)
this.detourManager=null
this.isInDraftMode&&(this.nonUgcSupportedDraftChangesMade=!0)}}_postEditShare(){return(0,D.partialShareUpdate)({store:this.storeShim,graphql:this.graphql,ugcUrn:this.args.shareUrn,degradationPemTrackingMetaData:R.DEGRADATION_TRACKING_METADATA.PARTIAL_EDIT,shareContentsData:this.newEditedCommentary,shareMedia:this.editedShareMedia,isDashUpdate:this.isDashUpdate}).then((e=>{(0,l.isDestroying)(this)||e&&this._onShareEditSuccess(e)})).catch((e=>{if((0,l.isDestroying)(this))throw e
this._onShareFailure(e)
if(!e||!e.errors)throw e})).finally((()=>{this.isDestroying||(this.isPostRequestPending=!1)}))}_renderSuccessToast(e){if(!this.args.disableSuccessToasts){const t=e.message
this.a11yNotification.setTextInLiveRegion(t)
this.persistentToastManager.success(e)
this.postingState!==R.POST_STATES.DRAFT&&this.sound.play(z.Sound.PostSuccess)}}_renderPostPostPrompt(e){if(!this.args.disableSuccessToasts){this.a11yNotification.setTextInLiveRegion(e.promptHeader.mainText)
this.args.openPostPostPrompt({dashPromptComponent:e})
this.postingState!==R.POST_STATES.DRAFT&&this.sound.play(z.Sound.PostSuccess)}}_setInitialCurrentVisibility(){var e
if(this.args.fixedVisibilityType)this.currentVisibility=this._getFixedVisibilityOption()
else if(this.args.initialDetourManager&&(null===(e=this.args.initialDetourManager)||void 0===e?void 0:e.detourType)===w.DETOUR_TYPES.EVENTS)this.currentVisibility=this.anyoneVisibilityOptionType
else if(this.useStickyVisibility){const{unknownInitialVisibilityText:e}=this.args.initializationData
if(e)this.currentVisibility=new V.default({type:R.VALID_VISIBILITY_TYPES.SELECT_VISIBILITY,name:(0,W.default)(e)})
else{const{selectedVisibility:e,selectedCommentControlConfig:t}=(0,L.findSelectedOptions)(this.initializationStickyVisibilityData)
this.commentRestrictionUserSelectionType=t.allowedCommentersScope
this.currentVisibility=(0,L.formatSelectedStickyVisibilityItem)(e)}}else this.currentVisibility=this.anyoneVisibilityOptionType}_setPreviewFeedComponent(e,t,i){this.isDetourPreviewDash=i
if(e){this.previewedUpdateV2=i?(0,U.getDashUpdateWithFeedComponent)(this.storeShim,e,t):(0,U.getUpdateV2WithFeedComponent)(this.storeShim,e,t)
this.guiderManager&&this.guiderManager.updateHasAttachment(!0)}}_setupEditModeSharebox(e){var t,i,n,r
this.currentVisibility=(0,L.getVisibilityOptionFromUpdate)(e,this.isDashUpdate,this.i18n)
if(this.isDashUpdate&&(0,m.isEmpty)(null===(t=e.commentary)||void 0===t||null===(i=t.text)||void 0===i?void 0:i.attributes)||!this.isDashUpdate&&!(0,m.isEmpty)(null===(n=e.commentary)||void 0===n||null===(r=n.text)||void 0===r?void 0:r.attributesV2)){var a
this.originalShareContentsData=(0,T.generateTextAndMentionsFromTextViewModelV2)(this.storeShim,null===(a=e.commentary)||void 0===a?void 0:a.text)
this.trackedPostContents.initializeDataFromDashUpdate(this.storeShim,e)}else{var o
this.originalShareContentsData=(0,T.generateTextAndMentionsFromTextViewModel)(null===(o=e.commentary)||void 0===o?void 0:o.text)
this.trackedPostContents.initializeDataFromUpdateV2(e)}(e.content||e.resharedUpdate)&&(this.previewedUpdateV2=e)}_setupShareboxWithInitialContent(){if(this.isInRepostMode){this.previewedUpdateV2=this.args.updateV2
this.repostEducationUtility=new x.default({isPageContentGraphQLEnabled:this.isPageContentGraphQLEnabled,legoResolver:this.legoResolver,legoTracking:this.legoTracking})}(0,m.isPresent)(this.args.urlToShare)&&!this.args.initialDetourManager&&this._fetchURLPreview(this.args.urlToShare,!0)
if((0,m.isPresent)(this.args.initialDetourManager)){const e=this.args.initialDetourManager
e.isValid()&&(0,n.default)(this,Qt,di).call(this,e)}else if(this.isInDraftMode){if(this.args.pendingDraftUpdate){this.guiderManager&&this.guiderManager.updateHasAttachment(!0)
this.draftMediaIsLoading=!0
this.protectedMediaPresentForDraft=!0
this.args.pendingDraftUpdate.catch((e=>{if((0,l.isDestroying)(this))throw e
this.postFailureErrorMessage=this._getI18nMessage("i18n_draft_media__load_fail")
this.guiderManager&&this.guiderManager.updateHasAttachment(!1)
this.draftMediaIsLoading=!1
this.protectedMediaPresentForDraft=!1
throw e})).then((e=>{if(!this.isDestroying){var t,i
this.previewedUpdateV2=e.elements?null===(t=e.elements)||void 0===t?void 0:t[0]:null===(i=e.data.feedDashDraftMediaFeedByDraftMedia.elements)||void 0===i?void 0:i[0]
this.draftMediaIsLoading=!1}}))}const{commentary:e}=this.initializationDraftData
if(e){this.originalShareContentsData=(0,T.generateTextAndMentionsFromTextViewModelV2)(this.storeShim,e)
this.trackedPostContents.initializeDataFromTVMV2(this.storeShim,e)}}else if(this.args.prefilledTextTVMV2){this.trackedPostContents.initializeDataFromTVMV2(this.storeShim,this.args.prefilledTextTVMV2)
this.args.showPrefilledTextUnmodifiedWarning&&(this.originalShareContentsData=this.trackedPostContents.trackedPostContentsData)}else if(this.args.hashtag){this.trackedPostContents.initializeDataFromHashtag(this.args.hashtag)
this.cursorRange={startCursor:0}}}_takePreDetourSnapshot(){this.preDetourCharCount=this.trackedPostContents.characterCount}_updateSavedDraft(){var e
const{ugcUrn:t}=this.initializationDraftData,i=this.newEditedCommentary,r=this.draftCommentRestrictionHasChanged?this.currentCommentRestriction.type:null,a=!this.shareboxHasAttachment&&this.draftAttachmentHasChanged
return(this.shareboxHasAttachment&&null!==(e=this.detourManager)&&void 0!==e&&e.getShareMedia?this.detourManager.getShareMedia():v.Promise.resolve()).catch((e=>{if((0,l.isDestroying)(this))throw e
this.jet.logError(e,["sharebox-getShareMedia-fail"],!1)
throw e})).then((e=>{var o,s
if((0,l.isDestroying)(this))return
const d=this.postingState===R.POST_STATES.SCHEDULED?this.scheduledAt:void 0,c=(null===(o=this.args.initializationData)||void 0===o||null===(s=o.draft)||void 0===s?void 0:s.paidEndorsement)!==this.currentIsPaidEndorsement?this.currentIsPaidEndorsement:void 0
return(0,D.partialShareUpdate)({store:this.storeShim,graphql:this.graphql,ugcUrn:t,shareContentsData:i,shareMedia:e,allowedCommentersScope:r,deleteMedia:a,postState:this.postingState,degradationPemTrackingMetaData:R.DEGRADATION_TRACKING_METADATA[`PARTIAL_${this.postingState}`],scheduledAt:d,isPaidEndorsement:c,isDashUpdate:this.isDashUpdate}).then((e=>{(0,l.isDestroying)(this)||(0,n.default)(this,Zt,ui).call(this,e)})).catch((e=>{if((0,l.isDestroying)(this))throw e
this._onShareFailure(e)
if(!e||!e.errors)throw e})).finally((()=>{this.isDestroying||(this.isPostRequestPending=!1)}))}))}_updateGuiderManagerShareText(e){var t,i
null===(t=(i=this.args).onShareTextUpdate)||void 0===t||t.call(i,e)
this.guiderManager&&this.guiderManager.updateShareText(e)}convertToInstantRepostViaDialogConfirm(){this.repostEducationUtility.sendRepostEducationPrimaryAction()
return this._callInstantRepost()}setHasUnsavedDetourChanges(e){this.hasUnsavedDetourChanges=e}cacheAiInputQuery(e){this.aiInputQuery=e}closeWritingAssistant(){this.writingAssistantIsOpen=!1
this.isWritingAssistantRequestInProgress=!1
this.aiInputQuery=""
this.isWritingAssistantV2Enabled||(this.invalidAiInputErrorMessage="")}deleteDraft(){this._deleteSavedDraft()}dropCallBack(e,t){this.dragAndDropErrorMessage=""
if(!this.detourData&&!this.shareboxHasAttachment){if(e.length>this.multiPhotoUploadLimit){(0,n.default)(this,Yt,ai).call(this,{errorCode:Y.UPLOAD_MEDIA_ERROR_CODES.MULTI_IMAGE_LIMIT_REACHED,contentType:Y.UPLOAD_MEDIA_TYPES.IMAGE_SHARING})
return}this.mediaDataGenerator.process(e).then((e=>{if(!this.isDestroying){const i=R.MEDIA_TYPE_TO_DETOUR_TYPE[null==e?void 0:e.contentType]
if("IMAGE"===i||"VIDEO"===i){const n=(0,X.getTrackingTypeFromMediaData)(i,e);(0,q.fireDragAndDropTrackingEvent)(this.tracking,"opensharebox",n,t)
this.detourData=(0,X.buildDragDropInitialDetourData)("IMAGE_VIDEO",e)
this.openDetour({detourType:"IMAGE_VIDEO"})
this.dragAndDropErrorMessage=""}else{this.detourData=void 0;(0,n.default)(this,Yt,ai).call(this,{errorCode:"filetype",contentType:Y.UPLOAD_MEDIA_TYPES.MIXED_MEDIA})}}})).catch((e=>{if((0,l.isDestroying)(this))throw e
if(!e.errorCode)throw e
this.detourData=void 0;(0,n.default)(this,Yt,ai).call(this,e)}))}}editDetour(){this._takePreDetourSnapshot()
this.shareboxState=P.SHAREBOX_STATE.DETOUR}goToCreation(){this._goToCreation()}goToPostManager(){this.setActiveControl(P.SHAREBOX_STATE.MANAGEMENT);(0,n.default)(this,Kt,oi).call(this)}goToVisibilityScreen(e){this.setActiveControl(e)
this.visibilityScreen=e
this.shareboxState=P.SHAREBOX_STATE.VISIBILITY}improveWithAiHandler(){this.shouldCheckWordLengthForWritingAssistant=!0
this.tookWritingAssistantAction()
if(!this.isAiInputQueryTooShort){this.invalidAiInputErrorMessage=""
this.writingAssistantFeedbackCardView=Z.FEEDBACK_CARD_VIEW.CLOSED
this.improveWithAiQuery={mentions:this.trackedPostContents.mentions,text:this.trackedPostContents.text}
this.openWritingAssistant()
this.shouldCheckWordLengthForWritingAssistant=!1}}onDetourComplete(e){this._onDetourComplete(e)}onEditShareMedia(e){this.editedShareMedia=e}onFoundUrl(e){this.broadcastContentAttached||this.shareboxHasAttachment||this.args.pendingDraftUpdate||this.isInEditMode||(0,y.debounceTask)(this,"_fetchURLPreview",e,(0,y.getTimeoutOrTestFallback)(1e3))}onScheduleSelected(e){this.scheduledAt=e}onWritingAssistantError(e,t){if(e){this.invalidAiInputQuery=e
this.invalidAiInputErrorMessage=t
this.isWritingAssistantV2Enabled&&this.closeWritingAssistant()}}onWAFeedbackCardAction(e){"FEEDBACK_SURVEY_SUBMITTED_PREMIUM"===e&&(this.gaiContentUrn=null)
this.writingAssistantFeedbackCardView=e}openDetour(e){this._takePreDetourSnapshot()
this.shareboxState=P.SHAREBOX_STATE.DETOUR
this.detourType=e.detourType
this.setActiveControl(e.dataTestName)}openWritingAssistant(){this.writingAssistantIsOpen=!0
this.tookWritingAssistantAction()}pasteEventHandler(e){const{files:t,types:i}=e.clipboardData;(null==t?void 0:t.length)>0&&i.every((e=>"Files"===e))&&this.dropCallBack(t,"paste");(0,X.handlePasteEventTracking)({event:e,tracking:this.tracking,shareSessionUrn:this.args.shareBoxSessionUrn})}publishPost(){if(this.warningDialogWasRendered||!this.promptWarningDialogBeforePosting){this.isPostRequestPending=!0
this.postFailureErrorMessage=""
if(this.isInEditMode)this._postEditShare()
else if(!this.scheduledAt||(0,M.isTimestampWithinBoundaries)(this.scheduledAt)){this.scheduledAt?this.postingState=R.POST_STATES.SCHEDULED:this.postingState=R.POST_STATES.PUBLISHED
!this.isInDraftMode||this.nonUgcSupportedDraftChangesMade||this.draftAttachmentHasChanged?this.shouldConvertToInstantRepost?this._callInstantRepost():this._createNormShareRecord():this._updateSavedDraft()}else{this.postFailureErrorMessage=this._getI18nMessage("i18n_schedule_out_of_bounds")
this.isPostRequestPending=!1}}else{this.isWarningDialogOpen=!0
this.warningDialogWasRendered=!0
this.showInsantRepostEducationDialog&&this.repostEducationUtility.sendRepostEducationImpression()}}removeDetourPreview(){var e,t,i
const n=null===(e=this.detourManager)||void 0===e?void 0:e.detourPreview
n&&n.unsubscribe(this.detourPreviewHandler)
const r=null===(t=this.detourManager)||void 0===t?void 0:t.dashDetourPreview
r&&r.unsubscribe(this.dashDetourPreviewHandler)
const a=null===(i=this.detourManager)||void 0===i?void 0:i.detourStatus
a&&a.unsubscribe(this.detourStatusHandler)
const{detourManager:o}=this
if(this.isInDraftMode&&this.protectedMediaPresentForDraft){this.protectedMediaPresentForDraft=!1
this.isRepostUrlPreview&&(this.nonUgcSupportedDraftChangesMade=!0)}if(o){var s
null===(s=o.onCancel)||void 0===s||s.call(o)
this.detourManager=null}this.postFailureErrorMessage=""
this.previewedUpdateV2=void 0
this.isDetourPreviewDash=void 0
this.detourPreviewData=void 0
this.detourData=void 0
this.detourType=void 0
this.attachedShareMediaUrn=void 0
this.isInDraftMode&&(this.draftAttachmentHasChanged=!0)
this.hasUnsavedDetourChanges=!1
if(this.guiderManager){this.guiderManager.updateHasAttachment(!1)
this.guiderManager.updateattachedShareMediaUrn(this.attachedShareMediaUrn)}}saveDraft(e){this.postingState=R.POST_STATES.DRAFT
this.isPostRequestPending=!0
!this.isInDraftMode||this.nonUgcSupportedDraftChangesMade||this.draftAttachmentHasChanged?this._createNormShareRecord(e):this.draftPostHasChanged?this._updateSavedDraft():this._getDraftSuccessToast()}setActiveControl(e){this.focusOnActive=e}showWAFeedbackCard(){this.writingAssistantFeedbackCardView=Z.FEEDBACK_CARD_VIEW.REQUEST}tookWritingAssistantAction(){this.hasInteractedWithWritingAssistant=!0}undoAiDraftHandler(){this.improveWithAiQuery=null
this.writingAssistantFeedbackCardView=Z.FEEDBACK_CARD_VIEW.CLOSED}updateAiGeneratedData(e,t){this.aiGeneratedText=e
this.gaiContentUrn=t}updateAuthorAndAudienceSettings(e){var t
if(e.actor){var i,n
null===(i=(n=this.args).onActorSelected)||void 0===i||i.call(n,e.actor)
this.localActor=e.actor}if(e.commentRestriction){this.currentCommentRestriction=e.commentRestriction
this.isInDraftMode&&(this.draftCommentRestrictionHasChanged=!0)}(null===(t=e.visibility)||void 0===t?void 0:t.type)===R.VALID_VISIBILITY_TYPES.TARGETED?this.currentTargetedAudience=e.targetedAudience:e.visibility&&(this.currentTargetedAudience=null)
if(e.visibility){this.currentVisibility=e.visibility
if(this.isInDraftMode){this.nonUgcSupportedDraftChangesMade=!0
this.protectedMediaPresentForDraft&&this.removeDetourPreview()}}e.stickyVisibilityData&&(this.localStickyVisibilityData=e.stickyVisibilityData)
e.commentRestrictionUserSelectionType&&(this.commentRestrictionUserSelectionType=e.commentRestrictionUserSelectionType)
e.actor?this.guiderManager&&this.guiderManager.updateOrganizationActor(this.dashOrganizationActorUrn,e.visibility.containerEntity):e.visibility&&this.guiderManager&&this.guiderManager.updateContainerUrn(e.visibility.containerEntity)
"boolean"==typeof e.isPaidEndorsement&&(this.currentIsPaidEndorsement=e.isPaidEndorsement)}updateShareViewModel(e,t){this.trackedPostContents.updateData(t,e);(0,y.debounceTask)(this,"_updateGuiderManagerShareText",t,(0,y.getTimeoutOrTestFallback)(200))}upsellTooltipDismissHandler(){this.hasUpsellTooltipBeenDismissed=!0}writingAssistantRequestInProgressHandler(e){this.isWritingAssistantRequestInProgress=e
this.isWritingAssistantV2Enabled&&!e&&this.closeWritingAssistant()}_onShareEditSuccess(e){var t,i,n,r,a,o,s,l,d,c,u,h,p
if(this.isDestroying)return
this.socialCountsService.registerSocialCounts(null===(t=e.status)||void 0===t||null===(i=t.updateV2)||void 0===i?void 0:i.socialDetail);(0,k.fireSharingClientSensor)(this.clientSensor,H.SharingClientSensorMetrics.SHARE_EDIT_SUCCESS)
const g=this.isDashUpdate?null===(n=e.data)||void 0===n||null===(r=n.updateContentcreationDashShares)||void 0===r||null===(a=r.entity)||void 0===a||null===(o=a.status)||void 0===o||null===(s=o.lifecycleState)||void 0===s?void 0:s.PublishedState:null===(l=e.status)||void 0===l?void 0:l.updateV2
null===(d=(c=this.args).onEditShareSuccess)||void 0===d||d.call(c,g)
null===(u=(h=this.args).onEditShareSuccess)||void 0===u||u.call(h,null===(p=e.status)||void 0===p?void 0:p.updateV2)
this._renderSuccessToast({message:this._getI18nMessage(P.I18N_KEYS.CHANGES_SAVED)})}}),ve=(0,r.default)(Te.prototype,"a11yNotification",[ee],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ee=(0,r.default)(Te.prototype,"clientSensor",[te],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Se=(0,r.default)(Te.prototype,"formatter",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ie=(0,r.default)(Te.prototype,"i18n",[ie],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ce=(0,r.default)(Te.prototype,"jet",[ne],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ae=(0,r.default)(Te.prototype,"lix",[re],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Oe=(0,r.default)(Te.prototype,"locale",[ae],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),De=(0,r.default)(Te.prototype,"m3Schema",[oe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ne=(0,r.default)(Te.prototype,"persistentToastManager",[se],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),we=(0,r.default)(Te.prototype,"socialCountsService",[le],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pe=(0,r.default)(Te.prototype,"sound",[de],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Re=(0,r.default)(Te.prototype,"storeShim",[ce],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ke=(0,r.default)(Te.prototype,"tracking",[ue],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Me=(0,r.default)(Te.prototype,"typeaheadTracking",[he],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xe=(0,r.default)(Te.prototype,"watchmanTracking",[pe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ve=(0,r.default)(Te.prototype,"windowService",[ge],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Le=(0,r.default)(Te.prototype,"vectorMediaUpload",[me],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ue=(0,r.default)(Te.prototype,"legoResolver",[be],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Be=(0,r.default)(Te.prototype,"legoTracking",[fe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),He=(0,r.default)(Te.prototype,"graphql",[ye],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fe=(0,r.default)(Te.prototype,"router",[_e],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=(0,r.default)(Te.prototype,"aiInputQuery",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),ze=(0,r.default)(Te.prototype,"aiGeneratedText",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ge=(0,r.default)(Te.prototype,"attachedShareMediaUrn",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),je=(0,r.default)(Te.prototype,"commentRestrictionUserSelectionType",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ye=(0,r.default)(Te.prototype,"currentCommentRestriction",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ke=(0,r.default)(Te.prototype,"currentIsPaidEndorsement",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),qe=(0,r.default)(Te.prototype,"currentTargetedAudience",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=(0,r.default)(Te.prototype,"currentVisibility",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=(0,r.default)(Te.prototype,"cursorRange",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$e=(0,r.default)(Te.prototype,"dashDetourPreviewHandler",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ze=(0,r.default)(Te.prototype,"detourData",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Je=(0,r.default)(Te.prototype,"detourManager",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),et=(0,r.default)(Te.prototype,"detourPreviewData",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tt=(0,r.default)(Te.prototype,"detourPreviewHandler",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),it=(0,r.default)(Te.prototype,"detourStatusHandler",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),nt=(0,r.default)(Te.prototype,"detourType",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),rt=(0,r.default)(Te.prototype,"draftAttachmentHasChanged",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),at=(0,r.default)(Te.prototype,"draftCommentRestrictionHasChanged",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ot=(0,r.default)(Te.prototype,"draftData",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),st=(0,r.default)(Te.prototype,"draftMediaIsLoading",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),lt=(0,r.default)(Te.prototype,"dragAndDropErrorMessage",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),dt=(0,r.default)(Te.prototype,"editedShareMedia",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ct=(0,r.default)(Te.prototype,"focusOnActive",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ut=(0,r.default)(Te.prototype,"gaiContentUrn",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ht=(0,r.default)(Te.prototype,"hasInteractedWithWritingAssistant",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),pt=(0,r.default)(Te.prototype,"hasUnsavedDetourChanges",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),gt=(0,r.default)(Te.prototype,"hasUpsellTooltipBeenDismissed",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mt=(0,r.default)(Te.prototype,"improveWithAiQuery",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),bt=(0,r.default)(Te.prototype,"initialShareboxState",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ft=(0,r.default)(Te.prototype,"invalidAiInputErrorMessage",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),yt=(0,r.default)(Te.prototype,"invalidAiInputQuery",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_t=(0,r.default)(Te.prototype,"isDetourPreviewDash",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Tt=(0,r.default)(Te.prototype,"isPostRequestPending",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),vt=(0,r.default)(Te.prototype,"isTextEditorFocused",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Et=(0,r.default)(Te.prototype,"isWarningDialogOpen",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),St=(0,r.default)(Te.prototype,"isWritingAssistantRequestInProgress",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),It=(0,r.default)(Te.prototype,"localActor",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ct=(0,r.default)(Te.prototype,"localStickyVisibilityData",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),At=(0,r.default)(Te.prototype,"nonUgcSupportedDraftChangesMade",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ot=(0,r.default)(Te.prototype,"originalShareContentsData",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{text:"",mentions:[]}}}),Dt=(0,r.default)(Te.prototype,"organizationActors",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Nt=(0,r.default)(Te.prototype,"postFailureErrorMessage",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),wt=(0,r.default)(Te.prototype,"postingState",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pt=(0,r.default)(Te.prototype,"preDetourCharCount",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Rt=(0,r.default)(Te.prototype,"previewedUpdateV2",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),kt=(0,r.default)(Te.prototype,"protectedMediaPresentForDraft",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Mt=(0,r.default)(Te.prototype,"repostEducationTrackingToken",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xt=(0,r.default)(Te.prototype,"routedView",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vt=(0,r.default)(Te.prototype,"scheduledAt",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Lt=(0,r.default)(Te.prototype,"shareboxState",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ut=(0,r.default)(Te.prototype,"shouldCheckWordLengthForWritingAssistant",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Bt=(0,r.default)(Te.prototype,"timeZoneDescriptionTVMV2",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ht=(0,r.default)(Te.prototype,"trackedPostContents",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new G.default}}),Ft=(0,r.default)(Te.prototype,"useDashCreationFlow",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Wt=(0,r.default)(Te.prototype,"visibilityScreen",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),zt=(0,r.default)(Te.prototype,"writingAssistantFeedbackCardView",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Z.FEEDBACK_CARD_VIEW.CLOSED}}),Gt=(0,r.default)(Te.prototype,"writingAssistantIsOpen",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,r.default)(Te.prototype,"availableActors",[u.cached],Object.getOwnPropertyDescriptor(Te.prototype,"availableActors"),Te.prototype),(0,r.default)(Te.prototype,"currentActor",[u.cached],Object.getOwnPropertyDescriptor(Te.prototype,"currentActor"),Te.prototype),(0,r.default)(Te.prototype,"initializationDraftData",[u.cached],Object.getOwnPropertyDescriptor(Te.prototype,"initializationDraftData"),Te.prototype),(0,r.default)(Te.prototype,"initializationStickyVisibilityData",[u.cached],Object.getOwnPropertyDescriptor(Te.prototype,"initializationStickyVisibilityData"),Te.prototype),(0,r.default)(Te.prototype,"isThoughtStarters",[u.cached],Object.getOwnPropertyDescriptor(Te.prototype,"isThoughtStarters"),Te.prototype),(0,r.default)(Te.prototype,"convertToInstantRepostViaDialogConfirm",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"convertToInstantRepostViaDialogConfirm"),Te.prototype),(0,r.default)(Te.prototype,"setHasUnsavedDetourChanges",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"setHasUnsavedDetourChanges"),Te.prototype),(0,r.default)(Te.prototype,"cacheAiInputQuery",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"cacheAiInputQuery"),Te.prototype),(0,r.default)(Te.prototype,"closeWritingAssistant",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"closeWritingAssistant"),Te.prototype),(0,r.default)(Te.prototype,"deleteDraft",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"deleteDraft"),Te.prototype),(0,r.default)(Te.prototype,"dropCallBack",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"dropCallBack"),Te.prototype),(0,r.default)(Te.prototype,"editDetour",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"editDetour"),Te.prototype),(0,r.default)(Te.prototype,"goToCreation",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"goToCreation"),Te.prototype),(0,r.default)(Te.prototype,"goToPostManager",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"goToPostManager"),Te.prototype),(0,r.default)(Te.prototype,"goToVisibilityScreen",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"goToVisibilityScreen"),Te.prototype),(0,r.default)(Te.prototype,"improveWithAiHandler",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"improveWithAiHandler"),Te.prototype),(0,r.default)(Te.prototype,"onDetourComplete",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"onDetourComplete"),Te.prototype),(0,r.default)(Te.prototype,"onEditShareMedia",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"onEditShareMedia"),Te.prototype),(0,r.default)(Te.prototype,"onFoundUrl",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"onFoundUrl"),Te.prototype),(0,r.default)(Te.prototype,"onScheduleSelected",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"onScheduleSelected"),Te.prototype),(0,r.default)(Te.prototype,"onWritingAssistantError",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"onWritingAssistantError"),Te.prototype),(0,r.default)(Te.prototype,"onWAFeedbackCardAction",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"onWAFeedbackCardAction"),Te.prototype),(0,r.default)(Te.prototype,"openDetour",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"openDetour"),Te.prototype),(0,r.default)(Te.prototype,"openWritingAssistant",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"openWritingAssistant"),Te.prototype),(0,r.default)(Te.prototype,"pasteEventHandler",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"pasteEventHandler"),Te.prototype),(0,r.default)(Te.prototype,"publishPost",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"publishPost"),Te.prototype),(0,r.default)(Te.prototype,"removeDetourPreview",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"removeDetourPreview"),Te.prototype),(0,r.default)(Te.prototype,"saveDraft",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"saveDraft"),Te.prototype),(0,r.default)(Te.prototype,"setActiveControl",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"setActiveControl"),Te.prototype),(0,r.default)(Te.prototype,"showWAFeedbackCard",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"showWAFeedbackCard"),Te.prototype),(0,r.default)(Te.prototype,"tookWritingAssistantAction",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"tookWritingAssistantAction"),Te.prototype),(0,r.default)(Te.prototype,"undoAiDraftHandler",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"undoAiDraftHandler"),Te.prototype),(0,r.default)(Te.prototype,"updateAiGeneratedData",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"updateAiGeneratedData"),Te.prototype),(0,r.default)(Te.prototype,"updateAuthorAndAudienceSettings",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"updateAuthorAndAudienceSettings"),Te.prototype),(0,r.default)(Te.prototype,"updateShareViewModel",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"updateShareViewModel"),Te.prototype),(0,r.default)(Te.prototype,"upsellTooltipDismissHandler",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"upsellTooltipDismissHandler"),Te.prototype),(0,r.default)(Te.prototype,"writingAssistantRequestInProgressHandler",[g.action],Object.getOwnPropertyDescriptor(Te.prototype,"writingAssistantRequestInProgressHandler"),Te.prototype),Te)
function ri(){let e
if(this.dashPostCreationEnabled){var t,i
this.useDashCreationFlow=!0
if(this.shareboxHasAttachment&&null!==(t=this.detourManager)&&void 0!==t&&t.getDashShareMedia)e=this.detourManager.getDashShareMedia()
else if(this.shareboxHasAttachment&&null!==(i=this.detourManager)&&void 0!==i&&i.getShareMedia){this.useDashCreationFlow=!1
e=this.detourManager.getShareMedia()}else e=v.Promise.resolve()}else{var n
e=this.shareboxHasAttachment&&null!==(n=this.detourManager)&&void 0!==n&&n.getShareMedia?this.detourManager.getShareMedia():v.Promise.resolve()}return e}function ai(e){this.dragAndDropErrorMessage=(0,K.generateErrorMessage)({mediaError:e,i18n:this.i18n,isMultiphotoMaxItemCountEnabled:this.isMultiphotoMaxItemCountEnabled,videoUploadDurationLimitTreatmentValue:this.lix.getTreatmentValue("voyager.feed.web.video-upload.duration-limit")})}function oi(e){this.routedView=e
this.shareboxState=P.SHAREBOX_STATE.MANAGEMENT}function si(e){if(e.useDashPreview){const t=this._onDetourPreviewDataChanged.bind(this)
this.dashDetourPreviewHandler=t
e.dashDetourPreview.subscribe(t)}else{const t=this._onDetourPreviewDataChanged.bind(this)
this.detourPreviewHandler=t
e.detourPreview.subscribe(t)}const t=this._onDetourStatusDataChanged.bind(this)
this.detourStatusHandler=t
e.detourStatus.subscribe(t)
this.detourType=e.detourType}function li(e){e===ii.MANAGEMENT&&(0,n.default)(this,Kt,oi).call(this,e)}function di(e){var t
this.detourManager=e;(0,n.default)(this,qt,si).call(this,e)
const i=null===(t=e.getShareText)||void 0===t?void 0:t.call(e)
this.trackedPostContents.initializeDataFromTVMV2(this.storeShim,i)}function ci(e){var t,i,n,r,a,o,s,l,d,c,u,h,p,g,m,b
if(this.isDestroying)return;(this.nonUgcSupportedDraftChangesMade||this.draftAttachmentHasChanged)&&this._deleteSavedDraft()
const f=(null===(t=e.data)||void 0===t||null===(i=t.createContentcreationDashShares.entity)||void 0===i||null===(n=i.status)||void 0===n||null===(r=n.lifecycleState)||void 0===r||null===(a=r.PublishedState)||void 0===a?void 0:a.socialDetail)||(null===(o=e.status)||void 0===o||null===(s=o.updateV2)||void 0===s?void 0:s.socialDetail)
f&&this.socialCountsService.registerSocialCounts(f);(0,k.fireNormShareSuccessClientSensors)(this.clientSensor,this.args.shareType);(0,X.fireShareboxShareUpdateEvent)({ugcUrn:(null===(l=e.data)||void 0===l?void 0:l.createContentcreationDashShares.entity.entityUrn)||(null===(d=e.status)||void 0===d?void 0:d.urn),shareSessionUrn:this.args.shareBoxSessionUrn,promptsClicked:this.guiderManager.clickedPromptsCollection,postingState:this.postingState,sourceRef:this.args.sourceReference,tracking:this.tracking})
this.aiGeneratedText&&(0,X.handleWritingAssistantPromptTracking)({wasNotModified:this.isAiDraftUnmodified,wasPrompted:this.warningDialogWasRendered,shareSessionUrn:this.args.shareBoxSessionUrn,tracking:this.tracking})
const y=((null===(c=e.status)||void 0===c?void 0:c.promptComponent)||(null===(u=e.status)||void 0===u?void 0:u.promptComponentV2)||(null===(h=e.data)||void 0===h||null===(p=h.createContentcreationDashShares.entity)||void 0===p||null===(g=p.status)||void 0===g||null===(m=g.feedbackData)||void 0===m?void 0:m.promptComponentV2))&&this.args.openPostPostPrompt,_=null===(b=e.status)||void 0===b?void 0:b.mediaStatus
_===R.SHARE_MEDIA_STATUSES.PROCESSING||_===R.SHARE_MEDIA_STATUSES.PROCESSING_FAILED?this._buildShareStatusData(e):y?this._getPostPostPrompt(e):this._getPostSuccessToast(e)}function ui(e){var t
if(this.isDestroying)return;(this.nonUgcSupportedDraftChangesMade||this.draftAttachmentHasChanged)&&this._deleteSavedDraft();(0,k.fireNormShareSuccessClientSensors)(this.clientSensor,this.args.shareType)
const i=null===(t=e.status)||void 0===t?void 0:t.mediaStatus
i===R.SHARE_MEDIA_STATUSES.PROCESSING||i===R.SHARE_MEDIA_STATUSES.PROCESSING_FAILED?this._buildShareStatusData(e):this._getPostSuccessToast(e)}function hi(e){this.args.disableSuccessToasts||this.persistentToastManager.error({message:e})}function pi(){var e,t
null===(e=(t=this.args).onShareFail)||void 0===e||e.call(t)
this.sound.play(z.Sound.Error)}(0,o.setComponentTemplate)(ti,ni)}))
define("sharing-v2/components/post-action-bar",["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","@ember/destroyable","@glimmer/component","sharing-shared/utils/sharing-shared-constants","image-view-model/utils/system-image","@ember/debug","sharing-shared/utils/norm-share-utils","@ember/service","@glimmer/tracking","@ember/object"],(function(e,t,i,n,r,a,o,s,l,d,c,u,h,p,g,m,b){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var f,y,_,T,v,E,S,I,C,A,O,D,N,w
const P=(0,s.createTemplateFactory)({id:"/AsoF2f0",block:'[[[10,0],[14,0,"share-post-action-bar__container"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[10,0],[15,0,[28,[37,1],["display-flex t-14 t-black--light",[52,[51,[30,2]]," align-items-center"]],null]],[12],[1,"\\n"],[41,[30,0,["contextualIcon"]],[[[1," "],[8,[39,3],[[16,0,[28,[37,1],["share-post-action-bar__contextual-icon",[52,[30,2]," share-post-action-bar__contextual-icon--is-organization"]],null]]],[["@name","@size"],[[30,0,["contextualIcon","name"]],[30,0,["contextualIcon","size"]]]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[12],[1,"\\n "],[8,[39,4],null,[["@tvm","@userGenerated"],[[30,1],true]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,5],[[30,0,["deleteRequestPending"]]],null],[[[1," "],[8,[39,6],[[16,"aria-label",[28,[37,7],["i18n_delete_post","sharing-v2/components/post-action-bar"],null]],[4,[38,8],["click",[30,0,["showDeletePrompt"]]],null],[4,[38,9],[[30,4]],null]],[["@class","@type","@size","@circle","@color","@icon"],["share-post-action-bar__delete-btn","tertiary",2,true,"muted",[30,3]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,10],[[24,0,"share-post-action-bar__loader"],[16,"aria-label",[28,[37,7],["i18m_request_pending","sharing-v2/components/post-action-bar"],null]]],[["@size"],["xsmall"]],null],[1,"\\n"]],[]]],[1,"\\n "],[8,[39,6],[[16,"aria-label",[28,[37,7],["i18n_reschedule_post","sharing-v2/components/post-action-bar"],null]],[4,[38,8],["click",[28,[37,11],[[30,6],[30,7],[30,8,["scheduledAt"]],[30,0,["shareUrn"]]],null]],null],[4,[38,9],[[30,9]],null]],[["@type","@size","@circle","@color","@icon"],["tertiary",2,true,"muted",[30,5]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,12],null,[["@isOpen","@title","@content","@primaryActionText","@secondaryActionText","@onPrimary","@onSecondary","@onEscape"],[[30,0,["showDeletePostConfirmationModal"]],[28,[37,7],["i18n_delete_confirm_title","sharing-v2/components/post-action-bar"],null],[28,[37,7],["i18n_delete_confirm_content","sharing-v2/components/post-action-bar"],null],[28,[37,7],["i18n_delete_confirm_delete","sharing-v2/components/post-action-bar"],null],[28,[37,7],["i18n_delete_confirm_cancel","sharing-v2/components/post-action-bar"],null],[30,0,["deletePost"]],[30,0,["cancelDelete"]],[30,0,["cancelDelete"]]]],null]],["@contextualDescription","@organizationActor","@deleteIcon","@deleteControlName","@rescheduleIcon","@rescheduleAction","@goBackAction","@sharePreview","@rescheduleControlName"],false,["if","concat","unless","hue-web-icons@icon","text-view-model@text-view-model-v2","global-helpers@not","artdeco-button@artdeco-button","t","on","ember-cli-pemberly-tracking@track-interaction","artdeco-loader@artdeco-loader","fn","artdeco-modal@artdeco-confirmation-dialog"]]',moduleName:"sharing-v2/components/post-action-bar.hbs",isStrictMode:!1})
let R=e.default=(f=(0,g.inject)("@linkedin/ember-restli-graphql@graphql"),y=(0,g.inject)("i18n"),_=(0,g.inject)("lix"),T=(0,g.inject)("persistent-toast-manager@persistent-toast-manager"),v=(0,g.inject)("global-services@store-shim"),E=(w=new WeakSet,class extends d.default{get contextualIcon(){return(0,u.getSystemImageHueIcon)(this.args.contextualIcon)}get isGraphQlEnabledForShareDelete(){return this.lix.getTreatmentIsEnabled("voyager.web.sharing-share-delete-graphql")}constructor(){var e,i,n
super(...arguments)
w.add(this);(0,t.default)(this,"graphql",S,this);(0,t.default)(this,"i18n",I,this);(0,t.default)(this,"lix",C,this);(0,t.default)(this,"persistentToastManager",A,this);(0,t.default)(this,"storeShim",O,this);(0,t.default)(this,"deleteRequestPending",D,this);(0,t.default)(this,"showDeletePostConfirmationModal",N,this)
this.shareUrn=null===(e=this.args.sharePreview)||void 0===e||null===(i=e.miniUpdate)||void 0===i||null===(n=i.metadata)||void 0===n?void 0:n.backendUrn}cancelDelete(){this.showDeletePostConfirmationModal=!1}deletePost(){this.deleteRequestPending=!0
this.showDeletePostConfirmationModal=!1
return(0,p.deleteNormShare)(this.storeShim,this.shareUrn,this.graphql,this.isGraphQlEnabledForShareDelete).then((()=>{if(!this.isDestroying){var e,t
this.storeShim.unloadAll(c.SHARE_PREVIEWS_CACHE_MODEL_NAME)
this.persistentToastManager.success({message:(0,n.default)(this,w,k).call(this,"i18n_deletion-success")})
null===(e=(t=this.args).onDeleteSuccess)||void 0===e||e.call(t)}})).catch((e=>{if((0,l.isDestroying)(this))throw e
this.persistentToastManager.error({message:(0,n.default)(this,w,k).call(this,"i18n_deletion-failed")})
throw e})).finally((()=>{(0,l.isDestroying)(this)||(this.deleteRequestPending=!1)}))}showDeletePrompt(){this.showDeletePostConfirmationModal=!0}}),S=(0,r.default)(E.prototype,"graphql",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,r.default)(E.prototype,"i18n",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,r.default)(E.prototype,"lix",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,r.default)(E.prototype,"persistentToastManager",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,r.default)(E.prototype,"storeShim",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,r.default)(E.prototype,"deleteRequestPending",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),N=(0,r.default)(E.prototype,"showDeletePostConfirmationModal",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,r.default)(E.prototype,"cancelDelete",[b.action],Object.getOwnPropertyDescriptor(E.prototype,"cancelDelete"),E.prototype),(0,r.default)(E.prototype,"deletePost",[b.action],Object.getOwnPropertyDescriptor(E.prototype,"deletePost"),E.prototype),(0,r.default)(E.prototype,"showDeletePrompt",[b.action],Object.getOwnPropertyDescriptor(E.prototype,"showDeletePrompt"),E.prototype),E)
function k(e){return this.i18n.lookupTranslation("components/sharing-v2@post-action-bar",e)()}(0,o.setComponentTemplate)(P,R)}))
define("sharing-v2/components/post-detail-view",["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","graphql-queries/queries/sharing/share-details-by-share-urn.graphql","@glimmer/component","@ember/service","sharing-v2/utils/sharing-constants","sharing-shared/utils/sharing-shared-constants"],(function(e,t,i,n,r,a,o,s,l,d,c,u,h){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var p,g,m,b,f,y,_,T
const v=(0,o.createTemplateFactory)({id:"qldML8h5",block:'[[[8,[39,0],null,[["@modalComponents","@shouldFocusOnHeader","@showInlineHeader"],[[30,1],[30,2],[30,3]]],[["shareBoxHeader","shareBoxContent","shareBoxFooter"],[[[[1,"\\n "],[1,[28,[35,1],["i18n_scheduled-post-detail-title","sharing-v2/components/post-detail-view"],null]],[1,"\\n "]],[]],[[[1,"\\n "],[11,0],[24,0,"share-post-detail-view__container"],[4,[38,2],null,[["pageKey","routeName","currentRoute"],[[30,0,["pageKey"]],[28,[37,3],[[53,"outletState"],"render.name"],null],[28,[37,3],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n"],[44,[[28,[37,6],[[30,0,["fetchShareDetail"]]],null]],[[[41,[30,4,["isPending"]],[[[1," "],[8,[39,8],null,null,null],[1,"\\n"]],[]],[[[41,[30,4,["isRejected"]],[[[1," "],[8,[39,9],[[24,0,"share-post-detail-view__error"]],[["@headline","@message","@actionText","@onButtonClick","@buttonType","@illustration","@mercadoSize"],[[28,[37,1],["i18n_error-state-headline","sharing-v2/components/post-detail-view"],null],[28,[37,1],["i18n_error-state-message","sharing-v2/components/post-detail-view"],null],[28,[37,1],["i18n_error-state-action","sharing-v2/components/post-detail-view"],null],[30,5],"secondary","error-server",1]],null],[1,"\\n"]],[]],[[[41,[30,4,["isResolved"]],[[[1," "],[10,0],[14,0,"share-post-detail-view__action-bar"],[12],[1,"\\n "],[8,[39,10],null,[["@sharePreview","@contextualDescription","@contextualIcon","@deleteIcon","@deleteControlName","@onDeleteSuccess","@rescheduleAction","@goBackAction","@organizationActor","@rescheduleIcon","@rescheduleControlName"],[[30,6],[30,4,["value","contextualDescription"]],[30,4,["value","contextualIcon"]],"trash-icon",[30,0,["controlInteractionEvents","SCHEDULE_DETAIL_DELETE"]],[30,7],[30,8],[28,[37,11],[[30,9],[30,6]],null],[30,10],"clock",[30,0,["controlInteractionEvents","SCHEDULE_DETAIL_PICKER_OPEN"]]]],null],[1,"\\n "],[13],[1,"\\n"],[44,[[52,[30,0,["isScheduledPostDetailGraphQlEnabled"]],[30,4,["value","update"]],[30,4,["value","updateContent"]]]],[[[1," "],[8,[39,12],null,[["@commentaryClass","@isDashEnabled","@isDetailView","@isPreviewMode","@preventCommentaryLink","@showNestedShares","@update"],["share-post-detail-view__update-commentary",[30,0,["isScheduledPostDetailGraphQlEnabled"]],true,true,true,true,[30,11]]],null],[1,"\\n"]],[11]]],[1," "]],[]],null]],[]]]],[]]]],[4]]],[1," "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,13],null,[["@isSimplifiedFooterStyles","@secondaryAction","@secondaryButtonKey","@secondaryControlName"],[true,[30,7],"BACK",[30,0,["controlInteractionEvents","SCHEDULE_DETAIL_BACK"]]]],null],[1,"\\n "]],[]]]]]],["@layoutComponents","@shouldFocusOnHeader","@showInlineHeader","shareDetailResult","@reloadView","@sharePreview","@onBackClick","@goToDatePickerForRescheduling","@goToPostDetail","@organizationActor","update"],false,["sharing-v2@share-box-layout","t","ember-cli-pemberly-tracking@track-render","get","-get-dynamic-var","let","ember-async-data@load","if","artdeco-loader@artdeco-loader","artdeco-empty-state@artdeco-empty-state","sharing-v2@post-action-bar","fn","update-components@mini-update-v2","detour-framework@share-box-footer"]]',moduleName:"sharing-v2/components/post-detail-view.hbs",isStrictMode:!1})
let E=e.default=(p=(0,c.inject)("global-services@store-shim"),g=(0,c.inject)("@linkedin/ember-restli-graphql@graphql"),m=(0,c.inject)("i18n"),b=class extends d.default{get fetchShareDetail(){var e,t,i
const n=null===(e=this.args.sharePreview)||void 0===e||null===(t=e.miniUpdate)||void 0===t||null===(i=t.metadata)||void 0===i?void 0:i.backendUrn
return n?this.isScheduledPostDetailGraphQlEnabled?this.graphql.executeQuery(l.default,{shareUrn:n},{reload:!0}).then((e=>{if(!(0,s.isDestroying)(this))return e.data.contentcreationDashShareDetailsByShareUrn.elements[0]})):this.storeShim.queryURL("/voyager/api/voyagerContentcreationShareDetails",{params:{q:"shareUrn",shareUrn:n},cacheKey:`${h.SHARE_DETAIL_CACHE_KEY_BASE}|${n}`}).then((e=>{if(!(0,s.isDestroying)(this))return e.elements[0]})):Promise.reject()}constructor(){var e,n
super(...arguments);(0,t.default)(this,"storeShim",f,this);(0,t.default)(this,"graphql",y,this);(0,t.default)(this,"i18n",_,this);(0,t.default)(this,"lix",T,this);(0,i.default)(this,"controlInteractionEvents",u.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS);(0,i.default)(this,"pageKey",u.SHAREBOX_TRACKING.PAGEVIEW_EVENTS.POST_DETAIL_VIEW)
null===(e=(n=this.args).updateModalConfig)||void 0===e||e.call(n,{modalHeader:this.i18n.lookupTranslation("components/sharing-v2@post-detail-view","i18n_scheduled-post-detail-title")(),controlName:this.controlInteractionEvents.SCHEDULE_DETAIL_EXIT,shouldFocusOnHeader:!0})}get isScheduledPostDetailGraphQlEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.sharing-scheduled-post-detail-graphql")}},f=(0,n.default)(b.prototype,"storeShim",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,n.default)(b.prototype,"graphql",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,n.default)(b.prototype,"i18n",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,n.default)(b.prototype,"lix",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b);(0,a.setComponentTemplate)(v,E)}))
define("sharing-v2/components/post-list-view",["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","@ember/destroyable","@glimmer/component","tracked-built-ins","@ember/service","sharing-v2/utils/sharing-constants","@glimmer/tracking","@ember/object","detour-framework/utils/detour-constants"],(function(e,t,i,n,r,a,o,s,l,d,c,u,h,p,g,m){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var b,f,y,_,T,v,E,S,I
const C=(0,s.createTemplateFactory)({id:"dP//Ni9p",block:'[[[8,[39,0],null,[["@modalComponents","@shouldFocusOnHeader","@showInlineHeader","@headerType"],[[30,1],[30,2],[30,3],[30,4]]],[["shareBoxHeader","shareBoxContent","shareBoxFooter"],[[[[1,"\\n "],[1,[30,0,["titleText"]]],[1,"\\n "]],[]],[[[1,"\\n "],[11,0],[16,0,[52,[30,5],"share-box-modal-content__container"]],[4,[38,2],null,[["pageKey","routeName","currentRoute"],[[30,0,["pageKey"]],[28,[37,3],[[53,"outletState"],"render.name"],null],[28,[37,3],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n"],[44,[[28,[37,6],[[30,0,["getInitialSharePreviews"]]],null]],[[[41,[30,6,["isPending"]],[[[1," "],[10,0],[14,0,"share-box__loader-container"],[12],[1,"\\n "],[8,[39,7],null,[["@size"],["small"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,6,["isRejected"]],[[[1," "],[8,[39,8],[[24,0,"share-post-list-view__error"]],[["@headline","@message","@actionText","@onButtonClick","@buttonType","@illustration","@mercadoSize"],[[28,[37,9],["i18n_error-state-headline","sharing-v2/components/post-list-view"],null],[28,[37,9],["i18n_error-state-message","sharing-v2/components/post-list-view"],null],[28,[37,9],["i18n_error-state-action","sharing-v2/components/post-list-view"],null],[30,7],"secondary","error-server",1]],null],[1,"\\n"]],[]],[[[41,[30,6,["isResolved"]],[[[1," "],[8,[39,10],null,[["@isDisabled","@onTrigger","@items","@resultType"],[[28,[37,11],[[30,0,["canInfiniteScroll"]]],null],[30,0,["onInfiniteScroll"]],[30,0,["sharePreviewList"]],[28,[37,9],["i18n_scheduled-post-title","sharing-v2/components/post-list-view"],null]]],[["content","empty"],[[[[1,"\\n "],[10,"ul"],[14,0,"artdeco-list"],[12],[1,"\\n"],[42,[28,[37,13],[[28,[37,13],[[30,9]],null]],null],null,[[[1," "],[10,"li"],[14,0,"artdeco-list__item share-post-list-view__item"],[12],[1,"\\n "],[8,[30,8],null,[["@index"],[[30,11]]],[["default"],[[[[1,"\\n "],[8,[39,14],null,[["@sharePreview","@contextualDescription","@contextualIcon","@onDeleteSuccess","@deleteIcon","@deleteControlName","@rescheduleAction","@goBackAction","@rescheduleIcon","@rescheduleControlName","@organizationActor"],[[30,10],[30,10,["contextualDescription"]],[30,10,["contextualIcon"]],[28,[37,15],[[30,0,["onDeleteSuccess"]],[30,11]],null],"trash-icon",[30,0,["controlInteractionEvents","SCHEDULE_POST_LIST_DELETE"]],[30,12],[30,13],"clock",[30,0,["controlInteractionEvents","SCHEDULE_POST_LIST_PICKER_OPEN"]],[30,14]]],null],[1,"\\n "],[11,"button"],[24,0,"text-align-left full-width"],[16,"aria-label",[28,[37,9],["i18n_a11y_button_preview","sharing-v2/components/post-list-view"],null]],[16,"onclick",[28,[37,15],[[30,15],[30,10]],null]],[24,4,"button"],[4,[38,16],[[30,0,["controlInteractionEvents","SCHEDULE_POST_LIST_SELECT"]]],null],[12],[1,"\\n "],[8,[39,17],null,[["@miniUpdate","@hideActor","@hideContextualDescription"],[[30,10,["miniUpdate"]],true,true]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[10,11]],null],[1," "],[13],[1,"\\n "]],[8,9]],[[[1,"\\n "],[8,[39,8],[[24,0,"share-post-list-view__empty-state"]],[["@headline","@message","@actionText","@onButtonClick","@buttonType","@illustration","@mercadoSize"],[[28,[37,9],["i18n_empty-state-headline","sharing-v2/components/post-list-view"],null],[28,[37,9],["i18n_empty-state-message","sharing-v2/components/post-list-view"],null],[28,[37,9],["i18n_empty-state-action","sharing-v2/components/post-list-view"],null],[30,16],"secondary","empty-room",1]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[]],null]],[]]]],[]]]],[6]]],[1," "],[13],[1,"\\n "]],[]],[[[1,"\\n"],[41,[51,[30,17]],[[[1," "],[8,[39,19],null,[["@isSimplifiedFooterStyles","@secondaryAction","@secondaryButtonKey","@secondaryControlName"],[true,[30,16],[30,0,["footerSecondaryButtonKeys","BACK"]],[30,0,["controlInteractionEvents","SCHEDULE_POST_LIST_BACK"]]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]]],["@layoutComponents","@shouldFocusOnHeader","@showInlineHeader","@headerType","@isInModal","promise","@reloadView","ItemContainer","items","sharePreview","index","@goToDatePickerForRescheduling","@goToPostList","@organizationActor","@goToPostDetail","@goToDatePicker","@isDeeplinked"],false,["sharing-v2@share-box-layout","if","ember-cli-pemberly-tracking@track-render","get","-get-dynamic-var","let","ember-async-data@load","artdeco-loader@artdeco-loader","artdeco-empty-state@artdeco-empty-state","t","scaffold-finite-scroll@finite-scroll","global-helpers@not","each","-track-array","sharing-v2@post-action-bar","fn","ember-cli-pemberly-tracking@track-interaction","mini-update@mini-update-base","unless","detour-framework@share-box-footer"]]',moduleName:"sharing-v2/components/post-list-view.hbs",isStrictMode:!1}),A=10
let O=e.default=(b=(0,u.inject)("i18n"),f=(0,u.inject)("global-services@store-shim"),y=(I=new WeakSet,class extends d.default{get getInitialSharePreviews(){return(0,n.default)(this,I,D).call(this).then((e=>{this.isDestroying||this.sharePreviewList.push(...e)}))}get titleText(){if(this.args.organizationActor){const e=this.i18n.lookupTranslation("components/sharing-v2@post-list-view","i18n_company-scheduled-post-title")([{companyName:this.args.organizationActor.name}])
return jSecure.htmlUnencode(e)}return this.i18n.lookupTranslation("components/sharing-v2@post-list-view","i18n_scheduled-post-title")()}constructor(){var e,n
super(...arguments)
I.add(this);(0,t.default)(this,"i18n",_,this);(0,t.default)(this,"storeShim",T,this);(0,i.default)(this,"controlInteractionEvents",h.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS);(0,i.default)(this,"pageKey",h.SHAREBOX_TRACKING.PAGEVIEW_EVENTS.POST_VIEW_LIST);(0,i.default)(this,"footerSecondaryButtonKeys",m.SHARE_BOX_FOOTER_SECONDARY_KEYS);(0,t.default)(this,"canInfiniteScroll",v,this);(0,t.default)(this,"sharePreviewList",E,this);(0,t.default)(this,"paginationStart",S,this)
null===(e=(n=this.args).updateModalConfig)||void 0===e||e.call(n,{modalHeader:this.titleText,controlName:this.controlInteractionEvents.SCHEDULE_POST_LIST_EXIT,shouldFocusOnHeader:!0})}onInfiniteScroll(){return(0,n.default)(this,I,D).call(this,this.paginationStart).then((e=>{(0,l.isDestroying)(this)||(null==e?void 0:e.length)>0&&this.sharePreviewList.push(...e)}))}onDeleteSuccess(e){this.sharePreviewList.splice(e,1)}}),_=(0,r.default)(y.prototype,"i18n",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,r.default)(y.prototype,"storeShim",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,r.default)(y.prototype,"canInfiniteScroll",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),E=(0,r.default)(y.prototype,"sharePreviewList",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new c.TrackedArray}}),S=(0,r.default)(y.prototype,"paginationStart",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),(0,r.default)(y.prototype,"onInfiniteScroll",[g.action],Object.getOwnPropertyDescriptor(y.prototype,"onInfiniteScroll"),y.prototype),(0,r.default)(y.prototype,"onDeleteSuccess",[g.action],Object.getOwnPropertyDescriptor(y.prototype,"onDeleteSuccess"),y.prototype),y)
function D(){var e=this
let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0
const i={recipe:"com.linkedin.voyager.dash.deco.contentcreation.SharePreviewsByLifeCycleState",q:"shareLifeCycleState",shareLifeCycleState:"SCHEDULED",start:t,count:A}
this.args.organizationActor&&(i.organizationActorUrn=this.args.organizationActor.dashUrn)
return this.storeShim.queryURL("/voyager/api/voyagerContentcreationDashSharePreviews",{params:i}).then((function(){var t
let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
if((0,l.isDestroying)(e))return
const n=i.elements||[]
e.paginationStart+=(null==n?void 0:n.length)>A?n.length:A
e.canInfiniteScroll=(null===(t=i.paging)||void 0===t?void 0:t.total)>e.paginationStart&&(null==n?void 0:n.length)>0
return n}))}(0,o.setComponentTemplate)(C,O)}))
define("sharing-v2/components/post-manager",["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","sharing-shared/utils/sharing-shared-constants","ember-lifeline","@ember/object","@glimmer/tracking","@ember/service"],(function(e,t,i,n,r,a,o,s,l,d,c,u,h,p){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var g,m,b,f,y,_,T,v,E,S
const I=(0,s.createTemplateFactory)({id:"Vlwlom39",block:'[[[41,[28,[37,1],[[30,0,["viewState"]],"DATE_PICKER"],null],[[[1," "],[8,[39,2],null,[["@modalComponents","@shouldFocusOnHeader"],[[30,1],[30,2]]],[["shareBoxHeader","shareBoxContent"],[[[[1,"\\n "],[1,[30,3]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,3],null,[["@canBeScheduled","@goBackAction","@goToPostList","@onNextClick","@shareUrn","@timestamp","@updateModalConfig"],[[30,4],[30,0,["goBackAction"]],[30,0,["goToPostList"]],[30,5],[30,0,["shareUrn"]],[30,0,["timestamp"]],[30,6]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["viewState"]],"POST_LIST"],null],[[[1," "],[8,[39,4],null,[["@goToDatePicker","@goToDatePickerForRescheduling","@goToPostDetail","@goToPostList","@isDeeplinked","@isInModal","@layoutComponents","@organizationActor","@reloadView","@showInlineHeader","@shouldFocusOnHeader","@updateModalConfig"],[[30,0,["goToDatePicker"]],[30,0,["goToDatePickerForRescheduling"]],[30,0,["goToPostDetail"]],[30,0,["goToPostList"]],[30,7],[30,8],[30,1],[30,9],[30,0,["reloadView"]],[30,10],[30,2],[30,6]]],null],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["viewState"]],"POST_DETAIL"],null],[[[1," "],[8,[39,5],null,[["@goToDatePickerForRescheduling","@goToPostDetail","@isInModal","@layoutComponents","@onBackClick","@organizationActor","@reloadView","@sharePreview","@showInlineHeader","@shouldFocusOnHeader","@updateModalConfig"],[[30,0,["goToDatePickerForRescheduling"]],[30,0,["goToPostDetail"]],[30,8],[30,1],[30,0,["goToPostList"]],[30,9],[30,0,["reloadView"]],[30,0,["sharePreview"]],[30,10],[30,2],[30,6]]],null],[1,"\\n"]],[]],null]],[]]]],[]]]],["@layoutComponents","@shouldFocusOnHeader","@modalHeader","@canBeScheduled","@onScheduleSelected","@updateModalConfig","@defaultToPostListView","@isInModal","@organizationActor","@showInlineHeader"],false,["if","global-helpers@eq","sharing-v2@share-box-layout","sharing-shared@date-time-picker","sharing-v2@post-list-view","sharing-v2@post-detail-view"]]',moduleName:"sharing-v2/components/post-manager.hbs",isStrictMode:!1}),C="POST_DETAIL",A="POST_LIST",O="DATE_PICKER"
let D=e.default=(g=(0,p.inject)("global-services@store-shim"),m=(E=new WeakSet,S=new WeakSet,class extends l.default{constructor(){super(...arguments)
S.add(this)
E.add(this);(0,t.default)(this,"storeShim",b,this);(0,t.default)(this,"goBackAction",f,this);(0,t.default)(this,"sharePreview",y,this);(0,t.default)(this,"shareUrn",_,this);(0,t.default)(this,"timestamp",T,this);(0,t.default)(this,"viewState",v,this)
this.args.defaultToPostListView?(0,n.default)(this,S,w).call(this):(0,n.default)(this,E,N).call(this,this.args.goToCreation,this.args.timestamp)}willDestroy(){super.willDestroy(...arguments)
this.isDestroyed||this.storeShim.unloadAll(d.SHARE_PREVIEWS_CACHE_MODEL_NAME)}goToDatePickerForRescheduling(e,t,i){(0,n.default)(this,E,N).call(this,e,t,i)}goToDatePicker(){(0,n.default)(this,E,N).call(this,this.args.goToCreation,this.args.timestamp)}goToPostList(){(0,n.default)(this,S,w).call(this)}goToPostDetail(e){this.sharePreview=e
this.viewState=C}reloadView(){const e=this.viewState
this.viewState=null;(0,c.runTask)(this,(()=>{this.viewState=e}))}}),b=(0,r.default)(m.prototype,"storeShim",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,r.default)(m.prototype,"goBackAction",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,r.default)(m.prototype,"sharePreview",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,r.default)(m.prototype,"shareUrn",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,r.default)(m.prototype,"timestamp",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,r.default)(m.prototype,"viewState",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,r.default)(m.prototype,"goToDatePickerForRescheduling",[u.action],Object.getOwnPropertyDescriptor(m.prototype,"goToDatePickerForRescheduling"),m.prototype),(0,r.default)(m.prototype,"goToDatePicker",[u.action],Object.getOwnPropertyDescriptor(m.prototype,"goToDatePicker"),m.prototype),(0,r.default)(m.prototype,"goToPostList",[u.action],Object.getOwnPropertyDescriptor(m.prototype,"goToPostList"),m.prototype),(0,r.default)(m.prototype,"goToPostDetail",[u.action],Object.getOwnPropertyDescriptor(m.prototype,"goToPostDetail"),m.prototype),(0,r.default)(m.prototype,"reloadView",[u.action],Object.getOwnPropertyDescriptor(m.prototype,"reloadView"),m.prototype),m)
function N(e,t,i){this.viewState=O
this.shareUrn=i
this.goBackAction=e
this.timestamp=t}function w(){this.viewState=A}(0,o.setComponentTemplate)(I,D)}))
define("sharing-v2/components/promoted-detour-button",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const r=(0,i.createTemplateFactory)({id:"12jkSz5Y",block:'[[[8,[39,0],null,[["@disableHoverable"],[[30,1]]],[["default"],[[[[1,"\\n "],[11,"button"],[16,"aria-label",[30,3]],[16,"aria-describedby",[30,2,["ariaId"]]],[16,"disabled",[30,1]],[16,0,[29,["share-promoted-detour-button\\n ",[52,[28,[37,2],[[30,4]],null],"share-promoted-detour-button-legacy"]]]],[24,4,"button"],[4,[38,3],[[30,5]],null],[4,[38,4],["click",[30,6]],null],[12],[1,"\\n "],[10,1],[14,0,"share-promoted-detour-button__icon-container"],[12],[1,"\\n "],[8,[39,5],null,[["@name","@size"],[[30,7],"medium"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[8,[30,2,["artdeco-hoverable-content"]],null,[["@theme","@contentClass"],["inverse","share-creation-state__hoverable-content"]],[["default"],[[[[1,"\\n "],[10,0],[12],[1,"\\n "],[1,[30,3]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[2]]]]]],["@disabled","trigger","@hoverText","@isWritingAssistantPremiumEnabled","@toolbarControlName","@clickHandler","@iconName"],false,["artdeco-hoverables@artdeco-hoverable-trigger","if","global-helpers@not","ember-cli-pemberly-tracking@track-interaction","on","hue-web-icons@icon"]]',moduleName:"sharing-v2/components/promoted-detour-button.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(r,(0,n.default)())}))
define.alias("ember-finite-scroll/components/sentinel","sharing-v2/components/sentinel")
define("sharing-v2/components/share-box-inline-callout",["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","@glimmer/tracking","@glimmer/component","@ember/service"],(function(e,t,i,n,r,a,o,s,l,d,c){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var u,h,p,g
const m=(0,o.createTemplateFactory)({id:"bQc5fJKB",block:'[[[1,"\\n"],[41,[30,0,["isVisible"]],[[[1," "],[11,0],[16,0,[29,["share-inline-callout__main-wrapper\\n ",[52,[30,1]," share-inline-callout__with-header"]]]],[4,[38,1],null,[["onRender","routeName","currentRoute"],[[30,0,["onImpression"]],[28,[37,2],[[53,"outletState"],"render.name"],null],[28,[37,2],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n "],[10,0],[14,0,"share-inline-callout__text-wrapper"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[10,2],[14,0,"share-inline-callout__header-text text-body-large-bold"],[12],[1,[30,1]],[13],[1,"\\n"]],[]],null],[1," "],[10,2],[14,0,"text-body-medium"],[12],[1,"\\n"],[41,[28,[37,4],[[30,2],"CONNECTIONS_ONLY"],null],[[[1," "],[1,[28,[35,5],["i18n_educational_message_connections","sharing-v2/components/share-box-inline-callout"],null]],[1,"\\n"]],[]],[[[41,[28,[37,4],[[30,2],"CONTAINER"],null],[[[1," "],[1,[28,[35,5],["i18n_educational_message_group","sharing-v2/components/share-box-inline-callout"],null]],[1,"\\n"]],[]],[[[41,[30,3],[[[1," "],[10,1],[14,0,"share-inline-callout__content-text"],[12],[1,[30,3]],[13],[1,"\\n "]],[]],null]],[]]]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[15,0,[29,["share-inline-callout__dismiss-button\\n ",[52,[30,1]," share-inline-callout__dismiss-button--with-header "]]]],[12],[1,"\\n "],[8,[39,6],[[4,[38,7],["click",[30,0,["onDismiss"]]],null]],[["@type","@icon","@circle","@color","@size","@aria-label"],["tertiary","close",true,"muted",1,[28,[37,5],["dismiss_button_text","sharing-v2/components/share-box-inline-callout"],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["@heading","@visibilityType","@content"],false,["if","ember-cli-pemberly-tracking@track-render","get","-get-dynamic-var","global-helpers@eq","t","artdeco-button@artdeco-button","on"]]',moduleName:"sharing-v2/components/share-box-inline-callout.hbs",isStrictMode:!1})
let b=e.default=(u=(0,c.inject)("tracking"),h=class extends d.default{constructor(){super(...arguments);(0,t.default)(this,"tracking",p,this);(0,t.default)(this,"isVisible",g,this)}onDismiss(){var e,t
this.isVisible=!1
null===(e=(t=this.args).closeActionHandler)||void 0===e||e.call(t)
this.args.controlName&&this.tracking.fireInteractionEvent(this.args.controlName)}},p=(0,n.default)(h.prototype,"tracking",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,n.default)(h.prototype,"isVisible",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),(0,n.default)(h.prototype,"onDismiss",[s.action],Object.getOwnPropertyDescriptor(h.prototype,"onDismiss"),h.prototype),h);(0,a.setComponentTemplate)(m,b)}))
define("sharing-v2/components/share-box-layout",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const r=(0,i.createTemplateFactory)({id:"9VfShRHF",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[8,[30,1,["artdeco-modal-header"]],[[16,0,[30,2]]],null,[["default"],[[[[1,"\\n"],[41,[30,3],[[[1," "],[18,8,null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"display-flex align-items-center"],[12],[1,"\\n "],[11,"h2"],[24,1,"share-to-linkedin-modal__header"],[24,"tabindex","-1"],[4,[38,2],null,[["shouldFocus"],[[30,4]]]],[12],[1,"\\n "],[18,8,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[30,1,["artdeco-modal-content"]],null,[["@classNames"],["p0"]],[["default"],[[[[1,"\\n "],[18,9,null],[1,"\\n "]],[]]]]],[1,"\\n"],[41,[48,[30,10]],[[[1," "],[8,[30,1,["artdeco-modal-footer"]],null,[["@class"],[[29,[[52,[30,5],"bt0"]]]]],[["default"],[[[[1,"\\n "],[18,10,null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null]],[]],[[[41,[30,6],[[[1," "],[8,[39,4],null,[["@shouldFocusOnHeader","@headerType"],[[30,4],[30,7]]],[["default"],[[[[1,"\\n "],[18,8,null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[18,9,null],[1,"\\n "],[18,10,null],[1,"\\n"]],[]]]],["@modalComponents","@headerClass","@headerOverride","@shouldFocusOnHeader","@hasFooterErrorState","@showInlineHeader","@headerType","&shareBoxHeader","&shareBoxContent","&shareBoxFooter"],false,["if","yield","sharing-v2@share-modal-focus","has-block","detour-framework@title-bar"]]',moduleName:"sharing-v2/components/share-box-layout.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(r,(0,n.default)())}))
define("sharing-v2/components/share-box-v2",["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/tracking","@ember/service","sharing-v2/components/open-share-box","@ember/runloop","@ember/object","sharing-v2/utils/sharing-constants","global-utils/utils/keyboard-utils","sharing-v2/utils/confirmation-dialog-utils","global-utils/utils/url"],(function(e,t,i,n,r,a,o,s,l,d,c,u,h,p,g,m,b){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var f,y,_,T,v,E,S,I,C,A,O,D,N,w,P,R,k
const M=(0,s.createTemplateFactory)({id:"8fuxnHA6",block:'[[[11,0],[17,1],[12],[1,"\\n "],[8,[39,0],null,[["@isOpen","@title","@content","@primaryActionText","@secondaryActionText","@onPrimary","@onSecondary","@primaryControlName","@secondaryControlName","@onEscape","@testId","@setPreventScroll"],[[30,0,["isWarningDialogOpen"]],[30,0,["confirmationModalTextConfig","title"]],[30,0,["confirmationModalTextConfig","content"]],[30,0,["confirmationModalTextConfig","primaryActionText"]],[30,0,["confirmationModalTextConfig","secondaryActionText"]],[30,0,["confirmationModalTextConfig","primaryAction"]],[30,0,["confirmationModalTextConfig","secondaryAction"]],[30,0,["confirmationModalTextConfig","primaryControlName"]],[30,0,["confirmationModalTextConfig","secondaryControlName"]],[30,0,["onEscapeWarningDialog"]],[30,0,["confirmationModalTextConfig","testId"]],[30,0,["setPreventScroll"]]]],null],[1,"\\n"],[1," "],[8,[39,1],null,[["@modalClasses","@size","@isOpen","@headerId","@dismissModal","@testId","@setPreventScroll","@returnFocusTo","@hideDismiss"],[[29,["share-box-v2__modal ",[52,[30,2],"share-box-v2__modal-phoenix-redesign"],"\\n ",[52,[30,0,["modalHeightFull"]],"share-box-v2__modal-height-full"]]],[30,0,["modalSize"]],true,"share-to-linkedin-modal__header",[30,0,["onDismissModal"]],"sharebox",[30,0,["setPreventScroll"]],[30,3],[30,0,["hideModalHeader"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"share-box"],[12],[1,"\\n"],[41,[28,[37,3],[[30,0,["currentShareboxState"]],"CREATION"],null],[[[1," "],[8,[39,4],null,[["@modalComponents","@shouldFocusOnHeader","@headerOverride","@headerClass"],[[30,4],[30,0,["shouldFocusOnHeader"]],[30,0,["isPhoenixUIEnabled"]],[52,[30,2],"share-box-v2__modal-redesigned-header",""]]],[["shareBoxHeader","shareBoxContent"],[[[[1,"\\n"],[41,[30,0,["isPhoenixUIEnabled"]],[[[1," "],[11,0],[4,[38,5],null,[["when","onSelector"],[[28,[37,6],[[30,0,["focusOnActive"]],"UNIFIED_SETTINGS"],null],"button"]]],[12],[1,"\\n "],[8,[39,7],null,[["@clickHandler","@currentActor","@isInEditMode","@currentVisibility","@dataControlName","@disabled"],[[28,[37,8],[[30,0,["goToVisibilityScreen"]],"UNIFIED_SETTINGS"],null],[30,0,["currentActor"]],[30,0,["isInEditMode"]],[30,0,["currentVisibility"]],[30,0,["controlInteractionEvents","UNIFIED_SETTINGS_ENTRY"]],[30,0,["isWritingAssistantRequestInProgress"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[1,[30,0,["modalHeader"]]],[1,"\\n"]],[]]],[1," "]],[]],[[[1,"\\n "],[8,[39,9],null,[["@aiGeneratedText","@aiInputQuery","@aiInputQueryWordCount","@autoFocusTexteditor","@broadcastContentAttached","@cacheAiInputQuery","@canBeScheduled","@chooserMenuButtons","@closeWritingAssistant","@currentActor","@currentCommentRestriction","@currentVisibility","@cursorRange","@customPrimaryButtonText","@detourData","@detourPreviewEditControlInteractionEventName","@detourPreviewRemoveControlInteractionEventName","@detourPreviewStatusData","@dragAndDropCallback","@dragAndDropErrorMessage","@editDetour","@editedShareHasChanged","@firstTextChangeHandler","@focusOnActive","@gaiContentUrn","@goToPostManager","@goToVisibilityScreen","@groupId","@guiderManager","@hasInteractedWithWritingAssistant","@hasUpsellTooltipBeenDismissed","@hideCreationStateFooter","@improveWithAiHandler","@improveWithAiQuery","@initialHeader","@invalidAiInputErrorMessage","@invalidAiInputQuery","@isAiDraftUnmodified","@isAiInputQueryTooShort","@isDashUpdate","@isExtendedDetoursVisible","@isInBroadcastMode","@isOrganizationActor","@isPhoenixUIEnabled","@isPostRequestPending","@isPremiumUpsellExperienceEnabled","@isScheduledPostsEnabled","@isModalSharebox","@isShowingDetourPreview","@isWritingAssistantEnabled","@isWritingAssistantV2Enabled","@isWritingAssistantRequestInProgress","@onEditShareMedia","@onFoundUrl","@onScheduleSelected","@onWAFeedbackCardAction","@onWritingAssistantError","@openDetour","@openWritingAssistant","@pasteEventHandler","@postFailureErrorMessage","@prefilledTextTVMV2","@previewedUpdateV2","@publishPost","@removeDetourPreview","@removeFocus","@scheduledDate","@scheduledTimestamp","@shareboxHasAttachment","@shareboxHasValidContent","@shareboxHasValidInteraction","@shareBoxSessionId","@shareBoxSessionUrn","@shareContentsData","@shareOrigin","@shareType","@shouldShowWritingAssistantInputLimitMessage","@showActorToggle","@showDetourPreviewEditButton","@showDetourPreviewError","@showDetourPreviewLoading","@showDetourPreviewRemoveButton","@showExtendedDetours","@showInlineHeader","@showWAFeedbackCard","@showWritingAssistantErrorMessage","@showWritingAssistantPersistentEntryPoint","@textInputI18nPlaceholderText","@tookWritingAssistantAction","@undoAiDraftHandler","@updateAiGeneratedData","@updateModalConfig","@updateShareViewModel","@updateV2","@upsellCardData","@onUpsellContainerClickHandler","@upsellTooltipDismissHandler","@usingStickyVisibility","@waFeedbackCardView","@writingAssistantIsOpen","@writingAssistantRequestInProgressHandler","@writingAssistantTreatment","@waMinInputWordsRequired"],[[30,0,["aiGeneratedText"]],[30,0,["aiInputQuery"]],[30,0,["aiInputQueryWordCount"]],[30,0,["autoFocusTexteditor"]],[30,0,["broadcastContentAttached"]],[30,0,["cacheAiInputQuery"]],[30,0,["canBeScheduled"]],[30,0,["chooserMenuDetourButtons"]],[30,0,["closeWritingAssistant"]],[30,0,["currentActor"]],[30,0,["currentCommentRestriction"]],[30,0,["currentVisibility"]],[30,0,["cursorRange"]],[30,5],[30,0,["detourData"]],[30,0,["detourPreviewEditControlInteractionEventName"]],[30,0,["detourPreviewRemoveControlInteractionEventName"]],[30,0,["detourPreviewStatusData"]],[30,0,["dropCallBack"]],[30,0,["dragAndDropError"]],[30,0,["editDetour"]],[30,0,["editedShareHasChanged"]],[30,0,["firstTextChangeHandler"]],[30,0,["focusOnActive"]],[30,0,["gaiContentUrn"]],[30,0,["goToPostManager"]],[30,0,["goToVisibilityScreen"]],[30,6],[30,0,["guiderManager"]],[30,0,["hasInteractedWithWritingAssistant"]],[30,0,["hasUpsellTooltipBeenDismissed"]],[30,7],[30,0,["improveWithAiHandler"]],[30,0,["improveWithAiQuery"]],[30,8],[30,0,["invalidAiInputErrorMessage"]],[30,0,["invalidAiInputQuery"]],[30,0,["isAiDraftUnmodified"]],[30,0,["isAiInputQueryTooShort"]],[30,0,["isDashUpdate"]],[30,0,["isExtendedDetoursVisible"]],[30,0,["isInBroadcastMode"]],[30,0,["isOrganizationActor"]],[30,0,["isPhoenixUIEnabled"]],[30,0,["isPostRequestPending"]],[30,9],[30,0,["isScheduledPostsEnabled"]],[30,0,["isModalSharebox"]],[30,0,["isShowingDetourPreview"]],[30,0,["isWritingAssistantEnabled"]],[30,0,["isWritingAssistantV2Enabled"]],[30,0,["isWritingAssistantRequestInProgress"]],[30,0,["onEditShareMedia"]],[30,0,["onFoundUrl"]],[30,0,["onScheduleSelected"]],[30,0,["onWAFeedbackCardAction"]],[30,0,["onWritingAssistantError"]],[30,0,["openDetour"]],[30,0,["openWritingAssistant"]],[30,0,["pasteEventHandler"]],[30,0,["postFailureErrorMessage"]],[30,10],[30,0,["previewedUpdateV2"]],[30,0,["publishPost"]],[30,0,["removeDetourPreview"]],[30,0,["removeFocus"]],[30,0,["scheduledDate"]],[30,0,["scheduledAt"]],[30,0,["shareboxHasAttachment"]],[30,0,["shareboxHasValidContent"]],[30,0,["shareboxHasValidInteraction"]],[30,11],[30,12],[30,0,["trackedPostContents"]],[30,13],[30,14],[30,0,["shouldShowWritingAssistantInputLimitMessage"]],[30,0,["showActorToggle"]],[30,0,["showDetourPreviewEditButton"]],[30,0,["showDetourPreviewError"]],[30,0,["showDetourPreviewLoading"]],[30,0,["showDetourPreviewRemoveButton"]],[30,0,["showExtendedDetours"]],[30,15],[30,0,["showWAFeedbackCard"]],[30,0,["showWritingAssistantErrorMessage"]],[30,0,["showWritingAssistantPersistentEntryPoint"]],[30,0,["textInputI18nPlaceholderText"]],[30,0,["tookWritingAssistantAction"]],[30,0,["undoAiDraftHandler"]],[30,0,["updateAiGeneratedData"]],[30,0,["updateModalConfig"]],[30,0,["updateShareViewModel"]],[30,16],[30,17],[30,0,["onUpsellContainerClickHandler"]],[30,0,["upsellTooltipDismissHandler"]],[30,0,["useStickyVisibility"]],[30,0,["waFeedbackCardView"]],[30,0,["writingAssistantIsOpen"]],[30,0,["writingAssistantRequestInProgressHandler"]],[30,18],[30,0,["waMinInputWordsRequired"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,3],[[30,0,["currentShareboxState"]],"DETOUR"],null],[[[44,[[50,[28,[37,12],[[30,0,["detourPath"]]],null],0,null,null]],[[[1," "],[8,[39,4],null,[["@modalComponents","@shouldFocusOnHeader","@headerClass"],[[30,4],[30,0,["shouldFocusOnHeader"]],[52,[30,0,["hideModalHeader"]],"visually-hidden",""]]],[["shareBoxHeader","shareBoxContent"],[[[[1,"\\n "],[1,[30,0,["modalHeader"]]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[30,19],null,[["@class","@closeSharebox","@detourData","@goToCreation","@isInModal","@nonMemberActor","@onDetourComplete","@setHasUnsavedDetourChanges","@shareboxSessionId","@shareboxText","@shouldShowBackButton","@shouldShowCancelButton","@updateShareboxModalConfig"],["full-height",[30,0,["onDismissModal"]],[30,0,["detourData"]],[30,0,["goToCreation"]],[30,0,["isModalSharebox"]],[52,[30,0,["currentActor","isNonMemberActor"]],[30,0,["currentActor"]]],[30,0,["onDetourComplete"]],[30,0,["setHasUnsavedDetourChanges"]],[30,11],[30,0,["trackedPostContents","trackedPostContentsData","text"]],[28,[37,13],[[30,20]],null],[52,[30,20],true,false],[30,0,["updateModalConfig"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[19]]]],[]],null],[41,[28,[37,3],[[30,0,["currentShareboxState"]],"VISIBILITY"],null],[[[41,[30,0,["isPhoenixUIEnabled"]],[[[1," "],[8,[39,14],null,[["@authorAndAudienceSettings","@availableActors","@eventContentVisibilityRestriction","@goToCreation","@isFixedVisibility","@isInBroadcastMode","@isInEditMode","@isInModal","@isInRepostMode","@showPaidEndorsement","@isPhoenixUIEnabled","@layoutComponents","@modalHeader","@previewIsRemovable","@protectedMediaPresentForDraft","@shareboxHasAttachment","@shouldFocusOnHeader","@showHeaderNotice","@showInlineHeader","@updateAuthorAndAudienceSettings","@updateModalConfig"],[[30,0,["authorAndAudienceSettings"]],[30,0,["availableActors"]],[30,0,["eventContentVisibilityRestriction"]],[30,0,["goToCreation"]],[30,0,["isFixedVisibility"]],[30,0,["isInBroadcastMode"]],[30,0,["isInEditMode"]],[30,0,["isModalSharebox"]],[30,0,["isInRepostMode"]],[30,0,["showPaidEndorsement"]],[30,0,["isPhoenixUIEnabled"]],[30,4],[30,0,["modalHeader"]],[30,0,["previewIsRemovable"]],[30,0,["protectedMediaPresentForDraft"]],[30,0,["shareboxHasAttachment"]],[30,0,["shouldFocusOnHeader"]],[30,0,["showHeaderNotice"]],[30,15],[30,0,["updateAuthorAndAudienceSettings"]],[30,0,["updateModalConfig"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,15],null,[["@authorAndAudienceSettings","@availableActors","@eventContentVisibilityRestriction","@goToCreation","@isFixedVisibility","@isInBroadcastMode","@isInEditMode","@isInModal","@isInRepostMode","@layoutComponents","@protectedMediaPresentForDraft","@modalHeader","@shareboxHasAttachment","@shouldFocusOnHeader","@showInlineHeader","@updateAuthorAndAudienceSettings","@updateModalConfig","@visibilityScreen"],[[30,0,["authorAndAudienceSettings"]],[30,0,["availableActors"]],[30,0,["eventContentVisibilityRestriction"]],[30,0,["goToCreation"]],[30,0,["isFixedVisibility"]],[30,0,["isInBroadcastMode"]],[30,0,["isInEditMode"]],[30,0,["isModalSharebox"]],[30,0,["isInRepostMode"]],[30,4],[30,0,["protectedMediaPresentForDraft"]],[30,0,["modalHeader"]],[30,0,["shareboxHasAttachment"]],[30,0,["shouldFocusOnHeader"]],[30,15],[30,0,["updateAuthorAndAudienceSettings"]],[30,0,["updateModalConfig"]],[30,0,["visibilityScreen"]]]],null],[1,"\\n"]],[]]]],[]],null],[41,[28,[37,3],[[30,0,["currentShareboxState"]],"MANAGEMENT"],null],[[[1," "],[8,[39,16],null,[["@canBeScheduled","@defaultToPostListView","@goToCreation","@isInModal","@layoutComponents","@modalHeader","@onScheduleSelected","@organizationActor","@showInlineHeader","@shouldFocusOnHeader","@timestamp","@updateModalConfig"],[[30,0,["canBeScheduled"]],[28,[37,3],[[30,0,["routedView"]],"management"],null],[30,0,["goToCreation"]],[30,0,["isModalSharebox"]],[30,4],[30,0,["modalHeader"]],[30,0,["onScheduleSelected"]],[52,[30,0,["isOrganizationActor"]],[30,0,["currentActor"]]],[30,15],[30,0,["shouldFocusOnHeader"]],[30,0,["scheduledAt"]],[30,0,["updateModalConfig"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[4]]]]],[1,"\\n"],[13]],["&attrs","@isPhoenixUIEnabled","@returnFocusTo","modalComponents","@customPrimaryButtonText","@groupId","@hideCreationStateFooter","@initialHeader","@isPremiumUpsellExperienceEnabled","@prefilledTextTVMV2","@shareBoxSessionId","@shareBoxSessionUrn","@shareOrigin","@shareType","@showInlineHeader","@updateV2","@upsellCardData","@writingAssistantTreatment","DetourComponent","@initialDetourType"],false,["artdeco-modal@artdeco-confirmation-dialog","artdeco-modal@artdeco-modal","if","global-helpers@eq","sharing-v2@share-box-layout","global-modifiers@focus","eq","sharing-v2@unified-settings-entry-button","fn","sharing-v2@creation-state","let","component","ember-holy-futuristic-template-namespacing-batman-translate-dynamic-2","global-helpers@is-empty","sharing-v2@visibility/phoenix-visibility-manager","sharing-v2@visibility/visibility-manager","sharing-v2@post-manager"]]',moduleName:"sharing-v2/components/share-box-v2.hbs",isStrictMode:!1})
let x=e.default=(f=(0,d.inject)("tracking"),y=(0,d.inject)("i18n"),_=(R=new WeakSet,k=new WeakSet,class extends c.default{constructor(){super(...arguments)
k.add(this)
R.add(this);(0,t.default)(this,"tracking",T,this);(0,t.default)(this,"i18n",v,this);(0,i.default)(this,"isModalSharebox",!0);(0,i.default)(this,"isPhoenixUIEnabled",!0);(0,t.default)(this,"isExtendedDetoursVisible",E,this);(0,t.default)(this,"isClosedByDismissButton",S,this);(0,t.default)(this,"modalHeader",I,this);(0,t.default)(this,"shareboxCloseControlName",C,this);(0,t.default)(this,"shareboxHasValidInteraction",A,this);(0,t.default)(this,"shouldFocusOnHeader",O,this);(0,t.default)(this,"showHeaderNotice",D,this);(0,t.default)(this,"modalSizeOverride",N,this);(0,t.default)(this,"modalHeightFull",w,this);(0,t.default)(this,"hideModalHeader",P,this)}get closeShareboxFromWithinDetour(){return this.args.initialDetourType&&!this.shareboxHasValidContent}_handleCloseShareboxModal(){var e,t
null===(e=(t=this.args).onCloseShareboxModal)||void 0===e||e.call(t)}_onShareEditSuccess(){super._onShareEditSuccess(...arguments)
this._handleCloseShareboxModal()}_getDraftSuccessToast(){super._getDraftSuccessToast()
this._handleCloseShareboxModal()}_getPostSuccessToast(){super._getPostSuccessToast(...arguments)
this._handleCloseShareboxModal()}_getPostPostPrompt(){super._getPostPostPrompt(...arguments)
this._handleCloseShareboxModal()}_buildShareStatusData(){super._buildShareStatusData(...arguments)
this._handleCloseShareboxModal()}_updateModalConfig(e){this.shouldFocusOnHeader=!1
const{modalHeader:t,controlName:i,shouldFocusOnHeader:r=!1,showHeaderNotice:a=!1,modalSizeOverride:o,modalHeightFull:s=!1,hideModalHeader:l=!1}=e;(0,u.scheduleOnce)("afterRender",this,(0,n.default)(this,k,L),a,t,i,r,o,s,l)}_detourDismissModalAction(){this.promptWarningDialogBeforeClosingDetour?this.isWarningDialogOpen=!0:this.closeShareboxFromWithinDetour?this._shareboxDismissModalAction():this.closeWarningDialogReturnToCreationState()}_shareboxDismissModalAction(){this.isClosedByDismissButton=!0
this.tracking.fireInteractionEvent(this.shareboxCloseControlName,"SHORT_PRESS")
if(this.isInDraftMode&&!this.shareboxHasValidContent){var e,t
super.deleteDraft()
null===(e=(t=this.args).onCancelSharebox)||void 0===e||e.call(t)
this._handleCloseShareboxModal()}else if(this.promptWarningDialogBeforeClosingSharebox)this.isWarningDialogOpen=!0
else{var i,n
null===(i=(n=this.args).onCancelSharebox)||void 0===i||i.call(n)
this._handleCloseShareboxModal()}}get confirmationModalTextConfig(){const{canBeSavedAsDraft:e,promptWarningDialogBeforePosting:t,isAiDraftUnmodified:i,isClosedByDismissButton:n,isInEditMode:r,showInsantRepostEducationDialog:a,scheduledAt:o,promptWarningDialogBeforeClosingDetour:s}=this
if(s)return(0,m.buildUnsavedDetourDialog)(this.i18n,this.closeShareboxFromWithinDetour?this.closeWarningDialogAndSharebox:this.closeWarningDialogReturnToCreationState,this.onDismissWarningDialog)
if(r)return(0,m.buildDiscardEditDialog)(this.i18n,this.closeWarningDialogAndSharebox,this.onDismissWarningDialog)
if(!n&&t){const e=i?"ai":"thought_starters"
return o?(0,m.buildScheduleAddThoughtsDialog)(this.i18n,this.onDismissWarningDialog,this.publishPost,e):a?(0,m.buildConvertRepostDialog)(this.i18n,this.convertToInstantRepostViaDialogConfirm,this.onDismissWarningDialog,this.previewedUpdateV2):(0,m.buildPostAddThoughtsDialog)(this.i18n,this.onDismissWarningDialog,this.publishPost,e)}return e?(0,m.buildSaveDraftDialog)(this.i18n,this.saveDraft,this.closeWarningDialogAndSharebox,this.args.shareOrigin,super.currentTargetedAudience,super.currentCommentRestriction):(0,m.buildDiscardDraftDialog)(this.i18n,this.closeWarningDialogAndSharebox,this.onDismissWarningDialog)}get isRedesignedHeaderEnabledOnCreation(){return this.args.isPhoenixUIEnabled&&this.currentShareboxState===p.SHAREBOX_STATE.CREATION}get modalSize(){return this.modalSizeOverride?this.modalSizeOverride:this.currentShareboxState===p.SHAREBOX_STATE.CREATION&&this.args.isPhoenixUIEnabled?"large":"medium"}updateModalConfig(e){this._updateModalConfig(e)}onUpsellContainerClickHandler(e){if(Array.from(e.target.classList).includes("app-aware-link")){e.preventDefault()
e.stopPropagation()
this.premiumTargetUrl=e.target.href
this.promptWarningDialogBeforeNavigatingToPremium?this.isWarningDialogOpen=!0:(0,n.default)(this,R,V).call(this)}}onDismissModal(){this.currentShareboxState===p.SHAREBOX_STATE.DETOUR?this._detourDismissModalAction():this._shareboxDismissModalAction()}closeWarningDialogAndSharebox(){var e,t
super.isInDraftMode&&super.deleteDraft()
this.isWarningDialogOpen=!1
this.isClosedByDismissButton=!1
null===(e=(t=this.args).onCancelSharebox)||void 0===e||e.call(t)
this._handleCloseShareboxModal()
this.promptWarningDialogBeforeNavigatingToPremium&&(0,n.default)(this,R,V).call(this)}onDismissWarningDialog(){this.isWarningDialogOpen=!1
this.isClosedByDismissButton=!1}saveDraft(){this.isWarningDialogOpen=!1
this.isClosedByDismissButton=!1
this.promptWarningDialogBeforeNavigatingToPremium?super.saveDraft(this.premiumTargetUrl):super.saveDraft()}onEscapeWarningDialog(){this.isAiDraftUnmodified?this.tracking.fireInteractionEvent(p.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.AI_WARNING_DIALOG_EXIT,"SHORT_PRESS"):this.tracking.fireInteractionEvent(p.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.WARNING_DIALOG_EXIT,"SHORT_PRESS")
this.isWarningDialogOpen=!1}removeFocus(e){(0,g.isEscapeKey)(e)&&e.stopPropagation()}showExtendedDetours(e){var t
this.isExtendedDetoursVisible=!0
this.setActiveControl(null===(t=e[0])||void 0===t?void 0:t.dataTestName)}firstTextChangeHandler(){this.args.isWritingAssistantV2Enabled||this.tookWritingAssistantAction()
this.shareboxHasValidInteraction||(this.shareboxHasValidInteraction=!0)}closeWarningDialogReturnToCreationState(){this.hasUnsavedDetourChanges=!1
this.isWarningDialogOpen=!1
this.shareboxState=p.SHAREBOX_STATE.CREATION}convertToInstantRepostViaDialogConfirm(){this.onDismissWarningDialog()
super.convertToInstantRepostViaDialogConfirm()}}),T=(0,r.default)(_.prototype,"tracking",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,r.default)(_.prototype,"i18n",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,r.default)(_.prototype,"isExtendedDetoursVisible",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),S=(0,r.default)(_.prototype,"isClosedByDismissButton",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),I=(0,r.default)(_.prototype,"modalHeader",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,r.default)(_.prototype,"shareboxCloseControlName",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,r.default)(_.prototype,"shareboxHasValidInteraction",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),O=(0,r.default)(_.prototype,"shouldFocusOnHeader",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),D=(0,r.default)(_.prototype,"showHeaderNotice",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),N=(0,r.default)(_.prototype,"modalSizeOverride",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),w=(0,r.default)(_.prototype,"modalHeightFull",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),P=(0,r.default)(_.prototype,"hideModalHeader",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,r.default)(_.prototype,"updateModalConfig",[h.action],Object.getOwnPropertyDescriptor(_.prototype,"updateModalConfig"),_.prototype),(0,r.default)(_.prototype,"onUpsellContainerClickHandler",[h.action],Object.getOwnPropertyDescriptor(_.prototype,"onUpsellContainerClickHandler"),_.prototype),(0,r.default)(_.prototype,"onDismissModal",[h.action],Object.getOwnPropertyDescriptor(_.prototype,"onDismissModal"),_.prototype),(0,r.default)(_.prototype,"closeWarningDialogAndSharebox",[h.action],Object.getOwnPropertyDescriptor(_.prototype,"closeWarningDialogAndSharebox"),_.prototype),(0,r.default)(_.prototype,"onDismissWarningDialog",[h.action],Object.getOwnPropertyDescriptor(_.prototype,"onDismissWarningDialog"),_.prototype),(0,r.default)(_.prototype,"saveDraft",[h.action],Object.getOwnPropertyDescriptor(_.prototype,"saveDraft"),_.prototype),(0,r.default)(_.prototype,"onEscapeWarningDialog",[h.action],Object.getOwnPropertyDescriptor(_.prototype,"onEscapeWarningDialog"),_.prototype),(0,r.default)(_.prototype,"removeFocus",[h.action],Object.getOwnPropertyDescriptor(_.prototype,"removeFocus"),_.prototype),(0,r.default)(_.prototype,"showExtendedDetours",[h.action],Object.getOwnPropertyDescriptor(_.prototype,"showExtendedDetours"),_.prototype),(0,r.default)(_.prototype,"firstTextChangeHandler",[h.action],Object.getOwnPropertyDescriptor(_.prototype,"firstTextChangeHandler"),_.prototype),(0,r.default)(_.prototype,"closeWarningDialogReturnToCreationState",[h.action],Object.getOwnPropertyDescriptor(_.prototype,"closeWarningDialogReturnToCreationState"),_.prototype),(0,r.default)(_.prototype,"convertToInstantRepostViaDialogConfirm",[h.action],Object.getOwnPropertyDescriptor(_.prototype,"convertToInstantRepostViaDialogConfirm"),_.prototype),_)
function V(){const e=(0,b.getInAppParams)(this.router,this.premiumTargetUrl)
this.router.transitionTo(e)}function L(e,t,i,n,r,a,o){this.showHeaderNotice=e
this.modalHeader=t
this.shareboxCloseControlName=i
this.shouldFocusOnHeader=n
this.modalSizeOverride=r
this.modalHeightFull=a
this.hideModalHeader=o}(0,o.setComponentTemplate)(M,x)}))
define.alias("ember-cloud-filepicker/components/slideshare-file-picker","sharing-v2/components/slideshare-file-picker")
define("sharing-v2/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("sharing-v2/components/state-change-button",["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","sharing-v2/utils/state-change-button-config","sharing-v2/utils/sharing-constants"],(function(e,t,i,n,r,a,o,s,l,d,c,u){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var h,p,g
const m=(0,o.createTemplateFactory)({id:"P8xItc7P",block:'[[[11,"button"],[16,0,[29,["share-state-change-button__button artdeco-button artdeco-button--muted artdeco-button--",[30,0,["toggleConfig","buttonSize"]],"\\n artdeco-button--",[30,0,["toggleConfig","buttonType"]]]]],[16,"aria-label",[30,0,["toggleConfig","ariaLabel"]]],[16,"disabled",[30,1]],[24,4,"button"],[4,[38,0],[[30,0,["toggleConfig","controlName"]]],null],[4,[38,1],["click",[30,0,["onButtonClick"]]],null],[12],[1,"\\n"],[41,[30,0,["toggleConfig","iconType"]],[[[1,"\\n "],[8,[39,3],[[24,0,"share-state-change-button__icon"]],[["@name","@type","@size"],[[30,0,["toggleConfig","iconType"]],"system","small"]],null],[1,"\\n\\n"]],[]],null],[1," "],[10,1],[14,0,"share-state-change-button__label"],[12],[1,"\\n "],[1,[28,[35,4],[[30,0,["toggleConfig","label"]]],[["length"],[40]]]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["toggleConfig","showCaretIcon"]],[[[1," "],[8,[39,3],[[24,0,"share-state-change-button__icon"]],[["@type","@size","@name"],["system","small","caret"]],null],[1,"\\n"]],[]],null],[13]],["@disabled"],false,["ember-cli-pemberly-tracking@track-interaction","on","if","hue-web-icons@icon","global-helpers@truncate-text"]]',moduleName:"sharing-v2/components/state-change-button.hbs",isStrictMode:!1})
let b=e.default=(h=(0,d.inject)("i18n"),p=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"i18n",g,this)}get isCommentRestrictionToggleMode(){return"comment-restriction"===this.toggleConfig.type}get isActorToggleMode(){return"actor"===this.toggleConfig.type}get isVisibilityMode(){return"visibility"===this.toggleConfig.type}get toggleConfig(){return new c.default(this.args.stateChangeButton,this.i18n,"sharing-v2@state-change-button")}get visibilityScreen(){return this.isActorToggleMode?u.VISIBILITY_SCREEN.ACTOR_TOGGLE:this.isCommentRestrictionToggleMode?u.VISIBILITY_SCREEN.COMMENT_CONTROLS:u.VISIBILITY_SCREEN.VISIBILITY_OPTIONS}onButtonClick(){var e,t
null===(e=(t=this.args).goToVisibilityScreen)||void 0===e||e.call(t,this.visibilityScreen)}},g=(0,n.default)(p.prototype,"i18n",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(p.prototype,"onButtonClick",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"onButtonClick"),p.prototype),p);(0,a.setComponentTemplate)(m,b)}))
define("sharing-v2/components/unified-settings-entry-button",["exports","@ember/component","@ember/template-factory","@glimmer/component","sharing-shared/utils/sharing-shared-constants"],(function(e,t,i,n,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const a=(0,i.createTemplateFactory)({id:"3yedDVHn",block:'[[[10,"h2"],[14,1,"share-to-linkedin-modal__header"],[12],[1,"\\n "],[11,"button"],[16,"disabled",[30,1]],[24,0,"share-unified-settings-entry-button"],[24,4,"button"],[4,[38,0],["click",[30,2]],null],[4,[38,1],[[30,3]],null],[12],[1,"\\n "],[8,[39,2],null,[["@class","@size"],["relative",4]],[["default"],[[[[1,"\\n "],[8,[30,4,["image"]],null,[["@type"],[[30,5,["lockupImageShape"]]]],[["default"],[[[[1,"\\n"],[41,[28,[37,4],[[30,5,["image"]],[30,5,["vectorImageGhostType"]]],null],[[[41,[28,[37,5],[[30,5,["image"]]],null],[[[1," "],[8,[39,6],null,[["@a11yText","@entitySize","@images"],[[30,5,["name"]],3,[30,5,["image"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,7],null,[["@alt","@class","@desiredWidth","@ghostType","@image"],[[30,5,["name"]],[30,5,["imageEntityClass"]],50,[30,5,["vectorImageGhostType"]],[30,5,["image"]]]],null],[1,"\\n"]],[]]]],[]],null],[1," "]],[]]]]],[1,"\\n "],[8,[30,4,["content"]],null,[["@class"],["share-unified-settings-entry-button__lockup-content"]],[["default"],[[[[1,"\\n "],[8,[30,4,["title"]],null,[["@altLink","@class"],[false,"display-flex align-items-center"]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"text-body-large-bold truncate"],[12],[1,[30,5,["name"]]],[13],[1,"\\n "],[8,[39,8],[[24,0,"share-unified-settings-entry-button__chevron-icon"]],[["@name","@size"],["caret","medium"]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[30,4,["subtitle"]],null,[["@class"],["truncate"]],[["default"],[[[[1,"\\n"],[41,[30,0,["isVisibilityTypeUnknown"]],[[[1," "],[1,[30,6,["name","text"]]],[1,"\\n"]],[]],[[[41,[30,7],[[[1," "],[1,[28,[35,9],["i18n_edit_post_visibility_text","sharing-v2/components/unified-settings-entry-button"],[["visibilityText"],[[30,6,["name","text"]]]]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,9],["i18n_visibility_text","sharing-v2/components/unified-settings-entry-button"],[["visibilityText"],[[30,6,["name","text"]]]]]],[1,"\\n "]],[]]]],[]]],[1," "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n"],[41,[30,6,["logo"]],[[[1," "],[10,0],[14,0,"share-unified-settings-entry-button__group-image"],[12],[1,"\\n"],[41,[28,[37,5],[[30,6,["logo"]]],null],[[[1," "],[8,[39,6],null,[["@a11yText","@entitySize","@images","@desiredHeight","@imgClasses"],["",1,[30,6,["logo"]],32,[30,6,["imageEntityClass"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,7],null,[["@image","@alt","@desiredWidth","@class","@ghostType"],[[30,6,["logo"]],"",50,"",[30,6,["iconName"]]]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],[4]]]]],[1,"\\n "],[13],[1,"\\n"],[13]],["@disabled","@clickHandler","@dataControlName","elements","@currentActor","@currentVisibility","@isInEditMode"],false,["on","ember-cli-pemberly-tracking@track-interaction","artdeco-entity-lockup@artdeco-entity-lockup","if","global-helpers@or","global-helpers@is-ivm-image","image-view-model@image-view-model","ember-vector-images@lazy-image","hue-web-icons@icon","t"]]',moduleName:"sharing-v2/components/unified-settings-entry-button.hbs",isStrictMode:!1})
class o extends n.default{get isVisibilityTypeUnknown(){return this.args.currentVisibility.type===r.VALID_VISIBILITY_TYPES.SELECT_VISIBILITY}}e.default=o;(0,t.setComponentTemplate)(a,o)}))
define("sharing-v2/components/visibility/actor-toggle",["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","@glimmer/tracking","@ember/object","sharing-v2/utils/sharing-constants","sharing-shared/utils/generic-list-item","sharing-shared/utils/text-view-model-helpers","sharing-shared/utils/sharebox-list-item","detour-framework/utils/detour-constants"],(function(e,t,i,n,r,a,o,s,l,d,c,u,h,p,g,m){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var b,f,y,_
const T=(0,o.createTemplateFactory)({id:"834ERsZ/",block:'[[[41,[30,1],[[[1," "],[8,[39,1],null,[["@headerType","@titleText"],[[30,2],[28,[37,2],["i18n_posting_as","sharing-v2/components/visibility/actor-toggle"],null]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[11,0],[16,0,[29,[[52,[30,3],"share-box-modal-content__container","share-box-modal-content__inline-container"]]]],[4,[38,3],null,[["pageKey","routeName","currentRoute"],[[30,0,["pageKey"]],[28,[37,4],[[53,"outletState"],"render.name"],null],[28,[37,4],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n"],[41,[30,0,["actorToggleDisabled"]],[[[1," "],[8,[39,6],null,[["@linkText","@type","@onClick","@message","@class"],[[28,[37,2],["i18n_go_back","sharing-v2/components/visibility/actor-toggle"],null],"error",[52,[30,4],[30,5],[30,6]],[28,[37,2],["i18n_actor_toggle_error","sharing-v2/components/visibility/actor-toggle"],null],"share-visibility__error-feedback"]],null],[1,"\\n"]],[]],null],[1,"\\n "],[10,"fieldset"],[14,0,"share-visibility__fieldset"],[12],[1,"\\n "],[10,"legend"],[14,0,"visually-hidden"],[12],[1,"\\n "],[1,[28,[35,2],["i18n_actor_btn_a11y_label","sharing-v2/components/visibility/actor-toggle"],[["label"],[[30,0,["currentActor","name"]]]]]],[1,"\\n "],[13],[1,"\\n"],[41,[30,4],[[[1," "],[8,[39,7],null,[["@listItems","@currentSelectionId","@setItem","@isInModal","@isDisabled"],[[30,0,["listItemsPhoenix"]],[30,0,["currentActor","dashUrn"]],[30,0,["onActorSelect"]],[30,3],[30,0,["actorToggleDisabled"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,8],null,[["@listItems","@currentSelectionId","@setItem","@isInModal","@isDisabled"],[[30,0,["listItems"]],[30,0,["currentActor","dashUrn"]],[30,0,["onActorSelect"]],[30,3],[30,0,["actorToggleDisabled"]]]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,9],null,[["@primaryAction","@primaryControlName","@primaryButtonKey","@isPrimaryDisabled","@secondaryAction","@secondaryControlName","@secondaryButtonKey"],[[30,0,["onSave"]],[52,[30,4],[30,0,["controlInteractionEvents","ACTOR_SELECT_SAVE_V2"]],[30,0,["controlInteractionEvents","ACTOR_SELECT_SAVE"]]],[30,0,["footerPrimaryButtonKeys","SAVE"]],[30,0,["disableSaveButton"]],[30,0,["onSecondaryAction"]],[52,[30,4],[30,0,["controlInteractionEvents","ACTOR_SELECT_BACK_V2"]],[30,0,["controlInteractionEvents","ACTOR_SELECT_BACK"]]],[30,0,["footerSecondaryButtonKeys","BACK"]]]],null]],["@showInlineHeader","@headerType","@isInModal","@isPhoenixUIEnabled","@goToUnifiedSettingsMenu","@goToCreation"],false,["if","detour-framework@title-bar","t","ember-cli-pemberly-tracking@track-render","get","-get-dynamic-var","artdeco-inline-feedback@artdeco-inline-feedback","sharing-shared@generic-list","sharing-shared@detour-generic-list","detour-framework@share-box-footer"]]',moduleName:"sharing-v2/components/visibility/actor-toggle.hbs",isStrictMode:!1})
let v=e.default=(b=(0,l.inject)("i18n"),f=class extends s.default{get disableSaveButton(){var e
return(null===(e=this.args.initialActor)||void 0===e?void 0:e.dashUrn)===this.currentActor.dashUrn}get currentActor(){return this.selectedActor??this.args.initialActor}get listItems(){return this.args.availableActors.map((e=>new h.default({entityImageShape:e.lockupImageShape,itemId:e.dashUrn,image:e.image,controlName:this.controlInteractionEvents.ACTOR_SELECT,text:(0,p.createTextViewModelV2)(e.name),imageAltText:e.name,vectorImageGhostType:e.vectorImageGhostType})))}get listItemsPhoenix(){return this.args.availableActors.map((e=>new g.default({entityImageShape:e.lockupImageShape,itemId:e.dashUrn,image:e.image,controlName:this.controlInteractionEvents.ACTOR_SELECT,mainText:(0,p.createTextViewModelV2)(e.name),imageAltText:e.name,vectorImageGhostType:e.vectorImageGhostType})))}get actorToggleDisabled(){return!this.args.isInRepostMode&&this.args.shareboxHasAttachment}constructor(){var e,n
super(...arguments);(0,t.default)(this,"i18n",y,this);(0,i.default)(this,"controlInteractionEvents",u.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS);(0,i.default)(this,"pageKey",this.args.isPhoenixUIEnabled?u.SHAREBOX_TRACKING.PAGEVIEW_EVENTS.ACTOR_TOGGLE_V2:u.SHAREBOX_TRACKING.PAGEVIEW_EVENTS.ACTOR_TOGGLE);(0,i.default)(this,"footerPrimaryButtonKeys",m.SHARE_BOX_FOOTER_PRIMARY_KEYS);(0,i.default)(this,"footerSecondaryButtonKeys",m.SHARE_BOX_FOOTER_SECONDARY_KEYS);(0,t.default)(this,"selectedActor",_,this)
null===(e=(n=this.args).updateModalConfig)||void 0===e||e.call(n,{modalHeader:this.i18n.lookupTranslation("components/sharing-v2@visibility/actor-toggle","i18n_posting_as")(),controlName:this.controlInteractionEvents.ACTOR_SELECT_EXIT,shouldFocusOnHeader:!0})}onActorSelect(e){this.selectedActor=this.args.availableActors.find((t=>t.dashUrn===e))}onSave(){var e,t
null===(e=(t=this.args).onActorSelected)||void 0===e||e.call(t,this.currentActor)}onSecondaryAction(){this.args.isPhoenixUIEnabled?this.args.goToUnifiedSettingsMenu(u.UNIFIED_SETTINGS_CTAS.ACTOR):this.args.goToCreation()}},y=(0,n.default)(f.prototype,"i18n",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,n.default)(f.prototype,"selectedActor",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(f.prototype,"onActorSelect",[c.action],Object.getOwnPropertyDescriptor(f.prototype,"onActorSelect"),f.prototype),(0,n.default)(f.prototype,"onSave",[c.action],Object.getOwnPropertyDescriptor(f.prototype,"onSave"),f.prototype),(0,n.default)(f.prototype,"onSecondaryAction",[c.action],Object.getOwnPropertyDescriptor(f.prototype,"onSecondaryAction"),f.prototype),f);(0,a.setComponentTemplate)(T,v)}))
define("sharing-v2/components/visibility/comment-controls",["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","@ember/debug","@glimmer/component","@ember/object","@glimmer/tracking","@ember/service","sharing-v2/utils/sharing-constants","sharing-shared/utils/sharing-shared-constants","sharing-shared/utils/text-view-model-helpers","sharing-shared/utils/generic-list-item","sharing-shared/utils/sharebox-list-item","image-view-model/utils/hue-icon","sharing-v2/utils/sharing-utils","detour-framework/utils/detour-constants"],(function(e,t,i,n,r,a,o,s,l,d,c,u,h,p,g,m,b,f,y,_,T){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var v,E,S,I,C,A,O,D,N,w,P,R,k,M,x
const V=(0,s.createTemplateFactory)({id:"bNh4OXTq",block:'[[[41,[30,1],[[[1," "],[8,[39,1],null,[["@headerType","@titleText"],[[30,2],[28,[37,2],["i18n_who_can_comment","sharing-v2/components/visibility/comment-controls"],null]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[11,0],[16,0,[52,[30,3],"share-box-modal-content__container"]],[4,[38,3],null,[["pageKey","routeName","currentRoute"],[[30,0,["pageKey"]],[28,[37,4],[[53,"outletState"],"render.name"],null],[28,[37,4],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n"],[41,[30,0,["showCommentControlsFeedbackMessage"]],[[[1," "],[8,[39,6],null,[["@type","@message","@class"],["note",[28,[37,2],["i18n_sticky_comment_controls_message","sharing-v2/components/visibility/comment-controls"],null],"share-visibility__comment-controls-initialization-msg"]],null],[1,"\\n"]],[]],null],[1,"\\n "],[10,"fieldset"],[14,0,"share-visibility__fieldset"],[12],[1,"\\n"],[41,[30,4],[[[1," "],[8,[39,7],null,[["@listItems","@currentSelectionId","@setItem","@isInModal"],[[30,0,["listItemsPhoenix"]],[30,0,["currentSelection"]],[30,0,["setCurrentSelection"]],[30,3]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,8],null,[["@listItems","@currentSelectionId","@setItem","@isInModal"],[[30,0,["listItems"]],[30,0,["currentSelection"]],[30,0,["setCurrentSelection"]],[30,3]]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,9],null,[["@primaryAction","@primaryControlName","@primaryButtonKey","@isPrimaryDisabled","@secondaryAction","@secondaryControlName","@secondaryButtonKey"],[[30,0,["onSaveButtonClick"]],[52,[30,4],[30,0,["controlInteractionEvents","COMMENT_CONTROLS_SELECT_SAVE_V2"]],[30,0,["controlInteractionEvents","COMMENT_CONTROLS_SELECT_SAVE"]]],[30,0,["footerPrimaryButtonKeys","SAVE"]],[30,0,["isSaveButtonDisabled"]],[30,0,["onSecondaryAction"]],[52,[30,4],[30,0,["controlInteractionEvents","COMMENT_CONTROLS_SELECT_BACK_V2"]],[30,0,["controlInteractionEvents","COMMENT_CONTROLS_SELECT_BACK"]]],[30,0,["footerSecondaryButtonKeys","BACK"]]]],null]],["@showInlineHeader","@headerType","@isInModal","@isPhoenixUIEnabled"],false,["if","detour-framework@title-bar","t","ember-cli-pemberly-tracking@track-render","get","-get-dynamic-var","artdeco-inline-feedback@artdeco-inline-feedback","sharing-shared@generic-list","sharing-shared@detour-generic-list","detour-framework@share-box-footer"]]',moduleName:"sharing-v2/components/visibility/comment-controls.hbs",isStrictMode:!1})
let L=e.default=(v=(0,h.inject)("i18n"),E=(0,h.inject)("lego@resolver"),S=(0,h.inject)("lego@tracking"),I=(0,h.inject)("lix"),C=(R=new WeakSet,k=new WeakSet,M=new WeakSet,x=new WeakSet,class extends d.default{get listItems(){return this.args.currentCommentControlsList?this.args.currentCommentControlsList.map((e=>{const t=e.menuItem
return new b.default({itemId:e.allowedCommentersScope,controlName:t.controlName,text:t.title,subtext:t.description,iconType:(0,y.getHueIcon)(t.iconName).name,entityImageShape:"square"})})):this.args.isNonMemberActor?[(0,n.default)(this,R,U).call(this,p.COMMENT_RESTRICTION_CONFIGS.ALL),(0,n.default)(this,R,U).call(this,p.COMMENT_RESTRICTION_CONFIGS.NONE)]:this.args.currentVisibility.containerEntity?[(0,n.default)(this,R,U).call(this,p.COMMENT_RESTRICTION_CONFIGS_FOR_CONTAINERS.ENABLED),(0,n.default)(this,R,U).call(this,p.COMMENT_RESTRICTION_CONFIGS_FOR_CONTAINERS.DISABLED)]:this.args.currentVisibility.type===g.VALID_VISIBILITY_TYPES.CONNECTIONS?[(0,n.default)(this,R,U).call(this,p.COMMENT_RESTRICTION_CONFIGS.CONNECTIONS_ONLY),(0,n.default)(this,R,U).call(this,p.COMMENT_RESTRICTION_CONFIGS.NONE)]:[(0,n.default)(this,R,U).call(this,p.COMMENT_RESTRICTION_CONFIGS.ALL),(0,n.default)(this,R,U).call(this,p.COMMENT_RESTRICTION_CONFIGS.CONNECTIONS_ONLY),(0,n.default)(this,R,U).call(this,p.COMMENT_RESTRICTION_CONFIGS.NONE)]}get listItemsPhoenix(){return this.args.currentCommentControlsList?this.args.currentCommentControlsList.map((e=>{const t=e.menuItem
return new f.default({itemId:e.allowedCommentersScope,controlName:t.controlName,mainText:t.title,iconType:(0,y.getHueIcon)(t.iconName).name})})):this.args.isNonMemberActor?[(0,n.default)(this,k,B).call(this,p.COMMENT_RESTRICTION_CONFIGS.ALL),(0,n.default)(this,k,B).call(this,p.COMMENT_RESTRICTION_CONFIGS.NONE)]:this.args.currentVisibility.containerEntity?[(0,n.default)(this,k,B).call(this,p.COMMENT_RESTRICTION_CONFIGS_FOR_CONTAINERS.ENABLED),(0,n.default)(this,k,B).call(this,p.COMMENT_RESTRICTION_CONFIGS_FOR_CONTAINERS.DISABLED)]:this.args.currentVisibility.type===g.VALID_VISIBILITY_TYPES.CONNECTIONS?[(0,n.default)(this,k,B).call(this,p.COMMENT_RESTRICTION_CONFIGS.CONNECTIONS_ONLY),(0,n.default)(this,k,B).call(this,p.COMMENT_RESTRICTION_CONFIGS.NONE)]:[(0,n.default)(this,k,B).call(this,p.COMMENT_RESTRICTION_CONFIGS.ALL),(0,n.default)(this,k,B).call(this,p.COMMENT_RESTRICTION_CONFIGS.CONNECTIONS_ONLY),(0,n.default)(this,k,B).call(this,p.COMMENT_RESTRICTION_CONFIGS.NONE)]}get isInModal(){return this.args.isInModal??!1}get isSaveButtonDisabled(){return this.args.initialCommentRestrictionSetting.type===this.currentSelection}constructor(){var e,r
super(...arguments)
x.add(this)
M.add(this)
k.add(this)
R.add(this);(0,t.default)(this,"i18n",A,this);(0,t.default)(this,"legoResolver",O,this);(0,t.default)(this,"legoTracking",D,this);(0,t.default)(this,"lix",N,this);(0,i.default)(this,"controlInteractionEvents",p.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS);(0,i.default)(this,"pageKey",this.args.isPhoenixUIEnabled?p.SHAREBOX_TRACKING.PAGEVIEW_EVENTS.COMMENT_CONTROLS_V2:p.SHAREBOX_TRACKING.PAGEVIEW_EVENTS.COMMENT_CONTROLS);(0,i.default)(this,"footerPrimaryButtonKeys",T.SHARE_BOX_FOOTER_PRIMARY_KEYS);(0,i.default)(this,"footerSecondaryButtonKeys",T.SHARE_BOX_FOOTER_SECONDARY_KEYS);(0,t.default)(this,"currentSelection",w,this);(0,t.default)(this,"showCommentControlsFeedbackMessage",P,this)
const a=this.getLocalizedString("i18n_comment_control"),o=this.getLocalizedString(this.args.currentVisibility.containerEntity?"i18n_commenting_for_post":"i18n_who_can_comment")
null===(e=(r=this.args).updateModalConfig)||void 0===e||e.call(r,{modalHeader:this.args.isPhoenixUIEnabled?a:o,controlName:p.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.COMMENTS_CONTROLS_SELECT_EXIT,shouldFocusOnHeader:!0})
this.args.currentCommentControlsList&&(0,n.default)(this,M,H).call(this)
this.currentSelection=this.args.initialCommentRestrictionSetting.type}getLocalizedString(e){return this.i18n.lookupTranslation("components/sharing-v2@visibility/comment-controls",e)()}get isPageContentGraphQLEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.hiring-lego-page-content-graphql-migration")}onSaveButtonClick(){this.args.onCommentRestrictionSelected(this.currentSelection)}setCurrentSelection(e){this.currentSelection=e}onSecondaryAction(){this.args.isPhoenixUIEnabled?this.args.goToUnifiedSettingsMenu(p.UNIFIED_SETTINGS_CTAS.COMMENT):this.args.goToCreation()}}),A=(0,r.default)(C.prototype,"i18n",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,r.default)(C.prototype,"legoResolver",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,r.default)(C.prototype,"legoTracking",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,r.default)(C.prototype,"lix",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,r.default)(C.prototype,"currentSelection",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,r.default)(C.prototype,"showCommentControlsFeedbackMessage",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,r.default)(C.prototype,"onSaveButtonClick",[c.action],Object.getOwnPropertyDescriptor(C.prototype,"onSaveButtonClick"),C.prototype),(0,r.default)(C.prototype,"setCurrentSelection",[c.action],Object.getOwnPropertyDescriptor(C.prototype,"setCurrentSelection"),C.prototype),(0,r.default)(C.prototype,"onSecondaryAction",[c.action],Object.getOwnPropertyDescriptor(C.prototype,"onSecondaryAction"),C.prototype),C)
function U(e){return new b.default({itemId:e.TYPE,controlName:e.CONTROL_NAME,text:(0,m.createTextViewModelV2)(this.getLocalizedString(e.I18N_TEXT_KEY)),subtext:(0,m.createTextViewModelV2)(this.getLocalizedString(e.I18N_SUBTEXT_KEY)),iconType:e.ICON_NAME,entityImageShape:"square"})}function B(e){return new f.default({itemId:e.TYPE,controlName:e.CONTROL_NAME_V2,mainText:(0,m.createTextViewModelV2)(this.getLocalizedString(e.I18N_TEXT_KEY)),iconType:e.ICON_NAME})}function H(){(0,_.fireLegoRequestHelper)(this.legoResolver,{pageKey:"feed_share",slotId:"sticky_visibility_inline_feedback",groupId:"sticky_visibility_inline_feedback",widgetId:"sharing:_show_sticky_vis_inline_feedback_com"},(e=>(0,n.default)(this,x,F).call(this,null==e?void 0:e.trackingToken)),this.isPageContentGraphQLEnabled)}function F(e){this.showCommentControlsFeedbackMessage=!0
this.legoTracking.sendLegoImpression(e,this.legoTracking.LEGO_IMPRESSION_VISIBILITY_SHOW)}(0,o.setComponentTemplate)(V,L)}))
define("sharing-v2/components/visibility/dash-containers-list",["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","@ember/destroyable","@ember/object","@ember/service","@glimmer/component","@glimmer/tracking","image-view-model/utils/hue-icon","sharing-shared/utils/client-sensor-constants","sharing-shared/utils/client-sensor-utils","sharing-shared/utils/sharing-shared-constants","sharing-shared/utils/visibility-utils","sharing-v2/utils/sharing-constants","sharing-v2/utils/visibility/visibility-option","detour-framework/utils/detour-constants"],(function(e,t,i,n,r,a,o,s,l,d,c,u,h,p,g,m,b,f,y,_,T){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var v,E,S,I,C,A,O,D,N,w,P
const R=(0,s.createTemplateFactory)({id:"IIZ5uS7L",block:'[[[41,[30,1],[[[1," "],[8,[39,1],null,[["@headerType","@titleText"],[[30,2],[30,0,["containerHeader"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[11,0],[16,0,[29,[[52,[30,3],"share-box-modal-content__container"]]]],[4,[38,2],null,[["pageKey","routeName","currentRoute"],[[30,0,["pageKey"]],[28,[37,3],[[53,"outletState"],"render.name"],null],[28,[37,3],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n "],[10,0],[14,1,"phoenix-sharebox-hoverable-outlet"],[12],[13],[1,"\\n "],[8,[39,5],null,[["@contentClass","@theme","@to","@id"],["share-visibility__groups-disclaimer","inverse","phoenix-sharebox-hoverable-outlet","groups-disclaimer"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["i18n_group_disclaimer","sharing-v2/components/visibility/dash-containers-list"],null]],[1,"\\n "]],[]]]]],[1,"\\n"],[41,[30,4,["subheader"]],[[[1," "],[10,"h3"],[14,0,"share-visibility__subheader"],[12],[1,"\\n "],[1,[30,4,["subheader"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["hasContainersListError"]],[[[1," "],[10,0],[14,0,"share-visibility__error-feedback"],[12],[1,"\\n "],[8,[39,7],null,[["@message","@role","@type"],[[28,[37,6],["i18n_containers_error","sharing-v2/components/visibility/dash-containers-list"],null],"status","error"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1,"\\n "],[10,0],[15,0,[28,[37,8],["share-visibility__containers-list-loader ",[52,[30,0,["containerListLoaded"]],"visually-hidden"]],null]],[12],[1,"\\n "],[8,[39,9],null,[["@size"],["small"]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,"fieldset"],[14,0,"share-visibility__fieldset"],[12],[1,"\\n "],[10,"legend"],[14,0,"visually-hidden"],[12],[1,[30,0,["containerHeader"]]],[13],[1,"\\n"],[41,[30,0,["containerListLoaded"]],[[[41,[30,5],[[[1," "],[8,[39,10],null,[["@currentSelectionId","@isInModal","@listItems","@setItem"],[[30,0,["currentVisibility","containerEntity"]],[30,3],[30,0,["containerListItemsPhoenix"]],[30,0,["setItem"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,11],null,[["@currentSelectionId","@isInModal","@listItems","@setItem"],[[30,0,["currentVisibility","containerEntity"]],[30,3],[30,0,["containerListItems"]],[30,0,["setItem"]]]],null],[1,"\\n"]],[]]]],[]],null],[1," "],[13],[1,"\\n"]],[]]],[13],[1,"\\n\\n"],[8,[39,12],null,[["@primaryAction","@primaryControlName","@primaryButtonKey","@isPrimaryDisabled","@secondaryAction","@secondaryControlName","@secondaryButtonKey","@errorState"],[[30,0,["footerPrimaryAction"]],[30,0,["footerPrimaryActionControlName"]],[30,0,["footerPrimaryActionKey"]],[30,0,["disableSaveButton"]],[30,0,["onSecondaryAction"]],[30,4,["backControlName"]],[30,0,["footerSecondaryButtonKeys","BACK"]],[30,0,["hasContainersListError"]]]],null]],["@showInlineHeader","@headerType","@isInModal","@dashContainerMetadata","@isPhoenixUIEnabled"],false,["if","detour-framework@title-bar","ember-cli-pemberly-tracking@track-render","get","-get-dynamic-var","artdeco-hoverables@artdeco-hoverable-content","t","artdeco-inline-feedback@artdeco-inline-feedback","concat","artdeco-loader@artdeco-loader","sharing-shared@generic-list","sharing-shared@detour-generic-list","detour-framework@share-box-footer"]]',moduleName:"sharing-v2/components/visibility/dash-containers-list.hbs",isStrictMode:!1})
let k=e.default=(v=(0,c.inject)("global-services@store-shim"),E=(0,c.inject)("client-sensor-web@client-sensor"),S=(w=new WeakSet,P=new WeakSet,class extends u.default{get disableSaveButton(){var e
return!this.hasContainersListError&&(!this.currentVisibility||!this.containerOptions.some((e=>e.containerEntity===this.currentVisibility.containerEntity))||this.currentVisibility.containerEntity===(null===(e=this.args.initialVisibility)||void 0===e?void 0:e.containerEntity))}get currentVisibility(){return this.selectedVisibility??this.args.initialVisibility}get footerPrimaryActionControlName(){return this.hasContainersListError?this.args.dashContainerMetadata.retryControlName:this.args.dashContainerMetadata.saveControlName}get footerPrimaryAction(){return this.hasContainersListError?this.tryAgain:this.onSave}get footerPrimaryActionKey(){return this.hasContainersListError?this.footerPrimaryButtonKeys.RETRY:this.footerPrimaryButtonKeys.SAVE}constructor(){var e,r,a,o,s
super(...arguments)
P.add(this)
w.add(this);(0,t.default)(this,"storeShim",I,this);(0,t.default)(this,"clientSensor",C,this);(0,i.default)(this,"pageKey",this.args.isPhoenixUIEnabled?y.SHAREBOX_TRACKING.PAGEVIEW_EVENTS.CONTAINER_MENU_V2:y.SHAREBOX_TRACKING.PAGEVIEW_EVENTS.CONTAINER_MENU);(0,i.default)(this,"footerPrimaryButtonKeys",T.SHARE_BOX_FOOTER_PRIMARY_KEYS);(0,i.default)(this,"footerSecondaryButtonKeys",T.SHARE_BOX_FOOTER_SECONDARY_KEYS);(0,t.default)(this,"containerListLoaded",A,this);(0,t.default)(this,"hasContainersListError",O,this);(0,t.default)(this,"selectedVisibility",D,this);(0,t.default)(this,"containerOptions",N,this)
this.containerHeader=null===(e=this.args.dashContainerMetadata)||void 0===e?void 0:e.header
this.containerTypeUrn=null===(r=this.args.dashContainerMetadata)||void 0===r?void 0:r.containerTypeUrn
null===(a=(o=this.args).updateModalConfig)||void 0===a||a.call(o,{showHeaderNotice:this.args.isPhoenixUIEnabled,modalHeader:this.containerHeader,controlName:null===(s=this.args.dashContainerMetadata)||void 0===s?void 0:s.exitControlName});(0,n.default)(this,w,M).call(this)}setItem(e){const t=this.containerOptions.find((t=>t.containerEntity===e))
this.selectedVisibility=(0,n.default)(this,P,x).call(this,t)}tryAgain(){this.containerListLoaded=!1;(0,n.default)(this,w,M).call(this)}onSave(){var e,t
null===(e=(t=this.args).onOptionSelected)||void 0===e||e.call(t,this.selectedVisibility)}onSecondaryAction(){this.args.isPhoenixUIEnabled?this.args.goToUnifiedSettingsMenu(y.UNIFIED_SETTINGS_CTAS.CONTAINER):this.args.goToPreviousPage(y.UNIFIED_SETTINGS_CTAS.CONTAINER)}}),I=(0,r.default)(S.prototype,"storeShim",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,r.default)(S.prototype,"clientSensor",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,r.default)(S.prototype,"containerListLoaded",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),O=(0,r.default)(S.prototype,"hasContainersListError",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,r.default)(S.prototype,"selectedVisibility",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,r.default)(S.prototype,"containerOptions",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,r.default)(S.prototype,"setItem",[d.action],Object.getOwnPropertyDescriptor(S.prototype,"setItem"),S.prototype),(0,r.default)(S.prototype,"tryAgain",[d.action],Object.getOwnPropertyDescriptor(S.prototype,"tryAgain"),S.prototype),(0,r.default)(S.prototype,"onSave",[d.action],Object.getOwnPropertyDescriptor(S.prototype,"onSave"),S.prototype),(0,r.default)(S.prototype,"onSecondaryAction",[d.action],Object.getOwnPropertyDescriptor(S.prototype,"onSecondaryAction"),S.prototype),S)
function M(){this.hasContainersListError=!1
return(0,f.getDashContainersList)(this.storeShim,this.args.dashContainerMetadata.containerTypeUrn,0,100).then((e=>{var t
if(!(0,l.isDestroying)(this)&&!this.isDestroying&&this.args.dashContainerMetadata.containerTypeUrn===this.containerTypeUrn){(0,m.fireSharingClientSensor)(this.clientSensor,g.SharingClientSensorMetrics.CONTAINER_LIST_LOAD_SUCCESS)
this.containerOptions=(null===(t=e.elements)||void 0===t?void 0:t.content)??[]
if(this.args.isPhoenixUIEnabled){var i
this.containerListItemsPhoenix=(0,f.createShareboxListItemsFromContainers)(this.containerOptions,null===(i=this.args.dashContainerMetadata)||void 0===i?void 0:i.selectionControlName)}else{var n
this.containerListItems=(0,f.createGenericListItemsFromContainers)(this.containerOptions,null===(n=this.args.dashContainerMetadata)||void 0===n?void 0:n.selectionControlName)}}})).catch((e=>{if(this.isDestroying)throw e;(0,m.fireSharingClientSensor)(this.clientSensor,g.SharingClientSensorMetrics.CONTAINER_LIST_LOAD_FAILURE)
if(!e)throw e
this.hasContainersListError=!0})).finally((()=>{this.isDestroying||(this.containerListLoaded=!0)}))}function x(e){var t,i,n,r,a
const o=null===(t=e.visibilityIcon)||void 0===t||null===(i=t.attributes)||void 0===i||null===(n=i[0])||void 0===n||null===(r=n.detailDataUnion)||void 0===r?void 0:r.icon,s=(null===(a=(0,p.getHueIcon)(o))||void 0===a?void 0:a.name)??this.args.containerIconType
return new _.default({type:b.VALID_VISIBILITY_TYPES.CONTAINER,name:e.name,logo:e.logo,iconName:s,controlName:this.args.dashContainerMetadata.selectionControlName,containerTypeUrn:this.containerTypeUrn,containerEntity:e.containerEntity,selectedDescription:e.selectionDescription,isPrivateContainer:e.isContainerPrivate})}(0,o.setComponentTemplate)(R,k)}))
define("sharing-v2/components/visibility/media-remove-warn-dialog",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/initializerWarningHelper","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@ember/component","@ember/template-factory","@glimmer/component","@ember/service","sharing-v2/utils/sharing-constants","@ember/object","detour-framework/utils/detour-constants"],(function(e,t,i,n,r,a,o,s,l,d,c,u){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var h,p,g
const m=(0,o.createTemplateFactory)({id:"2Txkjn/l",block:'[[[41,[30,1],[[[1," "],[8,[39,1],null,[["@headerType","@titleText"],[[30,2],[28,[37,2],["i18n_change_setting","sharing-v2/components/visibility/media-remove-warn-dialog"],null]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[11,0],[16,0,[52,[30,3],"share-box-modal-content__container"]],[4,[38,3],null,[["pageKey","routeName","currentRoute"],[[30,0,["pageKey"]],[28,[37,4],[[53,"outletState"],"render.name"],null],[28,[37,4],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n "],[10,2],[14,0,"share-visibility__media-dialog t-14 t-black"],[12],[1,"\\n "],[1,[28,[35,2],["i18n_are_you_sure_dialog","sharing-v2/components/visibility/media-remove-warn-dialog"],null]],[1,"\\n "],[13],[1,"\\n\\n"],[13],[1,"\\n"],[8,[39,6],null,[["@secondaryAction","@secondaryControlName","@secondaryButtonKey","@primaryAction","@primaryControlName","@primaryButtonKey"],[[30,4],[30,0,["controlInteractionEvents","MEDIA_REMOVE_WARN_DIALOG_CANCEL"]],[30,0,["footerSecondaryButtonKeys","CANCEL"]],[30,0,["goToMainVisibilityScreen"]],[30,0,["controlInteractionEvents","MEDIA_REMOVE_WARN_DIALOG_CONFIRM"]],[30,0,["footerPrimaryButtonKeys","VISIBILITY"]]]],null]],["@showInlineHeader","@headerType","@isInModal","@onCancel"],false,["if","detour-framework@title-bar","t","ember-cli-pemberly-tracking@track-render","get","-get-dynamic-var","detour-framework@share-box-footer"]]',moduleName:"sharing-v2/components/visibility/media-remove-warn-dialog.hbs",isStrictMode:!1})
let b=e.default=(h=(0,l.inject)("i18n"),p=class extends s.default{goToMainVisibilityScreen(){var e,t
return null===(e=(t=this.args).goToMainVisibilityScreen)||void 0===e?void 0:e.call(t)}constructor(){var e,n
super(...arguments);(0,i.default)(this,"pageKey",d.SHAREBOX_TRACKING.PAGEVIEW_EVENTS.MEDIA_REMOVE_WARN_DIALOG);(0,i.default)(this,"controlInteractionEvents",d.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS);(0,i.default)(this,"footerPrimaryButtonKeys",u.SHARE_BOX_FOOTER_PRIMARY_KEYS);(0,i.default)(this,"footerSecondaryButtonKeys",u.SHARE_BOX_FOOTER_SECONDARY_KEYS);(0,t.default)(this,"i18n",g,this)
null===(e=(n=this.args).updateModalConfig)||void 0===e||e.call(n,{modalHeader:this.i18n.lookupTranslation("components/sharing-v2@visibility/media-remove-warn-dialog","i18n_change_setting")(),controlName:this.controlInteractionEvents.MEDIA_REMOVE_WARN_DIALOG_EXIT,shouldFocusOnHeader:!0})}},(0,r.default)(p.prototype,"goToMainVisibilityScreen",[c.action],Object.getOwnPropertyDescriptor(p.prototype,"goToMainVisibilityScreen"),p.prototype),g=(0,r.default)(p.prototype,"i18n",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p);(0,a.setComponentTemplate)(m,b)}))
define("sharing-v2/components/visibility/paid-endorsement-toggle",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const r=(0,i.createTemplateFactory)({id:"qxgj1mtK",block:'[[[10,0],[14,1,"brand-partnership-hoverable-outlet"],[12],[13],[1,"\\n"],[10,0],[14,0,"share-paid-endorsement-toggle"],[12],[1,"\\n "],[10,1],[14,0,"share-paid-endorsement-toggle__text-wrapper"],[12],[1,"\\n "],[10,1],[15,0,[29,["share-paid-endorsement-toggle__header\\n ",[52,[30,1],"share-paid-endorsement-toggle__text--disabled"]]]],[12],[1,"\\n "],[1,[28,[35,1],["i18n_brand_partnership","sharing-v2/components/visibility/paid-endorsement-toggle"],null]],[1,"\\n "],[8,[39,2],null,[["@class","@for","@to","@on","@placement"],["","brand-partnership-disclaimer","brand-partnership-hoverable-outlet","click","top"]],[["default"],[[[[1,"\\n "],[10,"button"],[14,0,"share-paid-endorsement-toggle__disclaimer-btn"],[15,"aria-controls",[30,2,["ariaId"]]],[15,"aria-expanded",[30,2,["ariaExpanded"]]],[15,"aria-label",[28,[37,1],["i18n_brand_partnership_tooltip","sharing-v2/components/visibility/paid-endorsement-toggle"],null]],[14,4,"button"],[12],[1,"\\n "],[8,[39,3],null,[["@type","@size","@name","@class"],["system","small","signal-notice","share-paid-endorsement-toggle__disclaimer-btn"]],null],[1,"\\n "],[13],[1,"\\n "]],[2]]]]],[1,"\\n\\n "],[8,[39,4],null,[["@contentClass","@theme","@id","@to"],["share-paid-endorsement-toggle__disclaimer-content","inverse","brand-partnership-disclaimer","brand-partnership-hoverable-outlet"]],[["default"],[[[[1,"\\n "],[1,[28,[35,1],["i18n_brand_partnership_disclaimer","sharing-v2/components/visibility/paid-endorsement-toggle"],[["linkInfo"],[[28,[37,5],null,[["target","href","rel"],["_blank","/help/linkedin/answer/a1627083","noopener noreferrer"]]]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,1],[15,0,[29,["share-paid-endorsement-toggle__subtext\\n ",[52,[30,1],"share-paid-endorsement-toggle__text--disabled"]]]],[12],[1,"\\n "],[1,[52,[30,3],[28,[37,1],["i18n_toggled_text","sharing-v2/components/visibility/paid-endorsement-toggle"],null],[28,[37,1],["i18n_untoggled_text","sharing-v2/components/visibility/paid-endorsement-toggle"],null]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,6],null,[["@class","@labelText","@isLabelHidden","@toggled","@onToggle","@disabled"],["share-paid-endorsement-toggle__switch",[28,[37,1],["i18n_brand_partnership","sharing-v2/components/visibility/paid-endorsement-toggle"],null],true,[30,3],[30,4],[30,1]]],null],[1,"\\n"],[13]],["@disableBrandPartnershipToggle","trigger","@isPaidEndorsementToggleState","@onPaidEndorsementToggle"],false,["if","t","artdeco-hoverables@artdeco-hoverable-trigger","hue-web-icons@icon","artdeco-hoverables@artdeco-hoverable-content","hash","artdeco-toggle@artdeco-toggle"]]',moduleName:"sharing-v2/components/visibility/paid-endorsement-toggle.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(r,(0,n.default)())}))
define("sharing-v2/components/visibility/phoenix-visibility-manager",["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","sharing-v2/utils/sharing-utils","@glimmer/tracking","@ember/service","@ember/object","@ember/debug","sharing-shared/utils/sharing-shared-constants","sharing-v2/utils/sharing-constants","sharing-v2/utils/visibility/visibility-utils","sharing-v2/utils/visibility/comment-restriction","sharing-v2/utils/visibility/visibility-option-configs"],(function(e,t,i,n,r,a,o,s,l,d,c,u,h,p,g,m,b,f,y){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var _,T,v,E,S,I,C,A,O,D,N,w,P,R,k,M,x,V,L,U,B,H,F,W,z,G,j,Y,K,q,X
const Q=(0,s.createTemplateFactory)({id:"Ry+rlI1x",block:'[[[41,[28,[37,1],[[30,0,["currentScreen"]],"UNIFIED_SETTINGS"],null],[[[1," "],[8,[39,2],null,[["@modalComponents","@shouldFocusOnHeader"],[[30,1],[30,2]]],[["shareBoxHeader","shareBoxContent"],[[[[1,"\\n "],[1,[30,3]],[1,"\\n "]],[]],[[[1,"\\n\\n "],[10,0],[14,0,"share-visibility__manager"],[12],[1,"\\n "],[8,[39,3],null,[["@actor","@commentRestrictionSetting","@disableBrandPartnershipToggle","@enableUnifiedSettingsMenuSaveBtn","@excludedVisibilityTypes","@focusOnOption","@goToCreation","@goToDashContainersList","@goToSecondarySettingsScreen","@headerType","@initialVisibility","@isFixedVisibility","@isInBroadcastMode","@isInModal","@isOrganizationActor","@showPaidEndorsement","@isPaidEndorsementToggleState","@isScrollFixIsEnabled","@onPaidEndorsementSelected","@onSave","@onVisibilityOptionSelected","@showActorToggleButton","@showInlineHeader","@twitterAuthorized","@updateModalConfig","@usingStickyVisibility","@visibilityOptions"],[[30,0,["currentActor"]],[30,0,["currentCommentRestriction"]],[30,0,["disableBrandPartnershipToggle"]],[30,0,["enableUnifiedSettingsMenuSaveBtn"]],[30,4],[30,0,["optionToFocus"]],[30,5],[30,0,["goToDashContainersList"]],[30,0,["goToSecondarySettingsScreen"]],[30,6],[30,0,["currentVisibility"]],[30,7],[30,8],[30,9],[30,0,["isOrganizationActor"]],[30,10],[30,0,["currentIsPaidEndorsement"]],[30,0,["isScrollFixIsEnabled"]],[30,0,["setUserSelectedIsPaidEndorsement"]],[30,0,["onUnifiedSettingMenuSave"]],[30,0,["setUserSelectedVisibility"]],[30,0,["showActorToggleButton"]],[30,11],[30,12,["twitterAuthorized"]],[30,13],[30,0,["usingStickyVisibility"]],[30,0,["visibilityOptions"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["currentScreen"]],"MEDIA_WARN_DIALOG"],null],[[[1," "],[8,[39,2],null,[["@modalComponents","@shouldFocusOnHeader"],[[30,1],[30,2]]],[["shareBoxHeader","shareBoxContent"],[[[[1,"\\n "],[1,[30,3]],[1,"\\n "]],[]],[[[1,"\\n "],[10,0],[14,0,"share-visibility__manager"],[12],[1,"\\n "],[8,[39,4],null,[["@onCancel","@goToMainVisibilityScreen","@isInModal","@updateModalConfig"],[[30,5],[30,0,["goToUnifiedSettingsMenu"]],[30,9],[30,13]]],null],[1,"\\n "],[13],[1,"\\n\\n "]],[]]]]],[1,"\\n\\n"]],[]],[[[41,[28,[37,1],[[30,0,["currentScreen"]],"DASH_CONTAINERS_LIST"],null],[[[1," "],[8,[39,2],null,[["@modalComponents","@shouldFocusOnHeader","@headerOverride"],[[30,1],[30,2],true]],[["shareBoxHeader","shareBoxContent"],[[[[1,"\\n"],[1," "],[10,0],[14,0,"display-flex align-items-center"],[12],[1,"\\n "],[11,"h2"],[24,1,"share-to-linkedin-modal__header"],[24,"tabindex","-1"],[4,[38,5],null,[["shouldFocus"],[[30,2]]]],[12],[1,"\\n "],[1,[30,3]],[1,"\\n "],[13],[1,"\\n"],[41,[30,14],[[[1," "],[8,[39,6],null,[["@on","@to","@placement","@for"],["click","phoenix-sharebox-hoverable-outlet","bottom","groups-disclaimer"]],[["default"],[[[[1,"\\n "],[11,"button"],[24,0,"share-box-v2__groups-disclaimer-btn"],[16,"aria-controls",[30,15,["ariaId"]]],[16,"aria-expanded",[30,15,["ariaExpanded"]]],[16,"aria-label",[28,[37,7],["i18n_groups_disclaimer_tooltip_trigger","sharing-v2/components/visibility/phoenix-visibility-manager"],null]],[24,4,"button"],[4,[38,8],[[30,0,["controlInteractionEvents","GROUP_INFO_NOTICE"]]],null],[12],[1,"\\n "],[8,[39,9],null,[["@type","@size","@name"],["system","medium","signal-notice"]],null],[1,"\\n "],[13],[1,"\\n "]],[15]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[10,0],[14,0,"share-visibility__manager"],[12],[1,"\\n "],[8,[39,10],null,[["@containerIconType","@dashContainerMetadata","@goToUnifiedSettingsMenu","@headerType","@initialVisibility","@isInModal","@isPhoenixUIEnabled","@isScrollFixIsEnabled","@onOptionSelected","@showInlineHeader","@updateModalConfig"],[[30,0,["containerIconType"]],[30,0,["dashContainerMetadata"]],[30,0,["goToUnifiedSettingsMenu"]],[30,6],[30,0,["currentVisibility"]],[30,9],[30,16],[30,0,["isScrollFixIsEnabled"]],[30,0,["setUserSelectedVisibility"]],[30,11],[30,13]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["currentScreen"]],"TARGETED_AUDIENCE"],null],[[[1," "],[8,[39,2],null,[["@modalComponents","@shouldFocusOnHeader"],[[30,1],[30,2]]],[["shareBoxHeader","shareBoxContent"],[[[[1,"\\n "],[1,[30,3]],[1,"\\n "]],[]],[[[1,"\\n "],[10,0],[14,0,"share-visibility__manager"],[12],[1,"\\n "],[8,[39,11],null,[["@followedCompanyUrn","@targetAudience"],[[30,0,["normalizedOrganizationUrn"]],[30,0,["currentTargetedAudience"]]]],[["default"],[[[[1,"\\n "],[8,[39,12],null,[["@dashOrganizationUrn","@goToUnifiedSettingsMenu","@headerType","@isEstimatedTargetAudienceLoading","@isInModal","@isPhoenixUIEnabled","@isScrollFixIsEnabled","@numMembersTargeted","@onTargetingSelected","@showInlineHeader","@targetAudience","@updateModalConfig","@updateTargetedSettings","@class"],[[30,0,["dashOrganizationUrn"]],[30,0,["goToUnifiedSettingsMenu"]],[30,6],[30,17,["state","isEstimatedTargetAudienceLoading"]],[30,9],[30,16],[30,0,["isScrollFixIsEnabled"]],[30,17,["state","numMembersTargeted"]],[30,0,["setUserSelectedVisibility"]],[30,11],[30,0,["currentTargetedAudience"]],[30,13],[30,17,["actions","updateTargetedSettings"]],"full-height display-flex flex-column flex-grow-1"]],null],[1,"\\n "]],[17]]]]],[1,"\\n "],[13],[1,"\\n\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["currentScreen"]],"ACTOR_TOGGLE"],null],[[[1," "],[8,[39,2],null,[["@modalComponents","@shouldFocusOnHeader"],[[30,1],[30,2]]],[["shareBoxHeader","shareBoxContent"],[[[[1,"\\n "],[1,[30,3]],[1,"\\n "]],[]],[[[1,"\\n "],[10,0],[14,0,"share-visibility__manager"],[12],[1,"\\n "],[8,[39,13],null,[["@availableActors","@goToUnifiedSettingsMenu","@headerType","@initialActor","@isInModal","@isInRepostMode","@isPhoenixUIEnabled","@onActorSelected","@shareboxHasAttachment","@showInlineHeader","@updateModalConfig"],[[30,18],[30,0,["goToUnifiedSettingsMenu"]],[30,6],[30,0,["currentActor"]],[30,9],[30,19],[30,16],[30,0,["setUserSelectedActor"]],[30,20],[30,11],[30,13]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["currentScreen"]],"COMMENT_CONTROLS"],null],[[[1," "],[8,[39,2],null,[["@modalComponents","@shouldFocusOnHeader"],[[30,1],[30,2]]],[["shareBoxHeader","shareBoxContent"],[[[[1,"\\n "],[1,[30,3]],[1,"\\n "]],[]],[[[1,"\\n "],[10,0],[14,0,"share-visibility__manager"],[12],[1,"\\n "],[8,[39,14],null,[["@currentCommentControlsList","@currentVisibility","@goToUnifiedSettingsMenu","@headerType","@initialCommentRestrictionSetting","@isInBroadcastMode","@isInModal","@isNonMemberActor","@isPhoenixUIEnabled","@onCommentRestrictionSelected","@showInlineHeader","@updateModalConfig"],[[30,0,["currentCommentControlsList"]],[30,0,["currentVisibility"]],[30,0,["goToUnifiedSettingsMenu"]],[30,6],[30,0,["currentCommentRestriction"]],[30,8],[30,9],[30,0,["currentActor","isNonMemberActor"]],[30,16],[30,0,["setUserSelectedCommentRestriction"]],[30,11],[30,13]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null]],[]]]],[]]]],[]]]],[]]]],[]]]],["@layoutComponents","@shouldFocusOnHeader","@modalHeader","@excludedVisibilityTypes","@goToCreation","@headerType","@isFixedVisibility","@isInBroadcastMode","@isInModal","@showPaidEndorsement","@showInlineHeader","@authorAndAudienceSettings","@updateModalConfig","@showHeaderNotice","trigger","@isPhoenixUIEnabled","container","@availableActors","@isInRepostMode","@shareboxHasAttachment"],false,["if","global-helpers@eq","sharing-v2@share-box-layout","sharing-v2@visibility/unified-settings-menu","sharing-v2@visibility/media-remove-warn-dialog","sharing-v2@share-modal-focus","artdeco-hoverables@artdeco-hoverable-trigger","t","ember-cli-pemberly-tracking@track-interaction","hue-web-icons@icon","sharing-v2@visibility/dash-containers-list","organization-targeting-audience@targeted-settings-container","sharing-v2@visibility/targeting-audience","sharing-v2@visibility/actor-toggle","sharing-v2@visibility/comment-controls"]]',moduleName:"sharing-v2/components/visibility/phoenix-visibility-manager.hbs",isStrictMode:!1})
let $=e.default=(_=(0,u.inject)("global-services@store-shim"),T=(0,u.inject)("i18n"),v=(0,u.inject)("lego@resolver"),E=(0,u.inject)("lego@tracking"),S=(0,u.inject)("lix"),I=(0,u.inject)("persistent-toast-manager@persistent-toast-manager"),C=(W=new WeakSet,z=new WeakSet,G=new WeakSet,j=new WeakSet,Y=new WeakSet,K=new WeakSet,q=new WeakSet,X=new WeakSet,class extends l.default{constructor(){super(...arguments)
X.add(this)
q.add(this)
K.add(this)
Y.add(this)
j.add(this)
G.add(this)
z.add(this)
W.add(this);(0,t.default)(this,"storeShim",A,this);(0,t.default)(this,"i18n",O,this);(0,t.default)(this,"legoResolver",D,this);(0,t.default)(this,"legoTracking",N,this);(0,t.default)(this,"lix",w,this);(0,t.default)(this,"persistentToastManager",P,this);(0,i.default)(this,"controlInteractionEvents",m.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS);(0,i.default)(this,"anyoneVisibilityOptionType",(0,b.buildVisibilityOptionFromConfig)(this.i18n,y.ANYONE_VISIBILITY_CONFIG));(0,i.default)(this,"defaultOrganizationalPageActorVisibilityOptions",(0,b.buildVisibilityOptionsFromConfigs)(this.i18n,y.DEFAULT_ORGANIZATIONAL_PAGE_ACTOR_VISIBILITY_CONFIGS,!0));(0,i.default)(this,"defaultOrganizationActorVisibilityOptions",(0,b.buildVisibilityOptionsFromConfigs)(this.i18n,y.DEFAULT_ORGANIZATION_ACTOR_VISIBILITY_CONFIGS,!0));(0,i.default)(this,"defaultFallbackVisibilityOptions",(0,b.buildVisibilityOptionsFromConfigs)(this.i18n,y.FALLBACK_INITIALIZATION_VISIBILITY_CONFIGS,!0));(0,i.default)(this,"memberViewedToastThisSession",!1);(0,t.default)(this,"containerIconType",R,this);(0,t.default)(this,"enableUnifiedSettingsMenuSaveBtn",k,this);(0,t.default)(this,"userSelectedActor",M,this);(0,t.default)(this,"userSelectedCommentRestriction",x,this);(0,t.default)(this,"userSelectedCommentRestrictionType",V,this);(0,t.default)(this,"userSelectedTargetedAudience",L,this);(0,t.default)(this,"userSelectedIsPaidEndorsement",U,this);(0,t.default)(this,"userSelectedVisibility",B,this);(0,t.default)(this,"userSelectedVisibilityScreen",H,this);(0,t.default)(this,"optionToFocus",F,this)}get currentActor(){return this.userSelectedActor?this.userSelectedActor:this.initialActor}get currentCommentRestriction(){return this.userSelectedCommentRestriction?this.userSelectedCommentRestriction:this.initialCommentRestriction}get currentScreen(){return this.userSelectedVisibilityScreen?this.userSelectedVisibilityScreen:this.initialVisibilityScreen}get currentStickyVisiblityCommentControlsList(){if(this.usingStickyVisibility){const[e]=this.stickyVisibilityData.filter((e=>{var t,i,n
return(null===(t=e.visibilityDataUnion)||void 0===t?void 0:t.visibilityType)===this.currentVisibility.type||(null===(i=e.visibilityDataUnion)||void 0===i||null===(n=i.containerVisibility)||void 0===n?void 0:n.containerTypeUrn)}))
return e.commentControls}}get currentTargetedAudience(){return this.userSelectedTargetedAudience?this.userSelectedTargetedAudience:this.initialTargetedAudience}get currentIsPaidEndorsement(){return"boolean"==typeof this.userSelectedIsPaidEndorsement?this.userSelectedIsPaidEndorsement:this.initialIsPaidEndorsement}get currentVisibility(){return this.userSelectedVisibility?this.userSelectedVisibility:this.initialVisibility}get dashContainersMetadata(){if(this.stickyVisibilityData)return(0,b.getDashContainersMetadata)(this.stickyVisibilityData)}get dashOrganizationUrn(){return this.isOrganizationActor?this.currentActor.dashUrn:null}get disableBrandPartnershipToggle(){return!(0,b.isValidPaidEndorsementVisibility)(this.currentVisibility)}get initialActor(){return this.args.authorAndAudienceSettings.actor}get initialCommentRestriction(){return this.args.authorAndAudienceSettings.commentRestriction}get initialTargetedAudience(){return this.args.authorAndAudienceSettings.targetedAudience}get initialIsPaidEndorsement(){return this.args.authorAndAudienceSettings.isPaidEndorsement}get initialVisibility(){return this.args.authorAndAudienceSettings.visibility}get initialVisibilityScreen(){return this.args.protectedMediaPresentForDraft?m.VISIBILITY_SCREEN.MEDIA_WARN_DIALOG:m.VISIBILITY_SCREEN.UNIFIED_SETTINGS}get isOrganizationActor(){return this.currentActor.actorType===g.ACTOR_TYPES.company}get isPageContentGraphQLEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.hiring-lego-page-content-graphql-migration")}get normalizedOrganizationUrn(){return this.isOrganizationActor?this.currentActor.urn:null}get showActorToggleButton(){const e=this.args.shareboxHasAttachment&&!this.args.isInRepostMode&&!this.args.previewIsRemovable
return this.args.availableActors.length>1&&!this.args.isInEditMode&&!e}get stickyVisibilityData(){return this.args.authorAndAudienceSettings.stickyVisibilityData}get usingStickyVisibility(){return!(!this.stickyVisibilityData||this.currentActor.isNonMemberActor)}get visibilityOptions(){if(this.args.isFixedVisibility||this.args.isInEditMode)return[this.currentVisibility]
if(this.currentActor.isNonMemberActor)return(0,n.default)(this,K,ne).call(this)
if(!this.stickyVisibilityData)return this.args.eventContentVisibilityRestriction?[this.defaultFallbackVisibilityOptions[0]]:this.defaultFallbackVisibilityOptions
const e=(0,n.default)(this,W,Z).call(this)
return this.args.eventContentVisibilityRestriction?e.slice(0,2):e}setUserSelectedActor(e){this.userSelectedActor=e
const t=e.actorType===g.ACTOR_TYPES.member&&this.stickyVisibilityData;(0,n.default)(this,Y,ie).call(this,t)
this.enableUnifiedSettingsMenuSaveBtn=!0
this.userSelectedVisibilityScreen=m.VISIBILITY_SCREEN.UNIFIED_SETTINGS
this.optionToFocus=m.UNIFIED_SETTINGS_CTAS.ACTOR}setUserSelectedCommentRestriction(e){this.userSelectedCommentRestriction=new f.default(this.currentVisibility,e,this.currentActor.isNonMemberActor,this.args.isInBroadcastMode)
this.userSelectedCommentRestrictionType=e
this.enableUnifiedSettingsMenuSaveBtn=!0
this.userSelectedVisibilityScreen=m.VISIBILITY_SCREEN.UNIFIED_SETTINGS
this.optionToFocus=m.UNIFIED_SETTINGS_CTAS.COMMENT}setUserSelectedIsPaidEndorsement(e){this.userSelectedIsPaidEndorsement=e
this.enableUnifiedSettingsMenuSaveBtn=this.initialIsPaidEndorsement!==e}setUserSelectedVisibility(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null
if(this.args.isFixedVisibility)return
const i=(0,n.default)(this,G,ee).call(this,e);(0,n.default)(this,q,re).call(this,e)
this.userSelectedVisibility=e
this.userSelectedTargetedAudience=t
this.userSelectedCommentRestriction=new f.default(this.currentVisibility,i,this.currentActor.isNonMemberActor,this.args.isInBroadcastMode)
this.enableUnifiedSettingsMenuSaveBtn=!0
this.currentScreen!==m.VISIBILITY_SCREEN.UNIFIED_SETTINGS&&(this.userSelectedVisibilityScreen=m.VISIBILITY_SCREEN.UNIFIED_SETTINGS)}onUnifiedSettingMenuSave(){const e={}
if(this.usingStickyVisibility){this.updatedVisibilities=(0,n.default)(this,j,te).call(this)
if(this.updatedVisibilities){e.stickyVisibilityData=this.updatedVisibilities;(0,b.saveVisibilityAndCommentControlsPayload)(this.updatedVisibilities,this.storeShim)}}this.userSelectedActor&&(e.actor=this.currentActor)
this.userSelectedCommentRestriction&&(e.commentRestriction=this.currentCommentRestriction)
this.userSelectedVisibility&&(e.visibility=this.currentVisibility)
this.userSelectedTargetedAudience&&(e.targetedAudience=this.currentTargetedAudience)
"boolean"==typeof this.userSelectedIsPaidEndorsement&&(e.isPaidEndorsement=this.currentIsPaidEndorsement)
this.updatedVisibilities&&(e.stickyVisibilityData=this.updatedVisibilities)
this.userSelectedCommentRestrictionType&&(e.commentRestrictionUserSelectionType=this.userSelectedCommentRestrictionType)
this.args.updateAuthorAndAudienceSettings(e)
this.args.goToCreation()}goToDashContainersList(e){this.dashContainerMetadata=(0,n.default)(this,z,J).call(this,e)
this.userSelectedVisibilityScreen=m.VISIBILITY_SCREEN.DASH_CONTAINERS_LIST
this.containerIconType=e.iconName}goToUnifiedSettingsMenu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null
this.userSelectedVisibilityScreen=m.VISIBILITY_SCREEN.UNIFIED_SETTINGS
this.optionToFocus=e}goToSecondarySettingsScreen(e){this.userSelectedVisibilityScreen=e}}),A=(0,r.default)(C.prototype,"storeShim",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,r.default)(C.prototype,"i18n",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,r.default)(C.prototype,"legoResolver",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,r.default)(C.prototype,"legoTracking",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,r.default)(C.prototype,"lix",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,r.default)(C.prototype,"persistentToastManager",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,r.default)(C.prototype,"containerIconType",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),k=(0,r.default)(C.prototype,"enableUnifiedSettingsMenuSaveBtn",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,r.default)(C.prototype,"userSelectedActor",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,r.default)(C.prototype,"userSelectedCommentRestriction",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,r.default)(C.prototype,"userSelectedCommentRestrictionType",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,r.default)(C.prototype,"userSelectedTargetedAudience",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,r.default)(C.prototype,"userSelectedIsPaidEndorsement",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,r.default)(C.prototype,"userSelectedVisibility",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=(0,r.default)(C.prototype,"userSelectedVisibilityScreen",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,r.default)(C.prototype,"optionToFocus",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,r.default)(C.prototype,"setUserSelectedActor",[h.action],Object.getOwnPropertyDescriptor(C.prototype,"setUserSelectedActor"),C.prototype),(0,r.default)(C.prototype,"setUserSelectedCommentRestriction",[h.action],Object.getOwnPropertyDescriptor(C.prototype,"setUserSelectedCommentRestriction"),C.prototype),(0,r.default)(C.prototype,"setUserSelectedIsPaidEndorsement",[h.action],Object.getOwnPropertyDescriptor(C.prototype,"setUserSelectedIsPaidEndorsement"),C.prototype),(0,r.default)(C.prototype,"setUserSelectedVisibility",[h.action],Object.getOwnPropertyDescriptor(C.prototype,"setUserSelectedVisibility"),C.prototype),(0,r.default)(C.prototype,"onUnifiedSettingMenuSave",[h.action],Object.getOwnPropertyDescriptor(C.prototype,"onUnifiedSettingMenuSave"),C.prototype),(0,r.default)(C.prototype,"goToDashContainersList",[h.action],Object.getOwnPropertyDescriptor(C.prototype,"goToDashContainersList"),C.prototype),(0,r.default)(C.prototype,"goToUnifiedSettingsMenu",[h.action],Object.getOwnPropertyDescriptor(C.prototype,"goToUnifiedSettingsMenu"),C.prototype),(0,r.default)(C.prototype,"goToSecondarySettingsScreen",[h.action],Object.getOwnPropertyDescriptor(C.prototype,"goToSecondarySettingsScreen"),C.prototype),C)
function Z(){return this.stickyVisibilityData.map((e=>(0,b.formatStickyVisibilityItem)(e)))}function J(e){var t
const[i]=(null===(t=this.dashContainersMetadata)||void 0===t?void 0:t.filter((t=>t.containerTypeUrn===e.containerTypeUrn)))||[]
return i}function ee(e){return(0,b.shouldResetCommentRestrictionType)(this.currentVisibility,e,this.args.authorAndAudienceSettings.commentRestrictionUserSelectionType)?m.DEFAULT_COMMENT_RESTRICTION_TYPE:this.currentCommentRestriction.type}function te(){return(0,b.selectVisibilityAndCommentControlsPayload)(this.stickyVisibilityData,this.currentVisibility,this.currentCommentRestriction.type)}function ie(e){if(e){const{selectedVisibility:e,selectedCommentControlConfig:t}=(0,b.findSelectedOptions)(this.stickyVisibilityData)
this.userSelectedVisibility=(0,b.formatSelectedStickyVisibilityItem)(e)
const i=this.userSelectedCommentRestrictionType?this.currentCommentRestriction.type:null==t?void 0:t.allowedCommentersScope
this.userSelectedCommentRestriction=new f.default(this.currentVisibility,i,this.currentActor.isNonMemberActor,this.args.isInBroadcastMode)}else{this.userSelectedVisibility=this.anyoneVisibilityOptionType
this.userSelectedCommentRestriction=new f.default(this.currentVisibility,this.args.authorAndAudienceSettings.commentRestrictionUserSelectionType,this.currentActor.isNonMemberActor,this.args.isInBroadcastMode)}}function ne(){return this.currentActor.actorType===g.ACTOR_TYPES.organizationalPage?this.defaultOrganizationalPageActorVisibilityOptions:this.currentActor.actorType===g.ACTOR_TYPES.company?this.defaultOrganizationActorVisibilityOptions:null}function re(e){if(!(0,b.isValidPaidEndorsementVisibility)(e)&&"boolean"==typeof this.currentIsPaidEndorsement&&this.currentIsPaidEndorsement){this.userSelectedIsPaidEndorsement=!1;(0,n.default)(this,X,ae).call(this)}}function ae(){if(!this.memberViewedToastThisSession){this.memberViewedToastThisSession=!0;(0,d.fireLegoRequestHelper)(this.legoResolver,{pageKey:"feed_share",slotId:"paid_endorsement_visibility_notice",groupId:"paid_endorsement_visibility_notice",widgetId:"sharing:paid_endorsement_visibility_notice_web"},(e=>{const t=this.i18n.lookupTranslation("components/sharing-v2@visibility/phoenix-visibility-manager","i18n_brand_partnership_toast_notice")()
this.persistentToastManager.notice({message:t})
this.legoTracking.sendLegoImpression(null==e?void 0:e.trackingToken,this.legoTracking.LEGO_IMPRESSION_VISIBILITY_SHOW)}),this.isPageContentGraphQLEnabled)}}(0,o.setComponentTemplate)(Q,$)}))
define("sharing-v2/components/visibility/targeting-audience",["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","@glimmer/tracking","@ember/service","@ember/object","organization-targeting-audience/utils/targeting-modal-helpers","sharing-v2/utils/visibility/visibility-utils","sharing-v2/utils/sharing-constants","data-layer/utils/organization/models/target","sharing-v2/utils/visibility/visibility-option-configs","detour-framework/utils/detour-constants"],(function(e,t,i,n,r,a,o,s,l,d,c,u,h,p,g,m,b){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var f,y,_,T,v,E,S,I,C,A,O
const D=(0,o.createTemplateFactory)({id:"OiK1zhf0",block:'[[[11,0],[24,0,"full-height display-flex flex-column flex-grow-1"],[4,[38,0],null,[["pageKey","routeName","currentRoute"],[[30,0,["pageKey"]],[28,[37,1],[[53,"outletState"],"render.name"],null],[28,[37,1],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n"],[41,[30,1],[[[1," "],[8,[39,4],null,[["@headerType","@titleText"],[[30,2],[28,[37,5],["i18n_targeting_audience_settings","sharing-v2/components/visibility/targeting-audience"],null]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,6],null,[["@dashOrganizationUrn","@targetAudience","@isTargetAudienceError","@numMembersTargeted","@onTargetAudienceChange","@isEstimatedTargetAudienceLoading","@isTargetedAudienceTooBroad","@isTargetedAudienceTooNarrow","@minTargetedFollowers","@class"],[[30,3],[30,0,["targetAudienceDraft"]],[30,0,["isTargetAudienceError"]],[30,4],[30,0,["onTargetAudienceChange"]],[30,5],[30,0,["isAudienceTooBroad"]],[30,0,["isAudienceTooNarrow"]],[30,0,["minTargetedFollowers"]],[52,[30,6],"share-box-modal-content__container","share-targeting-audience__targeting-container"]]],null],[1,"\\n "],[8,[39,7],null,[["@primaryAction","@primaryControlName","@primaryButtonKey","@isPrimaryDisabled","@secondaryAction","@secondaryControlName","@secondaryButtonKey"],[[30,0,["onSave"]],[30,0,["controlInteractionEvents","NEW_TARGETING_SAVE"]],[30,0,["footerPrimaryButtonKeys","SAVE"]],[30,0,["disableSaveButton"]],[30,0,["onSecondaryAction"]],[30,0,["controlInteractionEvents","NEW_TARGETING_BACK"]],[30,0,["footerSecondaryButtonKeys","BACK"]]]],null],[1,"\\n"],[13]],["@showInlineHeader","@headerType","@dashOrganizationUrn","@numMembersTargeted","@isEstimatedTargetAudienceLoading","@isInModal"],false,["ember-cli-pemberly-tracking@track-render","get","-get-dynamic-var","if","detour-framework@title-bar","t","organization-targeting-audience@targeting-audience","detour-framework@share-box-footer"]]',moduleName:"sharing-v2/components/visibility/targeting-audience.hbs",isStrictMode:!1}),N=Object.freeze({ADD:"add",REMOVE:"remove"})
let w=e.default=(f=(0,d.inject)("global-services@store-shim"),y=(0,d.inject)("i18n"),_=(0,d.inject)("lix"),T=class extends s.default{get shouldUseDashTargetedContentsResource(){return this.lix.getTreatmentIsEnabled("voyager.web.organization-admin-use-dash-targeted-contents")}get isAudienceTooBroad(){return-1===this.args.numMembersTargeted}get isAudienceTooNarrow(){const{numMembersTargeted:e}=this.args
return e>=0&&e<300}get disableSaveButton(){return!this.hasChangedSettings||this.isAudienceTooBroad||this.isAudienceTooNarrow}constructor(){var e,n
super(...arguments);(0,t.default)(this,"storeShim",v,this);(0,t.default)(this,"i18n",E,this);(0,t.default)(this,"lix",S,this);(0,i.default)(this,"pageKey",p.SHAREBOX_TRACKING.PAGEVIEW_EVENTS.TARGETING);(0,i.default)(this,"targetedVisibilityOptionTypeV2",(0,h.buildVisibilityOptionFromConfig)(this.i18n,m.TARGETED_VISIBILITY_CONFIG));(0,i.default)(this,"footerPrimaryButtonKeys",b.SHARE_BOX_FOOTER_PRIMARY_KEYS);(0,i.default)(this,"footerSecondaryButtonKeys",b.SHARE_BOX_FOOTER_SECONDARY_KEYS);(0,t.default)(this,"hasChangedSettings",I,this);(0,t.default)(this,"isTargetAudienceError",C,this);(0,t.default)(this,"numMembersTargeted",A,this);(0,t.default)(this,"targetAudienceDraft",O,this);(0,i.default)(this,"minTargetedFollowers",300);(0,i.default)(this,"targetAudienceSegments",this.shouldUseDashTargetedContentsResource?g.DASH_TARGET_AUDIENCE_SEGMENTS:g.TARGET_AUDIENCE_SEGMENTS)
null===(e=(n=this.args).updateModalConfig)||void 0===e||e.call(n,{modalHeader:this.i18n.lookupTranslation("components/sharing-v2@visibility/targeting-audience","i18n_targeting_audience_settings")(),controlName:p.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.NEW_TARGETING_EXIT,shouldFocusOnHeader:!0})
const{targetAudience:r}=this.args
this.targetAudienceDraft=(0,u.createDraftVersionForTargetAudience)(r,this.storeShim,this.shouldUseDashTargetedContentsResource)
this.controlInteractionEvents=p.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS}onTargetAudienceChange(e,t,i,n,r){switch(i){case N.ADD:if(r===this.targetAudienceSegments.countryGroups)this.targetAudienceDraft={...this.targetAudienceDraft,[t]:e}
else{const i=[...this.targetAudienceDraft[t],e]
this.targetAudienceDraft={...this.targetAudienceDraft,[t]:i}}break
case N.REMOVE:{const i=[...this.targetAudienceDraft[t].filter((t=>t!==e))]
this.targetAudienceDraft={...this.targetAudienceDraft,[t]:i}
break}}if("locations"!==t||i===N.REMOVE||"locations"===t&&!n){this.isTargetAudienceError=!1
this.args.updateTargetedSettings((0,u.convertLocalTargetAudienceToTargetModelForm)(this.targetAudienceDraft))
this.hasChangedSettings||(this.hasChangedSettings=!0)}else this.isTargetAudienceError=!0}onSave(){var e,t
const i=(0,u.convertLocalTargetAudienceToTargetModelForm)(this.targetAudienceDraft),n=this.storeShim.createRecord("com.linkedin.voyager.organization.content.Target",i)
null===(e=(t=this.args).onTargetingSelected)||void 0===e||e.call(t,this.targetedVisibilityOptionTypeV2,n)}onSecondaryAction(){this.args.isPhoenixUIEnabled?this.args.goToUnifiedSettingsMenu(p.UNIFIED_SETTINGS_CTAS.TARGETED):this.args.goToPreviousPage(p.UNIFIED_SETTINGS_CTAS.TARGETED)}},v=(0,n.default)(T.prototype,"storeShim",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,n.default)(T.prototype,"i18n",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,n.default)(T.prototype,"lix",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,n.default)(T.prototype,"hasChangedSettings",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),C=(0,n.default)(T.prototype,"isTargetAudienceError",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),A=(0,n.default)(T.prototype,"numMembersTargeted",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,n.default)(T.prototype,"targetAudienceDraft",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(T.prototype,"onTargetAudienceChange",[c.action],Object.getOwnPropertyDescriptor(T.prototype,"onTargetAudienceChange"),T.prototype),(0,n.default)(T.prototype,"onSave",[c.action],Object.getOwnPropertyDescriptor(T.prototype,"onSave"),T.prototype),(0,n.default)(T.prototype,"onSecondaryAction",[c.action],Object.getOwnPropertyDescriptor(T.prototype,"onSecondaryAction"),T.prototype),T);(0,a.setComponentTemplate)(D,w)}))
define("sharing-v2/components/visibility/unified-settings-menu",["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/service","@glimmer/tracking","@ember/object","sharing-v2/utils/sharing-constants","sharing-shared/utils/sharing-shared-constants","sharing-v2/utils/visibility/visibility-utils","sharing-v2/utils/sharing-utils","sharing-shared/utils/sharebox-list-item","sharing-shared/utils/text-view-model-helpers","detour-framework/utils/detour-constants","global-utils/utils/a11y-focus-element"],(function(e,t,i,n,r,a,o,s,l,d,c,u,h,p,g,m,b,f,y,_){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var T,v,E,S,I,C,A,O,D,N,w,P,R,k,M,x,V,L
const U=(0,s.createTemplateFactory)({id:"U0B4ZHoS",block:'[[[41,[30,1],[[[1," "],[8,[39,1],null,[["@headerType","@titleText"],[[30,2],[30,0,["headerText"]]]],null],[1,"\\n"]],[]],null],[11,0],[16,0,[29,[[52,[30,3],"share-box-modal-content__container"]]]],[4,[38,2],null,[["pageKey","routeName","currentRoute"],[[30,0,["pageKey"]],[28,[37,3],[[53,"outletState"],"render.name"],null],[28,[37,3],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n\\n"],[41,[30,4],[[[1," "],[11,"button"],[24,0,"share-unified-settings-menu__actor-toggle"],[24,1,"ACTOR"],[24,4,"button"],[4,[38,5],["click",[30,0,["goToActorToggle"]]],null],[4,[38,6],[[30,0,["controlInteractionEvents","UNIFIED_VIEW_ACTOR_LIST"]]],null],[12],[1,"\\n "],[10,1],[14,0,"share-unified-settings-menu__lockup"],[12],[1,"\\n"],[41,[28,[37,7],[[30,5,["image"]]],null],[[[1," "],[8,[39,8],null,[["@a11yText","@entitySize","@images","@imgHeight","@imgWidth","@imgClasses"],["",4,[30,5,["image"]],56,56,[28,[37,9],["share-unified-settings-menu__actor-image ",[30,0,["imageEntityClass"]]],null]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,10],null,[["@image","@alt","@desiredWidth","@class","@ghostType"],[[30,5,["image"]],"",56,[30,0,["imageEntityClass"]],[30,5,["vectorImageGhostType"]]]],null],[1,"\\n"]],[]]],[1," "],[10,1],[14,0,"share-unified-settings-menu__name"],[12],[1,"\\n "],[8,[39,11],null,[["@tvm"],[[30,0,["actorName"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,12],[[24,0,"share-unified-settings-menu__list-caret"]],[["@type","@size","@name"],["system","medium","caret"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"share-unified-settings-menu__section-header"],[12],[1,"\\n "],[1,[30,0,["sectionHeaderText"]]],[1,"\\n "],[13],[1,"\\n"],[41,[30,6],[[[1," "],[10,0],[14,0,"share-unified-settings-menu__broadcast-description"],[12],[1,"\\n "],[1,[28,[35,13],["i18n_post_settings_broadcast_subtext","sharing-v2/components/visibility/unified-settings-menu"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showStickyVisibilityInlineFeedbackMessage"]],[[[1," "],[8,[39,14],null,[["@type","@message","@class"],["note",[28,[37,13],["i18n_sticky_visibility_message","sharing-v2/components/visibility/unified-settings-menu"],null],"share-visibility__options-menu-initialization-msg"]],null],[1,"\\n"]],[]],null],[1,"\\n "],[10,"fieldset"],[14,0,"share-visibility__fieldset"],[12],[1,"\\n "],[10,"legend"],[14,0,"visually-hidden"],[12],[1,[30,0,["headerText"]]],[13],[1,"\\n "],[8,[39,15],null,[["@listItems","@currentSelectionId","@setItem","@isInModal"],[[30,0,["filteredListItems"]],[30,0,["selectedOptionType"]],[30,0,["setItem"]],[30,3]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["shouldShowCommentControls"]],[[[1," "],[11,"button"],[24,0,"share-unified-settings-menu__comment-control"],[24,1,"COMMENT"],[24,4,"button"],[4,[38,5],["click",[30,0,["goToCommentControls"]]],null],[4,[38,6],[[30,0,["controlInteractionEvents","UNIFIED_VIEW_COMMENT_CONTROLS_LIST"]]],null],[12],[1,"\\n "],[10,1],[14,0,"share-unified-settings-menu__text-wrapper"],[12],[1,"\\n "],[10,1],[14,0,"text-body-medium-bold t-black"],[12],[1,"\\n "],[1,[28,[35,13],["i18n_comment_control","sharing-v2/components/visibility/unified-settings-menu"],null]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"share-unified-settings-menu__comment-control-name"],[12],[1,"\\n "],[1,[30,0,["commentRestrictionSelectionName"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,12],[[24,0,"share-unified-settings-menu__list-caret"]],[["@type","@size","@name"],["system","medium","caret"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,7],[[[1," "],[8,[39,16],null,[["@disableBrandPartnershipToggle","@isPaidEndorsementToggleState","@onPaidEndorsementToggle"],[[30,8],[30,9],[30,0,["onPaidEndorsementToggle"]]]],null],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[8,[39,17],null,[["@primaryAction","@primaryControlName","@primaryButtonKey","@isPrimaryDisabled","@secondaryAction","@secondaryControlName","@secondaryButtonKey"],[[30,0,["onSave"]],[30,0,["controlInteractionEvents","VISIBILITY_SAVE"]],[30,0,["footerPrimaryButtonKeys","DONE"]],[30,0,["disableSaveButton"]],[30,10],[30,0,["controlInteractionEvents","VISIBILITY_BACK"]],[30,0,["footerSecondaryButtonKeys","BACK"]]]],null]],["@showInlineHeader","@headerType","@isInModal","@showActorToggleButton","@actor","@isInBroadcastMode","@showPaidEndorsement","@disableBrandPartnershipToggle","@isPaidEndorsementToggleState","@goToCreation"],false,["if","detour-framework@title-bar","ember-cli-pemberly-tracking@track-render","get","-get-dynamic-var","on","ember-cli-pemberly-tracking@track-interaction","global-helpers@is-ivm-image","image-view-model@image-view-model","concat","ember-vector-images@lazy-image","text-view-model@text-view-model-v2","hue-web-icons@icon","t","artdeco-inline-feedback@artdeco-inline-feedback","sharing-shared@generic-list","sharing-v2@visibility/paid-endorsement-toggle","detour-framework@share-box-footer"]]',moduleName:"sharing-v2/components/visibility/unified-settings-menu.hbs",isStrictMode:!1})
let B=e.default=(T=(0,d.inject)("locale"),v=(0,d.inject)("i18n"),E=(0,d.inject)("lix"),S=(0,d.inject)("lego@resolver"),I=(0,d.inject)("lego@tracking"),C=(M=new WeakSet,x=new WeakSet,V=new WeakSet,L=new WeakSet,class extends l.default{get actorName(){return(0,f.createTextViewModelV2)(this.args.actor.name)}get isPageContentGraphQLEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.hiring-lego-page-content-graphql-migration")}get commentRestrictionSelectionName(){var e,t,i
const{displayType:n}=this.args.commentRestrictionSetting,r=null!==(e=h.COMMENT_RESTRICTION_CONFIGS_FOR_CONTAINERS[n])&&void 0!==e&&e.I18N_TEXT_KEY?null===(t=h.COMMENT_RESTRICTION_CONFIGS_FOR_CONTAINERS[n])||void 0===t?void 0:t.I18N_TEXT_KEY:null===(i=h.COMMENT_RESTRICTION_CONFIGS[n])||void 0===i?void 0:i.I18N_TEXT_KEY
return this.i18n.lookupTranslation("components/sharing-v2@visibility/comment-controls",r)()}get currentVisibility(){var e
return this.selectedVisibility??(null===(e=this.args)||void 0===e?void 0:e.initialVisibility)}get disableSaveButton(){return!this.args.enableUnifiedSettingsMenuSaveBtn}get fixedVisibilityIsContainer(){var e
return this.args.isFixedVisibility&&(null===(e=this.currentVisibility)||void 0===e?void 0:e.containerEntity)}get headerText(){return this.i18n.lookupTranslation("components/sharing-v2@visibility/unified-settings-menu","i18n_post_settings")()}get imageEntityClass(){return`EntityPhoto-${this.args.actor.lockupImageShape}-4`}get initialVisibilityOptions(){const e=this.args.excludedVisibilityTypes||[]
return(0,g.getFilteredVisibilityOptions)(this.args.visibilityOptions,this.eligibilityMap,e)}get listItems(){return this.fixedVisibilityIsContainer?[(0,n.default)(this,M,H).call(this)]:this.args.usingStickyVisibility?this.stickyVisibilityListItems:(0,n.default)(this,x,F).call(this)}get filteredListItems(){return this.args.twitterAuthorized?this.listItems:this.listItems.filter((e=>e.itemId!==p.VALID_VISIBILITY_TYPES.TWITTER))}get sectionHeaderText(){return this.args.isInBroadcastMode?this.i18n.lookupTranslation("components/sharing-v2@visibility/visibility-options-menu","i18n_who_can_see_this_broadcast")():this.i18n.lookupTranslation("components/sharing-v2@visibility/visibility-options-menu","i18n_who_can_see_this_post")()}get shouldShowCommentControls(){return this.args.commentRestrictionSetting&&!this.args.isInBroadcastMode}get selectedOptionType(){var e
return null===(e=this.currentVisibility)||void 0===e?void 0:e.type}get stickyVisibilityListItems(){return this.visibilityOptions.map((e=>(0,g.formatStickyVisibilityItemAsShareboxListItem)(e,this.currentVisibility)))}get visibilityOptions(){return this.localVisibilityOptions?this.localVisibilityOptions:this.initialVisibilityOptions}constructor(){var e,r,a
super(...arguments)
L.add(this)
V.add(this)
x.add(this)
M.add(this);(0,t.default)(this,"locale",A,this);(0,t.default)(this,"i18n",O,this);(0,t.default)(this,"lix",D,this);(0,t.default)(this,"legoResolver",N,this);(0,t.default)(this,"legoTracking",w,this);(0,i.default)(this,"controlInteractionEvents",h.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS);(0,i.default)(this,"footerPrimaryButtonKeys",y.SHARE_BOX_FOOTER_PRIMARY_KEYS);(0,i.default)(this,"footerSecondaryButtonKeys",y.SHARE_BOX_FOOTER_SECONDARY_KEYS);(0,i.default)(this,"eligibilityMap",{[p.VALID_VISIBILITY_TYPES.TWITTER]:"cn"!==(null===(e=this.locale)||void 0===e?void 0:e.requestIpCountryCode)});(0,i.default)(this,"pageKey",h.SHAREBOX_TRACKING.PAGEVIEW_EVENTS.UNIFIED_SETTINGS);(0,t.default)(this,"localVisibilityOptions",P,this);(0,t.default)(this,"selectedVisibility",R,this);(0,t.default)(this,"showStickyVisibilityInlineFeedbackMessage",k,this)
const o=!this.args.focusOnOption
null===(r=(a=this.args).updateModalConfig)||void 0===r||r.call(a,{modalHeader:this.headerText,controlName:this.controlInteractionEvents.UNIFIED_SETTINGS_DISMISS,shouldFocusOnHeader:o})
this.args.usingStickyVisibility&&(0,n.default)(this,V,W).call(this)
this.args.focusOnOption&&(0,_.default)(this,`#${this.args.focusOnOption}`)}goToActorToggle(){this.args.goToSecondarySettingsScreen(h.VISIBILITY_SCREEN.ACTOR_TOGGLE)}goToCommentControls(){this.args.goToSecondarySettingsScreen(h.VISIBILITY_SCREEN.COMMENT_CONTROLS)}onSave(){var e,t
null===(e=(t=this.args).onSave)||void 0===e||e.call(t)}onPaidEndorsementToggle(){this.args.onPaidEndorsementSelected(!this.args.isPaidEndorsementToggleState)}setItem(e){const t=this.visibilityOptions.find((t=>t.type===e))
switch(t.type){case p.VALID_VISIBILITY_TYPES.TARGETED:this.args.goToSecondarySettingsScreen(h.VISIBILITY_SCREEN.TARGETED_AUDIENCE)
break
case p.VALID_VISIBILITY_TYPES.CONTAINER:if(t.containerTypeUrn){var i,n
null===(i=(n=this.args).goToDashContainersList)||void 0===i||i.call(n,t)}break
case p.VALID_VISIBILITY_TYPES.ANYONE:case p.VALID_VISIBILITY_TYPES.CONNECTIONS:case p.VALID_VISIBILITY_TYPES.TWITTER:this.selectedVisibility=t
this.args.onVisibilityOptionSelected(t)}}}),A=(0,r.default)(C.prototype,"locale",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,r.default)(C.prototype,"i18n",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,r.default)(C.prototype,"lix",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,r.default)(C.prototype,"legoResolver",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,r.default)(C.prototype,"legoTracking",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,r.default)(C.prototype,"localVisibilityOptions",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,r.default)(C.prototype,"selectedVisibility",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,r.default)(C.prototype,"showStickyVisibilityInlineFeedbackMessage",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,r.default)(C.prototype,"goToActorToggle",[u.action],Object.getOwnPropertyDescriptor(C.prototype,"goToActorToggle"),C.prototype),(0,r.default)(C.prototype,"goToCommentControls",[u.action],Object.getOwnPropertyDescriptor(C.prototype,"goToCommentControls"),C.prototype),(0,r.default)(C.prototype,"onSave",[u.action],Object.getOwnPropertyDescriptor(C.prototype,"onSave"),C.prototype),(0,r.default)(C.prototype,"onPaidEndorsementToggle",[u.action],Object.getOwnPropertyDescriptor(C.prototype,"onPaidEndorsementToggle"),C.prototype),(0,r.default)(C.prototype,"setItem",[u.action],Object.getOwnPropertyDescriptor(C.prototype,"setItem"),C.prototype),C)
function H(){var e
return new b.default({itemId:this.currentVisibility.type,image:this.currentVisibility.logo,iconType:this.currentVisibility.iconName,entityImageShape:"square",mainText:this.currentVisibility.name,imageAltText:null===(e=this.currentVisibility.name)||void 0===e?void 0:e.text})}function F(){return this.visibilityOptions.map((e=>new b.default({itemId:e.type,controlName:e.controlName,mainText:e.name,subtext:e.description,iconType:e.iconName,itemOpensPage:e.showChevron})))}function W(){(0,m.fireLegoRequestHelper)(this.legoResolver,{pageKey:"feed_share",slotId:"sticky_visibility_inline_feedback",groupId:"sticky_visibility_inline_feedback",widgetId:"sharing:_show_sticky_vis_inline_feedback_vis"},(e=>(0,n.default)(this,L,z).call(this,null==e?void 0:e.trackingToken)),this.isPageContentGraphQLEnabled)}function z(e){this.showStickyVisibilityInlineFeedbackMessage=!0
this.legoTracking.sendLegoImpression(e,this.legoTracking.LEGO_IMPRESSION_VISIBILITY_SHOW)}(0,o.setComponentTemplate)(U,B)}))
define("sharing-v2/components/visibility/visibility-manager",["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","@glimmer/tracking","@ember/service","@ember/object","@ember/debug","sharing-v2/utils/sharing-constants","sharing-shared/utils/sharing-shared-constants","sharing-v2/utils/visibility/visibility-utils","sharing-v2/utils/visibility/comment-restriction","sharing-v2/utils/visibility/visibility-option-configs"],(function(e,t,i,n,r,a,o,s,l,d,c,u,h,p,g,m,b,f){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var y,_,T,v,E,S,I,C,A,O,D,N,w,P,R,k,M,x,V
const L=(0,s.createTemplateFactory)({id:"ZSDAbdMb",block:'[[[41,[28,[37,1],[[30,0,["currentScreen"]],"VISIBILITY_OPTIONS"],null],[[[1," "],[8,[39,2],null,[["@modalComponents","@shouldFocusOnHeader"],[[30,1],[30,2]]],[["shareBoxHeader","shareBoxContent"],[[[[1,"\\n "],[1,[30,3]],[1,"\\n "]],[]],[[[1,"\\n "],[10,0],[14,0,"share-visibility__manager"],[12],[1,"\\n "],[8,[39,3],null,[["@excludedVisibilityTypes","@goToCreation","@goToDashContainersList","@goToTargetedAudience","@headerType","@initialVisibility","@isFixedVisibility","@isInBroadcastMode","@isInModal","@isOrganizationActor","@onVisibilityOptionSelected","@showInlineHeader","@twitterAuthorized","@updateModalConfig","@usingStickyVisibility","@visibilityOptions","@focusOnOption"],[[30,4],[30,5],[30,0,["goToDashContainersList"]],[30,0,["goToTargetedAudience"]],[30,6],[30,0,["currentVisibility"]],[30,7],[30,8],[30,9],[30,0,["isOrganizationActor"]],[30,0,["updateVisibilityOptionSelected"]],[30,10],[30,11,["twitterAuthorized"]],[30,12],[30,0,["usingStickyVisibility"]],[30,0,["visibilityOptions"]],[30,0,["optionToFocus"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["currentScreen"]],"MEDIA_WARN_DIALOG"],null],[[[1," "],[8,[39,2],null,[["@modalComponents","@shouldFocusOnHeader"],[[30,1],[30,2]]],[["shareBoxHeader","shareBoxContent"],[[[[1,"\\n "],[1,[30,3]],[1,"\\n "]],[]],[[[1,"\\n "],[10,0],[14,0,"share-visibility__manager"],[12],[1,"\\n "],[8,[39,4],null,[["@onCancel","@goToMainVisibilityScreen","@isInModal","@updateModalConfig"],[[30,5],[30,0,["goToMainVisibilityScreen"]],[30,9],[30,12]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["currentScreen"]],"DASH_CONTAINERS_LIST"],null],[[[1," "],[8,[39,2],null,[["@modalComponents","@shouldFocusOnHeader"],[[30,1],[30,2]]],[["shareBoxHeader","shareBoxContent"],[[[[1,"\\n "],[1,[30,3]],[1,"\\n "]],[]],[[[1,"\\n "],[10,0],[14,0,"share-visibility__manager"],[12],[1,"\\n "],[8,[39,5],null,[["@containerIconType","@dashContainerMetadata","@goToCreation","@goToPreviousPage","@headerType","@initialVisibility","@isInModal","@onOptionSelected","@showInlineHeader","@updateModalConfig"],[[30,0,["containerIconType"]],[30,0,["dashContainerMetadata"]],[30,5],[30,0,["goToMainVisibilityScreen"]],[30,6],[30,0,["currentVisibility"]],[30,9],[30,0,["updateVisibilityOptionSelected"]],[30,10],[30,12]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["currentScreen"]],"TARGETED_AUDIENCE"],null],[[[1," "],[8,[39,2],null,[["@modalComponents","@shouldFocusOnHeader"],[[30,1],[30,2]]],[["shareBoxHeader","shareBoxContent"],[[[[1,"\\n "],[1,[30,3]],[1,"\\n "]],[]],[[[1,"\\n "],[10,0],[14,0,"share-visibility__manager"],[12],[1,"\\n "],[8,[39,6],null,[["@followedCompanyUrn","@targetAudience"],[[30,0,["normalizedOrganizationUrn"]],[30,0,["currentTargetedAudience"]]]],[["default"],[[[[1,"\\n "],[8,[39,7],null,[["@dashOrganizationUrn","@goToCreation","@goToPreviousPage","@headerType","@isEstimatedTargetAudienceLoading","@isInModal","@numMembersTargeted","@onTargetingSelected","@showInlineHeader","@targetAudience","@updateModalConfig","@updateTargetedSettings","@class"],[[30,0,["dashOrganizationUrn"]],[30,5],[30,0,["goToMainVisibilityScreen"]],[30,6],[30,13,["state","isEstimatedTargetAudienceLoading"]],[30,9],[30,13,["state","numMembersTargeted"]],[30,0,["updateVisibilityOptionSelected"]],[30,10],[30,0,["currentTargetedAudience"]],[30,12],[30,13,["actions","updateTargetedSettings"]],"full-height display-flex flex-column flex-grow-1"]],null],[1,"\\n "]],[13]]]]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["currentScreen"]],"ACTOR_TOGGLE"],null],[[[1," "],[8,[39,2],null,[["@modalComponents","@shouldFocusOnHeader"],[[30,1],[30,2]]],[["shareBoxHeader","shareBoxContent"],[[[[1,"\\n "],[1,[30,3]],[1,"\\n "]],[]],[[[1,"\\n "],[10,0],[14,0,"share-visibility__manager"],[12],[1,"\\n "],[8,[39,8],null,[["@availableActors","@goToCreation","@headerType","@initialActor","@isInModal","@isInRepostMode","@onActorSelected","@shareboxHasAttachment","@showInlineHeader","@updateModalConfig"],[[30,14],[30,5],[30,6],[30,0,["currentActor"]],[30,9],[30,15],[30,0,["updateActorSelection"]],[30,16],[30,10],[30,12]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["currentScreen"]],"COMMENT_CONTROLS"],null],[[[1," "],[8,[39,2],null,[["@modalComponents","@shouldFocusOnHeader"],[[30,1],[30,2]]],[["shareBoxHeader","shareBoxContent"],[[[[1,"\\n "],[1,[30,3]],[1,"\\n "]],[]],[[[1,"\\n "],[10,0],[14,0,"share-visibility__manager"],[12],[1,"\\n "],[8,[39,9],null,[["@currentCommentControlsList","@currentVisibility","@goToCreation","@headerType","@initialCommentRestrictionSetting","@isInBroadcastMode","@isInModal","@isNonMemberActor","@onCommentRestrictionSelected","@showInlineHeader","@updateModalConfig"],[[30,0,["currentCommentControlsList"]],[30,0,["currentVisibility"]],[30,5],[30,6],[30,0,["currentCommentRestriction"]],[30,8],[30,9],[30,0,["currentActor","isNonMemberActor"]],[30,0,["updateCommentRestrictionSelected"]],[30,10],[30,12]]],null],[1,"\\n "],[13],[1,"\\n\\n "]],[]]]]],[1,"\\n"]],[]],null]],[]]]],[]]]],[]]]],[]]]],[]]]],["@layoutComponents","@shouldFocusOnHeader","@modalHeader","@excludedVisibilityTypes","@goToCreation","@headerType","@isFixedVisibility","@isInBroadcastMode","@isInModal","@showInlineHeader","@authorAndAudienceSettings","@updateModalConfig","container","@availableActors","@isInRepostMode","@shareboxHasAttachment"],false,["if","global-helpers@eq","sharing-v2@share-box-layout","sharing-v2@visibility/visibility-options-menu","sharing-v2@visibility/media-remove-warn-dialog","sharing-v2@visibility/dash-containers-list","organization-targeting-audience@targeted-settings-container","sharing-v2@visibility/targeting-audience","sharing-v2@visibility/actor-toggle","sharing-v2@visibility/comment-controls"]]',moduleName:"sharing-v2/components/visibility/visibility-manager.hbs",isStrictMode:!1})
let U=e.default=(y=(0,c.inject)("global-services@store-shim"),_=(0,c.inject)("i18n"),T=(P=new WeakSet,R=new WeakSet,k=new WeakSet,M=new WeakSet,x=new WeakSet,V=new WeakSet,class extends l.default{constructor(){super(...arguments)
V.add(this)
x.add(this)
M.add(this)
k.add(this)
R.add(this)
P.add(this);(0,t.default)(this,"storeShim",v,this);(0,t.default)(this,"i18n",E,this);(0,i.default)(this,"anyoneVisibilityOptionType",(0,m.buildVisibilityOptionFromConfig)(this.i18n,f.ANYONE_VISIBILITY_CONFIG));(0,i.default)(this,"defaultOrganizationActorVisibilityOptions",(0,m.buildVisibilityOptionsFromConfigs)(this.i18n,f.DEFAULT_ORGANIZATION_ACTOR_VISIBILITY_CONFIGS));(0,i.default)(this,"defaultOrganizationalPageActorVisibilityOptions",(0,m.buildVisibilityOptionsFromConfigs)(this.i18n,f.DEFAULT_ORGANIZATIONAL_PAGE_ACTOR_VISIBILITY_CONFIGS));(0,i.default)(this,"defaultFallbackVisibilityOptions",(0,m.buildVisibilityOptionsFromConfigs)(this.i18n,f.FALLBACK_INITIALIZATION_VISIBILITY_CONFIGS));(0,t.default)(this,"containerIconType",S,this);(0,t.default)(this,"localCurrentActor",I,this);(0,t.default)(this,"localCurrentCommentRestriction",C,this);(0,t.default)(this,"localCurrentScreen",A,this);(0,t.default)(this,"localCurrentTargetedAudience",O,this);(0,t.default)(this,"localCurrentVisibility",D,this);(0,t.default)(this,"localStickyVisibilityData",N,this);(0,t.default)(this,"optionToFocus",w,this)}get currentActor(){return this.localCurrentActor?this.localCurrentActor:this.initialActor}get currentCommentControlsList(){if(this.usingStickyVisibility){const[e]=this.currentStickyVisibilityData.filter((e=>{var t,i,n
return(null===(t=e.visibilityDataUnion)||void 0===t?void 0:t.visibilityType)===this.currentVisibility.type||(null===(i=e.visibilityDataUnion)||void 0===i||null===(n=i.containerVisibility)||void 0===n?void 0:n.containerTypeUrn)}))
return e.commentControls}}get currentCommentRestriction(){return this.localCurrentCommentRestriction?this.localCurrentCommentRestriction:this.initialCommentRestriction}get currentScreen(){return this.localCurrentScreen?this.localCurrentScreen:this.initialScreen}get currentStickyVisibilityData(){return this.localStickyVisibilityData?this.localStickyVisibilityData:this.initialStickyVisibilityData}get currentTargetedAudience(){return this.localCurrentTargetedAudience?this.localCurrentTargetedAudience:this.initialTargetedAudience}get currentVisibility(){return this.localCurrentVisibility?this.localCurrentVisibility:this.initialVisibility}get dashContainersMetadata(){if(this.currentStickyVisibilityData)return(0,m.getDashContainersMetadata)(this.currentStickyVisibilityData)}get dashOrganizationUrn(){return this.isOrganizationActor?this.currentActor.dashUrn:null}get initialActor(){return this.args.authorAndAudienceSettings.actor}get initialCommentRestriction(){return this.args.authorAndAudienceSettings.commentRestriction}get initialScreen(){return this.args.protectedMediaPresentForDraft&&this.args.visibilityScreen===p.VISIBILITY_SCREEN.VISIBILITY_OPTIONS?p.VISIBILITY_SCREEN.MEDIA_WARN_DIALOG:this.args.visibilityScreen}get initialStickyVisibilityData(){return this.args.authorAndAudienceSettings.stickyVisibilityData}get initialTargetedAudience(){return this.args.authorAndAudienceSettings.targetedAudience}get initialVisibility(){return this.args.authorAndAudienceSettings.visibility}get isOrganizationActor(){return this.currentActor.actorType===g.ACTOR_TYPES.company}get normalizedOrganizationUrn(){return this.isOrganizationActor?this.currentActor.urn:null}get usingStickyVisibility(){return!(!this.currentStickyVisibilityData||this.currentActor.isNonMemberActor)}get visibilityOptions(){return(0,n.default)(this,k,F).call(this)}updateActorSelection(e){this.localCurrentActor=e
if(e.actorType===g.ACTOR_TYPES.member&&this.currentStickyVisibilityData){const{selectedVisibility:e,selectedCommentControlConfig:t}=(0,m.findSelectedOptions)(this.currentStickyVisibilityData)
this.localCurrentVisibility=(0,m.formatSelectedStickyVisibilityItem)(e)
this.localCurrentCommentRestriction=new b.default(this.currentVisibility,t.allowedCommentersScope,this.currentActor.isNonMemberActor,this.args.isInBroadcastMode)}else this.localCurrentVisibility=this.anyoneVisibilityOptionType
this.localCurrentCommentRestriction=new b.default(this.currentVisibility,this.args.authorAndAudienceSettings.commentRestrictionUserSelectionType,this.currentActor.isNonMemberActor,this.args.isInBroadcastMode)
this.args.updateAuthorAndAudienceSettings({actor:this.currentActor,commentRestriction:this.currentCommentRestriction,visibility:this.currentVisibility})
this.args.goToCreation()}updateCommentRestrictionSelected(e){this.localCurrentCommentRestriction=new b.default(this.currentVisibility,e,this.currentActor.isNonMemberActor,this.args.isInBroadcastMode)
this.usingStickyVisibility&&(this.localStickyVisibilityData=(0,n.default)(this,M,W).call(this))
this.args.updateAuthorAndAudienceSettings({commentRestriction:this.currentCommentRestriction,commentRestrictionUserSelectionType:e,stickyVisibilityData:this.currentStickyVisibilityData})
this.args.goToCreation()}updateVisibilityOptionSelected(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null
const i=(0,n.default)(this,x,z).call(this,e)
this.localCurrentVisibility=e
this.localCurrentTargetedAudience=t
this.localCurrentCommentRestriction=new b.default(this.currentVisibility,i,this.currentActor.isNonMemberActor,this.args.isInBroadcastMode)
this.usingStickyVisibility&&(this.localStickyVisibilityData=(0,n.default)(this,M,W).call(this))
this.args.updateAuthorAndAudienceSettings({commentRestriction:this.currentCommentRestriction,commentRestrictionUserSelectionType:i,stickyVisibilityData:this.currentStickyVisibilityData,targetedAudience:this.currentTargetedAudience,visibility:this.currentVisibility})
this.args.goToCreation()}goToDashContainersList(e){this.dashContainerMetadata=(0,n.default)(this,R,H).call(this,e)
this.localCurrentScreen=p.VISIBILITY_SCREEN.DASH_CONTAINERS_LIST
this.containerIconType=e.iconName}goToMainVisibilityScreen(e){this.localCurrentScreen=p.VISIBILITY_SCREEN.VISIBILITY_OPTIONS
e&&(this.optionToFocus=e)}goToTargetedAudience(){this.localCurrentScreen=p.VISIBILITY_SCREEN.TARGETED_AUDIENCE}}),v=(0,r.default)(T.prototype,"storeShim",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,r.default)(T.prototype,"i18n",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,r.default)(T.prototype,"containerIconType",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),I=(0,r.default)(T.prototype,"localCurrentActor",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,r.default)(T.prototype,"localCurrentCommentRestriction",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,r.default)(T.prototype,"localCurrentScreen",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,r.default)(T.prototype,"localCurrentTargetedAudience",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,r.default)(T.prototype,"localCurrentVisibility",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,r.default)(T.prototype,"localStickyVisibilityData",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,r.default)(T.prototype,"optionToFocus",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,r.default)(T.prototype,"updateActorSelection",[u.action],Object.getOwnPropertyDescriptor(T.prototype,"updateActorSelection"),T.prototype),(0,r.default)(T.prototype,"updateCommentRestrictionSelected",[u.action],Object.getOwnPropertyDescriptor(T.prototype,"updateCommentRestrictionSelected"),T.prototype),(0,r.default)(T.prototype,"updateVisibilityOptionSelected",[u.action],Object.getOwnPropertyDescriptor(T.prototype,"updateVisibilityOptionSelected"),T.prototype),(0,r.default)(T.prototype,"goToDashContainersList",[u.action],Object.getOwnPropertyDescriptor(T.prototype,"goToDashContainersList"),T.prototype),(0,r.default)(T.prototype,"goToMainVisibilityScreen",[u.action],Object.getOwnPropertyDescriptor(T.prototype,"goToMainVisibilityScreen"),T.prototype),(0,r.default)(T.prototype,"goToTargetedAudience",[u.action],Object.getOwnPropertyDescriptor(T.prototype,"goToTargetedAudience"),T.prototype),T)
function B(){return this.currentStickyVisibilityData.map((e=>(0,m.formatStickyVisibilityItem)(e)))}function H(e){var t
const[i]=(null===(t=this.dashContainersMetadata)||void 0===t?void 0:t.filter((t=>t.containerTypeUrn===e.containerTypeUrn)))||[]
return i}function F(){if(this.args.isFixedVisibility||this.args.isInEditMode)return[this.currentVisibility]
if(this.currentActor.isNonMemberActor)return(0,n.default)(this,V,G).call(this)
if(!this.currentStickyVisibilityData)return this.args.eventContentVisibilityRestriction?[this.defaultFallbackVisibilityOptions[0]]:this.defaultFallbackVisibilityOptions
const e=(0,n.default)(this,P,B).call(this)
return this.args.eventContentVisibilityRestriction?e.slice(0,2):e}function W(){const e=(0,m.selectVisibilityAndCommentControlsPayload)(this.currentStickyVisibilityData,this.currentVisibility,this.currentCommentRestriction.type);(0,m.saveVisibilityAndCommentControlsPayload)(e,this.storeShim)
return e}function z(e){return this.currentVisibility.type!==g.VALID_VISIBILITY_TYPES.CONNECTIONS&&this.currentVisibility.type!==g.VALID_VISIBILITY_TYPES.CONTAINER||!e.type.includes("ANYONE")||this.args.authorAndAudienceSettings.commentRestrictionUserSelectionType!==g.VALID_COMMENT_RESTRICTION_TYPES.CONNECTIONS_ONLY?this.args.authorAndAudienceSettings.commentRestrictionUserSelectionType:p.DEFAULT_COMMENT_RESTRICTION_TYPE}function G(){return this.currentActor.actorType===g.ACTOR_TYPES.organizationalPage?this.defaultOrganizationalPageActorVisibilityOptions:this.currentActor.actorType===g.ACTOR_TYPES.company?this.defaultOrganizationActorVisibilityOptions:null}(0,o.setComponentTemplate)(L,U)}))
define("sharing-v2/components/visibility/visibility-options-menu",["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/service","@glimmer/tracking","@ember/object","sharing-v2/utils/sharing-constants","sharing-shared/utils/sharing-shared-constants","sharing-v2/utils/visibility/visibility-utils","sharing-v2/utils/sharing-utils","sharing-shared/utils/generic-list-item","text-view-model/utils/generator","global-utils/utils/a11y-focus-element","detour-framework/utils/detour-constants"],(function(e,t,i,n,r,a,o,s,l,d,c,u,h,p,g,m,b,f,y,_){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var T,v,E,S,I,C,A,O,D,N,w,P,R,k,M,x,V,L
const U=(0,s.createTemplateFactory)({id:"h061v2d0",block:'[[[41,[30,1],[[[1," "],[8,[39,1],null,[["@headerType","@titleText"],[[30,2],[30,0,["headerText"]]]],null],[1,"\\n"]],[]],null],[11,0],[16,0,[52,[30,3],"share-box-modal-content__container"]],[4,[38,2],null,[["pageKey","routeName","currentRoute"],[[30,0,["pageKey"]],[28,[37,3],[[53,"outletState"],"render.name"],null],[28,[37,3],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n "],[10,"h3"],[14,0,"share-visibility__subheader"],[12],[1,"\\n "],[1,[30,0,["subheaderText"]]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showStickyVisibilityInlineFeedbackMessage"]],[[[1," "],[8,[39,5],null,[["@type","@message","@class"],["note",[28,[37,6],["i18n_sticky_visibility_message","sharing-v2/components/visibility/visibility-options-menu"],null],"share-visibility__options-menu-initialization-msg"]],null],[1,"\\n"]],[]],null],[1,"\\n "],[10,"fieldset"],[14,0,"share-visibility__fieldset"],[12],[1,"\\n "],[10,"legend"],[14,0,"visually-hidden"],[12],[1,[30,0,["headerText"]]],[13],[1,"\\n "],[8,[39,7],null,[["@listItems","@currentSelectionId","@setItem","@isInModal"],[[30,0,["filteredListItems"]],[30,0,["selectedOptionType"]],[30,0,["setItem"]],[30,3]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n"],[8,[39,8],null,[["@secondaryAction","@secondaryControlName","@secondaryButtonKey","@isPrimaryDisabled","@primaryAction","@primaryControlName","@primaryButtonKey"],[[30,4],[30,0,["controlInteractionEvents","VISIBILITY_BACK"]],[30,0,["footerSecondaryButtonKeys","BACK"]],[30,0,["disableSaveButton"]],[30,0,["onSave"]],[30,0,["controlInteractionEvents","VISIBILITY_SAVE"]],[30,0,["footerPrimaryButtonKeys","SAVE"]]]],null]],["@showInlineHeader","@headerType","@isInModal","@goToCreation"],false,["if","detour-framework@title-bar","ember-cli-pemberly-tracking@track-render","get","-get-dynamic-var","artdeco-inline-feedback@artdeco-inline-feedback","t","sharing-shared@detour-generic-list","detour-framework@share-box-footer"]]',moduleName:"sharing-v2/components/visibility/visibility-options-menu.hbs",isStrictMode:!1})
let B=e.default=(T=(0,d.inject)("locale"),v=(0,d.inject)("i18n"),E=(0,d.inject)("lix"),S=(0,d.inject)("lego@resolver"),I=(0,d.inject)("lego@tracking"),C=(M=new WeakSet,x=new WeakSet,V=new WeakSet,L=new WeakSet,class extends l.default{get currentVisibility(){var e
return this.selectedVisibility??(null===(e=this.args)||void 0===e?void 0:e.initialVisibility)}get disableSaveButton(){var e,t,i
return(null===(e=this.args)||void 0===e||null===(t=e.initialVisibility)||void 0===t?void 0:t.type)===(null===(i=this.currentVisibility)||void 0===i?void 0:i.type)}get isPageContentGraphQLEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.hiring-lego-page-content-graphql-migration")}get fixedVisibilityIsContainer(){var e
return this.args.isFixedVisibility&&(null===(e=this.currentVisibility)||void 0===e?void 0:e.containerEntity)}get listItems(){return this.fixedVisibilityIsContainer?[(0,n.default)(this,x,F).call(this)]:this.args.usingStickyVisibility?this.stickyVisibilityListItemsV2:(0,n.default)(this,M,H).call(this)}get filteredListItems(){return this.args.twitterAuthorized?this.listItems:this.listItems.filter((e=>e.itemId!==p.VALID_VISIBILITY_TYPES.TWITTER))}get selectedOptionType(){var e
return null===(e=this.currentVisibility)||void 0===e?void 0:e.type}get headerText(){return this.args.isInBroadcastMode?this.i18n.lookupTranslation("components/sharing-v2@visibility/visibility-options-menu","i18n_who_can_see_this_broadcast")():this.i18n.lookupTranslation("components/sharing-v2@visibility/visibility-options-menu","i18n_who_can_see_this_post")()}get subheaderText(){return this.args.isInBroadcastMode?this.i18n.lookupTranslation("components/sharing-v2@visibility/visibility-options-menu","i18n_post_settings_broadcast_subtext")():this.i18n.lookupTranslation("components/sharing-v2@visibility/visibility-options-menu","i18n_post_settings_subtext")()}get stickyVisibilityListItems(){return this.visibilityOptions.map((e=>{var t
if(e.containerTypeUrn&&this.currentVisibility.containerTypeUrn===e.containerTypeUrn){var i
return new b.default({itemId:this.currentVisibility.type,image:this.currentVisibility.logo,controlName:e.controlName,text:null===(i=this.currentVisibility.name)||void 0===i?void 0:i.text,imageAltText:e.type,iconType:e.iconName,showChevron:e.showChevron,entityImageShape:"square",subtext:e.selectedDescription})}const n=this.currentVisibility.type===e.type&&e.selectedDescription?e.selectedDescription:e.description
return new b.default({itemId:e.type,image:e.logo?e.logo:null,controlName:e.controlName,text:null===(t=e.name)||void 0===t?void 0:t.text,subtext:n,imageAltText:(0,f.default)(e.type),iconType:e.iconName,entityImageShape:"square",showChevron:e.showChevron})}))}get stickyVisibilityListItemsV2(){return this.visibilityOptions.map((e=>{if(e.containerTypeUrn&&this.currentVisibility.containerTypeUrn===e.containerTypeUrn)return new b.default({itemId:this.currentVisibility.type,image:this.currentVisibility.logo,controlName:e.controlName,text:this.currentVisibility.name,imageAltText:e.type,iconType:e.iconName,showChevron:e.showChevron,entityImageShape:"square",subtext:e.selectedDescription,useTVMV2:!0})
const t=this.currentVisibility.type===e.type&&e.selectedDescription?e.selectedDescription:e.description
return new b.default({itemId:e.type,image:e.logo?e.logo:null,controlName:e.controlName,text:e.name,subtext:t,imageAltText:(0,f.default)(e.type,!0),iconType:e.iconName,entityImageShape:"square",showChevron:e.showChevron,useTVMV2:!0})}))}constructor(){var e,r,a
super(...arguments)
L.add(this)
V.add(this)
x.add(this)
M.add(this);(0,t.default)(this,"locale",A,this);(0,t.default)(this,"i18n",O,this);(0,t.default)(this,"lix",D,this);(0,t.default)(this,"legoResolver",N,this);(0,t.default)(this,"legoTracking",w,this);(0,i.default)(this,"controlInteractionEvents",h.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS);(0,i.default)(this,"footerSecondaryButtonKeys",_.SHARE_BOX_FOOTER_SECONDARY_KEYS);(0,i.default)(this,"footerPrimaryButtonKeys",_.SHARE_BOX_FOOTER_PRIMARY_KEYS);(0,i.default)(this,"eligibilityMap",{[p.VALID_VISIBILITY_TYPES.TWITTER]:"cn"!==(null===(e=this.locale)||void 0===e?void 0:e.requestIpCountryCode)});(0,i.default)(this,"pageKey",h.SHAREBOX_TRACKING.PAGEVIEW_EVENTS.VISIBILITY);(0,t.default)(this,"selectedVisibility",P,this);(0,t.default)(this,"showStickyVisibilityInlineFeedbackMessage",R,this);(0,t.default)(this,"visibilityOptions",k,this)
const o=!this.args.focusOnOption
null===(r=(a=this.args).updateModalConfig)||void 0===r||r.call(a,{modalHeader:this.headerText,controlName:this.controlInteractionEvents.VISIBILITY_EXIT,shouldFocusOnHeader:o})
const s=this.args.excludedVisibilityTypes||[]
this.visibilityOptions=(0,g.getFilteredVisibilityOptions)(this.args.visibilityOptions,this.eligibilityMap,s)
this.args.usingStickyVisibility&&(0,n.default)(this,V,W).call(this)
this.args.focusOnOption&&(0,y.default)(this,`#${this.args.focusOnOption}`)}setItem(e){const t=this.visibilityOptions.find((t=>t.type===e))
if(t.type===p.VALID_VISIBILITY_TYPES.TARGETED){var i,n
null===(i=(n=this.args).goToTargetedAudience)||void 0===i||i.call(n)}if(t.containerTypeUrn){var r,a
null===(r=(a=this.args).goToDashContainersList)||void 0===r||r.call(a,t)}else this.selectedVisibility=t}onSave(){var e,t
null===(e=(t=this.args).onVisibilityOptionSelected)||void 0===e||e.call(t,this.selectedVisibility)}}),A=(0,r.default)(C.prototype,"locale",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,r.default)(C.prototype,"i18n",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,r.default)(C.prototype,"lix",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,r.default)(C.prototype,"legoResolver",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,r.default)(C.prototype,"legoTracking",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,r.default)(C.prototype,"selectedVisibility",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,r.default)(C.prototype,"showStickyVisibilityInlineFeedbackMessage",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,r.default)(C.prototype,"visibilityOptions",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,r.default)(C.prototype,"setItem",[u.action],Object.getOwnPropertyDescriptor(C.prototype,"setItem"),C.prototype),(0,r.default)(C.prototype,"onSave",[u.action],Object.getOwnPropertyDescriptor(C.prototype,"onSave"),C.prototype),C)
function H(){return this.visibilityOptions.map((e=>{var t
return new b.default({itemId:e.type,image:e.logo?e.logo:null,controlName:e.controlName,text:e.name,subtext:e.description,imageAltText:null===(t=e.name)||void 0===t?void 0:t.text,iconType:e.iconName,entityImageShape:"square",useTVMV2:!0})}))}function F(){var e
return new b.default({itemId:this.currentVisibility.type,image:this.currentVisibility.logo,iconType:this.currentVisibility.iconName,entityImageShape:"square",text:this.currentVisibility.name,imageAltText:null===(e=this.currentVisibility.name)||void 0===e?void 0:e.text})}function W(){(0,m.fireLegoRequestHelper)(this.legoResolver,{pageKey:"feed_share",slotId:"sticky_visibility_inline_feedback",groupId:"sticky_visibility_inline_feedback",widgetId:"sharing:_show_sticky_vis_inline_feedback_vis"},(e=>(0,n.default)(this,L,z).call(this,null==e?void 0:e.trackingToken)),this.isPageContentGraphQLEnabled)}function z(e){this.showStickyVisibilityInlineFeedbackMessage=!0
this.legoTracking.sendLegoImpression(e,this.legoTracking.LEGO_IMPRESSION_VISIBILITY_SHOW)}(0,o.setComponentTemplate)(U,B)}))
define("sharing-v2/config/environment",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
let t
try{const e="sharing-v2/config/environment",i=document.querySelector('meta[name="'+e+'"]').getAttribute("content")
t=JSON.parse(unescape(i))}catch(e){t={}}e.default=t}))
define.alias("ember-truth-helpers/helpers/and","sharing-v2/helpers/and")
define.alias("artdeco-datepicker/helpers/artdeco-adjust-date-for-timezone","sharing-v2/helpers/artdeco-adjust-date-for-timezone")
define.alias("artdeco-datepicker/helpers/artdeco-is-between-dates","sharing-v2/helpers/artdeco-is-between-dates")
define.alias("ember-media-player/helpers/autoplay-media","sharing-v2/helpers/autoplay-media")
define.alias("artdeco-datepicker/helpers/cal-dates-equal","sharing-v2/helpers/cal-dates-equal")
define.alias("ember-element-helper/helpers/element","sharing-v2/helpers/element")
define.alias("ember-holy-futuristic-template-namespacing-batman/helpers/-translate-dynamic-2","sharing-v2/helpers/ember-holy-futuristic-template-namespacing-batman-translate-dynamic-2")
define("sharing-v2/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","sharing-v2/helpers/eq")
define.alias("ember-media-player/helpers/format-autoplay","sharing-v2/helpers/format-autoplay")
define.alias("ember-cli-pemberly-i18n/helpers/format-number","sharing-v2/helpers/format-number")
define.alias("ember-semaphore/helpers/format-title","sharing-v2/helpers/format-title")
define.alias("ember-truth-helpers/helpers/gt","sharing-v2/helpers/gt")
define.alias("ember-truth-helpers/helpers/gte","sharing-v2/helpers/gte")
define.alias("@linkedin/hue-web-artdeco-migration-runtime/helpers/convert-to-icon-name","sharing-v2/helpers/hue-web-artdeco-icon-migration-runtime")
define.alias("@linkedin/hue-web-artdeco-migration-runtime/helpers/convert-to-icon-v2","sharing-v2/helpers/hue-web-artdeco-li-icon-migration-runtime-v2")
define.alias("@linkedin/hue-web-artdeco-migration-runtime/helpers/convert-to-icon-path","sharing-v2/helpers/hue-web-artdeco-li-icon-migration-runtime")
define.alias("@linkedin/hue-web-artdeco-migration-runtime/helpers/convert-argument","sharing-v2/helpers/hue-web-artdeco-migration-runtime")
define.alias("ember-truth-helpers/helpers/is-array","sharing-v2/helpers/is-array")
define.alias("ember-truth-helpers/helpers/is-empty","sharing-v2/helpers/is-empty")
define.alias("ember-truth-helpers/helpers/is-equal","sharing-v2/helpers/is-equal")
define.alias("artdeco-icons-web/helpers/li-icon","sharing-v2/helpers/li-icon")
define.alias("ember-async-data/helpers/load","sharing-v2/helpers/load")
define.alias("ember-truth-helpers/helpers/lt","sharing-v2/helpers/lt")
define.alias("ember-truth-helpers/helpers/lte","sharing-v2/helpers/lte")
define.alias("ember-truth-helpers/helpers/not-eq","sharing-v2/helpers/not-eq")
define.alias("ember-truth-helpers/helpers/not","sharing-v2/helpers/not")
define.alias("ember-truth-helpers/helpers/or","sharing-v2/helpers/or")
define("sharing-v2/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","sharing-v2/helpers/route-idle")
define.alias("ember-media-player/helpers/seek-media","sharing-v2/helpers/seek-media")
define.alias("ember-set-helper/helpers/set","sharing-v2/helpers/set")
define.alias("ember-cli-pemberly-i18n/helpers/t","sharing-v2/helpers/t")
define.alias("ember-truth-helpers/helpers/xor","sharing-v2/helpers/xor")
define.alias("ember-uuid","sharing-v2/index")
define("sharing-v2/initializers/coordinator-setup",["exports","sharing-v2/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("sharing-v2/initializers/icons",["exports","artdeco-icons-web/src/icons","sharing-v2/config/environment"],(function(e,t,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
function n(e){throw e}e.default={name:"icons",initialize:function(){const{environment:e,APP:r}=i.default
let a,o
r&&({artdecoCustomSpriteUrl:a,artdecoCustomSpriteName:o}=r)
const s="test"!==e
t.default.load(s,a,o).catch(n)}}}))
define.alias("ember-cli-pemberly-lix/initializers/lix","sharing-v2/initializers/lix")
define.alias("ember-m3/initializers/m3-store","sharing-v2/initializers/m3-store")
define.alias("ember-ref-bucket/instance-initializers/global-ref-cleanup","sharing-v2/instance-initializers/global-ref-cleanup")
define.alias("video/instance-initializers/media-plugins","sharing-v2/instance-initializers/media-plugins")
define("sharing-v2/models/coordinator",["exports","@ember/object","@ember/object/evented","sharing-v2/models/obj-hash","ember-drag-drop/utils/proxy-unproxy-objects"],(function(e,t,i,n,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=t.default.extend(i.default,{objectMap:(0,t.computed)((function(){return n.default.create()})),getObject:function(e,t){t=t||{}
var i=this.get("objectMap").getObj(e)
if(i.ops.source&&!i.ops.source.isDestroying&&!i.ops.source.isDestroyed){const e=i.ops.source.action
"function"==typeof e&&e(i.obj)
"string"==typeof e&&"function"==typeof i.ops.source.target[e]&&i.ops.source.target[e](i.obj)}if(i.ops.target&&!i.ops.target.isDestroying&&!i.ops.target.isDestroyed){const e=i.ops.target.action
"function"==typeof e&&e(i.obj)
"string"==typeof e&&"function"==typeof i.ops.target.source[e]&&i.ops.target.source[e](i.obj)}this.trigger("objectMoved",{obj:(0,r.unwrapper)(i.obj),source:i.ops.source,target:t.target})
return(0,r.unwrapper)(i.obj)},setObject:function(e,t){t=t||{}
return this.get("objectMap").add({obj:e,ops:t})}})}))
define("sharing-v2/models/obj-hash",["exports","@ember/object","@ember/object/computed","@ember/array"],(function(e,t,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=t.default.extend({contentLength:0,length:(0,i.alias)("contentLength"),init:function(){this._super()
this.content={}},add:function(e){var t=this.generateId()
this.get("content")[t]=e
this.incrementProperty("contentLength")
return t},getObj:function(e){var t=this.get("content")[e]
if(!t)throw new Error("no obj for key "+e)
return t},generateId:function(){var e=1e12*Math.random()
return e=""+(e=parseInt(e))},keys:function(){var e=[]
for(var t in this.get("content"))e.push(t)
return(0,n.A)(e)}})}))
define.alias("artdeco-datepicker/modifiers/artdeco-calendar-click-watcher","sharing-v2/modifiers/artdeco-calendar-click-watcher")
define.alias("ember-ref-bucket/modifiers/create-ref","sharing-v2/modifiers/create-ref")
define.alias("ember-css-transitions/modifiers/css-transition","sharing-v2/modifiers/css-transition")
define.alias("@ember/render-modifiers/modifiers/did-insert","sharing-v2/modifiers/did-insert")
define.alias("ember-scroll-modifiers/modifiers/did-intersect","sharing-v2/modifiers/did-intersect")
define.alias("ember-resize-modifier/modifiers/did-resize","sharing-v2/modifiers/did-resize")
define.alias("@ember/render-modifiers/modifiers/did-update","sharing-v2/modifiers/did-update")
define.alias("ember-finite-scroll/modifiers/ember-finite-scroll/focus","sharing-v2/modifiers/ember-finite-scroll/focus")
define.alias("image-editor/modifiers/fabric","sharing-v2/modifiers/fabric")
define.alias("ember-prop-modifier","sharing-v2/modifiers/prop")
define.alias("ember-scroll-modifiers/modifiers/scroll-into-view","sharing-v2/modifiers/scroll-into-view")
define("sharing-v2/modifiers/share-modal-focus",["exports","ember-modifier","ember-batcher","@ember/debug"],(function(e,t,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const r=(0,t.modifier)(((e,t,n)=>{let{shouldFocus:r=!0,selector:a}=n
r&&(0,i.readDOM)((()=>{const t=e.closest(".artdeco-modal"),n=a?t.querySelector(a):t
document.activeElement!==n&&(0,i.mutateDOM)((()=>{null==n||n.focus()}))}))}),{eager:!1})
e.default=r}))
define.alias("ember-sortable/modifiers/sortable-group","sharing-v2/modifiers/sortable-group")
define.alias("ember-sortable/modifiers/sortable-handle","sharing-v2/modifiers/sortable-handle")
define.alias("ember-sortable/modifiers/sortable-item","sharing-v2/modifiers/sortable-item")
define.alias("@ember/render-modifiers/modifiers/will-destroy","sharing-v2/modifiers/will-destroy")
define.alias("ember-cloud-filepicker/providers/base-provider","sharing-v2/providers/base-provider")
define.alias("ember-cloud-filepicker/providers/dropbox-provider","sharing-v2/providers/dropbox-provider")
define.alias("ember-cloud-filepicker/providers/onedrive-provider","sharing-v2/providers/onedrive-provider")
define("sharing-v2/providers/slideshare-provider",["exports","ember-cloud-filepicker/providers/slideshare-provider"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
var i={}
Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})
Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(i,n)||n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))}))}))
define.alias("@embroider/util/services/ensure-registered","sharing-v2/services/-ensure-registered")
define.alias("artdeco-hoverables/services/artdeco-hoverable","sharing-v2/services/artdeco-hoverable")
define.alias("artdeco-modal/services/artdeco-modal","sharing-v2/services/artdeco-modal")
define.alias("artdeco-toast/services/artdeco-toast","sharing-v2/services/artdeco-toast")
define.alias("client-sensor-web/services/client-sensor","sharing-v2/services/client-sensor")
define.alias("ember-date-service/services/date","sharing-v2/services/date")
define("sharing-v2/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","sharing-v2/services/graphql")
define.alias("image-editor/services/image-editor-loader","sharing-v2/services/image-editor-loader")
define.alias("@linkedin/ember-pem/services/internal-event-utils","sharing-v2/services/internal-event-utils")
define.alias("@linkedin/ember-pem/services/internal-pem-tracking","sharing-v2/services/internal-pem-tracking")
define.alias("ember-cli-pemberly-lix/services/lix","sharing-v2/services/lix")
define.alias("ember-m3/services/m3-schema-manager","sharing-v2/services/m3-schema-manager")
define.alias("ember-media-player/services/media-player","sharing-v2/services/media-player")
define.alias("@linkedin/ember-pem/services/pem-response-metadata","sharing-v2/services/pem-response-metadata")
define.alias("@linkedin/ember-pem/services/pem-tracking","sharing-v2/services/pem-tracking")
define.alias("persistent-toast-manager/services/persistent-toast-manager","sharing-v2/services/persistent-toast-manager")
define.alias("@linkedin/ember-qualtrics/services/qualtrics-surveys","sharing-v2/services/qualtrics-surveys")
define.alias("ember-session-record/services/scheduled-session-recorder","sharing-v2/services/scheduled-session-recorder")
define.alias("ember-session-record/services/session-recorder","sharing-v2/services/session-recorder")
define.alias("ember-media-player/services/static-asset-loader","sharing-v2/services/static-asset-loader")
define.alias("ember-cli-pemberly-m3/services/store","sharing-v2/services/store")
define.alias("ember-cli-pemberly-litms/services/tag-manager","sharing-v2/services/tag-manager")
define.alias("@linkedin/ember-pem/services/tracer","sharing-v2/services/tracer")
define.alias("ember-cli-pemberly-litms/services/tracking-adapter-for-tag-manager","sharing-v2/services/tracking-adapter-for-tag-manager")
define("sharing-v2/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:"HWYum/+A",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:"sharing-v2/templates/components/draggable-object-target.hbs",isStrictMode:!1})}))
define("sharing-v2/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:"VQDY83Ay",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:"sharing-v2/templates/components/draggable-object.hbs",isStrictMode:!1})}))
define("sharing-v2/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:"9FgNaeiI",block:'[[[18,1,null]],["&default"],false,["yield"]]',moduleName:"sharing-v2/templates/components/sortable-objects.hbs",isStrictMode:!1})}))
define.alias("ember-async-data/tracked-async-data","sharing-v2/tracked-async-data")
define("sharing-v2/utils/asset-utils",["exports","ember-cloud-filepicker/utils/asset-utils"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
var i={}
Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})
Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(i,n)||n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))}))}))
define.alias("ember-highcharts/utils/build-options","sharing-v2/utils/build-options")
define("sharing-v2/utils/confirmation-dialog-utils",["exports","sharing-v2/utils/sharing-constants","sharing-v2/utils/share-box-confirmation-dialog","sharing-shared/utils/sharing-shared-constants","global-helpers/helpers/actor-name"],(function(e,t,i,n,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.buildConvertRepostDialog=function(e,t,n,a){var o,s
const l=(0,r.getActorFamiliarNameFromAttributes)(null==a?void 0:a.actor,null==a?void 0:a.contextualHeader)||(null==a||null===(o=a.actor)||void 0===o||null===(s=o.name)||void 0===s?void 0:s.text)
return new i.ShareboxConfirmationDialog({title:e.lookupTranslation(c.i18nKeysTemplate,c.title)(),content:e.lookupTranslation(c.i18nKeysTemplate,c.content)([{actorName:l}]),primaryActionText:e.lookupTranslation(c.i18nKeysTemplate,c.primaryActionText)(),primaryAction:t,primaryControlName:c.primaryControlName,secondaryActionText:e.lookupTranslation(c.i18nKeysTemplate,c.secondaryActionText)(),secondaryAction:n,secondaryControlName:c.secondaryControlName,testId:c.testId})}
e.buildDiscardDraftDialog=function(e,t,n){return new i.ShareboxConfirmationDialog({title:e.lookupTranslation(o.i18nKeysTemplate,o.title)(),content:e.lookupTranslation(o.i18nKeysTemplate,o.content)(),primaryActionText:e.lookupTranslation(o.i18nKeysTemplate,o.primaryActionText)(),primaryAction:t,primaryControlName:o.primaryControlName,secondaryActionText:e.lookupTranslation(o.i18nKeysTemplate,o.secondaryActionText)(),secondaryAction:n,secondaryControlName:o.secondaryControlName,testId:o.testId})}
e.buildDiscardEditDialog=function(e,t,n){return new i.ShareboxConfirmationDialog({title:e.lookupTranslation(a.i18nKeysTemplate,a.title)(),content:e.lookupTranslation(a.i18nKeysTemplate,a.content)(),primaryActionText:e.lookupTranslation(a.i18nKeysTemplate,a.primaryActionText)(),primaryAction:t,primaryControlName:a.primaryControlName,secondaryActionText:e.lookupTranslation(a.i18nKeysTemplate,a.secondaryActionText)(),secondaryAction:n,secondaryControlName:a.secondaryControlName,testId:a.testId})}
e.buildPostAddThoughtsDialog=function(e,n,r,a){return new i.ShareboxConfirmationDialog({title:e.lookupTranslation(l.i18nKeysTemplate,l.title)(),content:e.lookupTranslation(l.i18nKeysTemplate,l.content)(),primaryActionText:e.lookupTranslation(l.i18nKeysTemplate,l.primaryActionText)(),primaryAction:n,primaryControlName:"ai"===a?t.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.CANCEL_UNMODIFIED_AI_POST:t.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.CANCEL_UNMODIFIED_THOUGHT_STARTERS_POST,secondaryActionText:e.lookupTranslation(l.i18nKeysTemplate,l.secondaryActionText)(),secondaryAction:r,secondaryControlName:"ai"===a?t.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.POST_AI_CONTENT_WITHOUT_EDIT:t.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.POST_THOUGHT_STARTERS_CONTENT_WITHOUT_EDIT,testId:l.testId})}
e.buildSaveDraftDialog=function(e,t,r,a,o,l){const d=function(e,t,i,r,a){if(i===n.SHARE_ORIGIN.ORGANIZATION){if(r&&a.type===n.VALID_COMMENT_RESTRICTION_TYPES.NONE)return e.lookupTranslation(t,"i18n_save_pages_draft_prompt_content_targeting_and_comments")()
if(r)return e.lookupTranslation(t,"i18n_save_pages_draft_prompt_content_targeting")()
if(a.type===n.VALID_COMMENT_RESTRICTION_TYPES.NONE)return e.lookupTranslation(t,"i18n_save_pages_draft_prompt_content_comments")()}return e.lookupTranslation(t,"i18n_save_draft_prompt_content")()}(e,s.i18nKeysTemplate,a,o,l)
return new i.ShareboxConfirmationDialog({title:e.lookupTranslation(s.i18nKeysTemplate,s.title)(),content:d,primaryActionText:e.lookupTranslation(s.i18nKeysTemplate,s.primaryActionText)(),primaryAction:t,primaryControlName:s.primaryControlName,secondaryActionText:e.lookupTranslation(s.i18nKeysTemplate,s.secondaryActionText)(),secondaryAction:r,secondaryControlName:s.secondaryControlName,testId:s.testId})}
e.buildScheduleAddThoughtsDialog=function(e,n,r,a){return new i.ShareboxConfirmationDialog({title:e.lookupTranslation(d.i18nKeysTemplate,d.title)(),content:e.lookupTranslation(d.i18nKeysTemplate,d.content)(),primaryActionText:e.lookupTranslation(d.i18nKeysTemplate,d.primaryActionText)(),primaryAction:n,primaryControlName:"ai"===a?t.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.CANCEL_UNMODIFIED_AI_SCHEDULE:t.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.CANCEL_UNMODIFIED_THOUGHT_STARTERS_SCHEDULE,secondaryActionText:e.lookupTranslation(d.i18nKeysTemplate,d.secondaryActionText)(),secondaryAction:r,secondaryControlName:"ai"===a?t.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.SCHEDULE_AI_CONTENT_WITHOUT_EDIT:t.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.SCHEDULE_THOUGHT_STARTERS_CONTENT_WITHOUT_EDIT,testId:d.testId})}
e.buildUnsavedDetourDialog=function(e,t,n){return new i.ShareboxConfirmationDialog({title:e.lookupTranslation(u.i18nKeysTemplate,u.title)(),content:e.lookupTranslation(u.i18nKeysTemplate,u.content)(),primaryActionText:e.lookupTranslation(u.i18nKeysTemplate,u.primaryActionText)(),primaryAction:t,primaryControlName:a.primaryControlName,secondaryActionText:e.lookupTranslation(u.i18nKeysTemplate,u.secondaryActionText)(),secondaryAction:n,secondaryControlName:u.secondaryControlName,testId:u.testId})}
const a=Object.freeze({i18nKeysTemplate:"components/sharing-v2@share-box-v2",title:"i18n_discard_edit_header",content:"i18n_discard_edit_content",primaryActionText:"i18n_discard",primaryControlName:t.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.WARNING_DIALOG_DISCARD,secondaryActionText:"i18n_go_back",secondaryControlName:t.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.WARNING_DIALOG_BACK,testId:"warning-dialog"}),o=Object.freeze({i18nKeysTemplate:"components/sharing-v2@share-box-v2",title:"i18n_discard_draft_header",content:"i18n_discard_draft_content",primaryActionText:"i18n_discard",primaryControlName:t.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.WARNING_DIALOG_DISCARD,secondaryActionText:"i18n_go_back",secondaryControlName:t.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.WARNING_DIALOG_BACK,testId:"warning-dialog"}),s=Object.freeze({i18nKeysTemplate:"components/sharing-v2@share-box-v2",title:"i18n_save_draft_prompt_header",primaryActionText:"i18n_save_draft_confirm",primaryControlName:t.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.DRAFT_DIALOG_SAVE,secondaryActionText:"i18n_discard",secondaryControlName:t.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.DRAFT_DIALOG_DISCARD,testId:"draft-dialog"}),l=Object.freeze({i18nKeysTemplate:"components/sharing-v2@share-box-v2",title:"i18n_post_warning_header",content:"i18n_post_warning_content",primaryActionText:"i18n_keep_editing",secondaryActionText:"i18n_post",testId:"post-add-thoughts-dialog"}),d=Object.freeze({i18nKeysTemplate:"components/sharing-v2@share-box-v2",title:"i18n_schedule_warning_header",content:"i18n_schedule_warning_content",primaryActionText:"i18n_keep_editing",secondaryActionText:"i18n_schedule",testId:"schedule-add-thoughts-dialog"}),c=Object.freeze({i18nKeysTemplate:"components/sharing-v2@share-box-v2",title:"i18n_repost_without_adding_thoughts_header",content:"i18n_repost_without_adding_thoughts_content",primaryActionText:"i18n_yes_repost",primaryControlName:t.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.REPOST_EDUCATION_REPOST,secondaryActionText:"i18n_go_back",secondaryControlName:t.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.REPOST_EDUCATION_GO_BACK,testId:"repost-education-dialog"}),u=Object.freeze({i18nKeysTemplate:"components/sharing-v2@share-box-v2",title:"i18n_discard_edit_header",content:"i18n_unsaved_detour_dialog_content",primaryActionText:"i18n_discard",primaryControlName:t.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.WARNING_DIALOG_DISCARD,secondaryActionText:"i18n_cancel",secondaryControlName:t.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.WARNING_DIALOG_BACK,testId:"unsaved-detour-dialog"})}))
define("sharing-v2/utils/file-error",["exports","ember-cloud-filepicker/utils/file-error"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
var i={}
Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})
Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(i,n)||n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))}))}))
define("sharing-v2/utils/file-result",["exports","ember-cloud-filepicker/utils/file-result"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
var i={}
Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})
Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(i,n)||n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))}))}))
define("sharing-v2/utils/get-app-config",["exports","ember-cloud-filepicker/utils/get-app-config"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
var i={}
Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})
Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(i,n)||n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))}))}))
define.alias("ember-cli-artdeco-tabs/utils/get-box-model-width","sharing-v2/utils/get-box-model-width")
define("sharing-v2/utils/guider/dash-guider-manager",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/classPrivateFieldGet","@babel/runtime/helpers/esm/classPrivateFieldSet","@babel/runtime/helpers/esm/classPrivateMethodGet","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","ember-cli-pemberly-tracking/utils/tracking","@ember/debug","@glimmer/tracking","sharing-v2/utils/guider/guider-tracking","global-utils/utils/is-browser","ember-lifeline","sharing-shared/utils/client-sensor-constants","sharing-shared/utils/client-sensor-utils"],(function(e,t,i,n,r,a,o,s,l,d,c,u,h,p,g,m){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.DashGuiderManager=void 0
var b,f,y,_,T,v,E,S,I
function C(e){var t
if(!e)return null
const i=(null===(t=e.trackingData)||void 0===t?void 0:t.hashtagBackendUrn)||"urn:li:dummy:1",{trackingId:n}=e
return n?{trackingObject:{objectUrn:i,trackingId:n}}:null}function A(e){var t,i,n,r,a,o,s,l,d
return{name:e.displayText,trackingControlName:e.trackingControlName,textToInsert:null===(t=e.clickBehaviorUnion)||void 0===t?void 0:t.textToInsert,editText:null===(i=e.clickBehaviorUnion)||void 0===i||null===(n=i.editText)||void 0===n||null===(r=n.editText)||void 0===r?void 0:r.text,detourType:null===(a=e.clickBehaviorUnion)||void 0===a?void 0:a.detourType,hashtagTrackingData:null===(o=e.customTrackingDataUnion)||void 0===o?void 0:o.hashtagTrackingData,trackingPromptType:null===(s=e.trackingData)||void 0===s?void 0:s.trackingPromptType,trackingData:e.trackingData,trackingId:(null===(l=e.trackingData)||void 0===l?void 0:l.trackingId)||(null===(d=e.trackingData)||void 0===d?void 0:d.hashtagBackendTrackingId)}}e.DashGuiderManager=(b=(_=new WeakMap,T=new WeakMap,v=new WeakSet,E=new WeakSet,S=new WeakSet,I=new WeakSet,class{constructor(e,n,r,a,o,s,l,d,c,u){I.add(this)
S.add(this)
E.add(this)
v.add(this);(0,t.default)(this,"headerPrompt",f,this);(0,t.default)(this,"prompts",y,this)
_.set(this,{writable:!0,value:[]});(0,i.default)(this,"clickedPromptsCollection",[])
T.set(this,{writable:!0,value:!1})
this.attachedShareMediaUrn=e
this.clientSensor=n
this.containerUrn=r
this.hasAttachment=a
this.organizationActorUrn=o
this.shareBoxSessionId=s
this.shareText=l
this.storeShim=d
this.tracking=c
this.typeaheadTracking=u}updateShareText(e){this.shareText=e
return(0,a.default)(this,I,w).call(this)}updateHasAttachment(e){this.hasAttachment=e
return(0,a.default)(this,I,w).call(this)}updateattachedShareMediaUrn(e){this.attachedShareMediaUrn=e
return(0,a.default)(this,I,w).call(this)}updateOrganizationActor(e,t){this.organizationActorUrn=e
this.containerUrn=t
return(0,a.default)(this,I,w).call(this)}updateContainerUrn(e){this.containerUrn=e
return(0,a.default)(this,I,w).call(this)}enableClientSideGuiderPrompt(){(0,r.default)(this,T,!0)}disableClientSideGuiderPrompt(){(0,r.default)(this,T,!1)
return(0,a.default)(this,I,w).call(this)}setInitialPrompt(){(0,a.default)(this,I,w).call(this)}handleGuiderPromptClickTracking(e){e.trackingControlName&&this.tracking.fireInteractionEvent(`share_${e.trackingControlName}`);(0,u.fireShareboxGuiderPromptClickEventTracking)(this.guiderPromptWorkflowId,e.trackingPromptType,this.tracking)
const{trackingId:t}=e,i={trackingId:t,guiderPromptWorkflowId:this.guiderPromptWorkflowId}
t&&this.clickedPromptsCollection.push(i)}handleCarouselImpressionTracking(){const e=(0,a.default)(this,E,D).call(this),t=(i=e,r=this.prompts,o=!0,i.map((e=>{var t
const i=r[e.dataset.index]
return o?C(i):{entity:null===(t=i.hashtagTrackingData)||void 0===t?void 0:t.backendUrn,index:Number(e.dataset.index),trackingId:i.trackingId}})).filter((e=>(null==e?void 0:e.entity)&&(null==e?void 0:e.trackingId)||o&&(null==e?void 0:e.trackingObject))))
var i,r,o
if(t.length){(0,u.fireShareboxGuiderPromptImpressionEventTracking)(this.guiderPromptWorkflowId,this.headerPrompt.trackingPromptType,t,this.tracking);(0,n.default)(this,_).push(...e.map((e=>null==e?void 0:e.innerText)))}}}),f=(0,o.default)(b.prototype,"headerPrompt",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{trackingPromptType:""}}}),y=(0,o.default)(b.prototype,"prompts",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),b)
function O(e){this.guiderPromptWorkflowId=(0,l.generateTrackingId)();(0,u.fireShareboxGuiderPromptStartEventTracking)(this.guiderPromptWorkflowId,e,this.tracking)}function D(){if(h.default){const e=document.querySelector(".share-creation-state__additional-toolbar"),t=null==e?void 0:e.getBoundingClientRect().right,i=[...document.querySelectorAll(".share-guider-custom-carousel-prompt__slide")]
return i.filter((e=>e.getBoundingClientRect().right<t&&!(0,n.default)(this,_).includes(e.innerText)))}return[]}function N(e){var t
const i=null===(t=e.name)||void 0===t?void 0:t.text
if(i&&!(0,n.default)(this,_).includes(i)){const t=C(e),{trackingPromptType:r}=e
r&&t&&(0,u.fireShareboxGuiderPromptImpressionEventTracking)(this.guiderPromptWorkflowId,r,[t],this.tracking);(0,n.default)(this,_).push(i)}(0,p.runTask)(this,this.handleCarouselImpressionTracking)}function w(){if((0,n.default)(this,T))return null
const e={hasAttachment:this.hasAttachment,q:"highestPriorityTriggeredPrompt",shareBoxSessionId:this.shareBoxSessionId}
this.shareText&&(e.commentary=this.shareText)
this.organizationActorUrn&&(e.organizationActorUrn=this.organizationActorUrn)
this.containerUrn&&(e.containerUrn=this.containerUrn)
this.attachedShareMediaUrn&&(e.mediaUrn=this.attachedShareMediaUrn)
return this.storeShim.queryURL("voyagerContentcreationDashGuiderPrompts",{params:{recipe:"com.linkedin.voyager.dash.deco.contentcreation.GuiderPrompt",...e}}).then((e=>{(0,m.fireSharingClientSensor)(this.clientSensor,g.SharingClientSensorMetrics.GUIDER_PROMPT_LOAD_SUCCESS)
if(e){var t,i,n,r,o,s,l
const d=(null===(t=e.elements)||void 0===t||null===(i=t.content)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.header)||{},c=null===(r=d.trackingData)||void 0===r?void 0:r.trackingPromptType
c&&c!==this.headerPrompt.trackingPromptType&&(0,a.default)(this,v,O).call(this,c)
this.headerPrompt=A(d)
const u=(null===(o=e.elements)||void 0===o||null===(s=o.content)||void 0===s||null===(l=s[0])||void 0===l?void 0:l.items)||[]
this.prompts=u.map(A);(0,a.default)(this,S,N).call(this,this.headerPrompt)}})).catch((e=>{(0,m.fireSharingClientSensor)(this.clientSensor,g.SharingClientSensorMetrics.GUIDER_PROMPT_LOAD_FAILURE)
throw e}))}}))
define("sharing-v2/utils/guider/guider-tracking",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.fireShareboxGuiderPromptClickEventTracking=function(e,t,i){const n={guiderPromptWorkflowId:e,promptType:t}
i.fireTrackingPayload("ShareboxGuiderPromptClickEvent",n)}
e.fireShareboxGuiderPromptImpressionEventTracking=function(e,t,i,n){const r={guiderPromptWorkflowId:e,promptType:t,items:i}
null!=i&&i.length&&n.fireTrackingPayload("ShareboxGuiderPromptImpressionEvent",r)}
e.fireShareboxGuiderPromptStartEventTracking=function(e,t,i){const n={guiderPromptWorkflowId:e,promptType:t}
i.fireTrackingPayload("ShareboxGuiderPromptStartEvent",n)}}))
define.alias("client-sensor-web/utils/helpers","sharing-v2/utils/helpers")
define.alias("@linkedin/hue-web-artdeco-migration-runtime/utils/mapping-data","sharing-v2/utils/mapping-data")
define("sharing-v2/utils/mime-type-utils",["exports","ember-cloud-filepicker/utils/mime-type-utils"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
var i={}
Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})
Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(i,n)||n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))}))}))
define("sharing-v2/utils/repost-education-utils",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","sharing-v2/utils/sharing-utils","sharing-v2/utils/sharing-constants","@glimmer/tracking","@ember/debug"],(function(e,t,i,n,r,a,o,s,l){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var d,c
e.default=(d=class{constructor(){let{legoResolver:e,legoTracking:i,isPageContentGraphQLEnabled:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,t.default)(this,"repostEducationTrackingToken",c,this)
this.legoResolver=e
this.legoTracking=i
this.isPageContentGraphQLEnabled=n;(0,a.fireLegoRequestHelper)(e,o.REPOST_EDUCATION_LEGO_CONFIG,(e=>{this.repostEducationTrackingToken=null==e?void 0:e.trackingToken}),n)}sendRepostEducationImpression(){this.repostEducationTrackingToken&&this.legoTracking.sendLegoImpression(this.repostEducationTrackingToken,this.legoTracking.LEGO_IMPRESSION_VISIBILITY_SHOW)}sendRepostEducationPrimaryAction(){this.repostEducationTrackingToken&&this.legoTracking.sendLegoAction(this.repostEducationTrackingToken,this.legoTracking.LEGO_ACTION_PRIMARY,1)}static getShareUrn(e,t){var i,n
return e||(null==t||null===(i=t.metadata)||void 0===i?void 0:i.shareUrn)||(null==t||null===(n=t.updateMetadata)||void 0===n?void 0:n.shareUrn)}},c=(0,n.default)(d.prototype,"repostEducationTrackingToken",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d)}))
define("sharing-v2/utils/share-box-confirmation-dialog",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.ShareboxConfirmationDialog=void 0
e.ShareboxConfirmationDialog=class{constructor(e){let{title:t,content:i,primaryActionText:n,primaryAction:r,primaryControlName:a,secondaryActionText:o,secondaryAction:s,secondaryControlName:l,testId:d}=e
this.title=t
this.content=i
this.primaryActionText=n
this.primaryAction=r
this.primaryControlName=a
this.secondaryActionText=o
this.secondaryAction=s
this.secondaryControlName=l
this.testId=d}}}))
define("sharing-v2/utils/share-preview-utils",["exports","@ember/debug","@ember/object"],(function(e,t,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.getUpdateV2WithFeedComponent=function(e,t){const n=Math.floor(Math.random()*Math.floor(1e3)),r=i.default.create({$type:"com.linkedin.voyager.feed.render.UpdateMetadata",urn:`urn:li:fakeUpdate:${n}`,trackingData:{$type:"com.linkedin.voyager.feed.TrackingData",trackingId:`trackingId${n}`,requestId:`requestId${n}`,urn:`urn:li:fakeUpdate:${n}`}}),a=e.createRecord("com.linkedin.voyager.feed.render.UpdateV2",{entityUrn:`urn:li:fs_fakeEntityUrn:${n}`,highlightedComments:[],updateMetadata:r})
a.content=t
return a}}))
define("sharing-v2/utils/share-status-helper",["exports","@ember/object","sharing-shared/utils/text-view-model-helpers"],(function(e,t,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=class{constructor(e,t,n,r,a){this.m3Schema=e
this.urn=t.urn
this.status=t
this.commentary=this.m3Schema.buildModel("com.linkedin.voyager.feed.render.TextComponent",{text:(0,i.generateTVMFromTextAndMentions)(n,r)})
this.detourManager=a}generateShareStatusData(){const e=this.m3Schema.buildModel("com.linkedin.voyager.feed.render.UpdateMetadata",{shareUrn:this.urn,urn:this.urn,trackingData:{$type:"com.linkedin.voyager.feed.TrackingData",trackingId:this.urn}}),i=t.default.create(this.m3Schema.buildModel("com.linkedin.voyager.feed.render.UpdateV2",{isSponsored:!1,entityUrn:this.urn,updateMetadata:e,commentary:this.commentary})),n=this.videoMediaData&&this.videoMediaData.customThumbnailImage
i.customThumbnailUrl=n
i.canShowPreview=!!(n||this.mediaData&&this.mediaData.dataUri)
i.value={}
i.status=this.status
i.mediaContent=this.mediaData
i.mediaType=this.mediaType
i.detourManager=this.detourManager
return i}}}))
define("sharing-v2/utils/sharing-constants",["exports","sharing-shared/utils/sharing-shared-constants"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.VISIBILITY_SCREEN=e.UPLOAD_LIMITS=e.UNIFIED_SETTINGS_CTAS=e.SHARE_AUDIENCE_VISIBILITY=e.SHAREBOX_TRACKING=e.SHAREBOX_STATE=e.SESSION_REPLAY=e.REPOST_EDUCATION_LEGO_CONFIG=e.NOTIFICATION_DURATION=e.MENTION_ENTITY_TYPES=e.LOCAL_STORAGE_KEYS=e.LIX_TREATMENTS=e.KEYS_NAMES=e.I18N_KEYS=e.HASHTAG_SOURCE_TYPES=e.HASHTAG_PREFIX=e.GUIDER_PROMPT_TYPES=e.FEEDBACK_MESSAGE_TYPE=e.EXTERNAL_DETOURS=e.ERRORS=e.DEFAULT_COMMENT_RESTRICTION_TYPE=e.CUSTOM_ACTION_EVENTS=e.COMMENT_RESTRICTION_TYPE_ICONS=e.COMMENT_RESTRICTION_CONFIGS_FOR_CONTAINERS=e.COMMENT_RESTRICTION_CONFIGS=void 0
e.SHAREBOX_STATE=Object.freeze({CREATION:"CREATION",DETOUR:"DETOUR",VISIBILITY:"VISIBILITY",DETOUR_CHOOSER_MENU:"DETOUR_CHOOSER_MENU",MANAGEMENT:"MANAGEMENT"}),e.KEYS_NAMES=Object.freeze({ESCAPE_KEY_NAME:"Escape",ESC_KEY_NAME:"Esc",TAB_KEY_NAME:"Tab"}),e.HASHTAG_PREFIX="#",e.HASHTAG_SOURCE_TYPES=Object.freeze({TYPEAHEAD:"TYPEAHEAD",SUGGESTED:"SUGGESTED"}),e.GUIDER_PROMPT_TYPES=Object.freeze({HASHTAG_SUGGESTION:"HASHTAG_SUGGESTION",JOB_DETOUR_RECOMMENDATION:"JOB",CELEBRATION_DETOUR_RECOMMENDATION:"CELEBRATION"}),e.CUSTOM_ACTION_EVENTS=Object.freeze({SELECT:"SELECT",DELETE:"DELETE",DISMISS:"DISMISS",PERSONALIZE:"PERSONALIZE"}),e.NOTIFICATION_DURATION=4e3,e.UPLOAD_LIMITS=Object.freeze({NONTWITTER_CHAR_LIMIT:3e3,TWITTER_CHAR_LIMIT:255,MENTIONS_LIMIT:40}),e.LIX_TREATMENTS=Object.freeze({ENABLED:"enabled",CONTROL:"control"}),e.VISIBILITY_SCREEN=Object.freeze({ACTOR_TOGGLE:"ACTOR_TOGGLE",COMMENT_CONTROLS:"COMMENT_CONTROLS",DASH_CONTAINERS_LIST:"DASH_CONTAINERS_LIST",TARGETED_AUDIENCE:"TARGETED_AUDIENCE",VISIBILITY_OPTIONS:"VISIBILITY_OPTIONS",MEDIA_WARN_DIALOG:"MEDIA_WARN_DIALOG",UNIFIED_SETTINGS:"UNIFIED_SETTINGS"}),e.SHARE_AUDIENCE_VISIBILITY=Object.freeze({PUBLIC:"PUBLIC",CONNECTIONS:"CONNECTIONS",GROUP:"GROUP",EMPLOYEES:"EMPLOYEES",PUBLIC_GROUP:"PUBLIC_GROUP"}),e.EXTERNAL_DETOURS=["SERVICE_MARKETPLACE","JOB","EVENTS"],e.I18N_KEYS=Object.freeze({SUCCESS_TOAST_PUBLISHED:"i18n_share_posted",SUCCESS_TOAST_SCHEDULED:"i18n_share_scheduled",SUCCESS_TOAST_DRAFT:"i18n_draft_saved",SHARE_UNSUCCESSFUL:"i18n_share_unsuccessful",DUPLICATE_SHARE_UNSUCCESSFUL:"duplicate_share_unsuccessful",CHANGES_SAVED:"i18n_changes_saved",GENERIC_PREVIEW_ERROR:"i18n_detour_preview_default_error_temp"}),e.ERRORS=Object.freeze({DUPLICATE_SHARE_ERROR_CODE:"409"})
const i=e.SHAREBOX_TRACKING=Object.freeze({PAGEVIEW_EVENTS:{SHARE:"flagship3_feed_share",SHARE_V2:"flagship3_feed_share_v2",REPOST:"flagship3_feed_reshare_share",EDIT:"flagship3_feed_share_edit",DRAFT:"flagship3_feed_share_draft",VISIBILITY:"flagship3_feed_share_distribution",TARGETING:"flagship3_feed_share_targeting",ACTOR_TOGGLE:"flagship3_feed_share_actor_menu",ACTOR_TOGGLE_V2:"flagship3_feed_share_v2_actor",CONTAINER_MENU:"flagship3_feed_share_container_menu",CONTAINER_MENU_V2:"flagship3_feed_share_v2_groups_list",COMMENT_CONTROLS:"flagship3_feed_share_comment_controls",COMMENT_CONTROLS_V2:"flagship3_feed_share_v2_comment_setting",DETOUR_CHOOSER_MENU:"flagship3_feed_share_detour_chooser_menu",MEDIA_REMOVE_WARN_DIALOG:"flagship3_feed_share_media_remove_dialog_warn",POST_VIEW_LIST:"flagship3_feed_share_schedule_list",POST_DETAIL_VIEW:"flagship3_feed_share_schedule_detail",UNIFIED_SETTINGS:"flagship3_feed_share_v2_unified_settings"},CONTROL_INTERACTION_EVENTS:{UNFOCUS_SHAREBOX:"share_close",ADD_COMMENTARY:"share_add_commentary",SHOW_MORE_HASHTAGS:"share_show_more_hashtags",REMOVE_PREVIEW_PREFIX:"share_remove_preview_",EDIT_PREVIEW_PREFIX:"share_edit_preview_",POST_BTN:"share_post",SAVE_BTN:"share_save",VISIBILITY_BTN:"share_visibility_button",CUSTOM_URL_PREVIEW_BTN:"share_change_article_preview",ACTOR_SELECT:"share_actor_select",ACTOR_SELECT_OPEN:"share_actor_select_open",ACTOR_SELECT_BACK:"share_actor_select_back",ACTOR_SELECT_SAVE:"share_actor_select_save",ACTOR_SELECT_BACK_V2:"share_actor_back",ACTOR_SELECT_SAVE_V2:"share_actor_done",ACTOR_SELECT_EXIT:"share_actor_select_exit",CANCEL_UNMODIFIED_AI_POST:"wa_edit_keep_editing",CANCEL_UNMODIFIED_THOUGHT_STARTERS_POST:"ts_edit_keep_editing",CANCEL_UNMODIFIED_AI_SCHEDULE:"share_cancel_unmodified_ai_schedule",CANCEL_UNMODIFIED_THOUGHT_STARTERS_SCHEDULE:"ts_edit_keep_editing",COMMENT_CONTROLS_OPEN:"share_comment_controls_open",COMMENT_CONTROLS_SELECT_ALL:"share_select_comment_controls_all",COMMENT_CONTROLS_SELECT_ALL_V2:"share_change_comment_anyone",COMMENT_CONTROLS_SELECT_CONNECTIONS:"share_select_comment_controls_connections",COMMENT_CONTROLS_SELECT_CONNECTIONS_V2:"share_change_comment_connections",COMMENT_CONTROLS_SELECT_NONE:"share_select_comment_controls_none",COMMENT_CONTROLS_SELECT_NONE_V2:"share_change_comment_no_one",COMMENT_CONTROLS_SELECT_BACK:"share_select_comment_controls_settings_back",COMMENT_CONTROLS_SELECT_SAVE:"share_select_comment_controls_settings_save",COMMENT_CONTROLS_SELECT_BACK_V2:"share_comment_back",COMMENT_CONTROLS_SELECT_SAVE_V2:"share_comment_save",COMMENTS_CONTROLS_SELECT_EXIT:"share_select_comment_controls_settings_exit",DRAFT_DIALOG_SAVE:"share_save_draft",DRAFT_DIALOG_DISCARD:"share_discard_draft",DETOUR_CHOOSER_MENU_SELECT_EXIT:"share_select_detour_chooser_menu_exit",DETOUR_CHOOSER_MENU_SELECT_BACK:"share_select_detour_chooser_menu_back",DETOUR_OPTIONS_SCROLL_LEFT:"share_scroll_options_left",DETOUR_OPTIONS_SCROLL_RIGHT:"share_scroll_options_right",DETOUR_OPTIONS_VIEW_ALL:"share_view_all_options",GROUP_INFO_NOTICE:"share_group_info",POST_AI_CONTENT_WITHOUT_EDIT:"wa_edit_post",POST_THOUGHT_STARTERS_CONTENT_WITHOUT_EDIT:"ts_edit_post",REPOST_EDUCATION_REPOST:"repost_instantly",REPOST_EDUCATION_GO_BACK:"repost_instantly_go_back",SCHEDULE_AI_CONTENT_WITHOUT_EDIT:"wa_edit_schedule",SCHEDULE_THOUGHT_STARTERS_CONTENT_WITHOUT_EDIT:"ts_edit_schedule",SCHEDULE_BTN:"schedule_post",SCHEDULE_BTN_V2:"share_schedule_post",SCHEDULE_PICKER_OPEN:"schedule_picker_open",SCHEDULE_PICKER_OPEN_V2:"share_schedule_picker_open",SCHEDULE_EDIT_OPEN:"schedule_edit_open",SCHEDULE_POST_LIST_BACK:"schedule_mgmnt_back",SCHEDULE_POST_LIST_EXIT:"schedule_mgmnt_exit",SCHEDULE_POST_LIST_SELECT:"schedule_mgmnt_select",SCHEDULE_POST_LIST_DELETE:"schedule_mgmnt_delete",SCHEDULE_POST_LIST_PICKER_OPEN:"schedule_mgmnt_picker_open",SCHEDULE_POST_LIST_CREATE_SCHEDULE:"schedule_mgmnt_create_schedule",SCHEDULE_DETAIL_BACK:"schedule_detail_back",SCHEDULE_DETAIL_EXIT:"schedule_detail_exit",SCHEDULE_DETAIL_DELETE:"schedule_detail_delete",SCHEDULE_DETAIL_PICKER_OPEN:"schedule_detail_picker_open",UNIFIED_SETTINGS_DISMISS:"share_settings_dismiss",UNIFIED_VIEW_ACTOR_LIST:"share_view_actor_list",UNIFIED_VIEW_COMMENT_CONTROLS_LIST:"share_view_comment_controls_list",VISIBILITY_BACK:"share_change_visibility_back",VISIBILITY_EXIT:"share_change_visibility_exit",VISIBILITY_SAVE:"share_change_visibility_save",VISIBILITY_TYPE_ANYONE:"share_change_visibility_public",VISIBILITY_TYPE_CONNECTIONS:"share_change_visibility_connections_only",VISIBILITY_TYPE_TWITTER:"share_change_visibility_twitter",VISIBILITY_TYPE_TARGETED:"share_change_visibility_targeted_audience",MEDIA_REMOVE_WARN_DIALOG_CANCEL:"share_select_media_warn_dialog_cancel",MEDIA_REMOVE_WARN_DIALOG_CONFIRM:"share_select_media_warn_dialog_confirm",MEDIA_REMOVE_WARN_DIALOG_EXIT:"share_select_media_warn_dialog_exit",NEW_TARGETING_BACK:"share_change_visibility_target_audience_back",NEW_TARGETING_EXIT:"share_change_visibility_target_audience_exit",NEW_TARGETING_SAVE:"share_change_visibility_target_audience_save",UNIFIED_SETTINGS_ENTRY:"share_settings_open",WARNING_DIALOG_BACK:"share_draft_goback",WARNING_DIALOG_DISCARD:"share_draft_discard",WARNING_DIALOG_EXIT:"share_draft_exit",AI_WARNING_DIALOG_EXIT:"wa_edit_dismiss",AI_TOOLBAR_BTN:"open_wa_toolbar",AI_ONBOARDING_DISMISS:"dismiss_wa_onboarding",UNDO:"wa_undo"},FAE:{SHARE:{actionCategory:"SHARE",actionType:"submitShare"}}}),n=(e.DEFAULT_COMMENT_RESTRICTION_TYPE=t.VALID_COMMENT_RESTRICTION_TYPES.ALL,e.COMMENT_RESTRICTION_TYPE_ICONS=Object.freeze({ALL:"globe-americas",ENABLED:"comment",DISABLED:"comment-off",NONE:"comment-off",CONNECTIONS_ONLY:"people"}))
e.COMMENT_RESTRICTION_CONFIGS={ALL:{TYPE:t.VALID_COMMENT_RESTRICTION_TYPES.ALL,ICON_NAME:n.ALL,CONTROL_NAME:i.CONTROL_INTERACTION_EVENTS.COMMENT_CONTROLS_SELECT_ALL,CONTROL_NAME_V2:i.CONTROL_INTERACTION_EVENTS.COMMENT_CONTROLS_SELECT_ALL_V2,I18N_TEXT_KEY:"i18n_anyone",I18N_SUBTEXT_KEY:"i18n_anyone_desc"},CONNECTIONS_ONLY:{TYPE:t.VALID_COMMENT_RESTRICTION_TYPES.CONNECTIONS_ONLY,ICON_NAME:n.CONNECTIONS_ONLY,CONTROL_NAME:i.CONTROL_INTERACTION_EVENTS.COMMENT_CONTROLS_SELECT_CONNECTIONS,CONTROL_NAME_V2:i.CONTROL_INTERACTION_EVENTS.COMMENT_CONTROLS_SELECT_CONNECTIONS_V2,I18N_TEXT_KEY:"i18n_connections_only",I18N_SUBTEXT_KEY:"i18n_connections_only_desc"},NONE:{TYPE:t.VALID_COMMENT_RESTRICTION_TYPES.NONE,ICON_NAME:n.NONE,CONTROL_NAME:i.CONTROL_INTERACTION_EVENTS.COMMENT_CONTROLS_SELECT_NONE,CONTROL_NAME_V2:i.CONTROL_INTERACTION_EVENTS.COMMENT_CONTROLS_SELECT_NONE_V2,I18N_TEXT_KEY:"i18n_no_one",I18N_SUBTEXT_KEY:"i18n_no_one_desc"}},e.COMMENT_RESTRICTION_CONFIGS_FOR_CONTAINERS={ENABLED:{TYPE:t.VALID_COMMENT_RESTRICTION_TYPES.ALL,DISPLAY_TYPE:"ENABLED",ICON_NAME:n.ENABLED,CONTROL_NAME:i.CONTROL_INTERACTION_EVENTS.COMMENT_CONTROLS_SELECT_ALL,CONTROL_NAME_V2:i.CONTROL_INTERACTION_EVENTS.COMMENT_CONTROLS_SELECT_ALL_V2,I18N_TEXT_KEY:"i18n_comments_enabled",I18N_SUBTEXT_KEY:"i18n_comments_enabled_desc"},DISABLED:{TYPE:t.VALID_COMMENT_RESTRICTION_TYPES.NONE,DISPLAY_TYPE:"DISABLED",ICON_NAME:n.NONE,CONTROL_NAME:i.CONTROL_INTERACTION_EVENTS.COMMENT_CONTROLS_SELECT_NONE,CONTROL_NAME_V2:i.CONTROL_INTERACTION_EVENTS.COMMENT_CONTROLS_SELECT_NONE_V2,I18N_TEXT_KEY:"i18n_comments_disabled",I18N_SUBTEXT_KEY:"i18n_comments_disabled_desc"}},e.MENTION_ENTITY_TYPES={EXPLICIT:"EXPLICIT",HASHTAG:"HASHTAG"},e.LOCAL_STORAGE_KEYS=Object.freeze({ORGANIZATION_ACTORS:"sharing-organization-actors"}),e.SESSION_REPLAY=Object.freeze({INTERVAL:1e4,PRODUCT:"FLAGSHIP",SHARE_BOX:"share_box"}),e.UNIFIED_SETTINGS_CTAS=Object.freeze({ACTOR:"ACTOR",COMMENT:"COMMENT",CONTAINER:"CONTAINER",TARGETED:"TARGETED"}),e.FEEDBACK_MESSAGE_TYPE=Object.freeze({BE_KIND:"BE_KIND",CHAR_LIMIT:"CHAR_LIMIT",DETOUR_PREVIEW_ERROR:"DETOUR_PREVIEW_ERROR",DRAG_AND_DROP_ERROR:"DRAG_AND_DROP_ERROR",MENTIONS_LIMIT:"MENTIONS_LIMIT",POST_FAILURE:"POST_FAILURE",PREVIEW_LOADING:"PREVIEW_LOADING"}),e.REPOST_EDUCATION_LEGO_CONFIG=Object.freeze({pageKey:"flagship_feed_repost_education",slotId:"repost_education",groupId:"repost_education_group",widgetId:"flagship_feed:repost_education"})}))
define("sharing-v2/utils/sharing-utils",["exports","@ember/utils","sharing-v2/utils/sharing-constants","global-utils/utils/api-compat","feed-utils/utils/error-parsing","sharing-shared/utils/sharing-shared-constants","graphql-queries/queries/sharing/contentcreation-dash-update-url-preview-by-url.graphql"],(function(e,t,i,n,r,a,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.appendTextAndMentions=function(e,i){if((0,t.isEmpty)(e.text)&&(0,t.isEmpty)(i.text))return{text:"",mentions:[]}
if((0,t.isEmpty)(e.text))return i
if((0,t.isEmpty)(i.text))return e
const n=e.text.length+1,r={text:e.text.concat(" ",i.text),mentions:e.mentions||[]}
i.mentions.forEach((e=>{e.match.start+=n
r.mentions.push(e)}))
return r}
e.fetchDashUrlPreviewPromise=function(e,t){return t.executeQuery(o.default,{url:e})}
e.fetchUrlPreviewPromise=function(e,t){const i=encodeURIComponent(e)
return t.queryURL(`contentcreation/urlPreview/${i}`,{cacheKey:i,reload:!0})}
e.fireLegoRequestHelper=function(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3]
const{pageKey:r,slotId:a,groupId:o,widgetId:s}=t
return e.clearSlotCache(r,a).fireLegoCall({pageKey:r,slotId:a,groupId:o,widgetId:s},!1,n).then((e=>{(n?null==e?void 0:e.widgetKey:(null==e?void 0:e.widgetId)===s)&&i(e)}))}
e.getRecordFromResponse=function(e){var t,i,r,a,o,s,l,d,c,u,h,p
const g=(null===(t=e.status)||void 0===t?void 0:t.pendingModeration)||"PENDING_MODERATION"===(null==e||null===(i=e.data)||void 0===i||null===(r=i.createContentcreationDashShares.entity)||void 0===r||null===(a=r.status)||void 0===a||null===(o=a.lifecycleState)||void 0===o?void 0:o.UnpublishedState),m=(null===(s=e.data)||void 0===s?void 0:s.createContentcreationDashShares)||"com.linkedin.voyager.contentcreation.NormShare"===(0,n.classNameOf)(e)
return!g&&m?(null===(l=e.data)||void 0===l||null===(d=l.createContentcreationDashShares.entity)||void 0===d||null===(c=d.status)||void 0===c||null===(u=c.lifecycleState)||void 0===u?void 0:u.PublishedState)||(null===(h=e.status)||void 0===h?void 0:h.updateV2)||(null===(p=e.status)||void 0===p?void 0:p.update):e}
e.isDuplicatePostError=function(e){return(0,r.getStatusCode)(e)===i.ERRORS.DUPLICATE_SHARE_ERROR_CODE}
e.isTimestampWithinBoundaries=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.TIME_VALUES.ONE_HOUR_MS,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.TIME_VALUES.NINTY_DAYS_MS
const n=(new Date).getTime()
return e>=n+t&&e<=n+i}}))
define("sharing-v2/utils/state-change-button-config",["exports","@ember/debug","sharing-v2/utils/visibility/share-box-actor","sharing-v2/utils/sharing-constants","sharing-shared/utils/sharing-shared-constants","sharing-v2/utils/visibility/comment-restriction","sharing-v2/utils/visibility/visibility-option"],(function(e,t,i,n,r,a,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=class{constructor(e,t,s){this.buttonType="secondary"
this.buttonSize="1"
this.showCaretIcon=!0
if(e instanceof o.default){var l
this.type="visibility"
this.label=null===(l=e.name)||void 0===l?void 0:l.text
this.iconType=e.iconName
this.ariaLabel=t.lookupTranslation(`components/${s}`,"i18n_visibility_btn_a11y_label")([{label:this.label}])
this.controlName=n.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.VISIBILITY_BTN}else if(e instanceof i.default){this.type="actor"
this.label=e.name
this.iconType="person"
this.ariaLabel=t.lookupTranslation(`components/${s}`,"i18n_actor_btn_a11y_label")([{label:this.label}])
this.controlName=n.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.ACTOR_SELECT_OPEN}else if(e instanceof a.default){this.type="comment-restriction"
this.label=t.lookupTranslation(`components/${s}`,"i18n_comment_restriction_options")([{commentRestrictionSelection:e.displayType}])
this.iconType=e.type===r.VALID_COMMENT_RESTRICTION_TYPES.NONE?n.COMMENT_RESTRICTION_TYPE_ICONS.DISABLED:n.COMMENT_RESTRICTION_TYPE_ICONS.ENABLED
this.ariaLabel=t.lookupTranslation(`components/${s}`,"i18n_comment-restriction-type_btn_a11y_label")([{label:this.label}])
this.showCaretIcon=!1
this.buttonType="tertiary"
this.controlName=n.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.COMMENT_CONTROLS_OPEN}}}}))
define("sharing-v2/utils/tracked-post-contents",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/classPrivateFieldGet","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@glimmer/tracking","@ember/utils","sharing-shared/utils/text-view-model-helpers","sharing-v2/utils/sharing-utils","sharing-v2/utils/sharing-constants"],(function(e,t,i,n,r,a,o,s,l,d,c){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var u,h,p,g,m
e.default=(u=(g=new WeakMap,m=new WeakMap,class{get characterCount(){var e
return(null===(e=this.text)||void 0===e?void 0:e.length)??0}get exceedsMaxCharLimit(){return this.characterCount>(0,n.default)(this,g)}get exceedsMaxMentions(){return!!this.mentions&&this.mentions.length>(0,n.default)(this,m)}get hasText(){return!!this.characterCount}get trackedPostContentsData(){return(0,s.isPresent)(this.text)||(0,s.isPresent)(this.mentions)?{text:this.text,mentions:this.mentions}:{}}get charCountOverLimit(){return this.exceedsMaxCharLimit?(0,n.default)(this,g)-this.characterCount:0}constructor(e,i){g.set(this,{writable:!0,value:c.UPLOAD_LIMITS.NONTWITTER_CHAR_LIMIT})
m.set(this,{writable:!0,value:c.UPLOAD_LIMITS.MENTIONS_LIMIT});(0,t.default)(this,"text",h,this);(0,t.default)(this,"mentions",p,this)
this.text=e
this.mentions=i}appendTextAndMentions(e,t){const i=(0,l.generateTextAndMentionsFromTextViewModelV2)(e,t),n={text:this.text,mentions:this.mentions},{text:r,mentions:a}=(0,d.appendTextAndMentions)(n,i)
this.updateData(r,a)}initializeDataFromHashtag(e){this.updateData(`\n${e}`,[])}initializeDataFromTVMV2(e,t){const{text:i,mentions:n}=(0,l.generateTextAndMentionsFromTextViewModelV2)(e,t)
this.updateData(i,n)}initializeDataFromUpdateV2(e){var t
const{text:i,mentions:n}=(0,l.generateTextAndMentionsFromTextViewModel)(null===(t=e.commentary)||void 0===t?void 0:t.text)
this.updateData(i,n)}initializeDataFromDashUpdate(e,t){var i
const{text:n,mentions:r}=(0,l.generateTextAndMentionsFromTextViewModelV2)(e,null===(i=t.commentary)||void 0===i?void 0:i.text)
this.updateData(n,r)}updateData(e,t){this.text=e
this.mentions=t}}),h=(0,r.default)(u.prototype,"text",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,r.default)(u.prototype,"mentions",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u)}))
define("sharing-v2/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("sharing-v2/utils/validation-helpers",["exports","ember-cloud-filepicker/utils/validation-helpers"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
var i={}
Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})
Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(i,n)||n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))}))}))
define.alias("ember-vector-images/utils/vector-url","sharing-v2/utils/vector-url")
define("sharing-v2/utils/visibility/comment-restriction",["exports","sharing-v2/utils/sharing-constants","sharing-shared/utils/sharing-shared-constants"],(function(e,t,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=class{constructor(e,n,r,a){e.containerEntity?a?this.setRestrictions(i.VALID_COMMENT_RESTRICTION_TYPES.NONE):this.setRestrictionsForContainers(n):n===i.VALID_COMMENT_RESTRICTION_TYPES.NONE?this.setRestrictions(i.VALID_COMMENT_RESTRICTION_TYPES.NONE):r?this.setRestrictions(i.VALID_COMMENT_RESTRICTION_TYPES.ALL):e.type===i.VALID_VISIBILITY_TYPES.CONNECTIONS?this.setRestrictions(i.VALID_COMMENT_RESTRICTION_TYPES.CONNECTIONS_ONLY):n?this.setRestrictions(n):this.setRestrictions(t.DEFAULT_COMMENT_RESTRICTION_TYPE)}setRestrictionsForContainers(e){if(e===i.VALID_COMMENT_RESTRICTION_TYPES.NONE){this.type=t.COMMENT_RESTRICTION_CONFIGS_FOR_CONTAINERS.DISABLED.TYPE
this.displayType=t.COMMENT_RESTRICTION_CONFIGS_FOR_CONTAINERS.DISABLED.DISPLAY_TYPE
this.iconName=t.COMMENT_RESTRICTION_CONFIGS_FOR_CONTAINERS.DISABLED.ICON_NAME}else{this.type=t.COMMENT_RESTRICTION_CONFIGS_FOR_CONTAINERS.ENABLED.TYPE
this.displayType=t.COMMENT_RESTRICTION_CONFIGS_FOR_CONTAINERS.ENABLED.DISPLAY_TYPE
this.iconName=t.COMMENT_RESTRICTION_CONFIGS_FOR_CONTAINERS.ENABLED.ICON_NAME}}setRestrictions(e){this.type=e
this.displayType=e
this.iconName=t.COMMENT_RESTRICTION_TYPE_ICONS[e]}}}))
define("sharing-v2/utils/visibility/container-type-metadata",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=class{constructor(e){let{containerTypeUrn:t,header:i,subheader:n,retryControlName:r,saveControlName:a,backControlName:o,exitControlName:s,selectionControlName:l}=e
Object.assign(this,{containerTypeUrn:t,header:i,subheader:n})
this.retryControlName=`share_${r}`
this.saveControlName=`share_${a}`
this.backControlName=`share_${o}`
this.exitControlName=`share_${s}`
this.selectionControlName=`share_${l}`}}}))
define("sharing-v2/utils/visibility/share-box-actor",["exports","@ember/debug","@ember/object","@ember/utils","global-utils/utils/api-compat","global-utils/utils/urn-converter","dash-interop-helper/utils/get-graphql-value-with-dash-fallback","sharing-shared/utils/sharing-shared-constants"],(function(e,t,i,n,r,a,o,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
function l(e,t){return["com.linkedin.voyager.dash.organization.Company","com.linkedin.voyager.dash.organization.OrganizationalPage"].includes(e)?(0,i.get)(t,"entityUrn"):(0,i.get)(t,"dashEntityUrn")||(0,i.get)(t,"dashCompanyUrn")}e.default=class{constructor(e,t){const n=(0,r.classNameOf)(e)
this.actorType=function(e){switch(e){case"com.linkedin.voyager.entities.shared.MiniCompany":case"com.linkedin.voyager.organization.Company":case"com.linkedin.voyager.dash.organization.Company":return s.ACTOR_TYPES.company
case"com.linkedin.voyager.dash.organization.OrganizationalPage":case"com.linkedin.voyager.entities.shared.MiniOrganizationalPage":return s.ACTOR_TYPES.organizationalPage
case"com.linkedin.voyager.identity.shared.MiniProfile":return s.ACTOR_TYPES.member
default:return}}(n)
this.name=function(e,t,n){switch(t){case s.ACTOR_TYPES.organizationalPage:return(0,i.get)(e,"localizedName")||(0,i.get)(e,"name")
case s.ACTOR_TYPES.company:return(0,i.get)(e,"name")
case s.ACTOR_TYPES.member:return n.formatName((0,i.getProperties)(e,"firstName","maidenName","lastName"),"full")
default:return}}(e,this.actorType,t)
this.lockupImageShape=function(e){switch(e){case s.ACTOR_TYPES.company:case s.ACTOR_TYPES.organizationalPage:return"square"
default:return"circle"}}(this.actorType)
this.image=function(e,t){if(t)switch(e){case s.ACTOR_TYPES.organizationalPage:return(0,i.get)(t,"logoV2")||(0,i.get)(t,"logo")
case s.ACTOR_TYPES.company:return(0,o.getGraphQlValueWithDashFallback)(t,"logoResolutionResult.vectorImage")||(0,i.get)(t,"logo")
case s.ACTOR_TYPES.member:return(0,i.get)(t,"picture")
default:return}}(this.actorType,e)
this.urn=function(e,t){switch(e){case s.ACTOR_TYPES.organizationalPage:return(0,i.get)(t,"dashEntityUrn")||(0,i.get)(t,"entityUrn")
case s.ACTOR_TYPES.company:return(0,a.convertUrnType)("organization/company",(0,i.get)(t,"entityUrn"))
case s.ACTOR_TYPES.member:return(0,i.get)(t,"entityUrn")
default:return}}(this.actorType,e)
this.actorType===s.ACTOR_TYPES.company&&(this.dashCompanyUrn=l(n,e))
this.actorType!==s.ACTOR_TYPES.company&&this.actorType!==s.ACTOR_TYPES.organizationalPage&&this.actorType!==s.ACTOR_TYPES.member||(this.dashUrn=l(n,e))
this.vectorImageGhostType=function(e){switch(e){case s.ACTOR_TYPES.company:case s.ACTOR_TYPES.organizationalPage:return"company"
default:return"person"}}(this.actorType)
this.imageEntityClass=`EntityPhoto-${this.lockupImageShape}-2`}get isNonMemberActor(){return[s.ACTOR_TYPES.company,s.ACTOR_TYPES.organizationalPage].includes(this.actorType)}}}))
define("sharing-v2/utils/visibility/visibility-option-configs",["exports","sharing-v2/utils/sharing-constants","sharing-shared/utils/sharing-shared-constants"],(function(e,t,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.TARGETED_VISIBILITY_CONFIG=e.FALLBACK_INITIALIZATION_VISIBILITY_CONFIGS=e.DEFAULT_ORGANIZATION_ACTOR_VISIBILITY_CONFIGS=e.DEFAULT_ORGANIZATIONAL_PAGE_ACTOR_VISIBILITY_CONFIGS=e.CONNECTIONS_ONLY_VISIBILITY_CONFIG=e.ANYONE_VISIBILITY_CONFIG=void 0
const n=e.ANYONE_VISIBILITY_CONFIG=Object.freeze({type:i.VALID_VISIBILITY_TYPES.ANYONE,nameI18nLabelKey:"i18n_anyone_visibility_options_name",descriptionI18nLabelKey:"i18n_anyone_visibility_options_description",iconName:"globe-americas",controlName:t.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.VISIBILITY_TYPE_ANYONE,showChevron:!1}),r=e.CONNECTIONS_ONLY_VISIBILITY_CONFIG=Object.freeze({type:i.VALID_VISIBILITY_TYPES.CONNECTIONS,nameI18nLabelKey:"i18n_connections_visibility_options_name",descriptionI18nLabelKey:"i18n_connections_visibility_options_description",iconName:"people",controlName:t.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.VISIBILITY_TYPE_CONNECTIONS,showChevron:!1}),a=e.TARGETED_VISIBILITY_CONFIG=Object.freeze({type:i.VALID_VISIBILITY_TYPES.TARGETED,nameI18nLabelKey:"i18n_targeted_visibility_options_name",descriptionI18nLabelKey:"i18n_targeted_visibility_options_description",iconName:"radar-screen",controlName:t.SHAREBOX_TRACKING.CONTROL_INTERACTION_EVENTS.VISIBILITY_TYPE_TARGETED,showChevron:!0})
e.DEFAULT_ORGANIZATION_ACTOR_VISIBILITY_CONFIGS=[n,a],e.DEFAULT_ORGANIZATIONAL_PAGE_ACTOR_VISIBILITY_CONFIGS=[n],e.FALLBACK_INITIALIZATION_VISIBILITY_CONFIGS=[n,r]}))
define("sharing-v2/utils/visibility/visibility-option",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=class{constructor(e){let{type:t,name:i,description:n,selectedDescription:r,logo:a,iconName:o,controlName:s,containerTypeUrn:l,containerEntity:d,isPrivateContainer:c,showChevron:u=!1}=e
Object.assign(this,{type:t,name:i,description:n,iconName:o,controlName:s,showChevron:u})
r&&(this.selectedDescription=r)
a&&(this.logo=a)
l&&(this.containerTypeUrn=l)
d&&(this.containerEntity=d)
"boolean"==typeof c&&(this.isPrivateContainer=c)}}}))
define("sharing-v2/utils/visibility/visibility-utils",["exports","@ember/utils","image-view-model/utils/hue-icon","image-view-model/utils/image-view-model-create","image-view-model/utils/dash-image-view-model-create","sharing-shared/utils/sharing-shared-constants","sharing-v2/utils/sharing-constants","sharing-v2/utils/visibility/container-type-metadata","sharing-v2/utils/visibility/share-box-actor","sharing-v2/utils/visibility/visibility-option","sharing-v2/utils/visibility/visibility-option-configs","text-view-model/utils/generator","sharing-shared/utils/sharebox-list-item"],(function(e,t,i,n,r,a,o,s,l,d,c,u,h){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.buildEmployeesVisibilityOptionForEditMode=p
e.buildGroupVisibilityOptionFromDashUpdate=m
e.buildGroupVisibilityOptionFromUpdateV2=g
e.buildVisibilityOptionFromConfig=b
e.buildVisibilityOptionFromConfigPhoenix=f
e.buildVisibilityOptionsFromConfigs=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2]
return t.map((t=>i?f(e,t):b(e,t)))}
e.checkEligibility=y
e.filterIneligibleOptions=_
e.findSelectedOptions=function(e){const[t]=e.filter((e=>{var t
return null===(t=e.menuItem)||void 0===t?void 0:t.selectedItem})),[i]=t.commentControls.filter((e=>{var t
return null===(t=e.menuItem)||void 0===t?void 0:t.selectedItem}))
return{selectedVisibility:t,selectedCommentControlConfig:i}}
e.formatBasicShareboxListItemFromStickyVisItem=T
e.formatContainerFixedVisibilityOption=function(e){return new d.default({type:e.type,containerEntity:e.containerEntity,name:(0,u.default)(e.name),description:(0,u.default)(e.subText),iconName:e.iconType,logo:e.logo,isPrivateContainer:e.isPrivateContainer})}
e.formatSelectedStickyVisibilityItem=function(e){var t,n,r,o,s,l,c,u,h,p,g,m,b,f,y,_,T,v,E,S,I
const C=null===(t=e.menuItem)||void 0===t?void 0:t.controlName
return new d.default({type:(null===(n=e.visibilityDataUnion)||void 0===n?void 0:n.visibilityType)||a.VALID_VISIBILITY_TYPES.CONTAINER,containerEntity:null===(r=e.visibilityDataUnion)||void 0===r||null===(o=r.containerVisibility)||void 0===o||null===(s=o.container)||void 0===s?void 0:s.containerEntity,name:(null===(l=e.visibilityDataUnion)||void 0===l||null===(c=l.containerVisibility)||void 0===c||null===(u=c.container)||void 0===u?void 0:u.name)||(null===(h=e.menuItem)||void 0===h?void 0:h.title),isPrivateContainer:null===(p=e.visibilityDataUnion)||void 0===p||null===(g=p.containerVisibility)||void 0===g||null===(m=g.container)||void 0===m?void 0:m.isContainerPrivate,description:null===(b=e.menuItem)||void 0===b?void 0:b.description,iconName:(0,i.getHueIcon)(null===(f=e.menuItem)||void 0===f?void 0:f.iconName).name,logo:null===(y=e.visibilityDataUnion)||void 0===y||null===(_=y.containerVisibility)||void 0===_||null===(T=_.container)||void 0===T?void 0:T.logo,controlName:`share_${C}`,selectedDescription:null===(v=e.menuItem)||void 0===v?void 0:v.selectedDescription,containerTypeUrn:null===(E=e.visibilityDataUnion)||void 0===E||null===(S=E.containerVisibility)||void 0===S?void 0:S.containerTypeUrn,showChevron:!(null===(I=e.visibilityDataUnion)||void 0===I||!I.containerVisibility)})}
e.formatShareboxListItemFromStickyVisAnyone=E
e.formatShareboxListItemFromStickyVisContainer=v
e.formatStickyVisibilityItem=function(e){var t,n,r,o,s,l,c,u,h
const p=null===(t=e.menuItem)||void 0===t?void 0:t.controlName
return new d.default({type:(null===(n=e.visibilityDataUnion)||void 0===n?void 0:n.visibilityType)||a.VALID_VISIBILITY_TYPES.CONTAINER,name:null===(r=e.menuItem)||void 0===r?void 0:r.title,description:null===(o=e.menuItem)||void 0===o?void 0:o.description,iconName:(0,i.getHueIcon)(null===(s=e.menuItem)||void 0===s?void 0:s.iconName).name,controlName:`share_${p}`,selectedDescription:null===(l=e.menuItem)||void 0===l?void 0:l.selectedDescription,containerTypeUrn:null===(c=e.visibilityDataUnion)||void 0===c||null===(u=c.containerVisibility)||void 0===u?void 0:u.containerTypeUrn,showChevron:!(null===(h=e.visibilityDataUnion)||void 0===h||!h.containerVisibility)})}
e.formatStickyVisibilityItemAsShareboxListItem=function(e,t){if(e.containerTypeUrn)return v(e,t)
if(e.type===a.VALID_VISIBILITY_TYPES.ANYONE||e.type===a.VALID_VISIBILITY_TYPES.TWITTER)return E(e,t)
return T(e)}
e.getDashContainersMetadata=function(e){return e.map((e=>e.visibilityDataUnion)).filter((e=>void 0!==e.containerVisibility)).map((e=>{var t,i,n,r,a,o,l,d
return new s.default({containerTypeUrn:null===(t=e.containerVisibility)||void 0===t?void 0:t.containerTypeUrn,header:null===(i=e.containerVisibility)||void 0===i?void 0:i.header,subheader:null===(n=e.containerVisibility)||void 0===n?void 0:n.subheader,retryControlName:null===(r=e.containerVisibility)||void 0===r?void 0:r.retryControlName,saveControlName:null===(a=e.containerVisibility)||void 0===a?void 0:a.saveControlName,backControlName:null===(o=e.containerVisibility)||void 0===o?void 0:o.backControlName,exitControlName:null===(l=e.containerVisibility)||void 0===l?void 0:l.exitControlName,selectionControlName:null===(d=e.containerVisibility)||void 0===d?void 0:d.updateSelectionControlName})}))}
e.getFilteredVisibilityOptions=function(e,t,i){return _(e,t,i)}
e.getOrganizationActorsFromLocalStorage=function(e,t){var i
return null===(i=e.getKeyedObject(o.LOCAL_STORAGE_KEYS.ORGANIZATION_ACTORS,0))||void 0===i?void 0:i.actors.map((e=>new l.default(t.buildModel("com.linkedin.voyager.organization.Company",e))))}
e.getVisibilityOptionFromUpdate=function(e,t,i){var n,r
let a
switch(t?null===(n=e.metadata)||void 0===n?void 0:n.shareAudience:null===(r=e.updateMetadata)||void 0===r?void 0:r.shareAudience){case o.SHARE_AUDIENCE_VISIBILITY.PUBLIC:a=b(i,c.ANYONE_VISIBILITY_CONFIG)
break
case o.SHARE_AUDIENCE_VISIBILITY.CONNECTIONS:a=b(i,c.CONNECTIONS_ONLY_VISIBILITY_CONFIG)
break
case o.SHARE_AUDIENCE_VISIBILITY.GROUP:case o.SHARE_AUDIENCE_VISIBILITY.PUBLIC_GROUP:a=t?m(e):g(e)
break
case o.SHARE_AUDIENCE_VISIBILITY.EMPLOYEES:a=p(i)}return a}
e.isValidPaidEndorsementVisibility=function(e){if(e.type===a.VALID_VISIBILITY_TYPES.ANYONE||e.type===a.VALID_VISIBILITY_TYPES.TWITTER||(e.type===a.VALID_VISIBILITY_TYPES.GROUP||e.type===a.VALID_VISIBILITY_TYPES.CONTAINER)&&!e.isPrivateContainer)return!0
return!1}
e.saveVisibilityAndCommentControlsPayload=function(e,t){t.queryURL("/voyager/api/voyagerContentcreationDashSharebox",{params:{patch:{$set:{visibilities:e}}},method:"POST",reload:!0})}
e.selectVisibilityAndCommentControlsPayload=function(e,t,i){return e.map((e=>{var n,r,a
const o=!!t.containerTypeUrn
if(t.type===(null===(n=e.visibilityDataUnion)||void 0===n?void 0:n.visibilityType)||o&&t.containerTypeUrn===(null===(r=e.visibilityDataUnion)||void 0===r||null===(a=r.containerVisibility)||void 0===a?void 0:a.containerTypeUrn)){e.menuItem.selectedItem=!0
if(t.containerEntity){e.visibilityDataUnion.containerVisibility.container={containerEntity:t.containerEntity,name:t.name,logo:t.logo,visibilityIcon:{attributes:[]},selectedDescription:{}}
t.selectedDescription&&(e.menuItem.selectedDescription=t.selectedDescription)}e.commentControls.map((e=>{i===e.allowedCommentersScope?e.menuItem.selectedItem=!0:e.menuItem.selectedItem=!1
return e}))}else{e.menuItem.selectedItem=!1
e.commentControls.map((e=>{e.menuItem.selectedItem=!1
return e}))}return e}))}
e.shouldResetCommentRestrictionType=function(e,t,i){if((e.type===a.VALID_VISIBILITY_TYPES.CONNECTIONS||e.type===a.VALID_VISIBILITY_TYPES.CONTAINER)&&t.type.includes("ANYONE")&&i===a.VALID_COMMENT_RESTRICTION_TYPES.CONNECTIONS_ONLY)return!0
return!1}
e.updateOrganizationActorsLocalStorage=function(e,i){(0,t.isEmpty)(i)?e.removeItem(o.LOCAL_STORAGE_KEYS.ORGANIZATION_ACTORS):e.setKeyedObjectValue(o.LOCAL_STORAGE_KEYS.ORGANIZATION_ACTORS,0,{actors:i})}
function p(e){const t=e.lookupTranslation("components/sharing-v2@visibility/visibility-manager","i18n_broadcast_visibility_option_name")()
return new d.default({type:a.VALID_VISIBILITY_TYPES.EMPLOYEE_BROADCAST_FEED,name:(0,u.default)(t),logo:n.ImageViewModelCreate.fromVectorImage(void 0,"COMPANY_GHOST"),iconName:"company"})}function g(e){var t,i
const r=null===(t=e.updateMetadata)||void 0===t?void 0:t.miniGroup,s=null===(i=e.updateMetadata)||void 0===i?void 0:i.shareAudience,{groupName:l}=r,c=r.logo,h=r.objectUrn
return new d.default({type:a.VALID_VISIBILITY_TYPES.GROUP,name:(0,u.default)(l),logo:n.ImageViewModelCreate.fromVectorImage(c,"GROUP_GHOST"),iconName:s===o.SHARE_AUDIENCE_VISIBILITY.PUBLIC_GROUP?"globe-americas":"group",containerEntity:h})}function m(e){var t,i,n
const s=null===(t=e.metadata)||void 0===t?void 0:t.group,l=null===(i=e.metadata)||void 0===i?void 0:i.shareAudience,c=r.DashImageViewModelCreate.fromVectorImage(null==s||null===(n=s.logoResolutionResult)||void 0===n?void 0:n.vectorImage,"GROUP")
return new d.default({type:a.VALID_VISIBILITY_TYPES.GROUP,name:(0,u.default)(s.name),logo:c,iconName:l===o.SHARE_AUDIENCE_VISIBILITY.PUBLIC_GROUP?"globe-americas":"group",containerEntity:s.entityUrn})}function b(e,t){const i=e.lookupTranslation("components/sharing-v2@visibility/visibility-manager",t.nameI18nLabelKey)(),n=e.lookupTranslation("components/sharing-v2@visibility/visibility-manager",t.descriptionI18nLabelKey)()
return new d.default({type:t.type,name:(0,u.default)(i),description:(0,u.default)(n),iconName:t.iconName,controlName:t.controlName})}function f(e,t){const i=e.lookupTranslation("components/sharing-v2@visibility/visibility-manager",t.nameI18nLabelKey)(),n=e.lookupTranslation("components/sharing-v2@visibility/visibility-manager",t.descriptionI18nLabelKey)()
return new d.default({type:t.type,name:(0,u.default)(i),description:t.type===a.VALID_VISIBILITY_TYPES.ANYONE?(0,u.default)(n):void 0,iconName:t.iconName,controlName:t.controlName,showChevron:t.showChevron})}function y(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]
return!i.includes(e)&&(!(e in t)||t[e])}function _(e,t,i){return e.filter((e=>y(e.type,t,i)))}function T(e){return new h.default({itemId:e.type,controlName:e.controlName,mainText:e.name,iconType:e.type===a.VALID_VISIBILITY_TYPES.CONTAINER?"group":e.iconName,itemOpensPage:e.showChevron})}function v(e,t){return t.containerTypeUrn===e.containerTypeUrn?new h.default({itemId:t.type,controlName:e.controlName,mainText:e.name,iconType:t.iconName,itemOpensPage:e.showChevron,subtext:t.name}):T(e)}function E(e,t){const i=t.type===e.type&&e.selectedDescription?e.selectedDescription:e.description
return new h.default({itemId:e.type,controlName:e.controlName,mainText:e.name,subtext:i,iconType:e.iconName})}}))
define("sharing-v2/utils/window-helpers",["exports","ember-cloud-filepicker/utils/window-helpers"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
var i={}
Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})
Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(i,n)||n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))}))}))
//# sourceMappingURL=engine.map