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

1399 строки
357 KiB
Plaintext

define("@glimmer/component/-private/base-component-manager",["exports","@babel/runtime/helpers/esm/defineProperty","@glimmer/component/-private/component"],(function(e,t,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=function(e,n,i){return class{static create(e){return new this(n(e))}constructor(n){(0,t.default)(this,"capabilities",i)
e(this,n)}createComponent(e,t){0
return new e(n(this),t.named)}getContext(e){return e}}}}))
define("@glimmer/component/-private/component",["exports","@babel/runtime/helpers/esm/defineProperty","@glimmer/component/-private/owner","@glimmer/component/-private/destroyables"],(function(e,t,n,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=e.ARGS_SET=void 0
e.ARGS_SET=void 0
0
e.default=class{constructor(e,i){(0,t.default)(this,"args",void 0)
0
this.args=i;(0,n.setOwner)(this,e)}get isDestroying(){return(0,i.isDestroying)(this)}get isDestroyed(){return(0,i.isDestroyed)(this)}willDestroy(){}}}))
define("@glimmer/component/-private/destroyables",["exports","ember"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.isDestroying=e.isDestroyed=void 0
e.isDestroying=t.default._isDestroying,e.isDestroyed=t.default._isDestroyed}))
define("@glimmer/component/-private/ember-component-manager",["exports","ember","@ember/object","@ember/application","@ember/component","@ember/runloop","@glimmer/component/-private/base-component-manager","@glimmer/component/-private/destroyables"],(function(e,t,n,i,r,o,a,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const{setDestroyed:l,setDestroying:c}=s,d=(0,r.capabilities)("3.13",{destructor:!0,asyncLifecycleCallbacks:!1,updateHook:!1}),u=t.default.destroy,p=t.default._registerDestructor
class m extends((0,a.default)(i.setOwner,i.getOwner,d)){createComponent(e,t){const n=super.createComponent(e,t)
p(n,(()=>{n.willDestroy()}))
return n}destroyComponent(e){u(e)}}0
e.default=m}))
define("@glimmer/component/-private/owner",["exports","@ember/application"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
Object.defineProperty(e,"setOwner",{enumerable:!0,get:function(){return t.setOwner}})}))
define("@glimmer/component/index",["exports","@ember/component","@glimmer/component/-private/ember-component-manager","@glimmer/component/-private/component"],(function(e,t,n,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
let r=i.default
0;(0,t.setComponentManager)((e=>new n.default(e)),r)
e.default=r}))
define("abi-shared/components/abi-form",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/classPrivateFieldGet","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","@linkedin/abi-js/src/index","tracked-toolbox","@glimmer/tracking","abi-shared/utils/imap-enabled-util","ember-lifeline","rsvp","abi-shared/utils/constants-base","global-utils/utils/keyboard-utils","ember-cli-pemberly-tracking/utils/tracking","@ember/runloop","@glimmer/component","@ember/service","@ember/object","@ember/debug","@ember/utils","@ember/destroyable","@ember/helper"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_,g,f,b,v,y,T,I,E,O){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var S,A,C,R,N,k,w,P,M,D,U,L,x,j,F,G,V,z,H,B,W,q,K,Y,Q,$,J,Z,X,ee,te,ne,ie,re,oe,ae,se,le,ce,de,ue,pe,me,he
e.default=(0,s.setComponentTemplate)((0,a.createTemplateFactory)({id:"vnomdq1C",block:'[[[1,"\\n"],[1," "],[18,1,[[28,[32,0],null,[["abookImportTransactionId","contactsFileName","disableSubmit","email","error","formattedProviders","isContactsFileNameEmpty","isFileUploadMode","isImapEnabled","isIweMode","isPasswordFieldRequired","isResolving","isQqmailImportModalOpen","isWorking","modalOpen","password","showConfirmationToast","showPassword","clearErrors","closeLearnMore","closeQqMailImportModal","dismissABIForm","handleQqmailUploadBtnClick","handleQqmailFileChange","onEmailInviteMode","openContactsFileInput","openLearnMore","openQqmailImportModal","resolveEmail","selectProvider","startAbi","toggleOtherEmailMode","toggleShowPassword","uploadSelectedFile","updateContactsFileName","transformEnterKeyPressToOpenLearnMoreAction"],[[30,0,["abookImportTransactionId"]],[30,0,["contactsFileName"]],[30,0,["disableSubmit"]],[30,0,["email"]],[30,0,["error"]],[30,0,["formattedProviders"]],[30,0,["isContactsFileNameEmpty"]],[30,0,["isFileUploadMode"]],[30,0,["isImapEnabled"]],[30,0,["isIweMode"]],[30,0,["isPasswordFieldRequired"]],[30,0,["isResolving"]],[30,0,["isQqmailImportModalOpen"]],[30,0,["isWorking"]],[30,0,["modalOpen"]],[30,0,["password"]],[30,0,["showConfirmationToast"]],[30,0,["showPassword"]],[30,0,["clearErrors"]],[30,0,["closeLearnMore"]],[30,0,["closeQqMailImportModal"]],[30,0,["dismissABIForm"]],[30,0,["handleQqmailUploadBtnClick"]],[30,0,["handleQqmailFileChange"]],[30,0,["onEmailInviteMode"]],[30,0,["openContactsFileInput"]],[30,0,["openLearnMore"]],[30,0,["openQqmailImportModal"]],[30,0,["resolveEmail"]],[30,0,["selectProvider"]],[30,0,["startAbi"]],[30,0,["toggleOtherEmailMode"]],[30,0,["toggleShowPassword"]],[30,0,["uploadSelectedFile"]],[30,0,["updateContactsFileName"]],[30,0,["transformEnterKeyPressToOpenLearnMoreAction"]]]]]]],[1,"\\n "]],["&default"],false,["yield"]]',moduleName:"abi-shared/components/abi-form.gjs",scope:()=>[O.hash],isStrictMode:!0}),(S=(0,v.inject)("abi-shared@abi-tracking"),A=(0,v.inject)("heathrow@heathrow"),C=(0,v.inject)("router"),R=(0,v.inject)("i18n"),N=(0,v.inject)("locale"),k=(0,v.inject)("persistent-toast-manager@persistent-toast-manager"),w=(0,v.inject)("tracking"),P=(0,v.inject)("abi-shared@abi-processing"),M=(0,v.inject)("abook-upload-service@abook-upload"),D=(0,c.localCopy)("args.prefillEmail.emailAddress",""),U=(0,c.localCopy)("args.inviteList"),L=(he=new WeakMap,class extends b.default{get abookImportTransactionId(){return this.args.transactionId||(0,i.default)(this,he)}get i18nTemplate(){return this.constructor}get isPromo(){return this.args.isPromo}get passwordEmpty(){return(0,I.isEmpty)(this.password)}get disableSubmit(){return this.isPasswordFieldRequired?this.passwordEmpty:!this.isIweMode&&!this.emailResolved}get isSubmitting(){return this.isResolving&&this.isContinue}get isContactsFileNameEmpty(){return(0,I.isEmpty)(this.contactsFileName)}get emailProvider(){var e,t
return this.abiTracking.getEmailProvider(null===(e=this.args.prefillEmail)||void 0===e||null===(t=e.emailProvider)||void 0===t?void 0:t.emailProviderType)}get errorMsgTitle(){return this.i18n.lookupTranslation(this.i18nTemplate,h.ABI_ERRORS_TO_MSGS.ERROR_TITLE)()}get successMsgTitle(){return this.i18n.lookupTranslation(this.i18nTemplate,h.ABI_ERRORS_TO_MSGS.SUCCESS_TITLE)()}get showConfirmationToast(){return this.args.acceptInvite||this.args.sendInvite}_setShouldSkipImport(){this.heathrow.organicAbiShouldSkipImport().then((e=>{this.isDestroying||(this.shouldSkipImport=e)})).catch((e=>{if((0,E.isDestroying)(this))throw e
this.shouldSkipImport=!1
throw e}))}_handleGenericError(){this.abiInstance.closeOauthPopup()
this._disableLoadingModal()
this.isResolving=!1
const e=this.i18n.lookupTranslation(this.i18nTemplate,h.ABI_ERRORS_TO_MSGS.INTERNAL_SERVER_ERROR)()
this._showNotificationError(e)}initializeComponent(){this.isPromo&&(0,f.scheduleOnce)("afterRender",this,"_setShouldSkipImport")
this.didInsertElementOverride&&this.didInsertElementOverride()}_initAbi(){return new l.Abi(m.Promise)}constructor(){super(...arguments);(0,t.default)(this,"abiTracking",x,this);(0,t.default)(this,"heathrow",j,this);(0,t.default)(this,"router",F,this);(0,t.default)(this,"i18n",G,this);(0,t.default)(this,"locale",V,this);(0,t.default)(this,"persistentToastManager",z,this);(0,t.default)(this,"tracking",H,this);(0,t.default)(this,"abiProcessing",B,this);(0,t.default)(this,"abookUpload",W,this);(0,t.default)(this,"email",q,this)
he.set(this,{writable:!0,value:(0,g.generateTrackingId)()});(0,t.default)(this,"password",K,this);(0,t.default)(this,"inviteList",Y,this);(0,n.default)(this,"isImportStarted",!1);(0,n.default)(this,"isImportInProgress",!1);(0,t.default)(this,"isWorking",Q,this);(0,t.default)(this,"isContinue",$,this);(0,t.default)(this,"passwordRequired",J,this);(0,t.default)(this,"isPasswordFieldRequired",Z,this);(0,t.default)(this,"abiSubmitPressed",X,this);(0,t.default)(this,"isResolving",ee,this);(0,t.default)(this,"shouldSkipImport",te,this);(0,t.default)(this,"isIweMode",ne,this);(0,t.default)(this,"emailResolved",ie,this);(0,t.default)(this,"error",re,this);(0,t.default)(this,"isByChiclet",oe,this);(0,t.default)(this,"isFileUploadMode",ae,this);(0,t.default)(this,"contactsFileName",se,this);(0,t.default)(this,"isQqmailImportModalOpen",le,this);(0,t.default)(this,"showPassword",ce,this);(0,t.default)(this,"currentProvider",de,this);(0,t.default)(this,"formattedProviders",ue,this);(0,t.default)(this,"modalOpen",pe,this);(0,t.default)(this,"isImapEnabled",me,this)
this.abiInstance=this.args.abiInstance??this._initAbi();(0,I.isEmpty)(this.email)||this._resolutionHandlerPromise()
this.args.emailPassed&&this._startAbiPromise()
this.initOverride&&this.initOverride()
this.isImapEnabled=(0,u.default)(this.locale)
this.initializeComponent()}onImpression(){if(this.onImpressionOverride)this.onImpressionOverride()
else{const{abookImportTransactionId:e}=this,t={autoFilledEmail:this.args.prefillEmail&&"true",emailProvider:this.emailProvider,socialProofCount:this.args.socialProofCount??0,abookImportTransactionId:e},{abiTracking:n}=this
n.fireImpressionTracking(t)
const i=this.args.abiEntryPoint
if(i||this.isPromo){const t=this.shouldSkipImport?h.SUGGESTED_ROUTE.RESULT_LANDING:h.SUGGESTED_ROUTE.INTRO
n.fireAbiTracking(i,t,e)}}}willDestroy(){super.willDestroy(...arguments)
const e=this.abiInstance
e&&e.closeOauthPopup()}sendIwe(){var e
let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.inviteList
const n=t?t.replace(/\s+/g,"").split(","):[],i=(0,g.generateTrackingId)(),r=(null===(e=this.locale)||void 0===e?void 0:e.requestIpCountryCode)??h.DEFAULT_COUNTRY_CODE,{abookImportTransactionId:o}=this,a=n.filter((e=>h.EMAIL_PATTERN.test(e)))
if(a.length<1){this.error=h.ABI_ERRORS_TO_MSGS.INVALID_EMAIL
return!1}const s=a.length,l=this.sendInvitationsByEmails(a,{uploadTransactionId:i,defaultCountryCode:r})
this.isWorking=!0
return l.then((()=>{if(!(0,E.isDestroying)(this)){this._fireIweTracking(o,s)
this.isWorking=!1}}))}_linkToAbiResult(e){this.router.transitionTo(h.ABI_ROUTES.RESULTS,{queryParams:e})}_disableLoadingModal(){this.isWorking=!1
this.isContinue=!1}_passwordRequiredHandler(){if(this.isByChiclet)this.isByChiclet=!this.isByChiclet
else{this.isPasswordFieldRequired=!0
this.passwordRequired=!0
this.emailResolved=!0
this.isResolving=!1}}_getDomainFromEmail(e){return null==e?void 0:e.replace(/.*@/,"")}_isImportingWithPrefillEmail(e){var t
const n=null===(t=this.args.prefillEmail)||void 0===t?void 0:t.emailAddress
return!n||n===e}_handleValidateEmailSuccess(e){e.isOauth&&this.isResolving?this._resolutionCompleteHandlerPromise():this._passwordRequiredHandler()
return e}_isEmailValidationError(e){const{CONSTANTS:{EMAIL_VALIDATION_ERRORS:t}}=this.abiInstance
return e===t.UNSUPPORTED_DOMAIN||e===t.INVALID_EMAIL}_handleValidateEmailError(e){const{CONSTANTS:{EMAIL_VALIDATION_ERRORS:t}}=this.abiInstance,n=this.i18n
let i=null
this._disableLoadingModal()
if(e===t.UNSUPPORTED_DOMAIN){i=h.ABI_ERRORS_TO_MSGS.UNSUPPORTED_DOMAIN
this._resolutionCompleteHandlerPromise()}else if(e===t.INVALID_EMAIL){i=h.ABI_ERRORS_TO_MSGS.INVALID_EMAIL
this.isResolving=!1
this.emailResolved=!1
this.error=i}const r=n.lookupTranslation(this.i18nTemplate,i)()
this._showNotificationError(r)}_resolutionHandlerPromise(){this.isResolving=!0
const e=this.email
if(!h.EMAIL_PATTERN.test(e)){this.isResolving=!1
this.emailResolved=!1
this.error=h.ABI_ERRORS_TO_MSGS.INVALID_EMAIL
return(0,m.resolve)()}return this._shouldTransitionToSuggestedRoutePromise(e)?this.router.transitionTo(h.ABI_ROUTES.RESULTS,{queryParams:{transactionId:this.abookImportTransactionId,isOrganic:!0}}):this.abiProcessing.validateEmail({emailAddress:e,abiInstance:this.abiInstance}).then(this._handleValidateEmailSuccess.bind(this)).catch((e=>{if((0,E.isDestroying)(this))throw e
if(!this._isEmailValidationError(e)){this._handleGenericError()
throw e}this._handleValidateEmailError(e)}))}_shouldTransitionToSuggestedRoutePromise(e){if(this.abiSubmitPressed&&this._isImportingWithPrefillEmail(e)){this.abiSubmitPressed=!this.abiSubmitPressed
return this.shouldSkipImport}return!1}_startAbiPromise(){this.isContinue=!0
return this._resolutionHandlerPromise().then((e=>{if(!(0,E.isDestroying)(this))return e&&e.emailAddress?this._startAuthFlowPromise(e):(0,m.resolve)()}))}_resolutionCompleteHandlerPromise(){this.emailResolved=!0
this.isPasswordFieldRequired=!1
this.isResolving=!1}_isEmailImportError(e){const{CONSTANTS:{IMPORT_ERRORS:t}}=this.abiInstance
return e===t.OAUTH_VALIDATION_TIMED_OUT||e===t.ZERO_CONTACTS_TO_IMPORT||e===t.INVALID_CREDENTIALS||e===t.IMPORT_ERROR_OTHER||e===t.EXCEEDED_MAX_REQUEST_RETRIES}_handleEmailImportError(e){const{CONSTANTS:{IMPORT_ERRORS:t}}=this.abiInstance,{i18n:n}=this
let i
e===t.ZERO_CONTACTS_TO_IMPORT?i=h.ABI_ERRORS_TO_MSGS.ZERO_CONTACTS_TO_IMPORT:e===t.INVALID_CREDENTIALS?i=h.ABI_ERRORS_TO_MSGS.OAUTH_REQUIRED:e===t.EXCEEDED_MAX_REQUEST_RETRIES?i=h.ABI_ERRORS_TO_MSGS.TOO_MANY_REQUESTS:e===t.IMPORT_ERROR_OTHER&&(i=h.ABI_ERRORS_TO_MSGS.INTERNAL_SERVER_ERROR)
this._disableLoadingModal()
if(i){const e=n.lookupTranslation(this.i18nTemplate,i)()
this._showNotificationError(e)}}_handleEmailImportSuccess(e){let{importTicketId:t}=e
const n=this.args.afterRoute&&"undefined"!==this.args.afterRoute?this.afterRoute:h.ABI_ROUTES.DEFAULT_AFTER_ROUTE
this._linkToAbiResult({afterRoute:n,importTaskHandle:t,transactionId:this.abookImportTransactionId,isOrganic:!0})}_startAuthFlowPromise(e){const t=this.password||"",{isPasswordFieldRequired:n}=this,i=n&&""!==t,{abookImportTransactionId:r}=this,o={...e,abookImportTransactionId:r}
if(!n||i){this.isWorking=!0
this.tracking.fireInteractionEvent("continue","SHORT_PRESS")
n&&(o.password=t)
return this.abiProcessing.startEmailContactsImport({providerData:o,abiInstance:this.abiInstance}).then(this._handleEmailImportSuccess.bind(this)).catch((e=>{if((0,E.isDestroying)(this))throw e
if(!this._isEmailImportError(e)){this._handleGenericError()
throw e}this._handleEmailImportError(e)}))}return(0,m.resolve)()}startChickletAuthFlow(e){const{emailOrigin:t}=e,n=h.CHICLET_ATTRS[t],i=n&&n.trackingId,r=this.abiInstance
if(!i||!r)return(0,m.resolve)()
let o=""
t&&(o=`qalinkedindummy@${t.toString().toLowerCase()}.com`)
const{abookImportTransactionId:a}=this
this.tracking.fireInteractionEvent(i)
const s={abookImportTransactionId:a,emailAddress:o,providerName:t}
return this.abiProcessing.startEmailContactsImport({providerData:s,abiInstance:this.abiInstance}).then(this._handleEmailImportSuccess.bind(this)).catch((e=>{if((0,E.isDestroying)(this))throw e
if(!this._isEmailImportError(e)){this._handleGenericError()
throw e}this._handleEmailImportError(e)}))}_resetIweMode(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]
this.isIweMode=!1
this.isPasswordFieldRequired=e}_showNotificationSuccess(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.successMsgTitle
this.persistentToastManager.success({message:e,title:t})}_showNotificationError(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.errorMsgTitle
this.persistentToastManager.error({message:e,title:t})}_fireIweTracking(e,t){const n=this.abiTracking
n.fireImportSubmitEvent(e)
n.fireStandardImportInvitationImpressionEvent(e,t)
n.fireGuestImportInvitationCreateEvent(e,t)}handleUploadStart(){this.clearErrors()
this.isWorking=!0
this.isQqmailImportModalOpen=!1}handleUploadSuccess(e){this._linkToAbiResult(e)}handleUploadError(e){const t=e&&h.FILE_UPLOAD_ERRORS[e]||h.FILE_UPLOAD_ERRORS.DEFAULT
this._disableLoadingModal()
this.error=t}isFileSupported(e,t){if(!e||!e.value)return!1
const n=e.value.split("."),i=n[n.length-1]
return"QQ_MAIL"===t?"vcf"===i:h.SUPPORTED_CONTACTS_FILE_FORMATS.includes(i)}setFileUploadMode(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]
this.isFileUploadMode=e
this.clearErrors()}_formattedProviders(e){this.formattedProviders=e.map((e=>{const{emailOrigin:t}=e,n=h.CHICLET_ATTRS[t]
return{modelProvider:e,emailOrigin:t,emailProvider:{emailProviderClassName:n&&n.iconName?n.iconName:"envelope"}}}))}_sendToggleOtherEmailMode(e){this.toggleOtherEmailMode(e.passwordRequired)}_clickContactsFileInput(){this.element.querySelector("#contacts-file-input").click()}_fireImpression(e){const t={autoFilledEmail:this.args.prefillEmail&&"true",emailProvider:this.emailProvider,socialProofCount:this.args.socialProofCount??0,abookImportTransactionId:e}
this.abiTracking.fireImpressionTracking(t)}_fireEntryImpression(e){const t=(this.router.currentRouteName||"").replace("mynetwork.",""),n=this.args.abiEntryPoint||h.ABI_ENTRY_POINT_ROUTE_MAP.mynetwork[t]
this.abiTracking.fireAbiTracking(n,h.SUGGESTED_ROUTE.RESULT_LANDING,e)}clearErrors(){this.error=!1}resolveEmailPromise(e){this.email=e.target.value
this.isByChiclet=!1
this.clearErrors()
this.email.trim()&&(0,p.debounceTask)(this,"_resolutionHandlerPromise",(0,p.getTimeoutOrTestFallback)(h.TIMEOUT_BEFORE_EMAIL_RESOLVE))}startAbi(){const e=this.isPasswordFieldRequired
if(!e||this.password){e||this.abiInstance.openOauthPopup()
this.abiSubmitPressed=!this.abiSubmitPressed
this._startAbiPromise()}}openLearnMore(){this.modalOpen=!0
this.tracking.fireInteractionEvent("learn_more","SHORT_PRESS")}closeLearnMore(){this.modalOpen=!1}dismissABIForm(){const e=this.args.onDismiss
"function"==typeof e&&e()}handleQqmailUploadBtnClick(){document.querySelector("#qqmail-upload-input").click()}handleQqmailFileChange(){const e=document.querySelector("#qqmail-upload-input")
this.startContactsFileUpload(e,"QQ_MAIL")}selectProvider(e){var t
this.isByChiclet=!0
this.currentProvider=e
const n=null===(t=e.emailProvider)||void 0===t?void 0:t.emailProviderType,{emailOrigin:i}=e
if("GAAP"!==n)if("UNSUPPORTED"!==n||"QQ"!==i){this._resetIweMode()
this.isWorking=!0
this.setFileUploadMode(!1)
this.startChickletAuthFlow(e)}else{this.setFileUploadMode(!0)
this.openQqmailImportModal()
this.tracking.fireInteractionEvent(h.CHICLET_ATTRS.QQ.trackingId)}else{this.setFileUploadMode(!1);(0,f.scheduleOnce)("afterRender",this,this._sendToggleOtherEmailMode,{passwordRequired:!0})}}toggleOtherEmailMode(e){this.setFileUploadMode(!1)
this._resetIweMode(e)
this.tracking.fireInteractionEvent(h.TRACK_OTHER_EMAIL)}toggleShowPassword(){this.showPassword=!this.showPassword}onEmailInviteMode(){this.setFileUploadMode(!1)
this.tracking.fireInteractionEvent("invite_by_email")
this.isIweMode=!0
this.isPasswordFieldRequired=!1;(0,f.schedule)("afterRender",(()=>{const e=document.querySelector(".mn-abi-form__container")
e&&e.focus()}))}startContactsFileUpload(e){var t
let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"OTHER"
const i=e.files&&e.files[0],r=null===(t=this.args.fileUploadToken)||void 0===t?void 0:t.uploadToken,{abookImportTransactionId:o}=this
this.handleUploadStart()
this.abiTracking.fireImportSubmitEvent(o)
this.isFileSupported(e,n)?this.abookUpload.uploadContactsFile(i,r,o,n).then(this.handleUploadSuccess.bind(this)).catch((e=>{if((0,E.isDestroying)(this))throw e
this.handleUploadError(e)
if(!h.FILE_UPLOAD_ERRORS[e])throw e})):this.handleUploadError(h.ABI_ERROR_TYPES.INVALID_INPUT)}openContactsFileInput(){this.setFileUploadMode(!0);(0,f.scheduleOnce)("afterRender",this,this._clickContactsFileInput)}uploadSelectedFile(){const e=document.querySelector("#contacts-file-input")
this.startContactsFileUpload(e,"OTHER")}updateContactsFileName(e){const t=e.testingFileInput||e.target,n=t.value&&t.value.split(/(\|\/)/g).pop()
this.contactsFileName=n||""}closeQqMailImportModal(){this.isQqmailImportModalOpen=!1}openQqmailImportModal(){this.isQqmailImportModalOpen=!0}transformEnterKeyPressToOpenLearnMoreAction(e){(0,_.isEnterKey)(e)&&this.openLearnMore()}}),x=(0,r.default)(L.prototype,"abiTracking",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,r.default)(L.prototype,"heathrow",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,r.default)(L.prototype,"router",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=(0,r.default)(L.prototype,"i18n",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,r.default)(L.prototype,"locale",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,r.default)(L.prototype,"persistentToastManager",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=(0,r.default)(L.prototype,"tracking",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,r.default)(L.prototype,"abiProcessing",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W=(0,r.default)(L.prototype,"abookUpload",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=(0,r.default)(L.prototype,"email",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K=(0,r.default)(L.prototype,"password",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Y=(0,r.default)(L.prototype,"inviteList",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q=(0,r.default)(L.prototype,"isWorking",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=(0,r.default)(L.prototype,"isContinue",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),J=(0,r.default)(L.prototype,"passwordRequired",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Z=(0,r.default)(L.prototype,"isPasswordFieldRequired",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),X=(0,r.default)(L.prototype,"abiSubmitPressed",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ee=(0,r.default)(L.prototype,"isResolving",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),te=(0,r.default)(L.prototype,"shouldSkipImport",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ne=(0,r.default)(L.prototype,"isIweMode",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ie=(0,r.default)(L.prototype,"emailResolved",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),re=(0,r.default)(L.prototype,"error",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oe=(0,r.default)(L.prototype,"isByChiclet",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ae=(0,r.default)(L.prototype,"isFileUploadMode",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),se=(0,r.default)(L.prototype,"contactsFileName",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),le=(0,r.default)(L.prototype,"isQqmailImportModalOpen",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ce=(0,r.default)(L.prototype,"showPassword",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),de=(0,r.default)(L.prototype,"currentProvider",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ue=(0,r.default)(L.prototype,"formattedProviders",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pe=(0,r.default)(L.prototype,"modalOpen",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),me=(0,r.default)(L.prototype,"isImapEnabled",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,r.default)(L.prototype,"sendIwe",[y.action],Object.getOwnPropertyDescriptor(L.prototype,"sendIwe"),L.prototype),(0,r.default)(L.prototype,"clearErrors",[y.action],Object.getOwnPropertyDescriptor(L.prototype,"clearErrors"),L.prototype),(0,r.default)(L.prototype,"resolveEmailPromise",[y.action],Object.getOwnPropertyDescriptor(L.prototype,"resolveEmailPromise"),L.prototype),(0,r.default)(L.prototype,"startAbi",[y.action],Object.getOwnPropertyDescriptor(L.prototype,"startAbi"),L.prototype),(0,r.default)(L.prototype,"openLearnMore",[y.action],Object.getOwnPropertyDescriptor(L.prototype,"openLearnMore"),L.prototype),(0,r.default)(L.prototype,"closeLearnMore",[y.action],Object.getOwnPropertyDescriptor(L.prototype,"closeLearnMore"),L.prototype),(0,r.default)(L.prototype,"dismissABIForm",[y.action],Object.getOwnPropertyDescriptor(L.prototype,"dismissABIForm"),L.prototype),(0,r.default)(L.prototype,"handleQqmailUploadBtnClick",[y.action],Object.getOwnPropertyDescriptor(L.prototype,"handleQqmailUploadBtnClick"),L.prototype),(0,r.default)(L.prototype,"handleQqmailFileChange",[y.action],Object.getOwnPropertyDescriptor(L.prototype,"handleQqmailFileChange"),L.prototype),(0,r.default)(L.prototype,"selectProvider",[y.action],Object.getOwnPropertyDescriptor(L.prototype,"selectProvider"),L.prototype),(0,r.default)(L.prototype,"toggleOtherEmailMode",[y.action],Object.getOwnPropertyDescriptor(L.prototype,"toggleOtherEmailMode"),L.prototype),(0,r.default)(L.prototype,"toggleShowPassword",[y.action],Object.getOwnPropertyDescriptor(L.prototype,"toggleShowPassword"),L.prototype),(0,r.default)(L.prototype,"onEmailInviteMode",[y.action],Object.getOwnPropertyDescriptor(L.prototype,"onEmailInviteMode"),L.prototype),(0,r.default)(L.prototype,"startContactsFileUpload",[y.action],Object.getOwnPropertyDescriptor(L.prototype,"startContactsFileUpload"),L.prototype),(0,r.default)(L.prototype,"openContactsFileInput",[y.action],Object.getOwnPropertyDescriptor(L.prototype,"openContactsFileInput"),L.prototype),(0,r.default)(L.prototype,"uploadSelectedFile",[y.action],Object.getOwnPropertyDescriptor(L.prototype,"uploadSelectedFile"),L.prototype),(0,r.default)(L.prototype,"updateContactsFileName",[y.action],Object.getOwnPropertyDescriptor(L.prototype,"updateContactsFileName"),L.prototype),(0,r.default)(L.prototype,"closeQqMailImportModal",[y.action],Object.getOwnPropertyDescriptor(L.prototype,"closeQqMailImportModal"),L.prototype),(0,r.default)(L.prototype,"openQqmailImportModal",[y.action],Object.getOwnPropertyDescriptor(L.prototype,"openQqmailImportModal"),L.prototype),(0,r.default)(L.prototype,"transformEnterKeyPressToOpenLearnMoreAction",[y.action],Object.getOwnPropertyDescriptor(L.prototype,"transformEnterKeyPressToOpenLearnMoreAction"),L.prototype),L))}))
define("abi-shared/components/cards/guest-no-icon-card",["exports","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@ember/template-factory","@ember/helper","@glimmer/component","@ember/object","@ember/component","@ember/modifier","ember-cli-pemberly-i18n/helpers/t","global-helpers/helpers/truncate-text"],(function(e,t,n,i,r,o,a,s,l,c){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var d
e.default=(0,a.setComponentTemplate)((0,n.createTemplateFactory)({id:"F+kPD5CF",block:'[[[1,"\\n"],[1," "],[10,0],[14,0,"mn-abi-result-card__main-component"],[12],[1,"\\n "],[10,0],[14,0,"mn-abi-result-card__cell"],[12],[1,"\\n "],[8,[32,0],[[16,1,[30,1]]],[["@type","@checked"],["checkbox",[30,2]]],null],[1,"\\n "],[11,"label"],[16,"for",[30,1]],[24,0,"mn-abi-result-card__name-label"],[4,[32,1],["click",[30,0,["clickContact"]]],null],[12],[1,"\\n "],[10,0],[14,0,"mn-abi-result-card__name-label-screen-reader"],[12],[1,"\\n"],[41,[30,3],[[[1," "],[1,[28,[32,2],["i18n_fmt_name","abi-shared/components/cards/guest-no-icon-card"],[["fullName"],[[30,3]]]]],[1,"\\n"]],[]],[[[41,[30,4],[[[1," "],[1,[28,[32,3],[[30,4]],[["length"],[40]]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,2],["i18n_no_name","abi-shared/components/cards/guest-no-icon-card"],null]],[1,"\\n "]],[]]]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"mn-abi-result-card__cell"],[14,"data-result-card-cell-details","true"],[12],[1,"\\n"],[41,[30,3],[[[1," "],[10,"h3"],[14,0,"mn-abi-result-card__name t-16 t-black t-normal m0"],[12],[1,"\\n "],[1,[28,[32,3],[[28,[32,2],["i18n_fmt_name","abi-shared/components/cards/guest-no-icon-card"],[["fullName"],[[30,3]]]]],[["length","useHtmlSafe"],[25,true]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,"data-result-card-cell-title","true"],[14,0,"t-black t-normal"],[12],[1,"\\n "],[1,[28,[32,3],[[52,[30,5],[30,5],[30,4]]],[["length"],[40]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@checkboxId","@checked","@name","@title","@occupation"],false,["if"]]',moduleName:"abi-shared/components/cards/guest-no-icon-card.gjs",scope:()=>[a.Input,s.on,l.default,c.default],isStrictMode:!0}),(d=class extends r.default{clickContact(e){e.stopPropagation()}},(0,t.default)(d.prototype,"clickContact",[o.action],Object.getOwnPropertyDescriptor(d.prototype,"clickContact"),d.prototype),d))}))
define("abi-shared/components/cards/member-card",["exports","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@ember/template-factory","@glimmer/component","@ember/object","@ember/component","@ember/modifier","@ember/helper","ember-cli-pemberly-i18n/helpers/t","ember-vector-images/components/lazy-image","global-helpers/helpers/truncate-text","ember-line-clamp/components/line-clamp"],(function(e,t,n,i,r,o,a,s,l,c,d,u){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var p
e.default=(0,o.setComponentTemplate)((0,n.createTemplateFactory)({id:"s78sMPD8",block:'[[[1,"\\n"],[1," "],[10,0],[14,0,"mn-abi-result-card__main-component"],[12],[1,"\\n "],[10,0],[14,0,"mn-abi-result-card__cell-v2 absolute p0 m0"],[12],[1,"\\n "],[8,[32,0],[[16,1,[30,1]]],[["@type","@checked"],["checkbox",[30,2]]],null],[1,"\\n "],[11,"label"],[16,"for",[30,1]],[24,0,"mn-abi-result-card__name-label"],[4,[32,1],["click",[30,0,["clickContact"]]],null],[12],[1,"\\n "],[10,0],[14,0,"mn-abi-result-card__name-label-screen-reader"],[15,"aria-label",[28,[32,2],[[52,[30,3],[28,[32,3],["i18n_fmt_name","abi-shared/components/cards/member-card"],[["fullName"],[[30,3]]]],[28,[32,3],["i18n_no_name","abi-shared/components/cards/member-card"],null]],", ",[52,[30,4],[30,4],[30,5]]],null]],[12],[1,"\\n "],[1,[52,[30,3],[28,[32,3],["i18n_fmt_name","abi-shared/components/cards/member-card"],[["fullName"],[[30,3]]]],[28,[32,3],["i18n_no_name","abi-shared/components/cards/member-card"],null]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"mn-abi-result-card__cell"],[12],[1,"\\n "],[8,[32,4],null,[["@alt","@image","@desiredWidth","@class","@ghostType"],[[28,[32,3],["i18n_image_full_name","abi-shared/components/cards/member-card"],[["member"],[[30,3]]]],[30,6],100,"EntityPhoto-circle-6","person"]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"mn-abi-result-card__cell"],[12],[1,"\\n "],[10,"h3"],[14,0,"mn-abi-result-card__name t-16 t-black t-bold m0"],[12],[1,"\\n "],[1,[28,[32,5],[[28,[32,3],["i18n_fmt_name","abi-shared/components/cards/member-card"],[["fullName"],[[30,3]]]]],[["length","useHtmlSafe"],[25,true]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"mn-abi-result-card__body"],[12],[1,"\\n "],[8,[32,6],[[24,0,"t-14 t-black--light t-normal text-align-center full-width"]],[["@text","@lines","@interactive","@tagName"],[[52,[30,4],[30,4],[30,5]],2,false,"p"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@checkboxId","@checked","@name","@occupation","@title","@picture"],false,["if"]]',moduleName:"abi-shared/components/cards/member-card.gjs",scope:()=>[o.Input,a.on,s.concat,l.default,c.default,d.default,u.default],isStrictMode:!0}),(p=class extends i.default{clickContact(e){e.stopPropagation()}},(0,t.default)(p.prototype,"clickContact",[r.action],Object.getOwnPropertyDescriptor(p.prototype,"clickContact"),p.prototype),p))}))
define("abi-shared/components/cards/member-no-icon-card",["exports","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@ember/template-factory","@ember/helper","@glimmer/component","@ember/object","@ember/component","@ember/modifier","ember-cli-pemberly-i18n/helpers/t","ember-vector-images/components/lazy-image","global-helpers/helpers/truncate-text"],(function(e,t,n,i,r,o,a,s,l,c,d){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var u
e.default=(0,a.setComponentTemplate)((0,n.createTemplateFactory)({id:"XTHGNaKC",block:'[[[1,"\\n"],[1," "],[11,0],[24,0,"mn-abi-result-card__main-component"],[17,1],[12],[1,"\\n "],[10,0],[14,0,"mn-abi-result-card__cell"],[12],[1,"\\n "],[8,[32,0],[[16,1,[30,2]],[4,[32,1],["click",[30,0,["clickContact"]]],null]],[["@type","@checked"],["checkbox",[30,3]]],null],[1,"\\n "],[10,"label"],[15,"for",[29,[[30,2]]]],[14,0,"mn-abi-result-card__name-label"],[12],[1,"\\n"],[41,[30,4],[[[1," "],[1,[28,[32,2],["i18n_fmt_name","abi-shared/components/cards/member-no-icon-card"],[["fullName"],[[30,4]]]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,2],["i18n_no_name","abi-shared/components/cards/member-no-icon-card"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"mn-abi-result-card__cell"],[12],[1,"\\n "],[8,[32,3],null,[["@alt","@image","@desiredWidth","@class","@ghostType"],[[28,[32,2],["i18n_image_full_name","abi-shared/components/cards/member-no-icon-card"],[["member"],[[30,4]]]],[30,5],100,"EntityPhoto-circle-4","person"]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"mn-abi-result-card__cell"],[12],[1,"\\n "],[10,"h3"],[14,0,"mn-abi-result-card__name t-16 t-black t-normal m0"],[12],[1,"\\n "],[1,[28,[32,4],[[28,[32,2],["i18n_fmt_name","abi-shared/components/cards/member-no-icon-card"],[["fullName"],[[30,4]]]]],[["length","useHtmlSafe"],[25,true]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[12],[1,"\\n "],[1,[28,[32,4],[[52,[30,6],[30,6],[30,7]]],[["length"],[40]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@checkboxId","@checked","@name","@picture","@occupation","@title"],false,["if"]]',moduleName:"abi-shared/components/cards/member-no-icon-card.gjs",scope:()=>[a.Input,s.on,l.default,c.default,d.default],isStrictMode:!0}),(u=class extends r.default{clickContact(e){e.stopPropagation()}},(0,t.default)(u.prototype,"clickContact",[o.action],Object.getOwnPropertyDescriptor(u.prototype,"clickContact"),u.prototype),u))}))
define("abi-shared/components/contact-list",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/classPrivateFieldSet","@babel/runtime/helpers/esm/classPrivateFieldGet","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","urn-utils","@glimmer/tracking","tracked-built-ins","abi-shared/utils/constants-base","@ember/object","@ember/service","@glimmer/component","scaffold-layout/components/toolbar","@ember/modifier","ember-cli-pemberly-i18n/helpers/t","artdeco-button/components/artdeco-button","@ember/helper","scaffold-finite-scroll/components/finite-scroll","global-helpers/helpers/not","global-helpers/helpers/includes","abi-shared/components/cards/guest-no-icon-card","abi-shared/components/cards/member-card","abi-shared/components/cards/member-no-icon-card"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_,g,f,b,v,y,T,I,E,O,S,A){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var C,R,N,k,w,P,M,D,U,L,x,j,F,G,V,z,H
e.default=(0,l.setComponentTemplate)((0,s.createTemplateFactory)({id:"//gSme1O",block:'[[[1,"\\n"],[1," "],[11,0],[16,0,[29,["mn-abi-results\\n ",[52,[30,0,["isGuest"]],"guest-container","member-container"]]]],[17,1],[12],[1,"\\n "],[8,[32,0],[[24,0,"mn-abi-results__nav-bar-wrapper"]],null,[["default"],[[[[1,"\\n "],[10,"ul"],[15,0,[29,["mn-abi-results__nav-bar\\n ",[52,[30,2],"mn-abi-results__nav-bar--v2"]]]],[12],[1,"\\n "],[10,"li"],[14,0,"mn-abi-results__nav-item mn-abi-results__nav-item-checkbox"],[12],[1,"\\n "],[11,"input"],[24,1,"contact-select-checkbox"],[16,"checked",[30,0,["isHeaderCheckboxChecked"]]],[16,"disabled",[30,0,["isHeaderCheckboxDisabled"]]],[24,0,"m0"],[24,4,"checkbox"],[4,[32,1],["change",[30,0,["selectHeaderCheckbox"]]],null],[12],[13],[1,"\\n "],[10,"label"],[14,"for","contact-select-checkbox"],[14,0,"m0"],[12],[1,"\\n "],[10,0],[14,0,"pl4"],[12],[1,"\\n"],[41,[30,0,["isDeselectAllEnabled"]],[[[41,[30,3],[[[1," "],[1,[28,[32,2],["i18n_abi_nav_checkbox_deselect_no_counter","abi-shared/components/contact-list"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,2],["i18n_abi_nav_checkbox_deselect","abi-shared/components/contact-list"],[["num"],[[30,0,["numChecked"]]]]]],[1,"\\n"]],[]]]],[]],[[[41,[30,3],[[[1," "],[1,[28,[32,2],["i18n_abi_nav_checkbox_selection_no_counter","abi-shared/components/contact-list"],[["selectAllChecked"],[[30,0,["isHeaderCheckboxChecked"]]]]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,2],["i18n_abi_nav_checkbox_selection","abi-shared/components/contact-list"],[["selectAllChecked","num"],[[30,0,["isHeaderCheckboxChecked"]],[30,0,["numChecked"]]]]]],[1,"\\n"]],[]]]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[14,0,"mn-abi-results__nav-item"],[12],[1,"\\n "],[8,[32,3],[[16,"aria-label",[28,[32,2],["i18n_contact_list_skip_a11y","abi-shared/components/contact-list"],null]],[24,"role","link"],[4,[32,1],["click",[30,0,["skipBtn"]]],null]],[["@color","@type","@text"],["muted","secondary",[28,[32,2],["i18n_contact_list_skip","abi-shared/components/contact-list"],null]]],null],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[14,0,"mn-abi-results__nav-item"],[12],[1,"\\n "],[8,[32,3],[[16,"aria-label",[52,[30,3],[28,[32,2],["i18n_add_to_network_a11y","abi-shared/components/contact-list"],null],[28,[32,2],["i18n_add_to_network_with_counter_a11y","abi-shared/components/contact-list"],[["num"],[[30,0,["numChecked"]]]]]]],[24,"role","link"],[4,[32,1],["click",[28,[32,4],[[30,0,["sendInvitations"]],[30,4]],null]],null]],[["@type","@size","@stretch","@disabled","@text"],["primary",2,"none",[52,[51,[30,0,["numChecked"]]],"disabled"],[52,[30,0,["isGuest"]],[52,[30,3],[28,[32,2],["i18n_add_to_network_no_counter","abi-shared/components/contact-list"],[["num"],[[30,0,["numChecked"]]]]],[28,[32,2],["i18n_add_to_network","abi-shared/components/contact-list"],[["num"],[[30,0,["numChecked"]]]]]],[52,[30,3],[28,[32,2],["i18n_abi_nav_add_connections_no_counter","abi-shared/components/contact-list"],[["num"],[[30,0,["numChecked"]]]]],[28,[32,2],["i18n_abi_nav_add_connections","abi-shared/components/contact-list"],[["num"],[[30,0,["numChecked"]]]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[32,5],null,[["@isDisabled","@items","@onTrigger"],[[28,[32,6],[[30,0,["canLoadMore"]]],null],[30,0,["visibleContactList"]],[30,0,["fetchMoreContacts"]]]],[["content","empty"],[[[[1,"\\n "],[10,"ul"],[15,0,[29,["mn-abi-results__contacts-list-v2\\n ",[52,[30,2],"list-style-none"]]]],[12],[1,"\\n"],[42,[28,[31,3],[[28,[31,3],[[30,6]],null]],null],null,[[[44,[[28,[32,7],[[30,0,["selectedContacts"]],[30,7,["urn"]]],null]],[[[1," "],[10,"li"],[15,0,[29,[[52,[30,2],"mn-abi-result-card--v2","mn-abi-result-card ph3"],"\\n ",[52,[51,[30,9]],"mn-abi-result-card--v2-checked"]]]],[12],[1,"\\n "],[8,[30,5],null,[["@index"],[[30,8]]],[["default"],[[[[1,"\\n"],[1," "],[11,0],[16,0,[29,[[52,[30,0,["isGuest"]],"display-flex","block"],"\\n full-height"]]],[4,[32,1],["click",[28,[32,4],[[30,0,["toggleSelectCard"]],[30,7],[30,9]],null]],null],[12],[1,"\\n"],[41,[30,0,["isGuest"]],[[[1," "],[8,[32,8],null,[["@name","@checkboxId","@checked","@title","@occupation"],[[30,7,["name"]],[30,7,["checkboxId"]],[30,9],[30,7,["title"]],[30,7,["title"]]]],null],[1,"\\n"]],[]],[[[41,[30,2],[[[1," "],[8,[32,9],null,[["@name","@checkboxId","@checked","@picture","@title","@occupation"],[[30,7,["name"]],[30,7,["checkboxId"]],[30,9],[30,7,["profilePicture"]],[30,7,["title"]],[30,7,["title"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,10],null,[["@name","@checkboxId","@checked","@picture","@title","@occupation"],[[30,7,["name"]],[30,7,["checkboxId"]],[30,9],[30,7,["profilePicture"]],[30,7,["title"]],[30,7,["title"]]]],null],[1,"\\n "]],[]]]],[]]],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[9]]]],[7,8]],null],[1," "],[13],[1,"\\n "]],[5,6]],[[[1,"\\n "],[10,"ul"],[15,0,[29,["mn-abi-results__contacts-list-v2\\n ",[52,[30,2],"list-style-none"]]]],[12],[1,"\\n "],[10,"li"],[14,0,"mn-abi-result-card__empty"],[12],[1,"\\n "],[1,[28,[32,2],["i18n_abi_no_contacts","abi-shared/components/contact-list"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@isM2MCardLayout","@hideCounters","@transactionId","ItemContainer","items","contact","index","selected"],false,["if","unless","each","-track-array","let"]]',moduleName:"abi-shared/components/contact-list.gjs",scope:()=>[g.default,f.on,b.default,v.default,y.fn,T.default,I.default,E.default,O.default,S.default,A.default],isStrictMode:!0}),(C=(0,h.inject)("locale"),R=(0,h.inject)("router"),N=(0,h.inject)("abi-shared@abi-tracking"),k=(0,h.inject)("abi-shared@abi-results"),w=(0,h.inject)("tracking"),P=(0,h.inject)("invitation-platform@invitation-platform"),M=(z=new WeakMap,H=new WeakMap,class extends _.default{get routeType(){return this.isGuest?"guest":"member"}get isGuest(){return new RegExp(p.ABI_ROUTES.GUEST_RESULTS).test(this.router.currentRouteName)}get isDeselectAllEnabled(){var e
const t=null===(e=this.locale)||void 0===e?void 0:e.requestIpCountryCode
return!p.DESELECT_ALL_DISABLED_COUNTRIES.includes(t)}get isHeaderCheckboxChecked(){var e
return this.isDeselectAllEnabled?this.selectedContacts.length>0:this.selectedContacts.length===(null===(e=this.args.contacts)||void 0===e?void 0:e.length)}get isHeaderCheckboxDisabled(){return this.isDeselectAllEnabled&&0===this.selectedContacts.length}get numChecked(){return this.selectedContacts.length}_getContactId(e){return e.urn}get checkedContacts(){var e
return null===(e=this.args.contacts)||void 0===e?void 0:e.filter((e=>this.selectedContacts.includes(this._getContactId(e))))}get inviteAllCount(){var e
return null===(e=this.selectedContacts)||void 0===e?void 0:e.length}get disableButton(){return 0===this.inviteAllCount}fetchMoreContacts(){const{contacts:e}=this.args
let t=(0,r.default)(this,H)+32
const n=e.length?e.slice((0,r.default)(this,H),t):this.skipBtn(!1);(0,r.default)(this,z)?this.visibleContactList=new u.TrackedArray(n):this.visibleContactList.push(...n)
let o=!1
t<e.length?o=!0:t=e.length
this.canLoadMore=o;(0,i.default)(this,H,t)}_sendInvitationsToDashContacts(e){var t
const n=(null===(t=this.locale)||void 0===t?void 0:t.requestIpCountryCode)??p.DEFAULT_COUNTRY_CODE,{isGuest:i,checkedContacts:r,abiResults:o,invitationPlatform:a}=this,s=i?"GUEST":"MEMBER",l={defaultCountryCode:n,uploadTransactionId:e}
o.updateInvitationCount(s,r,r.length)
if(i){const e=r.map((e=>(0,c.extractEntityInfoFromUrn)(e.urn).id))
return a.sendInvitationsByEmails(e,l)}const d=r.map((e=>e.urn))
return a.sendBatchProfileInvitations(d)}constructor(){super(...arguments);(0,t.default)(this,"locale",D,this);(0,t.default)(this,"router",U,this);(0,t.default)(this,"abiTracking",L,this);(0,t.default)(this,"abiResults",x,this);(0,t.default)(this,"tracking",j,this);(0,t.default)(this,"invitationPlatform",F,this);(0,n.default)(this,"controlName",p.METRICS_KEYS.EVENTS.SELECT_ONE);(0,n.default)(this,"visibleContactList",void 0)
z.set(this,{writable:!0,value:!0})
H.set(this,{writable:!0,value:0});(0,t.default)(this,"canLoadMore",G,this);(0,t.default)(this,"selectedContacts",V,this)
this.fetchMoreContacts();(0,i.default)(this,z,!1)}toggleSelectCard(e,t){const n=!t,i=this._getContactId(e)
n?this.selectedContacts.push(i):this.selectedContacts.splice(this.selectedContacts.findIndex((e=>e===i)),1)
this.tracking.fireInteractionEvent(this.controlName)}selectHeaderCheckbox(){this.isDeselectAllEnabled?this.deselectAllContacts():this.isHeaderCheckboxChecked?this.selectedContacts.length=0:this.selectAllContacts()
this.tracking.fireInteractionEvent(this.controlName)}selectAllContacts(){this.selectedContacts.length=0
this.args.contacts.forEach((e=>{this.selectedContacts.push(this._getContactId(e))}))
this.tracking.fireInteractionEvent(p.METRICS_KEYS.EVENTS.SELECT_ALL)}deselectAllContacts(){this.selectedContacts.length=0
this.tracking.fireInteractionEvent(p.METRICS_KEYS.EVENTS.DESELECT_ALL)}sendInvitations(e){const{checkedContacts:t,tracking:n,abiTracking:i,isGuest:r}=this
this._sendInvitationsToDashContacts(e).then((()=>this.skipBtn(!1)))
n.fireInteractionEvent(p.METRICS_KEYS.EVENTS.CONTINUE)
i.fireCustomImportInvitationCreateEvent({contacts:t,routeType:this.routeType,abookImportTransactionId:e,totalContacts:this.args.totalContacts})
i.fireAuditLogEvent(r)}skipBtn(){var e,t
let n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0]
this.tracking.fireInteractionEvent(this.controlName)
null===(e=(t=this.args).skipBtn)||void 0===e||e.call(t,n)}}),D=(0,o.default)(M.prototype,"locale",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,o.default)(M.prototype,"router",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,o.default)(M.prototype,"abiTracking",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,o.default)(M.prototype,"abiResults",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,o.default)(M.prototype,"tracking",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,o.default)(M.prototype,"invitationPlatform",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=(0,o.default)(M.prototype,"canLoadMore",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),V=(0,o.default)(M.prototype,"selectedContacts",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new u.TrackedArray}}),(0,o.default)(M.prototype,"fetchMoreContacts",[m.action],Object.getOwnPropertyDescriptor(M.prototype,"fetchMoreContacts"),M.prototype),(0,o.default)(M.prototype,"toggleSelectCard",[m.action],Object.getOwnPropertyDescriptor(M.prototype,"toggleSelectCard"),M.prototype),(0,o.default)(M.prototype,"selectHeaderCheckbox",[m.action],Object.getOwnPropertyDescriptor(M.prototype,"selectHeaderCheckbox"),M.prototype),(0,o.default)(M.prototype,"sendInvitations",[m.action],Object.getOwnPropertyDescriptor(M.prototype,"sendInvitations"),M.prototype),(0,o.default)(M.prototype,"skipBtn",[m.action],Object.getOwnPropertyDescriptor(M.prototype,"skipBtn"),M.prototype),M))}))
define("abi-shared/components/email-invite",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@glimmer/tracking","tracked-toolbox","abi-shared/utils/constants-base","ember-cli-pemberly-tracking/utils/tracking","@glimmer/component","@ember/service","@ember/object","@ember/debug","@ember/utils","@ember/destroyable","@ember/component","ember-cli-pemberly-i18n/helpers/t","@ember/modifier","@ember/legacy-built-in-components","@ember/helper","global-helpers/helpers/eq","ember-set-helper/helpers/set"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_,g,f,b,v,y,T,I){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var E,O,S,A,C,R,N,k,w,P,M,D,U,L,x,j,F,G
const V={a:"i18n_custom_msg_a",b:"i18n_custom_msg_b",c:"i18n_custom_msg_c",d:"i18n_custom_msg_d",e:"i18n_custom_msg_e"},z=/_(AT|DE|CH)$/i
e.default=(0,g.setComponentTemplate)((0,o.createTemplateFactory)({id:"Ygt4AaQZ",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[10,0],[14,0,"display-flex"],[12],[1,"\\n "],[8,[32,0],[[24,3,"message"],[24,1,"email-invite-single"],[24,0,"mn-abi-form__input mn-email-invite__input"],[16,"placeholder",[28,[32,1],["i18n_email_invite_placeholder","abi-shared/components/email-invite"],null]],[16,"disabled",[30,2]],[4,[32,2],["keyup",[30,0,["clearErrors"]]],null]],[["@type","@value"],["email",[30,0,["inviteList"]]]],null],[1,"\\n "],[11,"button"],[24,0,"mn-abi-form__primary-btn artdeco-button artdeco-button--secondary"],[16,"disabled",[30,0,["disableSubmit"]]],[24,4,"button"],[4,[32,2],["click",[30,0,["sendIwe"]]],null],[12],[1,"\\n "],[1,[28,[32,1],["start_cta","abi-shared/components/email-invite"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[32,3],[[24,3,"message"],[16,"placeholder",[28,[32,1],["iwe_placeholder","abi-shared/components/email-invite"],null]],[24,0,"mn-abi-form__input"],[16,"key-down",[30,0,["clearErrors"]]],[16,"aria-label",[28,[32,1],["iwe_placeholder","abi-shared/components/email-invite"],null]]],[["@value"],[[30,0,["inviteList"]]]],null],[1,""],[41,[30,0,["showMessageOptions"]],[[[1," "],[10,"fieldset"],[12],[1,"\\n "],[10,"legend"],[14,0,"t-14 t-black t-bold mt3"],[12],[1,"\\n "],[1,[28,[32,1],["i18n_custom_invite_title","abi-shared/components/email-invite"],null]],[1,"\\n "],[13],[1,"\\n"],[42,[28,[31,2],[[30,0,["messageOptions"]]],null],null,[[[1," "],[11,"input"],[16,1,[28,[32,4],["custom-msg-",[30,4]],null]],[24,3,"abiIweCustomMsg"],[16,"checked",[28,[32,5],[[30,0,["iweCustomMsgKey"]],[30,3]],null]],[16,2,[30,3]],[24,4,"radio"],[4,[32,2],["change",[28,[32,6],[[30,0],"iweCustomMsgKey",[30,3]],null]],null],[12],[13],[1,"\\n "],[10,"label"],[15,"for",[28,[32,4],["custom-msg-",[30,4]],null]],[14,0,"t-14 t-black--light t-normal mt3"],[12],[1,"\\n"],[1," "],[1,[28,[32,1],[[30,3],"abi-shared/components/email-invite"],null]],[1,"\\n"],[1," "],[13],[1,"\\n"]],[3,4]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[11,"button"],[24,1,"send-iwe"],[16,0,[29,["mn-abi-form__primary-btn artdeco-button artdeco-button--primary artdeco-button--3\\n ",[52,[30,0,["showMessageOptions"]],"mv5","mb4"]]]],[16,"disabled",[30,0,["disableSubmit"]]],[24,4,"button"],[4,[32,2],["click",[30,0,["sendIwe"]]],null],[12],[1,"\\n "],[1,[28,[32,1],["start_cta","abi-shared/components/email-invite"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],["@singleLineImport","@isResolving","i18nKey","option"],false,["if","each","-each-in"]]',moduleName:"abi-shared/components/email-invite.gjs",scope:()=>[g.Input,f.default,b.on,v.TextArea,y.concat,T.default,I.default],isStrictMode:!0}),(E=(0,u.inject)("abi-shared@abi-tracking"),O=(0,u.inject)("i18n"),S=(0,u.inject)("locale"),A=(0,u.inject)("persistent-toast-manager@persistent-toast-manager"),C=(0,u.inject)("invitation-platform@invitation-platform"),R=(0,s.localCopy)("args.transactionId",(0,c.generateTrackingId)()),N=(0,s.localCopy)("args.inviteList"),k=class extends d.default{get disableSubmit(){return(0,h.isEmpty)(this.inviteList)}get messageOptions(){return V}get errorMsgTitle(){return this.i18n.lookupTranslation(this.constructor,l.ABI_ERRORS_TO_MSGS.ERROR_TITLE)()}get successMsgTitle(){return this.i18n.lookupTranslation(this.constructor,l.ABI_ERRORS_TO_MSGS.SUCCESS_TITLE)()}get showMessageOptions(){var e
return!z.test(null===(e=this.locale)||void 0===e?void 0:e.interfaceLocale)}constructor(){super(...arguments);(0,t.default)(this,"abiTracking",w,this);(0,t.default)(this,"i18n",P,this);(0,t.default)(this,"locale",M,this);(0,t.default)(this,"persistentToastManager",D,this);(0,t.default)(this,"invitationPlatform",U,this);(0,t.default)(this,"abookImportTransactionId",L,this);(0,t.default)(this,"error",x,this);(0,t.default)(this,"isWorking",j,this);(0,t.default)(this,"iweCustomMsgKey",F,this);(0,t.default)(this,"inviteList",G,this)
this.iweCustomMsgKey=this.showMessageOptions?this.messageOptions.a:null}_showNotificationSuccess(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.successMsgTitle
"function"==typeof this.args.showNotificationSuccess?this.args.showNotificationSuccess(e,t):this.persistentToastManager.success({message:e,title:t})}_showNotificationError(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.errorMsgTitle
this.persistentToastManager.error({message:e,title:t})}_fireIweTracking(e,t){const n=this.abiTracking
n.fireImportSubmitEvent(e)
n.fireStandardImportInvitationImpressionEvent(e,t)
n.fireGuestImportInvitationCreateEvent(e,t)}sendIwe(){var e,t
const{i18n:n}=this,i=(null===(e=this.inviteList)||void 0===e?void 0:e.replace(/\s+/g,"").split(","))??[]
if(i.length>l.ABI_INVITE_WITH_EMAIL_LIMIT){this._showNotificationError(n.lookupTranslation(this.constructor,l.ABI_ERRORS_TO_MSGS.ERROR_SENDING_INVITATIONS_LIMIT)())
return!1}const r=(0,c.generateTrackingId)(),o=(null===(t=this.locale)||void 0===t?void 0:t.requestIpCountryCode)??l.DEFAULT_COUNTRY_CODE,{abookImportTransactionId:a}=this,s=i.filter((e=>l.EMAIL_PATTERN.test(e))),d=i.filter((e=>e&&!l.EMAIL_PATTERN.test(e))).length
let u=this.iweCustomMsgKey
u=u?n.lookupTranslation(this.constructor,u)():null
if(s.length<1){this._showNotificationError(n.lookupTranslation(this.constructor,l.ABI_ERRORS_TO_MSGS.INVALID_EMAIL)())
this.inviteList=""
return!1}if(d){this.inviteList=s.join(",")
this._showNotificationError(n.lookupTranslation(this.constructor,l.ABI_ERRORS_TO_MSGS.ENTERED_INVALID_EMAILS)([{numInvalidEmails:d}]))}const p=s.length
this.isWorking=!0
return this.invitationPlatform.sendInvitationsByEmails(s,{message:u,uploadTransactionId:r,defaultCountryCode:o}).then((()=>{if((0,_.isDestroying)(this))return
const e=n.lookupTranslation(this.constructor,l.ABI_ERRORS_TO_MSGS.SUCCESSFULLY_SENT_IWE)([{invitationsSent:p}])
this._showNotificationSuccess(e)
this._fireIweTracking(a,p)})).catch((e=>{if((0,_.isDestroying)(this))throw e
this._showNotificationError(n.lookupTranslation(this.constructor,l.ABI_ERRORS_TO_MSGS.ERROR_SENDING_INVITATIONS)())
throw e})).finally((()=>{(0,_.isDestroying)(this)||(this.isWorking=!1)}))}clearErrors(){this.error=!1}},w=(0,i.default)(k.prototype,"abiTracking",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,i.default)(k.prototype,"i18n",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,i.default)(k.prototype,"locale",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,i.default)(k.prototype,"persistentToastManager",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,i.default)(k.prototype,"invitationPlatform",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,i.default)(k.prototype,"abookImportTransactionId",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,i.default)(k.prototype,"error",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,i.default)(k.prototype,"isWorking",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,i.default)(k.prototype,"iweCustomMsgKey",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=(0,i.default)(k.prototype,"inviteList",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(k.prototype,"sendIwe",[p.action],Object.getOwnPropertyDescriptor(k.prototype,"sendIwe"),k.prototype),(0,i.default)(k.prototype,"clearErrors",[p.action],Object.getOwnPropertyDescriptor(k.prototype,"clearErrors"),k.prototype),k))}))
define("abi-shared/components/password-input",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/helper","global-utils/utils/keyboard-utils","@glimmer/tracking","@glimmer/component","@ember/object","ember-cli-pemberly-i18n/helpers/t","@ember/component","global-helpers/helpers/or","@ember/modifier","artdeco-button/components/artdeco-button"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var g,f
e.default=(0,p.setComponentTemplate)((0,o.createTemplateFactory)({id:"yAgcmVxR",block:'[[[1,"\\n"],[1,"\\n"],[1," "],[11,0],[24,0,"abi-password__height-expander relative"],[17,1],[12],[1,"\\n "],[10,"label"],[14,"for","password"],[14,0,"visually-hidden"],[12],[1,[28,[32,0],["i18n_password_label","abi-shared/components/password-input"],null]],[13],[1,"\\n\\n "],[8,[32,1],[[16,1,[30,2]],[16,"placeholder",[28,[32,2],[[30,3],[28,[32,0],["i18n_default_password_placeholder","abi-shared/components/password-input"],null]],null]],[16,"disabled",[30,4]],[24,0,"abi-password__input abi-password__height-expander"],[4,[32,3],["keyup",[30,0,["onKeyUp"]]],null]],[["@type","@value"],[[52,[30,0,["showPassword"]],"text","password"],[30,5]]],null],[1,"\\n "],[8,[32,4],[[4,[32,3],["click",[30,0,["toggleShowPassword"]]],null]],[["@class","@type","@size","@controlType","@text"],["abi-password__show-password-button","tertiary",1,"button",[52,[30,0,["showPassword"]],[28,[32,0],["i18n_hide","abi-shared/components/password-input"],null],[28,[32,0],["i18n_show","abi-shared/components/password-input"],null]]]],null],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@inputId","@placeholder","@inputDisabled","@value"],false,["if"]]',moduleName:"abi-shared/components/password-input.gjs",scope:()=>[u.default,p.Input,m.default,h.on,_.default],isStrictMode:!0}),(g=class extends c.default{constructor(){super(...arguments);(0,t.default)(this,"showPassword",f,this)}onKeyUp(e){if((0,s.isEnterKey)(e)){var t,n
null===(t=(n=this.args).onEnterKeypress)||void 0===t||t.call(n,e)}}toggleShowPassword(){this.showPassword=!this.showPassword}},f=(0,i.default)(g.prototype,"showPassword",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(g.prototype,"onKeyUp",[d.action],Object.getOwnPropertyDescriptor(g.prototype,"onKeyUp"),g.prototype),(0,i.default)(g.prototype,"toggleShowPassword",[d.action],Object.getOwnPropertyDescriptor(g.prototype,"toggleShowPassword"),g.prototype),g))}))
define("abi-shared/components/settings/manage-source-group-header",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","abi-shared/components/settings/manage-source-v2","artdeco-loader/components/artdeco-loader","artdeco-button/components/artdeco-button","@ember/helper","ember-cli-pemberly-i18n/helpers/t","@ember/modifier"],(function(e,t,n,i,r,o,a,s,l,c){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const d=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"6TMRiNf2",block:'[[[1,"\\n"],[1,"\\n"],[1," "],[11,0],[24,0,"mn-managed-source__header"],[17,1],[12],[1,"\\n "],[8,[32,0],null,[["@sourceGroupType","@refreshRoute"],[[30,2],[30,3]]],[["default"],[[[[1,"\\n"],[41,[30,4,["isRemovingAll"]],[[[1," "],[8,[32,1],null,[["@size","@class"],["small","mn-settings__item-container-loader mn-managed-source__item-container-loader"]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"display-flex justify-space-between align-items-center pv4 ph5 relative"],[12],[1,"\\n "],[10,"h2"],[14,0,"mn-managed-source__header-title t-20 t-black t-normal"],[12],[1,"\\n "],[1,[30,4,["title"]]],[1,"\\n "],[13],[1,"\\n "],[8,[32,2],[[16,"aria-label",[28,[32,3],["i18n_remove_all_button_description","abi-shared/components/settings/manage-source-group-header"],[["sourceGroupType"],[[30,2]]]]],[4,[32,4],["click",[28,[32,5],[[30,4,["onRemoveAll"]],[30,0,["integration"]]],null]],null]],[["@type","@color"],["tertiary","muted"]],[["default"],[[[[1,"\\n "],[1,[30,4,["removeAll"]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],[4]]]]],[1,"\\n "],[13],[1,"\\n"]],["&attrs","@sourceGroupType","@refreshRoute","manageSourceGroup"],false,["if"]]',moduleName:"abi-shared/components/settings/manage-source-group-header.gjs",scope:()=>[r.default,o.default,a.default,l.default,c.on,s.fn],isStrictMode:!0}),(0,n.default)("manage-source-group-header","ManageSourceGroupHeader"))
e.default=d}))
define("abi-shared/components/settings/manage-source-group",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","global-utils/utils/a11y-focus-element","abi-shared/utils/constants-base","@ember/object","@ember/service","@glimmer/component","abi-shared/components/settings/manage-source-group-header","ember-cli-pemberly-i18n/helpers/t","artdeco-loader/components/artdeco-loader","abi-shared/components/settings/manage-source-v2","@ember/helper","hue-web-icons/components/icon","global-helpers/helpers/eq","artdeco-button/components/artdeco-button","@ember/modifier"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_,g,f,b,v,y){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var T,I,E
const O=["contacts","calendar","email"]
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"gXsz3eUt",block:'[[[1,"\\n"],[1," "],[11,"section"],[24,0,"artdeco-card mt4 p0 relative"],[17,1],[12],[1,"\\n "],[8,[32,0],null,[["@sourceGroupType","@refreshRoute"],[[30,2],[30,3]]],null],[1,"\\n"],[41,[51,[30,0,["isDeprecateContactsLixEnabled"]]],[[[1," "],[10,0],[14,0,"mn-managed-source__item-description-v2 mh5 pv4 pr9"],[12],[1,"\\n"],[1," "],[1,[28,[32,1],[[28,[32,2],["i18n_description_",[30,2]],null],"abi-shared/components/settings/manage-source-group"],null]],[1,"\\n"],[1," "],[13],[1,"\\n"]],[]],null],[41,[30,0,["isRemovingAll"]],[[[1," "],[8,[32,3],null,[["@class"],["mn-settings__item-container-loader mn-managed-source__item-container-loader"]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"list-style-none mh5"],[12],[1,"\\n"],[42,[28,[31,3],[[28,[31,3],[[30,4]],null]],null],null,[[[1," "],[8,[32,4],null,[["@integration","@meta","@sourceGroupType","@refreshRoute","@setElementIdToFocus"],[[30,5,["model"]],[30,5,["meta"]],[30,2],[30,3],[28,[32,5],[[30,0,["setElementIdToFocus"]],[28,[32,2],[[30,2],[30,6]],null]],null]]],[["default"],[[[[1,"\\n "],[10,0],[15,0,[29,["mn-managed-source__item-v2 display-flex justify-space-between align-items-center relative pv2\\n ",[30,5,["model","source"]]]]],[12],[1,"\\n"],[41,[30,5,["meta","isWorking"]],[[[1," "],[8,[32,3],null,[["@size","@class"],["small","mn-settings__item-container-loader"]],null],[1,"\\n"]],[]],null],[1," "],[10,1],[14,0,"display-flex align-items-center"],[12],[1,"\\n"],[41,[30,5,["meta","icon"]],[[[1," "],[8,[32,6],[[24,0,"mn-managed-source__item-icon-svg"]],[["@name","@type","@size"],[[30,5,["meta","icon"]],[52,[28,[32,7],[[30,5,["meta","icon"]],"phone"],null],"system","social"],"medium"]],null],[1,"\\n"]],[]],[[[1," "],[10,1],[12],[1,"\\n "],[8,[32,6],[[24,0,"mn-managed-source__item-icon-svg"]],[["@name","@type","@size"],[[30,0,["sourceGroupTypeIcon"]],[52,[28,[32,7],[[30,0,["sourceGroupTypeIcon"]],"people"],null],"system","social"],"medium"]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[10,1],[14,0,"pl3"],[12],[1,"\\n "],[10,1],[14,0,"t-18 t-black t-bold"],[12],[1,"\\n"],[41,[30,5,["model","localizedSource"]],[[[1," "],[1,[30,5,["model","localizedSource"]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,1],[[28,[32,2],["i18n_provider_name_",[30,5,["meta","providerName"]]],null],"abi-shared/components/settings/manage-source-group"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"],[41,[30,5,["meta","email"]],[[[1," "],[10,1],[12],[1,"\\n "],[1,[28,[32,1],["email_formatter","abi-shared/components/settings/manage-source-group"],[["email"],[[30,5,["meta","email"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,5,["meta","exists"]],[[[41,[30,5,["model","active"]],[[[1," "],[10,0],[14,0,"btn-container"],[12],[1,"\\n "],[8,[32,8],[[16,"aria-label",[28,[32,1],["i18n_remove_button_description","abi-shared/components/settings/manage-source-group"],[["source"],[[30,5,["model","source"]]]]]],[4,[32,9],["click",[28,[32,5],[[30,7,["onRemove"]],[30,5,["model"]]],null]],null]],[["@type","@color"],["tertiary","muted"]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["i18n_cta_remove","abi-shared/components/settings/manage-source-group"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[32,8],[[16,"aria-label",[28,[32,1],["i18n_stop_button_description","abi-shared/components/settings/manage-source-group"],[["source"],[[30,5,["model","source"]]]]]],[16,1,[28,[32,2],[[30,2],[30,6]],null]],[4,[32,9],["click",[28,[32,5],[[30,7,["onStop"]],[30,5,["model"]]],null]],null]],[["@type","@color"],["tertiary","default"]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["i18n_cta_stop_sync","abi-shared/components/settings/manage-source-group"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"btn-container"],[12],[1,"\\n "],[8,[32,8],[[16,"aria-label",[28,[32,1],["i18n_remove_button_description","abi-shared/components/settings/manage-source-group"],[["source"],[[30,5,["model","source"]]]]]],[4,[32,9],["click",[28,[32,5],[[30,7,["onRemove"]],[30,5,["model"]]],null]],null]],[["@type","@color"],["tertiary","muted"]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["i18n_cta_remove","abi-shared/components/settings/manage-source-group"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[32,8],[[16,1,[28,[32,2],[[30,2],[30,6]],null]],[16,"aria-label",[28,[32,1],["i18n_resync_button_description","abi-shared/components/settings/manage-source-group"],[["source"],[[30,5,["model","source"]]]]]],[4,[32,9],["click",[28,[32,5],[[30,7,["onResync"]],[30,5,["model"]]],null]],null]],[["@type","@color"],["secondary","default"]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["i18n_cta_resync","abi-shared/components/settings/manage-source-group"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],[[[41,[51,[30,0,["isDeprecateContactsLixEnabled"]]],[[[41,[30,5,["meta","helpCenterUrl"]],[[[1," "],[8,[32,8],[[16,"aria-label",[28,[32,1],["i18n_learn_how_button_description","abi-shared/components/settings/manage-source-group"],[["source"],[[30,5,["model","source"]]]]]],[24,"role","link"],[4,[32,9],["click",[28,[32,5],[[30,7,["onNavigateToHelpCenterUrl"]],[30,5,["meta","helpCenterUrl"]]],null]],null]],[["@type","@color"],["tertiary","default"]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["i18n_learn_how","abi-shared/components/settings/manage-source-group"],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[32,8],[[16,"aria-label",[28,[32,1],["i18n_sync_button_description","abi-shared/components/settings/manage-source-group"],[["source"],[[30,5,["model","source"]]]]]],[4,[32,9],["click",[28,[32,5],[[30,7,["onSync"]],[30,5,["model"]],[30,5,["meta"]]],null]],null]],[["@type","@color"],["secondary","default"]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["i18n_cta_sync","abi-shared/components/settings/manage-source-group"],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]]],[]],null]],[]]],[1," "],[13],[1,"\\n "]],[7]]]]],[1,"\\n"]],[5,6]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@sourceGroupType","@refreshRoute","@integrations","integration","index","manageIntegration"],false,["unless","if","each","-track-array"]]',moduleName:"abi-shared/components/settings/manage-source-group.gjs",scope:()=>[p.default,m.default,g.concat,h.default,_.default,g.fn,f.default,b.default,v.default,y.on],isStrictMode:!0}),(T=(0,d.inject)("lix"),I=class extends u.default{constructor(){super(...arguments);(0,n.default)(this,"isRemovingAll",!1);(0,t.default)(this,"lix",E,this)}setElementIdToFocus(e){(0,s.default)(this,`#${e}`)}get sourceGroupTypeIcon(){return O.includes(this.args.sourceGroupType)?l.M2G_EMAIL_PROVIDERS_ICONS.GOOGLE:l.PEOPLE_ICON}get isDeprecateContactsLixEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.invitations-deprecate-contacts")}},E=(0,i.default)(I.prototype,"lix",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(I.prototype,"setElementIdToFocus",[c.action],Object.getOwnPropertyDescriptor(I.prototype,"setElementIdToFocus"),I.prototype),I))}))
define("abi-shared/components/settings/manage-source-v2",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","@linkedin/jsecure","@glimmer/tracking","tracked-toolbox","abi-shared/utils/constants-base","global-utils/utils/is-network-error","abi-shared/requests/dash-manage-source","abi-shared/utils/settings-constants","global-utils/utils/is-browser","@glimmer/component","@ember/object","@ember/debug","@ember/service","@ember/destroyable","ember-cli-pemberly-i18n/helpers/t","@ember/helper","artdeco-modal/components/artdeco-modal","@ember/modifier"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_,g,f,b,v,y,T,I,E){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var O,S,A,C,R,N,k,w,P,M,D,U,L,x,j,F,G,V,z,H,B,W,q
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"ASWAxeL5",block:'[[[1,"\\n"],[1,"\\n"],[1," "],[11,0],[16,0,[29,["mn-settings__manage-syncing-source\\n ",[52,[30,0,["isContact"]],"mn-settings__manage-syncing-source-contact","mn-settings__manage-syncing-source-calendar"]]]],[17,1],[12],[1,"\\n"],[41,[48,[30,4]],[[[1," "],[18,4,[[28,[32,0],null,[["title","removeAll","isRemovingAll","onRemoveAll","onRemove","onStop","onSync","onResync","onNavigateToHelpCenterUrl"],[[28,[32,1],[[28,[32,2],["i18n_title_",[30,2]],null],"abi-shared/components/settings/manage-source-v2"],null],[28,[32,1],["i18n_btn_remove_all","abi-shared/components/settings/manage-source-v2"],null],[30,0,["isRemovingAll"]],[28,[32,3],[[30,0,["openDialogWith"]],"remove_all"],null],[28,[32,3],[[30,0,["openDialogWith"]],"remove_source"],null],[28,[32,3],[[30,0,["openDialogWith"]],"stop_source"],null],[30,0,["sync"]],[30,0,["resync"]],[30,0,["navigateToHelpCenterUrl"]]]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,4],null,[["@isOpen","@size","@dismissModal"],[[30,0,["isConfirmationModalOpen"]],"medium",[30,0,["closeConfirmationModal"]]]],[["default"],[[[[1,"\\n "],[8,[30,3,["artdeco-modal-header"]],null,null,[["default"],[[[[1,"\\n "],[10,"h2"],[14,1,"mn-remove-syncs-modal-header"],[14,0,"text-align-center"],[12],[1,"\\n"],[41,[30,0,["modalI18n","title"]],[[[1," "],[1,[28,[32,1],[[30,0,["modalI18n","title"]],"abi-shared/components/settings/manage-source-v2"],[["source"],[[30,0,["modalI18n","source"]]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[30,3,["artdeco-modal-content"]],null,[["@classNames"],["p0 text-align-center"]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"mn-settings__modal"],[12],[1,"\\n "],[10,"section"],[12],[1,"\\n"],[41,[30,0,["modalI18n","description"]],[[[1," "],[1,[28,[32,1],[[30,0,["modalI18n","description"]],"abi-shared/components/settings/manage-source-v2"],[["source"],[[30,0,["modalI18n","source"]]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,"ul"],[14,0,"mn-settings__modal-action-item-list"],[12],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[11,"button"],[24,0,"muted mn-settings__modal-action-cancel-button"],[24,4,"button"],[4,[32,5],["click",[30,0,["closeConfirmationModal"]]],null],[12],[1,"\\n "],[1,[28,[32,1],["i18n_btn_cancel","abi-shared/components/settings/manage-source-v2"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[11,"button"],[24,0,"js-mn-manage-source-confirm"],[24,4,"button"],[4,[32,5],["click",[30,0,["modalPromptConfirmed"]]],null],[12],[1,"\\n "],[1,[28,[32,1],["i18n_btn_continue","abi-shared/components/settings/manage-source-v2"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[3]]]]],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@sourceGroupType","modal","&default"],false,["if","has-block","yield"]]',moduleName:"abi-shared/components/settings/manage-source-v2.gjs",scope:()=>[T.hash,y.default,T.concat,T.fn,I.default,E.on],isStrictMode:!0}),(O=(0,b.inject)("persistent-toast-manager@persistent-toast-manager"),S=(0,b.inject)("i18n"),A=(0,b.inject)("global-services@store-shim"),C=(0,b.inject)("tracking"),R=(0,b.inject)("jet"),N=(0,b.inject)("global-services@window"),k=(0,c.localCopy)("args.integration"),w=(0,c.localCopy)("args.meta"),P=class extends _.default{constructor(){super(...arguments);(0,t.default)(this,"persistentToastManager",M,this);(0,t.default)(this,"i18n",D,this);(0,t.default)(this,"storeShim",U,this);(0,t.default)(this,"tracking",L,this);(0,t.default)(this,"jet",x,this);(0,t.default)(this,"windowService",j,this);(0,t.default)(this,"integration",F,this);(0,t.default)(this,"meta",G,this);(0,t.default)(this,"isRemovingAll",V,this);(0,t.default)(this,"modalI18n",z,this);(0,t.default)(this,"confirmAction",H,this);(0,t.default)(this,"isConfirmationModalOpen",B,this);(0,t.default)(this,"selectedSourceId",W,this);(0,t.default)(this,"popup",q,this)}get isIntegration(){return void 0!==this.integration}get isContact(){return this.args.sourceGroupType===m.CONTACTS}_showToastForAction(e,t){const{sourceGroupType:n}=this.args,{i18n:i,persistentToastManager:r}=this,o=e?"SUCCESS":"ERROR",a=m.NOTIFICATION_COPY_I18N[o].TITLE,s=n.toUpperCase(),l=t.toUpperCase(),c=m.NOTIFICATION_COPY_I18N[o][l][s]
let d=i.lookupTranslation(this.constructor,c)()
if(this.isIntegration){var u
d=i.lookupTranslation(this.constructor,c)([{source:null===(u=this.integration)||void 0===u?void 0:u.source}])}const p=i.lookupTranslation(this.constructor,a)()
e?r.success({message:d,title:p}):r.error({message:d,title:p})}_onUpdateIntegrationSuccess(e,t){const{integration:n,meta:i}=this
this._showToastForAction(!0,e)
if(e===m.INTEGRATION_ACTION.STOP_SOURCE)(0,g.set)(n,"active",!1)
else if(e===m.INTEGRATION_ACTION.REMOVE_SOURCE)(0,g.set)(i,"exists",!1)
else{(0,g.set)(i,"exists",!0);(0,g.set)(n,"active",!0)
if(t&&t.data){var r;(0,g.set)(n,"contactsIntegrationV2Urn",null===(r=t.data)||void 0===r?void 0:r.value)}}}_onUpdateIntegrationError(e){this._showToastForAction(!1,e)}_sendRequestFor(e,t){const{meta:n,storeShim:i}=this
return p.default.sendProviderIntegrationRequest(i,e,t).then((e=>{(0,v.isDestroying)(this)||this._onUpdateIntegrationSuccess(t,e)})).catch((e=>{if((0,v.isDestroying)(this))throw e
this._onUpdateIntegrationError(t)
if(!(0,u.default)(e))throw e
this.jet.logError(e,d.ABI_ERROR_LOG_TAGS,!1)})).finally((()=>{if(!(0,v.isDestroying)(this)){(0,g.set)(n,"isWorking",!1)
this.args.setElementIdToFocus&&this.args.setElementIdToFocus()}}))}_removeSource(e){this.tracking.fireInteractionEvent(m.INTEGRATION_ACTION.REMOVE_SOURCE)
const t={id:e,action:"deactivate"}
this._sendRequestFor(t,m.INTEGRATION_ACTION.REMOVE_SOURCE)}_stopSource(e){this.tracking.fireInteractionEvent(m.INTEGRATION_ACTION.STOP_SOURCE)
const t={id:e,action:"stopSync"}
this._sendRequestFor(t,m.INTEGRATION_ACTION.STOP_SOURCE)}_nukeSources(e){return p.default.sendProviderIntegrationRemoveAllRequest(this.storeShim,e).then((()=>{(0,v.isDestroying)(this)||this._showToastForAction(!0,m.INTEGRATION_ACTION.REMOVE_ALL)})).catch((e=>{if((0,v.isDestroying)(this))throw e
this._showToastForAction(!1,m.INTEGRATION_ACTION.REMOVE_ALL)
if(!(0,u.default)(e))throw e
this.jet.logError(e,d.ABI_ERROR_LOG_TAGS,!1)})).finally((()=>{var e
if(!(0,v.isDestroying)(this)){this.isRemovingAll=!1
null===(e=this.args)||void 0===e||e.refreshRoute()}}))}_removeAll(){const e=m.REMOVE_ALL_SETTINGS[this.args.sourceGroupType]
this.tracking.fireInteractionEvent(m.INTEGRATION_ACTION.REMOVE_ALL)
this._nukeSources(e)}_resetModal(){this.modalI18n={}
this.confirmAction=null
this.isConfirmationModalOpen=!1
this.selectedSourceId=null}_getPromptI18n(e,t){const n=t.toUpperCase(),i=e.toUpperCase(),r=e===m.INTEGRATION_ACTION.REMOVE_ALL?`${n}_NUCLEAR`:`${i}_${n}`
return m.MODAL_COPY_I18N[r]}willDestroy(){super.willDestroy(...arguments)
h.default&&window.onAuthenticationComplete&&(window.onAuthenticationComplete=null)}_resync(e,t){const n={source:t,handle:e,action:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"activate"}
this._sendRequestFor(n,m.INTEGRATION_ACTION.RESYNC_SOURCE)}_sync(e,t){if(h.default){const n=e.source,i=encodeURIComponent(m.GAAP_SCRIPTS[n]),r=s.default.sanitizeUrl(`${this.windowService.getLocation.origin}${m.GENIE_URL}${i}`)
this.tracking.fireInteractionEvent(m.INTEGRATION_ACTION.SYNC_SOURCE)
window.onAuthenticationComplete=(e,i)=>{if(!i){(0,g.set)(t,"isWorking",!0)
this._resync(e,n,"activate")}this.popup.close()}
this.popup=this.windowService.open(s.default.sanitizeUrl(r),"",m.POPUP_SIZE)}}closeConfirmationModal(){this._resetModal()}openDialogWith(e,t){const{isIntegration:n}=this,{sourceGroupType:i}=this.args,r=n&&t.contactsIntegrationV2Urn||"",o=this._getPromptI18n(e,i)
n&&(0,g.set)(o,"source",t.source)
this.modalI18n=o
this.confirmAction=e
this.selectedSourceId=r
this.isConfirmationModalOpen=!0}modalPromptConfirmed(){const{confirmAction:e}=this,{selectedSourceId:t}=this,{meta:n}=this
this._resetModal()
switch(e){case m.INTEGRATION_ACTION.REMOVE_SOURCE:(0,g.set)(n,"isWorking",!0)
this._removeSource(t)
break
case m.INTEGRATION_ACTION.STOP_SOURCE:(0,g.set)(n,"isWorking",!0)
this._stopSource(t)
break
case m.INTEGRATION_ACTION.REMOVE_ALL:this.isRemovingAll=!0
this._removeAll()
break
default:(0,g.set)(n,"isWorking",!0)
this._stopSource(t)}}sync(e,t){this._sync(e,t)}resync(e){const{handle:t,source:n}=e
this.tracking.fireInteractionEvent(m.INTEGRATION_ACTION.RESYNC_SOURCE)
this._resync(t,n,"activate")}navigateToHelpCenterUrl(e){window.open(e,"_blank")}},M=(0,i.default)(P.prototype,"persistentToastManager",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,i.default)(P.prototype,"i18n",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,i.default)(P.prototype,"storeShim",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,i.default)(P.prototype,"tracking",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,i.default)(P.prototype,"jet",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,i.default)(P.prototype,"windowService",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,i.default)(P.prototype,"integration",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=(0,i.default)(P.prototype,"meta",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,i.default)(P.prototype,"isRemovingAll",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,i.default)(P.prototype,"modalI18n",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),H=(0,i.default)(P.prototype,"confirmAction",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=(0,i.default)(P.prototype,"isConfirmationModalOpen",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W=(0,i.default)(P.prototype,"selectedSourceId",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=(0,i.default)(P.prototype,"popup",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(P.prototype,"closeConfirmationModal",[g.action],Object.getOwnPropertyDescriptor(P.prototype,"closeConfirmationModal"),P.prototype),(0,i.default)(P.prototype,"openDialogWith",[g.action],Object.getOwnPropertyDescriptor(P.prototype,"openDialogWith"),P.prototype),(0,i.default)(P.prototype,"modalPromptConfirmed",[g.action],Object.getOwnPropertyDescriptor(P.prototype,"modalPromptConfirmed"),P.prototype),(0,i.default)(P.prototype,"sync",[g.action],Object.getOwnPropertyDescriptor(P.prototype,"sync"),P.prototype),(0,i.default)(P.prototype,"resync",[g.action],Object.getOwnPropertyDescriptor(P.prototype,"resync"),P.prototype),(0,i.default)(P.prototype,"navigateToHelpCenterUrl",[g.action],Object.getOwnPropertyDescriptor(P.prototype,"navigateToHelpCenterUrl"),P.prototype),P))}))
define("abi-shared/components/settings/manage-syncing-header",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","ember-cli-pemberly-i18n/helpers/t","@ember/helper"],(function(e,t,n,i,r,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const a=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"IhQ3aj6F",block:'[[[1,"\\n"],[1," "],[10,"h1"],[14,0,"t-20 t-black t-normal mb2"],[12],[1,[28,[32,0],["i18n_settings_manage_syncing_title_simple","abi-shared/components/settings/manage-syncing-header"],null]],[13],[1,"\\n "],[10,2],[14,0,"t-16 t-black t-normal"],[12],[1,"\\n "],[1,[28,[32,0],["i18n_settings_manage_syncing_description_v2","abi-shared/components/settings/manage-syncing-header"],[["privacyLink"],[[28,[32,1],null,[["target","href","data-control-name","class"],["_blank",[30,1],"privacy_policy","mn-syncing-header__privacy-policy-link link-without-hover-visited"]]]]]]],[1,"\\n "],[13],[1,"\\n "],[10,2],[14,0,"t-16 t-black t-normal"],[12],[1,"\\n "],[1,[28,[32,0],["i18_help_center_link","abi-shared/components/settings/manage-syncing-header"],[["helpCenterLink"],[[28,[32,1],null,[["target","href","data-control-name","class"],["_blank",[30,2],"contacts_help_center","mn-syncing-header__help-center-link link-without-hover-visited"]]]]]]],[1,"\\n "],[13],[1,"\\n"]],["@privacyPolicyUrl","@helpCenterUrl"],false,[]]',moduleName:"abi-shared/components/settings/manage-syncing-header.gts",scope:()=>[r.default,o.hash],isStrictMode:!0}),(0,n.default)("manage-syncing-header","ManageSyncingHeader"))
e.default=a}))
define("abi-shared/components/sort-dropdown",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","@ember/service","tracked-toolbox","@glimmer/component","ember-cli-pemberly-i18n/helpers/t","artdeco-dropdown/components/artdeco-dropdown","ember-set-helper/helpers/set","global-helpers/helpers/gt","ember-cli-pemberly-tracking/modifiers/track-interaction","artdeco-dropdown/components/artdeco-dropdown-item","@ember/helper"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_,g){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var f,b,v,y,T
const I=Object.freeze({FIRST_NAME:"First name",LAST_NAME:"Last name",RECENTLY_ADDED:"Recently added"})
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"NwVwi1dQ",block:'[[[1,"\\n"],[1," "],[10,0],[14,0,"display-flex align-items-center pt3 pb2 t-14 t-black--light t-normal"],[12],[1,"\\n "],[10,2],[14,0,"t-14 t-black--light t-normal"],[12],[1,"\\n "],[1,[28,[32,0],["i18n_sort_by","abi-shared/components/sort-dropdown"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,1],null,[["@isOpen","@onVisibilityChange","@disabled"],[[30,0,["isDropdownOpen"]],[28,[32,2],[[30,0],"isDropdownOpen"],null],[52,[28,[32,3],[[30,1],0],null],false,true]]],[["default"],[[[[1,"\\n "],[8,[30,2,["dropdown-trigger"]],[[16,"aria-label",[30,0,["triggerA11yText"]]],[24,0,"t-black--light v-align-top"],[4,[32,4],["sort_by"],null]],[["@withIcon"],[true]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"t-14 t-black--light t-bold pl2 mb1"],[12],[1,"\\n "],[1,[52,[30,3],[30,3],[28,[32,0],["i18n_sort_recently_added","abi-shared/components/sort-dropdown"],null]]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[30,2,["dropdown-content"]],null,null,[["default"],[[[[1,"\\n "],[10,"ul"],[12],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[8,[32,5],[[16,"aria-label",[28,[32,0],["i18n_sort_recently_added_a11y_text","abi-shared/components/sort-dropdown"],null]],[24,"role","button"],[4,[32,4],["sort_by_recently_added"],null]],[["@itemSelected"],[[28,[32,6],[[30,2,["invokeAndClose"]],[28,[32,6],[[30,4],[30,5,["RECENTLY_ADDED"]],[28,[32,0],["i18n_sort_recently_added","abi-shared/components/sort-dropdown"],null]],null]],null]]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"t-14 t-black--light t-bold"],[12],[1,"\\n "],[1,[28,[32,0],["i18n_sort_recently_added","abi-shared/components/sort-dropdown"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[8,[32,5],[[16,"aria-label",[28,[32,0],["i18n_sort_first_name_a11y_text","abi-shared/components/sort-dropdown"],null]],[24,"role","button"],[4,[32,4],["sort_by_first_name"],null]],[["@itemSelected"],[[28,[32,6],[[30,2,["invokeAndClose"]],[28,[32,6],[[30,4],[30,5,["FIRST_NAME"]],[28,[32,0],["i18n_sort_first_name","abi-shared/components/sort-dropdown"],null]],null]],null]]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"t-14 t-black--light t-bold"],[14,"aria-hidden","true"],[12],[1,"\\n "],[1,[28,[32,0],["i18n_sort_first_name","abi-shared/components/sort-dropdown"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[8,[32,5],[[16,"aria-label",[28,[32,0],["i18n_sort_last_name_a11y_text","abi-shared/components/sort-dropdown"],null]],[24,"role","button"],[4,[32,4],["sort_by_last_name"],null]],[["@itemSelected"],[[28,[32,6],[[30,2,["invokeAndClose"]],[28,[32,6],[[30,4],[30,5,["LAST_NAME"]],[28,[32,0],["i18n_sort_last_name","abi-shared/components/sort-dropdown"],null]],null]],null]]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"t-14 t-black--light t-bold"],[14,"aria-hidden","true"],[12],[1,"\\n "],[1,[28,[32,0],["i18n_sort_last_name","abi-shared/components/sort-dropdown"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[2]]]]],[1,"\\n "],[13],[1,"\\n "]],["@memberListLength","dropdown","@sortByText","@sortBy","@sortTypes"],false,["if"]]',moduleName:"abi-shared/components/sort-dropdown.gjs",scope:()=>[d.default,u.default,p.default,m.default,h.default,_.default,g.fn],isStrictMode:!0}),(f=(0,s.inject)("i18n"),b=(0,l.localCopy)("args.isDropdownOpen"),v=class extends c.default{constructor(){super(...arguments);(0,t.default)(this,"i18n",y,this);(0,t.default)(this,"isDropdownOpen",T,this)}get triggerA11yText(){const{sortByText:e}=this.args
let t
switch(null==e?void 0:e.toString()){case I.FIRST_NAME:t="i18n_sort_connections_first_name_trigger_a11y_text"
break
case I.LAST_NAME:t="i18n_sort_connections_last_name_trigger_a11y_text"
break
default:t="i18n_sort_connections_recently_trigger_a11y_text"}return this.i18n.lookupTranslation(this.constructor,t)()}},y=(0,i.default)(v.prototype,"i18n",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,i.default)(v.prototype,"isDropdownOpen",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v))}))
define("abi-shared/controllers/results-empty",["exports","@ember/controller"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=t.default}))
define("abi-shared/controllers/results",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/service","@ember/controller","abi-shared/utils/constants-base"],(function(e,t,n,i,r,o,a,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var l,c,d
const u=new RegExp(s.ABI_ROUTES.GUEST_RESULTS)
e.default=(l=(0,o.inject)("router"),c=class extends a.default{constructor(){super(...arguments);(0,t.default)(this,"router",d,this);(0,n.default)(this,"queryParams",["afterRoute","isAcceptInvite","isSendInvite","member","importTaskHandle","transactionId","trk","isOrganic"]);(0,n.default)(this,"contactsLength",0);(0,n.default)(this,"isAcceptInvite",null);(0,n.default)(this,"isSendInvite",null);(0,n.default)(this,"isOrganic",null);(0,n.default)(this,"memberTarget",null);(0,n.default)(this,"stepNum",1);(0,n.default)(this,"stepTotal",2)}get isGuest(){return u.test(this.router.currentRouteName)}},d=(0,i.default)(c.prototype,"router",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c)}))
define("abi-shared/requests/curated-contacts-request",["exports","@ember/object","abi-shared/utils/constants-base","global-utils/utils/is-network-error","voyager-web/config/environment","graphql-queries/queries/abi/curated-contacts.graphql","graphql-queries/queries/abi/curated-contact-by-id.graphql"],(function(e,t,n,i,r,o,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.FIELD_NAME_MAP=void 0
e.constructSaveUrl=function(e){return`/${r.default.namespace}/${s}/${e}`}
e.getContactsCountSummary=function(e,t){return l(t,e,{sortBy:"RECENCY",count:1,start:0,sources:[]})}
e.getCuratedContactByEntityUrn=function(e,t,r){e.executeQuery(a.default,{contactsDashCuratedContactsId:r},{reload:!0}).catch((e=>{if((0,i.default)(e)){t.logError(e,n.ABI_ERROR_LOG_TAGS,!1)
return[]}throw e}))}
e.getCuratedContacts=function(e,t,r){return e.queryURL(s,{params:r,reload:!0}).catch((e=>{if((0,i.default)(e)){t.logError(e,n.ABI_ERROR_LOG_TAGS,!1)
return[]}throw e}))}
e.getDashCuratedContacts=l
const s="growth/curatedContacts"
function l(e,r,a){return e.executeQuery(o.default,a,{reload:!0}).then((e=>(0,t.get)(e,"data.contactsDashCuratedContactsByContacts"))).catch((e=>{if((0,i.default)(e)){r.logError(e,n.ABI_ERROR_LOG_TAGS,!1)
return[]}throw e}))}e.FIELD_NAME_MAP={emailAddress:"emails",number:"phoneNumbers",rawAddress:"addresses"}}))
define("abi-shared/requests/dash-manage-source",["exports","@ember/debug","abi-shared/utils/settings-constants","voyager-web/config/environment"],(function(e,t,n,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.actionRequest=c
e.activateRequest=o
e.deactivateRequest=a
e.default=void 0
e.purgeRequest=l
e.stopSyncRequest=s
function r(e,t){return`/${i.default.namespace}/${e}?action=${t}`}function o(e){let{handle:t,source:n}=e
return[`/${i.default.namespace}/voyagerContactsDashProviderIntegrations`,{reload:!0,method:"POST",queryParams:{action:"activate"},params:{handle:t,source:n}}]}function a(e){return[`/${i.default.namespace}/voyagerContactsDashProviderIntegrations`,{reload:!0,method:"POST",queryParams:{action:"deactivate"},params:{contactsIntegrationV2Urn:e,removeData:!0}}]}function s(e){return[`/${i.default.namespace}/voyagerContactsDashProviderIntegrations`,{reload:!0,method:"POST",queryParams:{action:"stopSync"},params:{contactsIntegrationV2Urn:e}}]}function l(){let{action:e,endpoint:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
const n=r(t,e)
return[n,"POST",{}]}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0
switch(t){case n.INTEGRATION_ACTION.STOP_SOURCE:return s(e.id)
case n.INTEGRATION_ACTION.REMOVE_SOURCE:return a(e.id)
case n.INTEGRATION_ACTION.SYNC_SOURCE:case n.INTEGRATION_ACTION.RESYNC_SOURCE:return o(e)
default:return s(e.id)}}const d={sendProviderIntegrationRequest:function(e,t,n){return e.queryURL(...c(t,n)).then((e=>({data:{value:e}})))},sendProviderIntegrationRemoveAllRequest:function(e,t){return e.adapterFor("-ember-m3").ajax(...l(t))}}
e.default=d}))
define("abi-shared/requests/email-import",["exports","global-utils/utils/url","voyager-web/config/environment","global-utils/utils/create-cache-key-from-query"],(function(e,t,n,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.createImportTicketIdDashRequest=function(e){const{emailAddress:t,password:n,abookImportTransactionId:i}=e
return["/voyager/api/voyagerContactsDashEmailImportTask","POST",{data:{transactionId:i,email:t,password:n}}]}
e.createPollStatusDashRequest=function(e){return[`/voyager/api/voyagerContactsDashEmailImportTaskStatus/${encodeURIComponent(e)}`,{reload:!0,params:{recipe:"com.linkedin.voyager.dash.deco.contacts.EmailImportTaskStatus"}}]}
e.createResolveEmailDomainRequest=function(e){const r={q:"findEmailProviders",emailAddress:e},o=(0,t.addQueryParams)(`/${n.default.namespace}/voyagerContactsDashEmailProvider`,r)
return[o,{cacheKey:(0,i.default)(o,r),params:{recipe:"com.linkedin.voyager.dash.deco.contacts.EmailProvider"}}]}}))
define("abi-shared/routes/abi/index",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/service","rsvp","@ember/object","@ember/routing/route","voyager-web/config/environment","@glimmer/tracking","data-layer/utils/profile/get-profile"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var m,h,_,g
const f={refreshModel:!1}
e.default=(m=(0,a.inject)("global-services@store-shim"),h=class extends c.default{constructor(){super(...arguments);(0,n.default)(this,"pageKey","flagship3_abi_intro");(0,t.default)(this,"storeShim",_,this);(0,t.default)(this,"emailPassed",g,this);(0,n.default)(this,"queryParams",{afterRoute:f,emailHandle:f,transactionId:f})}_modelHash(e,t){const n=t.to?t.to.queryParams:{},{afterRoute:i,transactionId:r}=e,{inviteActionFailed:o,isSendInvite:a,isAcceptInvite:c,member:u,knownError:m}=n,{storeShim:h}=this
let _
u&&(_=(0,p.getProfileById)(h,u,"com.linkedin.voyager.dash.deco.identity.profile.MiniProfile"))
const g=h.queryURL("fileUploadToken",{cacheKey:"fileUploadToken|ADDRESS_BOOK",params:{type:"ADDRESS_BOOK"},reload:!0}),f=e.emailHandle
let b
if(f){const e=l.default.create({emailAddress:f})
b=(0,s.resolve)(e)
this.emailPassed=!0}else{b=h.queryURL(`/${d.default.namespace}/voyagerContactsDashSupportedEmail`,{cacheKey:"dashSupportedEmail",reload:!0,params:{recipe:"com.linkedin.voyager.dash.deco.contacts.SupportedEmail"}})
this.emailPassed=!1}(0,l.setProperties)(this,{afterRoute:i,transactionId:r})
return{profile:_,prefillEmail:b,fileUploadToken:g,acceptInvite:c,sendInvite:a,showInviteAlert:!(!c&&!a),inviteActionFailed:o,knownError:m}}_grabFulfilled(e){const t={}
let n
for(n in e)"fulfilled"===e[n].state&&(t[n]=e[n].value)
return t}resetController(e,t){super.resetController(...arguments)
t&&(0,l.setProperties)(e,{isAcceptInvite:null,isSendInvite:null,member:null})}model(e,t){if(!(0,o.isDestroying)(this))return(0,s.hashSettled)(this._modelHash(e,t)).then(this._grabFulfilled)}setupController(e){if(!(0,o.isDestroying)(this)){super.setupController(...arguments);(0,l.setProperties)(e,{emailPassed:this.emailPassed,transactionId:this.transactionId??null})}}},_=(0,i.default)(h.prototype,"storeShim",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,i.default)(h.prototype,"emailPassed",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),h)}))
define("abi-shared/routes/abi/results",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/service","rsvp","@ember/object","@ember/routing/route","ember-cli-pemberly-tracking/utils/tracking","abi-shared/utils/constants-base","gdpr-notice/utils/notice-constants","abi-shared/utils/abi-requests","ember-app-scheduler","global-utils/utils/is-browser","ember-cli-pemberly-tracking/utils/user-timing","abi-shared/utils/contacts-processor","@glimmer/tracking","data-layer/utils/profile/get-profile"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_,g,f,b,v){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var y,T,I,E,O,S,A,C,R,N,k,w,P,M
e.default=(y=(0,a.inject)("abi-shared@abi-results"),T=(0,a.inject)("gdpr-notice@gdpr-notice"),I=(0,a.inject)("i18n"),E=(0,a.inject)("locale"),O=(0,a.inject)("global-services@store-shim"),S=(0,a.inject)("tracking"),A=class extends c.default{constructor(){super(...arguments);(0,n.default)(this,"pageKey","flagship3_abi_results");(0,t.default)(this,"abiResults",C,this);(0,t.default)(this,"gdprNotice",R,this);(0,t.default)(this,"i18n",N,this);(0,t.default)(this,"locale",k,this);(0,t.default)(this,"storeShim",w,this);(0,t.default)(this,"tracking",P,this);(0,n.default)(this,"showInviteAlert",!1);(0,t.default)(this,"stepNum",M,this);(0,n.default)(this,"ctaTextI18nKey","i18n_view_settings_mobile")
this.contactsProcessor=new f.default(this.storeShim)}resetController(e,t){if(t){(0,l.setProperties)(e,{contactsLength:0,memberTarget:null,stepNum:1})
this.abiResults.reset()}for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r]
super.resetController(...i)}setupController(e,t){var n,i
if((0,o.isDestroying)(this))return
super.setupController(e,t)
const{inviteActionFailed:r,isAcceptInvite:a,isSendInvite:s,inviteeProfile:c}=t,d=null===(n=t.memberContacts)||void 0===n?void 0:n.length,u=null===(i=t.guestContacts)||void 0===i?void 0:i.length,p=(a||s)&&Object.keys(c).length||r,m=!!d,h=m?d:u,_=m?"m2m":"m2g",g=this._buildSteps(d,u,m);(0,l.set)(t,"steps",g);(0,l.set)(this,"transitionToRoute",g[0].route.replace(/^abi\./,""));(0,l.setProperties)(e,{contactsLength:h,memberTarget:_,inviteActionFailed:r,showInviteAlert:p,inviteeProfile:c,isOrganic:t.isOrganic,afterRoute:this.afterRoute,stepNum:1,stepTotal:2})}setup(){(0,l.set)(this,"controllerName","abi.results-empty")
super.setup(...arguments)}_buildSteps(e,t,n){const i=[],r=e||t,o=u.ABI_STEPS,{successEnabledForPlatform:a}=this,{afterRoute:s}=this,l=s&&"undefined"!==this.afterRoute
e&&i.push(o.M2M_STEP)
t&&i.push(o.M2G_STEP)
e&&t&&!n&&i.reverse()
r&&a&&i.push(o.SUCCESS)
l&&s!==o.DEFAULT_AFTER_ROUTE.route&&i.push({route:s})
i.push(o.DEFAULT_AFTER_ROUTE)
return i}model(e,t){if((0,o.isDestroying)(this))return
const{isOrganic:n,importTaskHandle:i,trk:r,transactionId:a,afterRoute:c}=e,{inviteActionFailed:p,isAcceptInvite:h,isSendInvite:_,member:g}=t.to?t.to.queryParams:{},f=a||(0,d.generateTrackingId)(),b=c||u.ABI_ROUTES.DEFAULT_AFTER_ROUTE,y=t.to.name,T=this.controllerFor(u.RESULTS_PATH)
let I={}
g&&(I=(0,v.getProfileById)(this.storeShim,g,"com.linkedin.voyager.dash.deco.identity.profile.MiniProfile"))
const E=this._getImportedContactsParams(f,i),O={isSendInvite:_,inviteeProfile:I,inviteActionFailed:p,isAcceptInvite:h,isOrganic:n,importedContactsParams:E,entryPoint:u.WYLO_ENTRY_POINTS[r],transactionId:f};(0,l.set)(this,"afterRoute",b)
this._startMeasurement(u.RL_MEASUREMENTS.FETCH_CONTACT)
const S=(0,m.getDashContactsQueryUrl)(E)
return this.storeShim.queryURL(S,{params:{recipe:"com.linkedin.voyager.dash.deco.contacts.FullDeviceUploadedContacts"},reload:!0}).then((e=>{if((0,o.isDestroying)(this))return
let t=e.elements.map((e=>{var t
return null===(t=e.deviceUploadedContacts)||void 0===t?void 0:t.memberContact})).filter((e=>!!e)),n=e.elements.map((e=>{var t
return null===(t=e.deviceUploadedContactsUnion)||void 0===t?void 0:t.guestContact})).filter((e=>!!e))
const i=t.length,r=n.length,a=y===u.ABI_ROUTES.MEMBER_RESULTS?i:r;(0,l.set)(T,"contactsLength",a)
this._endMeasurement(u.RL_MEASUREMENTS.FETCH_CONTACT,i+r)
if(i||r){this._startMeasurement(u.RL_MEASUREMENTS.PROCESS_MEMBER_CONTACTS)
t=this.contactsProcessor.dashContactsHandler(t)
this._endMeasurement(u.RL_MEASUREMENTS.PROCESS_MEMBER_CONTACTS,i)
this._startMeasurement(u.RL_MEASUREMENTS.PROCESS_GUEST_CONTACTS)
n=this.contactsProcessor.dashContactsHandler(n,!0)
O.guestContacts=n
this._endMeasurement(u.RL_MEASUREMENTS.PROCESS_GUEST_CONTACTS,r);(0,l.set)(O,"memberContacts",t)
return(0,s.hash)(O)}this.controllerFor(u.RESULTS_PATH).target.transitionTo(b)})).catch((e=>{if((0,o.isDestroying)(this))throw e
this.tracking.fireTrackingPayload(u.METRICS_KEYS.EVENTS.IMPORT_DISCARD_EVENT,{abookImportInvitationDiscardReason:{type:"CONTACTS_FETCH"},abookImportTransactionId:a})}))}_getImportedContactsParams(e,t){var n
const i={uploadTransactionId:e,deviceCountryCode:(null===(n=this.locale)||void 0===n?void 0:n.requestIpCountryCode)||u.DEFAULT_COUNTRY_CODE,q:"viewer"}
t&&(i.importTaskHandle=t)
return i}_nextStep(){var e
const t=null===(e=this.currentModel)||void 0===e?void 0:e.steps,n=this._getStepNum(),i=t.length-1,r=t[n],{memberTarget:o}=r,{afterRoute:a}=this
let{route:s}=r
n<i?(0,l.setProperties)(this.controllerFor(u.RESULTS_PATH),{stepNum:n+1,memberTarget:o}):n===i&&a&&(s=a)
this.controllerFor(u.RESULTS_PATH).target.transitionTo(s)}_getStepNum(){return this.controllerFor(u.RESULTS_PATH).stepNum}_showGDPRNotice(){const{i18n:e}=this,t="abi@results",n=e.lookupTranslation(t,"i18n_results_landing_notice")(),i=e.lookupTranslation(t,this.ctaTextI18nKey)(),r="/mynetwork/settings/manage-syncing";(0,h.whenRouteIdle)().then((()=>{(0,o.isDestroying)(this)||this.gdprNotice.showToast(p.GDPR_NOTICE_POLICY_TYPE.MANAGE_CONTACT_PAGE,n,i,r)}))}_getGroupByNumberOfContacts(e){const t=Math.floor(e/1e3)
return t<10?t:10}_startMeasurement(e){_.default&&g.default.addMarker(e.START_MARKER)}_endMeasurement(e,t){if(_.default){const n=e.START_MARKER,i=e.END_MARKER,r=e.NAME
if(g.default.hasMarkerName(n)){const e=this._getGroupByNumberOfContacts(t)
g.default.addMarker(i)
g.default.measureTime(`${r}_${e}`,n,i)}}}skipBtn(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0]
this._nextStep()
e&&this.tracking.fireInteractionEvent(u.METRICS_KEYS.EVENTS.SKIP)}didTransition(){this._showGDPRNotice()
1===this.controllerFor(u.RESULTS_PATH).stepNum&&this.replaceWith(this.transitionToRoute)
return!0}},C=(0,i.default)(A.prototype,"abiResults",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,i.default)(A.prototype,"gdprNotice",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,i.default)(A.prototype,"i18n",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,i.default)(A.prototype,"locale",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,i.default)(A.prototype,"storeShim",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,i.default)(A.prototype,"tracking",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,i.default)(A.prototype,"stepNum",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),(0,i.default)(A.prototype,"skipBtn",[l.action],Object.getOwnPropertyDescriptor(A.prototype,"skipBtn"),A.prototype),(0,i.default)(A.prototype,"didTransition",[l.action],Object.getOwnPropertyDescriptor(A.prototype,"didTransition"),A.prototype),A)}))
define("abi-shared/routes/abi/results/guest",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/service","@ember/object","@ember/routing/route","abi-shared/utils/constants-base","@glimmer/tracking"],(function(e,t,n,i,r,o,a,s,l,c,d){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var u,p,m,h,_,g,f,b
const v="abi-shared@abi/results"
e.default=(u=(0,a.inject)("abi-shared@abi-tracking"),p=(0,a.inject)("heathrow@heathrow"),m=(0,a.inject)("i18n"),h=class extends l.default{constructor(){super(...arguments);(0,n.default)(this,"pageKey","flagship3_abi_m2g");(0,t.default)(this,"abiTracking",_,this);(0,t.default)(this,"heathrow",g,this);(0,t.default)(this,"i18n",f,this);(0,t.default)(this,"transactionId",b,this)}_getI18NStrings(e){var t,n
const{i18n:i}=this,r=i.lookupTranslation(v,"i18n_m2g_headline_c")(),o=i.lookupTranslation(v,"i18n_m2g_subhead_line_2")(),a=i.lookupTranslation(v,"i18n_m2g_subhead_c")([{num:null===(t=e.model)||void 0===t||null===(n=t.guestContacts)||void 0===n?void 0:n.length}])
return{i18nStepCopy:i.lookupTranslation(v,"i18n_abi_nav_step")([{stepNum:e.stepNum,stepTotal:e.stepTotal}]),i18nHeadingCopy:r,i18nSubheadingCopy:a,i18nSubheadingLine2:o}}model(){if((0,o.isDestroying)(this))return
const e=this.modelFor(c.RESULTS_PATH),{importedContactsParams:t}=e
t.contactsType="GUEST"
e.entryPoint&&!e.entryImpressionFired&&this.heathrow.organicAbiShouldSkipImport().then((t=>{if((0,o.isDestroying)(this))return
const n=t?c.SUGGESTED_ROUTE.RESULT_LANDING:c.SUGGESTED_ROUTE.INTRO
this.transactionId=this.abiTracking.fireAbiTracking(e.entryPoint,n,e.transactionId)
e.entryImpressionFired=!0}))
return e}setupController(e){var t,n
if((0,o.isDestroying)(this))return
super.setupController(...arguments)
const i=this.controllerFor(c.RESULTS_PATH),r=this._getI18NStrings(i);(0,s.setProperties)(e,{stepNum:i.stepNum,stepTotal:i.stepTotal,contactsLength:i.contactsLength,...r})
const a=null===(t=i.model)||void 0===t||null===(n=t.guestContacts)||void 0===n?void 0:n.length
a<=2?(0,s.set)(e,"guestContactsListClass","mn-abi-results--one-contacts-rows"):a<=4&&(0,s.set)(e,"guestContactsListClass","mn-abi-results--two-contacts-rows")}},_=(0,i.default)(h.prototype,"abiTracking",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,i.default)(h.prototype,"heathrow",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.default)(h.prototype,"i18n",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,i.default)(h.prototype,"transactionId",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h)}))
define("abi-shared/routes/abi/results/member",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/service","@ember/routing/route","abi-shared/utils/constants-base","@ember/object"],(function(e,t,n,i,r,o,a,s,l,c){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var d,u,p,m,h,_,g
const f="abi-shared@abi/results"
e.default=(d=(0,a.inject)("abi-shared@abi-tracking"),u=(0,a.inject)("heathrow@heathrow"),p=(0,a.inject)("i18n"),m=class extends s.default{constructor(){super(...arguments);(0,n.default)(this,"pageKey","flagship3_abi_m2m");(0,t.default)(this,"abiTracking",h,this);(0,t.default)(this,"heathrow",_,this);(0,t.default)(this,"i18n",g,this)}_getI18NStrings(e){var t,n
const{i18n:i}=this
return{i18nStepCopy:i.lookupTranslation(f,"i18n_abi_nav_step")([{stepNum:e.stepNum,stepTotal:e.stepTotal}]),i18nHeadingCopy:i.lookupTranslation(f,"i18n_m2m_header")(),i18nSubheadingCopy:i.lookupTranslation(f,"i18n_m2m_subheader")([{num:null===(t=e.model)||void 0===t||null===(n=t.memberContacts)||void 0===n?void 0:n.length}])}}model(){if((0,o.isDestroying)(this))return
const e=this.modelFor(l.RESULTS_PATH)
e.entryPoint&&!e.entryImpressionFired&&this.heathrow.organicAbiShouldSkipImport().then((t=>{if((0,o.isDestroying)(this))return
const n=t?l.SUGGESTED_ROUTE.RESULT_LANDING:l.SUGGESTED_ROUTE.INTRO;(0,c.set)(this,"transactionId",this.abiTracking.fireAbiTracking(e.entryPoint,n,e.transactionId))
e.entryImpressionFired=!0}))
return e}setupController(e){if((0,o.isDestroying)(this))return
super.setupController(...arguments)
const t=this.controllerFor(l.RESULTS_PATH),n=this._getI18NStrings(t);(0,c.setProperties)(e,{isExtendedHeader:t.isExtendedHeader,profile:t.profile,...n})}},h=(0,i.default)(m.prototype,"abiTracking",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,i.default)(m.prototype,"heathrow",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,i.default)(m.prototype,"i18n",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m)}))
define("abi-shared/routes/abi/results/success",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/service","@ember/object","@ember/routing/route"],(function(e,t,n,i,r,o,a,s,l){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var c,d,u,p,m
e.default=(c=(0,a.inject)("abi-shared@abi-results"),d=(0,a.inject)("router"),u=class extends l.default{constructor(){super(...arguments);(0,t.default)(this,"abiResults",p,this);(0,t.default)(this,"router",m,this);(0,n.default)(this,"pageKey","flagship3_abi_success");(0,n.default)(this,"totalInviteCount",0)}_getMemberContactsWithPhotos(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]
const t=e.length,n=[]
for(let i=0;i<t&&n.length<3;i++){const t=e[i]
t&&t.profilePicture&&n.push(s.default.create({entity:t}))}return n.length>=3?n:[]}setupController(e){if((0,o.isDestroying)(this))return
super.setupController(...arguments)
const t=this.abiResults,{totalInviteCount:n,m2mContacts:i}=t.getProperties("totalInviteCount","m2mInviteCount","m2mContacts"),r=this._getMemberContactsWithPhotos(i),a=r.length?n-3:0
e.setProperties({memberContactsWithPhotos:r,seeMoreCount:a,totalInviteCount:n})}transitionToResults(){const e=this.controllerFor("results"),t=e.get("target")
e.setProperties({stepNum:1,memberTarget:"m2m",guestContacts:e.model.guestContacts,memberContacts:e.model.memberContacts})
t.reset()
this.router.transitionTo("abi.results")}},p=(0,i.default)(u.prototype,"abiResults",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,i.default)(u.prototype,"router",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(u.prototype,"transitionToResults",[s.action],Object.getOwnPropertyDescriptor(u.prototype,"transitionToResults"),u.prototype),u)}))
define("abi-shared/routes/settings/manage-syncing",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/service","@ember/debug","@ember/object","@ember/routing/route","global-utils/utils/url","global-utils/utils/create-cache-key-from-query","abi-shared/utils/constants","@ember/utils","abi-shared/utils/settings-constants"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var _,g,f
const b=d.default.getDomainUrl()
e.default=(_=(0,a.inject)("global-services@store-shim"),g=class extends c.default{constructor(){super(...arguments);(0,n.default)(this,"pageKey","flagship3_people_settings_syncing");(0,t.default)(this,"storeShim",f,this)}model(){if((0,o.isDestroying)(this))return
const e={q:"criteria"},t="voyagerContactsDashProviderIntegrations"
e.recipe="com.linkedin.voyager.dash.deco.contacts.FullProviderIntegration"
return this.storeShim.queryURL(t,{cacheKey:(0,u.default)(t,e),params:e,reload:!0}).then((e=>{if((0,o.isDestroying)(this))return
return{integrations:e.elements.map((e=>{const t=e.source??"",n=this._doesExist(e);(0,l.setProperties)(e,{active:e.active??!1,source:t})
const{providerLabel:i,providerName:r,icon:o}=p.SOURCE_METADATA[t],a={exists:n,providerName:r,icon:o,providerLabel:i};(0,m.isPresent)(p.SOURCES_WITH_SUPPORTED_HANDLE[t])&&(a.email=e.handle??"")
const s=p.HELP_CENTER_URLS[t];(0,m.isPresent)(s)&&!n&&(a.helpCenterUrl=`${b}${s}`)
return{meta:a,model:e}}))}}))}_doesExist(e){return!!e.contactsIntegrationV2Urn}_sortBySourceTypeAsc(e,t){var n,i
return(null===(n=e.model)||void 0===n?void 0:n.sourceType)>(null===(i=t.model)||void 0===i?void 0:i.sourceType)?1:-1}_sortBySourceAsc(e,t){var n,i
return(null===(n=e.model)||void 0===n?void 0:n.source)>(null===(i=t.model)||void 0===i?void 0:i.source)?1:-1}_decorateSources(e){const t=e.integrations,n=[]
t.forEach((e=>{var t
const i=(null===(t=e.model)||void 0===t?void 0:t.source)??"",[r,o=""]=i.split("_"),a=r[0].toUpperCase()+r.slice(1).toLowerCase(),s=o.toLowerCase();(0,l.setProperties)(e.meta,{providerLabel:a,sourceType:s})
"MICROSOFT"!==r&&n.push(e)}))
n.sort(this._sortBySourceTypeAsc);(0,l.set)(e,"sources",n)}_decorateSourcesForStopSyncs(e){const t=e.integrations,n=[],i=[]
t.forEach((e=>{var t
"contacts"===(null===(t=e.meta)||void 0===t?void 0:t.providerLabel)?n.push(e):i.push(e)}))
const r={model:{providerLabel:"contacts",active:!1,handle:null,source:"MOBILE_CONTACTS"},meta:{icon:"phone",providerName:"mobile_contacts",helpCenterUrl:`${b}/help/linkedin/answer/82248`}},o={model:{providerLabel:"calendar",active:!1,handle:null,source:"MOBILE_CALENDAR"},meta:{icon:"phone",providerName:"mobile_calendar",helpCenterUrl:`${b}/help/linkedin/answer/50201`,canCreateIntegration:!1}}
n.sort(this._sortBySourceAsc)
i.sort(this._sortBySourceAsc)
n.push(r)
i.push(o);(0,l.setProperties)(e,{contactIntegrations:n,calendarIntegrations:i})}_setUpRemoveAllMobileView(e){const t=Object.keys(h.REMOVE_ALL_SETTINGS);(0,l.set)(e,"supportedSourceGroupTypes",t)}afterModel(e){if(!(0,o.isDestroying)(this)){this._decorateSourcesForStopSyncs(e)
this._setUpRemoveAllMobileView(e)
this._decorateSources(e)}}setupController(e){if(!(0,o.isDestroying)(this)){super.setupController(...arguments);(0,l.setProperties)(e,{helpCenterUrl:`${b}/help/linkedin/suggested/1278/syncing-contacts-from-other-address-books-and-sources`,privacyPolicyUrl:`${b}/legal/mobile/privacy-policy`})}}},f=(0,i.default)(g.prototype,"storeShim",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g)}))
define("abi-shared/services/abi-processing",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/service","abi-shared/requests/email-import","global-utils/utils/is-network-error","abi-shared/utils/constants-base"],(function(e,t,n,i,r,o,a,s,l,c){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var d,u,p,m,h,_,g
e.default=(d=(0,a.inject)("global-services@store-shim"),u=(0,a.inject)("tracking"),p=(0,a.inject)("jet"),m=class extends a.default{constructor(){super(...arguments);(0,t.default)(this,"storeShim",h,this);(0,t.default)(this,"tracking",_,this);(0,t.default)(this,"jet",g,this)}_resolveDomainCallback(e){let{emailAddress:t}=e
return this.storeShim.queryURL(...(0,s.createResolveEmailDomainRequest)(t)).then((e=>{var t,n,i,r
return{isOauth:!(null!==(t=e.elements)&&void 0!==t&&null!==(n=t[0])&&void 0!==n&&n.passwordInputRequired),providerName:null===(i=e.elements)||void 0===i||null===(r=i[0])||void 0===r?void 0:r.emailProviderType}}))}_getImportTicketIdCallback(e,t){const n=(0,s.createImportTicketIdDashRequest)(t)
return this.storeShim.adapterFor("-ember-m3").ajax(...n).then((t=>{if(!(0,o.isDestroying)(this)){if(!t||!t.newId)throw e.CONSTANTS.IMPORT_ERRORS.INVALID_IMPORT_TICKET_ID
return{importTicketId:t.newId}}})).catch((e=>{if((0,o.isDestroying)(this))throw e;(0,l.default)(e)&&this.jet.logError(e,c.ABI_JET_TAGS.CREATE_IMPORT_DASH_TASK,!1)
throw e}))}_getPollStatusCallback(e,t){let{importTicketId:n}=t
return this.storeShim.queryURL(...(0,s.createPollStatusDashRequest)(n)).then((t=>{if((0,o.isDestroying)(this))return
const{state:n}=t
if(!n)throw e.CONSTANTS.IMPORT_ERRORS.IMPORT_ERROR_OTHER
"ERROR_BAD_LOGIN"===n&&this.jet.logError(n,c.ABI_JET_TAGS.IMPORT_DASH_ERROR_BAD_LOGIN,!1)
return{authSpecGaapScriptV2Urn:t.authSpecGaapScriptV2Urn,status:n}})).catch((e=>{if((0,o.isDestroying)(this))throw e;(0,l.default)(e)&&this.jet.logError(e,c.ABI_JET_TAGS.GET_IMPORT_DASH_TASK_STATUS,!1)
throw e}))}_fireTrackingEventCallback(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
const i={abookImportTransactionId:e}
n.status&&(i.status=n.status)
this.tracking.fireTrackingPayload(t,i)}validateEmail(e){let{abiInstance:t,emailAddress:n}=e
return t.validateEmailAndResolveDomain({emailAddress:n,resolveDomainCallback:this._resolveDomainCallback.bind(this)})}startEmailContactsImport(e){let{abiInstance:t,providerData:n}=e
const i={abookImportTransactionId:n.abookImportTransactionId,emailAddress:n.emailAddress,getImportTicketIdCallback:this._getImportTicketIdCallback.bind(this,t),pollStatusCallback:this._getPollStatusCallback.bind(this,t),fireTrackingEventCallback:this._fireTrackingEventCallback.bind(this,n.abookImportTransactionId)}
return n.password?t.importContactsFromNonOauthDomain({...i,password:n.password}):t.importContactsFromOauthDomain({...i,provider:n.providerName,jSecure:jSecure})}},h=(0,i.default)(m.prototype,"storeShim",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,i.default)(m.prototype,"tracking",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,i.default)(m.prototype,"jet",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m)}))
define("abi-shared/services/abi-results",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@glimmer/tracking","@ember/service","tracked-built-ins"],(function(e,t,n,i,r,o,a,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var l,c,d,u
e.default=(l=class extends a.default{constructor(){super(...arguments);(0,t.default)(this,"m2gInviteCount",c,this);(0,t.default)(this,"m2mInviteCount",d,this);(0,t.default)(this,"m2mContacts",u,this)}get totalInviteCount(){return this.m2mInviteCount+this.m2gInviteCount}reset(){this.m2mContacts.length=0
this.m2gInviteCount=0
this.m2mInviteCount=0}updateInvitationCount(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0
const i=t.length,r=e.includes("MEMBER")?"m2m":"m2g",o=n||i
if("m2m"===r){this.m2mInviteCount=o
if(i>=3){this.m2mContacts.length=0
this.m2mContacts=new s.TrackedArray(t)}}else"m2g"===r&&(this.m2gInviteCount=o)}},c=(0,i.default)(l.prototype,"m2gInviteCount",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),d=(0,i.default)(l.prototype,"m2mInviteCount",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),u=(0,i.default)(l.prototype,"m2mContacts",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new s.TrackedArray([])}}),l)}))
define("abi-shared/services/abi-tracking",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/service","abi-shared/utils/constants-base","heathrow/utils/constants","ember-cli-pemberly-tracking/utils/tracking","@ember/object"],(function(e,t,n,i,r,o,a,s,l,c,d){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var u,p,m,h,_
e.default=(u=(0,a.inject)("tracking"),p=(0,a.inject)("heathrow@heathrow"),m=class extends a.default{constructor(){super(...arguments);(0,t.default)(this,"tracking",h,this);(0,t.default)(this,"heathrow",_,this)}fireImportSubmitEvent(e){const{tracking:t}=this
t.fireTrackingPayload(s.METRICS_KEYS.EVENTS.IMPORT_SUBMIT_EVENT,{abookImportTransactionId:e})}fireStandardImportInvitationImpressionEvent(e,t){const{tracking:n}=this
n.fireTrackingPayload(s.METRICS_KEYS.EVENTS.IMPORT_INVITATION_IMPRESSION_EVENT,{abookImportTransactionId:e,impressionType:"ALL",count:t,numberOfExistingContacts:0,numberOfNewContacts:0,numberOfContactsPortedFromPhoneNumber:0})}fireGuestImportInvitationCreateEvent(e,t){const{tracking:n}=this
n.fireTrackingPayload(s.METRICS_KEYS.EVENTS.IMPORT_INVITATION_CREATE_EVENT,{abookImportTransactionId:e,invitationType:"GUEST",numberOfInvitationsSent:t,invitationReceiptEmails:[],invitationCounts:{emailCount:t,smsCount:0,memberCount:0}})}fireCustomImportInvitationImpressionEvent(e){e.eventName=s.METRICS_KEYS.EVENTS.IMPORT_INVITATION_IMPRESSION_EVENT
this.fireCustomTrackingEvent(e)}fireCustomImportInvitationCreateEvent(e){e.eventName=s.METRICS_KEYS.EVENTS.IMPORT_INVITATION_CREATE_EVENT
this.fireCustomTrackingEvent(e)}fireCustomTrackingEvent(e){const{tracking:t}=this,{abookImportTransactionId:n,contacts:i,eventName:r}=e,o=e.routeType?e.routeType.toUpperCase():"",a=[],l={emailCount:0,smsCount:0,memberCount:0}
i.forEach((e=>{const{contactType:t,urn:n,"invitation.trackingId":i}=(0,d.getProperties)(e,"contactType","urn","invitation.trackingId"),r=i||(0,c.generateTrackingId)()
l[t]++
a.push({recipientUrn:n,invitationTrackingId:r})}))
const u={abookImportTransactionId:n,invitationCounts:l,invitationTrackingInfo:a,abookFetchTransactionId:null,mobileHeader:null}
r.match(s.METRICS_KEYS.EVENTS.IMPORT_INVITATION_IMPRESSION_EVENT)?Object.assign(u,{impressionType:o,count:0,numberOfExistingContacts:0,numberOfNewContacts:0,numberOfContactsPortedFromPhoneNumber:l.smsCount,suggestedConnections:null,suggestedInvitations:null}):Object.assign(u,{invitationType:o,numberOfInvitationsSent:i.length,invitationReceiptEmails:[]})
t.fireTrackingPayload(r,u)}fireAbiTracking(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,c.generateTrackingId)()
const i={abookImportTransactionId:n,entryPoint:e,suggestedRoute:t},{tracking:r}=this
t?r.fireTrackingPayload(s.EVENTS.IMPORT_ENTRY_IMPRESSION_EVENT,i):this.heathrow.organicAbiShouldSkipImport().then((e=>{if(!(0,o.isDestroying)(this)){i.suggestedRoute=e?s.SUGGESTED_ROUTE.RESULT_LANDING:s.SUGGESTED_ROUTE.INTRO
r.fireTrackingPayload(s.EVENTS.IMPORT_ENTRY_IMPRESSION_EVENT,i)}}))
return n}fireAbiEntryTracking(e,t){let n=null
t===l.HEATHROW_ROUTES.ABI_SPLASH?n=s.SUGGESTED_ROUTE.INTRO:t===l.HEATHROW_ROUTES.ABI_RESULTS_LANDING&&(n=s.SUGGESTED_ROUTE.RESULT_LANDING)
return this.fireAbiTracking(e,n)}fireImpressionTracking(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
e.abookImportTransactionId=e.abookImportTransactionId||(0,c.generateTrackingId)()
const{tracking:t}=this
t.fireTrackingPayload(s.EVENTS.IMPORT_IMPRESSION_EVENT,{source:t.getCurrentPageKey(),abookImportTransactionId:e.abookImportTransactionId,autoFilledEmail:e.autoFilledEmail,autoSelectedEmailProvider:this.getEmailProvider(e.emailProvider),orderOfEmailProviderss:e.providers||[],socialProofCount:e.socialProofCount||0})
return e.abookImportTransactionId}fireSubmitTracking(e){this.tracking.fireTrackingPayload(s.EVENTS.IMPORT_SUBMIT_EVENT,{abookImportTransactionId:e})}getEmailProvider(e){return s.EMAIL_PROVIDERS[e]||"OTHERS"}fireAuditLogEvent(e){this.tracking.fireTrackingPayload(s.EVENTS.AUDIT_LOG_EVENT,{consent:e?"INVITE_ALL_GUEST_ACTION":"INVITE_ALL_ACTION",actionTaken:"GRANTED",managedEntityUrns:[]})}},h=(0,i.default)(m.prototype,"tracking",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,i.default)(m.prototype,"heathrow",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m)}))
define("abi-shared/template-registry",[],(function(){}))
define("abi-shared/templates/abi/results",["exports","@ember/template-factory"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"/MC9Vvnd",block:'[[[1,"\\n"],[41,[30,0,["showInviteAlert"]],[[[1," "],[8,[39,1],null,[["@acceptInvite","@sendInvite","@inviteActionFailed","@miniProfile"],[[30,0,["isAcceptInvite"]],[30,0,["isSendInvite"]],[30,0,["inviteActionFailed"]],[30,0,["inviteeProfile"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["minimalResultsNav"]],[[[1," "],[10,0],[14,0,"mn-abi-results__takeover-header global-nav global-alert-offset-top"],[12],[1,"\\n "],[10,0],[14,0,"mn-abi-results__takeover-header-content display-flex"],[12],[1,"\\n "],[8,[39,2],[[24,0,"mn-abi-results__takeover-header-link"],[4,[38,3],["min_nav_logo"],null]],[["@route"],["feed.index"]],[["default"],[[[[1,"\\n "],[8,[39,4],null,[["@a11yText","@name","@type","@size"],[[28,[37,5],["i18n_linkedin_ally","abi-shared/templates/abi/results"],null],"linkedin-logo-blue","logo","small"]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[15,0,[29,["neptune-grid one-column\\n ",[52,[30,0,["minimalResultsNav"]],"mn-abi-results__takeover-grid"]]]],[12],[1,"\\n "],[10,0],[14,0,"core-rail"],[14,"role","main"],[12],[1,"\\n "],[10,0],[15,0,[29,["artdeco-card\\n ",[52,[30,0,["isExtendedHeader"]],"mn-abi-results__extended-layout"]]]],[12],[1,"\\n "],[46,[28,[37,7],null,null],null,null,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["if","invite-alert@invite-alert","ember-engines@link-to-external","ember-cli-pemberly-tracking@track-interaction","hue-web-icons@icon","t","component","-outlet"]]',moduleName:"abi-shared/templates/abi/results.hbs",isStrictMode:!1})}))
define("abi-shared/utils/abi-requests",["exports","global-utils/utils/url","voyager-web/config/environment"],(function(e,t,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.getDashContactsQueryUrl=function(e){let{q:i,importTaskHandle:r=null}=e
const o=(0,t.addQueryParams)(`/${n.default.namespace}/voyagerContactsDashDeviceUploadedContacts`,{q:i})
if(r)return(0,t.addQueryParam)(o,{importTaskHandle:r})
return o}}))
define("abi-shared/utils/constants-base",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.WYLO_ENTRY_POINTS=e.TRACK_OTHER_EMAIL=e.TOAST_TYPES=e.TIMEOUT_BEFORE_EMAIL_RESOLVE=e.SUPPORTED_CONTACTS_FILE_FORMATS=e.SUGGESTED_ROUTE=e.STANDARDIZED_SOURCE=e.SAVED_CONTACTS_PAGE_KEYS=e.RL_MEASUREMENTS=e.RESULTS_PATH=e.PHONE_ICON=e.PEOPLE_ICON=e.OAUTHDOMAINS=e.NOTIFICATION_DURATION=e.METRICS_KEYS=e.M2G_EMAIL_PROVIDERS_ICONS=e.LOCALIZED_SOURCE=e.LIXES=e.INVITATION_ORIGIN=e.FILE_UPLOAD_ERRORS=e.EVENTS=e.ENVELOPE_ICON=e.EMAIL_PROVIDERS=e.EMAIL_PATTERN=e.DESELECT_ALL_DISABLED_COUNTRIES=e.DEFAULT_PAGINATION_COUNT=e.DEFAULT_COUNTRY_CODE=e.CURATED_CONTACT_FIELDS=e.CHICLET_ATTRS=e.ALPHANUMERIC_PATTERN=e.ABI_TRANSITION_DELAY=e.ABI_STEPS_LEGACY=e.ABI_STEPS=e.ABI_ROUTES=e.ABI_JET_TAGS=e.ABI_INVITE_WITH_EMAIL_LIMIT=e.ABI_ERROR_TYPES=e.ABI_ERROR_LOG_TAGS=e.ABI_ERRORS_TO_MSGS=e.ABI_ENTRY_POINT_ROUTE_MAP=e.ABI_ENTRY_POINT=e.ABI_CONFIRMATION_TRANSITION_DELAY=void 0
const t=e.EVENTS={IMPORT_IMPRESSION_EVENT:"AbookImportImpressionEvent",IMPORT_OAUTH_CALLBACK_EVENT:"AbookImportOAuthCallbackEvent",IMPORT_OAUTH_REDIRECT_EVENT:"AbookImportOAuthRedirectEvent",IMPORT_TASK_STATUS_EVENT:"AbookImportTaskStatusEvent",IMPORT_ENTRY_IMPRESSION_EVENT:"AbookImportEntryImpressionEvent",IMPORT_INVITATION_CREATE_EVENT:"AbookImportInvitationCreateEvent",IMPORT_INVITATION_IMPRESSION_EVENT:"AbookImportInvitationImpressionEvent",IMPORT_SUBMIT_EVENT:"AbookImportSubmitEvent",IMPORT_DISCARD_EVENT:"AbookImportInvitationImpressionDiscardEvent",AUDIT_LOG_EVENT:"AuditLogEvent",SKIP:"skip",CONTINUE:"continue",SELECT_ALL:"select_all",DESELECT_ALL:"deselect_all",SELECT_ONE:"select_one"}
e.METRICS_KEYS={EVENTS:t},e.EMAIL_PATTERN=/^.+@.+\..+$/,e.ALPHANUMERIC_PATTERN=/[a-zA-Z0-9]/,e.OAUTHDOMAINS=["gmail.com","yahoo.com","aol.com","hotmail.com","msn.com"],e.DEFAULT_COUNTRY_CODE="us",e.EMAIL_PROVIDERS={HOTMAIL:"HOTMAIL",GMAIL:"GMAIL",GOOGLE:"GMAIL",OUTLOOK:"OUTLOOK",YAHOO:"YAHOO",AOL:"AOL",OTHERS:"OTHERS"},e.ABI_INVITE_WITH_EMAIL_LIMIT=100,e.ABI_ERROR_TYPES={INVALID_INPUT:"INVALID_INPUT",MEDIA_SERVER_FAILURE:"MEDIA_SERVER_FAILURE",TASK_CREATION_FAILURE:"TASK_CREATION_FAILURE",STATUS_CHECK_FAILURE:"STATUS_CHECK_FAILURE",STATUS_CHECK_TIMEOUT:"STATUS_CHECK_TIMEOUT"},e.ABI_ERRORS_TO_MSGS={UNSUPPORTED_DOMAIN:"i18n_toastmsg_error_406_unsupported_domain",INTERNAL_SERVER_ERROR:"i18n_toastmsg_error_500_internal_server_error",TOO_MANY_REQUESTS:"i18n_toastmsg_error_429_too_many_requests",INVALID_EMAIL:"i18n_toastmsg_error_400_invalid_email",ZERO_CONTACTS_TO_IMPORT:"i18n_toastmsg_error_zero_contacts",OAUTH_REQUIRED:"i18n_toastmsg_error_bad_login",POPUP_BLOCKED:"i18n_toastmsg_error_popup_blocked",ERROR_TITLE:"i18n_toastmsg_error_title",SUCCESS_TITLE:"i18n_toastmsg_success_title",ERROR_SENDING_INVITATIONS:"i18n_toastmsg_error_sending_invitations",ERROR_SENDING_INVITATIONS_LIMIT:"i18n_toastmsg_error_sending_invitations_limit",ENTERED_INVALID_EMAILS:"i18n_toastmsg_error_removed_invalid_email",SUCCESSFULLY_SENT_IWE:"i18n_toastmsg_successfully_send_email_invitations"},e.CHICLET_ATTRS={GOOGLE:{iconName:"gmail-color",solidIconName:"gmail-solid",trackingId:"chiclet_gmail"},GMAIL:{iconName:"gmail-color",solidIconName:"gmail-solid",trackingId:"chiclet_gmail"},YAHOO:{iconName:"yahoo-color",solidIconName:"yahoo-solid",trackingId:"chiclet_yahoo"},MSN:{iconName:"outlook-color",solidIconName:"outlook-solid",trackingId:"chiclet_outlook"},HOTMAIL:{iconName:"outlook-color",solidIconName:"outlook-solid",trackingId:"chiclet_hotmail"},AOL:{iconName:"aol-mail-color",solidIconName:"aol-mail-solid",trackingId:"chiclet_aol"},QQ:{iconName:"qq-color",solidIconName:"qq-solid",trackingId:"chiclet_qq"},NETEASE:{iconName:"",solidIconName:"",trackingId:"chiclet_netease"},SINA:{iconName:"",solidIconName:"",trackingId:"chiclet_sina"}},e.TRACK_OTHER_EMAIL="other_email",e.LIXES={FORCE_CLEAR_BADGE:"voyager.mynetwork.web.force-clear-badge",SHOW_CONNECTED_TIMESTAMP:"voyager.mynetwork.web.show-connected-timestamp",LIX_ABI_IWE_CUSTOM_MESSAGE:"voyager.mynetwork.web.extended.abi.iwe.custom.message"},e.ABI_ROUTES={MYNETWORK:"mynetwork.index",ABI_SPLASH:"mynetwork.abi",RESULTS:"abi.results",MEMBER_RESULTS:"results.member",GUEST_RESULTS:"results.guest",ABI_SUCCESS:"results.success",INTRO:"abi.intro",DEFAULT_AFTER_ROUTE:"mynetwork.index"},e.RESULTS_PATH="results",e.TIMEOUT_BEFORE_EMAIL_RESOLVE=1800,e.NOTIFICATION_DURATION=8e3,e.M2G_EMAIL_PROVIDERS_ICONS={GOOGLE:"google-solid",GMAIL:"gmail-solid",YAHOO:"yahoo-solid",MSN:"outlook-solid",HOTMAIL:"outlook-solid",OUTLOOK:"outlook-solid",AOL:"aol-mail-solid",QQ:"qq-solid",LINKEDIN:"linkedin-bug",FACEBOOK:"facebook-solid",TWITTER:"twitter-solid"},e.PEOPLE_ICON="people",e.ENVELOPE_ICON="envelope",e.PHONE_ICON="phone-handset",e.RL_MEASUREMENTS={FETCH_CONTACT:{NAME:"fetch_contacts",START_MARKER:"fetch_contacts_start",END_MARKER:"fetch_contacts_end"},PROCESS_MEMBER_CONTACTS:{NAME:"process_member_contacts",START_MARKER:"process_member_contacts_start",END_MARKER:"process_member_contacts_end"},PROCESS_GUEST_CONTACTS:{NAME:"process_guest_contacts",START_MARKER:"process_guest_contacts_start",END_MARKER:"process_guest_contacts_end"}},e.ABI_ENTRY_POINT={FIND_CONNECTIONS:"FIND_CONNECTIONS",EMAIL_ACCEPT:"EMAIL_ACCEPT",INVITATION_SENT:"INVITATION_SENT",CONNECTIONS_PAGE_NO_CONNECTIONS:"CONNECTIONS_PAGE_NO_CONNECTIONS",PROFILE:"PROFILE",CONNECT_HUB_ABI_PROMO:"CONNECT_HUB_ABI_PROMO",CONNECT_HUB_SIDE_RAIL_ABI_PROMO:"CONNECT_HUB_RAIL",HOMEPAGE_FEED_RAIL:"HOMEPAGE_FEED_RAIL",GLOBAL_NAV_SPOTLIGHT_ADD_CONNECTIONS_ICON:"GLOBAL_NAV_SPOTLIGHT_ADD_CONNECTIONS_ICON"},e.INVITATION_ORIGIN={PROFILE:"PROFILE",EMAIL:"EMAIL"},e.WYLO_ENTRY_POINTS={"eml-abook-social-cta":"ABOOK_EMAIL","eml-gro_wylo_abook-cta":"WYLO_EMAIL"},e.SUGGESTED_ROUTE={INTRO:"INTRO",RESULT_LANDING:"RESULT_LANDING"},e.DEFAULT_PAGINATION_COUNT=100,e.ABI_STEPS={M2M_STEP:{route:"abi.results.member",memberTarget:"m2m"},M2G_STEP:{route:"abi.results.guest",memberTarget:"m2g"},SUCCESS:{route:"abi.results.success"},DEFAULT_AFTER_ROUTE:{route:"mynetwork.index"}},e.ABI_STEPS_LEGACY={M2M_STEP:{route:"mynetwork.abi.results.member",memberTarget:"m2m"},M2G_STEP:{route:"mynetwork.abi.results.guest",memberTarget:"m2g"},SUCCESS:{route:"mynetwork.abi.results.success"},DEFAULT_AFTER_ROUTE:{route:"mynetwork.index"}},e.FILE_UPLOAD_ERRORS={INVALID_INPUT:"i18n_toastmsg_error_invalid_contacts_file",STATUS_CHECK_TIMEOUT:"i18n_toastmsg_error_default",DEFAULT:"i18n_toastmsg_error_default"},e.SUPPORTED_CONTACTS_FILE_FORMATS=["csv","txt","vcf"],e.ABI_ENTRY_POINT_ROUTE_MAP={mynetwork:{index:"CONNECT_HUB_RAIL",contacts:"CONTACTS_RAIL","invitation-manager.pending":"INVITATION_HUB_RAIL","invitation-manager.sent":"INVITATION_HUB_RAIL","invitation-manager":"INVITATION_HUB_RAIL","invite-connect.connections":"CONNECTIONS_RAIL","invite-accept":"EMAIL_ACCEPT","invite-sent":"INVITATION_SENT"}},e.ABI_TRANSITION_DELAY=25,e.ABI_CONFIRMATION_TRANSITION_DELAY=3500,e.ABI_ERROR_LOG_TAGS=["abi-custom-error-log"],e.ABI_JET_TAGS=Object.freeze({GET_IMPORT_TASK_STATUS:"GET_IMPORT_TASK_STATUS",GET_IMPORT_DASH_TASK_STATUS:"GET_IMPORT_DASH_TASK_STATUS",CREATE_IMPORT_TASK:"CREATE_IMPORT_TASK",CREATE_IMPORT_DASH_TASK:"CREATE_IMPORT_DASH_TASK",IMPORT_ERROR_BAD_LOGIN:"IMPORT_ERROR_BAD_LOGIN",IMPORT_DASH_ERROR_BAD_LOGIN:"IMPORT_DASH_ERROR_BAD_LOGIN"}),e.LOCALIZED_SOURCE={GOOGLE_CONTACTS:"Google",MOBILE_CONTACTS:"Phone contacts",AOL_CONTACTS:"AOL"},e.STANDARDIZED_SOURCE={AOL_CONTACTS:"AOL_CONTACTS",GOOGLE_CONTACTS:"GOOGLE_CONTACTS",GOOGLE_VOICE:"GOOGLE_VOICE",MOBILE_CONTACTS:"MOBILE_CONTACTS"},e.SAVED_CONTACTS_PAGE_KEYS={LIST_PAGE:"flagship3_people_contacts_v2_list",DETAIL_PAGE:"flagship3_people_contacts_v2_detail",DETAIL_EDIT_PAGE:"flagship3_people_contacts_v2_edit"},e.CURATED_CONTACT_FIELDS=["firstName","lastName","company","emailAddress","number","rawAddress"],e.TOAST_TYPES={SUCCESS:"SUCCESS",ERROR:"ERROR"},e.DESELECT_ALL_DISABLED_COUNTRIES=Object.freeze(["cn","jp"])}))
define("abi-shared/utils/constants",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.SOURCE_METADATA=e.SOURCES_WITH_SUPPORTED_HANDLE=e.HELP_CENTER_URLS=void 0
e.SOURCE_METADATA=Object.freeze({GOOGLE_CONTACTS:{providerName:"google",providerLabel:"contacts"},MOBILE_CONTACTS:{providerName:"phone_contacts",providerLabel:"contacts"},MICROSOFT_GRAPH_PEOPLE:{providerName:"microsoft_personal",providerLabel:"contacts",icon:"outlook-solid"},MICROSOFT_GRAPH_PEOPLE_ENTERPRISE:{providerName:"microsoft_enterprise",providerLabel:"contacts",icon:"outlook-solid"},GOOGLE_CALENDAR:{providerName:"google",providerLabel:"calendar"}}),e.HELP_CENTER_URLS=Object.freeze({MICROSOFT_GRAPH_PEOPLE:"/help/linkedin/answer/84711",MICROSOFT_GRAPH_PEOPLE_ENTERPRISE:"/help/linkedin/answer/84077"}),e.SOURCES_WITH_SUPPORTED_HANDLE={GOOGLE_CALENDAR:"GOOGLE_CALENDAR",GOOGLE_CONTACTS:"GOOGLE_CONTACTS"}}))
define("abi-shared/utils/contacts-processor",["exports","ember","global-helpers/helpers/name"],(function(e,t,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.default=class{constructor(e){this.storeShim=e}formatDashMemberContact(e){var t,n
const i=e.entityUrn,r=null===(t=e.profilePicture)||void 0===t||null===(n=t.displayImageReference)||void 0===n?void 0:n.vectorImage
return{title:e.headline,contactType:"memberCount",urn:i,profilePicture:r}}formatDashGuestContact(e){var t
const n=null===(t=e.guestContactHandleUnion)||void 0===t?void 0:t.emailAddress
return{title:n,contactType:"emailCount",urn:`urn:li:email:${n}`}}dashContactsHandler(e){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
return e.map((e=>({...i?this.formatDashGuestContact(e):this.formatDashMemberContact(e),checkboxId:`select-toggle-${t.default.generateGuid()}`,name:(0,n.getName)(e)})))}}}))
define("abi-shared/utils/imap-enabled-util",["exports","international/utils/country-utils","international/utils/constants"],(function(e,t,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=function(e){return t.default.isPhysicallyInCountry(i,e)}
const i=n.COUNTRY_CODES.DACH.concat(n.COUNTRY_CODES.DACH,["gb","it","nl","fr"])}))
define("abi-shared/utils/settings-constants",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.SYNC_SOURCE=e.STOP_SOURCE=e.RESYNC_SOURCE=e.REMOVE_SOURCE=e.REMOVE_ALL_SETTINGS=e.REMOVE_ALL=e.POPUP_SIZE=e.NOTIFICATION_COPY_I18N=e.MODAL_COPY_I18N=e.INTEGRATION_ACTION=e.GENIE_URL=e.GAAP_SCRIPTS=e.CONTACTS=void 0
e.GAAP_SCRIPTS={GOOGLE_CONTACTS:"urn:li:gaapScriptV2:(urn:li:multiProduct:pint-gaap-scripts,contacts-google-people-oauth2)",GOOGLE_CALENDAR:"urn:li:gaapScriptV2:(urn:li:multiProduct:pint-gaap-scripts,calendar-asBlob-google)"},e.POPUP_SIZE="width=790,height=580",e.SYNC_SOURCE="sync_source",e.REMOVE_SOURCE="remove_source",e.REMOVE_ALL="remove_all",e.RESYNC_SOURCE="resync_source",e.STOP_SOURCE="stop_source",e.CONTACTS="contacts",e.GENIE_URL="/genie/startauth?sec=true&cb=onAuthenticationComplete&as=",e.MODAL_COPY_I18N={CONTACTS:{title:"i18n_remove_modal_title_contacts",description:"i18n_remove_modal_description_contacts"},CONTACTS_NUCLEAR:{title:"i18n_remove_modal_title",description:"i18n_remove_modal_description_nuclear_contacts"},CALENDAR:{title:"i18n_remove_modal_title_calendar",description:"i18n_remove_modal_description_calendar"},CALENDAR_NUCLEAR:{title:"i18n_remove_modal_title",description:"i18n_remove_modal_description_nuclear_calendar"},DEFAULT:{title:"i18n_remove_modal_title",description:"i18n_remove_modal_description"},REMOVE_SOURCE_CONTACTS:{title:"i18n_remove_single_contacts_modal_title",description:"i18n_remove_single_contacts_modal_description"},REMOVE_SOURCE_CALENDAR:{title:"i18n_remove_single_calendar_modal_title",description:"i18n_remove_single_calendar_modal_description"},STOP_SOURCE_CONTACTS:{title:"i18n_stop_single_contacts_modal_title",description:"i18n_stop_single_contacts_modal_description"},STOP_SOURCE_CALENDAR:{title:"i18n_stop_single_calendar_modal_title",description:"i18n_stop_single_calendar_modal_description"},STOP_SOURCE:{title:"i18n_stop_single_provider_modal_title",description:"i18n_stop_single_provider_modal_description_without_email"}},e.NOTIFICATION_COPY_I18N={ERROR:{TITLE:"i18n_title_error",REMOVE_ALL:{CALENDAR:"i18n_remove_all_calendar_error",CONTACTS:"i18n_remove_all_contacts_error"},REMOVE_SOURCE:{CALENDAR:"i18n_remove_source_calendar_error",CONTACTS:"i18n_remove_source_contact_error"},SYNC_SOURCE:{CALENDAR:"i18n_sync_source_contact_error",CONTACTS:"i18n_sync_source_calendar_error"},RESYNC_SOURCE:{CALENDAR:"i18n_sync_source_calendar_error",CONTACTS:"i18n_sync_source_contact_error"},STOP_SOURCE:{CALENDAR:"i18n_stop_source_calendar_error",CONTACTS:"i18n_stop_source_contact_error"}},SUCCESS:{TITLE:"i18n_title_success",REMOVE_ALL:{CALENDAR:"i18n_remove_all_calendar_success",CONTACTS:"i18n_remove_all_contacts_success"},REMOVE_SOURCE:{CALENDAR:"i18n_remove_source_calendar_success",CONTACTS:"i18n_remove_source_contact_success"},SYNC_SOURCE:{CALENDAR:"i18n_sync_source_calendar_success",CONTACTS:"i18n_sync_source_contact_success"},RESYNC_SOURCE:{CALENDAR:"i18n_sync_source_calendar_success",CONTACTS:"i18n_sync_source_contact_success"},STOP_SOURCE:{CALENDAR:"i18n_stop_source_calendar_success",CONTACTS:"i18n_stop_source_contact_success"}}},e.REMOVE_ALL_SETTINGS={contacts:{m3:"com.linkedin.voyager.growth.voyagerGrowthManagedContacts",model:"growth/contacts/managed-contact",action:"purgeContactsAndDisableAutoSyncs",endpoint:"growth/managedContacts"},calendar:{m3:"com.linkedin.voyager.dash.contacts.voyagerContactsDashCalendar",action:"purgeCalendarsAndDisableAutoSyncs",endpoint:"voyagerContactsDashCalendar"}},e.INTEGRATION_ACTION={SYNC_SOURCE:"sync_source",REMOVE_SOURCE:"remove_source",REMOVE_ALL:"remove_all",RESYNC_SOURCE:"resync_source",STOP_SOURCE:"stop_source"}}))
define("abook-upload-service/services/abook-upload",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","rsvp","@ember/service","ember-cli-pemberly-tracking/utils/uuid","global-utils/utils/is-browser","restli-utils","fetch","ember-fetch/utils/mung-options-for-fetch","ember-lifeline"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var h,_,g,f,b
const v=["FAILED_TOO_MANY_CONTACTS","FAILED_EXCEEDS_BATCH_SIZE_LIMIT","FAILED_OTHER"],y="/voyager/api/voyagerAmbryUploadUrls?action=requestUrl",T="/voyager/api/voyagerGrowthContactsFileUploadTask",I="/voyager/api/voyagerGrowthContactsFileUploadTask?action=getStatus"
e.default=(h=(0,s.inject)("global-services@global-http-headers"),_=(0,s.inject)("global-services@store-shim"),g=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"globalHttpHeaders",f,this);(0,t.default)(this,"storeShim",b,this)
this._pollTaskRegistry={}}uploadContactsFile(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"OTHER"
if(!e||!t)return(0,a.reject)(new Error("INVALID_INPUT"))
const r=n||this._generateDefaultTrackingId()
return this._getAmbryUrlToUpload(e).then(this._uploadToAmbryServer.bind(this,e,r,i)).then(this._createContactsUploadTask.bind(this)).then(this._startPollTaskStatus.bind(this))}uploadFileToAmbry(e){const t=this._generateDefaultTrackingId()
return this._getAmbryUrlToUpload(e).then(this._uploadToAmbryServer.bind(this,e,t,"OTHER"))}_generateDefaultTrackingId(){return l.default.v4().replace(/-/g,"")}_getAmbryUrlToUpload(e){const t=e&&e.type
if(!t)return(0,a.reject)(new Error("INVALID_INPUT"))
const n={type:"ABI_FILE_UPLOAD",contentType:t}
return this.storeShim.adapterFor("-ember-m3").ajax(y,"POST",{data:n}).then((e=>{if(!(0,o.isDestroying)(this))return e.data&&e.data.value&&e.data.value.url?e.data.value.url:new Error("MEDIA_SERVER_FAILURE")}))}_uploadToAmbryServer(e,t,n,i){const r=(0,p.default)({method:"POST",data:e,headers:Object.assign(this.globalHttpHeaders.getGlobalHeaders(),{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"})})
return(0,u.default)(i,r).then((e=>{if(!(0,o.isDestroying)(this)){if(e.status===d.httpStatus.S_201_CREATED){return{contactOrigin:n,transactionId:t,mediaId:e.headers.get("location")}}return new Error("MEDIA_SERVER_FAILURE")}}))}_createContactsUploadTask(e){const t=Object.assign(this.globalHttpHeaders.getGlobalHeaders(),{"X-RestLi-Method":"create"}),n={abookImportImpressionId:e.transactionId,mediaId:e.mediaId,contactsFileUploadOrigin:e.contactOrigin},i=(0,p.default)({data:n,headers:t,method:"POST"})
return(0,u.default)(T,i).then((t=>{if(!(0,o.isDestroying)(this)){if(t.status===d.httpStatus.S_202_ACCEPTED){e.createTaskId=t.headers.get("x-linkedin-id")
return e}return new Error("TASK_CREATION_FAILURE")}}))}_startPollTaskStatus(e){const t=(0,a.defer)(),{transactionId:n}=e
if(c.default){let i=15;(0,m.pollTask)(this,(r=>{i--
i<0?this._stopPollTaskStatus(t,e.mediaId,n,"STATUS_CHECK_TIMEOUT"):this._checkTaskStatus(e).then((i=>{if((0,o.isDestroying)(this))return
const a=i.data
a&&"SUCCESS"===a.value?this._stopPollTaskStatus(t,e.mediaId,n):!i||v.includes(a.value)?this._stopPollTaskStatus(t,e.mediaId,n,"STATUS_CHECK_FAILURE"):this._pollTaskRegistry[e.mediaId]=(0,m.runTask)(this,r,2e3)}),(i=>{if(!(0,o.isDestroying)(this)){this._stopPollTaskStatus(t,e.mediaId,n,"STATUS_CHECK_FAILURE")
throw i}}))}),this._getPollerLabel(e.mediaId))}return t.promise}_stopPollTaskStatus(e,t,n,i){if(c.default){this._pollTaskRegistry[t]&&(0,m.cancelTask)(this,this._pollTaskRegistry[t]);(0,m.cancelPoll)(this,this._getPollerLabel(t))}i?e.reject(i):e.resolve({transactionId:n,importTaskHandle:t})}_getPollerLabel(e){return`startPollTaskStatus_${e}`}_checkTaskStatus(e){const t={contactsFileUploadTaskHandle:{handle:e.createTaskId}}
return this.storeShim.adapterFor("-ember-m3").ajax(I,"POST",{data:t}).then((e=>e))}},f=(0,i.default)(g.prototype,"globalHttpHeaders",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,i.default)(g.prototype,"storeShim",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g)}))
define("abook-upload-service/template-registry",[],(function(){}))
define("email-confirmation/components/email-confirmation-modal",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/helper","@ember/component","@glimmer/tracking","@ember/object","@ember/service","@ember/debug","@glimmer/component","artdeco-modal/components/artdeco-modal","@ember/render-modifiers/modifiers/did-insert","@ember/render-modifiers/modifiers/did-update","ember-cli-pemberly-i18n/helpers/t","global-helpers/helpers/eq","hue-web-icons/components/icon","@ember/modifier","ember-cli-pemberly-tracking/modifiers/track-interaction","artdeco-button/components/artdeco-button"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_,g,f,b,v,y,T){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var I,E,O,S,A
e.default=(0,s.setComponentTemplate)((0,o.createTemplateFactory)({id:"OO2aCf5n",block:'[[[1,"\\n"],[1,"\\n"],[1," "],[8,[32,0],[[4,[32,1],[[30,0,["onDidInsert"]],[30,1],[30,2,["widgetTrackingToken"]]],null],[4,[32,2],[[30,0,["onDidInsert"]],[30,1],[30,2,["widgetTrackingToken"]]],null]],[["@isOpen","@modalClasses","@size","@dismissModal"],[[30,1],"text-align-center","medium",[30,0,["dismiss"]]]],[["default"],[[[[1,"\\n "],[8,[30,3,["artdeco-modal-header"]],null,null,[["default"],[[[[1,"\\n "],[10,"h2"],[14,1,"email-confirmation-header"],[12],[1,"\\n"],[41,[30,2,["isBouncedEmail"]],[[[1," "],[1,[28,[32,3],["i18n_email_confirmation_modal_not_reachable_new","email-confirmation/components/email-confirmation-modal"],[["emailAddress"],[[30,2,["emailAddress"]]]]]],[1,"\\n"]],[]],[[[41,[28,[32,4],[[30,0,["_pillar"]],"FEED"],null],[[[1," "],[1,[28,[32,3],["i18n_email_confirmation_modal_feed_confirm_header","email-confirmation/components/email-confirmation-modal"],null]],[1,"\\n"]],[]],[[[41,[28,[32,4],[[30,0,["_pillar"]],"NETWORK"],null],[[[1," "],[1,[28,[32,3],["i18n_email_confirmation_modal_network_confirm_header","email-confirmation/components/email-confirmation-modal"],null]],[1,"\\n"]],[]],[[[41,[28,[32,4],[[30,0,["_pillar"]],"MESSAGING"],null],[[[1," "],[1,[28,[32,3],["i18n_email_confirmation_modal_messaging_confirm_header","email-confirmation/components/email-confirmation-modal"],null]],[1,"\\n"]],[]],[[[41,[28,[32,4],[[30,0,["_pillar"]],"SLIDESHARE_MIGRATE"],null],[[[1," "],[1,[28,[32,3],["i18n_email_confirmation_modal_slideshare_migration_confirm_header","email-confirmation/components/email-confirmation-modal"],null]],[1,"\\n "]],[]],null]],[]]]],[]]]],[]]]],[]]],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[30,3,["artdeco-modal-content"]],null,null,[["default"],[[[[1,"\\n "],[10,2],[14,0,"t-14 t-black--light t-normal"],[12],[1,"\\n"],[41,[30,0,["errorEncountered"]],[[[1," "],[1,[28,[32,3],["i18n_email_confirmation_error","email-confirmation/components/email-confirmation-modal"],null]],[1,"\\n"]],[]],[[[1," "],[1,[52,[30,2,["isBouncedEmail"]],[28,[32,3],["i18n_email_confirmation_modal_update_your_email2","email-confirmation/components/email-confirmation-modal"],[["emailAddress"],[[30,2,["emailAddress"]]]]],[28,[32,3],["i18n_email_confirmation_modal_confirm_body_new","email-confirmation/components/email-confirmation-modal"],[["emailAddress"],[[30,2,["emailAddress"]]]]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[30,3,["artdeco-modal-footer"]],null,null,[["default"],[[[[1,"\\n "],[10,"section"],[14,0,"t-14 t-black--light t-normal"],[12],[1,"\\n"],[41,[30,0,["emailSent"]],[[[1," "],[10,2],[14,0,"t-14 t-black--light t-normal relative"],[12],[1,"\\n "],[10,1],[14,0,"email-confirmation-modal__success-icon"],[12],[1,"\\n "],[8,[32,5],null,[["@type","@size","@name"],["system","medium","signal-success"]],null],[1,"\\n "],[13],[1,"\\n "],[1,[28,[32,3],["i18n_email_confirmation_modal_email_sent","email-confirmation/components/email-confirmation-modal"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,2],[14,0,"t-14 t-black--light t-normal"],[12],[1,"\\n "],[1,[28,[32,3],["i18n_email_confirmation_modal_check_inbox","email-confirmation/components/email-confirmation-modal"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,2,["isBouncedEmail"]],[[[41,[30,4],[[[1," "],[11,3],[16,6,[29,[[30,0,["emailSettingsLink"]]]]],[24,0,"mt2 link-without-visited-state"],[4,[32,6],["click",[30,0,["_updateEmailLink"]]],null],[4,[32,7],["update_email_button"],null],[12],[1,"\\n "],[1,[28,[32,3],["i18n_email_confirmation_modal_update_email","email-confirmation/components/email-confirmation-modal"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[11,"button"],[24,0,"artdeco-button artdeco-button--primary mt2"],[24,4,"button"],[4,[32,6],["click",[30,5]],null],[4,[32,7],["update_email_button"],null],[12],[1,"\\n "],[1,[28,[32,3],["i18n_email_confirmation_modal_update_email","email-confirmation/components/email-confirmation-modal"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],[[[1," "],[1,[28,[32,3],["i18n_email_confirmation_modal_didnt_get_it","email-confirmation/components/email-confirmation-modal"],null]],[1,"\\n "],[8,[32,8],[[4,[32,6],["click",[30,0,["_resendConfirmationEmail"]]],null],[4,[32,7],["resendEmailButton"],null]],[["@controlType","@size","@type","@text"],["button",1,"tertiary",[28,[32,3],["i18n_email_confirmation_modal_resend_email","email-confirmation/components/email-confirmation-modal"],null]]],null],[1,"\\n "]],[]]]],[]]],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[3]]]]],[1,"\\n "]],["@isOpen","@modalContext","modal","@linkToUpdateEmail","@updateEmail"],false,["if"]]',moduleName:"email-confirmation/components/email-confirmation-modal.gjs",scope:()=>[m.default,h.default,_.default,g.default,f.default,b.default,v.on,y.default,T.default],isStrictMode:!0}),(I=(0,d.inject)("lego@tracking"),E=class extends p.default{constructor(){super(...arguments);(0,t.default)(this,"legoTracking",O,this);(0,t.default)(this,"emailSent",S,this);(0,t.default)(this,"errorEncountered",A,this);(0,n.default)(this,"shouldFireLegoTracking",!0);(0,n.default)(this,"emailSettingsLink","/psettings/email")}get _pillar(){return this.args.pillar||""}onDidInsert(e,t){let[n,i]=t
if(n&&this.shouldFireLegoTracking){const{legoTracking:e}=this
e.sendLegoImpression(i,e.LEGO_IMPRESSION_VISIBILITY_SHOW)
this.shouldFireLegoTracking=!1}}_resendConfirmationEmail(){const e=this.args.resendConfirmationEmail()
this.errorEncountered=!1
e.then((()=>{this.isDestroying||(this.emailSent=!0)})).catch((()=>{this.isDestroying||(this.errorEncountered=!0)}))}dismiss(){var e
const{legoTracking:t}=this
t.sendLegoAction(null===(e=this.args.modalContext)||void 0===e?void 0:e.widgetTrackingToken,t.LEGO_ACTION_DISMISS,1)
this.args.onDismiss()}_updateEmailLink(){this.args.updateEmailLink&&this.args.updateEmailLink()}},O=(0,i.default)(E.prototype,"legoTracking",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,i.default)(E.prototype,"emailSent",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),A=(0,i.default)(E.prototype,"errorEncountered",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(E.prototype,"onDidInsert",[c.action],Object.getOwnPropertyDescriptor(E.prototype,"onDidInsert"),E.prototype),(0,i.default)(E.prototype,"_resendConfirmationEmail",[c.action],Object.getOwnPropertyDescriptor(E.prototype,"_resendConfirmationEmail"),E.prototype),(0,i.default)(E.prototype,"dismiss",[c.action],Object.getOwnPropertyDescriptor(E.prototype,"dismiss"),E.prototype),(0,i.default)(E.prototype,"_updateEmailLink",[c.action],Object.getOwnPropertyDescriptor(E.prototype,"_updateEmailLink"),E.prototype),E))}))
define("email-confirmation/template-registry",[],(function(){}))
define("email-confirmation/utils/email-confirmation-helpers",["exports","voyager-web/config/environment","global-utils/utils/is-browser","rsvp","global-utils/utils/url","graphql-queries/queries/job-posting-shared/page-content-by-page-key-and-slot-id-finder.graphql"],(function(e,t,n,i,r,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.MODAL_CONTEXT_PROP=void 0
e.ModalConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]
this[a]=t
this[s]=e}
e.getConfirmationModalData=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2]
if(!n.default)return(0,i.resolve)(null)
const o=l(e,t,r),a=d(e)
return(0,i.hash)({legoWidgetData:o,handleStatusData:a}).then((e=>{const t=e.legoWidgetData,n=e.handleStatusData
return t&&n?{confirmEmailModalWidgetData:t,isEmailConfirmed:n.confirmed,isBouncedEmail:n.bounced,emailAddress:n.emailAddress,widgetTrackingToken:t.trackingToken}:null}))}
e.getMemberHandlesRequest=c
e.resendHandleConfirmationRequest=function(e){return[(0,r.addQueryParam)(`/${t.default.namespace}/voyagerOnboardingDashHandleConfirmation`,"action","sendConfirmationMessageEmail"),"POST",{data:{emailAddress:e}}]}
const a="unconfirmedEmailModalIsOpen",s=e.MODAL_CONTEXT_PROP="unconfirmedEmailModalContext"
function l(e,n){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r={slotId:"modal",pageKey:"voyager-email-confirmation"}
i||(r={...r,q:"pageKeyAndSlotId",recipe:"com.linkedin.voyager.dash.deco.segments.PageContent"})
const a=i?n.executeQuery(o.default,r).then((e=>e.data.legoDashPageContentsByPageKeyAndSlotId)):e.queryURL(`/${t.default.namespace}/voyagerLegoDashPageContents`,{params:r})
return a.then((e=>{var t,n
let r
if(i){var o,a
const{slots:t}=(null===(o=e.elements)||void 0===o?void 0:o[0])||{}
r=null==t||null===(a=t.find((e=>"modal"===e.key)))||void 0===a?void 0:a.value}else{var s,l
r=null===(s=((null===(l=e.elements)||void 0===l?void 0:l[0])||{}).slots)||void 0===s?void 0:s.modal}if(!r)return null
const c=null===(t=r.groups)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.widgets
return c?c.find((e=>"voyager_takeover_confirm_email"===e.widgetKey)):null}))}function c(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EMAIL"
const i={primary:e,type:n,q:"criteria"},r=`/${t.default.namespace}/voyagerOnboardingDashMemberHandles`
return[r,{params:i}]}function d(e){return e.queryURL(...c(!0,"EMAIL")).then((e=>{var t
return null===(t=e.elements)||void 0===t?void 0:t[0]})).then((e=>{var t,n
if(!e)return null
const{state:i}=e
return{bounced:"BOUNCED"===i,confirmed:"CONFIRMED"===i,emailAddress:null===(t=e.handleDetailUnion)||void 0===t||null===(n=t.emailAddress)||void 0===n?void 0:n.emailAddress}}))}}))
define("invitation/components/accept-invitation-friction-modal",["exports","@ember/template-factory","@ember/helper","@ember/component/template-only","@ember/component","artdeco-modal/components/artdeco-modal","ember-cli-pemberly-tracking/modifiers/track-render","ember-cli-pemberly-i18n/helpers/t","ember-engines/components/link-to-external","ember-cli-pemberly-tracking/modifiers/track-interaction","artdeco-button/components/artdeco-button","@ember/modifier"],(function(e,t,n,i,r,o,a,s,l,c,d,u){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const p=(0,r.setComponentTemplate)((0,t.createTemplateFactory)({id:"azH0LBkB",block:'[[[1,"\\n"],[1," "],[8,[32,0],[[4,[32,1],null,[["pageKey","routeName","currentRoute"],["flagship3_people_invitations_accept_friction",[28,[32,2],[[53,"outletState"],"render.name"],null],[28,[32,2],[[53,"outletState"],"render"],null]]]]],[["@dismissModal","@isOpen","@size","@testId"],[[30,1],[30,2],"medium","accept-invitation-friction-modal"]],[["default"],[[[[1,"\\n "],[8,[30,3,["artdeco-modal-header"]],null,[["@has-divider"],["false"]],[["default"],[[[[1,"\\n "],[10,"h2"],[14,1,"accept-invitation-friction-modal__header"],[14,0,"t-20 t-black"],[12],[1,"\\n "],[1,[28,[32,3],["header_take_care_when_connecting","invitation/components/accept-invitation-friction-modal"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[30,3,["artdeco-modal-content"]],null,null,[["default"],[[[[1,"\\n "],[10,0],[14,0,"display-flex align-items-center p2"],[12],[1,"\\n "],[10,0],[14,0,"accept-invitation-friction-modal__illustration flex-shrink-zero mr2"],[12],[13],[1,"\\n\\n "],[10,0],[14,0,"t-black--light t-16"],[12],[1,[28,[32,3],["i18n_body_for_your_safety","invitation/components/accept-invitation-friction-modal"],null]],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[30,3,["artdeco-modal-footer"]],null,[["@classNames","@has-divider"],["text-align-right","false"]],[["default"],[[[[1,"\\n "],[8,[32,4],[[4,[32,5],["accept_friction_view_profile"],null]],[["@route","@model","@class"],["profile.common.profile",[30,4],"artdeco-button artdeco-button--2 artdeco-button--secondary mr1"]],[["default"],[[[[1,"\\n "],[1,[28,[32,3],["i18n_view_profile","invitation/components/accept-invitation-friction-modal"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[32,6],[[16,"aria-label",[28,[32,3],["i18n_accept_invite","invitation/components/accept-invitation-friction-modal"],null]],[4,[32,7],["click",[30,5]],null],[4,[32,5],["accept_friction_accept_invite"],null]],[["@size","@text","@type"],["2",[28,[32,3],["i18n_accept_invite","invitation/components/accept-invitation-friction-modal"],null],"primary"]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[3]]]]],[1,"\\n"]],["@onDismissModal","@isOpen","modal","@inviterPublicIdentifier","@onAcceptInvitation"],false,["-get-dynamic-var"]]',moduleName:"invitation/components/accept-invitation-friction-modal.gjs",scope:()=>[o.default,a.default,n.get,s.default,l.default,c.default,d.default,u.on],isStrictMode:!0}),(0,i.default)("accept-invitation-friction-modal","AcceptInvitationFrictionModal"))
e.default=p}))
define("invitation/components/base-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/service","@ember/object","rsvp","@glimmer/component","invitation/utils/i18n-constants","global-utils/utils/html-safe","global-helpers/helpers/name","invitation/utils/get-entity-name","@ember/runloop","global-utils/utils/is-browser","global-utils/utils/url","invitation-platform/utils/constants","invitation/utils/invitation-util"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_,g,f,b){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var v,y,T,I,E,O,S,A,C,R,N,k,w
const P=[{linkInfo:{target:"_blank",href:`${(0,g.getDomainUrl)()}/help/linkedin/answer/83858`}}],M=["invitations-baseInvitation-error-log"]
e.default=(v=(0,a.inject)("i18n"),y=(0,a.inject)("router"),T=(0,a.inject)("invitation-platform@invitation-platform"),I=(0,a.inject)("persistent-toast-manager@persistent-toast-manager"),E=(0,a.inject)("tracking"),O=(0,a.inject)("jet"),S=class extends c.default{constructor(){super(...arguments);(0,t.default)(this,"i18n",A,this);(0,t.default)(this,"router",C,this);(0,t.default)(this,"invitationPlatform",R,this);(0,t.default)(this,"persistentToastManager",N,this);(0,t.default)(this,"tracking",k,this);(0,t.default)(this,"jet",w,this);(0,n.default)(this,"numAcceptedInvites",0)}get i18nDeclinedMsg(){return this.i18n.lookupTranslation(d.default.TEMPLATE,d.default.INVITATION_DECLINED)}get i18nMarkUnknown(){return this.i18n.lookupTranslation(d.default.TEMPLATE,d.default.INVITATION_MARK_UNKNOWN)}get i18nWithdrawnMsg(){return this.i18n.lookupTranslation(d.default.TEMPLATE,d.default.INVITATION_WITHDRAWN)}get i18nMarkUnknownSuccess(){return this.i18n.lookupTranslation(d.default.TEMPLATE,d.default.INVITATION_MARK_UNKNOWN_SUCCESS)}get i18nAcceptFailure(){const e=this.useLongerCopy?d.default.INVITATION_GENERAL_FAILURE_HELPCENTER:d.default.INVITATION_GENERAL_FAILURE_HELPCENTER_SHORT
return this.i18n.lookupTranslation(d.default.TEMPLATE,e)}get i18nAcceptFailureConnectionLimit(){return()=>this.i18n.lookupTranslation(d.default.TEMPLATE,d.default.INVITATION_ACCEPT_FAILURE_CONNECTION_LIMIT)([{linkInfo:{target:"_blank",href:`${(0,g.getDomainUrl)()}/help/linkedin/answer/69689/network-size-limit`}}])}get i18nDeclineFailure(){return this.i18n.lookupTranslation(d.default.TEMPLATE,d.default.INVITATION_DECLINE_FAILURE)}get i18nWithdrawFailure(){return this.i18n.lookupTranslation(d.default.TEMPLATE,d.default.INVITATION_WITHDRAW_FAILURE)}get i18nReportFailure(){return this.i18n.lookupTranslation(d.default.TEMPLATE,d.default.INVITATION_REPORT_FAILURE)}markUnknown(e){const t=this.i18nMarkUnknownSuccess()
this.persistentToastManager.success({message:t})
this._rejectUnknownInvitation(e)}_showFailureToast(e){const{persistentToastManager:t}=this,n=(0,u.default)(e)
t.error({message:n})}toastDismiss(e){this.tracking.fireInteractionEvent(e)}_showInvitationDeclinedToast(){const e=this.i18nDeclinedMsg()
this.persistentToastManager.success({message:e})}_showInvitationAcceptedToast(e){const{i18n:t}=this,n={member:(0,p.getName)(e)},i=(0,u.default)(t.lookupTranslation(d.default.TEMPLATE,d.default.INVITATION_ACCEPTED)([n])),r=(0,u.default)(t.lookupTranslation(d.default.TEMPLATE,d.default.INVITATION_VIEW_PROFILE)())
this.persistentToastManager.success({message:i,ctaText:r,ctaRouteName:"profile.common.profile",ctaOptions:(0,s.get)(e,"publicIdentifier")})}_showInvitationToastForEvent(e,t){const{i18n:n}=this,i={eventName:(0,s.get)(e,"localizedName")},r=(0,u.default)(n.lookupTranslation(d.default.TEMPLATE,t)([i]))
this.persistentToastManager.success({message:r})}_showToastForGenericInvitation(e,t){const{i18n:n}=this,i={entityName:(0,m.default)(e)},r=(0,u.default)(n.lookupTranslation(d.default.TEMPLATE,t)([i]))
this.persistentToastManager.success({message:r})}_showInvitationWithdrawnToast(){const e=this.i18nWithdrawnMsg()
this.persistentToastManager.success({message:e})}_handleInviteActionSuccess(e,t){const n=(0,s.get)(e,"invitation.genericInviter.memberProfileUrn"),i=(0,b.getGenericInviter)((0,s.get)(e,"invitation"))
if(t===f.INVITATION_ACTIONS.ACCEPT)n?this._showInvitationAcceptedToast(n):i&&this._showToastForGenericInvitation(i,d.default.GENERIC_INVITATION_ACCEPTED,"invite_accept_toast_dismiss")
else if(t===f.INVITATION_ACTIONS.IGNORE)n?this._showInvitationDeclinedToast(e):i&&this._showToastForGenericInvitation(i,d.default.GENERIC_INVITATION_DECLINED,"invite_ignore_toast_dismiss")
else if(t===f.INVITATION_ACTIONS.WITHDRAW||t===f.INVITATION_ACTIONS.ACTOR_WITHDRAW){this._showInvitationWithdrawnToast();(0,h.later)((()=>{this._setFocusAfterAction()}),0)}}_setFocusAfterAction(){if(_.default){const e=document.querySelector(".invitation-card:not(.invitation-card--dismiss) .invitation-card__picture")
if(e)e.focus({preventScroll:!0})
else{const e=document.querySelector("#mn-invitation-manager__invitation-facet-pills--CONNECTION")
e&&e.focus({preventScroll:!0})}}}_handleInviteActionFailure(e,t){let n
e===f.INVITATION_ACTIONS.ACCEPT?n=t&&(0,s.get)(t,"errors.firstObject.code")===f.KNOWN_ERRORS.acceptConnectionLimit?this.i18nAcceptFailureConnectionLimit():this.i18nAcceptFailure(P):e===f.INVITATION_ACTIONS.IGNORE?n=this.i18nDeclineFailure():e===f.INVITATION_ACTIONS.WITHDRAW||e===f.INVITATION_ACTIONS.ACTOR_WITHDRAW?n=this.i18nWithdrawFailure():e===f.INVITATION_ACTIONS.REPORT&&(n=this.i18nReportFailure())
this._showFailureToast(n)}_rejectUnknownInvitation(e){if(!e.isDestroying){this.markedUnknown=!0
this.tracking.fireInteractionEvent("i_don't_know")
return this.invitationPlatform.rejectInvitation((0,s.get)(e,"invitation")||e).catch((e=>{if((0,o.isDestroying)(this))throw e
this._handleInviteActionFailure(f.INVITATION_ACTIONS.IGNORE)
console.error("_rejectUnknownInvitation errored on ignoring invite in base-invitation: ",e)
throw e}))}return(0,l.reject)()}_reportInvitation(e){e.isDestroying||this.invitationPlatform.reportInvitation((0,s.get)(e,"invitation")||e).catch((e=>{if((0,o.isDestroying)(this))throw e
this._handleInviteActionFailure(f.INVITATION_ACTIONS.REPORT_SPAM)
console.error("_reportInvitation error when trying to report an invite in base-invitation")
throw e}))}actOnInvitation(e,t,n,i){return this.args.routeActionOnInvitation({invitationView:e,actionOnInvitation:t,isInlineConfirmationExperience:n,sentInvitationType:i}).then((()=>{(0,o.isDestroying)(this)||n||this._handleInviteActionSuccess(e,t)})).catch((e=>{if((0,o.isDestroying)(this))throw e
this._handleInviteActionFailure(t,e)
this.jet.logError(e,M,!1)
throw e}))}cardExposed(e){const t=-1!==(this.router.currentRouteName||"").indexOf("sent")?"flagship3_people_invitations_sent_list":"flagship3_people_invitations_list"
e%20==0&&t&&this.tracking.firePageViewEvent(t)}expandMessage(){this.tracking.fireInteractionEvent("personalized")}rejectInvitationCard(e){return this._rejectUnknownInvitation(e)}reportInvitation(e){this._reportInvitation(e)}onTriggerInlineConfirmationCard(e,t){var n,i
null===(n=(i=this.args).triggerInlineConfirmationCard)||void 0===n||n.call(i,e,t)}},A=(0,i.default)(S.prototype,"i18n",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,i.default)(S.prototype,"router",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,i.default)(S.prototype,"invitationPlatform",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,i.default)(S.prototype,"persistentToastManager",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,i.default)(S.prototype,"tracking",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,i.default)(S.prototype,"jet",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(S.prototype,"actOnInvitation",[s.action],Object.getOwnPropertyDescriptor(S.prototype,"actOnInvitation"),S.prototype),(0,i.default)(S.prototype,"cardExposed",[s.action],Object.getOwnPropertyDescriptor(S.prototype,"cardExposed"),S.prototype),(0,i.default)(S.prototype,"expandMessage",[s.action],Object.getOwnPropertyDescriptor(S.prototype,"expandMessage"),S.prototype),(0,i.default)(S.prototype,"rejectInvitationCard",[s.action],Object.getOwnPropertyDescriptor(S.prototype,"rejectInvitationCard"),S.prototype),(0,i.default)(S.prototype,"reportInvitation",[s.action],Object.getOwnPropertyDescriptor(S.prototype,"reportInvitation"),S.prototype),(0,i.default)(S.prototype,"onTriggerInlineConfirmationCard",[s.action],Object.getOwnPropertyDescriptor(S.prototype,"onTriggerInlineConfirmationCard"),S.prototype),S)}))
define("invitation/components/generic-invitation-card",["exports","@ember/template-factory","@ember/helper","@ember/component","invitation/utils/invitation-util","invitation-platform/utils/constants","invitation/utils/get-entity-name","@glimmer/component","@ember/object","ember-cli-pemberly-tracking/components/shared/external-link","ember-cli-pemberly-tracking/modifiers/track-interaction","image-view-model/components/image-view-model","ember-cli-pemberly-i18n/helpers/t","invitation/components/generic-invite-accepted-disclaimer","text-view-model/components/text-view-model-v2","hue-web-icons/components/icon"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const g=Object.freeze({CONTENT_SERIES:"newspaper",EVENT:"calendar",GROUP:"group",ORGANIZATION:"company"}),f=Object.freeze({CONTENT_SERIES:"view_entity_content_series",EVENT:"view_entity_event",GROUP:"view_entity_group",ORGANIZATION:"view_entity_organization"})
class b extends s.default{get isPendingGenericInvitationView(){return!!this.args.isPending&&(0,l.get)(this.args.invitationView,"invitation.genericInvitationType")!==o.INVITATION_TYPES.CONNECTION}get invitationImage(){return(0,l.get)(this.args.invitationView,"primaryImage")}get title(){return(0,l.get)(this.args.invitationView,"title")}get subtitle(){return(0,l.get)(this.args,"invitationView.subtitle")}get imageAction(){return(0,l.get)(this.args.invitationView,"primaryImage.actionTarget")||"#"}get cardAction(){return(0,l.get)(this.args.invitationView,"primaryImage.actionTarget")||"#"}get invitationType(){return(0,l.get)(this.args,"invitationView.invitation.genericInvitationType")}get iconType(){return this.isPendingGenericInvitationView&&g[this.invitationType]}get isSentInvitation(){return"SENT"===(0,l.get)(this.args.invitationView,"invitation.invitationType")}get sentTime(){return(0,l.get)(this.args,"invitationView.sentTimeLabel")}get entityName(){return(0,a.default)((0,r.getGenericInviter)((0,l.get)(this.args,"invitationView.invitation")))}get typeLabel(){return(0,l.get)(this.args,"invitationView.typeLabel")}get insightText(){return(0,l.get)(this.args,"invitationView.genericInvitationView.insightText")}get viewEntityInteractionEvent(){return f[this.invitationType]}}e.default=b;(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"GkFu9cIj",block:'[[[1,"\\n"],[1," "],[11,0],[17,1],[12],[1,"\\n "],[8,[32,0],[[24,0,"invitation-card__picture"],[4,[32,1],[[30,0,["viewEntityInteractionEvent"]]],null]],[["@href"],[[30,0,["imageAction"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"relative"],[12],[1,"\\n "],[8,[32,2],null,[["@entitySize","@images","@isStackedLayout"],[5,[30,0,["invitationImage"]],false]],null],[1,"\\n"],[41,[51,[30,0,["isSentInvitation"]]],[[[41,[30,0,["iconType"]],[[[1," "],[10,0],[15,0,[29,["invitation-card__icon invitation-card__icon--",[30,0,["iconType"]],"\\n EntityPhoto-circle-1"]]],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[32,3],null,[["@name","@type","@size"],[[30,0,["iconType"]],"system","small"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[10,0],[14,0,"invitation-card__details"],[12],[1,"\\n"],[41,[30,2],[[[41,[30,3],[[[1," "],[10,0],[14,0,"pb1 t-14"],[12],[1,[28,[32,4],["i18n_invitation_accepted","invitation/components/generic-invitation-card"],null]],[13],[1,"\\n "],[8,[32,0],[[24,0,"link-without-hover-state t-14"],[4,[32,1],["inline_view"],null]],[["@href"],[[30,0,["imageAction"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,4],["i18n_view_invitation","invitation/components/generic-invitation-card"],[["title"],[[30,0,["entityName"]]]]]],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[32,5],null,[["@invitationType"],[[30,0,["invitationType"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"t-14"],[12],[1,[28,[32,4],["i18n_invitation_declined","invitation/components/generic-invitation-card"],[["title"],[[30,0,["entityName"]]]]]],[13],[1,"\\n"]],[]]]],[]],[[[41,[30,0,["isPendingGenericInvitationView"]],[[[41,[30,0,["subtitle"]],[[[1," "],[10,2],[14,0,"invitation-card__subtitle t-14 t-black--light"],[12],[1,"\\n "],[8,[32,6],null,[["@tvm"],[[30,4,["subtitle"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["title"]],[[[1," "],[10,2],[14,0,"invitation-card__tvm-title t-16 t-black--light"],[12],[1,"\\n "],[8,[32,6],null,[["@tvm"],[[30,0,["title"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],[[[1," "],[8,[32,0],[[24,0,"invitation-card__link"],[4,[32,1],["event"],null]],[["@href"],[[30,0,["cardAction"]]]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"visually-hidden"],[12],[1,[28,[32,4],["i18n_invitation_name_a11y_text","invitation/components/generic-invitation-card"],[["title"],[[30,0,["title"]]]]]],[13],[1,"\\n "],[10,1],[15,0,[29,["invitation-card__tvm-title t-16 t-black t-bold",[52,[51,[30,5]]," invitation-card__title--no-underline"]]]],[14,"aria-hidden","true"],[12],[1,"\\n "],[8,[32,6],null,[["@tvm"],[[30,0,["title"]]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["subtitle"]],[[[1," "],[10,1],[14,0,"visually-hidden"],[12],[1,[30,0,["subtitle","text"]]],[13],[1,"\\n "],[10,1],[14,0,"invitation-card__subtitle t-14 t-black--light t-normal"],[14,"aria-hidden","true"],[12],[1,"\\n "],[8,[32,6],null,[["@tvm"],[[30,0,["subtitle"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[14,0,"display-flex align-items-center full-width t-14"],[12],[1,"\\n"],[41,[30,0,["typeLabel"]],[[[1," "],[10,1],[14,0,"invitation-card__entity-label t-black t-bold"],[12],[1,"\\n "],[1,[30,0,["typeLabel"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["insightText"]],[[[1," "],[10,1],[15,0,[29,["t-12 t-black--light t-normal",[52,[30,0,["typeLabel"]]," pl1"]]]],[12],[1,[30,0,["insightText","text"]]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]],[41,[30,6],[[[1," "],[10,0],[14,0,"full-width t-14"],[12],[1,"\\n"],[41,[30,0,["sentTime"]],[[[1," "],[10,1],[14,0,"time-badge t-12 t-black--light t-normal"],[12],[1,"\\n "],[1,[30,0,["sentTime"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@isActedOnInvite","@inviteHasBeenAccepted","@invitationView","@isPending","@isInvitationManager"],false,["unless","if"]]',moduleName:"invitation/components/generic-invitation-card.gjs",scope:()=>[c.default,d.default,u.default,_.default,p.default,m.default,h.default],isStrictMode:!0}),b)}))
define("invitation/components/generic-invite-accepted-disclaimer",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","@ember/object","invitation-platform/utils/constants","@glimmer/component","@ember/service","@ember/render-modifiers/modifiers/did-insert","ember-cli-pemberly-i18n/helpers/t","@ember/helper"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=e.ENTITY_DISCLAIMER_NOTIFICATION_DISPLAYED_STORAGE_KEY=void 0
var h,_,g
const f=e.ENTITY_DISCLAIMER_NOTIFICATION_DISPLAYED_STORAGE_KEY="invitationDisclaimerDisplayed"
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"1e6zFQc2",block:'[[[1,"\\n"],[41,[30,0,["showEntityDisclaimer"]],[[[41,[30,0,["isEventInvitation"]],[[[1," "],[11,0],[24,0,"mt1 t-12 t-black--light"],[4,[32,0],[[30,0,["onDisclaimerInserted"]]],null],[12],[1,"\\n "],[1,[28,[32,1],["i18n_event_attendee_visibility_disclaimer","invitation/components/generic-invite-accepted-disclaimer"],[["linkInfo"],[[28,[32,2],null,[["target","href","rel","class"],["_blank","/help/linkedin/answer/98195","noopener noreferrer","invitation-card__disclaimer-link"]]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1," "]],[],false,["if"]]',moduleName:"invitation/components/generic-invite-accepted-disclaimer.gjs",scope:()=>[u.default,p.default,m.hash],isStrictMode:!0}),(h=(0,d.inject)("global-services@local-storage"),_=class extends c.default{constructor(){super(...arguments);(0,t.default)(this,"localStorage",g,this)}get showEntityDisclaimer(){if(this.isEventInvitation){return!this.localStorage.getItem(f)}return!1}get isEventInvitation(){return this.args.invitationType===l.INVITATION_TYPES.EVENT}onDisclaimerInserted(){this.localStorage.setItem(f,!0)}},g=(0,i.default)(_.prototype,"localStorage",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(_.prototype,"onDisclaimerInserted",[s.action],Object.getOwnPropertyDescriptor(_.prototype,"onDisclaimerInserted"),_.prototype),_))}))
define("invitation/components/inline-confirmation-card",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","invitation/utils/invitation-util","tracked-toolbox","invitation-platform/utils/constants","invitation/utils/get-entity-name","invitation/components/base-invitation","@ember/object","ember-engines/components/link-to-external","ember-cli-pemberly-i18n/helpers/t","ember-cli-pemberly-tracking/modifiers/track-interaction","global-modifiers/modifiers/focus","image-view-model/components/image-view-model","ember-cli-pemberly-tracking/components/shared/external-link","hue-web-icons/components/icon","message-button/components/entry-point","artdeco-button/components/artdeco-button","@ember/modifier","invitation/components/generic-invite-accepted-disclaimer","@ember/helper"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_,g,f,b,v,y,T,I,E,O){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var S,A,C
const{CONNECTION:R,CONTENT_SERIES:N,EVENT:k,GROUP:w,ORGANIZATION:P}=c.INVITATION_TYPES,M=Object.freeze({[N]:"newspaper",[k]:"calendar",[w]:"group",[P]:"company"}),D=Object.freeze({[R]:"inline_view_entity_connection",[N]:"inline_view_entity_content_series",[k]:"inline_view_entity_event",[w]:"inline_view_entity_group",[P]:"inline_view_entity_organization"})
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"CWRu8qDo",block:'[[[1,"\\n"],[1," "],[11,0],[17,1],[24,0,"display-flex align-items-center pv2 ph4"],[12],[1,"\\n"],[41,[30,0,["isM2MInvitation"]],[[[1," "],[8,[32,0],[[24,0,"invitation-inline-confirmation-card__m2m-image-link"],[16,"aria-label",[52,[30,0,["inviteHasBeenAccepted"]],[28,[32,1],["i18n_view_profile_accepted","invitation/components/inline-confirmation-card"],[["member"],[[30,0,["inlineTitle"]]]]],[28,[32,1],["i18n_view_profile_ignored","invitation/components/inline-confirmation-card"],[["member"],[[30,0,["inlineTitle"]]]]]]],[4,[32,2],[[30,0,["profileControlInteraction"]]],null],[4,[32,3],null,null]],[["@route","@model"],["profile.common.profile",[30,0,["inlineLink"]]]],[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@images","@imgWidth","@entitySize","@alt"],[[30,0,["inlineImage"]],40,2,[28,[32,1],["i18n_image_alt_full_name","invitation/components/inline-confirmation-card"],[["member"],[[30,0,["inlineTitle"]]]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[32,5],[[24,0,"pr2"],[16,"aria-label",[52,[30,0,["inviteHasBeenAccepted"]],[28,[32,1],["i18n_view_invitation_accepted","invitation/components/inline-confirmation-card"],[["title"],[[30,0,["inlineTitle"]]]]],[28,[32,1],["i18n_view_invitation_ignored","invitation/components/inline-confirmation-card"],[["title"],[[30,0,["inlineTitle"]]]]]]],[4,[32,3],null,null],[4,[32,2],[[30,0,["profileControlInteraction"]]],null]],[["@href"],[[30,0,["inlineLink"]]]],[["default"],[[[[1,"\\n "],[10,0],[15,0,[29,["invitation-entity-type-icon invitation-entity-type-icon--",[30,0,["iconType"]],"\\n EntityPhoto-circle-1"]]],[12],[1,"\\n "],[10,1],[14,0,"invitation-entity-type-icon--wrapper"],[12],[1,"\\n "],[8,[32,6],null,[["@name","@type","@size"],[[30,0,["iconType"]],"system","small"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["inviteHasBeenAccepted"]],[[[41,[30,0,["isM2MInvitation"]],[[[1," "],[10,0],[14,0,"display-flex align-items-center flex-1"],[12],[1,"\\n "],[10,0],[14,0,"invitation-inline-confirmation-card__text t-14 pr2"],[12],[1,"\\n "],[1,[28,[32,1],["i18n_m2m_invitation_accepted","invitation/components/inline-confirmation-card"],[["member"],[[30,0,["inlineTitle"]]]]]],[1,"\\n "],[13],[1,"\\n "],[8,[32,7],null,[["@entryPointClasses","@recipientUrns","@contextEntityUrn","@invitationUrn","@controlUrn","@referringModuleKey"],["invitation-inline-confirmation-card__text",[30,2,["invitation","genericInviter","memberProfileUrn","entityUrn"]],[30,0,["invitationView","invitation","entityUrn"]],[30,0,["invitationView","invitation","entityUrn"]],"inline_message","invitations:inline_confirmation_card"]],[["default"],[[[[1,"\\n "],[8,[32,8],[[24,0,"invitation-inline-confirmation-card__message-cta"],[16,"aria-label",[28,[32,1],["i18n_message_btn_a11y_text","invitation/components/inline-confirmation-card"],[["member"],[[30,0,["inlineTitle"]]]]]],[4,[32,9],["click",[30,3]],null]],[["@size","@text","@type"],[1,[28,[32,1],["i18n_inline_confirmation_message_new","invitation/components/inline-confirmation-card"],null],"tertiary"]],null],[1,"\\n "]],[3]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"flex-1 t-14"],[12],[1,"\\n "],[10,0],[12],[1,"\\n "],[10,1],[14,0,"pr2"],[12],[1,"\\n "],[1,[28,[32,1],["i18n_invitation_accepted","invitation/components/inline-confirmation-card"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,5],[[24,0,"link-without-hover-state"],[4,[32,2],["inline_view"],null]],[["@href"],[[30,0,["inlineLink"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["i18n_view_invitation","invitation/components/inline-confirmation-card"],[["title"],[[30,0,["inlineTitle"]]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[8,[32,10],null,[["@invitationType"],[[30,0,["invitationType"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],[[[41,[30,0,["isM2MInvitation"]],[[[1," "],[10,0],[14,0,"display-flex align-items-center flex-1 t-14"],[12],[1,"\\n"],[41,[30,0,["inviteHasBeenReported"]],[[[1," "],[10,0],[14,0,"invitation-inline-confirmation-card__reported-text"],[12],[1,"\\n "],[8,[32,6],[[24,0,"invitation-inline-confirmation-card__icon"]],[["@type","@size","@name"],["system","small","signal-success"]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[32,1],["i18n_invitation_reported","invitation/components/inline-confirmation-card"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"invitation-inline-confirmation-card__text pr2"],[12],[1,"\\n "],[1,[28,[32,1],["i18n_invitation_declined","invitation/components/inline-confirmation-card"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,8],[[16,"aria-label",[28,[32,1],["i18n_report_invitation_card_a11y","invitation/components/inline-confirmation-card"],null]],[24,0,"invitation-inline-confirmation-card__reported-cta"],[4,[32,9],["click",[28,[32,11],[[30,0,["reportInvitationCard"]],[30,2]],null]],null],[4,[32,2],["inline_report_spam"],null]],[["@type","@size","@text"],["tertiary",1,[28,[32,1],["i18n_unknown_invitation","invitation/components/inline-confirmation-card"],[["member"],[[30,0,["inlineTitle"]]]]]]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"flex-1 t-14"],[12],[1,"\\n "],[1,[28,[32,1],["i18n_generic_invitation_declined","invitation/components/inline-confirmation-card"],[["title"],[[30,0,["inlineTitle"]]]]]],[13],[1,"\\n"]],[]]]],[]]],[1,"\\n "],[8,[32,8],[[16,"aria-label",[28,[32,1],["i18n_close_confirmation_card_a11y","invitation/components/inline-confirmation-card"],null]],[24,0,"p0 artdeco-button--circle"],[4,[32,9],["click",[30,0,["dismissInlineConfirmation"]]],null],[4,[32,2],["inline_dismiss"],null],[4,[32,2],["close"],null]],[["@type","@size","@color","@icon"],["tertiary",1,"muted","close"]],null],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@inlineInvitationView","openMessaging"],false,["if"]]',moduleName:"invitation/components/inline-confirmation-card.gjs",scope:()=>[m.default,h.default,_.default,g.default,f.default,b.default,v.default,y.default,T.default,I.on,E.default,O.fn],isStrictMode:!0}),(S=(0,l.trackedReset)("args.inlineInvitationView"),A=class extends u.default{constructor(){super(...arguments);(0,t.default)(this,"inviteHasBeenReported",C,this)}get inviteHasBeenAccepted(){return this.args.actionOnInvitation===c.INVITATION_ACTIONS.ACCEPT}get invitationType(){return(0,p.get)(this.args.inlineInvitationView,"invitation.genericInvitationType")}get isM2MInvitation(){return this.invitationType===R}get isGenericInvitation(){return!this.isM2MInvitation}get isEventInvitation(){return this.invitationType===k}get iconType(){return M[this.invitationType]}get inlineLink(){const{inlineInvitationView:e}=this.args
if(this.isM2MInvitation){const t=(0,p.get)(e,"invitation.genericInviter.memberProfileUrn")
return(0,p.get)(t,"publicIdentifier")}return(0,p.get)(e,"primaryImage.actionTarget")||"#"}get inlineImage(){const{inlineInvitationView:e}=this.args
return(0,p.get)(e,"primaryImage")}get inlineTitle(){const{inlineInvitationView:e}=this.args
if(this.isM2MInvitation){const t=(0,p.get)(e,"invitation.genericInviter.memberProfileUrn")
return t&&(0,p.getProperties)(t,"firstName","lastName","maidenName")}const t=(0,s.getGenericInviter)((0,p.get)(e,"invitation"))
return(0,d.default)(t)}get profileControlInteraction(){return D[this.invitationType]??D[R]}_reportInvitationCard(e){this.rejectInvitationCard(e).then((()=>{this.isDestroying||(this.inviteHasBeenReported=!0)}))}dismissInlineConfirmation(){this.args.closeInlineConfirmationCard()}reportInvitationCard(e){this._reportInvitationCard(e)}},C=(0,i.default)(A.prototype,"inviteHasBeenReported",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(A.prototype,"dismissInlineConfirmation",[p.action],Object.getOwnPropertyDescriptor(A.prototype,"dismissInlineConfirmation"),A.prototype),(0,i.default)(A.prototype,"reportInvitationCard",[p.action],Object.getOwnPropertyDescriptor(A.prototype,"reportInvitationCard"),A.prototype),A))}))
define("invitation/components/inline-invitation-response",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/helper","@ember/component","@ember/debug","@ember/object","@ember/service","@glimmer/component","@ember/destroyable","ember-cli-pemberly-tracking/modifiers/track-impression","image-view-model/components/image-view-model","text-view-model/components/text-view-model-v2","artdeco-button/components/artdeco-button","ember-cli-pemberly-i18n/helpers/t","ember-cli-pemberly-tracking/modifiers/track-interaction","@ember/modifier"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_,g,f,b,v){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var y,T,I,E,O
const S=Object.freeze({"events.index.about":"EVENT","companies.company.index":"ORGANIZATION","publishing-entity.newsletter":"CONTENT_SERIES"})
e.default=(0,s.setComponentTemplate)((0,o.createTemplateFactory)({id:"0nLatdAJ",block:'[[[1,"\\n"],[1," "],[11,0],[17,1],[4,[32,0],[[30,0,["onImpression"]]],[["routeName","currentRoute"],[[28,[32,1],[[53,"outletState"],"render.name"],null],[28,[32,1],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n "],[10,0],[14,0,"display-flex align-items-center mb1"],[12],[1,"\\n "],[8,[32,2],null,[["@images","@imgClasses","@entitySize"],[[30,2,["image"]],"mr2",3]],null],[1,"\\n\\n "],[10,0],[14,0,"flex-grow-1"],[12],[1,"\\n "],[8,[32,3],null,[["@tvm"],[[30,2,["title"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"display-flex"],[12],[1,"\\n "],[8,[32,4],[[4,[32,6],["click",[30,0,["acceptInvite"]]],null],[4,[32,7],["invitation_response_widget_accept"],null]],[["@type","@class","@text"],["primary","mr2",[28,[32,5],["accept","invitation/components/inline-invitation-response"],null]]],null],[1,"\\n\\n "],[8,[32,4],[[4,[32,6],["click",[30,0,["ignoreInvite"]]],null],[4,[32,7],["invitation_response_widget_ignore"],null]],[["@type","@text"],["secondary",[28,[32,5],["ignore","invitation/components/inline-invitation-response"],null]]],null],[1,"\\n\\n "],[18,3,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@communityInvitationView","&default"],false,["-get-dynamic-var","yield"]]',moduleName:"invitation/components/inline-invitation-response.gjs",scope:()=>[m.default,a.get,h.default,_.default,g.default,f.default,v.on,b.default],isStrictMode:!0}),(y=(0,d.inject)("invitation-platform@invitation-platform"),T=(0,d.inject)("router"),I=class extends u.default{constructor(){super(...arguments);(0,n.default)(this,"moduleName","invitation_response_widget");(0,t.default)(this,"invitationPlatform",E,this);(0,t.default)(this,"router",O,this)}onImpression(){return{name:"ViewModuleImpressionEvent",body:{moduleNames:[this.moduleName]}}}acceptInvite(){return this._actOnInvitation("accept").then((()=>{var e,t;(0,p.isDestroying)(this)||null===(e=(t=this.args).onInvitationAccepted)||void 0===e||e.call(t)}))}ignoreInvite(){return this._actOnInvitation("ignore").then((()=>{var e,t;(0,p.isDestroying)(this)||null===(e=(t=this.args).onInvitationIgnored)||void 0===e||e.call(t)}))}_actOnInvitation(e){const t=this._determineInvitationType()
return this.invitationPlatform.singleInvitationActionRequest({invitationType:t,invitationIdOrUrn:this.args.communityInvitationView.invitationUrn,sharedKey:this.args.communityInvitationView.sharedSecret,action:e})}_determineInvitationType(){const e=(0,c.get)(this,"router.currentRouteName")
return S[e]}},E=(0,i.default)(I.prototype,"invitationPlatform",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,i.default)(I.prototype,"router",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(I.prototype,"onImpression",[c.action],Object.getOwnPropertyDescriptor(I.prototype,"onImpression"),I.prototype),(0,i.default)(I.prototype,"acceptInvite",[c.action],Object.getOwnPropertyDescriptor(I.prototype,"acceptInvite"),I.prototype),(0,i.default)(I.prototype,"ignoreInvite",[c.action],Object.getOwnPropertyDescriptor(I.prototype,"ignoreInvite"),I.prototype),I))}))
define("invitation/components/invitation-card",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","invitation/utils/invitation-util","@glimmer/tracking","events-shared-v2/utils/constants","events-shared-v2/utils/tracking-helper","invitation/utils/get-entity-name","invitation-platform/utils/constants","global-utils/utils/api-compat","global-utils/utils/urn-converter","@glimmer/component","@ember/object","@ember/utils","@ember/service","@ember/destroyable","ember-cli-pemberly-tracking/modifiers/track-impression","app-aware-link/components/app-aware-link","ember-cli-pemberly-tracking/modifiers/track-interaction","image-view-model/components/image-view-model","ember-vector-images/components/lazy-image","ember-cli-pemberly-i18n/helpers/t","message-button/components/entry-point","artdeco-button/components/artdeco-button","@ember/modifier","hue-web-icons/components/icon","text-view-model/components/text-view-model-v2","member-insights/components/member-insights","global-helpers/helpers/time-ago","invitation/components/generic-invitation-card","@ember/helper","ember-line-clamp/components/line-clamp","global-helpers/helpers/format-newlines","artdeco-dropdown/components/artdeco-dropdown","artdeco-dropdown/components/artdeco-dropdown-item","ember-semaphore/components/ember-semaphore","invitation/components/invitation-pre-accept-base","invitation/components/accept-invitation-friction-modal","ember-set-helper/helpers/set"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_,g,f,b,v,y,T,I,E,O,S,A,C,R,N,k,w,P,M,D,U,L,x,j,F,G,V,z){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var H,B,W,q,K,Y,Q,$,J,Z,X,ee,te,ne,ie,re,oe,ae,se,le
const ce=1
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"/SNHBVEs",block:'[[[1,"\\n"],[1," "],[11,"li"],[17,1],[16,0,[29,["invitation-card artdeco-list__item\\n ",[52,[30,0,["isInvitationUnseen"]],"invitation-card--new-invite"],"\\n ",[52,[30,0,["isInvitationUnloading"]],"invitation-card--dismiss"],"\\n ",[52,[30,0,["isInvitationUnloaded"]],"invitation-card--dismiss-complete"],"\\n ",[52,[30,0,["isInvitationReported"]],"invitation-card--reported"],"\\n ",[52,[51,[30,0,["isViableInvitation"]]],"hidden"]]]],[4,[32,0],[[30,0,["onExposedAction"]]],[["thresholdMillisecondsInViewport","thresholdPercentageInViewport","eager","routeName","currentRoute"],[0,0,true,[28,[32,1],[[53,"outletState"],"render.name"],null],[28,[32,1],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n"],[41,[30,0,["isViableInvitation"]],[[[1," "],[10,0],[15,0,[29,["invitation-card__container ph2 pt1\\n ",[52,[30,0,["customMessage"]],"pb2","pb1"]]]],[12],[1,"\\n"],[41,[30,0,["isM2MInvite"]],[[[1," "],[10,0],[15,0,[29,["display-flex flex-1 align-items-center pl0\\n ",[52,[30,0,["isActedOnInvite"]],"invitation-card__inline-confirmation"]]]],[12],[1,"\\n"],[41,[30,2,["primaryImage","actionTarget"]],[[[1," "],[8,[32,2],[[24,0,"invitation-card__picture"],[4,[32,3],["profile"],null]],[["@href"],[[30,2,["primaryImage","actionTarget"]]]],[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@entitySize","@imgWidth","@images","@ghostType"],[5,100,[30,2,["primaryImage"]],"person"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[32,4],[[24,0,"invitation-card__picture"]],[["@entitySize","@imgWidth","@images","@ghostType"],[5,100,[30,2,["primaryImage"]],"person"]],null],[1,"\\n"]],[]]],[1,"\\n "],[10,0],[14,0,"invitation-card__details"],[12],[1,"\\n"],[41,[30,0,["isActedOnInvite"]],[[[41,[30,3],[[[41,[30,0,["inviteHasBeenAccepted"]],[[[1," "],[10,0],[14,0,"pb1 t-14"],[12],[1,[28,[32,5],["i18n_inline_invitation_accepted","invitation/components/invitation-card"],[["member"],[[30,0,["name"]]]]]],[13],[1,"\\n "],[8,[32,6],null,[["@entryPointClasses","@recipientUrns","@contextEntityUrn","@invitationUrn","@controlUrn","@referringModuleKey"],["mr1",[30,0,["inviterUrn"]],[30,2,["invitation","entityUrn"]],[30,2,["invitation","entityUrn"]],"message","invitations:invitation_card"]],[["default"],[[[[1,"\\n "],[8,[32,7],[[24,0,"invitation-inline-confirmation-card__message-cta"],[16,"aria-label",[28,[32,5],["i18n_message_btn_a11y_text","invitation/components/invitation-card"],[["member"],[[30,0,["name"]]]]]],[4,[32,8],["click",[30,4]],null]],[["@size","@text","@type"],[1,[28,[32,5],["i18n_inline_confirmation_message_new","invitation/components/invitation-card"],null],"tertiary"]],null],[1,"\\n "]],[4]]]]],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"pb1 t-14"],[12],[1,[28,[32,5],["i18n_invitation_declined","invitation/components/invitation-card"],null]],[13],[1,"\\n"],[41,[30,0,["inviteHasBeenReported"]],[[[1," "],[10,0],[14,0,"invitation-card__reported-text"],[12],[1,"\\n "],[8,[32,9],[[24,0,"invitation-card__reported-icon"]],[["@type","@size","@name"],["system","small","signal-success"]],null],[1,"\\n "],[10,1],[14,0,"t-14"],[12],[1,"\\n "],[1,[28,[32,5],["i18n_invitation_reported","invitation/components/invitation-card"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[32,7],[[24,0,"invitation-inline-confirmation-card__reported-cta"],[4,[32,8],["click",[30,0,["reportInvitationCard"]]],null],[4,[32,3],["i_dont_know"],null]],[["@type","@size","@text"],["tertiary",1,[28,[32,5],["i18n_unknown_invitation","invitation/components/invitation-card"],[["member"],[[30,0,["name"]]]]]]],null],[1,"\\n"]],[]]]],[]]]],[]],null]],[]],[[[1," "],[11,0],[24,0,"invitation-card__tvm-title t-16 t-normal t-black"],[4,[32,3],["profile"],null],[12],[1,"\\n "],[8,[32,10],null,[["@tvm"],[[30,2,["title"]]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,2,["subtitle"]],[[[1," "],[10,0],[14,0,"invitation-card__subtitle t-14 t-black--light t-normal"],[12],[1,"\\n "],[8,[32,10],null,[["@tvm"],[[30,2,["subtitle"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["insights"]],[[[1," "],[10,0],[14,0,"pt1 pb1"],[12],[1,"\\n "],[8,[32,11],null,[["@memberName","@insights","@profileId","@publicIdentifier"],[[30,0,["name"]],[30,0,["insights"]],[30,0,["inviterId"]],[30,0,["inviter","publicIdentifier"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,5],[[[41,[30,0,["timeAgo"]],[[[1," "],[10,1],[14,0,"time-badge t-12 t-black--light t-normal"],[12],[1,"\\n "],[1,[30,0,["timeAgo"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["isGenericInvitation"]],[[[1," "],[8,[32,12],[[16,0,[28,[32,13],["display-flex flex-1 align-items-center pl0",[52,[30,0,["isActedOnInvite"]]," invitation-card__inline-confirmation"]],null]]],[["@isActedOnInvite","@inviteHasBeenAccepted","@isInvitationManager","@invitationView","@sentInvitationType","@isPending"],[[30,0,["isActedOnInvite"]],[30,0,["inviteHasBeenAccepted"]],[30,5],[30,2],[30,6],[30,7]]],null],[1,"\\n"]],[]],[[[44,[[52,[30,8],[30,2,["invitation"]],[30,2]]],[[[41,[30,9],[[[1," "],[10,0],[15,0,[29,["display-flex flex-1 pl0\\n ",[52,[30,0,["isActedOnInvite"]],"invitation-card__inline-confirmation"]]]],[12],[1,"\\n "],[10,0],[14,0,"invitation-card__picture"],[12],[1,"\\n "],[8,[32,14],[[24,0,"EntityPhoto-circle-5"]],[["@alt","@desiredWidth","@ghostType"],[[30,9,["invitee","email"]],100,"person"]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[12],[1,"\\n "],[10,0],[14,0,"invitation-card__guest-handle t-16 t-black t-bold"],[12],[1,"\\n "],[1,[52,[30,9,["invitee","email"]],[30,9,["invitee","email"]],[30,9,["invitee","phoneNumber","number"]]]],[1,"\\n "],[13],[1,"\\n"],[41,[30,5],[[[1," "],[10,"time"],[14,0,"time-badge t-12 t-black--light t-normal"],[12],[1,"\\n "],[1,[28,[32,15],[[30,9,["sentTime"]],"ago"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[9]]],[1," "]],[]]]],[]]],[1,"\\n"],[41,[30,3],[[[41,[30,0,["isActedOnInvite"]],[[[1," "],[10,0],[14,0,"invitation-card__action-container pl3"],[12],[1,"\\n "],[8,[32,7],[[24,0,"p0"],[4,[32,8],["click",[30,0,["dismissInlineConfirmation"]]],null],[4,[32,3],["inline_dismiss"],null]],[["@type","@size","@color","@icon","@circle"],["tertiary",2,"muted","close",true]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"invitation-card__action-container pl3"],[12],[1,"\\n "],[8,[32,7],[[24,0,"invitation-card__action-btn mr2"],[16,"aria-label",[52,[30,0,["isGenericInvitation"]],[28,[32,5],["i18n_ignore_generic_btn_a11y_text","invitation/components/invitation-card"],[["invitationTitle"],[[30,0,["invitationTitle"]]]]],[28,[32,5],["i18n_ignore_btn_a11y_text","invitation/components/invitation-card"],[["member"],[[30,0,["name"]]]]]]],[4,[32,8],["click",[28,[32,16],[[30,0,["performActionOnInvitation"]],[30,2],"ignore"],null]],null],[4,[32,3],["decline"],null]],[["@type","@color","@text"],["tertiary","muted",[28,[32,5],["i18n_ignore_btn","invitation/components/invitation-card"],null]]],null],[1,"\\n "],[8,[32,7],[[24,0,"invitation-card__action-btn"],[16,"aria-label",[52,[30,0,["isGenericInvitation"]],[28,[32,5],["i18n_accept_generic_btn_a11y_text","invitation/components/invitation-card"],[["invitationTitle"],[[30,0,["invitationTitle"]]]]],[28,[32,5],["i18n_accept_btn_a11y_text","invitation/components/invitation-card"],[["member"],[[30,0,["name"]]]]]]],[4,[32,8],["click",[30,0,["onAcceptInvitation"]]],null],[4,[32,3],["accept"],null]],[["@type","@text"],["secondary",[28,[32,5],["i18n_accept_btn","invitation/components/invitation-card"],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],[[[1," "],[10,0],[14,0,"invitation-card__action-container pl3"],[12],[1,"\\n"],[41,[30,7],[[[1," "],[11,"button"],[24,0,"invitation-card__action-btn artdeco-button artdeco-button--muted mr2 artdeco-button--tertiary"],[24,4,"button"],[4,[32,3],["decline"],null],[4,[32,8],["click",[28,[32,16],[[30,10],[30,2],"ignore",[30,3]],null]],null],[12],[1,"\\n "],[10,1],[14,"aria-hidden","true"],[12],[1,[28,[32,5],["i18n_ignore_btn","invitation/components/invitation-card"],null]],[13],[1,"\\n "],[10,1],[14,0,"visually-hidden"],[12],[1,"\\n "],[1,[52,[30,0,["isEventToMemberInvite"]],[28,[32,5],["i18n_ignore_event_btn_a11y_text","invitation/components/invitation-card"],[["eventName","member"],[[30,0,["eventInfo","localizedName"]],[30,0,["name"]]]]],[28,[32,5],["i18n_ignore_btn_a11y_text","invitation/components/invitation-card"],[["member"],[[30,0,["name"]]]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[11,"button"],[24,0,"invitation-card__action-btn artdeco-button artdeco-button--secondary"],[24,4,"button"],[4,[32,3],["accept"],null],[4,[32,8],["click",[28,[32,16],[[30,10],[30,2],"accept",[30,3]],null]],null],[12],[1,"\\n "],[10,1],[14,"aria-hidden","true"],[12],[1,[28,[32,5],["i18n_accept_btn","invitation/components/invitation-card"],null]],[13],[1,"\\n "],[10,1],[14,0,"visually-hidden"],[12],[1,"\\n "],[1,[52,[30,0,["isEventToMemberInvite"]],[28,[32,5],["i18n_accept_event_btn_a11y_text","invitation/components/invitation-card"],[["eventName","member"],[[30,0,["eventInfo","localizedName"]],[30,0,["name"]]]]],[28,[32,5],["i18n_accept_btn_a11y_text","invitation/components/invitation-card"],[["member"],[[30,0,["name"]]]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[32,7],[[16,"aria-label",[52,[30,0,["isM2MInvite"]],[28,[32,5],["i18n_withdraw_btn_a11y_text","invitation/components/invitation-card"],[["member"],[[30,0,["name"]]]]],[28,[32,5],["i18n_withdraw_generic_btn_a11y_text","invitation/components/invitation-card"],[["invitationTitle"],[[30,0,["invitationTitle"]]]]]]],[24,0,"invitation-card__action-btn"],[4,[32,8],["click",[30,0,["withdrawInvitation"]]],null],[4,[32,3],["withdraw_single"],null]],[["@disabled","@circle","@color","@text","@size","@type"],[[30,11],false,"muted",[28,[32,5],["i18n_withdraw_btn","invitation/components/invitation-card"],null],3,"tertiary"]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[51,[30,0,["isActedOnInvite"]]],[[[41,[30,7],[[[41,[30,0,["customMessage"]],[[[1," "],[10,0],[14,0,"invitation-card__custom-message-container"],[12],[1,"\\n"],[1," "],[8,[32,17],[[24,0,"invitation-card__custom-message t-14 t-normal"]],[["@text","@lines","@onExpand","@seeMoreText","@seeLessText"],[[28,[32,18],[[30,0,["customMessage"]]],null],[30,0,["customMessageLines"]],[30,12],[28,[32,5],["i18n_see_more","invitation/components/invitation-card"],null],[28,[32,5],["i18n_see_less","invitation/components/invitation-card"],null]]],null],[1,"\\n "],[10,0],[14,0,"invitation-card__custom-message-report-container"],[12],[1,"\\n "],[8,[32,19],null,[["@isOpen","@onVisibilityChange","@justification"],[[30,0,["isOverflowDropdownOpen"]],[28,[32,20],[[30,0],"isOverflowDropdownOpen"],null],"right"]],[["default"],[[[[1,"\\n "],[8,[30,13,["dropdown-trigger"]],[[24,0,"invitation-card__custom-message-report"],[4,[32,3],["invite_report_menu"],null]],null,[["default"],[[[[1,"\\n "],[8,[32,9],null,[["@a11yText","@type","@size","@name"],[[28,[32,5],["i18n_report_btn_a11y_text","invitation/components/invitation-card"],[["member"],[[30,0,["name"]]]]],"system","small","overflow-web-ios"]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[30,13,["dropdown-content"]],null,[["@arrowDir"],["right"]],[["default"],[[[[1,"\\n "],[8,[32,21],[[24,0,"display-flex align-items-center mv1"]],null,[["default"],[[[[1,"\\n "],[11,"button"],[24,0,"display-flex align-items-center"],[24,4,"button"],[4,[32,8],["click",[30,0,["semaphoreOpen"]]],null],[4,[32,3],["invite_report"],null],[12],[1,"\\n "],[10,1],[14,0,"invitation-card__report-icon"],[12],[1,"\\n "],[8,[32,9],null,[["@a11yText","@type","@size","@name"],[[28,[32,5],["i18n_report_btn_a11y_text","invitation/components/invitation-card"],[["member"],[[30,0,["name"]]]]],"system","small","report"]],null],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"invitation-card__flag-text pl1"],[12],[1,[28,[32,5],["i18n_report_as_inappropriate","invitation/components/invitation-card"],null]],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],[13]]]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["isSemaphoreActive"]],[[[1," "],[8,[32,22],null,[["@entityUrn","@authorProfileId","@contentSource","@success","@failure","@cancel","@track"],[[30,0,["invitationEntityUrn"]],[30,0,["profileId"]],"CUSTOM_INVITATION_MESSAGE",[30,0,["semaphoreSuccess"]],[30,0,["semaphoreFailure"]],[28,[32,20],[[30,0],"isSemaphoreActive",false],null],[30,0,["semaphoreTrack"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,6],null,[["@entryPointClasses","@recipientUrns","@contextEntityUrn","@invitationUrn","@controlUrn","@referringModuleKey"],["mr1",[30,0,["inviterUrn"]],[30,2,["invitation","entityUrn"]],[30,2,["invitation","entityUrn"]],"message","invitations:invitation_card"]],[["default"],[[[[1,"\\n "],[8,[32,7],[[24,0,"invitation-card__custom-message-line-cta"],[16,"aria-label",[28,[32,5],["i18n_reply_btn_a11y_text","invitation/components/invitation-card"],[["member"],[[30,0,["name"]]]]]],[4,[32,8],["click",[30,14]],null]],[["@size","@text","@type","@color"],[1,[28,[32,5],["i18n_reply_btn","invitation/components/invitation-card"],[["member"],[[30,0,["name"]]]]],"tertiary","muted"]],null],[1,"\\n "]],[14]]]]],[1,"\\n\\n "],[13],[1,"\\n"]],[]],[[[41,[51,[30,0,["hideMessageBtn"]]],[[[1," "],[8,[32,6],null,[["@entryPointClasses","@recipientUrns","@contextEntityUrn","@invitationUrn","@controlUrn","@referringModuleKey"],["mr1",[30,0,["inviterUrn"]],[30,2,["invitation","entityUrn"]],[30,2,["invitation","entityUrn"]],"message","invitations:invitation_card"]],[["default"],[[[[1,"\\n "],[8,[32,7],[[24,0,"invitation-card__message-btn invitation-card__message-btn--entry-point t-14 link-without-hover-state"],[16,"aria-label",[28,[32,5],["i18n_message_btn_a11y_text","invitation/components/invitation-card"],[["member"],[[30,0,["name"]]]]]],[4,[32,8],["click",[30,15]],null]],[["@size","@text","@type"],[1,[28,[32,5],["i18n_message_btn","invitation/components/invitation-card"],null],"tertiary"]],null],[1,"\\n "]],[15]]]]],[1,"\\n"]],[]],null]],[]]]],[]],[[[44,[[52,[30,8],[30,2,["invitation","message"]],[30,2,["message"]]]],[[[41,[30,16],[[[1," "],[10,0],[14,0,"invitation-card__custom-message-container"],[12],[1,"\\n "],[8,[32,17],[[24,0,"invitation-card__custom-message t-14 t-normal"]],[["@text","@lines","@onExpand","@seeMoreText","@seeLessText"],[[28,[32,18],[[30,16]],null],[30,0,["customMessageLines"]],[30,12],[28,[32,5],["i18n_see_more","invitation/components/invitation-card"],null],[28,[32,5],["i18n_see_less","invitation/components/invitation-card"],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[16]]]],[]]]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["isPreAcceptFlowModalOpen"]],[[[1," "],[8,[32,23],null,[["@invitationTargetUrn","@invitationType","@preAcceptControlName"],[[30,0,["genericInvitationTargetUrn"]],[30,0,["genericInvitationType"]],[30,0,["preAcceptControlName"]]]],[["default"],[[[[1,"\\n "],[8,[30,17,["entityPreAcceptModal"]],null,[["@isOpen","@acceptInvitationCallback","@preAttendFlowUseCase"],[[30,0,["isPreAcceptFlowModalOpen"]],[30,0,["acceptInvitationCallback"]],[30,2,["invitation","preAcceptExtensionUseCase"]]]],null],[1,"\\n "]],[17]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showAcceptInvitationFrictionModal"]],[[[1," "],[8,[32,24],null,[["@isOpen","@onDismissModal","@onAcceptInvitation","@inviterPublicIdentifier"],[[30,0,["showAcceptInvitationFrictionModal"]],[28,[32,20],[[30,0],"showAcceptInvitationFrictionModal",false],null],[30,0,["onAcceptInvitationFrictionModalCallback"]],[30,0,["inviter","publicIdentifier"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@invitationView","@isInlineConfirmationExperienceEnabled","openMessaging","@isInvitationManager","@sentInvitationType","@isPending","@isInvitationManagerSentRedesignEnabled","guestInvitation","@actOnInvitation","@disableAction","@expandMessage","dropdown","openMessaging","openMessaging","message","base"],false,["if","unless","-get-dynamic-var","let"]]',moduleName:"invitation/components/invitation-card.gjs",scope:()=>[y.default,D.get,T.default,I.default,E.default,S.default,A.default,C.default,R.on,N.default,k.default,w.default,M.default,D.concat,O.default,P.default,D.fn,U.default,L.default,x.default,z.default,j.default,F.default,G.default,V.default],isStrictMode:!0}),(H=(0,b.inject)("i18n"),B=(0,b.inject)("router"),W=(0,b.inject)("persistent-toast-manager@persistent-toast-manager"),q=(0,b.inject)("tracking"),K=class e extends _.default{constructor(){super(...arguments);(0,n.default)(this,"customMessageLines",ce);(0,t.default)(this,"i18n",Y,this);(0,t.default)(this,"router",Q,this);(0,t.default)(this,"persistentToastManager",$,this);(0,t.default)(this,"tracking",J,this);(0,t.default)(this,"openFlagMenu",Z,this);(0,t.default)(this,"isSemaphoreActive",X,this);(0,t.default)(this,"isOverflowDropdownOpen",ee,this);(0,t.default)(this,"isPreAcceptFlowModalOpen",te,this);(0,t.default)(this,"inviteHasBeenReported",ne,this);(0,t.default)(this,"inviteHasBeenAccepted",ie,this);(0,t.default)(this,"isActedOnInvite",re,this);(0,t.default)(this,"showAcceptInvitationFrictionModal",oe,this);(0,t.default)(this,"isReported",ae,this);(0,t.default)(this,"isUnloading",se,this);(0,t.default)(this,"isUnloaded",le,this)}get isSentM2MInvite(){return(0,g.get)(this.args.invitationView,"invitation.genericInvitationType")===p.INVITATION_TYPES.CONNECTION}get isM2MInvite(){return this.args.isPending?(0,g.get)(this.args.invitationView,"invitation.genericInvitationType")===p.INVITATION_TYPES.CONNECTION:this.isSentM2MInvite}get isGenericInvitation(){return(0,g.get)(this.args.invitationView,"invitation.genericInvitationType")&&(0,g.get)(this.args.invitationView,"invitation.genericInvitationType")!==p.INVITATION_TYPES.CONNECTION}get isInviterFollowingInvitee(){return(0,g.get)(this.args.invitationView,"invitation.inviterFollowingInvitee")}get customMessage(){return(0,g.get)(this.args.invitationView,"invitation.message")}get withdrawAction(){return this.args.isInvitationManagerSentRedesignEnabled?"actor_withdraw":"withdraw"}get isViableInvitation(){return!!this.inviter&&(this.isM2MInvite||this.isGenericInvitation)}get isInvitationUnseen(){return(0,g.get)(this.args.invitationView,"invitation.unseen")}get invitationEntityUrn(){const e=(0,g.get)(this.args.invitationView,"invitation.entityUrn")
return`urn:li:invitation:${(0,m.entityUrnToId)(e)}`}get inviter(){return(0,s.getGenericInviter)((0,g.get)(this.args.invitationView,"invitation"))}get invitationTitle(){return this.inviter?(0,u.default)(this.inviter):""}get inviterUrn(){return this.inviter&&(0,g.get)(this.inviter,"entityUrn")}get mutualCurrentCompanyUrn(){return(0,g.get)(this.args,"invitationView.mutualCurrentCompany")}get shouldAddAsTeammate(){return(0,f.isPresent)(this.mutualCurrentCompanyUrn)}get isSentInvitation(){return"SENT"===(0,g.get)(this.args.invitationView,"invitation.invitationType")}get name(){if(this.isSentInvitation){const e=(0,g.get)(this.args.invitationView,"invitation.inviteeMemberResolutionResult")
return e&&(0,g.getProperties)(e,"firstName","lastName")}return this.inviter&&(0,g.getProperties)(this.inviter,"firstName","lastName","maidenName","name","title")}get inviterId(){return this.inviterUrn?(0,m.entityUrnToId)(this.inviterUrn):null}get profileId(){if(this.inviter){const e=(0,g.get)(this.inviter,"entityUrn")
return(0,h.fromUrn)(e).id}return""}get timeAgo(){return(0,g.get)(this.args,"invitationView.sentTimeLabel")}get afterRoute(){return this.router.currentRouteName}get hideMessageBtn(){return this.args.hideMessageBtn||(0,f.isEmpty)(this.args.hideMessageBtn)&&!this.args.isPending||(0,f.isEmpty)(this.inviter)||this.isGenericInvitation}get genericInvitationType(){return(0,g.get)(this.args.invitationView,"invitation.genericInvitationType")}get genericInvitationTargetUrn(){return(0,g.get)(this.inviter,"entityUrn")}get preAcceptControlName(){return this.isInvitationUnseen?"accept_new":"accept_old"}get insights(){return(0,g.get)(this.args,"invitationView.insight")}get isInvitationUnloading(){return this.isUnloading}get isInvitationUnloaded(){return this.isUnloaded}get isInvitationReported(){return this.isReported}get sentInvitationType(){return this.genericInvitationType}onExposedAction(){var e,t
null===(e=(t=this.args).cardExposed)||void 0===e||e.call(t,this.args.cardIndex)
return[]}_triggerInlineConfirmationOnAccept(){this.inviteHasBeenAccepted=!0
this.isActedOnInvite=!0}_triggerInlineConfirmationOnIgnore(){this.isActedOnInvite=!0}_callActOnInvitation(e){const{invitationView:t}=this.args
this.args.actOnInvitation(t,e,!0).then((()=>{if(!(0,v.isDestroying)(this)){this.args.isInvitationManager?e===p.INVITATION_ACTIONS.ACCEPT?this._triggerInlineConfirmationOnAccept():this._triggerInlineConfirmationOnIgnore():this.args.onTriggerInlineConfirmationCard(t,e)
this._genericPostAcceptHelper(e)}}))}_triggerPreAccceptFlow(){this.isPreAcceptFlowModalOpen=!0}_genericPostAcceptHelper(e){switch(this.genericInvitationType){case"EVENT":{const t="accept"===e;(0,d.fireProfessionalEventActionEvent)(this.tracking,(0,h.fromUrn)(this.genericInvitationTargetUrn,!1).id,t?c.ProfessionalEventActionType.ACCEPT_INVITATION:c.ProfessionalEventActionType.DECLINE_INVITATION)
break}default:{const t="accept"===e?"invite_accept_success":"invite_ignore_success"
this._fireCustomTrackingEvent(t)}}}_fireCustomTrackingEvent(e){const{tracking:t}=this,n=t.generateControlUrn(e)
t.fireCustomUrnInteractionEvent(n,"SHORT_PRESS")}_hasPreAcceptFlow(e){return!!(0,g.get)(e,"invitation.preAcceptExtensionUseCase")}performActionOnInvitation(e,t){this._fireCustomTrackingEvent(this.preAcceptControlName)
this._hasPreAcceptFlow(e)&&t===p.INVITATION_ACTIONS.ACCEPT?this._triggerPreAccceptFlow():this._callActOnInvitation(t)}acceptInvitationCallback(e){this.isPreAcceptFlowModalOpen=!1
"SUCCESS"===e&&this._callActOnInvitation(p.INVITATION_ACTIONS.ACCEPT)}reportInvitationCard(){const{invitationView:e}=this.args
this.args.rejectInvitationCard(e).then((()=>{this.isDestroying||(this.inviteHasBeenReported=!0)}))}removeWithdrawnInvitationCard(){this.isUnloaded=!0}withdrawInvitation(){const{invitationView:e}=this.args
this.args.actOnInvitation(e,this.withdrawAction,!1,this.sentInvitationType,this.removeWithdrawnInvitationCard)}dismissInlineConfirmation(){this.isUnloading=!0
this.args.onDecrementInlineConfirmationCount()
this.isUnloaded=!0}clickReportFlag(){this.openFlagMenu=!this.openFlagMenu}onAcceptInvitation(){(0,g.get)(this.args.invitationView,"showAcceptFriction")?this.showAcceptInvitationFrictionModal=!0:this.performActionOnInvitation(this.args.invitationView,"accept")}onAcceptInvitationFrictionModalCallback(){this.showAcceptInvitationFrictionModal=!1
this.performActionOnInvitation(this.args.invitationView,"accept")}semaphoreOpen(){this.openFlagMenu=!1
this.isSemaphoreActive=!0}semaphoreSuccess(){this.args.reportInvitation(this.args.invitationView)
this.isReported=!0
this.isSemaphoreActive=!1}semaphoreFailure(){this.isSemaphoreActive=!1
const t=this.i18n.lookupTranslation(e,"i18n_report_invite_error")()
this.persistentToastManager.error({message:t})}semaphoreTrack(e){const t=e&&e.moduleKey
t&&this.tracking.fireInteractionEvent(t)}},Y=(0,i.default)(K.prototype,"i18n",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q=(0,i.default)(K.prototype,"router",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=(0,i.default)(K.prototype,"persistentToastManager",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J=(0,i.default)(K.prototype,"tracking",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=(0,i.default)(K.prototype,"openFlagMenu",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),X=(0,i.default)(K.prototype,"isSemaphoreActive",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ee=(0,i.default)(K.prototype,"isOverflowDropdownOpen",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),te=(0,i.default)(K.prototype,"isPreAcceptFlowModalOpen",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ne=(0,i.default)(K.prototype,"inviteHasBeenReported",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ie=(0,i.default)(K.prototype,"inviteHasBeenAccepted",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),re=(0,i.default)(K.prototype,"isActedOnInvite",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),oe=(0,i.default)(K.prototype,"showAcceptInvitationFrictionModal",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ae=(0,i.default)(K.prototype,"isReported",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),se=(0,i.default)(K.prototype,"isUnloading",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),le=(0,i.default)(K.prototype,"isUnloaded",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(K.prototype,"onExposedAction",[g.action],Object.getOwnPropertyDescriptor(K.prototype,"onExposedAction"),K.prototype),(0,i.default)(K.prototype,"performActionOnInvitation",[g.action],Object.getOwnPropertyDescriptor(K.prototype,"performActionOnInvitation"),K.prototype),(0,i.default)(K.prototype,"acceptInvitationCallback",[g.action],Object.getOwnPropertyDescriptor(K.prototype,"acceptInvitationCallback"),K.prototype),(0,i.default)(K.prototype,"reportInvitationCard",[g.action],Object.getOwnPropertyDescriptor(K.prototype,"reportInvitationCard"),K.prototype),(0,i.default)(K.prototype,"removeWithdrawnInvitationCard",[g.action],Object.getOwnPropertyDescriptor(K.prototype,"removeWithdrawnInvitationCard"),K.prototype),(0,i.default)(K.prototype,"withdrawInvitation",[g.action],Object.getOwnPropertyDescriptor(K.prototype,"withdrawInvitation"),K.prototype),(0,i.default)(K.prototype,"dismissInlineConfirmation",[g.action],Object.getOwnPropertyDescriptor(K.prototype,"dismissInlineConfirmation"),K.prototype),(0,i.default)(K.prototype,"clickReportFlag",[g.action],Object.getOwnPropertyDescriptor(K.prototype,"clickReportFlag"),K.prototype),(0,i.default)(K.prototype,"onAcceptInvitation",[g.action],Object.getOwnPropertyDescriptor(K.prototype,"onAcceptInvitation"),K.prototype),(0,i.default)(K.prototype,"onAcceptInvitationFrictionModalCallback",[g.action],Object.getOwnPropertyDescriptor(K.prototype,"onAcceptInvitationFrictionModalCallback"),K.prototype),(0,i.default)(K.prototype,"semaphoreOpen",[g.action],Object.getOwnPropertyDescriptor(K.prototype,"semaphoreOpen"),K.prototype),(0,i.default)(K.prototype,"semaphoreSuccess",[g.action],Object.getOwnPropertyDescriptor(K.prototype,"semaphoreSuccess"),K.prototype),(0,i.default)(K.prototype,"semaphoreFailure",[g.action],Object.getOwnPropertyDescriptor(K.prototype,"semaphoreFailure"),K.prototype),(0,i.default)(K.prototype,"semaphoreTrack",[g.action],Object.getOwnPropertyDescriptor(K.prototype,"semaphoreTrack"),K.prototype),K))}))
define("invitation/components/invitation-list",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","invitation/utils/invitation-client-impression-event","invitation/utils/ad-banner-reloader","invitation/components/base-invitation","@ember/service","@ember/object","artdeco-loader/components/artdeco-loader"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var m,h,_
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"bIqHN+Dm",block:'[[[1,"\\n"],[1,"\\n "],[11,"ul"],[17,1],[24,0,"mn-invitation-list artdeco-list"],[12],[1,"\\n "],[18,2,[[30,0,["actOnInvitation"]],[30,0,["cardImpressed"]],[30,0,["expandMessage"]],[30,0,["rejectInvitationCard"]],[30,0,["reportInvitation"]],[30,0,["onTriggerInlineConfirmationCard"]]]],[1,"\\n\\n"],[41,[30,0,["isLoading"]],[[[1," "],[8,[32,0],[[24,"size","small"]],null,null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["&attrs","&default"],false,["yield","if"]]',moduleName:"invitation/components/invitation-list.gjs",scope:()=>[p.default],isStrictMode:!0}),(m=(0,d.inject)("ads@ad-banner-manager"),h=class extends c.default{constructor(){super(...arguments);(0,n.default)(this,"scrollPageKey","flagship3_people_invitations_list");(0,n.default)(this,"useLongerCopy",!0);(0,t.default)(this,"adBannerManager",_,this)}cardImpressed(e){let{invitationView:t,cardIndex:n}=e
l.default.reloadAd(this.adBannerManager,n)
return t?(0,s.default)(t,n):{}}},_=(0,i.default)(h.prototype,"adBannerManager",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(h.prototype,"cardImpressed",[u.action],Object.getOwnPropertyDescriptor(h.prototype,"cardImpressed"),h.prototype),h))}))
define("invitation/components/invitation-pre-accept-base",["exports","@ember/template-factory","@ember/component","@glimmer/component","@ember/helper","events-shared/components/pre-accept-invite"],(function(e,t,n,i,r,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const a={EVENT:o.default}
class s extends i.default{get entityPreAcceptModal(){return a[this.args.invitationType]}}e.default=s;(0,n.setComponentTemplate)((0,t.createTemplateFactory)({id:"sfKDgJik",block:'[[[1,"\\n "],[18,3,[[28,[32,0],null,[["entityPreAcceptModal"],[[50,[30,0,["entityPreAcceptModal"]],0,null,[["entityUrn","controlName"],[[30,1],[30,2]]]]]]]]],[1,"\\n "]],["@invitationTargetUrn","@preAcceptControlName","&default"],false,["yield","component"]]',moduleName:"invitation/components/invitation-pre-accept-base.gjs",scope:()=>[r.hash],isStrictMode:!0}),s)}))
define("invitation/helpers/sent-view-ui-id",["exports","@ember/component/helper","@ember/object"],(function(e,t,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const i=(0,t.helper)((function(e){if(!(e.length<1))return function(e){if(null==e)return
const t=(0,n.get)(e,"numOfInvitations")??1
let i=(0,n.get)(e,"heroInvitations.firstObject.entityUrn")||(0,n.get)(e,"entityUrn")
t>1&&(i+=`_${t}`)
return i}(e[0])}))
e.default=i}))
define("invitation/utils/ad-banner-reloader",["exports","@ember/debug"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
e.reloadAd=n
function n(e,t){0!==t&&t%20==0&&e.triggerRefreshAdEvent()}const i={reloadAd:n}
e.default=i}))
define("invitation/utils/get-entity-name",["exports","@ember/object"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=function(e){const n=(0,t.get)(e,"title.text")||(0,t.get)(e,"name")||(0,t.get)(e,"title"),i=(0,t.get)(e,"title.attributes.lastObject")
if(n&&i){const e=(0,t.get)(i,"start"),r=e+(0,t.get)(i,"length")
return n.substring(e,r)}return n}}))
define("invitation/utils/i18n-constants",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const t={TEMPLATE:"components/invitation@invitation-list",INVITATION_DECLINED:"i18n_invitation_declined",INVITATION_MARK_UNKNOWN:"i18n_mark_unknown",INVITATION_MARK_UNKNOWN_SUCCESS:"i18n_mark_unknown_success",INVITATION_MESSAGE:"i18n_send_message_btn",INVITATION_ACCEPTED:"i18n_invitation_accepted",INVITATION_WITHDRAWN:"i18n_invitation_withdrawn",INVITATION_ACCEPT_FAILURE:"i18n_invitation_accept_failure",INVITATION_ACCEPT_FAILURE_CONNECTION_LIMIT:"i18n_accept_invitation_failed_connection_limit",INVITATION_DECLINE_FAILURE:"i18n_invitation_decline_failure",INVITATION_WITHDRAW_FAILURE:"i18n_invitation_withdraw_failure",INVITATION_REPORT_FAILURE:"i18n_invitation_report_failure",INVITATION_GENERAL_FAILURE_HELPCENTER:"i18n_accept_invitation_failed_msg_helpcenter",INVITATION_GENERAL_FAILURE_HELPCENTER_SHORT:"i18n_accept_invitation_failed_msg_helpcenter_short",INVITATION_VIEW_PROFILE:"i18n_invitation_view_profile",EVENT_INVITATION_ACCEPTED:"i18n_event_invitation_accepted",EVENT_INVITATION_DECLINED:"i18n_event_invitation_declined",GENERIC_INVITATION_ACCEPTED:"i18n_generic_invitation_accepted",GENERIC_INVITATION_DECLINED:"i18n_generic_invitation_declined"}
e.default=t}))
define("invitation/utils/invitation-client-impression-event",["exports","@ember/object","ember-cli-pemberly-tracking/utils/tracking","invitation/utils/invitation-util","invitation-platform/utils/constants"],(function(e,t,n,i,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=function(e,o){var a,s,l,c
const d=(0,n.generateTrackingId)(),u=(null===(a=e.invitation)||void 0===a?void 0:a.entityUrn)||(null===(s=e.invitation)||void 0===s?void 0:s.invitationUrn),p=(null===(l=e.invitation)||void 0===l?void 0:l.genericInvitationType)!==r.INVITATION_TYPES.CONNECTION,m=(0,i.getGenericInviter)((0,t.get)(e,"invitation"))
if(!m)return{}
if(p){var h
return{name:"InvitationClientImpressionEvent",body:{invitationTargetUrn:m.entityUrn,invitationTrackingInfo:{objectUrn:u,trackingId:d},invitationType:null===(h=e.invitation)||void 0===h?void 0:h.genericInvitationType,listPosition:{index:o}}}}return{name:"InvitationClientImpressionEvent",body:{invitationTargetUrn:null===(c=m.memberProfileUrn)||void 0===c?void 0:c.objectUrn,invitationTrackingInfo:{objectUrn:u,trackingId:d},invitationType:"MEMBER",listPosition:{index:o}}}}}))
define("invitation/utils/invitation-util",["exports","@ember/object","invitation-platform/utils/constants"],(function(e,t,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.getGenericInviter=function(e){const n=(0,t.get)(e,"genericInvitationType")
return i[n]?(0,t.get)(e,i[n]):null}
const i=Object.freeze({[n.INVITATION_TYPES.CONNECTION]:"genericInviter.memberProfileUrn",[n.GENERIC_INVITATION_TYPES.EVENT]:"genericInviter.eventUrn",[n.GENERIC_INVITATION_TYPES.ORGANIZATION]:"genericInviter.organizationUrn",[n.GENERIC_INVITATION_TYPES.CONTENT_SERIES]:"genericInviter.contentSeries",[n.GENERIC_INVITATION_TYPES.GROUP]:"genericInviter.group",[n.GENERIC_INVITATION_TYPES.SERVICE_PROVIDER_REVIEW]:"genericInviter.marketplaceProviderUrn"})}))
define("invite-alert/components/invite-alert",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","tracked-toolbox","@glimmer/component","@ember/object","hue-web-icons/components/icon","ember-cli-pemberly-i18n/helpers/t","@ember/helper","ember-engines/components/link-to-external","ember-cli-pemberly-tracking/modifiers/track-interaction","global-helpers/helpers/name","message-button/components/entry-point","artdeco-button/components/artdeco-button","@ember/modifier"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_,g,f,b){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var v,y,T
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"yLyNssrB",block:'[[[1,"\\n"],[41,[30,0,["showAlert"]],[[[1," "],[10,0],[14,0,"mn-invite-alert"],[12],[1,"\\n "],[10,0],[14,0,"mn-invite-alert__wrapper"],[12],[1,"\\n "],[10,2],[14,0,"mn-invite-alert__message"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[8,[32,0],[[24,"aria-hidden","true"],[24,0,"mn-invite-alert__hue-icon mn-invite-alert__hue-icon--notify inline-flex"]],[["@name","@type","@size"],["signal-notice","system","medium"]],null],[1,"\\n"]],[]],[[[41,[30,2],[[[1," "],[8,[32,0],[[24,"aria-hidden","true"],[24,0,"mn-invite-alert__hue-icon mn-invite-alert__hue-icon--error inline-flex"]],[["@name","@type","@size"],["signal-error","system","medium"]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,0],[[24,"aria-hidden","true"],[24,0,"mn-invite-alert__hue-icon mn-invite-alert__hue-icon--success inline-flex"]],[["@name","@type","@size"],["signal-success","system","medium"]],null],[1,"\\n "]],[]]]],[]]],[1,"\\n"],[41,[30,3],[[[1," "],[10,0],[14,0,"mn-invite-alert__content display-flex align-items-center"],[12],[1,"\\n"],[41,[30,2],[[[1," "],[1,[28,[32,1],["i18n_accept_invitation_failed_msg_helpcenter","invite-alert/components/invite-alert"],[["linkInfo"],[[28,[32,2],null,[["target","href","rel","class"],["_blank","/help/linkedin/answer/83858","noopener noreferrer","mn-invite-alert__link mn-invite-alert__link--weight-bold pl1"]]]]]]],[1,"\\n"]],[]],[[[1," "],[8,[32,3],[[4,[32,4],["profile"],null]],[["@route","@model","@class"],["profile.common.profile",[30,0,["miniProfile","publicIdentifier"]],"mn-invite-alert__link mn-invite-alert__link--weight-normal"]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["i18n_invite_alert_invitation_accepted","invite-alert/components/invite-alert"],[["member"],[[28,[32,5],[[30,0,["miniProfile"]]],null]]]]],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[32,6],null,[["@recipientUrns","@controlUrn","@referringModuleKey"],[[30,0,["miniProfile","entityUrn"]],"message","invitations:invite_alert"]],[["default"],[[[[1,"\\n "],[8,[32,7],[[4,[32,8],["click",[30,4]],null]],[["@size","@text","@type"],[1,[28,[32,1],["i18n_invite_alert_send_message","invite-alert/components/invite-alert"],null],"tertiary"]],null],[1,"\\n "]],[4]]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],[[[41,[30,5],[[[1," "],[10,0],[14,0,"mn-invite-alert__content display-flex align-items-center"],[12],[1,"\\n"],[41,[30,2],[[[41,[30,0,["miniProfile"]],[[[1," "],[1,[28,[32,1],["i18n_invite_alert_invitation_sent_error","invite-alert/components/invite-alert"],[["member"],[[28,[32,5],[[30,0,["miniProfile"]]],null]]]]],[1,"\\n "],[8,[32,3],[[4,[32,4],["profile"],null]],[["@route","@model","@class"],["profile.common.profile",[30,0,["miniProfile","publicIdentifier"]],"mn-invite-alert__link mn-invite-alert__link--weight-bold pl1"]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["i18n_invite_alert_view_profile","invite-alert/components/invite-alert"],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,1],["i18n_invite_alert_invitation_sent_error_no_profile","invite-alert/components/invite-alert"],null]],[1,"\\n"]],[]]]],[]],[[[1," "],[1,[28,[32,1],["i18n_invite_alert_invitation_sent","invite-alert/components/invite-alert"],[["member"],[[28,[32,5],[[30,0,["miniProfile"]]],null]]]]],[1,"\\n"],[41,[30,0,["miniProfile","publicIdentifier"]],[[[1," "],[8,[32,3],[[4,[32,4],["profile"],null]],[["@route","@model","@class"],["profile.common.profile",[30,0,["miniProfile","publicIdentifier"]],"mn-invite-alert__link mn-invite-alert__link--weight-bold pl1"]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["i18n_invite_alert_view_profile","invite-alert/components/invite-alert"],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,1],["i18n_invite_alert_invitation_sent","invite-alert/components/invite-alert"],[["member"],[[28,[32,5],[[30,0,["miniProfile"]]],null]]]]],[1,"\\n"]],[]]]],[]]],[1," "],[13],[1,"\\n"]],[]],[[[41,[30,1],[[[1," "],[1,[28,[32,1],["i18n_invite_alert_invitation_ignored","invite-alert/components/invite-alert"],null]],[1,"\\n "]],[]],null]],[]]]],[]]],[1,"\\n"],[41,[30,0,["canDismiss"]],[[[1," "],[11,"button"],[24,0,"mn-invite-alert__dismiss"],[24,4,"button"],[4,[32,8],["click",[30,0,["close"]]],null],[12],[1,"\\n "],[8,[32,0],null,[["@type","@size","@name"],["system","small","close"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],["@ignoreInvite","@inviteActionFailed","@acceptInvite","openMessaging","@sendInvite"],false,["if"]]',moduleName:"invite-alert/components/invite-alert.gjs",scope:()=>[d.default,u.default,p.hash,m.default,h.default,_.default,g.default,f.default,b.on],isStrictMode:!0}),(v=(0,s.trackedReset)({memo:e=>e.args.inviteActionFailed||!!e.args.miniProfile||!!e.args.sudoProfile,update:e=>e.args.inviteActionFailed||!!e.args.miniProfile||!!e.args.sudoProfile}),y=class extends l.default{constructor(){super(...arguments);(0,t.default)(this,"showAlert",T,this)}get miniProfile(){return this.args.miniProfile||this.args.sudoProfile}get canDismiss(){return this.args.canDismiss??!0}close(){this.showAlert=!1}},T=(0,i.default)(y.prototype,"showAlert",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),(0,i.default)(y.prototype,"close",[c.action],Object.getOwnPropertyDescriptor(y.prototype,"close"),y.prototype),y))}))
define("invite-alert/template-registry",[],(function(){}))
define("network-survey/components/survey-carousel-card",["exports","@babel/runtime/helpers/esm/defineProperty","@ember/component","@ember/template-factory","@glimmer/component","network-survey/utils/constants"],(function(e,t,n,i,r,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const a=(0,i.createTemplateFactory)({id:"AhX8AlMa",block:'[[[8,[39,0],[[4,[38,1],null,[["pageKey","routeName","currentRoute"],["flagship3_people_survey_card",[28,[37,2],[[53,"outletState"],"render.name"],null],[28,[37,2],[[53,"outletState"],"render"],null]]]]],[["@class"],["ns-survey-carousel-card"]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"ns-survey-carousel-card__count t-12 t-black--light"],[12],[1,"\\n "],[1,[28,[35,4],["i18n_survey_carousel_card_count","network-survey/components/survey-carousel-card"],[["currentIndex","total"],[[30,1],[30,2]]]]],[1,"\\n "],[13],[1,"\\n"],[44,[[28,[37,6],null,[["firstName","lastName","type"],[[30,3,["miniProfile","firstName"]],[30,3,["miniProfile","lastName"]],"full"]]]],[[[1," "],[8,[39,7],null,[["@image","@alt","@class","@ghostType","@width"],[[30,3,["miniProfile","picture"]],[30,4],"EntityPhoto-circle-7 mt4","person",40]],null],[1,"\\n "],[10,0],[14,0,"ph5"],[12],[1,"\\n "],[10,2],[14,0,"ns-survey__name t-16 t-bold"],[12],[1,"\\n "],[1,[30,4]],[1,"\\n "],[13],[1,"\\n "],[10,2],[14,0,"ns-survey__occupation t-14"],[12],[1,"\\n "],[1,[30,3,["miniProfile","occupation"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[4]]],[1," "],[10,"footer"],[14,0,"ns-survey-carousel-card__actions-container artdeco-card__actions"],[12],[1,"\\n "],[8,[39,8],[[16,"aria-label",[28,[37,4],["i18n_survey_carousel_card_btn_no_ally","network-survey/components/survey-carousel-card"],null]],[4,[38,9],["click",[28,[37,10],[[30,5],[30,0,["NO"]],[30,3]],null]],null],[4,[38,11],["survey_no"],null]],[["@class","@size","@text","@type"],["ns-survey-carousel-card__btn artdeco-button--fluid",3,[28,[37,4],["i18n_survey_carousel_card_btn_no","network-survey/components/survey-carousel-card"],null],"tertiary"]],null],[1,"\\n "],[8,[39,8],[[16,"aria-label",[28,[37,4],["i18n_survey_carousel_card_btn_yes_ally","network-survey/components/survey-carousel-card"],null]],[4,[38,9],["click",[28,[37,10],[[30,5],[30,0,["YES"]],[30,3]],null]],null],[4,[38,11],["survey_yes"],null]],[["@class","@size","@text","@type"],["ns-survey-carousel-card__btn artdeco-button--fluid",3,[28,[37,4],["i18n_survey_carousel_card_btn_yes","network-survey/components/survey-carousel-card"],null],"tertiary"]],null],[1,"\\n "],[13],[1,"\\n"]],[]]]]]],["@currentIndex","@total","@connection","formattedName","@actionHandler"],false,["artdeco-card@artdeco-card","ember-cli-pemberly-tracking@track-render","get","-get-dynamic-var","t","let","ember-cli-pemberly-i18n@format-name","ember-vector-images@lazy-image","artdeco-button@artdeco-button","on","fn","ember-cli-pemberly-tracking@track-interaction"]]',moduleName:"network-survey/components/survey-carousel-card.hbs",isStrictMode:!1}),{DONE:s,NO:l,YES:c}=o.NETWORK_SURVEY_ACTIONS
class d extends r.default{constructor(){super(...arguments);(0,t.default)(this,"NO",l);(0,t.default)(this,"YES",c);(0,t.default)(this,"DONE",s)}}e.default=d;(0,n.setComponentTemplate)(a,d)}))
define("network-survey/components/survey-carousel",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/component","@ember/template-factory","@glimmer/component","@glimmer/tracking","@ember/object","network-survey/utils/constants"],(function(e,t,n,i,r,o,a,s,l,c,d){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var u,p,m
const h=(0,a.createTemplateFactory)({id:"l5QNNbc3",block:'[[[8,[39,0],null,[["@class","@carouselItems","@hidePagination","@hidePrevNextBtns","@pageSize","@currentSlideIndex"],["ns-survey-carousel ns-survey__background",[30,1,["length"]],true,true,1,[30,0,["currentSlideIndex"]]]],[["default"],[[[[1,"\\n "],[8,[30,2,["slider"]],null,null,[["default"],[[[[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,1]],null]],null],null,[[[1," "],[8,[30,2,["item"]],null,[["@myIndex"],[[30,4]]],[["default"],[[[[1,"\\n "],[8,[39,3],null,[["@total","@currentIndex","@connection","@actionHandler"],[[30,0,["total"]],[30,0,["currentIndex"]],[30,3],[30,0,["actionHandler"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[3,4]],null],[1," "]],[]]]]],[1,"\\n"]],[2]]]]],[1,"\\n\\n"],[10,0],[14,0,"ns-survey__background"],[12],[1,"\\n "],[10,0],[15,0,[52,[30,0,["isLastConnectionCard"]],"ns-survey-carousel__skip-btn--hide","ns-survey-carousel__skip-btn"]],[12],[1,"\\n "],[8,[39,5],[[16,"aria-label",[28,[37,6],["i18n_network_survey_skip-btn_a11y","network-survey/components/survey-carousel"],null]],[4,[38,7],["click",[28,[37,8],[[30,0,["actionHandler"]],[30,0,["SKIP"]]],null]],null],[4,[38,9],["survey_skip"],null]],[["@type","@color","@size","@icon","@iconRight","@text"],["tertiary","muted",3,"chevron-right",true,[28,[37,6],["i18n_network_survey_skip-btn","network-survey/components/survey-carousel"],null]]],null],[1,"\\n "],[13],[1,"\\n"],[13]],["@randomConnections","carousel","connection","index"],false,["artdeco-carousel@artdeco-carousel","each","-track-array","network-survey@survey-carousel-card","if","artdeco-button@artdeco-button","t","on","fn","ember-cli-pemberly-tracking@track-interaction"]]',moduleName:"network-survey/components/survey-carousel.hbs",isStrictMode:!1}),{NO:_,YES:g,DONE:f,SKIP:b,DISMISS:v}=d.NETWORK_SURVEY_ACTIONS
let y=e.default=(u=class extends s.default{constructor(){super(...arguments);(0,n.default)(this,"NO",_);(0,n.default)(this,"YES",g);(0,n.default)(this,"DONE",f);(0,n.default)(this,"SKIP",b);(0,n.default)(this,"DISMISS",v);(0,t.default)(this,"currentIndex",p,this);(0,t.default)(this,"currentSlideIndex",m,this)}get total(){return(0,c.get)(this.args,"randomConnections.length")}_moveToNext(){this.currentSlideIndex+=1
if(this.currentSlideIndex>=this.total)return!0
this.currentIndex+=1
return!1}actionHandler(e,t){var n,i,r,o
let a
switch(e){case f:case v:null===(n=(i=this.args).dismissAction)||void 0===n||n.call(i)
break
case _:case g:a=this._moveToNext()
null===(r=(o=this.args).labelRandomConnection)||void 0===r||r.call(o,e===g,t)
break
default:a=this._moveToNext()}if(a){var s,l
null===(s=(l=this.args).toggleSurveyViews)||void 0===s||s.call(l)}}},p=(0,i.default)(u.prototype,"currentIndex",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),m=(0,i.default)(u.prototype,"currentSlideIndex",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),(0,i.default)(u.prototype,"actionHandler",[c.action],Object.getOwnPropertyDescriptor(u.prototype,"actionHandler"),u.prototype),u);(0,o.setComponentTemplate)(h,y)}))
define("network-survey/components/survey-done-card",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,n,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const r=(0,n.createTemplateFactory)({id:"5YN1zv5Q",block:'[[[8,[39,0],[[4,[38,1],null,[["pageKey","routeName","currentRoute"],["flagship3_people_survey_complete",[28,[37,2],[[53,"outletState"],"render.name"],null],[28,[37,2],[[53,"outletState"],"render"],null]]]]],[["@class"],["ns-survey-done-card"]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"ph4"],[12],[1,"\\n "],[10,0],[14,0,"ns-survey-done-card--illustration"],[14,"aria-hidden","true"],[12],[13],[1,"\\n "],[10,"h2"],[14,0,"mt4 mb2 t-16 t-bold"],[12],[1,"\\n "],[1,[28,[35,4],["i18n_survey_done_card_title","network-survey/components/survey-done-card"],null]],[1,"\\n "],[13],[1,"\\n "],[10,2],[14,0,"ns-survey__message t-14 t-black--light"],[12],[1,"\\n "],[1,[28,[35,4],["i18n_survey_done_card_message","network-survey/components/survey-done-card"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"footer"],[14,0,"ns-survey-done-card__actions-container"],[12],[1,"\\n "],[8,[39,5],[[16,"aria-label",[28,[37,4],["i18n_survey_done_card_btn_ally","network-survey/components/survey-done-card"],null]],[4,[38,6],["click",[30,1]],null],[4,[38,7],["survey_review_done"],null]],[["@controlType","@class","@size","@text","@type"],["button","ns-survey-done-card__btn-done",3,[28,[37,4],["i18n_survey_done_card_btn","network-survey/components/survey-done-card"],null],"tertiary"]],null],[1,"\\n "],[13],[1,"\\n"]],[]]]]]],["@dismissAction"],false,["artdeco-card@artdeco-card","ember-cli-pemberly-tracking@track-render","get","-get-dynamic-var","t","artdeco-button@artdeco-button","on","ember-cli-pemberly-tracking@track-interaction"]]',moduleName:"network-survey/components/survey-done-card.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(r,(0,i.default)())}))
define("network-survey/components/survey-list",["exports","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","network-survey/utils/constants"],(function(e,t,n,i,r,o,a,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var l
const c=(0,r.createTemplateFactory)({id:"KcSMzGHZ",block:'[[[11,"ul"],[24,0,"ns-survey-list__border artdeco-list artdeco-list--offset-2"],[4,[38,0],null,[["pageKey","routeName","currentRoute"],["flagship3_people_survey_curate",[28,[37,1],[[53,"outletState"],"render.name"],null],[28,[37,1],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,1]],null]],null],null,[[[1," "],[10,"li"],[14,0,"ns-survey-list__item artdeco-list__item"],[12],[1,"\\n"],[44,[[28,[37,6],null,[["firstName","lastName","type"],[[30,2,["miniProfile","firstName"]],[30,2,["miniProfile","lastName"]],"full"]]]],[[[1," "],[8,[39,7],null,[["@image","@alt","@desiredWidth","@ghostType","@class"],[[30,2,["miniProfile","picture"]],[30,3],100,"person","EntityPhoto-circle-5"]],null],[1,"\\n\\n "],[10,0],[14,0,"flex-1 pl5 pr5"],[12],[1,"\\n "],[10,2],[14,0,"ns-survey__name t-16 t-bold"],[12],[1,"\\n "],[1,[30,3]],[1,"\\n "],[13],[1,"\\n"],[41,[30,2,["miniProfile","occupation"]],[[[1," "],[10,2],[14,0,"ns-survey__occupation t-14 t-black--light"],[12],[1,"\\n "],[1,[30,2,["miniProfile","occupation"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,2,["insights"]],[[[1," "],[8,[39,9],null,[["@isNotClickable","@isModalDisabled","@memberName","@insights","@profileId"],[true,true,[30,3],[30,2,["insights"]],[30,2,["miniProfile","entityUrn"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[3]]],[1,"\\n"],[41,[30,2,["isUnfollowed"]],[[[1," "],[8,[39,10],[[16,"aria-label",[28,[37,11],["i18n_survey_list_unfollowed_a11y","network-survey/components/survey-list"],null]],[4,[38,12],["click",[28,[37,13],[[30,0,["followUnknownConnection"]],[30,2],false],null]],null],[4,[38,14],["survey_unfollow_undo"],null]],[["@size","@text","@type","@color"],[3,[28,[37,11],["i18n_survey_list_unfollowed","network-survey/components/survey-list"],null],"secondary","muted"]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,10],[[16,"aria-label",[28,[37,11],["i18n_survey_list_unfollow_a11y","network-survey/components/survey-list"],null]],[4,[38,12],["click",[28,[37,13],[[30,0,["followUnknownConnection"]],[30,2],true],null]],null],[4,[38,14],["survey_unfollow"],null]],[["@size","@text","@type"],[3,[28,[37,11],["i18n_survey_list_unfollow","network-survey/components/survey-list"],null],"secondary"]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[2]],null],[13]],["@unknownConnections","unknownConnection","formattedName"],false,["ember-cli-pemberly-tracking@track-render","get","-get-dynamic-var","each","-track-array","let","ember-cli-pemberly-i18n@format-name","ember-vector-images@lazy-image","if","member-insights@member-insights","artdeco-button@artdeco-button","t","on","fn","ember-cli-pemberly-tracking@track-interaction"]]',moduleName:"network-survey/components/survey-list.hbs",isStrictMode:!1}),{UNFOLLOW:d,UNFOLLOW_UNDO:u}=s.NETWORK_SURVEY_ACTIONS
let p=e.default=(l=class extends o.default{constructor(){super(...arguments);(0,t.default)(this,"UNFOLLOW",d);(0,t.default)(this,"UNFOLLOW_UNDO",u)}followUnknownConnection(e,t){var n,i;(0,a.set)(e,"isUnfollowed",!(0,a.get)(e,"isUnfollowed"))
null===(n=(i=this.args).updateFollowUnknownConnection)||void 0===n||n.call(i,(0,a.get)(e,"entityUrn"),t)}},(0,n.default)(l.prototype,"followUnknownConnection",[a.action],Object.getOwnPropertyDescriptor(l.prototype,"followUnknownConnection"),l.prototype),l);(0,i.setComponentTemplate)(c,p)}))
define("network-survey/components/survey-modal",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/component","@ember/template-factory","@ember/service","@glimmer/component","@ember/object","network-survey/utils/constants","network-survey/utils/network-survey-util","global-utils/utils/url","@glimmer/tracking","global-helpers/helpers/load","tracked-toolbox"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var g,f,b,v,y,T,I,E,O,S,A,C
const R=(0,a.createTemplateFactory)({id:"6FJCfL6C",block:'[[[41,[30,0,["isNetworkSurveyError"]],[[[1," "],[8,[39,1],[[4,[38,3],null,[["pageKey","routeName","currentRoute"],["flagship3_people_survey_error",[28,[37,4],[[53,"outletState"],"render.name"],null],[28,[37,4],[[53,"outletState"],"render"],null]]]]],[["@isOpen","@dismissModal","@headerId","@size"],[[30,0,["isOpen"]],[28,[37,2],["survey_dismiss",[30,0,["dismissAction"]]],null],"ns-survey-modal-modal-header","medium"]],[["default"],[[[[1,"\\n "],[8,[30,1,["artdeco-modal-header"]],null,[["@classNames"],["hidden"]],[["default"],[[[[1,"\\n"],[1," "],[10,"h2"],[14,1,"ns-survey-modal-modal-header"],[12],[13],[1,"\\n"],[1," "]],[]]]]],[1,"\\n "],[8,[30,1,["artdeco-modal-content"]],null,null,[["default"],[[[[1,"\\n "],[8,[39,6],null,[["@actionText","@illustration","@headline","@message","@onButtonClick"],[[28,[37,7],["i18n_error_reload","network-survey/components/survey-modal"],null],"no-connection-muted",[28,[37,7],["i18n_error_state_oops","network-survey/components/survey-modal"],null],[28,[37,7],["i18n_survey_modal_error_state","network-survey/components/survey-modal"],null],[28,[37,2],["reload_on_error__networkSurvey",[30,0,["reloadPage"]]],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[1]]]]],[1,"\\n"]],[]],[[[1," "],[8,[39,1],[[4,[38,3],null,[["pageKey","routeName","currentRoute"],["flagship3_people_survey",[28,[37,4],[[53,"outletState"],"render.name"],null],[28,[37,4],[[53,"outletState"],"render"],null]]]]],[["@isOpen","@dismissModal","@headerId","@size"],[[30,0,["isOpen"]],[28,[37,2],["survey_dismiss",[30,0,["dismissAction"]]],null],"ns-survey-modal-modal-header","medium"]],[["default"],[[[[1,"\\n "],[8,[30,2,["artdeco-modal-header"]],null,[["@classNames"],["ns-survey-modal__header"]],[["default"],[[[[1,"\\n"],[41,[30,0,["surveyCompleted"]],[[[1," "],[10,"h2"],[14,1,"ns-survey-modal-modal-header"],[14,0,"text-align-center"],[12],[1,"\\n "],[1,[28,[35,7],["i18n_survey_modal_header","network-survey/components/survey-modal"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["isShowUnfollowView"]],[[[1," "],[10,"h2"],[14,1,"ns-survey-modal-modal-header"],[12],[1,"\\n "],[1,[28,[35,7],["i18n_survey_modal_unfollow_header","network-survey/components/survey-modal"],[["unknownCount"],[[30,0,["unknownConnections","length"]]]]]],[1,"\\n "],[13],[1,"\\n "],[10,2],[14,0,"t-16 t-black--light"],[12],[1,"\\n "],[1,[28,[35,7],["i18n_survey_modal_unfollow_sub-header","network-survey/components/survey-modal"],[["unknownCount"],[[30,0,["unknownConnections","length"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"h2"],[14,1,"ns-survey-modal-modal-header"],[14,0,"text-align-center"],[12],[1,"\\n "],[1,[28,[35,7],["i18n_survey_modal_header","network-survey/components/survey-modal"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]],[]]],[1," "]],[]]]]],[1,"\\n "],[8,[30,2,["artdeco-modal-content"]],null,[["@classNames"],["ns-survey-modal__content ns-survey__background p0"]],[["default"],[[[[1,"\\n"],[41,[30,0,["surveyCompleted"]],[[[1," "],[10,0],[14,0,"ns-survey-modal__done-card-container"],[12],[1,"\\n "],[8,[39,8],null,[["@isDoneView","@dismissAction"],[[30,0,["surveyCompleted"]],[30,0,["dismissAction"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["isShowUnfollowView"]],[[[1," "],[8,[39,9],null,[["@unknownConnections","@dismissAction","@updateFollowUnknownConnection"],[[30,0,["unknownConnections"]],[30,0,["dismissAction"]],[30,0,["updateFollowUnknownConnection"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,10],null,[["@randomConnections","@dismissAction","@labelRandomConnection","@toggleSurveyViews"],[[30,0,["randomConnections","value"]],[30,0,["dismissAction"]],[30,0,["labelRandomConnection"]],[30,0,["toggleSurveyViews"]]]],null],[1,"\\n "]],[]]]],[]]],[1," "]],[]]]]],[1,"\\n "],[8,[30,2,["artdeco-modal-footer"]],null,null,[["default"],[[[[1,"\\n"],[41,[30,0,["surveyCompleted"]],[[[1," "],[10,0],[14,0,"ns-survey-modal__done-card-footer clearfix"],[12],[1,"\\n "],[8,[39,11],[[16,"aria-label",[28,[37,7],["i18n_survey_modal_done_ally","network-survey/components/survey-modal"],null]],[4,[38,12],["click",[30,0,["dismissAction"]]],null],[4,[38,13],["review_more_dismiss"],null]],[["@size","@text","@type"],[2,[28,[37,7],["i18n_survey_modal_done","network-survey/components/survey-modal"],null],"primary"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["isShowUnfollowView"]],[[[1," "],[10,0],[14,0,"display-flex align-items-center"],[12],[1,"\\n "],[10,2],[14,0,"flex-1 t-16"],[12],[1,"\\n "],[1,[28,[35,7],["i18n_survey_modal_unfollow_footer_text","network-survey/components/survey-modal"],[["linkInfo"],[[28,[37,14],null,[["data-test-network-survey-unfollow-learn-more","target","href","rel","aria-label","data-control-name","class"],["true","_blank",[30,0,["externalUnfollowInfoLink"]],"noopener noreferrer",[28,[37,7],["i18n_survey_modal_unfollow_footer_a11y_text","network-survey/components/survey-modal"],null],"survey_unfollow_learn_more","link"]]]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,11],[[16,"aria-label",[28,[37,7],["i18n_survey_modal_unfollow_done_ally","network-survey/components/survey-modal"],null]],[4,[38,12],["click",[30,0,["toggleSurveyViews"]]],null],[4,[38,13],["survey_unfollow_done"],null]],[["@size","@text","@type"],[2,[28,[37,7],["i18n_survey_modal_done","network-survey/components/survey-modal"],null],"primary"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[14,0,"display-flex t-12 t-black--light"],[12],[1,"\\n "],[8,[39,15],[[24,"classNames",""]],[["@type","@name","@size"],["system","signal-notice","small"]],null],[1,"\\n "],[10,1],[14,0,"pl1"],[12],[1,"\\n "],[1,[28,[35,7],["i18n_survey_modal_carousel_footer_text","network-survey/components/survey-modal"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]],[]]],[1," "]],[]]]]],[1,"\\n "]],[2]]]]],[1,"\\n"]],[]]]],["modal","modal"],false,["if","artdeco-modal@artdeco-modal","ember-cli-pemberly-tracking@tracked-action","ember-cli-pemberly-tracking@track-render","get","-get-dynamic-var","artdeco-empty-state@artdeco-empty-state","t","network-survey@survey-done-card","network-survey@survey-list","network-survey@survey-carousel","artdeco-button@artdeco-button","on","ember-cli-pemberly-tracking@track-interaction","hash","hue-web-icons@icon"]]',moduleName:"network-survey/components/survey-modal.hbs",isStrictMode:!1}),{DISMISS:N,UNFOLLOW_DONE:k}=d.NETWORK_SURVEY_ACTIONS
let w=e.default=(g=(0,s.inject)("jet"),f=(0,s.inject)("global-services@store-shim"),b=(0,s.inject)("global-services@window"),v=(0,_.localCopy)("args.isOpen",!0),y=class extends l.default{constructor(){super(...arguments);(0,t.default)(this,"jet",T,this);(0,t.default)(this,"storeShim",I,this);(0,t.default)(this,"windowService",E,this);(0,t.default)(this,"isOpen",O,this);(0,t.default)(this,"isShowUnfollowView",S,this);(0,t.default)(this,"isDoneView",A,this);(0,t.default)(this,"unknownConnections",C,this);(0,n.default)(this,"externalUnfollowInfoLink",`${(0,p.getDomainUrl)()}/help/linkedin/answer/72150`);(0,n.default)(this,"DISMISS",N);(0,n.default)(this,"UNFOLLOW_DONE",k)}get surveyCompleted(){var e
return this.isDoneView||this.randomConnections.isLoaded&&0===(null===(e=this.randomConnections.value)||void 0===e?void 0:e.length)}get isNetworkSurveyError(){return this.randomConnections.isError||this.randomConnections.isLoaded&&!this.randomConnections.value}get randomConnections(){return(0,h.load)(u.default.loadRandomConnections(this.storeShim,this.jet))}toggleSurveyViews(){if(this.isShowUnfollowView){this.unknownConnections=[]
this.isShowUnfollowView=!1
this.isDoneView=!0}else this.unknownConnections.length>0?this.isShowUnfollowView=!0:this.isDoneView=!0}reloadPage(){this.windowService.getLocation().reload()}dismissAction(){var e,t
this.isDestroying||(this.isOpen=!1)
null===(e=(t=this.args).onDismissAction)||void 0===e||e.call(t)}labelRandomConnection(e,t){u.default.labelRandomConnection(this.storeShim,this.jet,{isKnownConnection:e,connectionUrn:(0,c.get)(t,"entityUrn")})
e||(this.unknownConnections=[...this.unknownConnections,t])}updateFollowUnknownConnection(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
u.default.updateFollowUnknownConnection(this.storeShim,this.jet,{connectionUrn:e,isUnfollow:t})}},T=(0,i.default)(y.prototype,"jet",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,i.default)(y.prototype,"storeShim",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,i.default)(y.prototype,"windowService",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,i.default)(y.prototype,"isOpen",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,i.default)(y.prototype,"isShowUnfollowView",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),A=(0,i.default)(y.prototype,"isDoneView",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),C=(0,i.default)(y.prototype,"unknownConnections",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,i.default)(y.prototype,"randomConnections",[_.cached],Object.getOwnPropertyDescriptor(y.prototype,"randomConnections"),y.prototype),(0,i.default)(y.prototype,"toggleSurveyViews",[c.action],Object.getOwnPropertyDescriptor(y.prototype,"toggleSurveyViews"),y.prototype),(0,i.default)(y.prototype,"reloadPage",[c.action],Object.getOwnPropertyDescriptor(y.prototype,"reloadPage"),y.prototype),(0,i.default)(y.prototype,"dismissAction",[c.action],Object.getOwnPropertyDescriptor(y.prototype,"dismissAction"),y.prototype),(0,i.default)(y.prototype,"labelRandomConnection",[c.action],Object.getOwnPropertyDescriptor(y.prototype,"labelRandomConnection"),y.prototype),(0,i.default)(y.prototype,"updateFollowUnknownConnection",[c.action],Object.getOwnPropertyDescriptor(y.prototype,"updateFollowUnknownConnection"),y.prototype),y);(0,o.setComponentTemplate)(R,w)}))
define("network-survey/utils/constants",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.NETWORK_SURVEY_QUERY_VALUES=e.NETWORK_SURVEY_ACTIONS=void 0
e.NETWORK_SURVEY_ACTIONS={DISMISS:"dismiss",DONE:"done",NO:"no",SKIP:"skip",YES:"yes",UNFOLLOW:"unfollow",UNFOLLOW_DONE:"unfollow_done",UNFOLLOW_UNDO:"unfollow_undo"},e.NETWORK_SURVEY_QUERY_VALUES={DEFAULT_COUNT:20,FEED_FOLLOWS:"feed/follows",FEED_FOLLOWS_ACTION_FOLLOW_BY_ENTITY_URN:"followByEntityUrn",FEED_FOLLOWS_ACTION_UNFOLLOW_BY_ENTITY_URN:"unfollowByEntityUrn",RANDOM_CONNECTION_ACTION:"labelConnection",RANDOM_CONNECTION_QUERY:"randomConnections",RANDOM_CONNECTION_URL:"relationships/connections",ROUTE_QUERY_PARAM:"network-survey"}}))
define("network-survey/utils/network-survey-util",["exports","@ember/debug","global-utils/utils/is-network-error","mynetwork-shared/utils/constants","@ember/object","network-survey/utils/constants","voyager-web/config/environment","global-utils/utils/url","urn-utils"],(function(e,t,n,i,r,o,a,s,l){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.labelRandomConnection=function(e,t,n){let{connectionUrn:i,isKnownConnection:r}=n
const o=[(l=_,c=m,(0,s.addQueryParam)(`/${a.default.namespace}/${l}`,"action",c)),"POST",{data:{connectionUrn:i,isKnownConnection:r}}]
var l,c
e.adapterFor("-ember-m3").ajax(...o)}
e.loadRandomConnections=function(e,t){const o=_,a={q:h,count:c},s=`${o}|${a.q}`
return e.queryURL(o,{cacheKey:s,params:a,reload:!0}).then((e=>[...(0,r.get)(e,"elements")])).catch((e=>{if((0,n.default)(e)){t.logError(e,i.MYNETWORK_ERROR_TAGS,!1)
return null}throw e}))}
e.updateFollowUnknownConnection=function(e,t,r){let{connectionUrn:o,isUnfollow:c=!1}=r
const m=(0,s.addQueryParam)(`/${a.default.namespace}/${d}`,"action",c?p:u),h=`urn:li:fs_followingInfo:urn:li:member:${(0,l.extractEntityInfoFromUrn)(o).id}`,_=[m,"POST",{data:{urn:h}}]
return e.adapterFor("-ember-m3").ajax(..._).catch((e=>{if((0,n.default)(e)){t.logError(e,i.MYNETWORK_ERROR_TAGS,!1)
return[]}throw e}))}
const{DEFAULT_COUNT:c,FEED_FOLLOWS:d,FEED_FOLLOWS_ACTION_FOLLOW_BY_ENTITY_URN:u,FEED_FOLLOWS_ACTION_UNFOLLOW_BY_ENTITY_URN:p,RANDOM_CONNECTION_ACTION:m,RANDOM_CONNECTION_QUERY:h,RANDOM_CONNECTION_URL:_}=o.NETWORK_SURVEY_QUERY_VALUES}))
define("nt-heads-up/components/nt-heads-up",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/helper","@ember/component","@ember/debug","@ember/object","@ember/service","@glimmer/component","@ember/destroyable","ember-cli-pemberly-tracking/modifiers/track-render","@ember/render-modifiers/modifiers/did-insert","artdeco-modal/components/artdeco-modal","hue-web-icons/components/icon","artdeco-button/components/artdeco-button","ember-cli-pemberly-tracking/modifiers/track-interaction","@ember/modifier"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_,g,f,b,v){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var y,T,I,E,O,S,A,C,R
e.default=(0,s.setComponentTemplate)((0,o.createTemplateFactory)({id:"HNBa2gqG",block:'[[[1,"\\n"],[1," "],[11,0],[17,1],[4,[32,0],null,[["pageKey","routeName","currentRoute"],["flagship3_notifications_settings_reenablement",[28,[32,1],[[53,"outletState"],"render.name"],null],[28,[32,1],[[53,"outletState"],"render"],null]]]],[4,[32,2],[[30,0,["sendLegoImpression"]]],null],[12],[1,"\\n "],[8,[32,3],null,[["@isOpen","@size","@dismissModal"],[[30,2],"small",[30,3]]],[["default"],[[[[1,"\\n "],[8,[30,4,["artdeco-modal-header"]],null,null,[["default"],[[[[1,"\\n "],[10,"h2"],[14,1,"nt-heads-up__header"],[12],[1,[30,5,["header"]]],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[30,4,["artdeco-modal-content"]],[[24,0,"ph0"]],null,[["default"],[[[[1,"\\n "],[10,0],[14,0,"nt-heads-up__illustration"],[12],[13],[1,"\\n "],[10,"h3"],[14,0,"t-16 t-black text-align-center ph4 pt1"],[12],[1,[30,5,["title"]]],[13],[1,"\\n "],[10,"hr"],[14,0,"artdeco-divider mv4"],[12],[13],[1,"\\n "],[10,0],[14,0,"ph4 pv1 display-flex"],[12],[1,"\\n "],[8,[32,4],[[24,0,"nt-heads-up__bell-icon"],[24,"aria-hidden","true"]],[["@type","@name","@size"],["system","bell-outline","medium"]],null],[1,"\\n "],[10,2],[14,0,"t-12 t-black--light"],[12],[1,[30,5,["description"]]],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[30,4,["artdeco-modal-footer"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,5],[[4,[32,6],["click",[30,0,["enableSetting"]]],null],[4,[32,7],["settings_reenablement_accept"],null]],[["@class","@text"],["fr ml2",[30,5,["acceptButtonText"]]]],null],[1,"\\n "],[8,[32,5],[[4,[32,6],["click",[30,0,["decline"]]],null],[4,[32,7],["settings_reenablement_decline"],null]],[["@type","@class","@text"],["secondary","fr ml2",[30,5,["declineButtonText"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[4]]]]],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@showHeadsUp","@closeHeadsUp","modal","@headsUpPrompt"],false,["-get-dynamic-var"]]',moduleName:"nt-heads-up/components/nt-heads-up.gjs",scope:()=>[m.default,a.get,h.default,_.default,g.default,f.default,v.on,b.default],isStrictMode:!0}),(y=(0,d.inject)("global-services@store-shim"),T=(0,d.inject)("persistent-toast-manager@persistent-toast-manager"),I=(0,d.inject)("i18n"),E=(0,d.inject)("lego@tracking"),O=class e extends u.default{constructor(){super(...arguments);(0,t.default)(this,"storeShim",S,this);(0,t.default)(this,"persistentToastManager",A,this);(0,t.default)(this,"i18n",C,this);(0,t.default)(this,"legoTracking",R,this)
this.args.showHeadsUp}sendLegoImpression(){this.legoTracking.sendLegoImpression((0,c.get)(this.args.headsUpPrompt,"trackingId"),this.legoTracking.LEGO_IMPRESSION_VISIBILITY_SHOW)}enableSetting(){this.storeShim.adapterFor("-ember-m3").ajax("/voyager/api/notifications/dash/headsUpPrompt?action=turnOn","POST",{data:JSON.stringify({scenarioType:(0,c.get)(this.args.headsUpPrompt,"scenarioType")})}).then((()=>{if(!(0,p.isDestroying)(this)){this.persistentToastManager.success({message:(0,c.get)(this.args.headsUpPrompt,"acceptConfirmationText")})
this.legoTracking.sendLegoAction((0,c.get)(this.args.headsUpPrompt,"trackingId"),this.legoTracking.LEGO_ACTION_PRIMARY,1)}})).catch((t=>{if((0,p.isDestroying)(this))throw t
const n=this.i18n.lookupTranslation(e,"i18n_error_toast")()
this.persistentToastManager.error({message:n})
throw t})).finally((()=>{(0,p.isDestroying)(this)||this.args.closeHeadsUp()}))}decline(){this.legoTracking.sendLegoAction((0,c.get)(this.args.headsUpPrompt,"trackingId"),this.legoTracking.LEGO_ACTION_SECONDARY,1)
this.args.closeHeadsUp()}},S=(0,i.default)(O.prototype,"storeShim",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,i.default)(O.prototype,"persistentToastManager",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,i.default)(O.prototype,"i18n",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,i.default)(O.prototype,"legoTracking",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(O.prototype,"sendLegoImpression",[c.action],Object.getOwnPropertyDescriptor(O.prototype,"sendLegoImpression"),O.prototype),(0,i.default)(O.prototype,"enableSetting",[c.action],Object.getOwnPropertyDescriptor(O.prototype,"enableSetting"),O.prototype),(0,i.default)(O.prototype,"decline",[c.action],Object.getOwnPropertyDescriptor(O.prototype,"decline"),O.prototype),O))}))
define("nt-heads-up/template-registry",[],(function(){}))
define("nt-heads-up/utils/heads-up-helpers",["exports","@ember/object"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.headsUpConfigFor=function(e){return["notifications/dash/headsUpPrompt",{params:{q:"scenarioType",scenarioType:e,recipe:"com.linkedin.voyager.dash.deco.notifications.FullHeadsUpPrompt"},reload:!0}]}
e.promptFromCollection=function(e){const n=(0,t.get)(e,"elements.firstObject")
return(0,t.get)(n,"shouldDisplayPrompt")?n:null}}))
define("props-shared/components/aggregated-landing-main",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/helper","@ember/component","@glimmer/component","props-shared/components/aggregated-landing/leaf-card","artdeco-card/components/artdeco-card","ember-cli-pemberly-i18n/helpers/t","artdeco-button/components/artdeco-button","props-shared/components/aggregated-landing/cards-section","@ember/service","@ember/modifier","@ember/object","global-utils/utils/is-browser","props-shared/utils/constants","ember-cli-pemberly-tracking/utils/tracking","props-shared/utils/tracking","artdeco-empty-state/components/artdeco-empty-state","ember-cli-pemberly-tracking/modifiers/track-impression"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_,g,f,b,v,y,T,I){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var E,O,S,A,C,R,N
e.default=(0,s.setComponentTemplate)((0,o.createTemplateFactory)({id:"UwayeSvR",block:'[[[1,"\\n"],[1," "],[8,[32,0],null,null,[["default"],[[[[1,"\\n "],[10,0],[14,0,"props-s-aggregated-landing-main__header p4 display-flex"],[12],[1,"\\n "],[8,[32,1],[[4,[32,2],["click",[30,0,["handleBackClick"]]],null]],[["@circle","@color","@icon","@type","@size"],[true,"muted","arrow-left","tertiary",1]],null],[1,"\\n "],[10,"h2"],[14,0,"ml2 align-self-center text-heading-medium"],[12],[1,[28,[32,3],["i18n_aggregated_landing_main_hiring_header","props-shared/components/aggregated-landing-main"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,"hr"],[14,0,"artdeco-divider mv0"],[12],[13],[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[32,4],null,[["@headerImage","@headline","@subheadline","@tertiaryHeadline","@subheadlineClasses","@actions","@cardAction","@card","@buildPropItemActionEvent","@listPosition"],[[30,1,["headerImage"]],[30,1,["headline"]],[30,1,["subHeadline"]],[30,1,["insight"]],"props-s-leaf-card__container-card-subheadline text-body-small",[30,0,["containerCardActions"]],[30,1,["cardAction"]],[30,1],[30,0,["buildPropItemActionEvent"]],0]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,2],[[[1," "],[8,[32,0],[[24,0,"mt4 display-flex full-height align-items-center"]],null,[["default"],[[[[1,"\\n "],[8,[32,5],[[4,[32,6],null,[["registerOnImpression","routeName","currentRoute"],[[30,0,["onEmptyStateCardImpression"]],[28,[32,7],[[53,"outletState"],"render.name"],null],[28,[32,7],[[53,"outletState"],"render"],null]]]]],[["@actionText","@headline","@illustration","@mercadoSize","@message","@onButtonClick"],[[30,0,["emptyStateCardAction","displayText","text"]],[30,2,["headline","text"]],"empty-waiting",1,[30,2,["subHeadline","text"]],[30,0,["handleEmptyStateCardAction"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,3],[[[41,[30,3,["newJobsCards","length"]],[[[1," "],[8,[32,8],null,[["@header","@cards","@buildPropItemActionEvent"],[[28,[32,3],["i18n_aggregated_landing_main_new_posts_header","props-shared/components/aggregated-landing-main"],null],[30,3,["newJobsCards"]],[30,0,["buildPropItemActionEvent"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,3,["pastJobsCards","length"]],[[[1," "],[8,[32,8],null,[["@header","@cards","@buildPropItemActionEvent"],[[28,[32,3],["i18n_aggregated_landing_main_recent_posts_header","props-shared/components/aggregated-landing-main"],null],[30,3,["pastJobsCards"]],[30,0,["buildPropItemActionEvent"]]]],null],[1,"\\n"]],[]],null],[1," "]],[]],null]],[]]],[1," "]],["@containerCard","@emptyStateCard","@cards"],false,["if","-get-dynamic-var"]]',moduleName:"props-shared/components/aggregated-landing-main.gjs",scope:()=>[d.default,p.default,_.on,u.default,c.default,T.default,I.default,a.get,m.default],isStrictMode:!0}),(E=(0,h.inject)("router"),O=(0,h.inject)("tracking"),S=(0,h.inject)("global-services@window"),A=class extends l.default{constructor(){super(...arguments);(0,t.default)(this,"router",C,this);(0,t.default)(this,"tracking",R,this);(0,t.default)(this,"windowService",N,this);(0,n.default)(this,"AGGREGATED_LANDING_PAGE_KEY","flagship3_grouped_hiring_cards")}get containerCardActions(){return this.args.containerCard.actions}get emptyStateCardAction(){var e,t
return null===(e=this.args.emptyStateCard)||void 0===e||null===(t=e.actions)||void 0===t?void 0:t[0]}handleBackClick(){const e=this.windowService.getHistory()
f.default&&e.length?e.back():this.router.transitionTo(b.NURTURE_TAB_ROUTES["catch-up"],"catch-up","all")}buildPropItemActionEvent(e,t,n){const i=(0,v.createControlUrn)(this.AGGREGATED_LANDING_PAGE_KEY,t)
return(0,y.buildPropItemActionEvent)(e,i,n)}onEmptyStateCardImpression(){return e=>(0,y.buildPropItemImpressionCustomTrackingInfo)(this.args.emptyStateCard,0,e)}handleEmptyStateCardAction(){this.tracking.fireInteractionEvent(b.CONTROL_NAMES.EMPTY_STATE_CTA_CLICK)
const{displayAction:e}=this.emptyStateCardAction.action
e&&this.router.transitionTo(e)}},C=(0,i.default)(A.prototype,"router",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,i.default)(A.prototype,"tracking",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,i.default)(A.prototype,"windowService",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(A.prototype,"handleBackClick",[g.action],Object.getOwnPropertyDescriptor(A.prototype,"handleBackClick"),A.prototype),(0,i.default)(A.prototype,"buildPropItemActionEvent",[g.action],Object.getOwnPropertyDescriptor(A.prototype,"buildPropItemActionEvent"),A.prototype),(0,i.default)(A.prototype,"onEmptyStateCardImpression",[g.action],Object.getOwnPropertyDescriptor(A.prototype,"onEmptyStateCardImpression"),A.prototype),(0,i.default)(A.prototype,"handleEmptyStateCardAction",[g.action],Object.getOwnPropertyDescriptor(A.prototype,"handleEmptyStateCardAction"),A.prototype),A))}))
define("props-shared/components/aggregated-landing/cards-section",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","artdeco-card/components/artdeco-card","props-shared/components/aggregated-landing/leaf-card","global-helpers/helpers/lt","global-helpers/helpers/sub"],(function(e,t,n,i,r,o,a,s){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const l=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"/xCPuLK6",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"mt4"]],null,[["default"],[[[[1,"\\n "],[10,0],[14,0,"props-s-aggregated-landing-main__header pb2 pt5 pl5 display-flex"],[12],[1,"\\n "],[10,"h2"],[14,0,"align-self-center text-heading-medium"],[12],[1,[30,1]],[13],[1,"\\n "],[13],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,2]],null]],null],null,[[[44,[[30,3,["propsHomeCard","propCard"]]],[[[41,[30,5],[[[1," "],[10,0],[12],[1,"\\n "],[8,[32,1],null,[["@headerImage","@headline","@subheadline","@tertiaryHeadline","@subheadlineClasses","@tertiaryHeadlineClasses","@actions","@cardAction","@card","@buildPropItemActionEvent","@listPosition"],[[30,5,["headerImage"]],[30,5,["headline"]],[30,5,["subHeadline"]],[30,5,["insight","text"]],"t-black text-body-small","props-s-leaf-card__text--tertiary text-body-xsmall",[30,5,["actions"]],[30,5,["cardAction"]],[30,5],[30,6],[30,4]]],null],[1,"\\n"],[41,[28,[32,2],[[30,4],[28,[32,3],[[30,2,["length"]],1],null]],null],[[[1," "],[10,"hr"],[14,0,"props-s-card-section__divider artdeco-divider mv0"],[12],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null]],[5]]]],[3,4]],null],[1," "]],[]]]]],[1,"\\n"]],["@header","@cards","cardObject","index","card","@buildPropItemActionEvent"],false,["each","-track-array","let","if"]]',moduleName:"props-shared/components/aggregated-landing/cards-section.gts",scope:()=>[r.default,o.default,a.default,s.default],isStrictMode:!0}),(0,n.default)("cards-section","CardsSection"))
e.default=l}))
define("props-shared/components/aggregated-landing/leaf-card",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","@glimmer/component","app-aware-link/components/app-aware-link","image-view-model/components/image-view-model","props-shared/components/ctas/props-message-button","@ember/object","@ember/service","props-shared/utils/constants","@ember/helper","global-helpers/helpers/get-domain","props-shared/components/props-card-content","text-view-model/components/text-view-model-v2","props-shared/components/ctas/props-share-button","ember-cli-pemberly-tracking/modifiers/track-interaction","props-shared/utils/tracking","ember-cli-pemberly-tracking/modifiers/track-impression"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_,g,f,b,v,y,T){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var I,E,O,S,A
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"fhaRtee0",block:'[[[1,"\\n "],[11,0],[24,0,"props-s-leaf-card display-flex justify-space-between pv4 ph5"],[4,[32,0],null,[["registerOnImpression","routeName","currentRoute"],[[30,0,["handleCardImpressionTracking"]],[28,[32,1],[[53,"outletState"],"render.name"],null],[28,[32,1],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n "],[10,0],[14,0,"display-flex"],[12],[1,"\\n"],[41,[30,1,["actionTarget"]],[[[1," "],[8,[32,2],[[24,0,"props-s-leaf-card__header-image"],[16,"aria-label",[30,1,["accessibilityText"]]],[4,[32,3],[[30,0,["headerImageControlName"]]],[["onInteract"],[[28,[32,4],[[30,2],[30,3],[30,0,["headerImageControlName"]],[32,5,["VIEW"]]],null]]]]],[["@href"],[[30,1,["actionTarget"]]]],[["default"],[[[[1,"\\n "],[8,[32,6],null,[["@entitySize","@images","@isPresenceEnabled"],[5,[30,1],true]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,1],[[[1," "],[8,[32,6],null,[["@entitySize","@images","@isPresenceEnabled"],[4,[30,1],true]],null],[1,"\\n "]],[]],null]],[]]],[41,[30,4,["displayAction"]],[[[1," "],[8,[32,2],[[24,0,"props-s-leaf-card__link link-without-hover-visited t-normal"],[4,[32,3],[[30,0,["cardActionControlName"]]],[["onInteract"],[[28,[32,4],[[30,2],[30,3],[30,0,["cardActionControlName"]],[32,5,["VIEW"]]],null]]]]],[["@href"],[[28,[32,7],[[28,[32,8],[true],null],[30,4,["displayAction"]]],null]]],[["default"],[[[[1,"\\n "],[8,[32,9],null,[["@headline","@subheadline","@headlineClasses","@subheadlineClasses"],[[30,5],[30,6],"t-black",[30,7]]],null],[1,"\\n"],[41,[30,8],[[[1," "],[10,1],[15,0,[30,9]],[12],[1,"\\n "],[8,[32,10],null,[["@tvm"],[[30,8]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"display-flex align-self-center flex-column ml2"],[12],[1,"\\n "],[8,[32,9],null,[["@headline","@subheadline","@subheadlineClasses"],[[30,5],[30,6],[30,7]]],null],[1,"\\n"],[41,[30,8],[[[1," "],[10,1],[15,0,[30,9]],[12],[1,"\\n "],[8,[32,10],null,[["@tvm"],[[30,8]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"],[41,[30,0,["cta","action","messageAction"]],[[[1," "],[10,0],[14,0,"props-s-leaf-card__cta--primary display-flex justify-flex-end align-self-center"],[12],[1,"\\n "],[8,[32,11],null,[["@color","@icon","@text","@action","@handleAfterMessageSend","@numWordsToPreview","@type","@firePropItemActionEvent"],["default",[30,0,["cta","icon"]],[30,0,["cta","displayText","text"]],[30,0,["cta","action","messageAction"]],[30,0,["handleAfterMessageSend"]],6,"primary",[28,[32,4],[[30,0,["firePropItemActionEvent"]],[32,12,["MESSAGE"]],[32,5,["MESSAGE"]]],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["showShareAction"]],[[[1," "],[8,[32,13],null,[["@icon","@text","@type","@color","@shareUrl","@firePropItemActionEvent"],[[30,0,["cta","icon"]],[30,0,["cta","displayText","text"]],"secondary","muted",[30,0,["cta","action","displayAction"]],[30,0,["firePropItemActionEvent"]]]],null],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n "]],["@headerImage","@buildPropItemActionEvent","@card","@cardAction","@headline","@subheadline","@subheadlineClasses","@tertiaryHeadline","@tertiaryHeadlineClasses"],false,["-get-dynamic-var","if"]]',moduleName:"props-shared/components/aggregated-landing/leaf-card.gts",scope:()=>[T.default,h.get,l.default,v.default,h.fn,m.ACTION_CATEGORIES,c.default,h.concat,_.default,g.default,f.default,d.default,m.CONTROL_NAMES,b.default],isStrictMode:!0}),(I=(0,p.inject)("global-services@store-shim"),E=(0,p.inject)("tracking"),O=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"storeShim",S,this);(0,t.default)(this,"tracking",A,this)}get cta(){var e
return(null===(e=this.args.actions)||void 0===e?void 0:e[0])??null}get showShareAction(){var e,t
const n=null===(e=this.cta)||void 0===e||null===(t=e.action)||void 0===t?void 0:t.displayAction
return(null==n?void 0:n.startsWith("/share"))??!1}get headerImageControlName(){var e
return null!==(e=this.args.headerImage)&&void 0!==e&&e.actionTarget?(0,y.getControlNameFromActionTarget)(this.args.headerImage.actionTarget):m.CONTROL_NAMES.PROFILE_VIEW}get cardActionControlName(){var e
return null!==(e=this.args.cardAction)&&void 0!==e&&e.displayAction?(0,y.getControlNameFromActionTarget)(this.args.cardAction.displayAction):m.CONTROL_NAMES.VIEW_JOB}handleAfterMessageSend(e){return this.storeShim.adapterFor("-ember-m3").ajax(m.NOTIFY_MESSAGE_SENT_ACTION,"POST",{data:JSON.stringify({contextUrn:e})})}firePropItemActionEvent(e,t){const n=this.args.buildPropItemActionEvent(this.args.card,e,t)
this.tracking.fireTrackingPayload("PropItemActionEvent",n.body)}handleCardImpressionTracking(){return e=>(0,y.buildPropItemImpressionCustomTrackingInfo)(this.args.card,this.args.listPosition??0,e)}},S=(0,i.default)(O.prototype,"storeShim",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,i.default)(O.prototype,"tracking",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(O.prototype,"handleAfterMessageSend",[u.action],Object.getOwnPropertyDescriptor(O.prototype,"handleAfterMessageSend"),O.prototype),(0,i.default)(O.prototype,"firePropItemActionEvent",[u.action],Object.getOwnPropertyDescriptor(O.prototype,"firePropItemActionEvent"),O.prototype),(0,i.default)(O.prototype,"handleCardImpressionTracking",[u.action],Object.getOwnPropertyDescriptor(O.prototype,"handleCardImpressionTracking"),O.prototype),O))}))
define("props-shared/components/ctas/props-display-button",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","app-aware-link/components/app-aware-link","image-view-model/components/image-view-model"],(function(e,t,n,i,r,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const a=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"bT5DxVzR",block:'[[[1,"\\n "],[10,0],[14,0,"props-s-cta__social display-flex align-items-center"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[10,1],[14,0,"props-s-cta props-s-display-button props-s-display-button--disabled artdeco-button artdeco-button--1 artdeco-button--tertiary artdeco-button--muted artdeco-button--disabled pb1"],[12],[1,"\\n"],[41,[30,2],[[[1," "],[8,[32,0],null,[["@images","@useHueWebIconsSystemImage"],[[30,2],true]],null],[1,"\\n"]],[]],null],[41,[30,3],[[[1," "],[10,1],[14,0,"pl1"],[12],[1,[30,3]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[8,[32,1],[[24,0,"props-s-cta props-s-display-button artdeco-button artdeco-button--1 artdeco-button--tertiary artdeco-button--muted pb1 link-without-visited-state"]],[["@href","@invokeAction"],[[30,4],[30,5]]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"props-s-cta__text display-flex align-items-center justify-center"],[12],[1,"\\n"],[41,[30,2],[[[1," "],[8,[32,0],null,[["@images","@useHueWebIconsSystemImage"],[[30,2],true]],null],[1,"\\n"]],[]],null],[41,[30,3],[[[1," "],[10,1],[14,0,"pl1"],[12],[1,[30,3]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],["@disabled","@icon","@text","@actionTarget","@onClick"],false,["if"]]',moduleName:"props-shared/components/ctas/props-display-button.gts",scope:()=>[o.default,r.default],isStrictMode:!0}),(0,n.default)("props-display-button","PropsDisplayButton"))
e.default=a}))
define("props-shared/components/ctas/props-message-button",["exports","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@ember/template-factory","@ember/component","@glimmer/component","artdeco-button/components/artdeco-button","image-view-model/components/image-view-model","global-helpers/helpers/truncate-text","message-button/components/entry-point","props-shared/utils/constants","@ember/helper","@ember/modifier","@ember/object"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var h
e.default=(0,r.setComponentTemplate)((0,i.createTemplateFactory)({id:"PpgzLBfd",block:'[[[1,"\\n"],[41,[30,1,["composeOption"]],[[[1," "],[8,[32,0],null,[["@afterSend","@body","@contextEntityUrn","@composeOption","@controlUrn","@msgAdapterOptions","@referringModuleKey"],[[28,[32,1],[[30,2],[30,1,["contextUrn"]],[30,1,["confirmationAnnotation"]]],null],[30,1,["prefilledMessage"]],[30,1,["contextUrn"]],[30,1,["composeOption"]],[30,0,["messageActionControlName"]],[30,0,["msgAdapterOptions"]],"props:props_home"]],[["default"],[[[[1,"\\n "],[8,[32,2],[[24,0,"props-s-cta"],[4,[32,3],["click",[28,[32,1],[[30,0,["handleOpenMessageOverlay"]],[30,3]],null]],null]],[["@color","@size","@type"],[[30,4],2,[30,5]]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"props-s-message-button text-body-small"],[12],[1,"\\n"],[41,[30,0,["icon"]],[[[1," "],[8,[32,4],[[24,0,"pr1"]],[["@images","@useHueWebIconsSystemImage"],[[30,0,["icon"]],true]],null],[1,"\\n"]],[]],null],[1," "],[1,[28,[32,5],[[30,0,["previewText"]]],[["length"],[[30,0,["previewTextCharLength"]]]]]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[3]]]]],[1,"\\n"]],[]],null],[1," "]],["@action","@handleAfterMessageSend","openMessaging","@color","@type"],false,["if"]]',moduleName:"props-shared/components/ctas/props-message-button.gjs",scope:()=>[c.default,u.fn,a.default,p.on,s.default,l.default],isStrictMode:!0}),(h=class extends o.default{constructor(){super(...arguments);(0,t.default)(this,"messageActionControlName",d.CONTROL_NAMES.MESSAGE)}get icon(){var e,t
return this.args.icon||((null===(e=this.args.action)||void 0===e||null===(t=e.composeOption)||void 0===t?void 0:t.icon)??null)}get previewTextCharLength(){const e=this.previewText.split(" ")
return e?e.slice(0,this.args.numWordsToPreview??6).join(" ").length:0}get previewText(){return this.args.text??""}get msgAdapterOptions(){var e
return{prop:(null===(e=this.args.action)||void 0===e?void 0:e.contextUrn)??"",extensionContentType:"PROP"}}handleOpenMessageOverlay(e){var t,n,i,r
null===(t=(n=this.args).markCardAsSeen)||void 0===t||t.call(n)
null===(i=(r=this.args).firePropItemActionEvent)||void 0===i||i.call(r)
e()}},(0,n.default)(h.prototype,"handleOpenMessageOverlay",[m.action],Object.getOwnPropertyDescriptor(h.prototype,"handleOpenMessageOverlay"),h.prototype),h))}))
define("props-shared/components/ctas/props-react-button",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","@glimmer/component","reactions/components/react-button","@ember/service","@ember/object"],(function(e,t,n,i,r,o,a,s,l,c,d){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var u,p,m,h,_,g,f,b,v,y,T,I,E,O,S,A,C
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"Axo2WLcq",block:'[[[1,"\\n "],[10,0],[14,0,"props-s-cta props-s-cta__social display-flex align-items-center pr1"],[12],[1,"\\n "],[8,[32,0],null,[["@buttonSize","@disabled","@showText","@reactionArguments","@reactionTypeSelected","@handleReactButtonTracking","@handleReactionsMenuTracking","@onReactionClick"],[1,[30,1],false,[30,0,["reactionArguments"]],[30,0,["currentReactionType"]],[30,0,["handleReactButtonTracking"]],[30,0,["handleReactionsMenuTracking"]],[30,2]]],null],[1,"\\n"],[41,[30,3],[[[1," "],[10,1],[14,0,"props-s-cta__text text-body-small"],[12],[1,[30,3]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@disabled","@markCardAsSeen","@numReactionsToDisplay"],false,["if"]]',moduleName:"props-shared/components/ctas/props-react-button.gjs",scope:()=>[l.default],isStrictMode:!0}),(u=(0,c.inject)("global-services@a11y-notification"),p=(0,c.inject)("client-sensor-web@client-sensor"),m=(0,c.inject)("gdpr-notice@gdpr-notice"),h=(0,c.inject)("i18n"),_=(0,c.inject)("pem-tracking"),g=(0,c.inject)("persistent-toast-manager@persistent-toast-manager"),f=(0,c.inject)("social-counts-service@social-counts"),b=(0,c.inject)("global-services@store-shim"),v=class extends s.default{get socialActivityCounts(){var e
return null===(e=this.args.action)||void 0===e?void 0:e.totalSocialActivityCounts}get currentReactionType(){var e
return null===(e=this.args.socialCountsManager)||void 0===e?void 0:e.currentReaction}get reactionArguments(){const{threadUrn:e}=this.args.action,{a11yNotification:t,clientSensor:n,gdprNotice:i,i18n:r,pemTracking:o,persistentToastManager:a,storeShim:s}=this,{socialCountsManager:l}=this.args
return{services:{a11yNotification:t,clientSensor:n,gdprNotice:i,i18n:r,pemTracking:o,persistentToastManager:a,store:s},socialCountsManager:l,threadUrn:e}}constructor(){super(...arguments);(0,t.default)(this,"a11yNotification",y,this);(0,t.default)(this,"clientSensor",T,this);(0,t.default)(this,"gdprNotice",I,this);(0,t.default)(this,"i18n",E,this);(0,t.default)(this,"pemTracking",O,this);(0,t.default)(this,"persistentToastManager",S,this);(0,t.default)(this,"socialCountsService",A,this);(0,t.default)(this,"storeShim",C,this)
this.socialCountsService.registerSocialCounts(this.args.action)}handleReactButtonTracking(e){var t
const n=null===(t=this.args.action)||void 0===t?void 0:t.threadUrn
if(n){var i,r
null===(i=(r=this.args).handleReactButtonTracking)||void 0===i||i.call(r,e,n)}}handleReactionsMenuTracking(e,t){var n
const i=null===(n=this.args.action)||void 0===n?void 0:n.threadUrn
if(i){var r,o
null===(r=(o=this.args).handleReactionsMenuTracking)||void 0===r||r.call(o,e,t,i)}}},y=(0,i.default)(v.prototype,"a11yNotification",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,i.default)(v.prototype,"clientSensor",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,i.default)(v.prototype,"gdprNotice",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,i.default)(v.prototype,"i18n",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,i.default)(v.prototype,"pemTracking",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,i.default)(v.prototype,"persistentToastManager",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,i.default)(v.prototype,"socialCountsService",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,i.default)(v.prototype,"storeShim",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(v.prototype,"handleReactButtonTracking",[d.action],Object.getOwnPropertyDescriptor(v.prototype,"handleReactButtonTracking"),v.prototype),(0,i.default)(v.prototype,"handleReactionsMenuTracking",[d.action],Object.getOwnPropertyDescriptor(v.prototype,"handleReactionsMenuTracking"),v.prototype),v))}))
define("props-shared/components/ctas/props-share-button",["exports","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@ember/template-factory","@ember/component","@glimmer/component","artdeco-button/components/artdeco-button","image-view-model/components/image-view-model","@ember/modifier","sharing-entry/components/share-button","global-utils/utils/url","text-view-model/utils/generator","@ember/helper","props-shared/utils/constants","@ember/object","ember-cli-pemberly-tracking/modifiers/track-interaction"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var _
e.default=(0,i.setComponentTemplate)((0,n.createTemplateFactory)({id:"JSQNMKbz",block:'[[[1,"\\n "],[11,0],[24,0,"display-flex align-items-center"],[17,1],[12],[1,"\\n"],[1," "],[8,[32,0],null,[["@prefilledTextTVMV2","@shareOrigin","@urlToShare"],[[30,0,["shareCtaInfo","prefilledText"]],"DEEPLINK",[30,0,["shareCtaInfo","url"]]]],[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"props-s-cta pb1"],[4,[32,2],["click",[52,[30,5],[30,0,["handleAggregatedCardClick"]],[28,[32,3],[[30,0,["openShareboxModal"]],[30,2]],null]]],null],[4,[32,4],[[30,0,["controlName"]]],null]],[["@color","@size","@type"],[[30,3],2,[30,4]]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"display-flex align-items-center flex-wrap justify-center"],[12],[1,"\\n"],[41,[30,6],[[[1," "],[8,[32,5],null,[["@images","@useHueWebIconsSystemImage"],[[30,6],true]],null],[1,"\\n"]],[]],null],[41,[30,7],[[[1," "],[10,1],[14,0,"pl1 text-body-small"],[12],[1,[30,7]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[2]]]]],[1,"\\n\\n "],[13],[1,"\\n "]],["&attrs","openShareboxModal","@color","@type","@isAggregatedCard","@icon","@text"],false,["if"]]',moduleName:"props-shared/components/ctas/props-share-button.gts",scope:()=>[l.default,o.default,s.on,u.fn,h.default,a.default],isStrictMode:!0}),(_=class extends r.default{get controlName(){return this.args.isAggregatedCard?p.CONTROL_NAMES.VIEW_GROUPED_CARDS:p.CONTROL_NAMES.SHARE_JOB}get shareCtaInfo(){const e=(0,c.parseQueryString)(this.args.shareUrl??"")
return{prefilledText:e?(0,d.createTextViewModelV2)(e.text??""):void 0,url:e?e.url:this.args.shareUrl}}openShareboxModal(e){var t,n
null===(t=(n=this.args).firePropItemActionEvent)||void 0===t||t.call(n,this.controlName,p.ACTION_CATEGORIES.SHARE)
e()}handleAggregatedCardClick(){var e,t
null===(e=(t=this.args).goToAggregatedLanding)||void 0===e||e.call(t,this.controlName)}},(0,t.default)(_.prototype,"openShareboxModal",[m.action],Object.getOwnPropertyDescriptor(_.prototype,"openShareboxModal"),_.prototype),(0,t.default)(_.prototype,"handleAggregatedCardClick",[m.action],Object.getOwnPropertyDescriptor(_.prototype,"handleAggregatedCardClick"),_.prototype),_))}))
define("props-shared/components/props-card-content",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","text-view-model/components/text-view-model-v2"],(function(e,t,n,i,r){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const o=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"0gpJ+hd+",block:'[[[1,"\\n "],[11,1],[16,0,[30,1]],[17,2],[12],[1,"\\n "],[8,[32,0],null,[["@tvm"],[[30,3]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,4],[[[1," "],[10,1],[15,0,[30,5]],[12],[1,"\\n "],[8,[32,0],null,[["@tvm"],[[30,4]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["@headlineClasses","&attrs","@headline","@subheadline","@subheadlineClasses"],false,["if"]]',moduleName:"props-shared/components/props-card-content.gts",scope:()=>[r.default],isStrictMode:!0}),(0,n.default)("props-card-content","PropsCardContent"))
e.default=o}))
define("props-shared/components/props-card",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/classPrivateMethodGet","@babel/runtime/helpers/esm/classPrivateFieldSet","@babel/runtime/helpers/esm/classPrivateFieldGet","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","@glimmer/component","@glimmer/tracking","@ember/destroyable","@ember/object","app-aware-link/components/app-aware-link","props-shared/components/props-card-content","props-shared/components/props-cta-bar","props-shared/components/props-settings-dropdown","ember-cli-pemberly-tracking/modifiers/track-interaction","image-view-model/components/image-view-model","props-shared/utils/constants","ember-cli-pemberly-tracking/modifiers/track-impression","ember-cli-pemberly-i18n/helpers/t","props-shared/utils/props-settings-handler","@ember/service","@ember/helper","global-helpers/helpers/get-domain","tracked-toolbox","ember-set-helper/helpers/set","props-shared/utils/tracking"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_,g,f,b,v,y,T,I,E,O,S,A,C,R,N){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var k,w,P,M,D,U,L,x,j,F,G,V,z,H,B,W,q
e.default=(0,c.setComponentTemplate)((0,l.createTemplateFactory)({id:"7yWvlw8f",block:'[[[1,"\\n"],[1," "],[11,"article"],[16,0,[29,["props-s-card ",[52,[30,0,["isCardSeen"]],"props-s-card--badged","pl5"]]]],[4,[32,0],null,[["registerOnImpression","routeName","currentRoute"],[[30,0,["handleCardImpressionTracking"]],[28,[32,1],[[53,"outletState"],"render.name"],null],[28,[32,1],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n "],[10,0],[14,0,"pv5 display-flex"],[12],[1,"\\n"],[41,[30,0,["isCardSeen"]],[[[1," "],[10,"figure"],[14,0,"display-flex align-items-center ph2 pb2"],[12],[1,"\\n "],[10,"svg"],[14,"viewBox","0 0 100 100"],[14,0,"props-s-card__blue-dot"],[14,"role","img"],[15,"aria-label",[28,[32,2],["i18n_props_card_new","props-shared/components/props-card"],null]],[12],[1,"\\n "],[10,"circle"],[14,"cx","50"],[14,"cy","50"],[14,"r","50"],[14,"fill","currentColor"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["headerImage","actionTarget"]],[[[1," "],[8,[32,3],[[24,0,"props-s-card__header-image"],[16,"aria-label",[30,1,["headerImage","accessibilityText"]]],[4,[32,4],[[32,5,["PROFILE_VIEW"]]],[["onInteract"],[[28,[32,6],[[30,2],[30,1],[32,5,["PROFILE_VIEW"]],[32,7,["VIEW"]]],null]]]]],[["@href"],[[30,1,["headerImage","actionTarget"]]]],[["default"],[[[[1,"\\n "],[8,[32,8],null,[["@entitySize","@images","@isPresenceEnabled"],[5,[30,1,["headerImage"]],true]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,1,["headerImage"]],[[[1," "],[8,[32,8],null,[["@entitySize","@images","@isPresenceEnabled"],[5,[30,1,["headerImage"]],true]],null],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"props-s-card__content display-flex flex-grow-1 pb5 ml4"],[12],[1,"\\n "],[10,0],[14,0,"full-width display-flex align-items-baseline pt5"],[12],[1,"\\n "],[10,0],[14,0,"flex-column flex-grow-1"],[12],[1,"\\n "],[10,0],[14,0,"display-flex justify-space-between"],[12],[1,"\\n"],[41,[30,1,["cardAction","displayAction"]],[[[1," "],[8,[32,3],[[24,0,"props-s-card__link link-without-hover-visited t-normal"],[4,[32,4],[[30,0,["cardActionControlName"]]],[["onInteract"],[[28,[32,6],[[30,2],[30,1],[30,0,["cardActionControlName"]],[32,7,["VIEW"]]],null]]]]],[["@href"],[[28,[32,9],[[28,[32,10],[true],null],[30,1,["cardAction","displayAction"]]],null]]],[["default"],[[[[1,"\\n "],[8,[32,11],null,[["@headline","@subheadline","@headlineClasses","@subheadlineClasses"],[[30,1,["headline"]],[30,1,["subHeadline"]],"props-s-card-content__headline","props-s-card-content__subheadline"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[10,0],[12],[1,"\\n "],[8,[32,11],null,[["@headline","@subheadline","@headlineClasses","@subheadlineClasses"],[[30,1,["headline"]],[30,1,["subHeadline"]],"props-s-card-content__headline","props-s-card-content__subheadline"]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"],[41,[30,1,["actions","length"]],[[[1," "],[8,[32,12],null,[["@isSeen","@ctas","@markCardAsSeen","@handleAfterMessageSend","@showAfterMessageConfirmationText","@handleCtaActionTracking","@handleReactButtonTracking","@handleReactionsMenuTracking"],[[30,1,["isSeen"]],[30,1,["actions"]],[28,[32,13],[[30,0],"isCardSeen",false],null],[30,0,["handleAfterMessageSend"]],[30,0,["showAfterMessageConfirmationText"]],[30,0,["handleCtaActionTracking"]],[30,0,["handleReactButtonTracking"]],[30,0,["handleReactionsMenuTracking"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,1,["settings"]],[[[1," "],[10,0],[14,0,"display-flex flex-column align-self-flex-start pt3 pr5"],[12],[1,"\\n "],[8,[32,14],null,[["@settingOptions","@handleSettingClick","@handleOpenSettingsDropdownTracking"],[[30,1,["settings"]],[30,0,["handleSettingClick"]],[28,[32,6],[[30,3],[30,1],[32,5,["OPEN_SETTINGS"]],[32,7,["OPEN_SETTING"]]],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["@card","@buildPropItemActionEvent","@firePropItemActionEvent"],false,["if","-get-dynamic-var"]]',moduleName:"props-shared/components/props-card.gts",scope:()=>[T.default,S.get,I.default,h.default,b.default,y.CONTROL_NAMES,S.fn,y.ACTION_CATEGORIES,v.default,S.concat,A.default,_.default,g.default,R.default,f.default],isStrictMode:!0}),(k=(0,O.inject)("feed-tracking@feed-action-event"),w=(0,O.inject)("global-services@store-shim"),P=(0,O.inject)("persistent-toast-manager@persistent-toast-manager"),M=(0,O.inject)("i18n"),D=(0,O.inject)("pem-tracking"),U=(0,C.trackedReset)("args.card.isBadged"),L=(B=new WeakMap,W=new WeakMap,q=new WeakSet,class extends d.default{constructor(){super(...arguments)
q.add(this);(0,t.default)(this,"feedActionEvent",x,this);(0,t.default)(this,"storeShim",j,this);(0,t.default)(this,"persistentToastManager",F,this);(0,t.default)(this,"i18n",G,this);(0,t.default)(this,"pemTracking",V,this);(0,t.default)(this,"showAfterMessageConfirmationText",z,this);(0,t.default)(this,"isCardSeen",H,this)
B.set(this,{writable:!0,value:!1})
W.set(this,{writable:!0,value:null})}get propsSettingsHandler(){(0,o.default)(this,W)||(0,r.default)(this,W,new E.default(this.i18n,this.pemTracking,this.persistentToastManager,this.storeShim))
return(0,o.default)(this,W)}get cardActionControlName(){var e,t
return null!==(e=this.args.card.cardAction)&&void 0!==e&&e.displayAction?(0,N.getControlNameFromActionTarget)(null===(t=this.args.card.cardAction)||void 0===t?void 0:t.displayAction):y.CONTROL_NAMES.NURTURE_CLICK_ON_CARD}handleAfterMessageSend(e){this.showAfterMessageConfirmationText=!0
this.args.resolveMessageAction(e).then((()=>{this.isDestroying||(0,r.default)(this,B,!1)})).catch((t=>{if((0,p.isDestroying)(this))throw t
if(!(0,o.default)(this,B)){(0,r.default)(this,B,!0)
this.args.resolveMessageAction(e)}}))}handleSettingClick(e){return this.propsSettingsHandler.handleMuteNotification(e).then((()=>{var e,t,n,i
if(!(0,p.isDestroying)(this)){this.isCardSeen=!1
null===(e=(t=this.args).afterSettingClick)||void 0===e||e.call(t,this.args.card)
null===(n=(i=this.args).firePropItemActionEvent)||void 0===n||n.call(i,this.args.card,y.CONTROL_NAMES.MUTE_SETTING,y.ACTION_CATEGORIES.MUTE)}}))}handleCtaActionTracking(e,t){return this.args.firePropItemActionEvent(this.args.card,e,t)}handleCardImpressionTracking(){return e=>this.args.firePropItemImpressionEvent(this.args.card,this.args.listPosition,e)}handleReactButtonTracking(e,t){const n=e?`un${e.toLowerCase()}Update`:"likeUpdate",r=e?"UNREACT":"REACT"
this.feedActionEvent.fireFAE({},{controlName:"like_toggle",actionType:n,actionCategory:r},(0,i.default)(this,q,K).call(this,t))}handleReactionsMenuTracking(e,t,n){const r="select_reaction"
this.feedActionEvent.fireFAE({},{controlName:r,actionType:`${e.toLowerCase()}Update`,actionCategory:"REACT"},(0,i.default)(this,q,K).call(this,n))
t&&this.feedActionEvent.fireFAE({},{controlName:r,actionType:`un${t.toLowerCase()}Update`,actionCategory:"UNREACT"},(0,i.default)(this,q,K).call(this,n))}}),x=(0,a.default)(L.prototype,"feedActionEvent",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,a.default)(L.prototype,"storeShim",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,a.default)(L.prototype,"persistentToastManager",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=(0,a.default)(L.prototype,"i18n",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,a.default)(L.prototype,"pemTracking",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,a.default)(L.prototype,"showAfterMessageConfirmationText",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=(0,a.default)(L.prototype,"isCardSeen",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.card.isBadged}}),(0,a.default)(L.prototype,"handleAfterMessageSend",[m.action],Object.getOwnPropertyDescriptor(L.prototype,"handleAfterMessageSend"),L.prototype),(0,a.default)(L.prototype,"handleSettingClick",[m.action],Object.getOwnPropertyDescriptor(L.prototype,"handleSettingClick"),L.prototype),(0,a.default)(L.prototype,"handleCtaActionTracking",[m.action],Object.getOwnPropertyDescriptor(L.prototype,"handleCtaActionTracking"),L.prototype),(0,a.default)(L.prototype,"handleCardImpressionTracking",[m.action],Object.getOwnPropertyDescriptor(L.prototype,"handleCardImpressionTracking"),L.prototype),(0,a.default)(L.prototype,"handleReactButtonTracking",[m.action],Object.getOwnPropertyDescriptor(L.prototype,"handleReactButtonTracking"),L.prototype),(0,a.default)(L.prototype,"handleReactionsMenuTracking",[m.action],Object.getOwnPropertyDescriptor(L.prototype,"handleReactionsMenuTracking"),L.prototype),L))
function K(e){return{moduleKey:y.NURTURE_FEED_MODULE_KEY,trackingId:this.args.card.trackingId,updateUrn:e}}}))
define("props-shared/components/props-cta-bar",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","@glimmer/component","@glimmer/tracking","@ember/object","props-shared/components/ctas/props-message-button","props-shared/components/ctas/props-react-button","props-shared/components/ctas/props-display-button","artdeco-button/components/artdeco-button","artdeco-inline-feedback/components/artdeco-inline-feedback","@ember/service","props-shared/utils/constants","global-utils/utils/is-browser","global-helpers/helpers/or","props-shared/components/ctas/props-share-button","@ember/helper"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_,g,f,b,v,y){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var T,I,E,O,S,A,C,R,N,k
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"aLKzY6D+",block:'[[[1,"\\n "],[10,0],[15,0,[29,["mt2 display-flex full-width\\n ",[52,[51,[28,[32,0],[[30,0,["hasShareCta"]],[30,0,["isAggregatedCard"]]],null]],"justify-space-between"]]]],[12],[1,"\\n"],[41,[28,[32,0],[[30,0,["hasShareCta"]],[30,0,["isAggregatedCard"]]],null],[[[1," "],[8,[32,1],[[24,0,"mr2"]],[["@icon","@text","@type","@color","@shareUrl","@goToAggregatedLanding","@isAggregatedCard","@firePropItemActionEvent"],[[30,0,["displayAction","icon"]],[30,0,["displayAction","displayText","text"]],"secondary",[52,[30,1],"muted","default"],[30,0,["displayAction","action","displayAction"]],[30,0,["handleDisplayAction"]],[30,0,["isAggregatedCard"]],[30,2]]],null],[1,"\\n"]],[]],null],[41,[30,0,["confirmationActionToDisplay"]],[[[1," "],[10,0],[14,0,"props-s-cta-bar__confirmation"],[12],[1,"\\n "],[8,[32,2],null,[["@disabled","@color","@size","@type"],[true,"muted",2,"secondary"]],[["default"],[[[[1,"\\n "],[8,[32,3],null,[["@message","@type"],[[30,0,["confirmationActionToDisplay","text"]],"success"]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["messageAction"]],[[[1," "],[10,0],[15,0,[52,[51,[28,[32,0],[[30,0,["hasShareCta"]],[30,0,["isAggregatedCard"]]],null]],"props-s-message-button__container"]],[12],[1,"\\n "],[8,[32,4],null,[["@color","@icon","@text","@action","@handleAfterMessageSend","@markCardAsSeen","@numWordsToPreview","@type","@firePropItemActionEvent"],[[52,[28,[32,0],[[30,0,["hasShareCta"]],[30,0,["isAggregatedCard"]],[30,1]],null],"muted","default"],[30,0,["messageAction","icon"]],[52,[51,[28,[32,0],[[30,0,["hasShareCta"]],[30,0,["isAggregatedCard"]]],null]],[30,0,["messageActionText"]],[30,0,["messageAction","displayText","text"]]],[30,0,["messageAction","action","messageAction"]],[30,0,["handleAfterMessageSend"]],[30,3],[30,0,["numWordsToPreview"]],[52,[28,[32,0],[[30,0,["hasShareCta"]],[30,0,["isAggregatedCard"]]],null],"tertiary","secondary"],[28,[32,5],[[30,2],[32,6,["MESSAGE"]],[32,7,["MESSAGE"]]],null]]],null],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[41,[51,[28,[32,0],[[30,0,["hasShareCta"]],[30,0,["isAggregatedCard"]]],null]],[[[1," "],[10,0],[14,0,"props-s-cta-bar__socials-container"],[12],[1,"\\n"],[41,[30,0,["reactionAction"]],[[[1," "],[8,[32,8],null,[["@action","@socialCountsManager","@numReactionsToDisplay","@handleReactButtonTracking","@handleReactionsMenuTracking","@markCardAsSeen"],[[30,0,["reactionAction","action","reactionAction"]],[30,0,["socialCountsManager"]],[30,0,["numReactionsToDisplay"]],[30,4],[30,5],[30,3]]],null],[1,"\\n"]],[]],null],[41,[30,0,["displayAction"]],[[[1," "],[8,[32,9],null,[["@actionTarget","@onClick","@disabled","@icon","@text"],[[52,[30,0,["displayAction","action","displayAction"]],[30,0,["displayAction","action","displayAction"]],"#"],[28,[32,5],[[30,2],[32,6,["VIEW_POST"]],[32,7,["VIEW"]]],null],[30,0,["displayAction","disabled"]],[30,0,["displayAction","icon"]],[30,0,["numCommentsToDisplay"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@isSeen","@handleCtaActionTracking","@markCardAsSeen","@handleReactButtonTracking","@handleReactionsMenuTracking"],false,["unless","if"]]',moduleName:"props-shared/components/props-cta-bar.gts",scope:()=>[b.default,v.default,m.default,h.default,d.default,y.fn,g.CONTROL_NAMES,g.ACTION_CATEGORIES,u.default,p.default],isStrictMode:!0}),(T=(0,_.inject)("number-formatting@number-formatter"),I=(0,_.inject)("scaffold-layout@reflow"),E=(0,_.inject)("router"),O=(0,_.inject)("social-counts-service@social-counts"),S=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"numberFormatter",A,this);(0,t.default)(this,"reflow",C,this);(0,t.default)(this,"router",R,this);(0,t.default)(this,"socialCountsService",N,this);(0,t.default)(this,"confirmationAnnotation",k,this)}get confirmation(){return this.args.ctas.find((e=>{var t
return null==e||null===(t=e.action)||void 0===t?void 0:t.confirmationAction}))??void 0}get confirmationActionToDisplay(){var e,t
if(this.args.showAfterMessageConfirmationText){var n,i,r
return(null===(n=this.messageAction)||void 0===n||null===(i=n.action)||void 0===i||null===(r=i.messageAction)||void 0===r?void 0:r.confirmationAnnotation)??void 0}return this.confirmationAnnotation||((null===(e=this.confirmation)||void 0===e||null===(t=e.action)||void 0===t?void 0:t.confirmationAction)??void 0)}get numWordsToPreview(){const{currentBreakpoint:e}=this.reflow
return!f.default||"md"!==e&&"none"!==e?6:1}get messageAction(){return this.args.ctas.find((e=>{var t
return null==e||null===(t=e.action)||void 0===t?void 0:t.messageAction}))??void 0}get messageActionText(){var e,t,n
const i=this.args.ctas.findIndex((e=>{var t
return null==e||null===(t=e.action)||void 0===t?void 0:t.messageAction})),r=this.messageAction??null,o=r?null==r||null===(e=r.action)||void 0===e||null===(t=e.messageAction)||void 0===t?void 0:t.prefilledMessage:null,a=-1!==i?null===(n=this.args.ctas[i])||void 0===n?void 0:n.displayText:null
return(o??null)||((null==a?void 0:a.text)??null)}get reactionAction(){return this.args.ctas.find((e=>{var t
return null==e||null===(t=e.action)||void 0===t?void 0:t.reactionAction}))??void 0}get socialActivityCounts(){var e,t,n
return(null===(e=this.reactionAction)||void 0===e||null===(t=e.action)||void 0===t||null===(n=t.reactionAction)||void 0===n?void 0:n.totalSocialActivityCounts)??void 0}get socialCountsManager(){return this.socialActivityCounts&&this.socialCountsService.getSocialCountsManager(this.socialActivityCounts)}get numCommentsToDisplay(){if(this.socialCountsManager)return this.socialCountsManager.numComments>0?this.numberFormatter.abbreviateNumber(this.socialCountsManager.numComments):void 0}get numReactionsToDisplay(){if(this.socialCountsManager)return this.socialCountsManager.reactionsTotalCount>0?this.numberFormatter.abbreviateNumber(this.socialCountsManager.reactionsTotalCount):void 0}get displayAction(){return this.args.ctas.find((e=>{var t
return null==e||null===(t=e.action)||void 0===t?void 0:t.displayAction}))??void 0}get hasShareCta(){var e,t,n
return!(null===(e=this.displayAction)||void 0===e||null===(t=e.action)||void 0===t||null===(n=t.displayAction)||void 0===n||!n.startsWith("/share"))}get isAggregatedCard(){var e,t,n
return!(null===(e=this.displayAction)||void 0===e||null===(t=e.action)||void 0===t||null===(n=t.displayAction)||void 0===n||!n.startsWith(g.AGGREGATED_LANDING_URL))}handleAfterMessageSend(e,t){this.confirmationAnnotation=t
this.args.handleAfterMessageSend(e)}handleDisplayAction(e){var t,n
if(null!==(t=this.displayAction)&&void 0!==t&&null!==(n=t.action)&&void 0!==n&&n.displayAction){this.args.handleCtaActionTracking(e,g.ACTION_CATEGORIES.VIEW)
this.router.transitionTo(this.displayAction.action.displayAction)}}},A=(0,i.default)(S.prototype,"numberFormatter",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,i.default)(S.prototype,"reflow",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,i.default)(S.prototype,"router",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,i.default)(S.prototype,"socialCountsService",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,i.default)(S.prototype,"confirmationAnnotation",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),(0,i.default)(S.prototype,"handleAfterMessageSend",[c.action],Object.getOwnPropertyDescriptor(S.prototype,"handleAfterMessageSend"),S.prototype),(0,i.default)(S.prototype,"handleDisplayAction",[c.action],Object.getOwnPropertyDescriptor(S.prototype,"handleDisplayAction"),S.prototype),S))}))
define("props-shared/components/props-home-entry-point",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","props-shared/utils/tracking","@ember/service","@ember/object","@glimmer/component","ember-cli-pemberly-tracking/modifiers/track-impression","ember-cli-pemberly-i18n/helpers/t","app-aware-link/components/app-aware-link","@ember/helper","global-helpers/helpers/get-domain","ember-cli-pemberly-tracking/modifiers/track-interaction","hue-web-icons/components/icon","artdeco-card/components/artdeco-card","ember-cli-pemberly-tracking/modifiers/track-view","artdeco-button/components/artdeco-button"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_,g,f,b,v,y){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var T,I,E
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"I577FUxs",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[11,0],[24,0,"pv4"],[24,"data-view-name","my-network-homepage-entry-point"],[4,[32,0],null,[["registerOnImpression","routeName","currentRoute"],[[30,0,["handleImpressionTracking"]],[28,[32,1],[[53,"outletState"],"render.name"],null],[28,[32,1],[[53,"outletState"],"render"],null]]]],[4,[32,2],null,[["viewName","view","genericTrackingLixKey","routeName","currentRoute"],["my-network-homepage-entry-point",[30,0],"voyager.web.tracking3-batch-4",[28,[32,1],[[53,"outletState"],"render.name"],null],[28,[32,1],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n "],[10,"h2"],[14,0,"text-body-medium ph4 mb1"],[12],[1,"\\n "],[1,[52,[30,0,["isPropsHomeRouteUpdate"]],[28,[32,3],["i18n_stay_in_touch_headline","props-shared/components/props-home-entry-point"],null],[28,[32,3],["i18n_celebrations_headline","props-shared/components/props-home-entry-point"],null]]],[1,"\\n "],[13],[1,"\\n "],[8,[32,4],[[16,"aria-label",[52,[30,0,["isPropsHomeRouteUpdate"]],[28,[32,3],["i18n_inline_stay_in_touch_see_all_a11y_text_v2","props-shared/components/props-home-entry-point"],null],[28,[32,3],["i18n_inline_see_all_a11y_text","props-shared/components/props-home-entry-point"],null]]],[24,0,"props-s-entry-point__inline-link display-flex link-without-hover-visited align-items-center ph4 pv1"],[4,[32,7],[[30,0,["controlName"]]],null]],[["@href"],[[28,[32,5],[[28,[32,6],[true],null],[30,0,["actionTarget"]]],null]]],[["default"],[[[[1,"\\n "],[10,"h3"],[14,0,"t-black--light text-body-medium"],[12],[1,"\\n "],[1,[52,[30,0,["isPropsHomeRouteUpdate"]],[28,[32,3],["i18n_stay_in_touch_subheadline_v2","props-shared/components/props-home-entry-point"],null],[28,[32,3],["i18n_celebrations_subheadline","props-shared/components/props-home-entry-point"],null]]],[1,"\\n "],[13],[1,"\\n "],[8,[32,8],[[24,0,"t-black--light"]],[["@name"],["arrow-right"]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[32,9],[[24,0,"display-flex align-items-center pv4 pl4 pr2 mb4"],[24,"data-view-name","my-network-homepage-entry-point"],[4,[32,0],null,[["registerOnImpression","routeName","currentRoute"],[[30,0,["handleImpressionTracking"]],[28,[32,1],[[53,"outletState"],"render.name"],null],[28,[32,1],[[53,"outletState"],"render"],null]]]],[4,[32,2],null,[["viewName","view","genericTrackingLixKey","routeName","currentRoute"],["my-network-homepage-entry-point",[30,0],"voyager.web.tracking3-batch-4",[28,[32,1],[[53,"outletState"],"render.name"],null],[28,[32,1],[[53,"outletState"],"render"],null]]]]],null,[["default"],[[[[1,"\\n "],[10,0],[14,0,"flex-1"],[12],[1,"\\n "],[10,"h2"],[14,0,"text-body-medium mb1"],[12],[1,"\\n "],[1,[52,[30,0,["isPropsHomeRouteUpdate"]],[28,[32,3],["i18n_stay_in_touch_headline","props-shared/components/props-home-entry-point"],null],[28,[32,3],["i18n_celebrations_headline","props-shared/components/props-home-entry-point"],null]]],[1,"\\n "],[13],[1,"\\n "],[10,"h3"],[14,0,"t-black--light text-body-small"],[12],[1,"\\n "],[1,[52,[30,0,["isPropsHomeRouteUpdate"]],[28,[32,3],["i18n_stay_in_touch_subheadline_v2","props-shared/components/props-home-entry-point"],null],[28,[32,3],["i18n_celebrations_subheadline","props-shared/components/props-home-entry-point"],null]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[8,[32,4],[[24,0,"link-without-hover-visited"],[4,[32,7],[[30,0,["controlName"]]],null]],[["@href"],[[28,[32,5],[[28,[32,6],[true],null],[30,0,["actionTarget"]]],null]]],[["default"],[[[[1,"\\n "],[8,[32,10],null,[["@aria-label","@color","@text","@type","@size"],[[52,[30,0,["isPropsHomeRouteUpdate"]],[28,[32,3],["i18n_stay_in_touch_see_all_a11y_text","props-shared/components/props-home-entry-point"],null],[28,[32,3],["i18n_see_all_a11y_text","props-shared/components/props-home-entry-point"],null]],"muted",[28,[32,3],["i18n_see_all","props-shared/components/props-home-entry-point"],null],"tertiary",2]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]],[1," "]],["@isInline"],false,["if","-get-dynamic-var"]]',moduleName:"props-shared/components/props-home-entry-point.gjs",scope:()=>[u.default,h.get,v.default,p.default,m.default,h.concat,_.default,g.default,f.default,b.default,y.default],isStrictMode:!0}),(T=(0,l.inject)("lix"),I=class extends d.default{constructor(){super(...arguments);(0,t.default)(this,"lix",E,this);(0,n.default)(this,"controlName","click_mn_props_link")}get actionTarget(){return this.isPropsHomeRouteUpdate?"/stay-in-touch":"/celebrations"}get isPropsHomeRouteUpdate(){return this.lix.getTreatmentIsEnabled("voyager.web.props-home-route-update")}handleImpressionTracking(){return e=>(0,s.buildPropsHomeEntryPointImpressionEvent)(this.args.origin,e)}},E=(0,i.default)(I.prototype,"lix",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(I.prototype,"handleImpressionTracking",[c.action],Object.getOwnPropertyDescriptor(I.prototype,"handleImpressionTracking"),I.prototype),I))}))
define("props-shared/components/props-settings-dropdown",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","@glimmer/component","artdeco-dropdown/components/artdeco-dropdown","artdeco-dropdown/components/artdeco-dropdown-item","text-view-model/components/text-view-model-v2","ember-cli-pemberly-i18n/helpers/t","hue-web-icons/components/icon","@glimmer/tracking","@ember/helper","@ember/object"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var g,f
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"1wkbOEFf",block:'[[[1,"\\n"],[1," "],[8,[32,0],null,[["@isOpen","@onVisibilityChange","@placement","@justification","@useNewFocusModel"],[[30,0,["isDropdownOpen"]],[30,0,["onVisibilityChange"]],"bottom","right",true]],[["default"],[[[[1,"\\n "],[8,[30,1,["dropdown-trigger"]],[[24,0,"artdeco-button artdeco-button--muted artdeco-button--tertiary artdeco-button--circle"],[16,"aria-label",[28,[32,1],["i18n_notification_options","props-shared/components/props-settings-dropdown"],null]]],null,[["default"],[[[[1,"\\n "],[8,[32,2],[[24,0,"props-s-settings-dropdown__trigger-icon"],[16,"aria-hidden",true]],[["@type","@size","@name"],["system","small","overflow-web-ios"]],null],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[30,1,["dropdown-content"]],[[24,0,"props-s-settings-dropdown__content"]],[["@occlusionCulling","@arrowDir"],[false,"right"]],[["default"],[[[[1,"\\n\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["settingOptions"]]],null]],null],null,[[[1," "],[8,[32,3],[[24,0,"props-s-settings-dropdown__item pv2 ph4 full-width"]],[["@itemSelected"],[[28,[32,4],[[30,1,["invokeAndClose"]],[28,[32,4],[[30,4],[30,2]],null]],null]]],[["default"],[[[[1,"\\n "],[10,"button"],[14,0,"props-s-settings-dropdown-item__button"],[14,4,"button"],[12],[1,"\\n "],[8,[32,2],[[24,0,"props-s-settings-dropdown-item__icon"]],[["@name","@type","@size"],["visibility-off","system","medium"]],null],[1,"\\n "],[10,0],[14,0,"props-s-settings-dropdown-item__headline"],[12],[1,"\\n "],[8,[32,5],null,[["@tvm"],[[30,2,["muteOption","title"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[2,3]],null],[1," "]],[]]]]],[1,"\\n "]],[1]]]]],[1,"\\n "]],["dropdown","opt","index","@handleSettingClick"],false,["each","-track-array"]]',moduleName:"props-shared/components/props-settings-dropdown.gjs",scope:()=>[l.default,u.default,p.default,c.default,h.fn,d.default],isStrictMode:!0}),(g=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"isDropdownOpen",f,this)}get settingOptions(){return this.args.settingOptions.option}onVisibilityChange(e){e&&this.args.handleOpenSettingsDropdownTracking()
this.isDropdownOpen=e}},f=(0,i.default)(g.prototype,"isDropdownOpen",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(g.prototype,"onVisibilityChange",[_.action],Object.getOwnPropertyDescriptor(g.prototype,"onVisibilityChange"),g.prototype),g))}))
define("props-shared/services/nurture-tracking",["exports","@babel/runtime/helpers/esm/defineProperty","@ember/service"],(function(e,t,n){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
class i extends n.default{constructor(){super(...arguments);(0,t.default)(this,"currentControlName","nav_mynetwork")}setCurrentControlName(e){this.currentControlName=e}resetCurrentControlName(){this.setCurrentControlName("nav_mynetwork")}}e.default=i}))
define("props-shared/template-registry",[],(function(){}))
define("props-shared/utils/cards",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.addCardsAsSectionsToList=function(e,t){let n=e.length?e.pop():[]
const i=e
t.forEach((e=>{const t=e.propsHomeCard
if(t&&t.propsHomeSectionHeader&&n.length){i.push(n)
n=[e]}else n.push(e)}))
i.push(n)
return i}
e.addCardsToListWithPastUpdatesSection=function(e,t){var n,i
const r=[...e]
let o=!e.length||!(null!==(n=e[e.length-1].propsHomeCard)&&void 0!==n&&null!==(i=n.propCard)&&void 0!==i&&i.isSeen)
t.forEach((e=>{var t
const n=e.propsHomeCard
if(n){if(o&&null!==(t=n.propCard)&&void 0!==t&&t.isSeen){r.push({isPastUpdatesHeader:!0})
o=!1}r.push(e)}}))
return r}
e.getGroupedCardsAsNewAndPastSections=function(e){const t=[]
let n=0
for(;n<e.length&&!e[n].propsHomeCard.propCard.isSeen;){t.push(e[n]);++n}return{newJobsCards:t,pastJobsCards:e.slice(n)}}}))
define("props-shared/utils/constants",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.PROPS_ORIGINS=e.NURTURE_TAB_ROUTES=e.NURTURE_JET_TAGS=e.NURTURE_FEED_MODULE_KEY=e.NOTIFY_MESSAGE_SENT_ACTION=e.DEFAULT_CARD_COUNT=e.CONTROL_NAMES=e.AGGREGATED_LANDING_URL=e.ACTION_CATEGORIES=void 0
e.CONTROL_NAMES=Object.freeze({COMMENT:"comment",EMPTY_STATE_CTA_CLICK:"empty_cta_click",MESSAGE:"message",MUTE_SETTING:"mute",NURTURE_CLICK_ON_CARD:"nurture_click_on_card",PROFILE_VIEW:"view_profile",OPEN_SETTINGS:"open_settings",SHARE_JOB:"share_job",VIEW_COMPANY:"view_company",VIEW_GROUPED_CARDS:"view_grouped_cards",VIEW_JOB:"view_job",VIEW_POST:"view_post"}),e.ACTION_CATEGORIES=Object.freeze({MESSAGE:"MESSAGE",MUTE:"MUTE",OPEN_SETTING:"OPEN_SETTING",SHARE:"SHARE",VIEW:"VIEW"}),e.DEFAULT_CARD_COUNT=10,e.PROPS_ORIGINS=Object.freeze({NURTURE:"my_network_nurture",PROPS_HOME:"props_home"}),e.NOTIFY_MESSAGE_SENT_ACTION="/voyager/api/voyagerPropsDashPropsHomeCards?action=notifyMessageSent",e.NURTURE_FEED_MODULE_KEY="nurture:desktop",e.NURTURE_JET_TAGS=Object.freeze({AGGREGATED_SOCIAL_HIRING:"aggregated-social-hiring"}),e.AGGREGATED_LANDING_URL="/mynetwork/catch-up/aggregate-landing",e.NURTURE_TAB_ROUTES=Object.freeze({"catch-up":"mynetwork.nurture.catch-up.index",grow:"mynetwork.nurture.grow"})}))
define("props-shared/utils/props-settings-handler",["exports","@babel/runtime/helpers/esm/classPrivateMethodGet","@ember/debug","props-shared/components/props-card"],(function(e,t,n,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var r=new WeakSet,o=new WeakSet
e.default=class{constructor(e,t,n,i){o.add(this)
r.add(this)
this.i18n=e
this.pemTracking=t
this.persistentToastManager=n
this.storeShim=i}handleMuteNotification(e){var n
const i=`/voyager/api/notifications/dash/edgesetting/${null===(n=e.muteOption)||void 0===n?void 0:n.target}`,l=this.storeShim.adapterFor("-ember-m3").ajax(i,"POST",{data:JSON.stringify({patch:{$set:{selectedOptionType:"NONE"}}})})
return this.pemTracking.trackFeatureFailures(i,[],[],l).then((()=>(0,t.default)(this,r,a).call(this,e))).catch((e=>{(0,t.default)(this,o,s).call(this)
throw e}))}}
function a(e){var t
const n=null===(t=e.muteOption)||void 0===t?void 0:t.successToastText.text
this.persistentToastManager.success({message:n})}function s(){const e=this.i18n.lookupTranslation(i.default,"setting_error_message")()
this.persistentToastManager.error({message:e})}}))
define("props-shared/utils/requests",["exports","restli-utils","props-shared/utils/cards","props-shared/utils/constants","graphql-queries/queries/props-home/props-home-cards.graphql","graphql-queries/queries/props-home/props-home-cards-by-grouped-cards.graphql"],(function(e,t,n,i,r,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.buildPropsHomeQuery=a
e.getInitialPropsModel=function(e){let{filterVanityName:t,highlightedPropUrns:o,highlightedUrns:s,origin:l,adapterOptions:c}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
return e.executeQuery(r.default,a({filterVanityName:t,highlightedPropUrns:o,highlightedUrns:s,origin:l}),{reload:!0,adapterOptions:c}).then((e=>{const t=e.data.propsDashPropsHomeCardsByHome,{metadata:r,elements:a}=t,{emptyStateCard:c,filters:d,nextStart:u,lastFetchedAt:p}=r,m=d.find((e=>e.selected))
let h,_
if(l===i.PROPS_ORIGINS.NURTURE)_=(0,n.addCardsToListWithPastUpdatesSection)([],a)
else{const e=(0,n.addCardsAsSectionsToList)([],a);(o||s)&&e.length>1&&(h=e.shift())
_=e[0]}return{cards:_,currentFilter:m,emptyStateCard:c,filters:d,highlightedPropUrns:o,highlightedUrns:s,highlightedPropCards:h,nextStart:u,lastFetchedAt:p}}))}
e.getPropsCardsByGroupedByUrn=function(e,t){let{groupByUrn:i,contentType:r,adapterOptions:a={}}=t
return e.executeQuery(o.default,{groupByUrn:i,contentType:r},{reload:!0,adapterOptions:a}).then((e=>{const t=e.data.propsDashPropsHomeCardsByGroupedCards,{metadata:i,elements:r}=t,{emptyStateCard:o,containerCard:a}=i
return{cards:(0,n.getGroupedCardsAsNewAndPastSections)(r),emptyStateCard:o,containerCard:a}}))}
function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
const{count:n,filterVanityName:r,highlightedPropUrns:o,highlightedUrns:a,start:s,origin:l}=e
let c,d
o&&(c=t.decoder.decode(o))
a&&(d=a.split(",").map((e=>t.decoder.decode(e))))
return{highlightedPropUrns:c,highlightedUrns:d,start:s||0,typeName:r,count:n||i.DEFAULT_CARD_COUNT,origin:l}}}))
define("props-shared/utils/tracking",["exports","props-shared/utils/constants"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.buildPropItemActionEvent=function(e,t,i,r){return{name:"PropItemActionEvent",body:{controlUrn:t,actionCategory:i,filterName:r??"",isBlueCarpeted:null==e?void 0:e.isBadged,isPastUpdate:null==e?void 0:e.isSeen,profileUrn:(null==e?void 0:e.profileUrn)??void 0,prop:n(e),scoreTrackingId:(null==e?void 0:e.scoreTrackingId)??void 0,scoreCycleTrackingId:(null==e?void 0:e.scoreCycleTrackingId)??void 0}}}
e.buildPropItemImpressionCustomTrackingInfo=function(e,t,i,r){const{boundingClientRect:o,duration:a,visibleTime:s}=i,l={height:(null==o?void 0:o.height)||0,width:(null==o?void 0:o.width)||0}
return{name:"PropItemImpressionEvent",body:{props:[{prop:n(e),duration:a,listPosition:{index:t},size:l,visibleTime:s??0}],filterName:r??"",scoreTrackingId:(null==e?void 0:e.scoreTrackingId)??void 0,scoreCycleTrackingId:(null==e?void 0:e.scoreCycleTrackingId)??void 0,isBlueCarpeted:null==e?void 0:e.isBadged,isPastUpdate:null==e?void 0:e.isSeen,profileUrn:(null==e?void 0:e.profileUrn)??void 0}}}
e.buildPropsHomeEntryPointImpressionEvent=function(e,t){const{boundingClientRect:n,duration:i,visibleTime:r}=t,o={height:(null==n?void 0:n.height)||0,width:(null==n?void 0:n.width)||0}
return{name:"PropsHomeEntryPointImpressionEvent",body:{duration:i,entryPointOrigin:e,size:o,visibleTime:r??0}}}
e.fireMyNetworkSubtabBadgeImpressionEvent=function(e,t,n){e.fireTrackingPayload("MyNetworkSubtabBadgeImpressionEvent",{growBadgeCount:t,catchUpBadgeCount:n})}
e.getControlNameFromActionTarget=function(e){let n=t.CONTROL_NAMES.NURTURE_CLICK_ON_CARD
e.startsWith(t.AGGREGATED_LANDING_URL)?n=t.CONTROL_NAMES.VIEW_GROUPED_CARDS:e.startsWith("/in/")?n=t.CONTROL_NAMES.PROFILE_VIEW:e.startsWith("/share")?n=t.CONTROL_NAMES.SHARE_JOB:e.startsWith("/jobs/")?n=t.CONTROL_NAMES.VIEW_JOB:e.startsWith("/company/")&&(n=t.CONTROL_NAMES.VIEW_COMPANY)
return n}
e.verifyPropsHomeEntryPointImpressionEvent=function(e){return t=>{var n
return"PropsHomeEntryPointImpressionEvent"===(null==t||null===(n=t.info)||void 0===n?void 0:n.eventName)&&e===t.body.entryPointOrigin}}
function n(e){return{objectUrn:(null==e?void 0:e.objectUrn)??"",trackingId:(null==e?void 0:e.trackingId)??""}}}))
define("s-address-book-import/components/abi-form",["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","rsvp","@ember/debug","@ember/utils","@ember/object","@ember/service","@glimmer/component","@ember/runloop","global-utils/utils/is-browser","ember-cli-pemberly-tracking/utils/tracking","abi-shared/utils/constants-base","ember-lifeline","@glimmer/tracking","tracked-toolbox","@ember/object/internals"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_,g,f,b,v,y){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var T,I,E,O,S,A,C,R,N,k,w,P,M,D,U,L,x,j,F,G,V,z,H,B,W,q,K,Y,Q,$,J,Z,X
const ee=(0,a.createTemplateFactory)({id:"ugTsAmKI",block:'[[[11,"section"],[16,0,[29,[[30,1]," ",[30,2]," ",[52,[30,0,["showloader"]],"abi-form--is-busy"]]]],[17,3],[12],[1,"\\n "],[18,4,[[28,[37,2],null,[["error","isIweMode","showLoader","startButton","passwordInput","emailLabel","emailInput"],[[30,0,["error"]],[30,0,["isIweMode"]],[30,0,["showLoader"]],[50,"s-address-book-import@start-button",0,null,[["click","disabled"],[[30,0,["startAbi"]],[30,0,["disableSubmit"]]]]],[50,"s-address-book-import@abi-input",0,null,[["name","type","elementId","value","input","class","isHidden"],["password","password",[30,0,["passInputId"]],[30,0,["password"]],[30,0,["onPasswordChanged"]],[30,0,["passInputClass"]],[52,[30,0,["isPasswordFieldRequired"]],false,true]]]],[50,"s-address-book-import@abi-label",0,null,[["for"],[[30,0,["emailInputId"]]]]],[50,"s-address-book-import@abi-input",0,null,[["name","type","elementId","value","class","isError","autofocus","input"],["email","email",[30,0,["emailInputId"]],[30,0,["email"]],[30,0,["emailInputClass"]],[30,0,["error"]],true,[30,0,["onEmailChanged"]]]]]]]]]],[1,"\\n"],[13]],["@classNames","@class","&attrs","&default"],false,["if","yield","hash","component"]]',moduleName:"s-address-book-import/components/abi-form.hbs",isStrictMode:!1}),te={hotmail:{width:905,height:580},aol:{width:520,height:315},"live.com":{width:905,height:580},"msn.com":{width:905,height:580},default:{width:790,height:650},minimum:{width:150,height:100}},ne="components/s-address-book-import@abi-form"
let ie=e.default=(T=(0,u.inject)("abi-shared@abi-tracking"),I=(0,u.inject)("i18n"),E=(0,u.inject)("tracking"),O=(0,u.inject)("global-services@window"),S=(0,u.inject)("date"),A=(0,v.localCopy)("args.isByChiclet",!1),C=(0,v.localCopy)("args.prefillEmail.emailAddress"),R=(0,v.localCopy)("args.inviteList"),N=(0,v.localCopy)("args.transactionId",(0,_.generateTrackingId)()),k=class extends p.default{get showLoader(){return this.isWorking||this.args.disableForm}get disableSubmit(){return!this.isIweMode&&this.showLoader}get emailInputId(){return`s-abi-email-${(0,y.guidFor)(this)}`}get passInputId(){return`s-abi-password-${(0,y.guidFor)(this)}`}get pollerLabel(){return`popup-poller#poller_${this.dateService.now()}`}get abiInstance(){return this.args.abiInstance}get emailProvider(){const e=(0,d.get)(this.args,"prefillEmail.emailProvider.emailProviderType")
return g.EMAIL_PROVIDERS[e]?"GOOGLE"===e?"GMAIL":e:"OTHERS"}get errorMsgTitle(){return this.i18n.lookupTranslation(ne,g.ABI_ERRORS_TO_MSGS.ERROR_TITLE)()}get successMsgTitle(){return this.i18n.lookupTranslation(ne,g.ABI_ERRORS_TO_MSGS.SUCCESS_TITLE)()}constructor(){super(...arguments);(0,t.default)(this,"abiTracking",w,this);(0,t.default)(this,"i18n",P,this);(0,t.default)(this,"tracking",M,this);(0,t.default)(this,"windowService",D,this);(0,t.default)(this,"dateService",U,this);(0,t.default)(this,"isImportStarted",L,this);(0,t.default)(this,"isImportInProgress",x,this);(0,t.default)(this,"isContinue",j,this);(0,t.default)(this,"passwordRequired",F,this);(0,t.default)(this,"abiSubmitPressed",G,this);(0,n.default)(this,"emailInputClass","abi-form-email-input");(0,n.default)(this,"passInputClass","abi-form-pass-input");(0,t.default)(this,"isWorking",V,this);(0,t.default)(this,"isResolving",z,this);(0,t.default)(this,"isByChiclet",H,this);(0,t.default)(this,"isPasswordFieldRequired",B,this);(0,t.default)(this,"emailResolved",W,this);(0,t.default)(this,"popUp",q,this);(0,t.default)(this,"popupPoller",K,this);(0,t.default)(this,"error",Y,this);(0,t.default)(this,"password",Q,this);(0,t.default)(this,"email",$,this);(0,t.default)(this,"inviteList",J,this);(0,t.default)(this,"isIweMode",Z,this);(0,t.default)(this,"abookImportTransactionId",X,this)
this.abiInstance&&this.initializeAbiJs(this.abiInstance);(0,c.isPresent)(this.email)&&this._resolutionHandler()
this.args.emailPassed&&this._startAbi()}onImpression(){const{tracking:e,abookImportTransactionId:t}=this
e.fireTrackingPayload(g.METRICS_KEYS.EVENTS.IMPORT_IMPRESSION_EVENT,{source:e.getCurrentPageKey(),abookImportTransactionId:t,autoFilledEmail:this.args.prefillEmail&&"true",autoSelectedEmailProvider:this.emailProvider,orderOfEmailProviderss:[],socialProofCount:this.socialProofCount||0})
const{abiEntryPoint:n}=this.args
n&&e.fireTrackingPayload(g.METRICS_KEYS.EVENTS.IMPORT_ENTRY_IMPRESSION_EVENT,{abiEntryPoint:n,abookImportTransactionId:t})}initializeAbiJs(e){const t=(0,d.get)(this,"abiInstance.CONSTANTS"),n=this.i18n
e.start()
e.on(t.EMAIL_DOMAIN_RESOLVE.EVENT_TYPE.RESOLUTION_COMPLETE,(()=>{this.isResolving&&this._resolutionCompleteHandler()}))
e.on(t.POLL_IMPORT_STATUS.EVENT_TYPE.IMPORT_STARTED,(()=>{this.isWorking=!0
this.isImportStarted=!0
this._fireStatusTracking("IN_PROGRESS")}))
e.on(t.POLL_IMPORT_STATUS.EVENT_TYPE.IMPORT_IN_PROGRESS,(()=>{this.isWorking=!0
this.isImportStarted=!1
this.isImportInProgress=!0
this._fireStatusTracking("IN_PROGRESS")}))
e.on(t.POLL_IMPORT_STATUS.EVENT_TYPE.IMPORT_SUCCESS,(e=>{const t=this._closePopup()
this.isWorking=!0
this.isImportStarted=!1
this._fireStatusTracking("SUCCESS")
t.then((()=>this.args.onImportSuccess(e,this.abookImportTransactionId)))}))
e.on(t.EMAIL_DOMAIN_RESOLVE.EVENT_TYPE.PASSWORD_REQUIRED,(()=>{this._passwordRequiredHandler()}))
e.on(t.IMPORT_CONTACTS.EVENT_TYPE.OPEN_POPUP,(()=>this._openPopup()))
e.on(t.OAUTH.EVENT_TYPE.UPDATE_POPUP,(e=>this._updatePopup(e.eventData.url,e.eventData.provider)))
e.on(t.NETWORK_ERROR,(()=>this._handleServerError("ERROR_OTHER")))
e.on(t.POLL_IMPORT_STATUS.EVENT_TYPE.IMPORT_ERROR_OTHER,(()=>this._handleServerError("ERROR_OTHER")))
e.on(t.POLL_IMPORT_STATUS.EVENT_TYPE.EXCEEDED_MAX_RETRIES,(()=>{this._closePopup()
this._disableLoadingModal()
const e=n.lookupTranslation(ne,g.ABI_ERRORS_TO_MSGS.TOO_MANY_REQUESTS)()
this._showNotificationError(e)}))
e.on(t.EMAIL_DOMAIN_RESOLVE.EVENT_TYPE.UNSUPPORTED_DOMAIN,(()=>{this._closePopup()
this._disableLoadingModal()
const e=n.lookupTranslation(ne,g.ABI_ERRORS_TO_MSGS.UNSUPPORTED_DOMAIN)()
this._showNotificationError(e)}))
e.on(t.INPUT_EMAIL.EVENT_TYPE.INVALID_EMAIL,(()=>{this._closePopup()
this._disableLoadingModal()
this.error=n.lookupTranslation(ne,g.ABI_ERRORS_TO_MSGS.INVALID_EMAIL)()
this.isResolving=!1
this.emailResolved=!1}))
e.on(t.POLL_IMPORT_STATUS.EVENT_TYPE.ZERO_CONTACTS_TO_IMPORT,(()=>{this._closePopup()
this._disableLoadingModal()
const e=n.lookupTranslation(ne,g.ABI_ERRORS_TO_MSGS.ZERO_CONTACTS_TO_IMPORT)()
this._showNotificationError(e)
this._fireStatusTracking("ERROR_ZERO_CONTACTS")}))
e.on(t.POLL_IMPORT_STATUS.EVENT_TYPE.INVALID_CREDENTIALS,(()=>{this._disableLoadingModal()
const e=n.lookupTranslation(ne,g.ABI_ERRORS_TO_MSGS.OAUTH_REQUIRED)()
this._showNotificationError(e)}))
e.on(t.POLL_IMPORT_STATUS.EVENT_TYPE.IMPORT_ERROR_BAD_LOGIN,(()=>this._fireStatusTracking("ERROR_BAD_LOGIN")))
e.on(t.OAUTH.EVENT_TYPE.CALLBACK,(()=>this._fireOAuthCallbackTracking()))}willDestroy(){super.willDestroy(...arguments)
const e=this.abiInstance
if(e){e.removeAllListeners()
this.popUp&&this._closePopup()}}startAuthFlow(){const e=this.password??"",{isPasswordFieldRequired:t,abookImportTransactionId:n}=this
if(!t||t&&""!==e){this.isWorking=!0
this.tracking.fireInteractionEvent(g.METRICS_KEYS.EVENTS.CONTINUE,"SHORT_PRESS")
this.abiTracking.fireImportSubmitEvent(n)
const i={data:{abookImportTransactionId:n}}
t&&(i.data.password=e)
this.abiInstance.step("fetchFormSubmit",i)}}clearErrors(){this.error=!1}startAbi(){const{password:e,isPasswordFieldRequired:t}=this
if(!t||e){this._openPopup()
this.abiSubmitPressed=!this.abiSubmitPressed
this._startAbi()}}onPasswordChanged(e){this.password=e}onEmailChanged(e){var t,n
this.email=null==e?void 0:e.trim()
this.clearErrors()
null===(t=(n=this.args).onEmailChanged)||void 0===t||t.call(n,e)}_startAbi(){this.isContinue=!0
this._resolutionHandler()}_disableLoadingModal(){this.isWorking=!1
this.isContinue=!1}_resolutionCompleteHandler(){this.emailResolved=!0
this.isPasswordFieldRequired=!1
this.isResolving=!1;(0,m.schedule)("afterRender",(()=>{if(this.isContinue){this.startAuthFlow()
this.isContinue=!1}}))}_passwordRequiredHandler(){if(this.isByChiclet)this.isByChiclet=!this.isByChiclet
else{this.isPasswordFieldRequired=!0
this.passwordRequired=!0
this.emailResolved=!0
this.isResolving=!1}}_getPopupSize(e){return te[e]||te.default}_openPopup(){if(h.default&&!this.popUp){const{width:e,height:t}=this._getPopupSize("minimum"),n=this.windowService.open("","oauth-popup",`width=${e},height=${t},toolbar=0,location=0,status=0,scrollbars=no`)
if(n){this.popUp=n
n.focus()
this.popupPoller=!0;(0,f.pollTask)(this,"_poller",this.pollerLabel)}else this._showNotificationError(this.i18n.lookupTranslation(ne,g.ABI_ERRORS_TO_MSGS.POPUP_BLOCKED)())}}_poller(e){if(this.popUp&&this.popUp.closed&&this.popupPoller){this._closePopup()
this._disableLoadingModal()
this.abiInstance.step("stateReset")}else this.popupPoller&&(0,f.runTask)(this,e,1e3)}_updatePopup(e,t){const n=this.popUp,{abookImportTransactionId:i}=this
if(n){n.location=jSecure.sanitizeUrl(e)
const{width:r,height:o}=this._getPopupSize(t)
n.resizeTo(r,o)
this.tracking.fireTrackingPayload(g.METRICS_KEYS.EVENTS.IMPORT_OAUTH_REDIRECT_EVENT,{abookImportTransactionId:i})}else{this.abiInstance.step("stateReset")
this._disableLoadingModal()}}_handleServerError(e){this._closePopup()
this._disableLoadingModal()
this.isResolving=!1
this._showNotificationError()
this._fireStatusTracking(e)}_closePopup(){const e=this.popUp
if(!h.default||!e)return(0,s.resolve)()
e.focus()
this.popupPoller=null
this.popUp=null
if(this.isDestroying){e.close()
return(0,s.resolve)()}return new s.Promise((t=>{(0,f.runTask)(this,(()=>{if(e){e.close()
t()}}),5)}))}_getDomainFromEmail(e){return e.replace(/.*@/,"")}_handleValidEmail(e){this.abiSubmitPressed&&this._isImportingWithPrefillEmail(e)&&(this.abiSubmitPressed=!this.abiSubmitPressed)
this.abiInstance.step("emailInputChange",{data:e})}_isImportingWithPrefillEmail(e){const t=(0,d.get)(this.args,"prefillEmail.emailAddress")
return!t||t===e}_resolutionHandler(){this.isResolving=!0
const{email:e}=this
if(g.EMAIL_PATTERN.test(e))this._handleValidEmail(e)
else{this.isResolving=!1
this.emailResolved=!1
this.error=this.i18n.lookupTranslation(ne,g.ABI_ERRORS_TO_MSGS.INVALID_EMAIL)()}}_resetIweMode(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]
this.isIweMode=!1
this.isPasswordFieldRequired=e;(0,m.schedule)("afterRender",(()=>{this.password&&(this.password="")}))}_showNotificationError(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.i18n.lookupTranslation(ne,g.ABI_ERRORS_TO_MSGS.INTERNAL_SERVER_ERROR)(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.errorMsgTitle
this.args.onError&&(0,f.debounceTask)(this,"_debouncedError",e,t,200)}_debouncedError(e,t){this.args.onError(e,t)}_fireStatusTracking(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ERROR_OTHER"
const{abookImportTransactionId:t}=this
this.tracking.fireTrackingPayload(g.METRICS_KEYS.EVENTS.IMPORT_TASK_STATUS_EVENT,{abookImportTransactionId:t,status:e})}_fireOAuthCallbackTracking(){const{abookImportTransactionId:e}=this
this.tracking.fireTrackingPayload(g.METRICS_KEYS.EVENTS.IMPORT_OAUTH_CALLBACK_EVENT,{abookImportTransactionId:e})}},w=(0,i.default)(k.prototype,"abiTracking",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,i.default)(k.prototype,"i18n",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,i.default)(k.prototype,"tracking",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,i.default)(k.prototype,"windowService",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,i.default)(k.prototype,"dateService",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,i.default)(k.prototype,"isImportStarted",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),x=(0,i.default)(k.prototype,"isImportInProgress",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),j=(0,i.default)(k.prototype,"isContinue",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),F=(0,i.default)(k.prototype,"passwordRequired",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),G=(0,i.default)(k.prototype,"abiSubmitPressed",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),V=(0,i.default)(k.prototype,"isWorking",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,i.default)(k.prototype,"isResolving",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=(0,i.default)(k.prototype,"isByChiclet",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,i.default)(k.prototype,"isPasswordFieldRequired",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W=(0,i.default)(k.prototype,"emailResolved",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=(0,i.default)(k.prototype,"popUp",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K=(0,i.default)(k.prototype,"popupPoller",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Y=(0,i.default)(k.prototype,"error",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q=(0,i.default)(k.prototype,"password",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=(0,i.default)(k.prototype,"email",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J=(0,i.default)(k.prototype,"inviteList",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=(0,i.default)(k.prototype,"isIweMode",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),X=(0,i.default)(k.prototype,"abookImportTransactionId",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(k.prototype,"clearErrors",[d.action],Object.getOwnPropertyDescriptor(k.prototype,"clearErrors"),k.prototype),(0,i.default)(k.prototype,"startAbi",[d.action],Object.getOwnPropertyDescriptor(k.prototype,"startAbi"),k.prototype),(0,i.default)(k.prototype,"onPasswordChanged",[d.action],Object.getOwnPropertyDescriptor(k.prototype,"onPasswordChanged"),k.prototype),(0,i.default)(k.prototype,"onEmailChanged",[d.action],Object.getOwnPropertyDescriptor(k.prototype,"onEmailChanged"),k.prototype),k);(0,o.setComponentTemplate)(ee,ie)}))
define("s-address-book-import/components/abi-input",["exports","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","global-utils/utils/keyboard-utils"],(function(e,t,n,i,r,o,a){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var s
const l=(0,i.createTemplateFactory)({id:"UKlsnj5E",block:'[[[11,"input"],[16,0,[29,[[30,1],"\\n ",[30,2],[52,[30,3]," hidden"],[52,[30,4]," error"]]]],[16,3,[30,5]],[16,4,[30,6]],[16,1,[30,7]],[16,2,[30,8]],[16,"autofocus",[30,9]],[16,"placeholder",[30,10]],[17,11],[4,[38,1],["keyup",[30,0,["keyUp"]]],null],[4,[38,1],["change",[28,[37,2],["target.value",[30,12]],null]],null],[4,[38,3],null,[["when"],[[30,9]]]],[12],[13]],["@classNames","@class","@isHidden","@isError","@name","@type","@elementId","@value","@autofocus","@placeholder","&attrs","@input"],false,["if","on","global-helpers@pick","global-modifiers@focus"]]',moduleName:"s-address-book-import/components/abi-input.hbs",isStrictMode:!1})
let c=e.default=(s=class extends r.default{keyUp(e){if((0,a.isEnterKey)(e)){var t,n
null===(t=(n=this.args).enterKeyPressed)||void 0===t||t.call(n,e)}}},(0,t.default)(s.prototype,"keyUp",[o.action],Object.getOwnPropertyDescriptor(s.prototype,"keyUp"),s.prototype),s);(0,n.setComponentTemplate)(l,c)}))
define("s-address-book-import/components/abi-label",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,n,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const r=(0,n.createTemplateFactory)({id:"jSRZF0rA",block:'[[[11,"label"],[16,0,[29,[[30,1]]]],[16,"for",[30,2]],[17,3],[12],[18,4,null],[13]],["@classNames","@for","&attrs","&default"],false,["yield"]]',moduleName:"s-address-book-import/components/abi-label.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(r,(0,i.default)())}))
define("s-address-book-import/components/start-button",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,n,i){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const r=(0,n.createTemplateFactory)({id:"doHkoJq+",block:'[[[11,"button"],[24,4,"button"],[16,0,[29,["abi-form-start-abi ",[30,1]]]],[16,"disabled",[30,2]],[17,3],[4,[38,0],["click",[30,4]],null],[12],[18,5,null],[13]],["@classNames","@disabled","&attrs","@click","&default"],false,["on","yield"]]',moduleName:"s-address-book-import/components/start-button.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(r,(0,i.default)())}))
define("se-address-book-import/components/abi-form",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","@ember/object","@glimmer/tracking","abi-shared/utils/constants-base","s-address-book-import/components/abi-form","global-utils/utils/is-browser","@ember/runloop","@ember/render-modifiers/modifiers/did-insert","@ember/render-modifiers/modifiers/did-update","global-modifiers/modifiers/focus","@ember/helper","s-address-book-import/components/start-button","abi-shared/components/password-input","s-address-book-import/components/abi-label","s-address-book-import/components/abi-input"],(function(e,t,n,i,r,o,a,s,l,c,d,u,p,m,h,_,g,f,b,v,y){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var T,I
const{CHICLET_ATTRS:E,TRACK_OTHER_EMAIL:O}=c.default
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"QT7bepJg",block:'[[[1,"\\n"],[1," "],[11,"section"],[16,0,[29,[[30,1],"\\n ",[30,2],"\\n ",[52,[30,0,["showloader"]],"abi-form--is-busy"]]]],[17,3],[4,[32,0],[[30,0,["initSetShouldSkipImport"]]],null],[4,[32,1],[[30,0,["updateProvider"]]],null],[4,[32,2],null,[["when"],[[30,0,["shouldFocusForm"]]]]],[12],[1,"\\n "],[18,4,[[28,[32,3],null,[["hidePasswordField","isWorking","error","isIweMode","showLoader","onStartABI","startButton","passwordInput","emailLabel","emailInput"],[[52,[30,0,["isPasswordFieldRequired"]],false,true],[30,0,["isWorking"]],[30,0,["error"]],[30,0,["isIweMode"]],[30,0,["showLoader"]],[30,0,["startAbi"]],[50,[32,4],0,null,[["click","disabled"],[[30,0,["startAbi"]],[30,0,["disableSubmit"]]]]],[50,[32,5],0,null,[["name","inputId","value","input","class","onEnterKeypress"],["password",[30,0,["passInputId"]],[30,0,["password"]],[30,0,["onPasswordChanged"]],[30,0,["passInputClass"]],[30,0,["startAbi"]]]]],[50,[32,6],0,null,[["for"],[[30,0,["emailInputId"]]]]],[50,[32,7],0,null,[["name","type","elementId","value","class","isError","autofocus","input","enterKeyPressed"],["email","email",[30,0,["emailInputId"]],[30,0,["email"]],[30,0,["emailInputClass"]],[30,0,["error"]],true,[30,0,["onEmailChanged"]],[30,0,["startAbi"]]]]]]]]]],[1,"\\n "],[13],[1,"\\n "]],["@classNames","@class","&attrs","&default"],false,["if","yield","component"]]',moduleName:"se-address-book-import/components/abi-form.gjs",scope:()=>[m.default,h.default,_.default,g.hash,f.default,b.default,v.default,y.default],isStrictMode:!0}),(T=class extends d.default{constructor(){super(...arguments);(0,t.default)(this,"shouldFocusForm",I,this)}authProvider(e){const t=(0,s.get)(e,"emailOrigin"),n=E[t],i=n&&n.trackingId,r=this.abiInstance
if(i&&r){const e=t?`qalinkedindummy@${t.toString().toLowerCase()}.com`:"",{abookImportTransactionId:n}=this
this.tracking.fireInteractionEvent(i)
this.abiTracking.fireImportSubmitEvent(n)
r.step("emailInputChange",{data:{emailAddress:e,isEmailDomainResolve:!1,isNonOAuth:!1}})
r.step("fetchFormSubmit")}}initSetShouldSkipImport(){this.args.isPromo&&(0,p.scheduleOnce)("afterRender",this,"_setShouldSkipImport")}updateProvider(){const{provider:e}=this.args
e&&this._onProviderChanged(e)}_setShouldSkipImport(){this.heathrow.organicAbiShouldSkipImport().then((e=>{this.isDestroying||(this.shouldSkipImport=e)})).catch((e=>{this.isDestroying||(this.shouldSkipImport=!1)
throw e}))}_onProviderChanged(e){this.send("clearErrors")
"string"==typeof e?this._otherProviderSelected(e):this._providerSelected(e)}_setOtherEmailMode(e){this._resetIweMode(e)
this.tracking.fireInteractionEvent(O)
this.email="";(0,p.schedule)("afterRender",(()=>{if(u.default){const e=document.getElementById(this.emailInputId)
e&&e.focus()}}))}_setEmailInviteMode(){this.tracking.fireInteractionEvent("invite_by_email")
this.isIweMode=!0
this.isPasswordFieldRequired=!1
this.shouldFocusForm=!0}_providerSelected(e){this.isByChiclet=!this.isByChiclet
const t=(0,s.get)(e,"emailProvider.emailProviderType"),n=(0,s.get)(e,"emailOrigin")
if("GAAP"!==t)if("UNSUPPORTED"!==t||"QQ"!==n){this._resetIweMode()
this.isWorking=!0
this.authProvider(e)}else this.tracking.fireInteractionEvent(E.QQ.trackingId)
else this._setOtherEmailMode(!0)}_otherProviderSelected(e){switch(e){case"email":this._setEmailInviteMode()
break
case"upload":this._resetIweMode()
break
default:this._setOtherEmailMode()}}_resetIweMode(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]
this.isIweMode=!1
this.isPasswordFieldRequired=e;(0,p.schedule)("afterRender",(()=>{if(u.default){const e=document.querySelector(this.passInputId)
e&&(e.value="")}}))}},I=(0,i.default)(T.prototype,"shouldFocusForm",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(T.prototype,"initSetShouldSkipImport",[s.action],Object.getOwnPropertyDescriptor(T.prototype,"initSetShouldSkipImport"),T.prototype),(0,i.default)(T.prototype,"updateProvider",[s.action],Object.getOwnPropertyDescriptor(T.prototype,"updateProvider"),T.prototype),T))}))
define("se-address-book-import/template-registry",[],(function(){}))
!function(e){t=this,n=function(e){"use strict"
function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n
return e}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0
try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){n.push(a.value)
if(t&&n.length===t)break}}catch(e){r=!0
o=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t)
var n=Object.prototype.toString.call(e).slice(8,-1)
"Object"===n&&e.constructor&&(n=e.constructor.name)
return"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n]
return i}var o=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),a=/^fs_/
function s(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+typeof e+".")
var t,n,i=o.exec(e)
if(i){t=i[1].replace(a,"")
n=i[2]}return{id:n,type:t}}var l,c,d,u,p,m,h=/(?![^(]*\)),/,_={checkForEntityId:function(e){var t=o.exec(e)
return t?t[2]:e},extractEntityInfoFromUrn:s,urnToObject:function e(t){var n=s(t),i=n.id,r=n.type,o={}
if("("===i.charAt(0)){for(var a,l=i.substring(1,i.length-1).split(h),c=0;a=l[c];++c)0===a.indexOf("urn")&&(l[c]=e(a))
i=l}o[r]=i
return o}},g={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},f={GUEST:"GUEST",MEMBER:"MEMBER",ENTERPRISE_UNBOUND:"ENTERPRISE_UNBOUND"},b=0,v=1,y=2,T=(n(l={},f.GUEST,"li_gc"),n(l,f.MEMBER,"li_mc"),n(l,f.ENTERPRISE_UNBOUND,"li_ec"),l),I=(n(c={},f.GUEST,"mypreferences/g/guest-cookies"),n(c,f.MEMBER,"settings/member-cookies"),n(c,f.ENTERPRISE_UNBOUND,"mypreferences/e/enterprise-cookies"),c),E="liap",O=function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null
t(this,e)
n=n||{}
this.consentAvailable=!1
this.issuedAt=i
this.userMode=r
this.optedInConsentMap={}
for(var a in g){n[a]=n[a]||b
n[a]!==b&&(this.consentAvailable=!0)
this.optedInConsentMap[a]=n[a]===v||n[a]===b&&o===v}},S=(d=[g.ADVERTISING,g.ANALYTICS_AND_RESEARCH,g.FUNCTIONAL],u=[b,v,y,b],p=function(e){for(var t={},n=0;n<d.length;n++)t[d[n]]=u[e>>2*n&3]
return t},m=function(e){var t=b
e>=0&&e<=3&&(t=u[e])
return t},{parseConsentBody:function(e,t){var n=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),i=e.match(n)
if(!i)return{error:"Invalid consent body encoding",consent:new O}
var r=p(parseInt(i[1],10)),o=new Date(1e3*parseInt(i[2],10)),a=m(parseInt(i[3],10))
return{error:null,consent:new O(r,o,t,a)}},parseConsentBodyEnterpriseUnbound:function(e,t,n){var r=function(e){try{var t=_.urnToObject(e)
if(t&&t.enterpriseProfile&&t.enterpriseProfile.length>=2&&t.enterpriseProfile[0].enterpriseAccount)return{enterpriseAccountId:parseInt(t.enterpriseProfile[0].enterpriseAccount,10),enterpriseProfileId:parseInt(t.enterpriseProfile[1],10)}}catch(e){return null}return null}(t)
if(!r)return{error:"Invalid enterprise profile urn provided",consent:new O}
var o=r.enterpriseAccountId,a=r.enterpriseProfileId,s=new RegExp(["^((?:\\d+,\\d+,\\d+,\\d+,\\d+)(?:\\|(?:\\d+,\\d+,\\d+,\\d+,\\d+))*)","(\\d+)","(\\d+)","(?:(?:.|\\s)+)$"].join(";")),l=e.match(s)
if(!l)return{error:"Invalid consent body encoding",consent:new O}
var c=l[1].split("|").map((function(e){return e.split(",").map((function(e){return parseInt(e,10)}))})).filter((function(e){var t=i(e,4),r=t[1],s=t[2],l=t[3]
return r===o&&s===a&&l===n}))[0]
if(!c)return{error:null,consent:new O}
var d=p(c[0]),u=new Date(1e3*parseInt(l[2],10)),h=m(parseInt(l[3],10))
return{error:null,consent:new O(d,u,f.ENTERPRISE_UNBOUND,h)}}}),A=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),C=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")))
return n&&n.length>1?n[1]:null},R=function(e,t,n,i){var r=C(T[e],t)
return r?M(r,e,n,i):C(T[f.GUEST],t)||C(T[f.MEMBER],t)||C(T[f.ENTERPRISE_UNBOUND],t)?N(y):N(v)},N=function(e){var t={}
for(var n in g)t[n]=e
return{error:null,consent:new O(t,null,null,e)}},k=function(){var e=document.domain.match(/^(?:|.*\.)([^\.]+\.[^\.]+)$/)
return e?e[1]:"linkedin-ei.com"},w=function(e,t){var n=I[e],i=t.enterpriseProfileHash,r=t.enterpriseAppInstanceId,o=new URLSearchParams
if(e===f.ENTERPRISE_UNBOUND){i&&o.append("p",i)
r&&o.append("iid",r)}var a=Array.from(o).length?"?"+o.toString():""
return"https://www.".concat(k(),"/").concat(n).concat(a)},P=function(){return"undefined"==typeof document},M=function(e,t,n,i){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1))
var r,o=null
try{o=(r=e,"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(r,"base64").toString("binary"):atob(r)).match(A)}catch(e){}if(!o)return{error:"Invalid consent encoding",consent:new O}
var a=parseInt(o[1],10),s=o[2]
return 1===a?t===f.ENTERPRISE_UNBOUND?S.parseConsentBodyEnterpriseUnbound(s,n,i):S.parseConsentBody(s,t):{error:"Invalid encoded consent version ".concat(a),consent:new O}},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.enterpriseProfileUrn,r=n.enterpriseAppInstanceId
if("string"!=typeof t){if(P())return{error:"cookie string must be provided in SSR mode",consent:new O}
t=document.cookie}if(i&&!r||!i&&r)return{error:"enterpriseProfileUrn and enterpriseAppInstanceId must both be provided if at least one is provided",consent:new O}
if(!(e!==f.ENTERPRISE_UNBOUND||i&&r))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new O}
if(!e){var o=C(T[f.ENTERPRISE_UNBOUND],t)
if(o&&i&&r){var a=M(o,f.ENTERPRISE_UNBOUND,i,r),s=a.consent.userMode===f.ENTERPRISE_UNBOUND
if(s||a.error)return a}e=C(E,t)?C(T[f.MEMBER],t)?f.MEMBER:f.GUEST:C(T[f.GUEST],t)?f.GUEST:f.MEMBER}return R(e,t,i,r)}
e.NON_ESSENTIAL_CATEGORIES=g
e.USER_MODE=f
e.getBannerData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=D(e,document.cookie,t),i=n.consent,r=e||i.userMode||f.GUEST
return{showBanner:!n.error&&!i.consentAvailable,userMode:r,managePreferenceUrl:w(r,t)}}
e.getCookieConsent=D
e.parseEncodedConsent=M
e.updateCookieConsent=function(e,t){var n=e.optedInConsentMap,i=e.updateSettings,r=e.userMode,o=e.xLiTrackPayload,a=e.enterpriseContext||{},s=a.enterpriseProfileHash,l=a.enterpriseAppInstanceId
t=t||function(e,t){}
var c=C(T[f.ENTERPRISE_UNBOUND],document.cookie)
n||t("optedInConsentMap is a required option",null)
var d=new XMLHttpRequest,u=new URLSearchParams
c&&l&&u.append("appInstanceId",l)
var p=Array.from(u).length?"?"+u.toString():""
d.open("POST","https://www.".concat(k(),"/cookie-consent/").concat(p))
d.setRequestHeader("Content-Type","application/json")
o&&d.setRequestHeader("X-LI-Track",o)
c&&s&&d.setRequestHeader("x-li-identity",s)
d.withCredentials=!0
d.onload=function(){200!==d.status?t("Request failed with status ".concat(d.status),null):t(null,d)}
d.onerror=function(){t("Request failed with an error",d)}
var m={UPDATE_SETTINGS:i,USER_MODE:r,CATEGORIES:{}}
for(var h in g){var _=void 0
!0===n[h]?_=v:!1===n[h]&&(_=y)
m.CATEGORIES[h]=_}d.send(JSON.stringify(m))}
Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof e&&e.amd?e(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).ConsentCookieParser={})
var t,n}(function(){function e(){var e=Array.prototype.slice.call(arguments)
e.unshift("@linkedin/consent-cookie-parser")
return define.apply(null,e)}e.amd=!0
return e}())
//# sourceMappingURL=engine-vendor.map