зеркало из
https://github.com/jlind0/multiplex.studio.web.git
synced 2025-10-28 20:54:22 +02:00
690 строки
158 KiB
Plaintext
690 строки
158 KiB
Plaintext
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,i,r,n,o,a,s,l,c,u,d,p,m,h,_,b,g,f,T,E,I,y,S,O){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var R,C,v,A,N,k,w,P,M,L,D,U,F,G,j,x,H,z,V,B,q,K,Y,W,Q,$,Z,X,J,ee,te,ie,re,ne,oe,ae,se,le,ce,ue,de,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}),(R=(0,T.inject)("abi-shared@abi-tracking"),C=(0,T.inject)("heathrow@heathrow"),v=(0,T.inject)("router"),A=(0,T.inject)("i18n"),N=(0,T.inject)("locale"),k=(0,T.inject)("persistent-toast-manager@persistent-toast-manager"),w=(0,T.inject)("tracking"),P=(0,T.inject)("abi-shared@abi-processing"),M=(0,T.inject)("abook-upload-service@abook-upload"),L=(0,c.localCopy)("args.prefillEmail.emailAddress",""),D=(0,c.localCopy)("args.inviteList"),U=(he=new WeakMap,class extends f.default{get abookImportTransactionId(){return this.args.transactionId||(0,r.default)(this,he)}get i18nTemplate(){return this.constructor}get isPromo(){return this.args.isPromo}get passwordEmpty(){return(0,y.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,y.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,S.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,g.scheduleOnce)("afterRender",this,"_setShouldSkipImport")
|
|
this.didInsertElementOverride&&this.didInsertElementOverride()}_initAbi(){return new l.Abi(m.Promise)}constructor(){super(...arguments);(0,t.default)(this,"abiTracking",F,this);(0,t.default)(this,"heathrow",G,this);(0,t.default)(this,"router",j,this);(0,t.default)(this,"i18n",x,this);(0,t.default)(this,"locale",H,this);(0,t.default)(this,"persistentToastManager",z,this);(0,t.default)(this,"tracking",V,this);(0,t.default)(this,"abiProcessing",B,this);(0,t.default)(this,"abookUpload",q,this);(0,t.default)(this,"email",K,this)
|
|
he.set(this,{writable:!0,value:(0,b.generateTrackingId)()});(0,t.default)(this,"password",Y,this);(0,t.default)(this,"inviteList",W,this);(0,i.default)(this,"isImportStarted",!1);(0,i.default)(this,"isImportInProgress",!1);(0,t.default)(this,"isWorking",Q,this);(0,t.default)(this,"isContinue",$,this);(0,t.default)(this,"passwordRequired",Z,this);(0,t.default)(this,"isPasswordFieldRequired",X,this);(0,t.default)(this,"abiSubmitPressed",J,this);(0,t.default)(this,"isResolving",ee,this);(0,t.default)(this,"shouldSkipImport",te,this);(0,t.default)(this,"isIweMode",ie,this);(0,t.default)(this,"emailResolved",re,this);(0,t.default)(this,"error",ne,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",ue,this);(0,t.default)(this,"formattedProviders",de,this);(0,t.default)(this,"modalOpen",pe,this);(0,t.default)(this,"isImapEnabled",me,this)
|
|
this.abiInstance=this.args.abiInstance??this._initAbi();(0,y.isEmpty)(this.email)||this._resolutionHandlerPromise()
|
|
this.args.emailPassed&&this._startAbiPromise()
|
|
this.initOverride&&this.initOverride()
|
|
this.isImapEnabled=(0,d.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:i}=this
|
|
i.fireImpressionTracking(t)
|
|
const r=this.args.abiEntryPoint
|
|
if(r||this.isPromo){const t=this.shouldSkipImport?h.SUGGESTED_ROUTE.RESULT_LANDING:h.SUGGESTED_ROUTE.INTRO
|
|
i.fireAbiTracking(r,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 i=t?t.replace(/\s+/g,"").split(","):[],r=(0,b.generateTrackingId)(),n=(null===(e=this.locale)||void 0===e?void 0:e.requestIpCountryCode)??h.DEFAULT_COUNTRY_CODE,{abookImportTransactionId:o}=this,a=i.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:r,defaultCountryCode:n})
|
|
this.isWorking=!0
|
|
return l.then((()=>{if(!(0,S.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 i=null===(t=this.args.prefillEmail)||void 0===t?void 0:t.emailAddress
|
|
return!i||i===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,i=this.i18n
|
|
let r=null
|
|
this._disableLoadingModal()
|
|
if(e===t.UNSUPPORTED_DOMAIN){r=h.ABI_ERRORS_TO_MSGS.UNSUPPORTED_DOMAIN
|
|
this._resolutionCompleteHandlerPromise()}else if(e===t.INVALID_EMAIL){r=h.ABI_ERRORS_TO_MSGS.INVALID_EMAIL
|
|
this.isResolving=!1
|
|
this.emailResolved=!1
|
|
this.error=r}const n=i.lookupTranslation(this.i18nTemplate,r)()
|
|
this._showNotificationError(n)}_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,S.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,S.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:i}=this
|
|
let r
|
|
e===t.ZERO_CONTACTS_TO_IMPORT?r=h.ABI_ERRORS_TO_MSGS.ZERO_CONTACTS_TO_IMPORT:e===t.INVALID_CREDENTIALS?r=h.ABI_ERRORS_TO_MSGS.OAUTH_REQUIRED:e===t.EXCEEDED_MAX_REQUEST_RETRIES?r=h.ABI_ERRORS_TO_MSGS.TOO_MANY_REQUESTS:e===t.IMPORT_ERROR_OTHER&&(r=h.ABI_ERRORS_TO_MSGS.INTERNAL_SERVER_ERROR)
|
|
this._disableLoadingModal()
|
|
if(r){const e=i.lookupTranslation(this.i18nTemplate,r)()
|
|
this._showNotificationError(e)}}_handleEmailImportSuccess(e){let{importTicketId:t}=e
|
|
const i=this.args.afterRoute&&"undefined"!==this.args.afterRoute?this.afterRoute:h.ABI_ROUTES.DEFAULT_AFTER_ROUTE
|
|
this._linkToAbiResult({afterRoute:i,importTaskHandle:t,transactionId:this.abookImportTransactionId,isOrganic:!0})}_startAuthFlowPromise(e){const t=this.password||"",{isPasswordFieldRequired:i}=this,r=i&&""!==t,{abookImportTransactionId:n}=this,o={...e,abookImportTransactionId:n}
|
|
if(!i||r){this.isWorking=!0
|
|
this.tracking.fireInteractionEvent("continue","SHORT_PRESS")
|
|
i&&(o.password=t)
|
|
return this.abiProcessing.startEmailContactsImport({providerData:o,abiInstance:this.abiInstance}).then(this._handleEmailImportSuccess.bind(this)).catch((e=>{if((0,S.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,i=h.CHICLET_ATTRS[t],r=i&&i.trackingId,n=this.abiInstance
|
|
if(!r||!n)return(0,m.resolve)()
|
|
let o=""
|
|
t&&(o=`qalinkedindummy@${t.toString().toLowerCase()}.com`)
|
|
const{abookImportTransactionId:a}=this
|
|
this.tracking.fireInteractionEvent(r)
|
|
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,S.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 i=this.abiTracking
|
|
i.fireImportSubmitEvent(e)
|
|
i.fireStandardImportInvitationImpressionEvent(e,t)
|
|
i.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 i=e.value.split("."),r=i[i.length-1]
|
|
return"QQ_MAIL"===t?"vcf"===r:h.SUPPORTED_CONTACTS_FILE_FORMATS.includes(r)}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,i=h.CHICLET_ATTRS[t]
|
|
return{modelProvider:e,emailOrigin:t,emailProvider:{emailProviderClassName:i&&i.iconName?i.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.",""),i=this.args.abiEntryPoint||h.ABI_ENTRY_POINT_ROUTE_MAP.mynetwork[t]
|
|
this.abiTracking.fireAbiTracking(i,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 i=null===(t=e.emailProvider)||void 0===t?void 0:t.emailProviderType,{emailOrigin:r}=e
|
|
if("GAAP"!==i)if("UNSUPPORTED"!==i||"QQ"!==r){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,g.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,g.schedule)("afterRender",(()=>{const e=document.querySelector(".mn-abi-form__container")
|
|
e&&e.focus()}))}startContactsFileUpload(e){var t
|
|
let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"OTHER"
|
|
const r=e.files&&e.files[0],n=null===(t=this.args.fileUploadToken)||void 0===t?void 0:t.uploadToken,{abookImportTransactionId:o}=this
|
|
this.handleUploadStart()
|
|
this.abiTracking.fireImportSubmitEvent(o)
|
|
this.isFileSupported(e,i)?this.abookUpload.uploadContactsFile(r,n,o,i).then(this.handleUploadSuccess.bind(this)).catch((e=>{if((0,S.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,g.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,i=t.value&&t.value.split(/(\|\/)/g).pop()
|
|
this.contactsFileName=i||""}closeQqMailImportModal(){this.isQqmailImportModalOpen=!1}openQqmailImportModal(){this.isQqmailImportModalOpen=!0}transformEnterKeyPressToOpenLearnMoreAction(e){(0,_.isEnterKey)(e)&&this.openLearnMore()}}),F=(0,n.default)(U.prototype,"abiTracking",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=(0,n.default)(U.prototype,"heathrow",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,n.default)(U.prototype,"router",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,n.default)(U.prototype,"i18n",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=(0,n.default)(U.prototype,"locale",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,n.default)(U.prototype,"persistentToastManager",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,n.default)(U.prototype,"tracking",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,n.default)(U.prototype,"abiProcessing",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=(0,n.default)(U.prototype,"abookUpload",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K=(0,n.default)(U.prototype,"email",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Y=(0,n.default)(U.prototype,"password",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),W=(0,n.default)(U.prototype,"inviteList",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q=(0,n.default)(U.prototype,"isWorking",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=(0,n.default)(U.prototype,"isContinue",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Z=(0,n.default)(U.prototype,"passwordRequired",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),X=(0,n.default)(U.prototype,"isPasswordFieldRequired",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J=(0,n.default)(U.prototype,"abiSubmitPressed",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ee=(0,n.default)(U.prototype,"isResolving",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),te=(0,n.default)(U.prototype,"shouldSkipImport",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ie=(0,n.default)(U.prototype,"isIweMode",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),re=(0,n.default)(U.prototype,"emailResolved",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ne=(0,n.default)(U.prototype,"error",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oe=(0,n.default)(U.prototype,"isByChiclet",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ae=(0,n.default)(U.prototype,"isFileUploadMode",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),se=(0,n.default)(U.prototype,"contactsFileName",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),le=(0,n.default)(U.prototype,"isQqmailImportModalOpen",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ce=(0,n.default)(U.prototype,"showPassword",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ue=(0,n.default)(U.prototype,"currentProvider",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),de=(0,n.default)(U.prototype,"formattedProviders",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pe=(0,n.default)(U.prototype,"modalOpen",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),me=(0,n.default)(U.prototype,"isImapEnabled",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(U.prototype,"sendIwe",[E.action],Object.getOwnPropertyDescriptor(U.prototype,"sendIwe"),U.prototype),(0,n.default)(U.prototype,"clearErrors",[E.action],Object.getOwnPropertyDescriptor(U.prototype,"clearErrors"),U.prototype),(0,n.default)(U.prototype,"resolveEmailPromise",[E.action],Object.getOwnPropertyDescriptor(U.prototype,"resolveEmailPromise"),U.prototype),(0,n.default)(U.prototype,"startAbi",[E.action],Object.getOwnPropertyDescriptor(U.prototype,"startAbi"),U.prototype),(0,n.default)(U.prototype,"openLearnMore",[E.action],Object.getOwnPropertyDescriptor(U.prototype,"openLearnMore"),U.prototype),(0,n.default)(U.prototype,"closeLearnMore",[E.action],Object.getOwnPropertyDescriptor(U.prototype,"closeLearnMore"),U.prototype),(0,n.default)(U.prototype,"dismissABIForm",[E.action],Object.getOwnPropertyDescriptor(U.prototype,"dismissABIForm"),U.prototype),(0,n.default)(U.prototype,"handleQqmailUploadBtnClick",[E.action],Object.getOwnPropertyDescriptor(U.prototype,"handleQqmailUploadBtnClick"),U.prototype),(0,n.default)(U.prototype,"handleQqmailFileChange",[E.action],Object.getOwnPropertyDescriptor(U.prototype,"handleQqmailFileChange"),U.prototype),(0,n.default)(U.prototype,"selectProvider",[E.action],Object.getOwnPropertyDescriptor(U.prototype,"selectProvider"),U.prototype),(0,n.default)(U.prototype,"toggleOtherEmailMode",[E.action],Object.getOwnPropertyDescriptor(U.prototype,"toggleOtherEmailMode"),U.prototype),(0,n.default)(U.prototype,"toggleShowPassword",[E.action],Object.getOwnPropertyDescriptor(U.prototype,"toggleShowPassword"),U.prototype),(0,n.default)(U.prototype,"onEmailInviteMode",[E.action],Object.getOwnPropertyDescriptor(U.prototype,"onEmailInviteMode"),U.prototype),(0,n.default)(U.prototype,"startContactsFileUpload",[E.action],Object.getOwnPropertyDescriptor(U.prototype,"startContactsFileUpload"),U.prototype),(0,n.default)(U.prototype,"openContactsFileInput",[E.action],Object.getOwnPropertyDescriptor(U.prototype,"openContactsFileInput"),U.prototype),(0,n.default)(U.prototype,"uploadSelectedFile",[E.action],Object.getOwnPropertyDescriptor(U.prototype,"uploadSelectedFile"),U.prototype),(0,n.default)(U.prototype,"updateContactsFileName",[E.action],Object.getOwnPropertyDescriptor(U.prototype,"updateContactsFileName"),U.prototype),(0,n.default)(U.prototype,"closeQqMailImportModal",[E.action],Object.getOwnPropertyDescriptor(U.prototype,"closeQqMailImportModal"),U.prototype),(0,n.default)(U.prototype,"openQqmailImportModal",[E.action],Object.getOwnPropertyDescriptor(U.prototype,"openQqmailImportModal"),U.prototype),(0,n.default)(U.prototype,"transformEnterKeyPressToOpenLearnMoreAction",[E.action],Object.getOwnPropertyDescriptor(U.prototype,"transformEnterKeyPressToOpenLearnMoreAction"),U.prototype),U))}))
|
|
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,i,r,n,o,a,s,l,c){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var u
|
|
e.default=(0,a.setComponentTemplate)((0,i.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}),(u=class extends n.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/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,i,r,n,o,a,s,l,c,u,d){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var p
|
|
e.default=(0,o.setComponentTemplate)((0,i.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,u.default,d.default],isStrictMode:!0}),(p=class extends r.default{clickContact(e){e.stopPropagation()}},(0,t.default)(p.prototype,"clickContact",[n.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,i,r,n,o,a,s,l,c,u){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var d
|
|
e.default=(0,a.setComponentTemplate)((0,i.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,u.default],isStrictMode:!0}),(d=class extends n.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/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,i,r,n,o,a,s,l,c,u,d,p,m,h,_,b,g,f,T,E,I,y,S,O,R,C){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var v,A,N,k,w,P,M,L,D,U,F,G,j,x,H,z,V
|
|
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:()=>[b.default,g.on,f.default,T.default,E.fn,I.default,y.default,S.default,O.default,R.default,C.default],isStrictMode:!0}),(v=(0,h.inject)("locale"),A=(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,V=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,n.default)(this,V)+32
|
|
const i=e.length?e.slice((0,n.default)(this,V),t):this.skipBtn(!1);(0,n.default)(this,z)?this.visibleContactList=new d.TrackedArray(i):this.visibleContactList.push(...i)
|
|
let o=!1
|
|
t<e.length?o=!0:t=e.length
|
|
this.canLoadMore=o;(0,r.default)(this,V,t)}_sendInvitationsToDashContacts(e){var t
|
|
const i=(null===(t=this.locale)||void 0===t?void 0:t.requestIpCountryCode)??p.DEFAULT_COUNTRY_CODE,{isGuest:r,checkedContacts:n,abiResults:o,invitationPlatform:a}=this,s=r?"GUEST":"MEMBER",l={defaultCountryCode:i,uploadTransactionId:e}
|
|
o.updateInvitationCount(s,n,n.length)
|
|
if(r){const e=n.map((e=>(0,c.extractEntityInfoFromUrn)(e.urn).id))
|
|
return a.sendInvitationsByEmails(e,l)}const u=n.map((e=>e.urn))
|
|
return a.sendBatchProfileInvitations(u)}constructor(){super(...arguments);(0,t.default)(this,"locale",L,this);(0,t.default)(this,"router",D,this);(0,t.default)(this,"abiTracking",U,this);(0,t.default)(this,"abiResults",F,this);(0,t.default)(this,"tracking",G,this);(0,t.default)(this,"invitationPlatform",j,this);(0,i.default)(this,"controlName",p.METRICS_KEYS.EVENTS.SELECT_ONE);(0,i.default)(this,"visibleContactList",void 0)
|
|
z.set(this,{writable:!0,value:!0})
|
|
V.set(this,{writable:!0,value:0});(0,t.default)(this,"canLoadMore",x,this);(0,t.default)(this,"selectedContacts",H,this)
|
|
this.fetchMoreContacts();(0,r.default)(this,z,!1)}toggleSelectCard(e,t){const i=!t,r=this._getContactId(e)
|
|
i?this.selectedContacts.push(r):this.selectedContacts.splice(this.selectedContacts.findIndex((e=>e===r)),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:i,abiTracking:r,isGuest:n}=this
|
|
this._sendInvitationsToDashContacts(e).then((()=>this.skipBtn(!1)))
|
|
i.fireInteractionEvent(p.METRICS_KEYS.EVENTS.CONTINUE)
|
|
r.fireCustomImportInvitationCreateEvent({contacts:t,routeType:this.routeType,abookImportTransactionId:e,totalContacts:this.args.totalContacts})
|
|
r.fireAuditLogEvent(n)}skipBtn(){var e,t
|
|
let i=!(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,i)}}),L=(0,o.default)(M.prototype,"locale",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,o.default)(M.prototype,"router",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,o.default)(M.prototype,"abiTracking",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,o.default)(M.prototype,"abiResults",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=(0,o.default)(M.prototype,"tracking",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,o.default)(M.prototype,"invitationPlatform",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,o.default)(M.prototype,"canLoadMore",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),H=(0,o.default)(M.prototype,"selectedContacts",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new d.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,i,r,n,o,a,s,l,c,u,d,p,m,h,_,b,g,f,T,E,I,y){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var S,O,R,C,v,A,N,k,w,P,M,L,D,U,F,G,j,x
|
|
const H={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,b.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:()=>[b.Input,g.default,f.on,T.TextArea,E.concat,I.default,y.default],isStrictMode:!0}),(S=(0,d.inject)("abi-shared@abi-tracking"),O=(0,d.inject)("i18n"),R=(0,d.inject)("locale"),C=(0,d.inject)("persistent-toast-manager@persistent-toast-manager"),v=(0,d.inject)("invitation-platform@invitation-platform"),A=(0,s.localCopy)("args.transactionId",(0,c.generateTrackingId)()),N=(0,s.localCopy)("args.inviteList"),k=class extends u.default{get disableSubmit(){return(0,h.isEmpty)(this.inviteList)}get messageOptions(){return H}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",L,this);(0,t.default)(this,"invitationPlatform",D,this);(0,t.default)(this,"abookImportTransactionId",U,this);(0,t.default)(this,"error",F,this);(0,t.default)(this,"isWorking",G,this);(0,t.default)(this,"iweCustomMsgKey",j,this);(0,t.default)(this,"inviteList",x,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 i=this.abiTracking
|
|
i.fireImportSubmitEvent(e)
|
|
i.fireStandardImportInvitationImpressionEvent(e,t)
|
|
i.fireGuestImportInvitationCreateEvent(e,t)}sendIwe(){var e,t
|
|
const{i18n:i}=this,r=(null===(e=this.inviteList)||void 0===e?void 0:e.replace(/\s+/g,"").split(","))??[]
|
|
if(r.length>l.ABI_INVITE_WITH_EMAIL_LIMIT){this._showNotificationError(i.lookupTranslation(this.constructor,l.ABI_ERRORS_TO_MSGS.ERROR_SENDING_INVITATIONS_LIMIT)())
|
|
return!1}const n=(0,c.generateTrackingId)(),o=(null===(t=this.locale)||void 0===t?void 0:t.requestIpCountryCode)??l.DEFAULT_COUNTRY_CODE,{abookImportTransactionId:a}=this,s=r.filter((e=>l.EMAIL_PATTERN.test(e))),u=r.filter((e=>e&&!l.EMAIL_PATTERN.test(e))).length
|
|
let d=this.iweCustomMsgKey
|
|
d=d?i.lookupTranslation(this.constructor,d)():null
|
|
if(s.length<1){this._showNotificationError(i.lookupTranslation(this.constructor,l.ABI_ERRORS_TO_MSGS.INVALID_EMAIL)())
|
|
this.inviteList=""
|
|
return!1}if(u){this.inviteList=s.join(",")
|
|
this._showNotificationError(i.lookupTranslation(this.constructor,l.ABI_ERRORS_TO_MSGS.ENTERED_INVALID_EMAILS)([{numInvalidEmails:u}]))}const p=s.length
|
|
this.isWorking=!0
|
|
return this.invitationPlatform.sendInvitationsByEmails(s,{message:d,uploadTransactionId:n,defaultCountryCode:o}).then((()=>{if((0,_.isDestroying)(this))return
|
|
const e=i.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(i.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,r.default)(k.prototype,"abiTracking",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,r.default)(k.prototype,"i18n",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,r.default)(k.prototype,"locale",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,r.default)(k.prototype,"persistentToastManager",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,r.default)(k.prototype,"invitationPlatform",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,r.default)(k.prototype,"abookImportTransactionId",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,r.default)(k.prototype,"error",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=(0,r.default)(k.prototype,"isWorking",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,r.default)(k.prototype,"iweCustomMsgKey",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,r.default)(k.prototype,"inviteList",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,r.default)(k.prototype,"sendIwe",[p.action],Object.getOwnPropertyDescriptor(k.prototype,"sendIwe"),k.prototype),(0,r.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,i,r,n,o,a,s,l,c,u,d,p,m,h,_){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var b,g
|
|
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:()=>[d.default,p.Input,m.default,h.on,_.default],isStrictMode:!0}),(b=class extends c.default{constructor(){super(...arguments);(0,t.default)(this,"showPassword",g,this)}onKeyUp(e){if((0,s.isEnterKey)(e)){var t,i
|
|
null===(t=(i=this.args).onEnterKeypress)||void 0===t||t.call(i,e)}}toggleShowPassword(){this.showPassword=!this.showPassword}},g=(0,r.default)(b.prototype,"showPassword",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,r.default)(b.prototype,"onKeyUp",[u.action],Object.getOwnPropertyDescriptor(b.prototype,"onKeyUp"),b.prototype),(0,r.default)(b.prototype,"toggleShowPassword",[u.action],Object.getOwnPropertyDescriptor(b.prototype,"toggleShowPassword"),b.prototype),b))}))
|
|
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,i,r,n,o,a,s,l,c){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const u=(0,r.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:()=>[n.default,o.default,a.default,l.default,c.on,s.fn],isStrictMode:!0}),(0,i.default)("manage-source-group-header","ManageSourceGroupHeader"))
|
|
e.default=u}))
|
|
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,i,r,n,o,a,s,l,c,u,d,p,m,h,_,b,g,f,T,E){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var I,y,S
|
|
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,b.concat,h.default,_.default,b.fn,g.default,f.default,T.default,E.on],isStrictMode:!0}),(I=(0,u.inject)("lix"),y=class extends d.default{constructor(){super(...arguments);(0,i.default)(this,"isRemovingAll",!1);(0,t.default)(this,"lix",S,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")}},S=(0,r.default)(y.prototype,"lix",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,r.default)(y.prototype,"setElementIdToFocus",[c.action],Object.getOwnPropertyDescriptor(y.prototype,"setElementIdToFocus"),y.prototype),y))}))
|
|
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,i,r,n,o,a,s,l,c,u,d,p,m,h,_,b,g,f,T,E,I,y,S){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var O,R,C,v,A,N,k,w,P,M,L,D,U,F,G,j,x,H,z,V,B,q,K
|
|
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:()=>[I.hash,E.default,I.concat,I.fn,y.default,S.on],isStrictMode:!0}),(O=(0,f.inject)("persistent-toast-manager@persistent-toast-manager"),R=(0,f.inject)("i18n"),C=(0,f.inject)("global-services@store-shim"),v=(0,f.inject)("tracking"),A=(0,f.inject)("jet"),N=(0,f.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",L,this);(0,t.default)(this,"storeShim",D,this);(0,t.default)(this,"tracking",U,this);(0,t.default)(this,"jet",F,this);(0,t.default)(this,"windowService",G,this);(0,t.default)(this,"integration",j,this);(0,t.default)(this,"meta",x,this);(0,t.default)(this,"isRemovingAll",H,this);(0,t.default)(this,"modalI18n",z,this);(0,t.default)(this,"confirmAction",V,this);(0,t.default)(this,"isConfirmationModalOpen",B,this);(0,t.default)(this,"selectedSourceId",q,this);(0,t.default)(this,"popup",K,this)}get isIntegration(){return void 0!==this.integration}get isContact(){return this.args.sourceGroupType===m.CONTACTS}_showToastForAction(e,t){const{sourceGroupType:i}=this.args,{i18n:r,persistentToastManager:n}=this,o=e?"SUCCESS":"ERROR",a=m.NOTIFICATION_COPY_I18N[o].TITLE,s=i.toUpperCase(),l=t.toUpperCase(),c=m.NOTIFICATION_COPY_I18N[o][l][s]
|
|
let u=r.lookupTranslation(this.constructor,c)()
|
|
if(this.isIntegration){var d
|
|
u=r.lookupTranslation(this.constructor,c)([{source:null===(d=this.integration)||void 0===d?void 0:d.source}])}const p=r.lookupTranslation(this.constructor,a)()
|
|
e?n.success({message:u,title:p}):n.error({message:u,title:p})}_onUpdateIntegrationSuccess(e,t){const{integration:i,meta:r}=this
|
|
this._showToastForAction(!0,e)
|
|
if(e===m.INTEGRATION_ACTION.STOP_SOURCE)(0,b.set)(i,"active",!1)
|
|
else if(e===m.INTEGRATION_ACTION.REMOVE_SOURCE)(0,b.set)(r,"exists",!1)
|
|
else{(0,b.set)(r,"exists",!0);(0,b.set)(i,"active",!0)
|
|
if(t&&t.data){var n;(0,b.set)(i,"contactsIntegrationV2Urn",null===(n=t.data)||void 0===n?void 0:n.value)}}}_onUpdateIntegrationError(e){this._showToastForAction(!1,e)}_sendRequestFor(e,t){const{meta:i,storeShim:r}=this
|
|
return p.default.sendProviderIntegrationRequest(r,e,t).then((e=>{(0,T.isDestroying)(this)||this._onUpdateIntegrationSuccess(t,e)})).catch((e=>{if((0,T.isDestroying)(this))throw e
|
|
this._onUpdateIntegrationError(t)
|
|
if(!(0,d.default)(e))throw e
|
|
this.jet.logError(e,u.ABI_ERROR_LOG_TAGS,!1)})).finally((()=>{if(!(0,T.isDestroying)(this)){(0,b.set)(i,"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,T.isDestroying)(this)||this._showToastForAction(!0,m.INTEGRATION_ACTION.REMOVE_ALL)})).catch((e=>{if((0,T.isDestroying)(this))throw e
|
|
this._showToastForAction(!1,m.INTEGRATION_ACTION.REMOVE_ALL)
|
|
if(!(0,d.default)(e))throw e
|
|
this.jet.logError(e,u.ABI_ERROR_LOG_TAGS,!1)})).finally((()=>{var e
|
|
if(!(0,T.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 i=t.toUpperCase(),r=e.toUpperCase(),n=e===m.INTEGRATION_ACTION.REMOVE_ALL?`${i}_NUCLEAR`:`${r}_${i}`
|
|
return m.MODAL_COPY_I18N[n]}willDestroy(){super.willDestroy(...arguments)
|
|
h.default&&window.onAuthenticationComplete&&(window.onAuthenticationComplete=null)}_resync(e,t){const i={source:t,handle:e,action:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"activate"}
|
|
this._sendRequestFor(i,m.INTEGRATION_ACTION.RESYNC_SOURCE)}_sync(e,t){if(h.default){const i=e.source,r=encodeURIComponent(m.GAAP_SCRIPTS[i]),n=s.default.sanitizeUrl(`${this.windowService.getLocation.origin}${m.GENIE_URL}${r}`)
|
|
this.tracking.fireInteractionEvent(m.INTEGRATION_ACTION.SYNC_SOURCE)
|
|
window.onAuthenticationComplete=(e,r)=>{if(!r){(0,b.set)(t,"isWorking",!0)
|
|
this._resync(e,i,"activate")}this.popup.close()}
|
|
this.popup=this.windowService.open(s.default.sanitizeUrl(n),"",m.POPUP_SIZE)}}closeConfirmationModal(){this._resetModal()}openDialogWith(e,t){const{isIntegration:i}=this,{sourceGroupType:r}=this.args,n=i&&t.contactsIntegrationV2Urn||"",o=this._getPromptI18n(e,r)
|
|
i&&(0,b.set)(o,"source",t.source)
|
|
this.modalI18n=o
|
|
this.confirmAction=e
|
|
this.selectedSourceId=n
|
|
this.isConfirmationModalOpen=!0}modalPromptConfirmed(){const{confirmAction:e}=this,{selectedSourceId:t}=this,{meta:i}=this
|
|
this._resetModal()
|
|
switch(e){case m.INTEGRATION_ACTION.REMOVE_SOURCE:(0,b.set)(i,"isWorking",!0)
|
|
this._removeSource(t)
|
|
break
|
|
case m.INTEGRATION_ACTION.STOP_SOURCE:(0,b.set)(i,"isWorking",!0)
|
|
this._stopSource(t)
|
|
break
|
|
case m.INTEGRATION_ACTION.REMOVE_ALL:this.isRemovingAll=!0
|
|
this._removeAll()
|
|
break
|
|
default:(0,b.set)(i,"isWorking",!0)
|
|
this._stopSource(t)}}sync(e,t){this._sync(e,t)}resync(e){const{handle:t,source:i}=e
|
|
this.tracking.fireInteractionEvent(m.INTEGRATION_ACTION.RESYNC_SOURCE)
|
|
this._resync(t,i,"activate")}navigateToHelpCenterUrl(e){window.open(e,"_blank")}},M=(0,r.default)(P.prototype,"persistentToastManager",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,r.default)(P.prototype,"i18n",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,r.default)(P.prototype,"storeShim",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,r.default)(P.prototype,"tracking",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,r.default)(P.prototype,"jet",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=(0,r.default)(P.prototype,"windowService",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,r.default)(P.prototype,"integration",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,r.default)(P.prototype,"meta",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=(0,r.default)(P.prototype,"isRemovingAll",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,r.default)(P.prototype,"modalI18n",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),V=(0,r.default)(P.prototype,"confirmAction",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=(0,r.default)(P.prototype,"isConfirmationModalOpen",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=(0,r.default)(P.prototype,"selectedSourceId",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),K=(0,r.default)(P.prototype,"popup",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,r.default)(P.prototype,"closeConfirmationModal",[b.action],Object.getOwnPropertyDescriptor(P.prototype,"closeConfirmationModal"),P.prototype),(0,r.default)(P.prototype,"openDialogWith",[b.action],Object.getOwnPropertyDescriptor(P.prototype,"openDialogWith"),P.prototype),(0,r.default)(P.prototype,"modalPromptConfirmed",[b.action],Object.getOwnPropertyDescriptor(P.prototype,"modalPromptConfirmed"),P.prototype),(0,r.default)(P.prototype,"sync",[b.action],Object.getOwnPropertyDescriptor(P.prototype,"sync"),P.prototype),(0,r.default)(P.prototype,"resync",[b.action],Object.getOwnPropertyDescriptor(P.prototype,"resync"),P.prototype),(0,r.default)(P.prototype,"navigateToHelpCenterUrl",[b.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,i,r,n,o){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const a=(0,r.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:()=>[n.default,o.hash],isStrictMode:!0}),(0,i.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,i,r,n,o,a,s,l,c,u,d,p,m,h,_,b){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var g,f,T,E,I
|
|
const y=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:()=>[u.default,d.default,p.default,m.default,h.default,_.default,b.fn],isStrictMode:!0}),(g=(0,s.inject)("i18n"),f=(0,l.localCopy)("args.isDropdownOpen"),T=class extends c.default{constructor(){super(...arguments);(0,t.default)(this,"i18n",E,this);(0,t.default)(this,"isDropdownOpen",I,this)}get triggerA11yText(){const{sortByText:e}=this.args
|
|
let t
|
|
switch(null==e?void 0:e.toString()){case y.FIRST_NAME:t="i18n_sort_connections_first_name_trigger_a11y_text"
|
|
break
|
|
case y.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)()}},E=(0,r.default)(T.prototype,"i18n",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,r.default)(T.prototype,"isDropdownOpen",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T))}))
|
|
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,i,r,n,o,a,s){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var l,c,u
|
|
const d=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",u,this);(0,i.default)(this,"queryParams",["afterRoute","isAcceptInvite","isSendInvite","member","importTaskHandle","transactionId","trk","isOrganic"]);(0,i.default)(this,"contactsLength",0);(0,i.default)(this,"isAcceptInvite",null);(0,i.default)(this,"isSendInvite",null);(0,i.default)(this,"isOrganic",null);(0,i.default)(this,"memberTarget",null);(0,i.default)(this,"stepNum",1);(0,i.default)(this,"stepTotal",2)}get isGuest(){return d.test(this.router.currentRouteName)}},u=(0,r.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,i,r,n,o,a){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.FIELD_NAME_MAP=void 0
|
|
e.constructSaveUrl=function(e){return`/${n.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,n){e.executeQuery(a.default,{contactsDashCuratedContactsId:n},{reload:!0}).catch((e=>{if((0,r.default)(e)){t.logError(e,i.ABI_ERROR_LOG_TAGS,!1)
|
|
return[]}throw e}))}
|
|
e.getCuratedContacts=function(e,t,n){return e.queryURL(s,{params:n,reload:!0}).catch((e=>{if((0,r.default)(e)){t.logError(e,i.ABI_ERROR_LOG_TAGS,!1)
|
|
return[]}throw e}))}
|
|
e.getDashCuratedContacts=l
|
|
const s="growth/curatedContacts"
|
|
function l(e,n,a){return e.executeQuery(o.default,a,{reload:!0}).then((e=>(0,t.get)(e,"data.contactsDashCuratedContactsByContacts"))).catch((e=>{if((0,r.default)(e)){n.logError(e,i.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,i,r){"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 n(e,t){return`/${r.default.namespace}/${e}?action=${t}`}function o(e){let{handle:t,source:i}=e
|
|
return[`/${r.default.namespace}/voyagerContactsDashProviderIntegrations`,{reload:!0,method:"POST",queryParams:{action:"activate"},params:{handle:t,source:i}}]}function a(e){return[`/${r.default.namespace}/voyagerContactsDashProviderIntegrations`,{reload:!0,method:"POST",queryParams:{action:"deactivate"},params:{contactsIntegrationV2Urn:e,removeData:!0}}]}function s(e){return[`/${r.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 i=n(t,e)
|
|
return[i,"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 i.INTEGRATION_ACTION.STOP_SOURCE:return s(e.id)
|
|
case i.INTEGRATION_ACTION.REMOVE_SOURCE:return a(e.id)
|
|
case i.INTEGRATION_ACTION.SYNC_SOURCE:case i.INTEGRATION_ACTION.RESYNC_SOURCE:return o(e)
|
|
default:return s(e.id)}}const u={sendProviderIntegrationRequest:function(e,t,i){return e.queryURL(...c(t,i)).then((e=>({data:{value:e}})))},sendProviderIntegrationRemoveAllRequest:function(e,t){return e.adapterFor("-ember-m3").ajax(...l(t))}}
|
|
e.default=u}))
|
|
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,i,r){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.createImportTicketIdDashRequest=function(e){const{emailAddress:t,password:i,abookImportTransactionId:r}=e
|
|
return["/voyager/api/voyagerContactsDashEmailImportTask","POST",{data:{transactionId:r,email:t,password:i}}]}
|
|
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 n={q:"findEmailProviders",emailAddress:e},o=(0,t.addQueryParams)(`/${i.default.namespace}/voyagerContactsDashEmailProvider`,n)
|
|
return[o,{cacheKey:(0,r.default)(o,n),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,i,r,n,o,a,s,l,c,u,d,p){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var m,h,_,b
|
|
const g={refreshModel:!1}
|
|
e.default=(m=(0,a.inject)("global-services@store-shim"),h=class extends c.default{constructor(){super(...arguments);(0,i.default)(this,"pageKey","flagship3_abi_intro");(0,t.default)(this,"storeShim",_,this);(0,t.default)(this,"emailPassed",b,this);(0,i.default)(this,"queryParams",{afterRoute:g,emailHandle:g,transactionId:g})}_modelHash(e,t){const i=t.to?t.to.queryParams:{},{afterRoute:r,transactionId:n}=e,{inviteActionFailed:o,isSendInvite:a,isAcceptInvite:c,member:d,knownError:m}=i,{storeShim:h}=this
|
|
let _
|
|
d&&(_=(0,p.getProfileById)(h,d,"com.linkedin.voyager.dash.deco.identity.profile.MiniProfile"))
|
|
const b=h.queryURL("fileUploadToken",{cacheKey:"fileUploadToken|ADDRESS_BOOK",params:{type:"ADDRESS_BOOK"},reload:!0}),g=e.emailHandle
|
|
let f
|
|
if(g){const e=l.default.create({emailAddress:g})
|
|
f=(0,s.resolve)(e)
|
|
this.emailPassed=!0}else{f=h.queryURL(`/${u.default.namespace}/voyagerContactsDashSupportedEmail`,{cacheKey:"dashSupportedEmail",reload:!0,params:{recipe:"com.linkedin.voyager.dash.deco.contacts.SupportedEmail"}})
|
|
this.emailPassed=!1}(0,l.setProperties)(this,{afterRoute:r,transactionId:n})
|
|
return{profile:_,prefillEmail:f,fileUploadToken:b,acceptInvite:c,sendInvite:a,showInviteAlert:!(!c&&!a),inviteActionFailed:o,knownError:m}}_grabFulfilled(e){const t={}
|
|
let i
|
|
for(i in e)"fulfilled"===e[i].state&&(t[i]=e[i].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,r.default)(h.prototype,"storeShim",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,r.default)(h.prototype,"emailPassed",[d.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,i,r,n,o,a,s,l,c,u,d,p,m,h,_,b,g,f,T){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var E,I,y,S,O,R,C,v,A,N,k,w,P,M
|
|
e.default=(E=(0,a.inject)("abi-shared@abi-results"),I=(0,a.inject)("gdpr-notice@gdpr-notice"),y=(0,a.inject)("i18n"),S=(0,a.inject)("locale"),O=(0,a.inject)("global-services@store-shim"),R=(0,a.inject)("tracking"),C=class extends c.default{constructor(){super(...arguments);(0,i.default)(this,"pageKey","flagship3_abi_results");(0,t.default)(this,"abiResults",v,this);(0,t.default)(this,"gdprNotice",A,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,i.default)(this,"showInviteAlert",!1);(0,t.default)(this,"stepNum",M,this);(0,i.default)(this,"ctaTextI18nKey","i18n_view_settings_mobile")
|
|
this.contactsProcessor=new g.default(this.storeShim)}resetController(e,t){if(t){(0,l.setProperties)(e,{contactsLength:0,memberTarget:null,stepNum:1})
|
|
this.abiResults.reset()}for(var i=arguments.length,r=new Array(i>2?i-2:0),n=2;n<i;n++)r[n-2]=arguments[n]
|
|
super.resetController(...r)}setupController(e,t){var i,r
|
|
if((0,o.isDestroying)(this))return
|
|
super.setupController(e,t)
|
|
const{inviteActionFailed:n,isAcceptInvite:a,isSendInvite:s,inviteeProfile:c}=t,u=null===(i=t.memberContacts)||void 0===i?void 0:i.length,d=null===(r=t.guestContacts)||void 0===r?void 0:r.length,p=(a||s)&&Object.keys(c).length||n,m=!!u,h=m?u:d,_=m?"m2m":"m2g",b=this._buildSteps(u,d,m);(0,l.set)(t,"steps",b);(0,l.set)(this,"transitionToRoute",b[0].route.replace(/^abi\./,""));(0,l.setProperties)(e,{contactsLength:h,memberTarget:_,inviteActionFailed:n,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,i){const r=[],n=e||t,o=d.ABI_STEPS,{successEnabledForPlatform:a}=this,{afterRoute:s}=this,l=s&&"undefined"!==this.afterRoute
|
|
e&&r.push(o.M2M_STEP)
|
|
t&&r.push(o.M2G_STEP)
|
|
e&&t&&!i&&r.reverse()
|
|
n&&a&&r.push(o.SUCCESS)
|
|
l&&s!==o.DEFAULT_AFTER_ROUTE.route&&r.push({route:s})
|
|
r.push(o.DEFAULT_AFTER_ROUTE)
|
|
return r}model(e,t){if((0,o.isDestroying)(this))return
|
|
const{isOrganic:i,importTaskHandle:r,trk:n,transactionId:a,afterRoute:c}=e,{inviteActionFailed:p,isAcceptInvite:h,isSendInvite:_,member:b}=t.to?t.to.queryParams:{},g=a||(0,u.generateTrackingId)(),f=c||d.ABI_ROUTES.DEFAULT_AFTER_ROUTE,E=t.to.name,I=this.controllerFor(d.RESULTS_PATH)
|
|
let y={}
|
|
b&&(y=(0,T.getProfileById)(this.storeShim,b,"com.linkedin.voyager.dash.deco.identity.profile.MiniProfile"))
|
|
const S=this._getImportedContactsParams(g,r),O={isSendInvite:_,inviteeProfile:y,inviteActionFailed:p,isAcceptInvite:h,isOrganic:i,importedContactsParams:S,entryPoint:d.WYLO_ENTRY_POINTS[n],transactionId:g};(0,l.set)(this,"afterRoute",f)
|
|
this._startMeasurement(d.RL_MEASUREMENTS.FETCH_CONTACT)
|
|
const R=(0,m.getDashContactsQueryUrl)(S)
|
|
return this.storeShim.queryURL(R,{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)),i=e.elements.map((e=>{var t
|
|
return null===(t=e.deviceUploadedContactsUnion)||void 0===t?void 0:t.guestContact})).filter((e=>!!e))
|
|
const r=t.length,n=i.length,a=E===d.ABI_ROUTES.MEMBER_RESULTS?r:n;(0,l.set)(I,"contactsLength",a)
|
|
this._endMeasurement(d.RL_MEASUREMENTS.FETCH_CONTACT,r+n)
|
|
if(r||n){this._startMeasurement(d.RL_MEASUREMENTS.PROCESS_MEMBER_CONTACTS)
|
|
t=this.contactsProcessor.dashContactsHandler(t)
|
|
this._endMeasurement(d.RL_MEASUREMENTS.PROCESS_MEMBER_CONTACTS,r)
|
|
this._startMeasurement(d.RL_MEASUREMENTS.PROCESS_GUEST_CONTACTS)
|
|
i=this.contactsProcessor.dashContactsHandler(i,!0)
|
|
O.guestContacts=i
|
|
this._endMeasurement(d.RL_MEASUREMENTS.PROCESS_GUEST_CONTACTS,n);(0,l.set)(O,"memberContacts",t)
|
|
return(0,s.hash)(O)}this.controllerFor(d.RESULTS_PATH).target.transitionTo(f)})).catch((e=>{if((0,o.isDestroying)(this))throw e
|
|
this.tracking.fireTrackingPayload(d.METRICS_KEYS.EVENTS.IMPORT_DISCARD_EVENT,{abookImportInvitationDiscardReason:{type:"CONTACTS_FETCH"},abookImportTransactionId:a})}))}_getImportedContactsParams(e,t){var i
|
|
const r={uploadTransactionId:e,deviceCountryCode:(null===(i=this.locale)||void 0===i?void 0:i.requestIpCountryCode)||d.DEFAULT_COUNTRY_CODE,q:"viewer"}
|
|
t&&(r.importTaskHandle=t)
|
|
return r}_nextStep(){var e
|
|
const t=null===(e=this.currentModel)||void 0===e?void 0:e.steps,i=this._getStepNum(),r=t.length-1,n=t[i],{memberTarget:o}=n,{afterRoute:a}=this
|
|
let{route:s}=n
|
|
i<r?(0,l.setProperties)(this.controllerFor(d.RESULTS_PATH),{stepNum:i+1,memberTarget:o}):i===r&&a&&(s=a)
|
|
this.controllerFor(d.RESULTS_PATH).target.transitionTo(s)}_getStepNum(){return this.controllerFor(d.RESULTS_PATH).stepNum}_showGDPRNotice(){const{i18n:e}=this,t="abi@results",i=e.lookupTranslation(t,"i18n_results_landing_notice")(),r=e.lookupTranslation(t,this.ctaTextI18nKey)(),n="/mynetwork/settings/manage-syncing";(0,h.whenRouteIdle)().then((()=>{(0,o.isDestroying)(this)||this.gdprNotice.showToast(p.GDPR_NOTICE_POLICY_TYPE.MANAGE_CONTACT_PAGE,i,r,n)}))}_getGroupByNumberOfContacts(e){const t=Math.floor(e/1e3)
|
|
return t<10?t:10}_startMeasurement(e){_.default&&b.default.addMarker(e.START_MARKER)}_endMeasurement(e,t){if(_.default){const i=e.START_MARKER,r=e.END_MARKER,n=e.NAME
|
|
if(b.default.hasMarkerName(i)){const e=this._getGroupByNumberOfContacts(t)
|
|
b.default.addMarker(r)
|
|
b.default.measureTime(`${n}_${e}`,i,r)}}}skipBtn(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0]
|
|
this._nextStep()
|
|
e&&this.tracking.fireInteractionEvent(d.METRICS_KEYS.EVENTS.SKIP)}didTransition(){this._showGDPRNotice()
|
|
1===this.controllerFor(d.RESULTS_PATH).stepNum&&this.replaceWith(this.transitionToRoute)
|
|
return!0}},v=(0,r.default)(C.prototype,"abiResults",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,r.default)(C.prototype,"gdprNotice",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,r.default)(C.prototype,"i18n",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,r.default)(C.prototype,"locale",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,r.default)(C.prototype,"storeShim",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,r.default)(C.prototype,"tracking",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,r.default)(C.prototype,"stepNum",[f.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),(0,r.default)(C.prototype,"skipBtn",[l.action],Object.getOwnPropertyDescriptor(C.prototype,"skipBtn"),C.prototype),(0,r.default)(C.prototype,"didTransition",[l.action],Object.getOwnPropertyDescriptor(C.prototype,"didTransition"),C.prototype),C)}))
|
|
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,i,r,n,o,a,s,l,c,u){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var d,p,m,h,_,b,g,f
|
|
const T="abi-shared@abi/results"
|
|
e.default=(d=(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,i.default)(this,"pageKey","flagship3_abi_m2g");(0,t.default)(this,"abiTracking",_,this);(0,t.default)(this,"heathrow",b,this);(0,t.default)(this,"i18n",g,this);(0,t.default)(this,"transactionId",f,this)}_getI18NStrings(e){var t,i
|
|
const{i18n:r}=this,n=r.lookupTranslation(T,"i18n_m2g_headline_c")(),o=r.lookupTranslation(T,"i18n_m2g_subhead_line_2")(),a=r.lookupTranslation(T,"i18n_m2g_subhead_c")([{num:null===(t=e.model)||void 0===t||null===(i=t.guestContacts)||void 0===i?void 0:i.length}])
|
|
return{i18nStepCopy:r.lookupTranslation(T,"i18n_abi_nav_step")([{stepNum:e.stepNum,stepTotal:e.stepTotal}]),i18nHeadingCopy:n,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 i=t?c.SUGGESTED_ROUTE.RESULT_LANDING:c.SUGGESTED_ROUTE.INTRO
|
|
this.transactionId=this.abiTracking.fireAbiTracking(e.entryPoint,i,e.transactionId)
|
|
e.entryImpressionFired=!0}))
|
|
return e}setupController(e){var t,i
|
|
if((0,o.isDestroying)(this))return
|
|
super.setupController(...arguments)
|
|
const r=this.controllerFor(c.RESULTS_PATH),n=this._getI18NStrings(r);(0,s.setProperties)(e,{stepNum:r.stepNum,stepTotal:r.stepTotal,contactsLength:r.contactsLength,...n})
|
|
const a=null===(t=r.model)||void 0===t||null===(i=t.guestContacts)||void 0===i?void 0:i.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,r.default)(h.prototype,"abiTracking",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,r.default)(h.prototype,"heathrow",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,r.default)(h.prototype,"i18n",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,r.default)(h.prototype,"transactionId",[u.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,i,r,n,o,a,s,l,c){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var u,d,p,m,h,_,b
|
|
const g="abi-shared@abi/results"
|
|
e.default=(u=(0,a.inject)("abi-shared@abi-tracking"),d=(0,a.inject)("heathrow@heathrow"),p=(0,a.inject)("i18n"),m=class extends s.default{constructor(){super(...arguments);(0,i.default)(this,"pageKey","flagship3_abi_m2m");(0,t.default)(this,"abiTracking",h,this);(0,t.default)(this,"heathrow",_,this);(0,t.default)(this,"i18n",b,this)}_getI18NStrings(e){var t,i
|
|
const{i18n:r}=this
|
|
return{i18nStepCopy:r.lookupTranslation(g,"i18n_abi_nav_step")([{stepNum:e.stepNum,stepTotal:e.stepTotal}]),i18nHeadingCopy:r.lookupTranslation(g,"i18n_m2m_header")(),i18nSubheadingCopy:r.lookupTranslation(g,"i18n_m2m_subheader")([{num:null===(t=e.model)||void 0===t||null===(i=t.memberContacts)||void 0===i?void 0:i.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 i=t?l.SUGGESTED_ROUTE.RESULT_LANDING:l.SUGGESTED_ROUTE.INTRO;(0,c.set)(this,"transactionId",this.abiTracking.fireAbiTracking(e.entryPoint,i,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),i=this._getI18NStrings(t);(0,c.setProperties)(e,{isExtendedHeader:t.isExtendedHeader,profile:t.profile,...i})}},h=(0,r.default)(m.prototype,"abiTracking",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,r.default)(m.prototype,"heathrow",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,r.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,i,r,n,o,a,s,l){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var c,u,d,p,m
|
|
e.default=(c=(0,a.inject)("abi-shared@abi-results"),u=(0,a.inject)("router"),d=class extends l.default{constructor(){super(...arguments);(0,t.default)(this,"abiResults",p,this);(0,t.default)(this,"router",m,this);(0,i.default)(this,"pageKey","flagship3_abi_success");(0,i.default)(this,"totalInviteCount",0)}_getMemberContactsWithPhotos(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]
|
|
const t=e.length,i=[]
|
|
for(let r=0;r<t&&i.length<3;r++){const t=e[r]
|
|
t&&t.profilePicture&&i.push(s.default.create({entity:t}))}return i.length>=3?i:[]}setupController(e){if((0,o.isDestroying)(this))return
|
|
super.setupController(...arguments)
|
|
const t=this.abiResults,{totalInviteCount:i,m2mContacts:r}=t.getProperties("totalInviteCount","m2mInviteCount","m2mContacts"),n=this._getMemberContactsWithPhotos(r),a=n.length?i-3:0
|
|
e.setProperties({memberContactsWithPhotos:n,seeMoreCount:a,totalInviteCount:i})}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,r.default)(d.prototype,"abiResults",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,r.default)(d.prototype,"router",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,r.default)(d.prototype,"transitionToResults",[s.action],Object.getOwnPropertyDescriptor(d.prototype,"transitionToResults"),d.prototype),d)}))
|
|
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,i,r,n,o,a,s,l,c,u,d,p,m,h){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var _,b,g
|
|
const f=u.default.getDomainUrl()
|
|
e.default=(_=(0,a.inject)("global-services@store-shim"),b=class extends c.default{constructor(){super(...arguments);(0,i.default)(this,"pageKey","flagship3_people_settings_syncing");(0,t.default)(this,"storeShim",g,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,d.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??"",i=this._doesExist(e);(0,l.setProperties)(e,{active:e.active??!1,source:t})
|
|
const{providerLabel:r,providerName:n,icon:o}=p.SOURCE_METADATA[t],a={exists:i,providerName:n,icon:o,providerLabel:r};(0,m.isPresent)(p.SOURCES_WITH_SUPPORTED_HANDLE[t])&&(a.email=e.handle??"")
|
|
const s=p.HELP_CENTER_URLS[t];(0,m.isPresent)(s)&&!i&&(a.helpCenterUrl=`${f}${s}`)
|
|
return{meta:a,model:e}}))}}))}_doesExist(e){return!!e.contactsIntegrationV2Urn}_sortBySourceTypeAsc(e,t){var i,r
|
|
return(null===(i=e.model)||void 0===i?void 0:i.sourceType)>(null===(r=t.model)||void 0===r?void 0:r.sourceType)?1:-1}_sortBySourceAsc(e,t){var i,r
|
|
return(null===(i=e.model)||void 0===i?void 0:i.source)>(null===(r=t.model)||void 0===r?void 0:r.source)?1:-1}_decorateSources(e){const t=e.integrations,i=[]
|
|
t.forEach((e=>{var t
|
|
const r=(null===(t=e.model)||void 0===t?void 0:t.source)??"",[n,o=""]=r.split("_"),a=n[0].toUpperCase()+n.slice(1).toLowerCase(),s=o.toLowerCase();(0,l.setProperties)(e.meta,{providerLabel:a,sourceType:s})
|
|
"MICROSOFT"!==n&&i.push(e)}))
|
|
i.sort(this._sortBySourceTypeAsc);(0,l.set)(e,"sources",i)}_decorateSourcesForStopSyncs(e){const t=e.integrations,i=[],r=[]
|
|
t.forEach((e=>{var t
|
|
"contacts"===(null===(t=e.meta)||void 0===t?void 0:t.providerLabel)?i.push(e):r.push(e)}))
|
|
const n={model:{providerLabel:"contacts",active:!1,handle:null,source:"MOBILE_CONTACTS"},meta:{icon:"phone",providerName:"mobile_contacts",helpCenterUrl:`${f}/help/linkedin/answer/82248`}},o={model:{providerLabel:"calendar",active:!1,handle:null,source:"MOBILE_CALENDAR"},meta:{icon:"phone",providerName:"mobile_calendar",helpCenterUrl:`${f}/help/linkedin/answer/50201`,canCreateIntegration:!1}}
|
|
i.sort(this._sortBySourceAsc)
|
|
r.sort(this._sortBySourceAsc)
|
|
i.push(n)
|
|
r.push(o);(0,l.setProperties)(e,{contactIntegrations:i,calendarIntegrations:r})}_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:`${f}/help/linkedin/suggested/1278/syncing-contacts-from-other-address-books-and-sources`,privacyPolicyUrl:`${f}/legal/mobile/privacy-policy`})}}},g=(0,r.default)(b.prototype,"storeShim",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b)}))
|
|
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,i,r,n,o,a,s,l,c){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var u,d,p,m,h,_,b
|
|
e.default=(u=(0,a.inject)("global-services@store-shim"),d=(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",b,this)}_resolveDomainCallback(e){let{emailAddress:t}=e
|
|
return this.storeShim.queryURL(...(0,s.createResolveEmailDomainRequest)(t)).then((e=>{var t,i,r,n
|
|
return{isOauth:!(null!==(t=e.elements)&&void 0!==t&&null!==(i=t[0])&&void 0!==i&&i.passwordInputRequired),providerName:null===(r=e.elements)||void 0===r||null===(n=r[0])||void 0===n?void 0:n.emailProviderType}}))}_getImportTicketIdCallback(e,t){const i=(0,s.createImportTicketIdDashRequest)(t)
|
|
return this.storeShim.adapterFor("-ember-m3").ajax(...i).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:i}=t
|
|
return this.storeShim.queryURL(...(0,s.createPollStatusDashRequest)(i)).then((t=>{if((0,o.isDestroying)(this))return
|
|
const{state:i}=t
|
|
if(!i)throw e.CONSTANTS.IMPORT_ERRORS.IMPORT_ERROR_OTHER
|
|
"ERROR_BAD_LOGIN"===i&&this.jet.logError(i,c.ABI_JET_TAGS.IMPORT_DASH_ERROR_BAD_LOGIN,!1)
|
|
return{authSpecGaapScriptV2Urn:t.authSpecGaapScriptV2Urn,status:i}})).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 i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
|
|
const r={abookImportTransactionId:e}
|
|
i.status&&(r.status=i.status)
|
|
this.tracking.fireTrackingPayload(t,r)}validateEmail(e){let{abiInstance:t,emailAddress:i}=e
|
|
return t.validateEmailAndResolveDomain({emailAddress:i,resolveDomainCallback:this._resolveDomainCallback.bind(this)})}startEmailContactsImport(e){let{abiInstance:t,providerData:i}=e
|
|
const r={abookImportTransactionId:i.abookImportTransactionId,emailAddress:i.emailAddress,getImportTicketIdCallback:this._getImportTicketIdCallback.bind(this,t),pollStatusCallback:this._getPollStatusCallback.bind(this,t),fireTrackingEventCallback:this._fireTrackingEventCallback.bind(this,i.abookImportTransactionId)}
|
|
return i.password?t.importContactsFromNonOauthDomain({...r,password:i.password}):t.importContactsFromOauthDomain({...r,provider:i.providerName,jSecure:jSecure})}},h=(0,r.default)(m.prototype,"storeShim",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,r.default)(m.prototype,"tracking",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,r.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,i,r,n,o,a,s){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var l,c,u,d
|
|
e.default=(l=class extends a.default{constructor(){super(...arguments);(0,t.default)(this,"m2gInviteCount",c,this);(0,t.default)(this,"m2mInviteCount",u,this);(0,t.default)(this,"m2mContacts",d,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]:[],i=arguments.length>2?arguments[2]:void 0
|
|
const r=t.length,n=e.includes("MEMBER")?"m2m":"m2g",o=i||r
|
|
if("m2m"===n){this.m2mInviteCount=o
|
|
if(r>=3){this.m2mContacts.length=0
|
|
this.m2mContacts=new s.TrackedArray(t)}}else"m2g"===n&&(this.m2gInviteCount=o)}},c=(0,r.default)(l.prototype,"m2gInviteCount",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),u=(0,r.default)(l.prototype,"m2mInviteCount",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),d=(0,r.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,i,r,n,o,a,s,l,c,u){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var d,p,m,h,_
|
|
e.default=(d=(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:i}=this
|
|
i.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:i}=this
|
|
i.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:i,contacts:r,eventName:n}=e,o=e.routeType?e.routeType.toUpperCase():"",a=[],l={emailCount:0,smsCount:0,memberCount:0}
|
|
r.forEach((e=>{const{contactType:t,urn:i,"invitation.trackingId":r}=(0,u.getProperties)(e,"contactType","urn","invitation.trackingId"),n=r||(0,c.generateTrackingId)()
|
|
l[t]++
|
|
a.push({recipientUrn:i,invitationTrackingId:n})}))
|
|
const d={abookImportTransactionId:i,invitationCounts:l,invitationTrackingInfo:a,abookFetchTransactionId:null,mobileHeader:null}
|
|
n.match(s.METRICS_KEYS.EVENTS.IMPORT_INVITATION_IMPRESSION_EVENT)?Object.assign(d,{impressionType:o,count:0,numberOfExistingContacts:0,numberOfNewContacts:0,numberOfContactsPortedFromPhoneNumber:l.smsCount,suggestedConnections:null,suggestedInvitations:null}):Object.assign(d,{invitationType:o,numberOfInvitationsSent:r.length,invitationReceiptEmails:[]})
|
|
t.fireTrackingPayload(n,d)}fireAbiTracking(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,c.generateTrackingId)()
|
|
const r={abookImportTransactionId:i,entryPoint:e,suggestedRoute:t},{tracking:n}=this
|
|
t?n.fireTrackingPayload(s.EVENTS.IMPORT_ENTRY_IMPRESSION_EVENT,r):this.heathrow.organicAbiShouldSkipImport().then((e=>{if(!(0,o.isDestroying)(this)){r.suggestedRoute=e?s.SUGGESTED_ROUTE.RESULT_LANDING:s.SUGGESTED_ROUTE.INTRO
|
|
n.fireTrackingPayload(s.EVENTS.IMPORT_ENTRY_IMPRESSION_EVENT,r)}}))
|
|
return i}fireAbiEntryTracking(e,t){let i=null
|
|
t===l.HEATHROW_ROUTES.ABI_SPLASH?i=s.SUGGESTED_ROUTE.INTRO:t===l.HEATHROW_ROUTES.ABI_RESULTS_LANDING&&(i=s.SUGGESTED_ROUTE.RESULT_LANDING)
|
|
return this.fireAbiTracking(e,i)}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,r.default)(m.prototype,"tracking",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,r.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,i){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.getDashContactsQueryUrl=function(e){let{q:r,importTaskHandle:n=null}=e
|
|
const o=(0,t.addQueryParams)(`/${i.default.namespace}/voyagerContactsDashDeviceUploadedContacts`,{q:r})
|
|
if(n)return(0,t.addQueryParam)(o,{importTaskHandle:n})
|
|
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,i){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
e.default=class{constructor(e){this.storeShim=e}formatDashMemberContact(e){var t,i
|
|
const r=e.entityUrn,n=null===(t=e.profilePicture)||void 0===t||null===(i=t.displayImageReference)||void 0===i?void 0:i.vectorImage
|
|
return{title:e.headline,contactType:"memberCount",urn:r,profilePicture:n}}formatDashGuestContact(e){var t
|
|
const i=null===(t=e.guestContactHandleUnion)||void 0===t?void 0:t.emailAddress
|
|
return{title:i,contactType:"emailCount",urn:`urn:li:email:${i}`}}dashContactsHandler(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
|
|
return e.map((e=>({...r?this.formatDashGuestContact(e):this.formatDashMemberContact(e),checkboxId:`select-toggle-${t.default.generateGuid()}`,name:(0,i.getName)(e)})))}}}))
|
|
define("abi-shared/utils/imap-enabled-util",["exports","international/utils/country-utils","international/utils/constants"],(function(e,t,i){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=function(e){return t.default.isPhysicallyInCountry(r,e)}
|
|
const r=i.COUNTRY_CODES.DACH.concat(i.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,i,r,n,o,a,s,l,c,u,d,p,m){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var h,_,b,g,f
|
|
const T=["FAILED_TOO_MANY_CONTACTS","FAILED_EXCEEDS_BATCH_SIZE_LIMIT","FAILED_OTHER"],E="/voyager/api/voyagerAmbryUploadUrls?action=requestUrl",I="/voyager/api/voyagerGrowthContactsFileUploadTask",y="/voyager/api/voyagerGrowthContactsFileUploadTask?action=getStatus"
|
|
e.default=(h=(0,s.inject)("global-services@global-http-headers"),_=(0,s.inject)("global-services@store-shim"),b=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"globalHttpHeaders",g,this);(0,t.default)(this,"storeShim",f,this)
|
|
this._pollTaskRegistry={}}uploadContactsFile(e,t,i){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"OTHER"
|
|
if(!e||!t)return(0,a.reject)(new Error("INVALID_INPUT"))
|
|
const n=i||this._generateDefaultTrackingId()
|
|
return this._getAmbryUrlToUpload(e).then(this._uploadToAmbryServer.bind(this,e,n,r)).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 i={type:"ABI_FILE_UPLOAD",contentType:t}
|
|
return this.storeShim.adapterFor("-ember-m3").ajax(E,"POST",{data:i}).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,i,r){const n=(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,d.default)(r,n).then((e=>{if(!(0,o.isDestroying)(this)){if(e.status===u.httpStatus.S_201_CREATED){return{contactOrigin:i,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"}),i={abookImportImpressionId:e.transactionId,mediaId:e.mediaId,contactsFileUploadOrigin:e.contactOrigin},r=(0,p.default)({data:i,headers:t,method:"POST"})
|
|
return(0,d.default)(I,r).then((t=>{if(!(0,o.isDestroying)(this)){if(t.status===u.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:i}=e
|
|
if(c.default){let r=15;(0,m.pollTask)(this,(n=>{r--
|
|
r<0?this._stopPollTaskStatus(t,e.mediaId,i,"STATUS_CHECK_TIMEOUT"):this._checkTaskStatus(e).then((r=>{if((0,o.isDestroying)(this))return
|
|
const a=r.data
|
|
a&&"SUCCESS"===a.value?this._stopPollTaskStatus(t,e.mediaId,i):!r||T.includes(a.value)?this._stopPollTaskStatus(t,e.mediaId,i,"STATUS_CHECK_FAILURE"):this._pollTaskRegistry[e.mediaId]=(0,m.runTask)(this,n,2e3)}),(r=>{if(!(0,o.isDestroying)(this)){this._stopPollTaskStatus(t,e.mediaId,i,"STATUS_CHECK_FAILURE")
|
|
throw r}}))}),this._getPollerLabel(e.mediaId))}return t.promise}_stopPollTaskStatus(e,t,i,r){if(c.default){this._pollTaskRegistry[t]&&(0,m.cancelTask)(this,this._pollTaskRegistry[t]);(0,m.cancelPoll)(this,this._getPollerLabel(t))}r?e.reject(r):e.resolve({transactionId:i,importTaskHandle:t})}_getPollerLabel(e){return`startPollTaskStatus_${e}`}_checkTaskStatus(e){const t={contactsFileUploadTaskHandle:{handle:e.createTaskId}}
|
|
return this.storeShim.adapterFor("-ember-m3").ajax(y,"POST",{data:t}).then((e=>e))}},g=(0,r.default)(b.prototype,"globalHttpHeaders",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,r.default)(b.prototype,"storeShim",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b)}))
|
|
define("abook-upload-service/template-registry",[],(function(){}))
|
|
define("news-module/components/news-module",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/classPrivateMethodGet","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","feed-utils/utils/error-parsing","ember","news-module/utils/fetch-storylines","news-module/utils/compare-storylines","@ember/object/internals","ember-lifeline","storyline-helpers/utils/constants","global-utils/utils/url","@glimmer/tracking","@ember/object","@glimmer/component","@ember/service","@ember/destroyable","ember-element-helper/helpers/element","ember-cli-pemberly-tracking/modifiers/rum-render-event","ember-cli-pemberly-tracking/modifiers/track-impression","@ember/render-modifiers/modifiers/did-update","ember-scroll-modifiers/modifiers/did-intersect","ember-cli-pemberly-i18n/helpers/t","artdeco-loader/components/artdeco-loader","artdeco-hoverables/components/artdeco-hoverable-trigger","global-helpers/helpers/or","hue-web-icons/components/icon","ember-engines/components/link-to-external","storyline-helpers/helpers/get-storyline-path","@ember/modifier","@ember/helper","artdeco-button/components/artdeco-button","ember-cli-pemberly-tracking/modifiers/track-interaction"],(function(e,t,i,r,n,o,a,s,l,c,u,d,p,m,h,_,b,g,f,T,E,I,y,S,O,R,C,v,A,N,k,w,P,M,L,D,U){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var F,G,j,x,H,z,V,B,q,K,Y,W,Q,$,Z,X,J,ee,te,ie,re,ne,oe,ae
|
|
const se="feed"
|
|
e.default=(0,s.setComponentTemplate)((0,a.createTemplateFactory)({id:"xCRk3c0S",block:'[[[1,"\\n"],[44,[[28,[32,0],[[52,[30,1],"div",""]],null]],[[[1," "],[8,[30,2],[[4,[32,1],null,[["rumComponentId","elementId"],[[30,1],[30,0,["elementId"]]]]]],null,[["default"],[[[[1,"\\n "],[11,0],[24,1,"feed-news-module"],[24,0,"news-module pv3"],[17,3],[4,[32,2],null,[["registerOnImpression","routeName","currentRoute"],[[30,0,["getImpressionEvent"]],[28,[32,3],[[53,"outletState"],"render.name"],null],[28,[32,3],[[53,"outletState"],"render"],null]]]],[4,[32,4],[[30,0,["setBreakingStringTranslation"]]],null],[4,[32,4],[[30,0,["closeArtdecoHoverable"]]],null],[4,[32,5],null,[["onEnter","onExit"],[[30,0,["onNewsModuleEnterViewport"]],[30,0,["onNewsModuleExitViewport"]]]]],[12],[1,"\\n "],[10,0],[14,0,"news-module__header display-flex ph3"],[12],[1,"\\n"],[41,[30,0,["isRefreshingNewsModule"]],[[[1," "],[10,"h2"],[14,0,"news-module__refreshing absolute display-flex align-items-center"],[12],[1,"\\n "],[10,1],[14,0,"t-16 t-black t-bold"],[12],[1,"\\n "],[1,[28,[32,6],["i18n_linkedin_news_refreshing","news-module/components/news-module"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,7],[[24,0,"mh2 mv0"]],[["@a11yText","@size"],[[28,[32,6],["i18n_linkedin_news_refreshing","news-module/components/news-module"],null],"xsmall"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,"h2"],[15,0,[29,["news-module__title t-16 t-black\\n ",[52,[30,0,["isRefreshingNewsModule"]],"news-module__title--loading"]]]],[14,1,"news-module__title"],[12],[1,"\\n "],[10,1],[14,0,"t-16 t-black t-bold"],[12],[1,"\\n "],[1,[28,[32,6],["i18n_linkedin_news","news-module/components/news-module"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[51,[30,4]],[[[1," "],[10,0],[15,1,[28,[32,8],[[30,0,["newsModuleHovercardId"]],"-outlet"],null]],[12],[13],[1,"\\n"]],[]],null],[1," "],[8,[32,9],null,[["@on","@placement","@to","@for"],["click","left",[28,[32,10],[[30,4],[28,[32,8],[[30,0,["newsModuleHovercardId"]],"-outlet"],null]],null],[30,0,["newsModuleHovercardId"]]]],[["default"],[[[[1,"\\n "],[10,"button"],[15,"aria-controls",[30,5,["ariaId"]]],[15,"aria-expanded",[30,5,["ariaExpanded"]]],[15,"aria-label",[28,[32,6],["i18_tooltip_short","news-module/components/news-module"],null]],[14,4,"button"],[12],[1,"\\n "],[8,[32,11],[[24,0,"news-module__notify-icon"]],[["@type","@size","@name"],["system","small","signal-notice"]],null],[1,"\\n "],[13],[1,"\\n "],[8,[30,5,["artdeco-hoverable-content"]],null,[["@to","@contentClass","@theme","@id"],[[28,[32,10],[[30,4],[28,[32,8],[[30,0,["newsModuleHovercardId"]],"-outlet"],null]],null],"news-module__tooltip-content","inverse",[30,0,["newsModuleHovercardId"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,6],["i18n_tooltip","news-module/components/news-module"],[["linkInfo"],[[28,[32,12],null,[["href","class","target","aria-label","data-test-news-module-custom-hoverable__tooltip-link"],[[30,0,["tooltipHelpCenterUrl"]],"news-module__tooltip-link","_blank",[28,[32,6],["i18n_learn_more_a11y","news-module/components/news-module"],null],true]]]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],[5]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"ul"],[14,0,"mt2 list-style-none mb1"],[14,"aria-labelledby","news-module__title"],[12],[1,"\\n"],[42,[28,[31,5],[[28,[31,5],[[30,0,["decoratedStorylines"]]],null]],null],null,[[[1," "],[10,"li"],[15,0,[29,["news-module__storyline\\n ",[52,[30,6,["extraStoryline"]],[30,0,["visibilityClass"]]],"\\n ",[52,[30,6,["isNew"]]," news-module__storyline--new "],"\\n ",[52,[30,6,["isOld"]]," news-module__storyline--old "],"\\n "]]],[12],[1,"\\n "],[8,[32,13],[[24,0,"news-module__link link-without-hover-state block"],[4,[32,15],["click",[28,[32,16],[[30,0,["storylineClicked"]],[30,6,["topic"]]],null]],null]],[["@route","@model"],["news.storyline",[28,[32,14],[[30,6,["topic","name"]],[30,6,["topic","backendUrn"]],[30,0,["locale"]]],null]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"news-module__headline t-14 t-bold t-black truncate mt1 pr4"],[12],[1,"\\n "],[10,1],[14,0,"news-module__headline-bullet"],[14,"role","presentation"],[12],[13],[1,[30,6,["topic","name"]]],[13],[1,"\\n\\n"],[41,[30,6,["topic","subDescriptionText"]],[[[1," "],[10,1],[14,0,"news-module__subtext t-12 t-black--light t-normal inline-block full-width truncate pr3 pl6"],[12],[1,"\\n "],[1,[30,6,["topic","subDescriptionText"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[6]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["displayShowMoreButton"]],[[[1," "],[8,[32,17],[[16,"aria-expanded",[52,[30,0,["isExpanded"]],"true","false"]],[16,"aria-label",[52,[30,0,["isExpanded"]],[28,[32,6],["i18n_show_less","news-module/components/news-module"],null],[28,[32,6],["i18n_show_more","news-module/components/news-module"],null]]],[24,0,"news-module__toggle-storylines"],[4,[32,15],["click",[30,0,["toggleStorylines"]]],null],[4,[32,18],["toggle_storylines"],null]],[["@color","@icon","@iconRight","@size","@text","@type"],["muted",[52,[30,0,["isExpanded"]],"chevron-up","chevron-down"],true,1,[52,[30,0,["isExpanded"]],[28,[32,6],["i18n_show_less","news-module/components/news-module"],null],[28,[32,6],["i18n_show_more","news-module/components/news-module"],null]],"tertiary"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[2]]],[1," "]],["@rumComponentId","Tag","&attrs","@customHovercardOutletId","trigger","decoratedStoryline"],false,["let","if","-get-dynamic-var","unless","each","-track-array"]]',moduleName:"news-module/components/news-module.gjs",scope:()=>[I.default,y.default,S.default,L.get,O.default,R.default,C.default,v.default,L.concat,A.default,N.default,k.default,L.hash,w.default,P.default,M.on,L.fn,D.default,U.default],isStrictMode:!0}),(F=(0,T.inject)("artdeco-hoverable"),G=(0,T.inject)("locale"),j=(0,T.inject)("tracking"),x=(0,T.inject)("client-sensor-web@client-sensor"),H=(0,T.inject)("i18n"),z=(0,T.inject)("global-services@a11y-notification"),V=(0,T.inject)("router"),B=(0,T.inject)("jet"),q=(0,T.inject)("@linkedin/ember-restli-graphql@graphql"),K=(ae=new WeakSet,class extends f.default{get displayShowMoreButton(){return this.decoratedStorylines.length>this.initNumStorylines}get isOnFeedIndexRoute(){return"feed.index.index"===this.router.currentRouteName}get locale(){return this.localeService.interfaceLocale}get newsModuleHovercardId(){return`news-module__tooltip-${(0,p.guidFor)(this)}`}get shouldForceRefresh(){return this.numberOfStorylineModuleRefreshes>1&&this.numberOfStorylineModuleRefreshes%4==0}get storylineRefreshInterval(){return c.default.testing?5e3:9e5}get visibilityClass(){return this.isExpanded?" news-module__storyline--extra news-module__storyline--visible focused-easeIn-motion":" news-module__storyline--extra focused-easeOut-motion"}constructor(){super(...arguments)
|
|
ae.add(this);(0,t.default)(this,"artdecoHoverable",Y,this);(0,t.default)(this,"localeService",W,this);(0,t.default)(this,"tracking",Q,this);(0,t.default)(this,"clientSensor",$,this);(0,t.default)(this,"i18n",Z,this);(0,t.default)(this,"a11yNotification",X,this);(0,t.default)(this,"router",J,this);(0,t.default)(this,"jet",ee,this);(0,t.default)(this,"graphql",te,this);(0,i.default)(this,"elementId",(0,p.guidFor)(this));(0,t.default)(this,"decoratedStorylines",ie,this);(0,i.default)(this,"didFirstPollTask",!1);(0,i.default)(this,"initNumStorylines",h.StorylineConstants.INITIAL_NUM_STORYLINES);(0,t.default)(this,"isExpanded",re,this);(0,i.default)(this,"isNewsModuleVisible",!0);(0,t.default)(this,"isRefreshingNewsModule",ne,this);(0,i.default)(this,"isTooltipCentered",!0);(0,i.default)(this,"markedCurrentStorylines",[]);(0,i.default)(this,"markedNewStorylines",[]);(0,i.default)(this,"numberOfStorylineModuleRefreshes",0);(0,t.default)(this,"shouldRefreshStorylines",oe,this);(0,i.default)(this,"tooltipHelpCenterUrl",`${(0,_.getDomainUrl)()}/help/linkedin/answer/72665`)
|
|
this.decoratedStorylines=(0,r.default)(this,ae,le).call(this,this.args.storylines)
|
|
this.isOnFeedIndexRoute&&(0,m.pollTask)(this,"handleAutoRefreshStorylines","news_module_auto_refresh_poll_token")}refreshStorylines(e,t){this.isRefreshingNewsModule=!0
|
|
const i=this.i18n.lookupTranslation("components/news-module@news-module","i18n_linkedin_news_refreshing")()
|
|
this.a11yNotification.setTextInLiveRegion(i)
|
|
this.decoratedStorylines=e;(0,m.runTask)(this,(()=>{this.decoratedStorylines=t
|
|
this.shouldRefreshStorylines=!1}),2500);(0,m.runTask)(this,(()=>{this.isRefreshingNewsModule=!1
|
|
this.markedNewStorylines=[]
|
|
this.markedCurrentStorylines=[]}),2836)}closeArtdecoHoverable(){this.artdecoHoverable.close()}getImpressionEvent(){return this.isDestroying||this.isDestroyed?[]:e=>{let t
|
|
if(e.boundingClientRect){var i,r
|
|
t={width:null===(i=e.boundingClientRect)||void 0===i?void 0:i.width,height:null===(r=e.boundingClientRect)||void 0===r?void 0:r.height}}let n=[]
|
|
if(e&&this.isNewsModuleVisible){const{storylines:i}=this.args
|
|
n=i.map(((i,r)=>({isExcludedFromSeen:!0,urn:(0,g.get)(i,"backendUrn"),trackingId:(0,g.get)(i,"recommendationTrackingId"),visibleTime:e.visibleTime,visibleHeight:e.visibleHeight,duration:e.duration,listPosition:{index:r+1},size:t})))
|
|
e.duration<0&&this.clientSensor.incrementMetricCounter({groupName:"feed",metricName:"negative-feed-impression-duration"})}return{name:"FeedImpressionEvent",body:{entities:n}}}}handleAutoRefreshStorylines(e){if(this.didFirstPollTask){const{graphql:t}=this;(0,u.fetchStorylines)({graphql:t}).then((e=>{if((0,E.isDestroying)(this))return
|
|
this.clientSensor.incrementMetricCounter({groupName:se,metricName:"storyline-topics-request-success"})
|
|
const t=(0,g.get)(e,"elements"),i=(0,r.default)(this,ae,le).call(this,t)
|
|
if(((0,d.hasChangedStorylines)(this.decoratedStorylines,i)||this.shouldForceRefresh)&&!this.isDestroying){const[e,t]=(0,d.markNewStorylines)(this.decoratedStorylines,i)
|
|
if(this.isNewsModuleInViewport)this.refreshStorylines(e,t)
|
|
else{this.markedCurrentStorylines=e
|
|
this.markedNewStorylines=t
|
|
this.shouldRefreshStorylines=!0}}})).catch((e=>{if((0,E.isDestroying)(this))throw e
|
|
this.clientSensor.incrementMetricCounter({groupName:se,metricName:"storyline-topics-request-failed"})
|
|
if((0,l.isHttpErrorStatus)(e)){this.jet.logError(new Error("Fetch to get new storylines failed in news module auto refresh feature"),"news-module-auto-refresh-fetch",!1)
|
|
return[]}throw e}))
|
|
this.numberOfStorylineModuleRefreshes+=1;(0,m.runTask)(this,e,this.storylineRefreshInterval)}else{this.didFirstPollTask=!0;(0,m.runTask)(this,e,this.storylineRefreshInterval)}}onNewsModuleEnterViewport(){this.isNewsModuleInViewport=!0
|
|
this.shouldRefreshStorylines&&this.markedCurrentStorylines&&this.markedNewStorylines&&this.refreshStorylines(this.markedCurrentStorylines,this.markedNewStorylines)}onNewsModuleExitViewport(){this.isNewsModuleInViewport=!1}setBreakingStringTranslation(){if(this.isNewsModuleVisible){const e=this.i18n.lookupTranslation("news-module@components/news-module","i18n_news_module_breaking_prefix")();(0,g.set)(this,"breakingStringTranslation",e)}}storylineClicked(e){const t=this.tracking,i={actionType:"viewStoryline",actionCategory:"VIEW",moduleKey:"sidebar:desktop",controlUrn:t.generateControlUrn("storyline_press"),updateUrn:(0,g.get)(e,"backendUrn"),trackingId:(0,g.get)(e,"recommendationTrackingId"),requestId:""}
|
|
t.fireTrackingPayload("FeedActionEvent",i)}toggleStorylines(){this.isExpanded=!this.isExpanded
|
|
if(this.isExpanded){const e=document.querySelectorAll(".news-module__link")[this.initNumStorylines]
|
|
e&&setTimeout((()=>e.focus()),0)}}}),Y=(0,n.default)(K.prototype,"artdecoHoverable",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W=(0,n.default)(K.prototype,"localeService",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q=(0,n.default)(K.prototype,"tracking",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=(0,n.default)(K.prototype,"clientSensor",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=(0,n.default)(K.prototype,"i18n",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),X=(0,n.default)(K.prototype,"a11yNotification",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J=(0,n.default)(K.prototype,"router",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ee=(0,n.default)(K.prototype,"jet",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),te=(0,n.default)(K.prototype,"graphql",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ie=(0,n.default)(K.prototype,"decoratedStorylines",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),re=(0,n.default)(K.prototype,"isExpanded",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ne=(0,n.default)(K.prototype,"isRefreshingNewsModule",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),oe=(0,n.default)(K.prototype,"shouldRefreshStorylines",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,n.default)(K.prototype,"closeArtdecoHoverable",[g.action],Object.getOwnPropertyDescriptor(K.prototype,"closeArtdecoHoverable"),K.prototype),(0,n.default)(K.prototype,"getImpressionEvent",[g.action],Object.getOwnPropertyDescriptor(K.prototype,"getImpressionEvent"),K.prototype),(0,n.default)(K.prototype,"onNewsModuleEnterViewport",[g.action],Object.getOwnPropertyDescriptor(K.prototype,"onNewsModuleEnterViewport"),K.prototype),(0,n.default)(K.prototype,"onNewsModuleExitViewport",[g.action],Object.getOwnPropertyDescriptor(K.prototype,"onNewsModuleExitViewport"),K.prototype),(0,n.default)(K.prototype,"setBreakingStringTranslation",[g.action],Object.getOwnPropertyDescriptor(K.prototype,"setBreakingStringTranslation"),K.prototype),(0,n.default)(K.prototype,"storylineClicked",[g.action],Object.getOwnPropertyDescriptor(K.prototype,"storylineClicked"),K.prototype),(0,n.default)(K.prototype,"toggleStorylines",[g.action],Object.getOwnPropertyDescriptor(K.prototype,"toggleStorylines"),K.prototype),K))
|
|
function le(e){return(null==e?void 0:e.map(((e,t)=>({topic:e,extraStoryline:t>=this.initNumStorylines}))))??[]}}))
|
|
define("news-module/template-registry",[],(function(){}))
|
|
define("news-module/utils/compare-storylines",["exports"],(function(e){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.hasChangedStorylines=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Breaking"
|
|
if(null==t||!t.length||null==e||!e.length)return!1
|
|
const r=new Set,n=new Set,o=t[0],a=o.topic.name,s=e[0]
|
|
if(a.startsWith(i)&&a!==s.topic.name)return!0
|
|
for(let t=1;t<5&&e[t];t++){const{topic:{name:i,backendUrn:o}}=e[t]
|
|
i&&r.add(i)
|
|
o&&n.add(o)}for(let e=1;e<5&&t[e];e++){const{topic:{name:i,backendUrn:o}}=t[e]
|
|
if(!r.has(i)||!n.has(o))return!0}return!1}
|
|
e.markNewStorylines=function(e,t){const i=Math.max(e.length,t.length),r=[],n=[]
|
|
for(let o=0;o<i;o++){const i=t[o],a=e[o]
|
|
if(!i||!a||a.topic.name!==i.topic.name||a.topic.backendUrn!==i.topic.backendUrn){i&&(i.isNew=!0)
|
|
a&&(a.isOld=!0)}i&&n.push(i)
|
|
a&&r.push(a)}return[r,n]}}))
|
|
define("news-module/utils/fetch-storylines",["exports","news-module/utils/pem","graphql-queries/queries/feed/feed-topics.graphql"],(function(e,t,i){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.fetchStorylines=function(e){let{graphql:r}=e
|
|
return r.executeQuery(i.default,{count:10},{reload:!0,adapterOptions:{failures:[t.FAILURE_TRACKING_METADATA],degradedEntityIDsToRemove:[]}}).then((e=>{var t
|
|
return null==e||null===(t=e.data)||void 0===t?void 0:t.feedDashTopicsByBlendedTopics}))}}))
|
|
define("news-module/utils/pem",["exports","@linkedin/ember-pem/utils/failure-tracking-metadata"],(function(e,t){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.FAILURE_TRACKING_METADATA=void 0
|
|
const i=Object.freeze({FETCH_STORYLINE:"fetch-storyline"})
|
|
e.FAILURE_TRACKING_METADATA=new t.default(i.FETCH_STORYLINE,"fetch-storyline-failed",{productName:"Voyager - News Module"})}))
|
|
|
|
//# sourceMappingURL=engine-vendor.map |