lAndAddJobOnProfile"),k.prototype),k)}))
define("hiring-opportunities/controllers/invite-connections",["exports","@babel/runtime/helpers/esm/applyDecoratedDescriptor","hiring-opportunities/controllers/shared/base","@ember/object"],(function(e,t,i,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var o
e.default=(o=class extends i.default{onSkipInvite(){const{nextBestActionManager:e,jobManager:t}=this.model
if(null!=e&&e.hasNext){const i=e.skipCurrentAction(),o=this.transitionToRoute(i);(0,n.setProperties)(o.data,{jobManager:t,nextBestActionManager:e})}else if(null!=e&&e.destinationRoute){this.transitionToRoute(e.destinationRoute).data.nextBestActionManager=e}else this.onAfterCloseModal()}onInvitationSent(){const{nextBestActionManager:e,jobManager:t}=this.model
if(null!=e&&e.hasNext){const i=e.completeCurrentAction(),o=this.transitionToRoute(i);(0,n.setProperties)(o.data,{jobManager:t,nextBestActionManager:e})}else if(null!=e&&e.destinationRoute){e.completeCurrentAction()
this.transitionToRoute(e.destinationRoute).data.nextBestActionManager=e}else this.onAfterCloseModal()}},(0,t.default)(o.prototype,"onSkipInvite",[n.action],Object.getOwnPropertyDescriptor(o.prototype,"onSkipInvite"),o.prototype),(0,t.default)(o.prototype,"onInvitationSent",[n.action],Object.getOwnPropertyDescriptor(o.prototype,"onInvitationSent"),o.prototype),o)}))
define("hiring-opportunities/controllers/invite",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","hiring-opportunities/controllers/shared/base","@ember/service","@ember/object","global-helpers/helpers/urn-to-id","hiring-opportunities/utils/constants"],(function(e,t,i,n,o,r,a,l,s,c){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var u,d,p
e.default=(u=(0,a.inject)("tracking"),d=class extends r.default{constructor(){super(...arguments);(0,t.default)(this,"tracking",p,this);(0,i.default)(this,"inviteCoworkersProfileImg",c.INVITE_COWORKERS_PROFILE_IMAGE);(0,i.default)(this,"confirmationDialogTitle","Title");(0,i.default)(this,"confirmationDialogContent","Content");(0,i.default)(this,"confirmationDialogPrimaryActionText","Primary action");(0,i.default)(this,"confirmationDialogSecondaryActionText","Secondary Action");(0,i.default)(this,"setIsConfirmationDialogOpen",(()=>{}));(0,i.default)(this,"confirmationDialogPrimaryAction",(()=>{}));(0,i.default)(this,"confirmationDialogSecondaryAction",(()=>{}));(0,i.default)(this,"isConfirmationDialogOpen",!1)}get jobsList(){var e
return(null===(e=this.model.jobManager)||void 0===e?void 0:e.jobsList)||[]}get jobId(){return(0,l.get)(this.model,"jobManager.jobsList.0.jobId")||(0,s.urnToId)([(0,l.get)(this.model,"jobManager.jobsList.0.entityUrn")])||(0,s.urnToId)([(0,l.get)(this.model,"jobManager.jobsList.0.jobEntityUrn")])}onDismiss(){const{nextBestActionManager:e,jobManager:t}=this.model
if(null!=e&&e.hasNext){this.tracking.fireInteractionEvent("dismiss")
const i=e.skipCurrentAction(),n=this.transitionToRoute(i);(0,l.setProperties)(n.data,{jobManager:t,nextBestActionManager:e})}else this.onAfterCloseModal()}onInvite(){const{nextBestActionManager:e,jobManager:t}=this.model,i=this.transitionToRoute(c.INVITE_CONNECTIONS_ROUTE);(0,l.setProperties)(i.data,{jobManager:t,nextBestActionManager:e,jobId:this.jobId})}},p=(0,n.default)(d.prototype,"tracking",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(d.prototype,"onDismiss",[l.action],Object.getOwnPropertyDescriptor(d.prototype,"onDismiss"),d.prototype),(0,n.default)(d.prototype,"onInvite",[l.action],Object.getOwnPropertyDescriptor(d.prototype,"onInvite"),d.prototype),d)}))
define("hiring-opportunities/controllers/manage",["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","@ember/object","profile-opportunities-shared/utils/build-confirmation-modal-config","@ember/service","profile-opportunities-shared/utils/tracking-helpers","hiring-opportunities/utils/job-management-on-profile","ember","global-utils/utils/trusted-html-safe","job-posting-shared/utils/budget-utils","@ember/debug","profile-shared/utils/profile-view-transition","hiring-opportunities/utils/next-best-action-manager","hiring-opportunities/utils/constants","global-utils/utils/logger","global-utils/utils/api-compat"],(function(e,t,i,n,o,r,a,l,s,c,u,d,p,m,g,h,b,f,y,_,T){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var v,O,k,I,E,P,S,A,C,N,j
const w="hiring-opportunities@manage"
e.default=(v=(0,c.inject)("i18n"),O=(0,c.inject)("global-services@store-shim"),k=(0,c.inject)("persistent-toast-manager@persistent-toast-manager"),I=(0,c.inject)("jet"),E=(0,c.inject)("pem-tracking"),P=class extends a.default{constructor(){super(...arguments);(0,t.default)(this,"i18n",S,this);(0,t.default)(this,"storeShim",A,this);(0,t.default)(this,"persistentToastManager",C,this);(0,t.default)(this,"jet",N,this);(0,t.default)(this,"pemTracking",j,this);(0,i.default)(this,"queryParams",["start","refresh"]);(0,i.default)(this,"start",0);(0,i.default)(this,"refresh",!1);(0,i.default)(this,"isShareJobModalOpen",!1);(0,i.default)(this,"isEmptyStateModalOpen",!1);(0,i.default)(this,"destinationRoute",f.NEXT_BEST_ACTION_ROUTES.MANAGE);(0,l.setProperties)(this,{confirmationDialogTitle:"Title",confirmationDialogContent:"Content",confirmationDialogPrimaryActionText:"Primary action",confirmationDialogSecondaryActionText:"Secondary Action",confirmationDialogPrimaryAction:()=>{},confirmationDialogSecondaryAction:()=>{},isConfirmationDialogOpen:!1})}closeConfirmModal(e){(0,l.setProperties)(this,{isConfirmationDialogOpen:!1,jobIdToBeRemoved:void 0});(0,u.default)({tracking:this.tracking,controlName:e})}showSuccessToast(e){let{ctaTextName:t,ctaUrl:i,ctaControlName:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
const o=(0,m.default)(this.i18n.lookupTranslation(w,e)())
if(t){const e=(0,m.default)(this.i18n.lookupTranslation(w,t)())
this.persistentToastManager.success({message:o,ctaText:e,ctaUrl:i,ctaControlName:n})}else this.persistentToastManager.success({message:o})}showErrorToast(e){const t=this.i18n.lookupTranslation(w,e)()
this.persistentToastManager.error({message:t})}onAddJobPost(){(0,u.default)({tracking:this.tracking,controlName:"add_job_post_after_remove_all"})
this.transitionToRoute("hiring-opportunities.onboarding")}onAddAnotherJob(){(0,l.set)(this,"isShareJobModalOpen",!0)}onRemoveJobFromProfile(e){var t
const i=(0,T.entityUrnToId)(e),n=1===(null===(t=this.paging)||void 0===t?void 0:t.total),o=n?"remove_job_posts_confirmation_modal_title":"remove_from_profile_confirmation_modal_title",r=n?"remove_job_posts_confirmation_modal_content":"remove_from_profile_confirmation_modal_content",a=(0,s.buildConfirmationModalConfig)({i18n:this.i18n,confirmationDialogTitleKey:o,confirmationDialogContentKey:r,confirmationDialogPrimaryActionTextKey:"remove_from_profile_confirmation_modal_primary_action",confirmationDialogPrimaryAction:this.removeJobFromProfile,confirmationDialogSecondaryActionTextKey:"remove_from_profile_confirmation_modal_secondary_action",confirmationDialogSecondaryAction:this.onRemoveJobCancelConfirmDialog});(0,l.setProperties)(this,{jobIdToBeRemoved:i,jobEntityUrn:e,...a})}onRemoveAllJobsFromProfile(){const e=(0,s.buildConfirmationModalConfig)({i18n:this.i18n,confirmationDialogTitleKey:"remove_job_posts_confirmation_modal_title",confirmationDialogContentKey:"remove_job_posts_confirmation_modal_content",confirmationDialogPrimaryActionTextKey:"remove_job_posts_confirmation_modal_primary_action",confirmationDialogPrimaryAction:this.removeAllJobsFromProfile,confirmationDialogSecondaryActionTextKey:"remove_job_posts_confirmation_modal_secondary_action",confirmationDialogSecondaryAction:this.onRemoveAllJobsCancelConfirmDialog});(0,l.setProperties)(this,{...e})}removeJobFromProfile(){(0,d.removeJobFromProfilePromise)({store:this.storeShim,jobId:this.jobIdToBeRemoved,pemTracking:this.pemTracking,jobPostingUrn:this.jobEntityUrn}).then((()=>{var e
if(!(0,r.isDestroying)(this)){this.showSuccessToast("i18n_remove_job_confirmation_toast")
this.closeConfirmModal("confirm_remove_job_post")
1!==(null===(e=this.paging)||void 0===e?void 0:e.total)&&this.refreshOpportunityCard();(0,l.set)(this,"refresh",!0)}})).catch((e=>{if((0,r.isDestroying)(this))throw e
this.showErrorToast("i18n_js_generic_api_error_message")
if(e&&e.isAdapterError){var t,i,n;(0,_.errorLogger)(this.jet,"hiring-opportunities/manage#removeJobFromProfile",e,[y.JET_TAGS.REMOVE_JOB_FROM_PROFILE],{callTreeId:null===(t=e.errors)||void 0===t||null===(i=t[0])||void 0===i||null===(n=i.meta)||void 0===n?void 0:n.callTreeId,shouldRethrow:!1})}else if(!p.default.testing)throw e}))}removeAllJobsFromProfile(){(0,d.removeAllJobsFromProfilePromise)({store:this.storeShim,pemTracking:this.pemTracking}).then((()=>{if((0,r.isDestroying)(this))return
const e={ctaTextName:"i18n_remove_all_job_posts_success_toast_cta",ctaUrl:(0,g.getJobPostsManagementUrl)(),ctaControlName:"manage_job_posts"}
this.closeConfirmModal("confirm_remove_all_job_posts")
this.sharedJobsList.find((e=>(0,l.get)(e,"showcasedInOwnerProfile")))?this.showSuccessToast("i18n_remove_all_job_posts_success_toast_message",e):this.showSuccessToast("i18n_remove_all_job_posts_for_existing_job_success_toast_message")
this.refreshProfileAndRefreshPhotoFrame();(0,b.transitionToExternalView)(this)})).catch((e=>{if((0,r.isDestroying)(this))throw e
this.showErrorToast("i18n_js_generic_api_error_message")
if(e&&e.isAdapterError){var t,i,n;(0,_.errorLogger)(this.jet,"hiring-opportunities/manage#removeAllJobsFromProfile",e,[y.JET_TAGS.REMOVE_ALL_JOBS_FROM_PROFILE],{callTreeId:null===(t=e.errors)||void 0===t||null===(i=t[0])||void 0===i||null===(n=i.meta)||void 0===n?void 0:n.callTreeId,shouldRethrow:!1})}else if(!p.default.testing)throw e}))}onRemoveJobCancelConfirmDialog(){this.closeConfirmModal("cancel_remove_job_from_profile")}onRemoveAllJobsCancelConfirmDialog(){this.closeConfirmModal("cancel_remove_all_job_posts")}onSelectPage(e){const t=(0,l.get)(this,"paging.count")*(e-1);(0,l.set)(this,"start",t)}afterCloseModal(e,t){e&&(0,l.set)(this,"refresh",!0)
const i=new f.default({fromManageFlow:!0,isCreateJobFlow:t,isAddExistingJobFlow:!t,destinationRoute:this.destinationRoute})
if(i.hasNext){const t=i.completeCurrentAction(),n=this.transitionToRoute(t);(0,l.setProperties)(n.data,{jobManager:e,nextBestActionManager:i})}}},S=(0,n.default)(P.prototype,"i18n",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,n.default)(P.prototype,"storeShim",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,n.default)(P.prototype,"persistentToastManager",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,n.default)(P.prototype,"jet",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,n.default)(P.prototype,"pemTracking",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(P.prototype,"onAddJobPost",[l.action],Object.getOwnPropertyDescriptor(P.prototype,"onAddJobPost"),P.prototype),(0,n.default)(P.prototype,"onAddAnotherJob",[l.action],Object.getOwnPropertyDescriptor(P.prototype,"onAddAnotherJob"),P.prototype),(0,n.default)(P.prototype,"onRemoveJobFromProfile",[l.action],Object.getOwnPropertyDescriptor(P.prototype,"onRemoveJobFromProfile"),P.prototype),(0,n.default)(P.prototype,"onRemoveAllJobsFromProfile",[l.action],Object.getOwnPropertyDescriptor(P.prototype,"onRemoveAllJobsFromProfile"),P.prototype),(0,n.default)(P.prototype,"removeJobFromProfile",[l.action],Object.getOwnPropertyDescriptor(P.prototype,"removeJobFromProfile"),P.prototype),(0,n.default)(P.prototype,"removeAllJobsFromProfile",[l.action],Object.getOwnPropertyDescriptor(P.prototype,"removeAllJobsFromProfile"),P.prototype),(0,n.default)(P.prototype,"onRemoveJobCancelConfirmDialog",[l.action],Object.getOwnPropertyDescriptor(P.prototype,"onRemoveJobCancelConfirmDialog"),P.prototype),(0,n.default)(P.prototype,"onRemoveAllJobsCancelConfirmDialog",[l.action],Object.getOwnPropertyDescriptor(P.prototype,"onRemoveAllJobsCancelConfirmDialog"),P.prototype),(0,n.default)(P.prototype,"onSelectPage",[l.action],Object.getOwnPropertyDescriptor(P.prototype,"onSelectPage"),P.prototype),(0,n.default)(P.prototype,"afterCloseModal",[l.action],Object.getOwnPropertyDescriptor(P.prototype,"afterCloseModal"),P.prototype),P)}))
define("hiring-opportunities/controllers/management",["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","@ember/object","@glimmer/tracking","@ember/service","job-posting-shared/utils/constants","job-posting-shared/data/share-job-on-profile","profile-shared/utils/profile-view-transition","employee-verification/utils/constants","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,y,_,T,v,O,k,I,E
e.default=(h=(0,c.inject)("jet"),b=(0,c.inject)("global-services@store-shim"),f=(0,c.inject)("pem-tracking"),y=(0,c.inject)("hiring-service@custom-tracking"),_=class extends a.default{constructor(){super(...arguments);(0,t.default)(this,"jet",T,this);(0,t.default)(this,"storeShim",v,this);(0,t.default)(this,"pemTracking",O,this);(0,t.default)(this,"customTracking",k,this);(0,t.default)(this,"employeeVerificationState",I,this);(0,i.default)(this,"jobsHelpCenterUrl",u.EXTERNAL_URLS.JOBS_WORK_EMAIL_TROUBLESHOOT_URL);(0,i.default)(this,"verificationFlowUseCase",m.FLOW_USE_CASE.JOB_POSTING);(0,t.default)(this,"expiredEmailAddresses",E,this)}get jobPosting(){return(0,l.get)(this,"model.jobPosting")||{}}get entityUrn(){return(0,l.get)(this,"model.jobPosting.entityUrn")||""}get companyUrn(){return(0,g.getJobPostingCompanyUrn)((0,l.get)(this,"model.jobPosting.companyDetails"))||""}get companyName(){return(0,g.getJobPostingCompany)((0,l.get)(this,"model.jobPosting.companyDetails"))}get companyLogo(){return(0,g.getJobPostingCompanyLogo)((0,l.get)(this,"model.jobPosting.companyDetails.company")||(0,l.get)(this,"model.jobPosting.companyDetails"))||{}}addJobsOnProfile(){const e=[this.entityUrn]
return(0,d.default)({jobEntityUrns:e,store:this.storeShim,jet:this.jet,pemTracking:this.pemTracking,customTracking:this.customTracking}).then((()=>{if(!(0,r.isDestroying)(this)){this.refreshProfileAndRefreshPhotoFrame()
this.transitionToRoute("hiring-opportunities.manage")}})).catch((e=>{if((0,r.isDestroying)(this))throw e
if(e&&e.isAdapterError)return(0,p.transitionToExternalView)(this)
throw e}))}onUpdateEmpVerifyState(e){const{isOpen:t,isVerificationComplete:i}=e
i?this.addJobsOnProfile():t||this.onAfterCloseModal()
this.employeeVerificationState=e}},T=(0,n.default)(_.prototype,"jet",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,n.default)(_.prototype,"storeShim",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,n.default)(_.prototype,"pemTracking",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,n.default)(_.prototype,"customTracking",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,n.default)(_.prototype,"employeeVerificationState",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{step:m.STEP_EMAIL_INPUT,isOpen:!1}}}),E=(0,n.default)(_.prototype,"expiredEmailAddresses",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,n.default)(_.prototype,"onUpdateEmpVerifyState",[l.action],Object.getOwnPropertyDescriptor(_.prototype,"onUpdateEmpVerifyState"),_.prototype),_)}))
define("hiring-opportunities/controllers/onboarding",["exports","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","hiring-opportunities/controllers/shared/base","@ember/object","job-posting-modal/utils/constants","hiring-opportunities/utils/next-best-action-manager","profile-shared/utils/profile-view-transition","job-posting-shared/utils/job-posting-model-utils"],(function(e,t,i,n,o,r,a,l,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var c
e.default=(c=class extends n.default{constructor(){super(...arguments);(0,t.default)(this,"isShareJobModalOpen",!0)}isEligibleForInvite(e){var t
const i=(0,o.get)(e,"jobsList.0.company.company.companyUrn")||(0,o.get)(e,"jobsList.0.company.entityUrn")||(0,s.getJobPostingCompanyUrn)((0,o.get)(e,"jobsList.0.companyDetails"))
return this.model.inviteHiringPartnersLegoData&&1===(null==e||null===(t=e.jobsList)||void 0===t?void 0:t.length)&&i}onClosingOnboarding(e,t){if(e){if((0,o.get)(e.jobsList[0],"jobState")!==r.JOB_STATES.REVIEW){const i=this.isEligibleForInvite(e),n=new a.default({eligibleForInvite:i,isCreateJobFlow:t,isAddExistingJobFlow:!t})
if(n.hasNext){const t=n.completeCurrentAction(),i=this.transitionToRoute(t);(0,o.setProperties)(i.data,{jobManager:e,nextBestActionManager:n})}return{}}(0,l.transitionToExternalView)(this)
return{}}return this.onAfterCloseModal()}},(0,i.default)(c.prototype,"onClosingOnboarding",[o.action],Object.getOwnPropertyDescriptor(c.prototype,"onClosingOnboarding"),c.prototype),c)}))
define("hiring-opportunities/controllers/posted-jobs",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","hiring-opportunities/controllers/shared/base","@ember/object","job-posting-modal/utils/constants","@glimmer/tracking"],(function(e,t,i,n,o,r,a,l,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var c,u
e.default=(c=class extends r.default{constructor(){super(...arguments);(0,t.default)(this,"isShareJobModalOpen",u,this);(0,i.default)(this,"enrollmentFlow",l.FLOW_NAME.OPEN_TO_ENROLLMENT)}get jobsList(){const e=(0,a.get)(this,"model.jobFromFeedPost")||{}
return[...(0,a.get)(this,"model.jobsNotOnProfile.elements")??[],e]}},u=(0,n.default)(c.prototype,"isShareJobModalOpen",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),c)}))
define("hiring-opportunities/controllers/promote",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/object","@ember/service","global-utils/utils/api-compat","global-utils/utils/url","hiring-opportunities/controllers/shared/base","hiring-opportunities/utils/constants","profile-opportunities-shared/utils/tracking-helpers","job-posting-modal/utils/constants","job-trust/utils/format-helpers","job-posting-shared/data/promote-job-posting","job-posting-shared/utils/budget-utils","job-posting-shared/utils/budget-tracking-utils","job-posting-shared/utils/constants","hiring-service/utils/constants"],(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
const j="hiring-opportunities@promote"
e.default=(T=(0,l.inject)("tracking"),v=(0,l.inject)("i18n"),O=(0,l.inject)("global-services@store-shim"),k=(0,l.inject)("hiring-service@custom-tracking"),I=(0,l.inject)("number-formatting@number-formatter"),E=class extends u.default{constructor(){super(...arguments);(0,t.default)(this,"tracking",P,this);(0,t.default)(this,"i18n",S,this);(0,t.default)(this,"storeShim",A,this);(0,t.default)(this,"customTracking",C,this);(0,t.default)(this,"numberFormatterService",N,this);(0,i.default)(this,"confirmationDialogTitle","Title");(0,i.default)(this,"confirmationDialogContent","Content");(0,i.default)(this,"confirmationDialogPrimaryActionText","Primary action");(0,i.default)(this,"confirmationDialogSecondaryActionText","Secondary Action");(0,i.default)(this,"isConfirmationDialogOpen",!1);(0,i.default)(this,"entryPoint",m.ENTRY_POINT.OPEN_TO_HIRING)}get jobId(){var e
return null===(e=this.model.jobManager.jobsList[0])||void 0===e?void 0:e.jobId}get jobTitle(){var e
return null===(e=this.model.jobManager.jobsList[0])||void 0===e?void 0:e.title}get eligibleForMigrationToOJFreeCredit(){var e,t,i
const n=null===(e=this.model)||void 0===e||null===(t=e.jobFreePromotionEligibilities)||void 0===t||null===(i=t.freeCreditPromotionEligibility)||void 0===i?void 0:i.type
return!!y.MIGRATION_TO_OJ_ELIGIBILITY_TYPES[n]}get freeCreditAmount(){var e,t,i
return null===(e=this.model)||void 0===e||null===(t=e.jobFreePromotionEligibilities)||void 0===t||null===(i=t.freeCreditPromotionEligibility)||void 0===i?void 0:i.creditAmount}get creditAmount(){const e=this.freeCreditAmount||{creditAmount:0}
return(0,g.formatCurrencyNumber)(e.amount,e.currencyCode,this.numberFormatterService,0)}get recommendedDailyBudget(){return(0,a.get)(this,"model.jobBudgetRecommendations.dailyBudgetInLocalCurrency")}get currencyCode(){return(0,a.get)(this,"model.jobBudgetRecommendations.dailyBudgetInLocalCurrency.currencyCode")}get formattedDailyBudget(){const e=(0,a.get)(this.recommendedDailyBudget,"amount")
return(0,g.formatCurrencyNumber)(e,this.currencyCode,this.numberFormatterService,0)}async redirectToCheckoutPage(e){const t=(0,a.get)(this.model,"jobPostingUrn")
try{var i
const n=await(0,h.default)(this.storeShim,this.jet,t,e,d.JOB_PROMOTION_TYPE.FREE_CREDIT)
if((0,r.isDestroying)(this))return
const o=(0,b.getCheckoutUrl)({cartId:n,jobId:(0,s.entityUrnToId)(t),jobPostingFlowTrackingId:this.customTracking.getTrackingId()}),a={budgetSelection:{dailyBudgetAmount:e.dailyBudget},budgetRecommendation:(0,f.getJobBudgetRecommendationsTrackingData)(null===(i=this.model)||void 0===i?void 0:i.jobBudgetRecommendations)}
this.customTracking.fireJobPostingFlowOperationEvent({operation:_.JOB_POSTING_FLOW_OPERATION_NAME.BUDGET_PAGE_CONTINUE},{budgetPageContinueData:a},t)
jSecure.redirect(o)}catch(e){if((0,r.isDestroying)(this))throw e
if(!e||!e.isAdapterError)throw e}}get startWithFreeCreditText(){return this.i18n.lookupTranslation(j,"i18n_start_with_credit")([{creditAmount:this.creditAmount}])}get promoteUpsellTextMap(){const e=Object.freeze({upsellCredit:{upsellHeader:this.i18n.lookupTranslation(j,"i18n_upsell_credit_header")([{creditAmount:this.creditAmount}]),upsellBulletOne:this.i18n.lookupTranslation(j,"i18n_trial_promoted_3_times_faster")(),upsellBulletTwo:this.i18n.lookupTranslation(j,"i18n_trial_shown_at_the_top")(),upsellBulletThree:this.i18n.lookupTranslation(j,"i18n_trial_instant_job_alerts")()},default:{upsellHeader:this.i18n.lookupTranslation(j,"i18n_promote_job_post")(),upsellBulletOne:this.i18n.lookupTranslation(j,"i18n_shown_at_top_of_search")(),upsellBulletTwo:this.i18n.lookupTranslation(j,"i18n_top_placement_in_recommendations")(),upsellBulletThree:this.i18n.lookupTranslation(j,"i18n_send_instant_alerts")()}})
return this.eligibleForMigrationToOJFreeCredit?e.upsellCredit:e.default}get promoteJobUrl(){const e={jobId:this.jobId,jobPostingFlowTrackingId:this.customTracking.getTrackingId(),cancelUrl:`${(0,c.getDomainUrl)()}/in/${this.model.memberId}`}
e.trk=this.entryPoint
return(0,b.getJobPostingBudgetUrl)(e)}onStartWithFreePromotionButtonClick(){const e={dailyBudget:{amount:(0,a.get)(this.recommendedDailyBudget,"amount"),currencyCode:this.currencyCode}}
this.redirectToCheckoutPage(e)}onCloseModal(){const{nextBestActionManager:e}=this.model,t="exit"
if(null!=e&&e.destinationRoute){(0,p.default)({controlName:t,tracking:this.tracking})
this.transitionToRoute(e.destinationRoute)}else this.onAfterCloseModal(t)}},P=(0,n.default)(E.prototype,"tracking",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,n.default)(E.prototype,"i18n",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,n.default)(E.prototype,"storeShim",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,n.default)(E.prototype,"customTracking",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,n.default)(E.prototype,"numberFormatterService",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(E.prototype,"onStartWithFreePromotionButtonClick",[a.action],Object.getOwnPropertyDescriptor(E.prototype,"onStartWithFreePromotionButtonClick"),E.prototype),(0,n.default)(E.prototype,"onCloseModal",[a.action],Object.getOwnPropertyDescriptor(E.prototype,"onCloseModal"),E.prototype),E)}))
define("hiring-opportunities/controllers/share-box",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","hiring-opportunities/controllers/shared/base","@ember/object","@glimmer/tracking","hiring-service/utils/constants","profile-shared/utils/profile-view-transition","@ember/service","global-utils/utils/urn-converter","hiring-opportunities/utils/get-detour-manager"],(function(e,t,i,n,o,r,a,l,s,c,u,d,p){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var m,g,h,b,f,y,_,T
e.default=(m=(0,u.inject)("i18n"),g=(0,u.inject)("hiring-service@custom-tracking"),h=(0,u.inject)("@linkedin/ember-restli-graphql@graphql"),b=class extends r.default{constructor(){super(...arguments);(0,t.default)(this,"i18n",f,this);(0,t.default)(this,"customTracking",y,this);(0,t.default)(this,"graphql",_,this);(0,t.default)(this,"isShareboxModalOpen",T,this);(0,i.default)(this,"shareOrigin","PROFILE");(0,i.default)(this,"isSharedSuccessfully",!1)}get initialDetourManager(){var e
return(0,p.getDashInitialDetourManager)({authenticatedUser:this.authenticatedUser,i18n:this.i18n,jobEntityUrns:null===(e=this.model.jobManager)||void 0===e?void 0:e.jobEntityUrns,shareText:this.i18n.lookupTranslation("profile-opportunities@hiring-opportunities/share-box","i18n_share_box_prefill_text")(),graphql:this.graphql})}onCloseModal(){this.isShareboxModalOpen=!1
const{nextBestActionManager:e,jobManager:t}=this.model
if(null!=e&&e.hasNext){const i=this.isSharedSuccessfully?e.completeCurrentAction():e.skipCurrentAction(),n=this.transitionToRoute(i);(0,a.setProperties)(n.data,{jobManager:t,nextBestActionManager:e})}else if(null!=e&&e.destinationRoute){this.isSharedSuccessfully&&e.completeCurrentAction()
const i=this.transitionToRoute(e.destinationRoute);(0,a.setProperties)(i.data,{jobManager:t,nextBestActionManager:e})}else(0,c.transitionToExternalView)(this)}onShareSuccess(){this.isSharedSuccessfully=!0
this._fireActionEvent()}_fireActionEvent(){var e,t
this.model.jobManager.isCreateJobFlow?this.customTracking.fireJobPostingPosterActionEvent({jobPostingUrn:(0,d.toUrn)("jobs/dash-jobPosting",(0,a.get)(this.model,"jobManager.jobsList.0.jobId")),actionType:s.JOB_POSTING_POSTER_ACTION_TYPE.JOB_SHARED_TO_FEED}):null===(e=this.model.jobManager)||void 0===e||null===(t=e.jobEntityUrns)||void 0===t||t.forEach((e=>{this.customTracking.fireJobPostingPosterActionEvent({jobPostingUrn:e,actionType:s.JOB_POSTING_POSTER_ACTION_TYPE.JOB_SHARED_TO_FEED})}))}},f=(0,n.default)(b.prototype,"i18n",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,n.default)(b.prototype,"customTracking",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,n.default)(b.prototype,"graphql",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,n.default)(b.prototype,"isShareboxModalOpen",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),(0,n.default)(b.prototype,"onCloseModal",[a.action],Object.getOwnPropertyDescriptor(b.prototype,"onCloseModal"),b.prototype),(0,n.default)(b.prototype,"onShareSuccess",[a.action],Object.getOwnPropertyDescriptor(b.prototype,"onShareSuccess"),b.prototype),b)}))
define("hiring-opportunities/controllers/share",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","hiring-opportunities/controllers/shared/base","@ember/service","@ember/object","profile-opportunities-shared/utils/tracking-helpers","global-utils/utils/urn-converter"],(function(e,t,i,n,o,r,a,l,s,c){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var u,d,p,m,g,h,b
e.default=(u=(0,a.inject)("authentication@authenticated-user"),d=(0,a.inject)("i18n"),p=(0,a.inject)("profile-services@identity-store"),m=class extends r.default{constructor(){super(...arguments);(0,t.default)(this,"authenticatedUser",g,this);(0,t.default)(this,"i18n",h,this);(0,t.default)(this,"identityStore",b,this);(0,i.default)(this,"isAskToShareModalOpen",!0);(0,l.setProperties)(this,{confirmationDialogTitle:"Title",confirmationDialogContent:"Content",confirmationDialogPrimaryActionText:"Primary action",confirmationDialogSecondaryActionText:"Secondary Action",confirmationDialogPrimaryAction:()=>{},confirmationDialogSecondaryAction:()=>{},isConfirmationDialogOpen:!1})}closeConfirmModal(e){(0,l.setProperties)(this,{isConfirmationDialogOpen:!1});(0,s.default)({controlName:e,tracking:this.tracking})}get jobsList(){var e
return(null===(e=this.model.jobManager)||void 0===e?void 0:e.jobsList)||[]}get jobTitles(){const e=this.jobsList,t=this.i18n.lookupTranslation("profile-opportunities@hiring-opportunities/share","i18n_share_delimiter")()
return e.map((e=>(0,l.get)(e,"title"))).join(`${t} `)}onCancelConfirmDialog(){this.closeConfirmModal("cancel_update_photo_visibility")}onUpdateConfirmDialog(){const e=(0,c.toUrn)("com.linkedin.voyager.dash.identity.profile.PrivacySettings","singleton",!0),t=this.identityStore.peekRecord("com.linkedin.voyager.dash.identity.profile.PrivacySettings",e);(0,l.setProperties)(t,{profilePictureVisibilitySetting:"MEMBERS",publicProfilePictureVisibilitySetting:"MEMBERS"})
t.save({adapterOptions:{partial:!0,url:"/voyager/api/voyagerIdentityDashPrivacySettings"}})
this.closeConfirmModal("update_photo_visibility")}onStartPost(){const{jobManager:e,nextBestActionManager:t}=this.model,i=this.transitionToRoute("hiring-opportunities.share-box");(0,l.setProperties)(i.data,{jobManager:e,nextBestActionManager:t})}onDismiss(){const{nextBestActionManager:e,jobManager:t}=this.model
if(null!=e&&e.hasNext){const i=e.skipCurrentAction(),n=this.transitionToRoute(i);(0,l.setProperties)(n.data,{jobManager:t,nextBestActionManager:e})}else this.onAfterCloseModal()}},g=(0,n.default)(m.prototype,"authenticatedUser",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,n.default)(m.prototype,"i18n",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,n.default)(m.prototype,"identityStore",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(m.prototype,"onCancelConfirmDialog",[l.action],Object.getOwnPropertyDescriptor(m.prototype,"onCancelConfirmDialog"),m.prototype),(0,n.default)(m.prototype,"onUpdateConfirmDialog",[l.action],Object.getOwnPropertyDescriptor(m.prototype,"onUpdateConfirmDialog"),m.prototype),(0,n.default)(m.prototype,"onStartPost",[l.action],Object.getOwnPropertyDescriptor(m.prototype,"onStartPost"),m.prototype),(0,n.default)(m.prototype,"onDismiss",[l.action],Object.getOwnPropertyDescriptor(m.prototype,"onDismiss"),m.prototype),m)}))
define("hiring-opportunities/controllers/shared/base",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/controller","@ember/object","profile-shared/utils/profile-view-transition","profile-opportunities-shared/utils/tracking-helpers","@ember/service","profile-opportunities-shared/utils/reload-opportunity-cards","profile-shared/utils/member-info-helper"],(function(e,t,i,n,o,r,a,l,s,c,u,d){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var p,m,g,h,b,f,y,_,T,v,O
e.default=(p=(0,c.inject)("tracking"),m=(0,c.inject)("authentication@authenticated-user"),g=(0,c.inject)("profile-services@identity-store"),h=(0,c.inject)("profile-shared@multi-step-form"),b=(0,c.inject)("@linkedin/ember-restli-graphql@graphql"),f=class extends r.default{constructor(){super(...arguments);(0,t.default)(this,"tracking",y,this);(0,t.default)(this,"authenticatedUser",_,this);(0,t.default)(this,"identityStore",T,this);(0,t.default)(this,"multiStepForm",v,this);(0,t.default)(this,"graphql",O,this)}fireDismissControlTracking(e){(0,s.default)({tracking:this.tracking,controlName:e})}onAfterCloseModal(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"dismiss"
this.fireDismissControlTracking(e);(0,l.transitionToExternalView)(this)}refreshOpportunityCard(){(0,u.default)({graphql:this.graphql,authenticatedUser:this.authenticatedUser})}refreshProfileAndRefreshPhotoFrame(){const e=(0,a.get)(this,"authenticatedUser.miniProfile.publicIdentifier");(0,d.refreshMemberPhoto)(this.graphql,e)
this.refreshOpportunityCard()
this.identityStore.reloadVersionTag()}},y=(0,n.default)(f.prototype,"tracking",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,n.default)(f.prototype,"authenticatedUser",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,n.default)(f.prototype,"identityStore",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,n.default)(f.prototype,"multiStepForm",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,n.default)(f.prototype,"graphql",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(f.prototype,"onAfterCloseModal",[a.action],Object.getOwnPropertyDescriptor(f.prototype,"onAfterCloseModal"),f.prototype),(0,n.default)(f.prototype,"refreshOpportunityCard",[a.action],Object.getOwnPropertyDescriptor(f.prototype,"refreshOpportunityCard"),f.prototype),(0,n.default)(f.prototype,"refreshProfileAndRefreshPhotoFrame",[a.action],Object.getOwnPropertyDescriptor(f.prototype,"refreshProfileAndRefreshPhotoFrame"),f.prototype),f)}))
define("hiring-opportunities/controllers/view",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","hiring-opportunities/controllers/shared/base","@ember/object","@ember/service","profile-opportunities-shared/utils/tracking-helpers","global-utils/utils/a11y-focus-element","hiring-opportunities/utils/constants","global-utils/utils/url","global-helpers/helpers/name"],(function(e,t,i,n,o,r,a,l,s,c,u,d,p){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var m,g,h,b,f
e.default=(m=(0,l.inject)("router"),g=(0,l.inject)("authentication@authenticated-user"),h=class extends r.default{constructor(){super(...arguments);(0,t.default)(this,"router",b,this);(0,t.default)(this,"authenticatedUser",f,this);(0,i.default)(this,"queryParams",["start"]);(0,i.default)(this,"start",0);(0,i.default)(this,"learnMoreAboutPrivacyUrl",`https://${(0,d.getDomain)()}${u.LEARN_MORE_ABOUT_PRIVACY_URL}`);(0,a.setProperties)(this,{confirmationDialogTitle:"Title",confirmationDialogContent:"Content",confirmationDialogPrimaryActionText:"Primary action",confirmationDialogSecondaryActionText:"Secondary Action",confirmationDialogPrimaryAction:()=>{},confirmationDialogSecondaryAction:()=>{},isConfirmationDialogOpen:!1})}get hmName(){return(0,p.getName)(this.model.hmMiniProfile)}onEdit(){this.transitionToRoute("hiring-opportunities.manage")}onSelectPage(e){const t=(0,a.get)(this,"paging.count")*(e-1);(0,a.set)(this,"start",t);(0,c.default)(this,"#hirer-photo-frame")}goToJobDetailsPage(e){let{recommendedFlavor:t="",jobId:i}=e;(0,s.default)({tracking:this.tracking,controlName:"job_card"})
this.router.transitionTo("job-details-engine.index",i,{queryParams:{recommendedFlavor:t}})}},b=(0,n.default)(h.prototype,"router",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,n.default)(h.prototype,"authenticatedUser",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(h.prototype,"onEdit",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"onEdit"),h.prototype),(0,n.default)(h.prototype,"onSelectPage",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"onSelectPage"),h.prototype),(0,n.default)(h.prototype,"goToJobDetailsPage",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"goToJobDetailsPage"),h.prototype),h)}))
define("hiring-opportunities/routes/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","@ember/routing/route","@ember/service","global-utils/utils/api-compat","rsvp","job-posting-modal/utils/constants","hiring-opportunities/utils/fetch-job-postings","hiring-opportunities/utils/job-posting-eligibilities-fetcher"],(function(e,t,i,n,o,r,a,l,s,c,u,d,p){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var m,g,h,b,f,y,_,T,v
e.default=(m=(0,l.inject)("global-services@store-shim"),g=(0,l.inject)("@linkedin/ember-restli-graphql@graphql"),h=(0,l.inject)("authentication@authenticated-user"),b=(0,l.inject)("hiring-service@custom-tracking"),f=class extends a.default{constructor(){super(...arguments);(0,i.default)(this,"pageKey","flagship3_open_to_hiring_invitee_landing_page");(0,t.default)(this,"storeShim",y,this);(0,t.default)(this,"graphql",_,this);(0,t.default)(this,"authenticatedUser",T,this);(0,t.default)(this,"customTracking",v,this)}beforeModel(e){const{jobPostingUrns:t}=e.to.queryParams
if(!t){const e="profile.common.profile"
return this.transitionToExternal(e,this.authenticatedUser.memberId)}this.jobPostingUrnsList=t.split(",")
this.jobPostingIds=this.jobPostingUrnsList.map((e=>(0,s.entityUrnToId)(e)))
return!0}model(){if((0,r.isDestroying)(this))return
const e=(0,d.fetchJobPostingsGraphQL)(this.graphql,this.jobPostingUrnsList)
return(0,c.hash)({jobPostings:e,jobEligibility:(0,p.fetchJobPostingEligibilities)(this.storeShim,this.graphql,!0)})}setupController(e,t){if(!(0,r.isDestroying)(this)){super.setupController(e,t)
this.customTracking.fireOnlineJobPostingEligibilityEvent()
this.customTracking.fireJobPostingImpressionEvent({moduleKey:this.pageKey,entryPoint:u.ENTRY_POINT.OPEN_TO_HIRING})}}},y=(0,n.default)(f.prototype,"storeShim",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,n.default)(f.prototype,"graphql",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,n.default)(f.prototype,"authenticatedUser",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,n.default)(f.prototype,"customTracking",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f)}))
define("hiring-opportunities/routes/enroll",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/routing/route","@ember/service","rsvp","hiring-opportunities/utils/fetch-job-posting"],(function(e,t,i,n,o,r,a,l,s,c){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var u,d,p
e.default=(u=(0,l.inject)("@linkedin/ember-restli-graphql@graphql"),d=class extends a.default{constructor(){super(...arguments);(0,t.default)(this,"graphql",p,this)}model(e){if((0,r.isDestroying)(this))return
const{jobId:t}=e,i=(0,c.fetchJobPostingGraphQL)(this.graphql,t)
return(0,s.hash)({jobPosting:i})}},p=(0,n.default)(d.prototype,"graphql",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d)}))
define("hiring-opportunities/routes/hiring-opportunities",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/routing/route","@ember/object","@ember/service","hiring-opportunities/utils/constants"],(function(e,t,i,n,o,r,a,l,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var c,u,d,p,m
const g=[s.VIEW_ROUTE,s.MANAGE_ROUTE,s.ONBOARDING_ROUTE,s.POSTED_JOBS_ROUTE,s.ENROLL_ROUTE,s.MANAGEMENT_ROUTE,s.ACCEPT_INVITATION_ROUTE]
e.default=(c=(0,l.inject)("profile-services@profile"),u=(0,l.inject)("authentication@authenticated-user"),d=class extends r.default{constructor(){super(...arguments);(0,i.default)(this,"pageKey","flagship3_open_to_hiring");(0,t.default)(this,"profile",p,this);(0,t.default)(this,"authenticatedUser",m,this)}beforeModel(e){const t=(0,a.get)(this,"profile.isSelfView"),i=(0,a.get)(e,"targetName")
if(!t&&i!==s.VIEW_ROUTE||t&&!g.includes(i)){const e="profile.common.profile"
return this.transitionToExternal(e,this.authenticatedUser.memberId)}return!0}},p=(0,n.default)(d.prototype,"profile",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,n.default)(d.prototype,"authenticatedUser",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d)}))
define("hiring-opportunities/routes/invite-connections",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/routing/route","rsvp","@ember/object","@ember/service","hiring-opportunities/utils/get-job-posting-data-from-job-manager","job-posting-modal/utils/constants","global-utils/utils/urn-converter"],(function(e,t,i,n,o,r,a,l,s,c,u,d,p){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var m,g,h,b,f
e.default=(m=(0,c.inject)("authentication@authenticated-user"),g=(0,c.inject)("hiring-service@custom-tracking"),h=class extends a.default{constructor(){super(...arguments);(0,i.default)(this,"pageKey","flagship3_open_to_hiring_invite_selection");(0,t.default)(this,"authenticatedUser",b,this);(0,t.default)(this,"customTracking",f,this)}model(e,t){if((0,r.isDestroying)(this))return
const{jobId:i,jobManager:n,nextBestActionManager:o}=t.data,{memberId:a}=this.authenticatedUser
if(!i){const e="profile.common.profile"
this.transitionToExternal(e,a)}return(0,l.hash)({jobId:i,jobManager:n,nextBestActionManager:o})}setupController(e,t){if((0,r.isDestroying)(this))return
super.setupController(e,t)
const{jobManager:i,jobId:n}=(0,s.getProperties)(t,"jobManager","jobId"),o=i?(0,s.get)((0,u.getJobPostingDataFromJobManager)(i),"jobPostingUrn"):(0,p.toUrn)("jobs/jobPosting",n),a=d.JOB_STATES.LISTED
this.customTracking.fireJobPostingImpressionEvent({jobPostingUrn:o,jobState:a,moduleKey:this.pageKey})}},b=(0,n.default)(h.prototype,"authenticatedUser",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,n.default)(h.prototype,"customTracking",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h)}))
define("hiring-opportunities/routes/invite",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/routing/route","@ember/service","@ember/object","rsvp","hiring-opportunities/utils/get-job-posting-data-from-job-manager"],(function(e,t,i,n,o,r,a,l,s,c,u){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var d,p,m,g,h
e.default=(d=(0,l.inject)("authentication@authenticated-user"),p=(0,l.inject)("hiring-service@custom-tracking"),m=class extends a.default{constructor(){super(...arguments);(0,i.default)(this,"pageKey","flagship3_open_to_hiring_invite_nba");(0,t.default)(this,"authenticatedUser",g,this);(0,t.default)(this,"customTracking",h,this)}model(e,t){if((0,r.isDestroying)(this))return
const{jobManager:i,nextBestActionManager:n}=t.data,{memberId:o}=this.authenticatedUser
if(!i){const e="profile.common.profile"
this.transitionToExternal(e,o)}return(0,c.hash)({jobManager:i,nextBestActionManager:n})}setupController(e,t){if((0,r.isDestroying)(this))return
super.setupController(e,t)
const i=(0,s.get)(t,"jobManager"),{jobPostingUrn:n,jobState:o}=(0,u.getJobPostingDataFromJobManager)(i)
this.customTracking.fireJobPostingImpressionEvent({jobPostingUrn:n,jobState:o,moduleKey:this.pageKey})}},g=(0,n.default)(m.prototype,"authenticatedUser",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,n.default)(m.prototype,"customTracking",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m)}))
define("hiring-opportunities/routes/manage",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/routing/route","@ember/service","rsvp","@ember/object","hiring-opportunities/utils/fetch-shared-jobs","global-utils/utils/urn-converter","hiring-opportunities/utils/constants","job-posting-modal/utils/constants","@glimmer/tracking","hiring-opportunities/utils/job-posting-eligibilities-fetcher"],(function(e,t,i,n,o,r,a,l,s,c,u,d,p,m,g,h){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var b,f,y,_,T,v,O,k,I,E,P
e.default=(b=(0,l.inject)("global-services@store-shim"),f=(0,l.inject)("@linkedin/ember-restli-graphql@graphql"),y=(0,l.inject)("jet"),_=(0,l.inject)("hiring-service@custom-tracking"),T=class extends a.default{constructor(){super(...arguments);(0,i.default)(this,"pageKey","flagship3_open_to_hiring_manage_profile_jobs");(0,t.default)(this,"storeShim",v,this);(0,t.default)(this,"graphql",O,this);(0,t.default)(this,"jet",k,this);(0,t.default)(this,"customTracking",I,this);(0,i.default)(this,"queryParams",{start:{refreshModel:!0},refresh:{refreshModel:!0}});(0,t.default)(this,"transitionedFrom",E,this);(0,t.default)(this,"cachedSharedJobsList",P,this)}model(e,t){if((0,r.isDestroying)(this))return
this.controller&&(0,c.get)(e,"refresh")&&(0,c.set)(e,"start",0)
this.transitionedFrom=(0,c.get)(t,"from.name")
this.cachedSharedJobsList=this.controller&&(0,c.get)(this.controller,"sharedJobsList.length")
const i=this.modelFor("application"),n=(0,d.convertUrnType)("identity/shared/dash-mini-profile",i.vieweeProfileUrn),o={start:(0,c.get)(e,"start")||0,recipe:p.JOB_SHARE_RECIPES.MANAGE_DASH_RECIPE},a=(0,u.fetchSharedJobsGraphQL)(this.graphql,this.jet,n,o)
return(0,s.hash)({sharedJobsList:a,jobEligibility:(0,h.fetchJobPostingEligibilities)(this.storeShim,this.graphql,!0)})}afterModel(e){if((0,r.isDestroying)(this))return
const t=(0,c.get)(e,"sharedJobsList.elements")
null!=t&&t.length||this.controller||this.transitionTo("hiring-opportunities.onboarding")}setupController(e,t){if((0,r.isDestroying)(this))return
super.setupController(e,t)
const i=(0,c.get)(t,"sharedJobsList.elements")||[],n=this.transitionedFrom&&this.transitionedFrom!==p.MANAGE_ROUTE&&this.cachedSharedJobsList&&this.cachedSharedJobsList!==i.length;(0===(null==i?void 0:i.length)||n)&&e.refreshProfileAndRefreshPhotoFrame()
const o=(0,c.get)(t,"jobEligibility.remainingSharingSlotsInOpenToHiring"),a=void 0!==o&&o<1
this.customTracking.initTrackingId()
this.customTracking.fireOnlineJobPostingEligibilityEvent()
this.customTracking.fireJobPostingImpressionEvent({moduleKey:this.pageKey,entryPoint:m.ENTRY_POINT.OPEN_TO_HIRING});(0,c.setProperties)(e,{trackingId:this.trackingId,sharedJobsList:i,reachedMaximumToShare:a,isShareJobModalOpen:!1,paging:(0,c.get)(t,"sharedJobsList.paging"),start:(0,c.get)(t,"sharedJobsList.paging.start"),refresh:!1,isEmptyStateModalOpen:0===(null==i?void 0:i.length)})}resetController(e,t){super.resetController(e,t)
t&&(0,c.setProperties)(e,{start:0,refresh:void 0})}},v=(0,n.default)(T.prototype,"storeShim",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,n.default)(T.prototype,"graphql",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,n.default)(T.prototype,"jet",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,n.default)(T.prototype,"customTracking",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,n.default)(T.prototype,"transitionedFrom",[g.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,n.default)(T.prototype,"cachedSharedJobsList",[g.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T)}))
define("hiring-opportunities/routes/management",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/routing/route","@ember/service","rsvp","hiring-opportunities/utils/fetch-job-posting","@ember/object","job-posting-shared/data/share-job-on-profile","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"],(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
e.default=(_=(0,l.inject)("jet"),T=(0,l.inject)("global-services@store-shim"),v=(0,l.inject)("authentication@authenticated-user"),O=(0,l.inject)("pem-tracking"),k=(0,l.inject)("hiring-service@custom-tracking"),I=(0,l.inject)("@linkedin/ember-restli-graphql@graphql"),E=class extends a.default{constructor(){super(...arguments);(0,t.default)(this,"jet",P,this);(0,t.default)(this,"storeShim",S,this);(0,t.default)(this,"authenticatedUser",A,this);(0,t.default)(this,"pemTracking",C,this);(0,t.default)(this,"customTracking",N,this);(0,t.default)(this,"graphql",j,this)}model(e){if((0,r.isDestroying)(this))return
const{jobId:t}=e,i=(0,c.fetchJobPostingGraphQL)(this.graphql,t)
return(0,s.hash)({jobPosting:i})}setupController(e,t){if((0,r.isDestroying)(this))return
super.setupController(e,t)
const i=(0,y.getJobPostingCompanyUrn)((0,u.get)(t,"jobPosting.companyDetails"))
i?(0,p.getVerificationStatus)({store:this.storeShim,normalizedCompanyUrn:i,degradations:[h.DEGRADATION_METADATA.OPEN_TO_HIRING_VERIFY_MEMBER_FOR_ORGANIZATION]}).then((t=>{if((0,r.isDestroying)(this))return
const{organizationMemberVerificationType:i,expiredEmailAddresses:n}=(0,u.getProperties)(t,"organizationMemberVerificationType","expiredEmailAddresses");(0,g.isEmployeeVerified)(i)?this.addJobAndTransition():(0,u.setProperties)(e,{expiredEmailAddresses:n,employeeVerificationState:{step:m.STEP_EMAIL_INPUT,isOpen:!0}})})).catch((e=>{if((0,r.isDestroying)(this))throw e
if(!e||!e.isAdapterError)throw e
var t,i,n
this.addJobAndTransition();(0,b.errorLogger)(this.jet,"hiring-opportunities/management#verifyEmailAndAddJobOnProfile",e,[f.JET_TAGS.EMPLOYEE_VERIFICATION],{callTreeId:null===(t=e.errors)||void 0===t||null===(i=t[0])||void 0===i||null===(n=i.meta)||void 0===n?void 0:n.callTreeId,shouldRethrow:!1})})):this.addJobAndTransition()}addJobAndTransition(){const e=(0,u.get)(this,"currentModel.jobPosting.entityUrn");(0,d.default)({jet:this.jet,store:this.storeShim,pemTracking:this.pemTracking,jobEntityUrns:[e],customTracking:this.customTracking}).then((()=>{if(!(0,r.isDestroying)(this)){this.controller.refreshOpportunityCard()
this.transitionTo("hiring-opportunities.manage")}})).catch((e=>{if((0,r.isDestroying)(this))throw e
if(e&&e.isAdapterError){const e="profile.common.profile"
return this.transitionToExternal(e,this.authenticatedUser.memberId)}throw e}))}},P=(0,n.default)(E.prototype,"jet",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,n.default)(E.prototype,"storeShim",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,n.default)(E.prototype,"authenticatedUser",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,n.default)(E.prototype,"pemTracking",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,n.default)(E.prototype,"customTracking",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,n.default)(E.prototype,"graphql",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E)}))
define("hiring-opportunities/routes/onboarding",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/routing/route","@ember/service","rsvp","@ember/object","hiring-opportunities/utils/fetch-jobs-not-on-profile","hiring-opportunities/utils/fetch-shared-jobs","global-utils/utils/urn-converter","hiring-opportunities/utils/constants","job-posting-modal/utils/constants","hiring-opportunities/utils/job-posting-eligibilities-fetcher"],(function(e,t,i,n,o,r,a,l,s,c,u,d,p,m,g,h){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var b,f,y,_,T,v,O,k,I,E,P,S,A
e.default=(b=(0,l.inject)("global-services@store-shim"),f=(0,l.inject)("@linkedin/ember-restli-graphql@graphql"),y=(0,l.inject)("lego@resolver"),_=(0,l.inject)("authentication@authenticated-user"),T=(0,l.inject)("jet"),v=(0,l.inject)("hiring-service@custom-tracking"),O=class extends a.default{constructor(){super(...arguments);(0,i.default)(this,"pageKey","flagship3_open_to_hiring_enrollment");(0,t.default)(this,"storeShim",k,this);(0,t.default)(this,"graphql",I,this);(0,t.default)(this,"legoResolver",E,this);(0,t.default)(this,"authenticatedUser",P,this);(0,t.default)(this,"jet",S,this);(0,t.default)(this,"customTracking",A,this)}model(e,t){if((0,r.isDestroying)(this))return
const i=this.modelFor("application"),n=(0,p.convertUrnType)("identity/shared/dash-mini-profile",i.vieweeProfileUrn),o={start:0,recipe:m.JOB_SHARE_RECIPES.MANAGE_DASH_RECIPE},a=this.legoResolver.fireLegoCall(m.INVITE_HIRING_PARTNERS_LEGO_CONFIG,!1,!0),l=(0,d.fetchSharedJobsGraphQL)(this.graphql,this.jet,n,o),c=(0,u.fetchJobsNotOnProfileGraphQL)(this.graphql)
return(0,s.hash)({sharedJobsList:l,jobsNotOnProfile:c,jobEligibility:null!=t&&t.from?{eligibleForOpenToHiringUpsell:!0}:(0,h.fetchJobPostingEligibilities)(this.storeShim,this.graphql,!0),inviteHiringPartnersLegoData:a})}afterModel(e){if((0,r.isDestroying)(this))return
const t=(0,c.get)(e,"sharedJobsList.elements"),i=(0,c.get)(e,"jobEligibility.eligibleForOpenToHiringUpsell")
if(null!=t&&t.length)return this.transitionTo("hiring-opportunities.manage")
if(!i){const e="profile.common.profile"
return this.transitionToExternal(e,this.authenticatedUser.memberId)}return{}}setupController(e,t){if((0,r.isDestroying)(this))return
super.setupController(e,t)
const i=(0,c.get)(t,"jobsNotOnProfile.elements")||[],n=(0,c.get)(t,"jobEligibility.remainingSharingSlotsInOpenToHiring")||m.SHARE_ON_PROFILE_MAXIMUM,o=null!=i&&i.length?g.FLOW_NAME.OPEN_TO_ENROLLMENT:g.FLOW_NAME.PROFILE_OPEN_TO_ENROLLMENT
this.customTracking.initTrackingId()
this.customTracking.fireOnlineJobPostingEligibilityEvent()
this.customTracking.fireJobPostingImpressionEvent({moduleKey:this.pageKey,entryPoint:g.ENTRY_POINT.OPEN_TO_HIRING});(0,c.setProperties)(e,{enrollmentFlow:o,jobsNotOnProfile:i,remainingSharingSlotsInOpenToHiring:n,isShareJobModalOpen:!0})}},k=(0,n.default)(O.prototype,"storeShim",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,n.default)(O.prototype,"graphql",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,n.default)(O.prototype,"legoResolver",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,n.default)(O.prototype,"authenticatedUser",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,n.default)(O.prototype,"jet",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,n.default)(O.prototype,"customTracking",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O)}))
define("hiring-opportunities/routes/posted-jobs",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/routing/route","@ember/service","rsvp","hiring-opportunities/utils/fetch-job-posting","hiring-opportunities/utils/fetch-jobs-not-on-profile"],(function(e,t,i,n,o,r,a,l,s,c,u){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var d,p,m
e.default=(d=(0,l.inject)("@linkedin/ember-restli-graphql@graphql"),p=class extends a.default{constructor(){super(...arguments);(0,t.default)(this,"graphql",m,this)}model(e){if((0,r.isDestroying)(this))return
const{jobId:t}=e,i=(0,c.fetchJobPostingGraphQL)(this.graphql,t),n=(0,u.fetchJobsNotOnProfileGraphQL)(this.graphql)
return(0,s.hash)({jobFromFeedPost:i,jobsNotOnProfile:n})}},m=(0,n.default)(p.prototype,"graphql",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p)}))
define("hiring-opportunities/routes/promote",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/routing/route","@ember/service","@ember/object","rsvp","hiring-opportunities/utils/get-job-posting-data-from-job-manager","job-posting-shared/data/fetch-job-posting-budget-recommendations","job-posting-shared/data/fetch-free-promotion-eligibilities"],(function(e,t,i,n,o,r,a,l,s,c,u,d,p){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var m,g,h,b,f,y,_