llback)(e,"backgroundPicture.displayImageReferenceResolutionResult.vectorImage")||(0,u.getGraphQlValueWithDashFallback)(e,"backgroundPicture.displayImageReferenceResolutionResult.url")}get coverPhotoItems(){const e=this.storeShim.peekRecord((0,g.get)(this.args.dashMember,"$type"),(0,g.get)(this.args.dashMember,"entityUrn"))||this.args.dashMember
return(0,g.get)(e,"coverPhotoItems")}get headline(){return(0,m.getLocalizedStringFromMultiLocaleString)((0,g.get)(this.args.dashMember,"multiLocaleHeadline"),this.args.locales)}get headlinePseudoTetrisModel(){return{text:{text:this.headline}}}get geoLocation(){const e=(0,g.get)(this.args.dashMember,"geoLocation")
if(e&&(0,g.get)(e,"geo"))return e
const t=this.storeShim.peekRecord((0,g.get)(this.args.dashMember,"$type"),(0,g.get)(this.args.dashMember,"entityUrn"))
return t&&(0,g.get)(t,"geoLocation")}get name(){return(0,m.getMemberName)(this.args.dashMember,this.args.locales)}get topcardEducations(){return(0,g.get)(this.args,"topCardSupplementary.educationOnProfileTopCardShown")?(0,g.get)(this.args,"topCardSupplementary.profileTopEducation"):null}get topcardPositions(){return(0,g.get)(this.args,"topCardSupplementary.companyNameOnProfileTopCardShown")?(0,g.get)(this.args,"topCardSupplementary.profileTopPosition"):null}get namePronunciationAudio(){const e=(0,g.get)(this.args,"topCardSupplementary.multiLocaleFullNamePronunciationAudio")
return(0,m.getLocalizedStringFromMultiLocaleString)(e,this.args.locales)}get hasOpportunitiesCards(){var e
return!(null===(e=(0,g.get)(this.args,"opportunitiesCards.elements"))||void 0===e||!e.length)}get hasOpportunitiesGoals(){return(0,g.get)(this.args,"opportunitiesGoals.elements.length")}get countryCode(){return(0,g.get)(this.args,"topCardSupplementary.location.countryCode")}get memberRelationship(){return(0,g.get)(this.args,"dashMember.memberRelationship")}get privacySettings(){return(0,g.get)(this.args,"dashMember.privacySettings")}get lastOpportunityCardDismissed(){return this.opportunitiesCardsLength<1}fireTopcardSensor(){this.clientSensor.incrementMetricCounter({groupName:"profile",metricName:"top-card_is-displayed"})}launchPhotoModalUpload(){this.shouldDisplayPhotoFrameFlow=!0}launchPhotoGuidedEdit(){this.shouldDisplayPhotoFrameFlow=!0}addOrEditProfilePhoto(e){this.shouldDisplayPhotoFrameFlow=!0
e()}addOrEditFrame(e){this.shouldDisplayPhotoFrameFlow=!0
this.shouldShowFramesModal=!0
e()}onPhotoModalClose(){this.shouldDisplayPhotoFrameFlow=!1
this.shouldShowFramesModal=!1
return!1}onPhotoModalUploadComplete(){if(this.args.profileGoals&&this.isSelfView){const e=(0,g.get)(this.args.dashMember,"entityUrn");(0,s.fetchProfileGoals)(this.graphql,e,{reload:!0})}return this.onPhotoModalClose()}onOpenToUnenrollCardDismiss(){this.opportunitiesCardsLength--}hideStickyHeader(){(0,a.hideStickyHeader)(this.toolbar)}showStickyHeader(){(0,a.showStickyHeader)(this.toolbar,this.windowService)}onProfileBackgroundImageResize(e){let{contentRect:{height:t}}=e
this.profileBackgroundImageHeight=t}get showCTABottomPadding(){return!this.hasOpportunitiesCards||this.lastOpportunityCardDismissed}get storefrontInlineCallout(){var e,t
return"SERVICE_IN_ADD_SECTION"===(null===(e=this.topcardCallout)||void 0===e?void 0:e.calloutType)&&null!==(t=this.topcardCallout)&&void 0!==t&&t.callout?this.topcardCallout.callout:void 0}},J=(0,n.default)(X.prototype,"lix",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=(0,n.default)(X.prototype,"formatter",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ee=(0,n.default)(X.prototype,"profile",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),te=(0,n.default)(X.prototype,"clientSensor",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ie=(0,n.default)(X.prototype,"toolbar",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ne=(0,n.default)(X.prototype,"windowService",[Q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oe=(0,n.default)(X.prototype,"storeShim",[K],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),re=(0,n.default)(X.prototype,"graphql",[$],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),le=(0,n.default)(X.prototype,"shouldDisplayPhotoFrameFlow",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ae=(0,n.default)(X.prototype,"shouldShowFramesModal",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),se=(0,n.default)(X.prototype,"shouldDisplayDirectUpload",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ue=(0,n.default)(X.prototype,"newPhoto",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ce=(0,n.default)(X.prototype,"isProfilePictureDropdownOpen",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),de=(0,n.default)(X.prototype,"profileBackgroundImageHeight",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pe=(0,n.default)(X.prototype,"opportunitiesCardsLength",[Y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(X.prototype,"fireTopcardSensor",[g.action],Object.getOwnPropertyDescriptor(X.prototype,"fireTopcardSensor"),X.prototype),(0,n.default)(X.prototype,"launchPhotoModalUpload",[g.action],Object.getOwnPropertyDescriptor(X.prototype,"launchPhotoModalUpload"),X.prototype),(0,n.default)(X.prototype,"launchPhotoGuidedEdit",[g.action],Object.getOwnPropertyDescriptor(X.prototype,"launchPhotoGuidedEdit"),X.prototype),(0,n.default)(X.prototype,"addOrEditProfilePhoto",[g.action],Object.getOwnPropertyDescriptor(X.prototype,"addOrEditProfilePhoto"),X.prototype),(0,n.default)(X.prototype,"addOrEditFrame",[g.action],Object.getOwnPropertyDescriptor(X.prototype,"addOrEditFrame"),X.prototype),(0,n.default)(X.prototype,"onPhotoModalClose",[g.action],Object.getOwnPropertyDescriptor(X.prototype,"onPhotoModalClose"),X.prototype),(0,n.default)(X.prototype,"onPhotoModalUploadComplete",[g.action],Object.getOwnPropertyDescriptor(X.prototype,"onPhotoModalUploadComplete"),X.prototype),(0,n.default)(X.prototype,"onOpenToUnenrollCardDismiss",[g.action],Object.getOwnPropertyDescriptor(X.prototype,"onOpenToUnenrollCardDismiss"),X.prototype),(0,n.default)(X.prototype,"hideStickyHeader",[g.action],Object.getOwnPropertyDescriptor(X.prototype,"hideStickyHeader"),X.prototype),(0,n.default)(X.prototype,"showStickyHeader",[g.action],Object.getOwnPropertyDescriptor(X.prototype,"showStickyHeader"),X.prototype),(0,n.default)(X.prototype,"onProfileBackgroundImageResize",[g.action],Object.getOwnPropertyDescriptor(X.prototype,"onProfileBackgroundImageResize"),X.prototype),X))}))
define("profile-top-card/template-registry",[],(function(){}))
define("profile-top-card/utils/constants",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.TEMP_STATUS_EXPIRATION_OPTIONS=e.STANDARDIZED_EXPIRATION_OBJECTS=e.STANDARDIZED_EXPIRATION=void 0
e.STANDARDIZED_EXPIRATION={TODAY:"TODAY",TOMORROW:"TOMORROW",THIS_WEEK:"THIS_WEEK",THIS_MONTH:"THIS_MONTH",CUSTOM:"CUSTOM",NO_EXPIRY:"NO_EXPIRY"},e.STANDARDIZED_EXPIRATION_OBJECTS={TODAY:{name:"TODAY",i18nKey:"i18n_expiration_today"},TOMORROW:{name:"TOMORROW",i18nKey:"i18n_expiration_tomorrow"},THIS_WEEK:{name:"THIS_WEEK",i18nKey:"i18n_expiration_this_week"},THIS_MONTH:{name:"THIS_MONTH",i18nKey:"i18n_expiration_this_month"},CUSTOM:{name:"CUSTOM",i18nKey:"i18n_expiration_custom"},NO_EXPIRY:{name:"NO_EXPIRY",i18nKey:"i18n_expiration_no_expiry"}},e.TEMP_STATUS_EXPIRATION_OPTIONS=["TODAY","THIS_WEEK","THIS_MONTH","CUSTOM","NO_EXPIRY"]}))
define("profile-top-voice/components/profile-top-voice-badge",["exports","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@ember/template-factory","@ember/component","system-image/components/system-image","@ember/object","@glimmer/component","ember-cli-pemberly-i18n/helpers/t","@ember/helper","@ember/modifier"],(function(e,t,i,n,o,r,l,a,s,u){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var c
e.default=(0,n.setComponentTemplate)((0,i.createTemplateFactory)({id:"p6PvVqPD",block:'[[[1,"\\n"],[41,[30,0,["isBadgeClickable"]],[[[1,"      "],[11,"button"],[16,"aria-label",[28,[32,0],["a11y-top-voice-badge-label","profile-top-voice/components/profile-top-voice-badge"],[["badgeText","name"],[[30,1,["badgeText"]],[30,2]]]]],[16,0,[28,[32,1],["pv-top-voice-badge pv-top-voice-badge--button text-body-xsmall",[52,[30,3]," pv-top-voice-badge--executive"," pv-top-voice-badge--community"]],null]],[24,4,"button"],[4,[32,2],["click",[30,0,["onBadgeClick"]]],null],[12],[1,"\\n"],[41,[30,0,["badgeSystemImageName"]],[[[1,"          "],[8,[32,3],[[24,0,"pv-top-voice-badge__icon"]],[["@name"],[[30,0,["badgeSystemImageName"]]]],null],[1,"\\n"]],[]],null],[1,"        "],[10,1],[14,0,"v-align-middle"],[12],[1,[30,1,["badgeText"]]],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,2],[15,0,[28,[32,1],["pv-top-voice-badge text-body-xsmall",[52,[30,3]," pv-top-voice-badge--executive"," pv-top-voice-badge--community"]],null]],[12],[1,"\\n"],[41,[30,0,["badgeSystemImageName"]],[[[1,"          "],[8,[32,3],[[24,0,"pv-top-voice-badge__icon"]],[["@name"],[[30,0,["badgeSystemImageName"]]]],null],[1,"\\n"]],[]],null],[1,"\\n        "],[10,1],[14,0,"v-align-middle"],[12],[1,[30,1,["badgeText"]]],[13],[1,"\\n      "],[13],[1,"\\n"]],[]]],[1,"  "]],["@topVoiceBadge","@name","@isInfluencer"],false,["if"]]',moduleName:"profile-top-voice/components/profile-top-voice-badge.gts",scope:()=>[a.default,s.concat,u.on,o.default],isStrictMode:!0}),(c=class extends l.default{get badgeSystemImageName(){var e
return null===(e=this.args.topVoiceBadge)||void 0===e?void 0:e.badgeIcon}get isBadgeClickable(){return!!this.args.onClickCallback}onBadgeClick(){var e,t
null===(e=(t=this.args).onClickCallback)||void 0===e||e.call(t)}},(0,t.default)(c.prototype,"onBadgeClick",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"onBadgeClick"),c.prototype),c))}))
define("profile-top-voice/components/profile-top-voice-detail-entities",["exports","@ember/template-factory","@ember/component","system-image/components/system-image","@glimmer/component"],(function(e,t,i,n,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
class r extends o.default{get detailEntities(){var e
return null===(e=this.args.detailEntities)||void 0===e?void 0:e.reduce(((e,t)=>{if(t){var i
const{icon:n}=t,o={icon:n,detailEntityText:t?null===(i=t.standardizedSkill)||void 0===i?void 0:i.name:void 0}
e.push(o)}return e}),[])}}e.default=r;(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"K7T9+PvQ",block:'[[[1,"\\n    "],[10,"ul"],[14,0,"pv-top-voice-detail-entity-list"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["detailEntities"]]],null]],null],null,[[[1,"        "],[10,"li"],[14,0,"pv-top-voice-detail-entity"],[12],[1,"\\n"],[41,[30,1,["icon"]],[[[1,"            "],[8,[32,0],[[24,"aria-hidden","true"],[24,0,"pv-top-voice-detail-entity__icon"]],[["@name"],[[30,1,["icon"]]]],null],[1,"\\n"]],[]],null],[1,"          "],[10,"h2"],[14,0,"pv-top-voice-detail-entity__text"],[12],[1,[30,1,["detailEntityText"]]],[13],[1,"\\n        "],[13],[1,"\\n"]],[1,2]],null],[1,"    "],[13],[1,"\\n  "]],["detailEntity","index"],false,["each","-track-array","if"]]',moduleName:"profile-top-voice/components/profile-top-voice-detail-entities.gts",scope:()=>[n.default],isStrictMode:!0}),r)}))
define("profile-top-voice/components/profile-top-voice-member-info",["exports","@ember/template-factory","@ember/component","dash-interop-helper/utils/get-graphql-value-with-dash-fallback","@glimmer/component","ember-vector-images/components/custom-image","ember-cli-pemberly-i18n/helpers/t","global-helpers/helpers/name","profile-top-voice/components/profile-top-voice-badge","global-helpers/helpers/get-class-hash"],(function(e,t,i,n,o,r,l,a,s,u){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
class c extends o.default{get profilePicture(){return this.args.profileData&&((0,n.getGraphQlValueWithDashFallback)(this.args.profileData,"profilePicture.displayImageWithFrameReference.vectorImage")||(0,n.getGraphQlValueWithDashFallback)(this.args.profileData,"profilePicture.displayImageReferenceResolutionResult.vectorImage"))}get profileName(){return(0,a.getName)(this.args.profileData)}}e.default=c;(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"xU70BxPw",block:'[[[1,"\\n"],[1,"    "],[10,"section"],[12],[1,"\\n      "],[8,[32,0],null,[["@class","@image","@alt","@title","@width","@height","@ghostType","@highQuality"],["pv-top-voice-member-info__profile-picture",[30,0,["profilePicture"]],[28,[32,1],["profile_image","profile-top-voice/components/profile-top-voice-member-info"],[["name"],[[28,[32,2],[[30,1]],null]]]],[28,[32,1],["profile_image","profile-top-voice/components/profile-top-voice-member-info"],[["name"],[[28,[32,2],[[30,1]],null]]]],96,96,"person",true]],null],[1,"\\n\\n      "],[10,"h1"],[15,0,[29,["pv-top-voice-member-info__name\\n          ",[28,[32,3],["text-heading-xlarge"],null],"\\n          break-words"]]],[12],[1,"\\n        "],[1,[28,[32,1],["viewee_name","profile-top-voice/components/profile-top-voice-member-info"],[["name"],[[30,0,["profileName"]]]]]],[1,"\\n      "],[13],[1,"\\n\\n      "],[8,[32,4],null,[["@isInfluencer","@topVoiceBadge"],[[30,1,["influencer"]],[30,1,["topVoiceBadge"]]]],null],[1,"\\n    "],[13],[1,"\\n  "]],["@profileData"],false,[]]',moduleName:"profile-top-voice/components/profile-top-voice-member-info.gts",scope:()=>[r.default,l.default,a.default,u.default,s.default],isStrictMode:!0}),c)}))
define("profile-top-voice/components/profile-top-voice-modal",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","global-utils/utils/url","tracked-toolbox","ember-test-waiters","ember-async-data","@ember/service","graphql-queries/queries/profile/organized-queries/view/top-voice/profile-top-voice-detail.graphql","@glimmer/component","artdeco-modal/components/artdeco-modal","ember-cli-pemberly-i18n/helpers/t","profile-top-voice/components/profile-top-voice-member-info","text-view-model/components/text-view-model-v2","profile-top-voice/components/profile-top-voice-detail-entities","hue-web-icons/components/icon","profile-tetris-shared/components/profile-component/action-component/navigation","artdeco-loader/components/artdeco-loader"],(function(e,t,i,n,o,r,l,a,s,u,c,d,p,m,g,f,h,b,y,v,_,w){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var k,P,C
e.default=(0,l.setComponentTemplate)((0,r.createTemplateFactory)({id:"Kk2boLmI",block:'[[[1,"\\n"],[1,"    "],[8,[32,0],null,[["@isOpen","@dismissModal","@size"],[[30,1],[30,2],"medium"]],[["default"],[[[[1,"\\n      "],[8,[30,3,["artdeco-modal-header"]],null,null,[["default"],[[[[1,"\\n        "],[10,"h2"],[14,1,"data-test-profile-top-voice-modal__header"],[12],[1,"\\n"],[41,[30,0,["topVoiceDetailsRequest","isResolved"]],[[[1,"            "],[1,[52,[30,0,["profileData","influencer"]],[28,[32,1],["profile-top-voice-modal-header","profile-top-voice/components/profile-top-voice-modal"],null],[28,[32,1],["profile-top-voice-modal-header-community","profile-top-voice/components/profile-top-voice-modal"],null]]],[1,"\\n"]],[]],[[[1,"            "],[1,[28,[32,1],["profile-top-voice-modal-header","profile-top-voice/components/profile-top-voice-modal"],null]],[1,"\\n"]],[]]],[1,"        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n\\n      "],[8,[30,3,["artdeco-modal-content"]],null,[["@classNames"],["pv-top-voice-modal__content"]],[["default"],[[[[1,"\\n"],[41,[30,0,["topVoiceDetailsRequest","isResolved"]],[[[41,[30,0,["topVoiceDetails","notificationBannerDescriptions"]],[[[42,[28,[31,2],[[28,[31,2],[[30,0,["topVoiceDetails","notificationBannerDescriptions"]]],null]],null],null,[[[1,"              "],[10,2],[14,0,"pv-top-voice-modal__content-notification-banner text-body-small mb3"],[12],[1,"\\n                "],[8,[32,2],null,[["@tvm"],[[30,4]]],null],[1,"\\n              "],[13],[1,"\\n"]],[4]],null]],[]],null],[1,"          "],[8,[32,3],null,[["@profileData"],[[30,0,["profileData"]]]],null],[1,"\\n\\n"],[41,[30,0,["topVoiceDetails","description"]],[[[1,"            "],[10,0],[14,0,"pv-top-voice-modal__content-description text-body-small"],[12],[1,"\\n              "],[8,[32,2],null,[["@tvm"],[[30,0,["topVoiceDetails","description"]]]],null],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["topVoiceDetails","detailEntities"]],[[[1,"            "],[8,[32,4],null,[["@detailEntities"],[[30,0,["topVoiceDetails","detailEntities"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["topVoiceDetails","manageBadgeText"]],[[[1,"            "],[10,0],[14,0,"pv-top-voice-modal__manage-badge"],[12],[1,"\\n              "],[8,[32,5],[[24,0,"pv-top-voice-modal__manage-badge-icon"]],[["@type","@size","@name"],["system","small","signal-notice"]],null],[1,"\\n              "],[10,1],[14,0,"text-body-small"],[12],[1,"\\n                "],[8,[32,2],null,[["@tvm"],[[30,0,["topVoiceDetails","manageBadgeText"]]]],null],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["topVoiceDetails","promoCard"]],[[[1,"            "],[10,0],[14,0,"pv-top-voice-modal__content-promo"],[12],[1,"\\n              "],[10,2],[14,0,"pv-top-voice-modal__content-promo-text text-body-small"],[12],[1,"\\n                "],[8,[32,2],null,[["@tvm"],[[30,0,["topVoiceDetails","promoCard","text"]]]],null],[1,"\\n              "],[13],[1,"\\n\\n"],[41,[30,0,["topVoiceDetails","promoCard","primaryAction"]],[[[1,"                "],[8,[32,6],null,[["@tetrisComponentModel"],[[30,0,["topVoiceDetails","promoCard","primaryAction"]]]],null],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n"]],[]],null]],[]],[[[41,[30,0,["topVoiceDetailsRequest","isPending"]],[[[1,"          "],[10,0],[14,0,"pv-top-voice-modal__loader"],[12],[1,"\\n            "],[8,[32,7],null,[["@size"],["small"]],null],[1,"\\n          "],[13],[1,"\\n        "]],[]],null]],[]]],[1,"      "]],[]]]]],[1,"\\n    "]],[3]]]]],[1,"\\n  "]],["@isModalOpen","@onDismiss","modal","notification"],false,["if","each","-track-array"]]',moduleName:"profile-top-voice/components/profile-top-voice-modal.gts",scope:()=>[g.default,f.default,b.default,h.default,y.default,v.default,_.default,w.default],isStrictMode:!0}),(k=(0,d.inject)("@linkedin/ember-restli-graphql@graphql"),P=class extends m.default{constructor(){super(...arguments);(0,t.default)(this,"graphql",C,this);(0,i.default)(this,"topVoicePromo",void 0)}get topVoiceDetailsRequest(){return new c.TrackedAsyncData((0,u.waitForPromise)(this.graphql.executeQuery(p.default,{profileUrn:this.args.vieweeUrn,notificationType:this.args.notificationType,skillUrns:this.args.skillUrns},{reload:!0})))}get promoActionTarget(){return"vr"===this.topVoicePromo?`${a.default.getDomainUrl()}/feed/?launchpadCardType=collabarticlecontrib__profile__show`:`${a.default.getDomainUrl()}/help/linkedin/answer/a1413111`}get topVoiceDetails(){var e,t,i,n
return this.topVoiceDetailsRequest&&(null===(e=this.topVoiceDetailsRequest.value)||void 0===e||null===(t=e.data)||void 0===t||null===(i=t.identityDashProfileTopVoiceBadgeDetailsByViewee)||void 0===i||null===(n=i.elements)||void 0===n?void 0:n[0])}get profileData(){var e
return null===(e=this.topVoiceDetails)||void 0===e?void 0:e.profile}},C=(0,n.default)(P.prototype,"graphql",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(P.prototype,"topVoiceDetailsRequest",[s.cached],Object.getOwnPropertyDescriptor(P.prototype,"topVoiceDetailsRequest"),P.prototype),P))}))
define("profile-top-voice/template-registry",[],(function(){}))
define("profile-treasury/components/treasury-media-viewer",["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","dash-interop-helper/utils/get-graphql-value-with-dash-fallback","@ember/test-waiters","profile-shared/utils/image-helpers","@ember/object/internals","@glimmer/tracking","profile-locale-helpers/utils/secondary-locale-helpers","global-utils/utils/trusted-html-safe","ember-vector-images/utils/vector-url","profile-treasury/utils/treasury-media-viewer-helpers","@ember/object","@glimmer/component","artdeco-loader/components/artdeco-loader","document/components/document-container","image-view-model/components/image-view-model","@ember/helper","global-helpers/helpers/css-style","ember-cli-pemberly-i18n/helpers/t","global-helpers/helpers/format-newlines","ember-cli-pemberly-tracking/components/shared/external-link","profile-shared/helpers/full-url","artdeco-button/components/artdeco-button","global-helpers/helpers/gt","ember-cli-pemberly-tracking/modifiers/track-interaction","@linkedin/jsecure","@ember/modifier"],(function(e,t,i,n,o,r,l,a,s,u,c,d,p,m,g,f,h,b,y,v,_,w,k,P,C,x,D,T,O,S,I,E){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var M,A
const N=(0,s.buildWaiter)("profile-treasury:treasury-media-viewer-waiter")
e.default=(0,l.setComponentTemplate)((0,r.createTemplateFactory)({id:"le5WDUDQ",block:'[[[1,"\\n"],[1,"    "],[10,"section"],[14,0,"grid grid--is-fluid"],[12],[1,"\\n      "],[10,0],[14,0,"pv-treasury-media-viewer__content grid__col grid__col--md-16 grid__col--sm-24 m0"],[12],[1,"\\n"],[41,[30,1],[[[1,"          "],[8,[32,0],null,[["@type"],["inverse"]],null],[1,"\\n"]],[]],[[[41,[30,0,["treasuryNativeDocument"]],[[[1,"          "],[8,[32,1],null,[["@model"],[[30,0,["treasuryNativeDocument"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["ivmPreviewImage"]],[[[1,"          "],[8,[32,2],[[16,1,[30,0,["imageId"]]]],[["@imgClasses","@images","@desiredWidth","@onLoad","@onError"],["pv-treasury-media-viewer__ivm",[30,0,["ivmPreviewImage"]],768,[30,0,["onImageLoad"]],[30,0,["onImageError"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["secureEmbedUrl"]],[[[1,"          "],[10,0],[15,0,[28,[32,3],["display-flex align-items-center justify-center",[52,[51,[30,0,["hasHeightOrWidth"]]]," pv-treasury-media-viewer__iframe-container--no-dimensions"]],null]],[15,5,[28,[32,4],null,[["width","height"],[[28,[32,3],[[30,0,["width"]],"px"],null],[28,[32,3],[[30,0,["height"]],"px"],null]]]]],[12],[1,"\\n            "],[10,"iframe"],[15,"title",[28,[32,5],["view_treasury","profile-treasury/components/treasury-media-viewer"],null]],[15,"src",[30,0,["secureEmbedUrl"]]],[14,"frameborder","0"],[14,"scrolling","no"],[14,"allowfullscreen",""],[12],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],[[[41,[30,0,["treasuryImageUrl"]],[[[1,"            "],[10,"img"],[15,"src",[30,0,["treasuryImageUrl"]]],[14,0,"pv-treasury-media-viewer__img"],[15,"alt",[28,[32,5],["i18n_treasury_image","profile-treasury/components/treasury-media-viewer"],null]],[12],[13],[1,"\\n"]],[]],[[[1,"            "],[10,0],[14,0,"pv-treasury-media-viewer__missing-image"],[12],[13],[1,"\\n"]],[]]],[1,"        "]],[]]]],[]]]],[]]]],[]]],[1,"      "],[13],[1,"\\n      "],[10,0],[14,0,"grid__col p4 grid__col--md-8 grid__col--sm-24 display-flex flex-column justify-space-between"],[12],[1,"\\n        "],[10,0],[12],[1,"\\n"],[41,[30,0,["treasuryTitle"]],[[[1,"            "],[10,"h3"],[14,0,"pv-treasury-media-viewer__title text-heading-medium"],[12],[1,"\\n              "],[1,[30,0,["treasuryTitle"]]],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[41,[30,0,["treasuryDescription"]],[[[1,"            "],[10,2],[14,0,"text-body-small mb2"],[12],[1,"\\n              "],[1,[28,[32,6],[[30,0,["treasuryDescription"]]],null]],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[41,[51,[30,0,["treasuryNativeDocument"]]],[[[41,[30,0,["viewUrl"]],[[[1,"              "],[8,[32,7],null,[["@href","@class","@target","@rel"],[[28,[32,8],[[30,0,["viewUrl"]]],null],"link-without-hover-visited","_blank","noopener noreferrer"]],[["default"],[[[[1,"\\n                "],[8,[32,9],null,[["@type","@color","@text"],["secondary","muted",[28,[32,5],["view_treasury","profile-treasury/components/treasury-media-viewer"],null]]],null],[1,"\\n              "]],[]]]]],[1,"\\n"]],[]],null]],[]],null],[1,"        "],[13],[1,"\\n"],[41,[28,[32,10],[[30,0,["treasuryLength"]],1],null],[[[1,"          "],[10,0],[14,0,"display-flex justify-space-between align-items-center"],[12],[1,"\\n            "],[10,1],[14,0,"text-body-medium"],[12],[1,"\\n              "],[1,[28,[32,5],["treasury_count","profile-treasury/components/treasury-media-viewer"],[["treasuryIndex","totalTreasury"],[[30,2],[30,0,["treasuryLength"]]]]]],[1,"\\n            "],[13],[1,"\\n            "],[10,0],[12],[1,"\\n              "],[8,[32,9],[[24,1,"treasury-previous-button"],[4,[32,11],["click",[30,0,["previousButtonPressed"]]],null],[4,[32,12],["treasury_viewer_view_previous_clicked"],null]],[["@type","@size","@color","@icon","@disabled"],["tertiary",2,"muted","chevron-left-icon",[30,3]]],[["default"],[[[[1,"\\n                "],[1,[28,[32,5],["prev_treasury","profile-treasury/components/treasury-media-viewer"],null]],[1,"\\n                "],[10,1],[14,0,"visually-hidden"],[12],[1,[28,[32,5],["a11y_prev_treasury","profile-treasury/components/treasury-media-viewer"],null]],[13],[1,"\\n              "]],[]]]]],[1,"\\n              "],[8,[32,9],[[24,1,"treasury-next-button"],[4,[32,11],["click",[30,0,["nextButtonPressed"]]],null],[4,[32,12],["treasury_viewer_view_next_clicked"],null]],[["@type","@size","@color","@icon","@iconRight","@disabled"],["tertiary",2,"muted","chevron-right",true,[30,4]]],[["default"],[[[[1,"\\n                "],[1,[28,[32,5],["next_treasury","profile-treasury/components/treasury-media-viewer"],null]],[1,"\\n                "],[10,1],[14,0,"visually-hidden"],[12],[1,[28,[32,5],["a11y_next_treasury","profile-treasury/components/treasury-media-viewer"],null]],[13],[1,"\\n              "]],[]]]]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],["@isLoading","@itemIndex","@mutePreviousButton","@muteNextButton"],false,["if","unless"]]',moduleName:"profile-treasury/components/treasury-media-viewer.gts",scope:()=>[y.default,v.default,_.default,w.concat,k.default,P.default,C.default,x.default,D.default,T.default,O.default,E.on,S.default],isStrictMode:!0}),(M=class extends b.default{constructor(e,n){super(e,n);(0,i.default)(this,"imageId",`treasury-media-viewer-image-${(0,c.guidFor)(this)}`);(0,t.default)(this,"isMissingImage",A,this);(0,i.default)(this,"token",void 0)
this.ivmPreviewImage&&(this.token=N.beginAsync())}willDestroy(){super.willDestroy()
this._endAsync()}get treasuryLength(){return this.args.treasuryLength??0}get treasuryNativeDocument(){return(0,a.getGraphQlValueWithDashFallback)(this.args.treasuryItem,"dataResolutionResult.NativeDocument")}get ivmPreviewImage(){var e
return this.isMissingImage||null===(e=this.args.treasuryItem)||void 0===e?void 0:e.previewImage}get treasuryImageUrl(){var e,t,i
const n=(0,a.getGraphQlValueWithDashFallback)(this.args.treasuryItem,"dataResolutionResult.NativeDocument.coverPages.pagesPerResolution.0.imageUrls.0"),o=(0,a.getGraphQlValueWithDashFallback)(this.args.treasuryItem,"dataResolutionResult.VectorImage"),r=null===(e=this.args.treasuryItem)||void 0===e||null===(t=e.previewImages)||void 0===t||null===(i=t[0])||void 0===i?void 0:i.url
return n?(0,m.default)(n):o?(0,g.default)(o,744,480):r}get treasuryTitle(){var e,t
return(0,p.getLocalizedStringFromMultiLocaleString)(null===(e=this.args.treasuryItem)||void 0===e?void 0:e.multiLocaleTitle,{viewingLocale:this.args.viewingLocale,primaryLocale:this.args.primaryLocale})||(null===(t=this.args.treasuryItem)||void 0===t?void 0:t.title)}get treasuryDescription(){var e,t
return(0,p.getLocalizedStringFromMultiLocaleString)(null===(e=this.args.treasuryItem)||void 0===e?void 0:e.multiLocaleDescription,{viewingLocale:this.args.viewingLocale,primaryLocale:this.args.primaryLocale})||(null===(t=this.args.treasuryItem)||void 0===t?void 0:t.description)}get sourceUrl(){return(0,a.getGraphQlValueWithDashFallback)(this.args.treasuryItem,"dataResolutionResult.sourceUrl")||(0,a.getGraphQlValueWithDashFallback)(this.args.treasuryItem,"dataResolutionResult.url")||(0,a.getGraphQlValueWithDashFallback)(this.args.treasuryItem,"dataResolutionResult.Url")||(0,a.getGraphQlValueWithDashFallback)(this.args.treasuryItem,"dataResolutionResult.Video.sourceUrl")||(0,a.getGraphQlValueWithDashFallback)(this.args.treasuryItem,"dataResolutionResult.ImageUrl.sourceUrl")||(0,a.getGraphQlValueWithDashFallback)(this.args.treasuryItem,"dataResolutionResult.Document.sourceUrl")}get embedUrl(){return(0,a.getGraphQlValueWithDashFallback)(this.args.treasuryItem,"dataResolutionResult.embedUrl")||(0,a.getGraphQlValueWithDashFallback)(this.args.treasuryItem,"dataResolutionResult.Video.embedUrl")||(0,a.getGraphQlValueWithDashFallback)(this.args.treasuryItem,"dataResolutionResult.ImageUrl.embedUrl")||(0,a.getGraphQlValueWithDashFallback)(this.args.treasuryItem,"dataResolutionResult.Document.embedUrl")}get viewUrl(){return this.embedUrl||this.sourceUrl}get height(){var e
return(null===(e=this.args.treasuryItem)||void 0===e?void 0:e.height)||(0,a.getGraphQlValueWithDashFallback)(this.args.treasuryItem,"dataResolutionResult.height")}get width(){var e
return(null===(e=this.args.treasuryItem)||void 0===e?void 0:e.width)||(0,a.getGraphQlValueWithDashFallback)(this.args.treasuryItem,"dataResolutionResult.width")}get hasHeightOrWidth(){return!(!this.height&&!this.width)}get secureEmbedUrl(){var e
const t=null===(e=this.args.treasuryItem)||void 0===e?void 0:e.providerName
let{embedUrl:i}=this
if(!i||!t||!(0,f.default)(i,t))return null
0!==i.indexOf("http")&&0!==i.indexOf("rtsp")&&(i=`//${i}`)
return I.default.sanitizeUrl(i)}nextButtonPressed(){var e,t
this.isMissingImage=!1
null===(e=(t=this.args).nextButtonPressed)||void 0===e||e.call(t)}previousButtonPressed(){var e,t
this.isMissingImage=!1
null===(e=(t=this.args).previousButtonPressed)||void 0===e||e.call(t)}onImageLoad(){this.isDestroying||(this.isMissingImage=!!(0,u.imgNodeIfFaulty)(this.imageId,!0))
this._endAsync()}onImageError(){this.isMissingImage=!0
this._endAsync()}_endAsync(){if(this.token){N.endAsync(this.token)
this.token=void 0}}},A=(0,n.default)(M.prototype,"isMissingImage",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,n.default)(M.prototype,"nextButtonPressed",[h.action],Object.getOwnPropertyDescriptor(M.prototype,"nextButtonPressed"),M.prototype),(0,n.default)(M.prototype,"previousButtonPressed",[h.action],Object.getOwnPropertyDescriptor(M.prototype,"previousButtonPressed"),M.prototype),(0,n.default)(M.prototype,"onImageLoad",[h.action],Object.getOwnPropertyDescriptor(M.prototype,"onImageLoad"),M.prototype),(0,n.default)(M.prototype,"onImageError",[h.action],Object.getOwnPropertyDescriptor(M.prototype,"onImageError"),M.prototype),M))}))
define("profile-treasury/template-registry",[],(function(){}))
define("profile-treasury/utils/treasury-media-viewer-helpers",["exports","video-utils/utils/video-constants"],(function(e,t){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=function(e,i){const n=i?i.toUpperCase():i
return function(e,i){if(!e)return!1
if(!i||i&&!(i in t.PROVIDER_ALLOWLIST))return!1
return!0}(e,n)}}))

//# sourceMappingURL=engine-vendor.mapӘ