1,"\\n"]],[3]]]]]],["@isOpen","@closeModal","modal","@onAddJobPost"],false,["artdeco-modal@artdeco-modal","t","artdeco-empty-state@artdeco-empty-state","artdeco-button@artdeco-button","on"]]',moduleName:"hiring-opportunities/components/empty-state-modal.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(o,(0,n.default)())}))
define("hiring-opportunities/components/hiring-actions-container",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/component","@ember/template-factory","@ember/destroyable","@ember/object","@glimmer/tracking","@ember/service","@glimmer/component","hiring-opportunities/utils/get-detour-manager","job-posting-modal/utils/constants","hiring-opportunities/utils/constants","lego/utils/lego-page-content","hiring-opportunities/utils/data/fetch-lego-data","global-utils/utils/url","job-posting-shared/utils/budget-utils"],(function(e,t,i,n,o,r,a,l,s,c,u,d,p,m,g,h,b,f,y){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var _,T,v,O,k,I,E,P,S,A,C,N,j,w,x,D,M
const R=(0,a.createTemplateFactory)({id:"38G+hzgu",block:'[[[10,0],[12],[1,"\\n"],[41,[28,[37,1],[[30,1],[30,0,["sharePostAction"]]],null],[[[1,"    "],[11,0],[4,[38,2],null,[["pageKey","onRender","routeName","currentRoute"],["flagship3_launchpad_create_post",[30,0,["getJobPostingImpressionEventPayload"]],[28,[37,3],[[53,"outletState"],"render.name"],null],[28,[37,3],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n      "],[8,[39,5],null,[["@disableDetourPreviewRemoval","@initialDetourManager","@isShareboxModalOpen","@onCloseShareboxModal","@onShareSuccess","@shareOrigin"],[true,[30,0,["initialDetourManager"]],[30,0,["isShareboxModalOpen"]],[30,0,["dismissShareBoxModal"]],[30,0,["onSharePost"]],[30,0,["shareOrigin"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[41,[28,[37,6],[[28,[37,1],[[30,1],[30,0,["postJobWithoutJobSelectAction"]]],null],[28,[37,1],[[30,1],[30,0,["postJobAction"]]],null]],null],[[[1,"    "],[8,[39,7],null,[["@isOpen","@onShareJobOnProfile","@shareOrigin","@flowState","@dismissModal","@pageKeyPrefix","@entryPoint","@onClaimJob","@afterCloseModal","@skipClaimConfirmationStep","@hideSuccessToast","@isLaunchpad","@shouldSkipToJobTitle","@hiringActionData"],[[30,0,["isShareJobModalOpen"]],[30,0,["onShareJobOnProfile"]],[30,0,["shareOrigin"]],[28,[37,8],null,[["flow"],[[30,0,["shareJobFlow"]]]]],[30,0,["dismissShareJobModal"]],[30,0,["pageKeyPrefix"]],[30,0,["entryPoint"]],[30,0,["refreshLaunchpad"]],[30,0,["afterCloseShareJobModal"]],true,true,true,[30,0,["shouldSkipToJobTitle"]],[30,2]]],null],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,1],[30,0,["inviteHiringPartnersAction"]]],null],[[[1,"    "],[8,[39,9],null,[["@jobId","@onInvitationSent","@onSkipInvite"],[[30,3],[30,0,["onInvitationSent"]],[30,0,["refreshLaunchpad"]]]],null],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,1],[30,0,["promoteJobAction"]]],null],[[[1,"    "],[11,0],[4,[38,10],null,[["onEnter"],[[30,0,["onPromoteJob"]]]]],[4,[38,2],null,[["onRender","routeName","currentRoute"],[[30,0,["getJobPostingImpressionEventPayload"]],[28,[37,3],[[53,"outletState"],"render.name"],null],[28,[37,3],[[53,"outletState"],"render"],null]]]],[12],[13],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,1],[30,0,["freeTrialAction"]]],null],[[[1,"    "],[11,0],[4,[38,10],null,[["onEnter"],[[30,0,["onFreeTrial"]]]]],[4,[38,2],null,[["onRender","routeName","currentRoute"],[[30,0,["getJobPostingImpressionEventPayload"]],[28,[37,3],[[53,"outletState"],"render.name"],null],[28,[37,3],[[53,"outletState"],"render"],null]]]],[12],[13],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,1],[30,0,["cancelPromoteJobAction"]]],null],[[[1,"    "],[11,0],[4,[38,10],null,[["onEnter"],[[30,0,["showToastMessage"]]]]],[12],[13],[1,"\\n  "]],[]],null]],[]]]],[]]]],[]]]],[]]]],[]]],[13]],["@hiringAction","@hiringActionData","@jobId"],false,["if","global-helpers@eq","ember-cli-pemberly-tracking@track-render","get","-get-dynamic-var","sharing-entry@share-box-modal","global-helpers@or","job-posting-modal@share-job/share-job-modal","hash","hiring-opportunities@invite-connections","ember-scroll-modifiers@did-intersect"]]',moduleName:"hiring-opportunities/components/hiring-actions-container.hbs",isStrictMode:!1})
let L=e.default=(_=(0,u.inject)("i18n"),T=(0,u.inject)("@linkedin/ember-restli-graphql@graphql"),v=(0,u.inject)("authentication@authenticated-user"),O=(0,u.inject)("launchpad-services@launchpad-v2"),k=(0,u.inject)("persistent-toast-manager@persistent-toast-manager"),I=(0,u.inject)("lego@tracking"),E=(0,u.inject)("hiring-service@custom-tracking"),P=class extends d.default{get pageKeyPrefix(){return this.isNBAPostFlow?m.PAGE_KEY_PREFIX.FEED_NBA:m.PAGE_KEY_PREFIX.LAUNCHPAD}get isNBAPostFlow(){return this.args.hiringActionData}get initialDetourManager(){return(0,p.getDashInitialDetourManager)({authenticatedUser:this.authenticatedUser,i18n:this.i18n,shareText:this.i18n.lookupTranslation("components/hiring-opportunities@hiring-actions-container","i18n_share_box_prefill_text")(),graphql:this.graphql})}get moduleKey(){return`${this.pageKeyPrefix}_create_post`}get promoteJobModuleKey(){return`${this.pageKeyPrefix}_promote_job`}get freeTrialModuleKey(){return`${this.pageKeyPrefix}_free_trial`}get entryPoint(){return this.isNBAPostFlow?m.ENTRY_POINT.FEED_CREATE_JOB_NBA:this.args.entryPoint||m.ENTRY_POINT.LAUNCHPAD}get shouldSkipToJobTitle(){return this.args.hiringAction===this.postJobWithoutJobSelectAction}get promoteJobUrl(){const e={jobId:this.args.jobId,cancelUrl:`${(0,f.getDomainUrl)()}/feed/`,jobPostingFlowTrackingId:this.customTracking.getTrackingId(),trk:m.ENTRY_POINT.LAUNCHPAD}
return(0,y.getJobPostingBudgetUrl)(e)}get freeTrialUrl(){const e={jobId:this.args.jobId,cancelUrl:`${(0,f.getDomainUrl)()}/feed/`,jobPostingFlowTrackingId:this.customTracking.getTrackingId(),trk:m.ENTRY_POINT.LAUNCHPAD}
return(0,y.getJobPostingFreeTrialUrl)(e)}constructor(){super(...arguments);(0,t.default)(this,"i18n",S,this);(0,t.default)(this,"graphql",A,this);(0,t.default)(this,"authenticatedUser",C,this);(0,t.default)(this,"launchpadV2",N,this);(0,t.default)(this,"persistentToastManager",j,this);(0,t.default)(this,"legoTracking",w,this);(0,t.default)(this,"customTracking",x,this);(0,t.default)(this,"isShareboxModalOpen",D,this);(0,t.default)(this,"isShareJobModalOpen",M,this);(0,i.default)(this,"shareOrigin","FEED");(0,i.default)(this,"shareJobFlow",m.FLOW_NAME.PROFILE_OPEN_TO_ENROLLMENT);(0,i.default)(this,"sharePostAction",g.HIRING_ACTIONS.SHARE_POST);(0,i.default)(this,"postJobAction",g.HIRING_ACTIONS.POST_JOB);(0,i.default)(this,"postJobWithoutJobSelectAction",g.HIRING_ACTIONS.POST_JOB_WITHOUT_JOB_SELECT);(0,i.default)(this,"inviteHiringPartnersAction",g.HIRING_ACTIONS.INVITE_HIRING_PARTNERS);(0,i.default)(this,"promoteJobAction",g.HIRING_ACTIONS.PROMOTE_JOB);(0,i.default)(this,"freeTrialAction",g.HIRING_ACTIONS.PROMOTE_FREE_TRIAL);(0,i.default)(this,"cancelPromoteJobAction",g.HIRING_ACTIONS.CANCEL_PROMOTE_JOB)
this.customTracking.initTrackingId()
this.customTracking.fireOnlineJobPostingEligibilityEvent()}getJobPostingImpressionEventPayload(){const{moduleKey:e,promoteJobModuleKey:t,entryPoint:i,freeTrialModuleKey:n}=this,{hiringAction:o}=this.args
let r
o===this.sharePostAction?r=e:o===this.promoteJobAction?r=t:o===this.freeTrialAction&&(r=n)
return this.customTracking.getJobPostingImpressionEventPayload({moduleKey:r,entryPoint:i})}refreshLaunchpad(){var e,t
this.args.updateLaunchpad?this.args.updateLaunchpad():this.launchpadV2.getLaunchpadData(this.shareOrigin)
null===(e=(t=this.args).onDismiss)||void 0===e||e.call(t)}onSharePost(){(0,b.getLegoDataByPageKeyAndSlotIdGraphQL)(this.graphql,g.LAUNCHPAD_SHARE_JOB_POST_LEGO_CONFIG.pageKey).then((e=>{if(!(0,l.isDestroying)(this)&&e){const t=e.elements[0]??{},i=(0,h.getWidgetFromDataGraphQL)(t,g.LAUNCHPAD_SHARE_JOB_POST_LEGO_CONFIG.slotId,g.LAUNCHPAD_SHARE_JOB_POST_LEGO_CONFIG.groupId,g.LAUNCHPAD_SHARE_JOB_POST_LEGO_CONFIG.widgetId)
i?this.legoTracking.sendLegoAction(i.trackingToken,this.legoTracking.LEGO_ACTION_PRIMARY,1).then((()=>{(0,l.isDestroying)(this)||this.refreshLaunchpad()})):this.refreshLaunchpad()}}))}onShareJobOnProfile(e,t,i){if(i!==m.JOB_STATES.REVIEW)if(e){const e=this.i18n.lookupTranslation("components/hiring-opportunities@hiring-actions-container","i18n_job_added_to_profile")(),t=this.i18n.lookupTranslation("components/hiring-opportunities@hiring-actions-container","i18n_go_to_profile")(),i=(0,s.get)(this,"authenticatedUser.miniProfile.publicIdentifier")
this.persistentToastManager.success({message:e,ctaText:t,ctaUrl:`/in/${i}`})
this.refreshLaunchpad()}else if(t){const e=this.i18n.lookupTranslation("components/hiring-opportunities@hiring-actions-container","i18n_job_post_active")(),i=this.i18n.lookupTranslation("components/hiring-opportunities@hiring-actions-container","i18n_manage_job_post")()
this.persistentToastManager.success({message:e,ctaText:i,ctaUrl:`/hiring/jobs/${t}/detail/`})
this.isNBAPostFlow||this.refreshLaunchpad()}}afterCloseShareJobModal(e){const t=null==e?void 0:e.jobsList
if(t&&t.length>0&&t[0].jobState===m.JOB_STATES.REVIEW){const{jobId:e}=t[0],i=this.i18n.lookupTranslation("components/hiring-opportunities@hiring-actions-container","i18n_view_job_in_review")(),n=this.i18n.lookupTranslation("components/hiring-opportunities@hiring-actions-container","i18n_manage_job_post")()
this.refreshLaunchpad()
this.persistentToastManager.success({message:i,ctaText:n,ctaUrl:`/hiring/jobs/${e}/detail/`})}}onInvitationSent(){const e=this.i18n.lookupTranslation("components/hiring-opportunities@hiring-actions-container","i18n_invite_more_coworkers")(),t=this.i18n.lookupTranslation("components/hiring-opportunities@hiring-actions-container","i18n_go_to_profile")(),i=(0,s.get)(this,"authenticatedUser.miniProfile.publicIdentifier")
this.persistentToastManager.success({message:e,ctaText:t,ctaUrl:`/in/${i}`})
this.refreshLaunchpad()}dismissShareJobModal(){var e,t
this.isShareJobModalOpen=!1
null===(e=(t=this.args).onDismiss)||void 0===e||e.call(t)}dismissShareBoxModal(){var e,t
this.isShareboxModalOpen=!1
null===(e=(t=this.args).onDismiss)||void 0===e||e.call(t)}showToastMessage(){const e=this.i18n.lookupTranslation("components/hiring-opportunities@hiring-actions-container","i18n_manage_job_post")()
let t
this.args.hiringAction===g.HIRING_ACTIONS.PROMOTE_JOB?t="i18n_job_post_promoted":this.args.hiringAction===g.HIRING_ACTIONS.PROMOTE_FREE_TRIAL?t="i18n_start_free_trial":this.args.hiringAction===g.HIRING_ACTIONS.CANCEL_PROMOTE_JOB&&(t="i18n_job_post_free")
const i=this.i18n.lookupTranslation("components/hiring-opportunities@hiring-actions-container",t)()
this.persistentToastManager.success({message:i,ctaText:e,ctaUrl:`/hiring/jobs/${this.args.jobId}/detail/`})
this.refreshLaunchpad()}onPromoteJob(){jSecure.redirect(this.promoteJobUrl)}onFreeTrial(){jSecure.redirect(this.freeTrialUrl)}},S=(0,n.default)(P.prototype,"i18n",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,n.default)(P.prototype,"graphql",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,n.default)(P.prototype,"authenticatedUser",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,n.default)(P.prototype,"launchpadV2",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,n.default)(P.prototype,"persistentToastManager",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,n.default)(P.prototype,"legoTracking",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,n.default)(P.prototype,"customTracking",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,n.default)(P.prototype,"isShareboxModalOpen",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),M=(0,n.default)(P.prototype,"isShareJobModalOpen",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),(0,n.default)(P.prototype,"getJobPostingImpressionEventPayload",[s.action],Object.getOwnPropertyDescriptor(P.prototype,"getJobPostingImpressionEventPayload"),P.prototype),(0,n.default)(P.prototype,"refreshLaunchpad",[s.action],Object.getOwnPropertyDescriptor(P.prototype,"refreshLaunchpad"),P.prototype),(0,n.default)(P.prototype,"onSharePost",[s.action],Object.getOwnPropertyDescriptor(P.prototype,"onSharePost"),P.prototype),(0,n.default)(P.prototype,"onShareJobOnProfile",[s.action],Object.getOwnPropertyDescriptor(P.prototype,"onShareJobOnProfile"),P.prototype),(0,n.default)(P.prototype,"afterCloseShareJobModal",[s.action],Object.getOwnPropertyDescriptor(P.prototype,"afterCloseShareJobModal"),P.prototype),(0,n.default)(P.prototype,"onInvitationSent",[s.action],Object.getOwnPropertyDescriptor(P.prototype,"onInvitationSent"),P.prototype),(0,n.default)(P.prototype,"dismissShareJobModal",[s.action],Object.getOwnPropertyDescriptor(P.prototype,"dismissShareJobModal"),P.prototype),(0,n.default)(P.prototype,"dismissShareBoxModal",[s.action],Object.getOwnPropertyDescriptor(P.prototype,"dismissShareBoxModal"),P.prototype),(0,n.default)(P.prototype,"showToastMessage",[s.action],Object.getOwnPropertyDescriptor(P.prototype,"showToastMessage"),P.prototype),(0,n.default)(P.prototype,"onPromoteJob",[s.action],Object.getOwnPropertyDescriptor(P.prototype,"onPromoteJob"),P.prototype),(0,n.default)(P.prototype,"onFreeTrial",[s.action],Object.getOwnPropertyDescriptor(P.prototype,"onFreeTrial"),P.prototype),P);(0,r.setComponentTemplate)(R,L)}))
define("hiring-opportunities/components/hiring-partner-tooltip",["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 o=(0,i.createTemplateFactory)({id:"kdKIPUhb",block:'[[[1,"\\n"],[10,0],[14,0,"pb3 ph5"],[12],[1,"\\n  "],[10,1],[14,0,"t-14 t-black--light"],[12],[1,[28,[35,0],["i18n_desc","hiring-opportunities/components/hiring-partner-tooltip"],null]],[13],[1,"\\n  "],[8,[39,1],null,[["@on","@placement"],["click","bottom"]],[["default"],[[[[1,"\\n    "],[11,"button"],[16,"aria-controls",[30,1,["ariaId"]]],[16,"aria-expanded",[30,1,["ariaExpanded"]]],[24,0,"v-align-middle t-black--light"],[24,4,"button"],[4,[38,2],["view_hiring_partner_tooltip"],null],[12],[1,"\\n      "],[8,[39,3],null,[["@a11yText","@name","@type","@size"],[[28,[37,0],["i18n_learn_more","hiring-opportunities/components/hiring-partner-tooltip"],null],"question","system","small"]],null],[1,"\\n    "],[13],[1,"\\n    "],[8,[30,1,["artdeco-hoverable-content"]],null,[["@theme","@contentClass"],["inverse","hiring-opportunities-hiring-partner-tooltip__content"]],[["default"],[[[[1,"\\n      "],[10,2],[14,0,"p1"],[12],[1,"\\n        "],[1,[28,[35,0],["i18n_tooltip_more","hiring-opportunities/components/hiring-partner-tooltip"],[["memberName"],[[30,2]]]]],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[1]]]]],[1,"\\n"],[13]],["trigger","@memberName"],false,["t","artdeco-hoverables@artdeco-hoverable-trigger","ember-cli-pemberly-tracking@track-interaction","hue-web-icons@icon"]]',moduleName:"hiring-opportunities/components/hiring-partner-tooltip.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(o,(0,n.default)())}))
define("hiring-opportunities/components/invite-connections",["exports","@ember/component","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@glimmer/component","@ember/service","hiring-opportunities/utils/job-posting-eligibilities-fetcher","tracked-built-ins","@ember/object","@glimmer/tracking","ember-lifeline","global-helpers/helpers/load","global-utils/utils/urn-converter","profile-opportunities-shared/utils/build-confirmation-modal-config","hiring-opportunities/utils/constants","hiring-service/utils/constants","hiring-opportunities/utils/fetch-hiring-partners","hiring-opportunities/utils/invite-hiring-partners","rsvp"],(function(e,t,i,n,o,r,a,l,s,c,u,d,p,m,g,h,b,f,y,_,T,v){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var O,k,I,E,P,S,A,C,N,j,w,x,D,M,R,L,z,U,F,B,J,H,V,G,W,q,K,Y,Q,$,X,Z,ee,te,ie,ne,oe,re,ae
const le=(0,a.createTemplateFactory)({id:"Fip1/izi",block:'[[[8,[39,0],[[4,[38,3],[[30,0,["onInfiniteScroll"]]],null]],[["@hasFooter","@headerClasses","@contentClasses","@isMediumSizeModal","@isConfirmationDialogOpen","@setIsConfirmationDialogOpen","@confirmationDialogTitle","@confirmationDialogContent","@confirmationDialogPrimaryActionText","@confirmationDialogSecondaryActionText","@confirmationDialogPrimaryAction","@confirmationDialogSecondaryAction","@onDismiss"],[true,"bb0 mb2","hiring-opportunities-invite-connections__content",true,[30,0,["isConfirmationDialogOpen"]],[28,[37,1],[[30,0],"isConfirmationDialogOpen"],null],[30,0,["confirmationModal","confirmationDialogTitle"]],[30,0,["confirmationModal","confirmationDialogContent"]],[30,0,["confirmationModal","confirmationDialogPrimaryActionText"]],[30,0,["confirmationModal","confirmationDialogSecondaryActionText"]],[30,0,["confirmationModal","confirmationDialogPrimaryAction"]],[28,[37,2],[[30,0,["onToggleConfirmationDialog"]],false],null],[30,0,["onDismiss"]]]],[["default"],[[[[1,"\\n  "],[8,[30,1,["header"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h2"],[14,1,"hiring-opportunities-invite-connections-header-view"],[14,0,"a11y-text"],[12],[1,"\\n      "],[1,[28,[35,4],["i18n_invite_connections_header","hiring-opportunities/components/invite-connections"],null]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["content"]],null,null,[["default"],[[[[1,"\\n"],[41,[30,0,["isFetchingLegoAndEligibilityData"]],[[[1,"      "],[8,[39,6],null,[["@size"],["small"]],null],[1,"\\n"]],[]],[[[41,[30,0,["reachedInviteLimit"]],[[[1,"        "],[8,[39,7],[[4,[38,8],null,[["pageKey","routeName","currentRoute"],["flagship3_open_to_hiring_invite_selection_reached_invite_limit",[28,[37,9],[[53,"outletState"],"render.name"],null],[28,[37,9],[[53,"outletState"],"render"],null]]]]],[["@class","@headline","@message","@illustration"],["pv4",[28,[37,4],["i18n_reached_invite_limit_message","hiring-opportunities/components/invite-connections"],null],[28,[37,4],["i18n_reached_invite_limit_wait_message","hiring-opportunities/components/invite-connections"],null],"error-crossing"]],null],[1,"\\n"]],[]],[[[41,[30,0,["isInitiallyLoaded"]],[[[41,[30,0,["showInitialLoadState"]],[[[1,"            "],[8,[39,11],null,[["@loadState","@onReload"],[[30,0,["initialLoadState"]],[30,0,["onReload"]]]],null],[1,"\\n"]],[]],[[[1,"            "],[10,"h3"],[14,"aria-hidden","true"],[14,0,"t-20 t-normal pb2 ph5"],[12],[1,"\\n              "],[1,[28,[35,4],["i18n_invite_connections_header","hiring-opportunities/components/invite-connections"],null]],[1,"\\n            "],[13],[1,"\\n            "],[8,[39,12],null,[["@memberName"],[[28,[37,13],null,[["firstName","lastName"],[[30,0,["miniProfile","firstName"]],[30,0,["miniProfile","lastName"]]]]]]],null],[1,"\\n            "],[8,[39,14],null,null,[["default"],[[[[1,"\\n              "],[10,0],[14,0,"hiring-opportunities-invite-connections__interactive-header--sticky"],[12],[1,"\\n                "],[8,[39,15],null,[["@connections","@toggleMember"],[[30,0,["selectedConnections"]],[30,0,["toggleMember"]]]],null],[1,"\\n                "],[10,0],[14,0,"relative"],[12],[1,"\\n                  "],[8,[30,2,["typeahead-input"]],[[24,0,"mh5"]],[["@inputId","@placeholder","@value","@onInput","@onFocus","@className"],["hiring-opportunities-invite-connections-input",[28,[37,4],["i18n_search","hiring-opportunities/components/invite-connections"],null],[30,0,["typeaheadValue"]],[30,0,["onTypeaheadInput"]],[30,0,["fireTrackingOnFocus"]],"hiring-opportunities-invite-connections__typeahead-input"]],null],[1,"\\n                  "],[8,[39,16],[[24,0,"hiring-opportunities-invite-connections__search-icon"]],[["@name","@type","@size"],["search","system","medium"]],null],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n              "],[8,[39,17],null,[["@isDisabled","@items","@onTrigger"],[[28,[37,18],[[30,0,["canInfiniteScroll"]]],null],[30,0,["filteredResults"]],[30,0,["onInfiniteScroll"]]]],[["empty","loader","content"],[[[[1,"\\n                  "],[8,[39,11],null,[["@loadState"],[[30,0,["typeaheadLoadState"]]]],null],[1,"\\n                "]],[]],[[[1,"\\n                  "],[8,[39,6],[[24,0,"display-flex mhA mv5"]],[["@size"],["small"]],null],[1,"\\n                "]],[]],[[[1,"\\n"],[41,[30,0,["typeaheadLoadState","isLoading"]],[[[1,"                    "],[8,[39,6],[[24,0,"display-flex mhA mv5"]],[["@size"],["small"]],null],[1,"\\n"]],[]],[[[41,[30,0,["showTypeaheadLoadState"]],[[[1,"                    "],[8,[39,11],null,[["@loadState"],[[30,0,["typeaheadLoadState"]]]],null],[1,"\\n"]],[]],[[[1,"                    "],[8,[30,2,["typeahead-results-list"]],[[24,0,"list-style-none"],[24,"role","list"]],[["@ariaLabel"],[[28,[37,4],["i18n_search_results","hiring-opportunities/components/invite-connections"],null]]],[["default"],[[[[1,"\\n"],[42,[28,[37,20],[[28,[37,20],[[30,4]],null]],null],"entityUrn",[[[1,"                        "],[10,"li"],[14,0,"hiring-opportunities-invite-connections__typeahead-list-item"],[12],[1,"\\n                          "],[8,[30,3],null,[["@index"],[[30,6]]],[["default"],[[[[1,"\\n                            "],[8,[39,21],null,[["@entityUrn","@reachedLimit","@isChecked","@eligibleForInvitation","@ineligibleReason","@title","@headline","@image","@toggleMember"],[[30,5,["profile","entityUrn"]],[30,0,["reachedSelectionLimit"]],[30,5,["isChecked"]],[30,5,["eligibleForInvitation"]],[30,5,["localizedIneligibleReasonText"]],[28,[37,4],["i18n_member_full_name","hiring-opportunities/components/invite-connections"],[["memberName"],[[28,[37,22],[[30,5,["profile"]]],null]]]],[30,5,["profile","headline"]],[30,5,["profile","profilePicture"]],[28,[37,2],[[30,0,["toggleMember"]],[30,5]],null]]],null],[1,"\\n                          "]],[]]]]],[1,"\\n                        "],[13],[1,"\\n"]],[5,6]],null],[1,"                    "]],[]]]]],[1,"\\n                  "]],[]]]],[]]],[1,"                "]],[3,4]]]]],[1,"\\n            "]],[2]]]]],[1,"\\n"]],[]]]],[]],null]],[]]]],[]]],[1,"  "]],[]]]]],[1,"\\n  "],[8,[30,1,["footer"]],null,null,[["default"],[[[[1,"\\n"],[41,[30,0,["reachedSelectionLimit"]],[[[1,"      "],[11,0],[24,"aria-live","polite"],[24,0,"t-14 t-black--light display-flex align-items-center"],[4,[38,8],null,[["onRender","routeName","currentRoute"],[[30,0,["getImpressionEvent"]],[28,[37,9],[[53,"outletState"],"render.name"],null],[28,[37,9],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n        "],[8,[39,16],[[24,0,"hiring-opportunities-invite-connections__signal-notice-icon"]],[["@name","@type","@size"],["signal-notice","system","small"]],null],[1,"\\n        "],[1,[28,[35,4],["i18n_reached_selection_limit","hiring-opportunities/components/invite-connections"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[30,0,["hasInviteError"]],[[[1,"      "],[8,[39,23],null,[["@type","@message"],["error",[28,[37,4],["i18n_error_message","hiring-opportunities/components/invite-connections"],null]]],null],[1,"\\n"]],[]],null],[41,[51,[30,0,["isFetchingLegoAndEligibilityData"]]],[[[41,[30,0,["showDoneButton"]],[[[1,"        "],[8,[39,25],[[24,0,"fr"],[4,[38,26],["click",[30,0,["onSkip"]]],null]],[["@controlType","@type","@size","@text"],["button","primary",2,[28,[37,4],["i18n_done","hiring-opportunities/components/invite-connections"],null]]],null],[1,"\\n"]],[]],[[[41,[30,0,["showSkipButton"]],[[[1,"        "],[8,[39,25],[[24,0,"fr"],[4,[38,26],["click",[30,0,["onSkip"]]],null]],[["@controlType","@type","@size","@text"],["button","primary",2,[28,[37,4],["i18n_skip","hiring-opportunities/components/invite-connections"],null]]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,25],[[24,0,"fr"],[4,[38,26],["click",[30,0,["onInvite"]]],null],[4,[38,27],["invite_connections"],null]],[["@controlType","@type","@size","@text","@disabled"],["button","primary",2,[28,[37,4],["i18n_invite","hiring-opportunities/components/invite-connections"],null],[30,0,["shouldDisableInviteButton"]]]],null],[1,"\\n      "]],[]]]],[]]]],[]],null],[1,"  "]],[]]]]],[1,"\\n"]],[1]]]]]],["layout","typeahead","ItemContainer","connections","connection","index"],false,["profile-opportunities-shared@open-to-layout","ember-set-helper@set","fn","did-insert","t","if","artdeco-loader@artdeco-loader","artdeco-empty-state@artdeco-empty-state","ember-cli-pemberly-tracking@track-render","get","-get-dynamic-var","hiring-opportunities@connections-load-state","hiring-opportunities@hiring-partner-tooltip","ember-cli-pemberly-i18n@format-name","ember-cli-artdeco-typeahead@artdeco-typeahead","hiring-opportunities@selected-connections","hue-web-icons@icon","scaffold-finite-scroll@finite-scroll","global-helpers@not","each","-track-array","hiring-opportunities@connection-card","global-helpers@name","artdeco-inline-feedback@artdeco-inline-feedback","unless","artdeco-button@artdeco-button","on","ember-cli-pemberly-tracking@track-interaction"]]',moduleName:"hiring-opportunities/components/invite-connections.hbs",isStrictMode:!1})
let se=(O=class{constructor(e){let{isLoading:t,hasError:n,isEmpty:o}=e;(0,i.default)(this,"isLoading",k,this);(0,i.default)(this,"hasError",I,this);(0,i.default)(this,"isEmpty",E,this)
this.isLoading=t
this.hasError=n
this.isEmpty=o}showEmptyState(){return this.hasError||this.isEmpty}reset(){this.hasError=!1
this.isEmpty=!1
this.isLoading=!1}},k=(0,o.default)(O.prototype,"isLoading",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,o.default)(O.prototype,"hasError",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,o.default)(O.prototype,"isEmpty",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O)
class ce{constructor(e){(0,n.default)(this,"profile",void 0);(0,n.default)(this,"isChecked",!0)
this.profile=e}}let ue=e.default=(P=(0,s.inject)("global-services@store-shim"),S=(0,s.inject)("@linkedin/ember-restli-graphql@graphql"),A=(0,s.inject)("lego@resolver"),C=(0,s.inject)("jet"),N=(0,s.inject)("tracking"),j=(0,s.inject)("lego@tracking"),w=(0,s.inject)("i18n"),x=(0,s.inject)("persistent-toast-manager@persistent-toast-manager"),D=(0,s.inject)("authentication@authenticated-user"),M=(0,s.inject)("hiring-service@custom-tracking"),R=class extends l.default{get miniProfile(){return this.authenticatedUser.miniProfile}constructor(){super(...arguments);(0,i.default)(this,"storeShim",L,this);(0,i.default)(this,"graphql",z,this);(0,i.default)(this,"legoResolver",U,this);(0,i.default)(this,"jet",F,this);(0,i.default)(this,"tracking",B,this);(0,i.default)(this,"legoTracking",J,this);(0,i.default)(this,"i18n",H,this);(0,i.default)(this,"persistentToastManager",V,this);(0,i.default)(this,"authenticatedUser",G,this);(0,i.default)(this,"customTracking",W,this);(0,i.default)(this,"jobEligibility",q,this);(0,i.default)(this,"legoData",K,this);(0,i.default)(this,"isFetchingLegoAndEligibilityData",Y,this);(0,i.default)(this,"isConfirmationDialogOpen",Q,this);(0,i.default)(this,"isInitiallyLoaded",$,this);(0,i.default)(this,"inviteHiringPartnersAsyncData",X,this);(0,i.default)(this,"typeaheadResults",Z,this);(0,i.default)(this,"typeaheadPaging",ee,this);(0,i.default)(this,"typeaheadValue",te,this);(0,i.default)(this,"initialLoadState",ie,this);(0,i.default)(this,"typeaheadLoadState",ne,this);(0,i.default)(this,"currentStart",oe,this);(0,i.default)(this,"selectedConnectionsMap",re,this);(0,i.default)(this,"hasInviteError",ae,this);(0,n.default)(this,"impressionEvent",{name:"ViewModuleImpressionEvent",body:{moduleNames:["reached_selection_limit"]}})
const e=[this.legoResolver.fireLegoCall(f.INVITE_HIRING_PARTNERS_LEGO_CONFIG,!1,!0),(0,c.fetchJobPostingEligibilities)(this.storeShim,this.graphql,!0)]
v.Promise.all(e).then((e=>{let[t,i]=e
if(!this.isDestroying){this.legoData=t
this.jobEligibility=i}})).catch((e=>{if(!this.isDestroying){this.hasInviteError=!0
throw e}})).finally((()=>{this.isDestroying||(this.isFetchingLegoAndEligibilityData=!1)}))
this.confirmationModal=(0,b.buildConfirmationModalConfig)({i18n:this.i18n,confirmationDialogTitleKey:"discard_invite_connections_modal_title",confirmationDialogContentKey:"discard_invite_connections_modal_content",confirmationDialogPrimaryActionTextKey:"discard_invite_connections_modal_modal_primary_action",confirmationDialogPrimaryAction:this.onExitConfirmDialog.bind(this),confirmationDialogSecondaryActionTextKey:"discard_invite_connections_modal_modal_secondary_action",confirmationDialogSecondaryAction:this.onToggleConfirmationDialog.bind(this),isConfirmationDialogOpen:this.isConfirmationDialogOpen})}get jobPostingUrn(){return(0,h.toUrn)("jobs/dash-jobPosting",this.args.jobId)}get canInfiniteScroll(){return!this.isInitiallyLoaded||this.typeaheadResults.length<(0,d.get)(this.typeaheadPaging,"total")}get reachedSelectionLimit(){return!this.isFetchingLegoAndEligibilityData&&this.selectedConnections.length>=(0,d.get)(this,"jobEligibility.hiringPartnersInvitationLimit")}get reachedInviteLimit(){return!this.isFetchingLegoAndEligibilityData&&!this.legoData}get showTypeaheadLoadState(){return this.typeaheadLoadState.showEmptyState()}get showInitialLoadState(){return this.initialLoadState.showEmptyState()}get canSkip(){return!this.isInitiallyLoaded||this.initialLoadState.showEmptyState()}get showSkipButton(){var e
return this.canSkip&&(null===(e=this.args.nextBestActionManager)||void 0===e?void 0:e.hasNext)}get showDoneButton(){var e
return this.canSkip&&!(null!==(e=this.args.nextBestActionManager)&&void 0!==e&&e.hasNext)||this.reachedInviteLimit}get selectedConnections(){return Array.from(this.selectedConnectionsMap.values())}get filteredResults(){return this.typeaheadResults.map((e=>{const t=(0,d.get)(e,"profile.entityUrn")
return{isChecked:this.selectedConnectionsMap.has(t),profile:(0,d.get)(e,"profile"),eligibleForInvitation:(0,d.get)(e,"eligibleForInvitation"),localizedIneligibleReasonText:(0,d.get)(e,"localizedIneligibleReasonText")}}))}get shouldDisableInviteButton(){var e
return!this.selectedConnections.length||(null===(e=this.inviteHiringPartnersAsyncData)||void 0===e?void 0:e.isLoading)}get shouldShowConfirmationOnDismiss(){return!(this.isInitiallyLoaded&&this.initialLoadState.showEmptyState()||this.reachedInviteLimit)}onToggleConfirmationDialog(e){const t=e?"open_confirmation":"dismiss_confirmation"
this.tracking.fireInteractionEvent(t)
this.isConfirmationDialogOpen=e}onReload(){this.tracking.fireInteractionEvent("reload")
this.isInitiallyLoaded=!1
this.initialLoadState.reset()
this._fetchTypeaheadResults()}onDismiss(){this.shouldShowConfirmationOnDismiss?this.onToggleConfirmationDialog(!0):this.onSkip()}toggleMember(e){const t=(0,d.get)(e,"profile.entityUrn")
if(e.isChecked){this.tracking.fireInteractionEvent("unselect_member")
this.selectedConnectionsMap.delete(t)}else{this.tracking.fireInteractionEvent("select_member")
const i=new ce((0,d.get)(e,"profile"))
this.selectedConnectionsMap.set(t,i)}}fireTrackingOnFocus(){this.tracking.fireInteractionEvent("search_connections")}onTypeaheadInput(e){let{target:{value:t}}=e
this.typeaheadLoadState.isLoading=!0
this.typeaheadLoadState.hasError=!1
this.typeaheadValue=t
this.currentStart=0;(0,m.debounceTask)(this,"_fetchTypeaheadResults",300)}onInfiniteScroll(){return this._fetchTypeaheadResults(this.currentStart)}onInvite(){const e=this.selectedConnections.map((e=>(0,d.get)(e,"profile.entityUrn")))
this.inviteHiringPartnersAsyncData=(0,g.load)((0,T.default)({jet:this.jet,store:this.storeShim,jobPosting:this.jobPostingUrn,hiringPartnerProfiles:e})).then((()=>{var e,t
if(this.isDestroying)return
this.customTracking.fireJobPostingPosterActionEvent({jobPostingUrn:this.jobPostingUrn,actionType:y.JOB_POSTING_POSTER_ACTION_TYPE.JOB_INVITED_TO_SHARE})
null===(e=(t=this.args).onInvitationSent)||void 0===e||e.call(t)
this._fireLegoActionTracking()
const{nextBestActionManager:i}=this.args
null!=i&&i.destinationRoute&&this.showSuccessToast()
this._resetLoadStates()})).catch((e=>{if(!this.isDestroying){this.hasInviteError=!0
throw e}}))}onSkip(){var e,t
const{nextBestActionManager:i}=this.args
null!=i&&i.hasNext?this.tracking.fireInteractionEvent("skip"):null!=i&&i.destinationRoute&&this.tracking.fireInteractionEvent("dismiss")
null===(e=(t=this.args).onSkipInvite)||void 0===e||e.call(t)
this._resetLoadStates()}getImpressionEvent(){return this.impressionEvent}onExitConfirmDialog(){this.isConfirmationDialogOpen=!1
this.onSkip()}_fetchTypeaheadResults(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0
return(0,_.fetchJobHiringPartnersUsingGraphQL)({jet:this.jet,graphql:this.graphql,keyword:this.typeaheadValue,start:e,jobPosting:this.jobPostingUrn}).then((t=>{var i,n
if(this.isDestroying)return
this.currentStart=e+f.JOB_HIRING_PARTNERS_COUNT
this.typeaheadPaging=null===(i=t.data.hiringDashJobHiringPartnersByJobPosting)||void 0===i?void 0:i.paging
const o=null===(n=t.data.hiringDashJobHiringPartnersByJobPosting)||void 0===n?void 0:n.elements
this.typeaheadResults=e?[...this.typeaheadResults,...o]:o
const r=0===this.typeaheadResults.length
this.isInitiallyLoaded?this.typeaheadLoadState.isEmpty=r:this.initialLoadState.isEmpty=r})).catch((t=>{if(!this.isDestroying){this.isInitiallyLoaded?0===e&&(this.typeaheadLoadState.hasError=!0):this.initialLoadState.hasError=!0
throw t}})).finally((()=>{if(!this.isDestroying){this.isInitiallyLoaded||(this.isInitiallyLoaded=!0)
this.typeaheadLoadState.isLoading=!1}}))}_fireLegoActionTracking(){var e
const t=null==this||null===(e=this.legoData)||void 0===e?void 0:e.trackingToken
t&&this.legoTracking.sendLegoAction(t,this.legoTracking.LEGO_ACTION_PRIMARY,1)}showSuccessToast(){const e=this.i18n.lookupTranslation("components/hiring-opportunities@invite-connections","i18n_notify_success_toast")()
this.persistentToastManager.success({message:e})}_resetLoadStates(){this.initialLoadState.reset()
this.typeaheadLoadState.reset()}},L=(0,o.default)(R.prototype,"storeShim",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,o.default)(R.prototype,"graphql",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,o.default)(R.prototype,"legoResolver",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,o.default)(R.prototype,"jet",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,o.default)(R.prototype,"tracking",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J=(0,o.default)(R.prototype,"legoTracking",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=(0,o.default)(R.prototype,"i18n",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,o.default)(R.prototype,"persistentToastManager",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=(0,o.default)(R.prototype,"authenticatedUser",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W=(0,o.default)(R.prototype,"customTracking",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=(0,o.default)(R.prototype,"jobEligibility",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),K=(0,o.default)(R.prototype,"legoData",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Y=(0,o.default)(R.prototype,"isFetchingLegoAndEligibilityData",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Q=(0,o.default)(R.prototype,"isConfirmationDialogOpen",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),$=(0,o.default)(R.prototype,"isInitiallyLoaded",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),X=(0,o.default)(R.prototype,"inviteHiringPartnersAsyncData",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=(0,o.default)(R.prototype,"typeaheadResults",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ee=(0,o.default)(R.prototype,"typeaheadPaging",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),te=(0,o.default)(R.prototype,"typeaheadValue",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ie=(0,o.default)(R.prototype,"initialLoadState",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new se({hasError:!1,isEmpty:!1})}}),ne=(0,o.default)(R.prototype,"typeaheadLoadState",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new se({isLoading:!1,hasError:!1,isEmpty:!1})}}),oe=(0,o.default)(R.prototype,"currentStart",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),re=(0,o.default)(R.prototype,"selectedConnectionsMap",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new u.TrackedMap}}),ae=(0,o.default)(R.prototype,"hasInviteError",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,o.default)(R.prototype,"onToggleConfirmationDialog",[d.action],Object.getOwnPropertyDescriptor(R.prototype,"onToggleConfirmationDialog"),R.prototype),(0,o.default)(R.prototype,"onReload",[d.action],Object.getOwnPropertyDescriptor(R.prototype,"onReload"),R.prototype),(0,o.default)(R.prototype,"onDismiss",[d.action],Object.getOwnPropertyDescriptor(R.prototype,"onDismiss"),R.prototype),(0,o.default)(R.prototype,"toggleMember",[d.action],Object.getOwnPropertyDescriptor(R.prototype,"toggleMember"),R.prototype),(0,o.default)(R.prototype,"fireTrackingOnFocus",[d.action],Object.getOwnPropertyDescriptor(R.prototype,"fireTrackingOnFocus"),R.prototype),(0,o.default)(R.prototype,"onTypeaheadInput",[d.action],Object.getOwnPropertyDescriptor(R.prototype,"onTypeaheadInput"),R.prototype),(0,o.default)(R.prototype,"onInfiniteScroll",[d.action],Object.getOwnPropertyDescriptor(R.prototype,"onInfiniteScroll"),R.prototype),(0,o.default)(R.prototype,"onInvite",[d.action],Object.getOwnPropertyDescriptor(R.prototype,"onInvite"),R.prototype),(0,o.default)(R.prototype,"onSkip",[d.action],Object.getOwnPropertyDescriptor(R.prototype,"onSkip"),R.prototype),(0,o.default)(R.prototype,"getImpressionEvent",[d.action],Object.getOwnPropertyDescriptor(R.prototype,"getImpressionEvent"),R.prototype),R);(0,t.setComponentTemplate)(le,ue)}))
define("hiring-opportunities/components/job-actions-dropdown",["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","job-posting-modal/utils/share-job-manager","global-utils/utils/api-compat","hiring-opportunities/utils/next-best-action-manager","job-posting-shared/utils/job-posting-model-utils"],(function(e,t,i,n,o,r,a,l,s,c,u,d,p,m,g){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var h,b,f
const y=(0,a.createTemplateFactory)({id:"EMc+z9ZB",block:'[[[8,[39,0],null,[["@justification","@isOpen","@onVisibilityChange"],["right",[30,0,["isDropdownOpen"]],[28,[37,1],[[30,0],"isDropdownOpen"],null]]],[["default"],[[[[1,"\\n  "],[8,[30,1,["dropdown-trigger"]],[[4,[38,2],["overflow"],null]],[["@withIcon","@class"],[false,"mr2 mt5 artdeco-button artdeco-button--tertiary artdeco-button--muted artdeco-button--1 artdeco-button--circle"]],[["default"],[[[[1,"\\n    "],[10,1],[14,0,"a11y-text"],[12],[1,"\\n      "],[1,[28,[35,3],["i18n_job_post_actions","hiring-opportunities/components/job-actions-dropdown"],null]],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,4],null,[["@type","@size","@name"],["system","medium","overflow-web-ios"]],null],[1,"\\n  "]],[]]]]],[1,"\\n\\n  "],[8,[30,1,["dropdown-content"]],null,[["@class"],["hiring-opportunities-job-actions-dropdown__content"]],[["default"],[[[[1,"\\n"],[41,[30,0,["isJobOwner"]],[[[1,"      "],[8,[39,6],[[24,"role","button"],[4,[38,2],["manage_job_post"],null]],[["@classNames","@itemSelected","@aria-label"],["display-flex align-items-center",[30,0,["transitionToManageJobRoute"]],[28,[37,3],["i18n_manage_job_post_a11y","hiring-opportunities/components/job-actions-dropdown"],[["jobTitle"],[[30,0,["jobTitle"]]]]]]],[["default"],[[[[1,"\\n        "],[8,[39,4],[[24,0,"hiring-opportunities-job-actions-dropdown__content-icon"]],[["@name","@type","@size"],["job","system","medium"]],null],[1,"\\n        "],[1,[28,[35,3],["i18n_manage_job_post","hiring-opportunities/components/job-actions-dropdown"],null]],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],[[[1,"      "],[8,[39,6],[[24,"role","button"],[4,[38,2],["remove_job_post"],null]],[["@classNames","@itemSelected","@aria-label"],["display-flex align-items-center",[30,2],[28,[37,3],["i18n_remove_from_profile_a11y","hiring-opportunities/components/job-actions-dropdown"],[["jobTitle"],[[30,0,["jobTitle"]]]]]]],[["default"],[[[[1,"\\n        "],[8,[39,4],[[24,0,"hiring-opportunities-job-actions-dropdown__content-icon"]],[["@name","@type","@size"],["close","system","medium"]],null],[1,"\\n        "],[1,[28,[35,3],["i18n_delete_job_post","hiring-opportunities/components/job-actions-dropdown"],null]],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]]],[1,"\\n    "],[8,[39,6],[[24,"role","button"],[4,[38,2],["share_with_your_network"],null]],[["@classNames","@itemSelected","@aria-label"],["display-flex align-items-center",[30,0,["transitionToShareBoxRoute"]],[28,[37,3],["i18n_share_with_your_network_a11y","hiring-opportunities/components/job-actions-dropdown"],[["jobTitle"],[[30,0,["jobTitle"]]]]]]],[["default"],[[[[1,"\\n      "],[8,[39,4],[[24,0,"hiring-opportunities-job-actions-dropdown__content-icon"]],[["@name","@type","@size"],["compose","system","medium"]],null],[1,"\\n      "],[1,[28,[35,3],["i18n_share_with_your_network","hiring-opportunities/components/job-actions-dropdown"],null]],[1,"\\n    "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["isInviteToShareEnabled"]],[[[1,"      "],[8,[39,6],[[24,"role","button"],[4,[38,2],["invite_coworkers_to_share"],null]],[["@classNames","@itemSelected","@aria-label"],["display-flex align-items-center",[30,0,["transitionToInviteConnectionsRoute"]],[28,[37,3],["i18n_invite_coworkers_to_share_a11y","hiring-opportunities/components/job-actions-dropdown"],[["jobTitle"],[[30,0,["jobTitle"]]]]]]],[["default"],[[[[1,"\\n        "],[8,[39,4],[[24,0,"hiring-opportunities-job-actions-dropdown__content-icon"]],[["@name","@type","@size"],["people","system","medium"]],null],[1,"\\n        "],[1,[28,[35,3],["i18n_invite_coworkers_to_share","hiring-opportunities/components/job-actions-dropdown"],null]],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"  "]],[]]]]],[1,"\\n"]],[1]]]]]],["dropdown","@removeJobFromProfile"],false,["artdeco-dropdown@artdeco-dropdown","ember-set-helper@set","ember-cli-pemberly-tracking@track-interaction","t","hue-web-icons@icon","if","artdeco-dropdown@artdeco-dropdown-item"]]',moduleName:"hiring-opportunities/components/job-actions-dropdown.hbs",isStrictMode:!1})
let _=e.default=(h=class extends l.default{constructor(){super(...arguments);(0,t.default)(this,"router",b,this);(0,t.default)(this,"isDropdownOpen",f,this)}get jobId(){return(0,p.entityUrnToId)((0,u.get)(this.args.jobPosting,"entityUrn"))}get jobTitle(){return(0,u.get)(this.args.jobPosting,"title")}get isJobOwner(){return this.args.showcasedInOwnerProfile||"SHARED_AS_OWNER"===(0,u.get)(this.args.jobPosting,"openToHiringJobSharingState")}get isInviteToShareEnabled(){return(0,g.getJobPostingCompanyUrn)((0,u.get)(this.args.jobPosting,"companyDetails")||(0,u.get)(this.args.jobPosting,"company"))}transitionToShareBoxRoute(){const e=this.router.transitionTo("profile-opportunities.hiring-opportunities.share-box"),t=[this.args.jobPosting],i=new d.default(t),n=new m.default({destinationRoute:this.args.destinationRoute});(0,u.setProperties)(e.data,{nextBestActionManager:n,jobManager:i})}transitionToInviteConnectionsRoute(){const e=new m.default({destinationRoute:this.args.destinationRoute}),t=this.router.transitionTo("profile-opportunities.hiring-opportunities.invite-connections");(0,u.setProperties)(t.data,{nextBestActionManager:e,jobId:this.jobId})}transitionToManageJobRoute(){this.router.transitionTo("hiring.jobs.manage-job.detail",this.jobId)}},b=(0,n.default)(h.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,n.default)(h.prototype,"isDropdownOpen",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,n.default)(h.prototype,"transitionToShareBoxRoute",[u.action],Object.getOwnPropertyDescriptor(h.prototype,"transitionToShareBoxRoute"),h.prototype),(0,n.default)(h.prototype,"transitionToInviteConnectionsRoute",[u.action],Object.getOwnPropertyDescriptor(h.prototype,"transitionToInviteConnectionsRoute"),h.prototype),(0,n.default)(h.prototype,"transitionToManageJobRoute",[u.action],Object.getOwnPropertyDescriptor(h.prototype,"transitionToManageJobRoute"),h.prototype),h);(0,r.setComponentTemplate)(y,_)}))
define("hiring-opportunities/components/open-to-hiring-upsell-card",["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 o=(0,i.createTemplateFactory)({id:"2snDYfk7",block:'[[[8,[39,0],[[24,0,"link-without-hover-visited"],[4,[38,1],["viral_entry_point"],null]],[["@route","@model"],["profile-opportunities.hiring-opportunities.onboarding",[30,1,["publicIdentifier"]]]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"display-flex p2 ph5 relative"],[12],[1,"\\n    "],[8,[39,2],null,null,[["default"],[[[[1,"\\n      "],[8,[30,2,["photoFrame"]],null,null,null],[1,"\\n    "]],[2]]]]],[1,"\\n    "],[10,0],[14,0,"pv4 pl2 t-black t-14 t-normal"],[12],[1,"\\n      "],[1,[28,[35,3],["i18n_open_to_hiring_upsell_text","hiring-opportunities/components/open-to-hiring-upsell-card"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],["@miniProfile","visibilityWidgets"],false,["ember-engines@link-to-external","ember-cli-pemberly-tracking@track-interaction","claim-jobs-shared@oth/visibility-widgets","t"]]',moduleName:"hiring-opportunities/components/open-to-hiring-upsell-card.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(o,(0,n.default)())}))
define("hiring-opportunities/components/selected-connections",["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 o=(0,i.createTemplateFactory)({id:"RcufXolv",block:'[[[41,[30,1,["length"]],[[[1,"  "],[10,"section"],[14,0,"hiring-opportunities-selected-connections"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,1]],null]],null],null,[[[44,[[28,[37,4],null,[["firstName","lastName","type"],[[30,2,["profile","firstName"]],[30,2,["profile","lastName"]],"full"]]]],[[[1,"        "],[8,[39,5],null,[["@class","@text","@a11yText","@selected","@onDismiss","@size"],["mv1 mr1",[30,3],[28,[37,6],["i18n_a11y_remove_member","hiring-opportunities/components/selected-connections"],[["memberName"],[[30,3]]]],true,[28,[37,7],[[30,4],[30,2]],null],2]],null],[1,"\\n"]],[3]]]],[2]],null],[1,"  "],[13],[1,"\\n"]],[]],null]],["@connections","connection","memberName","@toggleMember"],false,["if","each","-track-array","let","ember-cli-pemberly-i18n@format-name","artdeco-pill@artdeco-pill-dismiss","t","fn"]]',moduleName:"hiring-opportunities/components/selected-connections.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(o,(0,n.default)())}))
define("hiring-opportunities/components/stepper",["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 o=(0,i.createTemplateFactory)({id:"sLNRtfEf",block:'[[[1,"\\n"],[41,[30,1,["showStepper"]],[[[1,"  "],[10,1],[14,0,"hiring-opportunities-stepper t-12"],[12],[1,"\\n    "],[1,[28,[35,1],["i18n_stepper","hiring-opportunities/components/stepper"],[["currentStep","totalSteps"],[[30,1,["currentStep"]],[30,1,["totalSteps"]]]]]],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["@nextBestActionManager"],false,["if","t"]]',moduleName:"hiring-opportunities/components/stepper.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(o,(0,n.default)())}))
define("hiring-opportunities/controllers/accept-invitation",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","hiring-opportunities/controllers/shared/base","@glimmer/tracking","@ember/object","job-posting-shared/data/share-job-on-profile","job-posting-modal/utils/constants","@ember/service","hiring-opportunities/utils/next-best-action-manager","job-posting-modal/utils/share-job-manager","data-layer/utils/restli-utils/batchget-to-getall","tracked-toolbox","employee-verification/data/verify-member-action","employee-verification/utils/constants","employee-verification/utils/verification-status","hiring-opportunities/utils/pem-tracking","global-utils/utils/logger","hiring-opportunities/utils/constants","job-posting-shared/utils/job-posting-model-utils","job-posting-shared/utils/constants"],(function(e,t,i,n,o,r,a,l,s,c,u,d,p,m,g,h,b,f,y,_,T,v,O,k){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var I,E,P,S,A,C,N,j,w,x,D,M,R,L,z,U
e.default=(I=(0,d.inject)("jet"),E=(0,d.inject)("pem-tracking"),P=(0,d.inject)("hiring-service@custom-tracking"),S=(0,d.inject)("global-services@store-shim"),A=class extends a.default{constructor(){super(...arguments);(0,t.default)(this,"jet",C,this);(0,t.default)(this,"pemTracking",N,this);(0,t.default)(this,"customTracking",j,this);(0,t.default)(this,"storeShim",w,this);(0,i.default)(this,"pageKeyPrefix","flagship3_open_to_hiring");(0,t.default)(this,"isAddJobModalOpen",x,this);(0,t.default)(this,"isShareJobModalOpen",D,this);(0,t.default)(this,"isShareJobMaximumModalOpen",M,this);(0,t.default)(this,"showErrorMessage",R,this);(0,t.default)(this,"isShareEnrollmentModalOpen",L,this);(0,t.default)(this,"employeeVerificationState",z,this);(0,t.default)(this,"expiredEmailAddresses",U,this);(0,i.default)(this,"jobsHelpCenterUrl",k.EXTERNAL_URLS.JOBS_WORK_EMAIL_TROUBLESHOOT_URL);(0,i.default)(this,"verificationFlowUseCase",f.FLOW_USE_CASE.JOB_POSTING)}get jobsList(){return(0,g.default)(this.model.jobPostings).elements}get jobPosting(){return this.jobsList[0]}get jobManager(){return new m.default(this.jobsList)}get company(){return(0,s.get)(this.jobPosting,"companyDetails")}get companyName(){return(0,O.getJobPostingCompany)((0,s.get)(this.jobPosting,"companyDetails"))}get companyLogo(){return(0,O.getJobPostingCompanyLogo)((0,s.get)(this.jobPosting,"companyDetails"))}get companyUrn(){return(0,O.getJobPostingCompanyUrn)((0,s.get)(this.jobPosting,"companyDetails"))}get jobPostingUrns(){return this.jobsList.map((e=>(0,s.get)(e,"entityUrn")))}get noSharingSlotsRemaining(){return 0===(0,s.get)(this,"model.jobEligibility.remainingSharingSlotsInOpenToHiring")}get remainingSharingSlotsInOpenToHiring(){return(0,s.get)(this,"model.jobEligibility.remainingSharingSlotsInOpenToHiring")}get oneJobInviteAndNotEnrolledInOTH(){return!(0,s.get)(this,"model.jobEligibility.enrolledInOpenToHiring")&&1===this.jobsList.length}get sufficentSharingSlotsAvailable(){return this.remainingSharingSlotsInOpenToHiring>=this.jobsList.length}get enrolledInOpenToHiring(){return(0,s.get)(this,"model.jobEligibility.enrolledInOpenToHiring")}get shareJobFlow(){return this.enrolledInOpenToHiring?u.FLOW_NAME.OPEN_TO_ADD_JOB_ON_PROFILE:u.FLOW_NAME.PROFILE_OPEN_TO_ENROLLMENT}onUpdateEmpVerifyState(e){const{isOpen:t,isVerificationComplete:i}=e
i?this.addJobsOnProfile(this.jobPostingUrns):t||this.onAfterCloseModal()
this.employeeVerificationState=e}transitionToNextRoute(e){const t=new p.default({isAddExistingJobFlow:!0})
if(t.hasNext){const i=t.completeCurrentAction(),n=this.transitionToRoute(i);(0,s.setProperties)(n.data,{jobManager:e,nextBestActionManager:t})}}addJobsOnProfile(e){this.isLoading=!0
return(0,c.default)({store:this.storeShim,jet:this.jet,jobEntityUrns:e,pemTracking:this.pemTracking,customTracking:this.customTracking}).then((()=>{if(!this.isDestroying){this.refreshProfileAndRefreshPhotoFrame()
this.transitionToNextRoute(this.jobManager)}})).catch((e=>{if(!this.isDestroying){this.showErrorMessage=!0
if(!e||!e.isAdapterError)throw e}})).finally((()=>{(0,r.isDestroying)(this)||(this.isLoading=!1)}))}verifyEmailAndAddJobsOnProfile(e){return this.companyUrn?(0,b.getVerificationStatus)({store:this.storeShim,normalizedCompanyUrn:this.companyUrn,degradations:[_.DEGRADATION_METADATA.OPEN_TO_HIRING_VERIFY_MEMBER_FOR_ORGANIZATION]}).then((t=>{if(this.isDestroying)return
const{organizationMemberVerificationType:i,expiredEmailAddresses:n}=(0,s.getProperties)(t,"organizationMemberVerificationType","expiredEmailAddresses")
if((0,y.isEmployeeVerified)(i))e(this.jobPostingUrns)
else{this.expiredEmailAddresses=n
this.employeeVerificationState={...this.employeeVerificationState,isOpen:!0}}})).catch((t=>{if(this.isDestroying)throw t
if(!t||!t.isAdapterError)throw t
var i,n,o
e(this.jobPostingUrns);(0,T.errorLogger)(this.jet,"hiring-opportunities/accept-invitation#verifyEmailAndAddJobsOnProfile",t,[v.JET_TAGS.EMPLOYEE_VERIFICATION],{callTreeId:null===(i=t.errors)||void 0===i||null===(n=i[0])||void 0===n||null===(o=n.meta)||void 0===o?void 0:o.callTreeId,shouldRethrow:!1})})):e(this.jobPostingUrns)}},C=(0,n.default)(A.prototype,"jet",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,n.default)(A.prototype,"pemTracking",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,n.default)(A.prototype,"customTracking",[P],{configurable