view-model-v2","dash-interop-helper/utils/get-graphql-value-with-dash-fallback"],(function(e,t,i,n,o,r,l,a,s,u,c,d,p,m,g,f,h,b,y,v,_){"use strict" Object.defineProperty(e,"__esModule",{value:!0}) e.default=void 0 var w,k,P,C const x={AUDIENCE_BUILDER_ONBOARDING:"opento_button_ab",CAREER_INTEREST_ONBOARDING:"opento_button_otw",HIRING_MANAGER_ONBOARDING:"opento_button_hiring",INTERNAL_MOBILITY_ONBOARDING:"opento_button_internal_mobility",SERVICE_PROVIDER_ONBOARDING:"opento_button_smp",VOLUNTEERING_ONBOARDING:"opento_button_otv",CAREER_INTEREST:"opento_button_otw_edit",HIRING_MANAGER:"opento_button_hiring_edit",SERVICE_PROVIDER:"opento_button_smp_edit"} e.default=(0,a.setComponentTemplate)((0,r.createTemplateFactory)({id:"AXsaI/2+",block:'[[[1,"\\n"],[1," "],[8,[32,0],[[24,0,"pv-top-card-add-goals"],[17,1]],[["@isOpen","@onVisibilityChange","@justification"],[[30,0,["isDropdownOpen"]],[30,0,["onVisibilityChange"]],[30,0,["dropdownJustification"]]]],[["default"],[[[[1,"\\n "],[8,[30,2,["dropdown-trigger"]],[[16,"aria-expanded",[52,[30,0,["isDropdownOpen"]],"true","false"]],[16,1,[30,3]],[24,0,"artdeco-button artdeco-button--2 artdeco-button--primary m0"],[4,[32,1],["opento_button"],null]],null,[["default"],[[[[1,"\\n "],[1,[28,[32,2],["open_to","profile-top-card/components/add-goals"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[30,2,["dropdown-content"]],null,null,[["default"],[[[[1,"\\n "],[10,"ul"],[14,0,"full-width"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["cards"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[32,3],[[24,0,"pv-top-card-add-goals__list-item"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],[[24,0,"inverse-link-light-background-without-hover-state display-flex flex-row align-items-center"],[4,[32,5],["click",[30,0,["onClick"]]],null],[4,[32,1],[[30,4,["controlName"]]],null]],[["@href"],[[30,4,["actionTarget"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"flex-1"],[12],[1,"\\n "],[10,"h4"],[14,0,"t-14 t-bold t-black"],[12],[1,"\\n "],[8,[32,6],null,[["@tvm"],[[30,4,["title"]]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,4,["subtitle"]],[[[1," "],[10,2],[14,0,"t-14 t-black--light"],[12],[1,"\\n "],[1,[30,4,["subtitle"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"ml3"],[12],[1,"\\n"],[41,[30,4,["enabledIcon"]],[[[1," "],[8,[32,7],[[24,0,"pv-top-card-add-goals__icon--enabled"]],[["@name"],[[30,4,["enabledIcon"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[4]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[2]]]]],[1,"\\n "]],["&attrs","dropdown","@triggerId","goal"],false,["if","each","-track-array"]]',moduleName:"profile-top-card/components/add-goals.gjs",scope:()=>[m.default,g.default,f.default,h.default,b.default,y.on,v.default,s.default],isStrictMode:!0}),(w=(0,u.inject)("profile-services@profile"),k=class extends p.default{constructor(){super(...arguments);(0,t.default)(this,"profile",P,this);(0,t.default)(this,"isDropdownOpen",C,this)}get dropdownJustification(){return this.args.justification??"left"}get cards(){const e=(0,d.get)(this.args.opportunitiesGoals,"elements").map((e=>(0,_.getGraphQlValueWithDashFallback)(e,"card.buttonCard")||{})) return null!=e&&e.length?e.map((e=>{const t=(0,d.get)(e,"cardTypeForTracking") return{controlName:x[t]??"UNKNOWN",type:t,actionTarget:(0,d.get)(e,"actionTarget"),title:(0,d.get)(e,"title"),subtitle:(0,d.get)(e,"description"),enabledIcon:(0,d.get)(e,"enabledIcon")}})):[]}onClick(){this.args.triggerId&&(this.profile.elementIDToFocusOnRouteChange=this.args.triggerId)}onVisibilityChange(){this.isDropdownOpen=!this.isDropdownOpen}},P=(0,n.default)(k.prototype,"profile",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,n.default)(k.prototype,"isDropdownOpen",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,n.default)(k.prototype,"onClick",[d.action],Object.getOwnPropertyDescriptor(k.prototype,"onClick"),k.prototype),(0,n.default)(k.prototype,"onVisibilityChange",[d.action],Object.getOwnPropertyDescriptor(k.prototype,"onVisibilityChange"),k.prototype),k))})) define("profile-top-card/components/insight",["exports","@ember/template-factory","@ember/helper","@ember/component","@ember/object","@glimmer/component","app-aware-link/components/app-aware-link","ember-cli-pemberly-tracking/modifiers/track-interaction","image-view-model/components/image-view-model","text-view-model/components/text-view-model-v2"],(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 r.default{get isImageStackedLayout(){return(0,o.get)(this.args.insight,"insightImage.attributes.length")>1}}e.default=c;(0,n.setComponentTemplate)((0,t.createTemplateFactory)({id:"tytLMh2J",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"inline-flex align-items-center link-without-hover-visited pt2"],[4,[32,1],["topcard_shared_connections"],null]],[["@href"],[[30,1,["navigationUrl"]]]],[["default"],[[[[1,"\\n "],[8,[32,2],[[24,0,"mr2"]],[["@images","@entitySize","@isStackedLayout"],[[30,1,["insightImage"]],1,[30,0,["isImageStackedLayout"]]]],null],[1,"\\n "],[10,1],[14,0,"t-normal t-black--light t-14 hoverable-link-text"],[12],[1,"\\n "],[8,[32,3],null,[["@tvm"],[[30,1,["text"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@insight"],false,[]]',moduleName:"profile-top-card/components/insight.gjs",scope:()=>[l.default,a.default,s.default,u.default],isStrictMode:!0}),c)})) define("profile-top-card/components/member-badge",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/helper","@ember/component","global-utils/utils/url","@ember/object","@glimmer/component","@ember/service","ember-cli-pemberly-i18n/helpers/t","global-helpers/helpers/name","hue-web-icons/components/icon","ember-cli-pemberly-tracking/components/shared/external-link","ember-cli-pemberly-tracking/modifiers/track-render"],(function(e,t,i,n,o,r,l,a,s,u,c,d,p,m,g,f,h){"use strict" Object.defineProperty(e,"__esModule",{value:!0}) e.default=void 0 var b,y,v const _="premium_badge_profile_upsell" e.default=(0,a.setComponentTemplate)((0,r.createTemplateFactory)({id:"4ygoYyPu",block:'[[[1,"\\n"],[1," "],[11,1],[24,0,"pv-member-badge"],[17,1],[16,"title",[28,[32,0],["premium_title","profile-top-card/components/member-badge"],[["member"],[[28,[32,1],[[30,2]],null]]]]],[12],[1,"\\n"],[41,[30,0,["showPremiumUpsell"]],[[[1," "],[8,[32,2],[[4,[32,3],null,[["onRender","routeName","currentRoute"],[[30,0,["getImpressionEvent"]],[28,[32,4],[[53,"outletState"],"render.name"],null],[28,[32,4],[[53,"outletState"],"render"],null]]]]],[["@href","@classNames"],[[30,0,["upsellOrderOriginLink"]],"pv-member-badge__premium-upsell"]],[["default"],[[[[1,"\\n "],[8,[32,5],[[24,0,"pv-member-badge__icon"]],[["@name","@size","@type"],["linkedin-bug-premium","xsmall","logo"]],null],[1,"\\n "],[10,1],[14,0,"visually-hidden"],[12],[1,"\\n "],[1,[28,[32,0],["a11y_premium_upsell","profile-top-card/components/member-badge"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,0,["badgeTypeIsPremium"]],[[[1," "],[8,[32,5],[[24,0,"pv-member-badge__icon"]],[["@name","@size","@type"],["linkedin-bug-premium","xsmall","logo"]],null],[1,"\\n"]],[]],null]],[]]],[1,"\\n "],[10,1],[14,0,"visually-hidden"],[12],[1,"\\n "],[1,[28,[32,0],["a11y_member_badge","profile-top-card/components/member-badge"],[["member","badgeType"],[[28,[32,1],[[30,2]],null],[30,0,["badgeType"]]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@dashMember"],false,["if","-get-dynamic-var"]]',moduleName:"profile-top-card/components/member-badge.gjs",scope:()=>[p.default,m.default,f.default,h.default,l.get,g.default],isStrictMode:!0}),(b=(0,d.inject)("authentication@authenticated-user"),y=class extends c.default{constructor(){super(...arguments);(0,t.default)(this,"authenticatedUser",v,this);(0,i.default)(this,"upsellImpressionEvent",_);(0,i.default)(this,"upsellOrderOriginLink",`${(0,s.getDomainUrl)()}/premium/products?upsellOrderOrigin=${_}`)}get badgeType(){return(0,u.get)(this.args,"dashMember.premium")?"premium":""}get badgeTypeIsPremium(){return"premium"===this.badgeType}get showPremiumUpsell(){return!this.authenticatedUser.isPremiumUser&&this.badgeTypeIsPremium}getImpressionEvent(){return{name:"PremiumUpsellImpressionEvent",body:{upsellOrderOrigin:this.upsellImpressionEvent}}}},v=(0,n.default)(y.prototype,"authenticatedUser",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(y.prototype,"getImpressionEvent",[u.action],Object.getOwnPropertyDescriptor(y.prototype,"getImpressionEvent"),y.prototype),y))})) define("profile-top-card/components/memorialized-badge",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","ember-cli-pemberly-i18n/helpers/t"],(function(e,t,i,n,o){"use strict" Object.defineProperty(e,"__esModule",{value:!0}) e.default=void 0 const r=(0,n.setComponentTemplate)((0,t.createTemplateFactory)({id:"n/xN9MTC",block:'[[[1,"\\n"],[1," "],[11,0],[24,0,"label-24dp label-24dp-memorialized inline-block white-space-nowrap v-align-middle"],[17,1],[12],[1,"\\n "],[1,[28,[32,0],["i18n_in_remembrance","profile-top-card/components/memorialized-badge"],null]],[1,"\\n "],[13],[1,"\\n"]],["&attrs"],false,[]]',moduleName:"profile-top-card/components/memorialized-badge.gts",scope:()=>[o.default],isStrictMode:!0}),(0,i.default)("memorialized-badge","MemorializedBadge")) e.default=r})) define("profile-top-card/components/network-highlight",["exports","@ember/template-factory","@ember/helper","@ember/component","dash-interop-helper/utils/get-graphql-value-with-dash-fallback","search-utils/utils/connection-utils","@ember/object","@glimmer/component","ember-engines/components/link-to-external","ember-cli-pemberly-tracking/modifiers/track-interaction","ember-cli-pemberly-i18n/helpers/t","global-helpers/helpers/get-class-hash"],(function(e,t,i,n,o,r,l,a,s,u,c,d){"use strict" Object.defineProperty(e,"__esModule",{value:!0}) e.default=void 0 class p extends a.default{get shouldShowConnections(){return!(!this.args.isSelfView&&this.args.isInfluencer)&&this.connectionsCount>0}get connectionsCount(){return(0,l.get)(this.args,"connections.paging.total")||0}get shouldShowConnectionsLink(){if(!this.searchLinkQueryParams)return!1 if(this.args.isSelfView)return!0 const e=!!(0,o.getGraphQlValueWithDashFallback)(this.args.memberRelationship,"memberRelationship.connection") return(0,l.get)(this.args,"connections.elements.length")>0&&e}get searchLinkQueryParams(){const e=(0,l.get)(this.args.dashMember,"entityUrn") return(0,r.getSeeConnectionsQueryParams)(this.args.isSelfView,e)}get showFollowersCount(){return(this.args.isInfluencer||!!(0,l.get)(this.args.dashMember,"showFollowerCount"))&&(0,l.get)(this.args,"followingState.followerCount")}}e.default=p;(0,n.setComponentTemplate)((0,t.createTemplateFactory)({id:"dN1JeJ/I",block:'[[[1,"\\n"],[1," "],[10,"ul"],[15,0,[28,[32,0],["pv-top-card--list pv-top-card--list-bullet"],null]],[12],[1,"\\n"],[41,[30,0,["showFollowersCount"]],[[[1," "],[10,"li"],[14,0,"text-body-small t-black--light inline-block"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[8,[32,1],[[24,0,"link-without-visited-state"],[4,[32,2],["topcard_view_all_followers"],null]],[["@route"],["mynetwork.network-manager.people-follow.followers"]],[["default"],[[[[1,"\\n "],[1,[28,[32,3],["i18n_followers_count","profile-top-card/components/network-highlight"],[["count"],[[30,2,["followerCount"]]]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,3],["i18n_followers_count","profile-top-card/components/network-highlight"],[["count"],[[30,2,["followerCount"]]]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["shouldShowConnections"]],[[[1," "],[10,"li"],[14,0,"text-body-small"],[12],[1,"\\n"],[41,[30,0,["shouldShowConnectionsLink"]],[[[41,[30,1],[[[1," "],[8,[32,1],[[4,[32,2],["topcard_view_all_connections"],null]],[["@route"],["mynetwork.invite-connect.connections"]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"link-without-visited-state"],[12],[1,"\\n "],[1,[28,[32,3],["i18n_connections","profile-top-card/components/network-highlight"],[["count"],[[30,0,["connectionsCount"]]]]]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[32,1],[[4,[32,2],["topcard_view_all_connections"],null]],[["@route","@model","@query"],["search.results.generic","people",[30,0,["searchLinkQueryParams"]]]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"link-without-visited-state"],[12],[1,"\\n "],[1,[28,[32,3],["i18n_connections","profile-top-card/components/network-highlight"],[["count"],[[30,0,["connectionsCount"]]]]]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]]],[]],[[[1," "],[10,1],[14,0,"t-black--light"],[12],[1,"\\n "],[1,[28,[32,3],["i18n_connections","profile-top-card/components/network-highlight"],[["count"],[[30,0,["connectionsCount"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@isSelfView","@followingState"],false,["if"]]',moduleName:"profile-top-card/components/network-highlight.gjs",scope:()=>[d.default,s.default,u.default,c.default],isStrictMode:!0}),p)})) define("profile-top-card/components/open-to-carousel-card",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/helper","@ember/component","global-utils/utils/url","@ember/service","@ember/object","@glimmer/component","artdeco-card/components/artdeco-card","app-aware-link/components/app-aware-link","ember-cli-pemberly-tracking/modifiers/track-interaction","ember-cli-pemberly-tracking/modifiers/track-view","@ember/modifier","text-view-model/components/text-view-model-v2","global-helpers/helpers/and","ember-cli-pemberly-i18n/helpers/t","artdeco-button/components/artdeco-button","dash-interop-helper/utils/get-graphql-value-with-dash-fallback"],(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,x,D const T={AUDIENCE_BUILDER:"opento_preview_ab",AUDIENCE_BUILDER_ONBOARDING:"opento_prompt_ab",CAREER_INTEREST:"opento_preview_otw",CAREER_INTEREST_ONBOARDING:"opento_prompt_otw",HIRING_MANAGER:"opento_preview_hiring",HIRING_MANAGER_ONBOARDING:"opento_prompt_hiring",INTERNAL_MOBILITY:"opento_preview_internal_mobility",SERVICE_PROVIDER:"opento_preview_smp",SERVICE_PROVIDER_ONBOARDING:"opento_prompt_smp",VOLUNTEERING_ONBOARDING:"opento_button_otv",VOLUNTEERING:"preview_otv"} function O(e){return(0,s.isUrl)(e)?e:`${(0,s.getDomainUrl)()}${e}`}e.default=(0,a.setComponentTemplate)((0,r.createTemplateFactory)({id:"4MZgGpxR",block:'[[[1,"\\n"],[1," "],[8,[32,0],[[16,0,[29,["pv-open-to-carousel-card\\n ",[52,[30,0,["isEnrolled"]],"pv-open-to-carousel-card--enrolled","pv-open-to-carousel-card--unenrolled"]]]],[17,1]],null,[["default"],[[[[1,"\\n"],[41,[30,0,["isEnrolled"]],[[[1," "],[10,0],[15,0,[29,["display-flex justify-space-between pl3\\n ",[52,[30,2],"pr1","pr3"]]]],[12],[1,"\\n "],[8,[32,1],[[24,0,"pv-open-to-carousel-card__content link-without-hover-visited flex-grow-1 pv3"],[24,"data-view-name","profile-opportunity-card"],[4,[32,2],[[30,0,["controlName"]]],null],[4,[32,3],["click",[30,0,["onClick"]]],null],[4,[32,4],null,[["viewName","view","actionCategory","routeName","currentRoute"],["profile-opportunity-card",[30,0],"CLICK_THROUGH",[28,[32,5],[[53,"outletState"],"render.name"],null],[28,[32,5],[[53,"outletState"],"render"],null]]]]],[["@href"],[[30,0,["actionTarget"]]]],[["default"],[[[[1,"\\n "],[10,"h3"],[14,0,"truncate text-body-small"],[12],[1,"\\n "],[8,[32,6],null,[["@tvm"],[[30,0,["title"]]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["subtitle"]],[[[1," "],[10,2],[14,0,"truncate text-body-small"],[12],[1,"\\n "],[1,[30,0,["subtitle"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,2],[14,0,"link-without-visited-state text-heading-small hoverable-link-text"],[12],[1,"\\n "],[8,[32,6],null,[["@tvm"],[[30,0,["tooltip"]]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["visibilityText"]],[[[1," "],[10,2],[14,0,"text-body-small mt3"],[12],[1,"\\n "],[8,[32,6],null,[["@tvm"],[[30,0,["visibilityText"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n\\n"],[41,[28,[32,7],[[30,2],[30,0,["editActionTarget"]]],null],[[[1," "],[10,0],[12],[1,"\\n"],[1," "],[8,[32,1],[[24,0,"link-without-visited-state"],[16,"aria-label",[28,[32,8],["opportunity_card_edit_aria_label","profile-top-card/components/open-to-carousel-card"],[["opportunityCardEditText"],[[30,0,["title","text"]]]]]],[4,[32,2],[[30,0,["editControlName"]]],null],[4,[32,3],["click",[30,0,["onEditClick"]]],null]],[["@href"],[[30,0,["editActionTarget"]]]],[["default"],[[[[1,"\\n "],[8,[32,9],[[24,0,"mt1"],[24,"tabIndex","-1"]],[["@color","@controlType","@icon","@iconRight","@size","@circle","@type","@text"],["muted","button","edit",true,1,true,"tertiary",[28,[32,8],["opportunity_card_edit","profile-top-card/components/open-to-carousel-card"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"display-flex justify-space-between pl3 pr1"],[12],[1,"\\n "],[8,[32,1],[[24,0,"link-without-hover-visited pv3"],[24,"data-view-name","profile-opportunity-card"],[4,[32,2],[[30,0,["controlName"]]],null],[4,[32,3],["click",[30,0,["onClick"]]],null],[4,[32,4],null,[["viewName","view","actionCategory","routeName","currentRoute"],["profile-opportunity-card",[30,0],"CLICK_THROUGH",[28,[32,5],[[53,"outletState"],"render.name"],null],[28,[32,5],[[53,"outletState"],"render"],null]]]]],[["@href"],[[30,0,["actionTarget"]]]],[["default"],[[[[1,"\\n "],[10,2],[14,0,"text-body-small"],[12],[1,"\\n "],[8,[32,6],null,[["@tvm"],[[30,0,["title"]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,2],[14,0,"link-without-visited-state text-heading-small hoverable-link-text"],[12],[1,[28,[32,8],["get_started","profile-top-card/components/open-to-carousel-card"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[10,0],[12],[1,"\\n"],[1," "],[8,[32,9],[[24,0,"mt1"],[4,[32,3],["click",[30,0,["onDismiss"]]],null]],[["@color","@controlType","@icon","@iconRight","@size","@circle","@type","@aria-label"],["muted","button","close",true,1,true,"tertiary",[28,[32,8],["opportunity_card_dismiss","profile-top-card/components/open-to-carousel-card"],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "]],["&attrs","@isSelfView"],false,["if","-get-dynamic-var"]]',moduleName:"profile-top-card/components/open-to-carousel-card.gjs",scope:()=>[p.default,m.default,g.default,h.on,f.default,l.get,b.default,y.default,v.default,_.default],isStrictMode:!0}),(k=(0,u.inject)("lego@tracking"),P=(0,u.inject)("tracking"),C=class extends d.default{constructor(){super(...arguments);(0,t.default)(this,"legoTracking",x,this);(0,t.default)(this,"tracking",D,this)}get card(){return this.args.card&&(0,w.getGraphQlValueWithDashFallback)(this.args.card,"card.enrolledCard")||this.args.card&&(0,w.getGraphQlValueWithDashFallback)(this.args.card,"card.unenrolledCard")||this.args.card&&(0,w.getGraphQlValueWithDashFallback)(this.args.card,"card.buttonCard")||{}}get isEnrolled(){return!!(0,w.getGraphQlValueWithDashFallback)(this.args.card,"card.enrolledCard")}get title(){return(0,c.get)(this.card,"title")}get subtitle(){return(0,c.get)(this.card,"description")}get tooltip(){return(0,c.get)(this.card,"tooltip")}get actionTarget(){return O(this.isEnrolled?(0,c.get)(this.card,"actionTarget"):(0,c.get)(this.card,"editActionTarget")??(0,c.get)(this.card,"actionTarget"))}get editActionTarget(){return O((0,c.get)(this.card,"editActionTarget"))}get cardType(){return(0,c.get)(this.card,"cardTypeForTracking")}get controlName(){return T[this.cardType]}get editControlName(){return`${this.controlName}_edit`}get visibilityText(){return(0,c.get)(this.card,"visibilityText")}onClick(){this.tracking.fireTrackingPayload("ProfileOpportunityCardActionEvent",{profileOpportunityCardType:this.cardType,actionCategory:"CLICK_THROUGH",vieweeUrn:this.args.vieweeUrn})}onDismiss(){var e,t const i=(0,c.get)(this.card,"legoTrackingId") i&&this.legoTracking.sendLegoAction(i,"DISMISS",1) this.tracking.fireTrackingPayload("ProfileOpportunityCardActionEvent",{profileOpportunityCardType:this.cardType,actionCategory:"DISMISS",vieweeUrn:this.args.vieweeUrn}) null===(e=(t=this.args).onDismiss)||void 0===e||e.call(t,this.card)}onEditClick(){this.tracking.fireTrackingPayload("ProfileOpportunityCardActionEvent",{profileOpportunityCardType:this.cardType,actionCategory:"EDIT",vieweeUrn:this.args.vieweeUrn})}},x=(0,n.default)(C.prototype,"legoTracking",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,n.default)(C.prototype,"tracking",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(C.prototype,"onClick",[c.action],Object.getOwnPropertyDescriptor(C.prototype,"onClick"),C.prototype),(0,n.default)(C.prototype,"onDismiss",[c.action],Object.getOwnPropertyDescriptor(C.prototype,"onDismiss"),C.prototype),(0,n.default)(C.prototype,"onEditClick",[c.action],Object.getOwnPropertyDescriptor(C.prototype,"onEditClick"),C.prototype),C))})) define("profile-top-card/components/open-to-carousel",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","tracked-built-ins","@ember/service","@glimmer/tracking","@ember/object","@glimmer/component","artdeco-carousel/components/artdeco-carousel","profile-top-card/components/open-to-carousel-card","@ember/helper","artdeco-button/components/artdeco-button","ember-cli-pemberly-i18n/helpers/t","@ember/modifier","dash-interop-helper/utils/get-graphql-value-with-dash-fallback"],(function(e,t,i,n,o,r,l,a,s,u,c,d,p,m,g,f,h,b,y){"use strict" Object.defineProperty(e,"__esModule",{value:!0}) e.default=void 0 var v,_,w,k,P e.default=(0,l.setComponentTemplate)((0,r.createTemplateFactory)({id:"wv3ZN6DA",block:'[[[1,"\\n"],[1," "],[10,0],[15,0,[29,["pv-open-to-carousel ",[52,[30,0,["hidePagination"]],"pb2"]]]],[12],[1,"\\n"],[41,[30,0,["shouldRenderCarousel"]],[[[1," "],[8,[32,0],null,[["@cardWidth","@carouselItems","@currentSlideIndex","@hidePagination","@hidePrevNextBtns","@loop","@onPrevious","@onNext"],[[30,0,["cardWidth"]],[30,0,["cards","length"]],[30,0,["currentSlideIndex"]],true,true,false,[30,0,["onPrevious"]],[30,0,["onNext"]]]],[["default"],[[[[1,"\\n "],[8,[30,1,["slider"]],null,null,[["default"],[[[[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["cards"]]],null]],null],null,[[[1," "],[8,[30,1,["item"]],null,[["@myIndex"],[[30,3]]],[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"full-height"]],[["@card","@vieweeUrn","@onDismiss","@isSelfView"],[[30,2],[30,4],[30,0,["onDismiss"]],[30,5]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[2,3]],null],[1," "]],[]]]]],[1,"\\n "]],[1]]]]],[1,"\\n"]],[]],[[[41,[28,[32,2],[[30,0,["cards"]],"0"],null],[[[44,[[28,[32,2],[[30,0,["cards"]],"0"],null]],[[[1," "],[8,[32,1],[[24,0,"pv-open-to-carousel-card--single"]],[["@card","@vieweeUrn","@onDismiss","@isSelfView"],[[30,6],[30,4],[30,0,["onDismiss"]],[30,5]]],null],[1,"\\n"]],[6]]],[1," "]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["isPrevButtonVisible"]],[[[1," "],[8,[32,3],[[24,0,"pv-open-to-carousel__navigation-button pv-open-to-carousel__navigation-button--previous"],[16,"aria-label",[28,[32,4],["carousel_button_previous","profile-top-card/components/open-to-carousel"],null]],[4,[32,5],["click",[30,0,["onPrevious"]]],null]],[["@circle","@controlType","@icon","@size"],[true,"button","chevron-left",1]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isNextButtonVisible"]],[[[1," "],[8,[32,3],[[24,0,"pv-open-to-carousel__navigation-button pv-open-to-carousel__navigation-button--next"],[16,"aria-label",[28,[32,4],["carousel_button_next","profile-top-card/components/open-to-carousel"],null]],[4,[32,5],["click",[30,0,["onNext"]]],null]],[["@circle","@controlType","@icon","@size"],[true,"button","chevron-right",1]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["carousel","card","index","@vieweeUrn","@isSelfView","card"],false,["if","each","-track-array","let"]]',moduleName:"profile-top-card/components/open-to-carousel.gjs",scope:()=>[p.default,m.default,g.get,f.default,h.default,b.on],isStrictMode:!0}),(v=(0,s.inject)("profile-services@profile"),_=class extends d.default{constructor(){super(...arguments);(0,t.default)(this,"currentSlideIndex",w,this);(0,t.default)(this,"profile",k,this);(0,t.default)(this,"dismissedCardTypes",P,this)}get cards(){const e=(0,c.get)(this.args,"cards.elements") return 0===this.dismissedCardTypes.length?e??[]:e.filter((e=>{var t return 0===(null===(t=this.dismissedCardTypes.filter((t=>e&&(0,y.getGraphQlValueWithDashFallback)(e,"card")&&(0,y.getGraphQlValueWithDashFallback)(e,"card.unenrolledCard.cardTypeForTracking")===t)))||void 0===t?void 0:t.length)}))}get cardWidth(){return this.profile.isNarrowProfileRail?"100%":"50%"}get showCarouselBtn(){return this.cards.length>(this.profile.isNarrowProfileRail?1:2)}get isPrevButtonVisible(){return this.showCarouselBtn&&0!==this.currentSlideIndex}get isNextButtonVisible(){return this.showCarouselBtn&&this.currentSlideIndex1}onPrevious(){this.currentSlideIndex=Math.max(this.currentSlideIndex-1,0) if(!this.isPrevButtonVisible){var e null===(e=document.querySelector(".pv-open-to-carousel__navigation-button--next"))||void 0===e||e.focus()}}onNext(){this.currentSlideIndex=Math.min(this.currentSlideIndex+1,this.cards.length-1) if(!this.isNextButtonVisible){var e null===(e=document.querySelector(".pv-open-to-carousel__navigation-button--previous"))||void 0===e||e.focus()}}onDismiss(e){var t,i this.dismissedCardTypes.push(e.cardTypeForTracking) null===(t=(i=this.args).onUnenrollCardDismiss)||void 0===t||t.call(i)}},w=(0,n.default)(_.prototype,"currentSlideIndex",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),k=(0,n.default)(_.prototype,"profile",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,n.default)(_.prototype,"dismissedCardTypes",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new a.TrackedArray}}),(0,n.default)(_.prototype,"onPrevious",[c.action],Object.getOwnPropertyDescriptor(_.prototype,"onPrevious"),_.prototype),(0,n.default)(_.prototype,"onNext",[c.action],Object.getOwnPropertyDescriptor(_.prototype,"onNext"),_.prototype),(0,n.default)(_.prototype,"onDismiss",[c.action],Object.getOwnPropertyDescriptor(_.prototype,"onDismiss"),_.prototype),_))})) define("profile-top-card/components/premium-banner",["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/destroyable","@ember/helper","@ember/modifier","@ember/object","@ember/service","ember-lifeline","tracked-toolbox","@glimmer/component","@glimmer/tracking","global-helpers/helpers/and","global-helpers/helpers/eq","ember-cli-pemberly-i18n/helpers/t","ember-cli-pemberly-tracking/modifiers/track-interaction","s-upsell/utils/upsell-card-dash-helpers","s-upsell/utils/constants","profile-tetris-shared/utils/constant/profile-subsection-type","ember-async-data/tracked-async-data","artdeco-modal/components/artdeco-modal","hue-web-icons/components/icon","s-upsell/components/upsell-templates-v2/upsell-template-container-v2","graphql-queries/queries/profile/identityDashProfiles/profile-premium-features.graphql"],(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){"use strict" Object.defineProperty(e,"__esModule",{value:!0}) e.default=void 0 var O,S,I,E,M,A,N,j,R,F,B,V,z,L const U={PROFILE_CUSTOM_CTA:{controlName:"profile_enhanced_premium_banner_custom_cta"},FEATURED_PROFILE_SECTION:{controlName:"profile_enhanced_premium_banner_featured_section"},COVER_PHOTO_CAROUSEL:{controlName:"profile_enhanced_premium_banner_cover_photo_carousel"}} e.default=(0,l.setComponentTemplate)((0,r.createTemplateFactory)({id:"PjXFB/1L",block:'[[[1,"\\n"],[41,[30,0,["viewerHasPremiumAccess"]],[[[1," "],[11,"button"],[24,1,"profile-premium-feature-banner-trigger"],[24,0,"pv-top-card__premium-feature-banner"],[24,4,"button"],[4,[32,0],["profile_enhanced_premium_banner"],null],[4,[32,1],["click",[30,0,["openPremiumFeaturesModal"]]],null],[12],[1,"\\n "],[8,[32,2],null,[["@a11yText","@type","@size","@name"],["Premium","system","small","premium-chip-v2"]],null],[1,"\\n "],[10,1],[14,0,"ml2 flex-grow-1 text-body-small text-align-left"],[12],[1,"\\n "],[1,[28,[32,3],["premium_feature_banner_copy","profile-top-card/components/premium-banner"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,2],[[24,0,"pv-top-card__premium-feature-banner-icon"]],[["@a11yText","@type","@size","@name"],["Caret","system","small","caret"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[28,[32,4],[[30,0,["shouldShowBanner"]],[30,0,["viewerHasUpsellAccess"]],[30,0,["premiumFeatureUpsellSlotContent"]],[30,0,["premiumFeatureUpsellSlotContent","isResolved"]]],null],[[[1," "],[8,[32,5],null,[["@upsellCard","@defaultConfig"],[[30,0,["premiumFeatureUpsellSlotContent","value"]],[28,[32,6],null,[["isCustomTrigger"],[true]]]]],[["default"],[[[[1,"\\n "],[8,[30,1,["trigger"]],null,null,[["default"],[[[[1,"\\n "],[11,"button"],[24,0,"pv-top-card__premium-feature-banner"],[24,4,"button"],[4,[32,0],["profile_enhanced_premium_banner"],null],[4,[32,1],["click",[30,1,["openModal"]]],null],[12],[1,"\\n "],[8,[32,2],null,[["@a11yText","@type","@size","@name"],["Premium","system","small","premium-chip"]],null],[1,"\\n "],[10,1],[14,0,"ml2 flex-grow-1 text-body-small text-align-left"],[12],[1,[28,[32,3],["premium_feature_banner_copy","profile-top-card/components/premium-banner"],null]],[13],[1,"\\n "],[8,[32,2],[[24,0,"pv-top-card__premium-feature-banner-icon"]],[["@a11yText","@type","@size","@name"],["Caret","system","small","caret"]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[1]]]]],[1,"\\n "]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["viewerHasPremiumAccess"]],[[[1," "],[8,[32,7],null,[["@isOpen","@headerId","@modalClasses","@dismissModal","@size"],[[30,0,["showPremiumFeaturesModal"]],"profile-premium-features-modal-header","pv-top-card__premium-feature-banner-modal",[30,0,["closePremiumFeaturesModal"]],"medium"]],[["default"],[[[[1,"\\n "],[8,[30,2,["artdeco-modal-header"]],null,null,[["default"],[[[[1,"\\n "],[10,"h2"],[14,1,"profile-premium-features-modal-header"],[14,0,"pv-top-card__premium-feature-banner-modal-header"],[12],[1,"\\n "],[8,[32,2],null,[["@a11yText","@type","@size","@name"],["Premium","logo","xxxsmall","premium-badge"]],null],[1,"\\n "],[10,0],[14,0,"text-heading-medium"],[12],[1,[28,[32,3],["profile-premium-features-modal-header-title","profile-top-card/components/premium-banner"],null]],[13],[1,"\\n "],[10,0],[14,0,"text-body-small t-black--light mt1"],[12],[1,[28,[32,3],["profile-premium-features-modal-header-subtitle","profile-top-card/components/premium-banner"],null]],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[30,2,["artdeco-modal-content"]],null,null,[["default"],[[[[1,"\\n "],[10,"ul"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["premiumFeatures"]]],null]],null],null,[[[1," "],[10,"li"],[14,0,"list-style-none pt1 pb3"],[12],[1,"\\n "],[11,"button"],[24,0,"pv-top-card__premium-feature-banner-modal-content-item"],[24,4,"button"],[4,[32,1],["click",[28,[32,8],[[30,0,["onPremiumFeatureSelected"]],[30,3,["featureName"]]],null]],null],[4,[32,0],[[30,3,["controlName"]]],null],[12],[1,"\\n "],[10,0],[14,0,"pv-top-card__premium-feature-banner-modal-content-item-text"],[12],[1,"\\n "],[10,0],[14,0,"text-heading-small"],[12],[1,"\\n"],[41,[28,[32,9],[[30,3,["featureName"]],"PROFILE_CUSTOM_CTA"],null],[[[1," "],[1,[28,[32,3],["profile-premium-features-modal-content_item_custom_cta","profile-top-card/components/premium-banner"],null]],[1,"\\n"]],[]],[[[41,[28,[32,9],[[30,3,["featureName"]],"FEATURED_PROFILE_SECTION"],null],[[[1," "],[1,[28,[32,3],["profile-premium-features-modal-content_item_feature_content","profile-top-card/components/premium-banner"],null]],[1,"\\n"]],[]],[[[41,[28,[32,9],[[30,3,["featureName"]],"COVER_PHOTO_CAROUSEL"],null],[[[1," "],[1,[28,[32,3],["profile-premium-features-modal-content_item_cover_photo_carousel","profile-top-card/components/premium-banner"],null]],[1,"\\n "]],[]],null]],[]]]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"text-body-small t-black--light"],[12],[1,"\\n"],[41,[28,[32,9],[[30,3,["featureName"]],"PROFILE_CUSTOM_CTA"],null],[[[1," "],[1,[28,[32,3],["profile-premium-features-modal-content_item_custom_cta_description","profile-top-card/components/premium-banner"],null]],[1,"\\n"]],[]],[[[41,[28,[32,9],[[30,3,["featureName"]],"FEATURED_PROFILE_SECTION"],null],[[[1," "],[1,[28,[32,3],["profile-premium-features-modal-content_item_feature_content_description","profile-top-card/components/premium-banner"],null]],[1,"\\n"]],[]],[[[41,[28,[32,9],[[30,3,["featureName"]],"COVER_PHOTO_CAROUSEL"],null],[[[1," "],[1,[28,[32,3],["profile-premium-features-modal-content_item_cover_photo_carousel_description","profile-top-card/components/premium-banner"],null]],[1,"\\n "]],[]],null]],[]]]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[8,[32,2],[[24,0,"pv-top-card__premium-feature-banner-modal-content-item-icon"]],[["@a11yText","@type","@size","@name"],["Arrow Right","system","small","arrow-right"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[2]]]]],[1,"\\n"]],[]],null],[1," "]],["upsellModal","modal","feature"],false,["if","each","-track-array"]]',moduleName:"profile-top-card/components/premium-banner.gjs",scope:()=>[v.default,u.on,x.default,y.default,h.default,D.default,s.hash,C.default,s.fn,b.default],isStrictMode:!0}),(O=(0,d.inject)("tracking"),S=(0,d.inject)("authentication@authenticated-user"),I=(0,d.inject)("router"),E=(0,d.inject)("client-sensor-web@client-sensor"),M=(0,d.inject)("@linkedin/ember-restli-graphql@graphql"),A=(0,d.inject)("profile-services@profile"),N=class extends g.default{constructor(){super(...arguments);(0,t.default)(this,"tracking",j,this);(0,t.default)(this,"authenticatedUser",R,this);(0,t.default)(this,"router",F,this);(0,t.default)(this,"clientSensor",B,this);(0,t.default)(this,"graphql",V,this);(0,t.default)(this,"profile",z,this);(0,t.default)(this,"showPremiumFeaturesModal",L,this)}get premiumFeatures(){const e=[] for(let t=0;t{if(!(0,a.isDestroying)(this))return(0,c.get)(e,"data.identityDashProfilesById")})) return new P.default(e)}get viewerHasPremiumAccess(){if(this.shouldShowBanner&&this.profilePremiumFeatures.isResolved)return this.profilePremiumFeatures.value.premiumFeatures.some((e=>e.hasAccess))}get viewerHasUpsellAccess(){if(this.profilePremiumFeatures.isResolved)return this.profilePremiumFeatures.value.premiumFeatures.some((e=>e.hasUpsellAccess))}get shouldShowBanner(){let e=!1 for(let t=0;t{if(!(0,a.isDestroying)(this))return(0,c.get)(e,"data.premiumDashUpsellSlotContentBySlotType.elements.0.upsellCard")})) return new P.default(e)}}onPremiumFeatureSelected(e){this.closePremiumFeaturesModal();(0,p.runTask)(this,(()=>{let t=`/in/${this.viewerVanity}` switch(e){case"PROFILE_CUSTOM_CTA":t=`/in/${this.viewerVanity}/add-edit/CUSTOM_ACTION` break case"FEATURED_PROFILE_SECTION":t=`/in/${this.viewerVanity}/overlay/${k.ADD_FEATURED_PROFILE_SECTION_SELECTION}`}if(this.router.recognize(t)){this.profile.elementIDToFocusOnRouteChange="profile-premium-feature-banner-trigger" this.router.transitionTo(t)}}))}openPremiumFeaturesModal(){this.showPremiumFeaturesModal=!0 this.tracking.firePageViewEvent("flagship3_profile_premium_features_view")}closePremiumFeaturesModal(){this.showPremiumFeaturesModal=!1}},j=(0,n.default)(N.prototype,"tracking",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,n.default)(N.prototype,"authenticatedUser",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,n.default)(N.prototype,"router",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,n.default)(N.prototype,"clientSensor",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,n.default)(N.prototype,"graphql",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,n.default)(N.prototype,"profile",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,n.default)(N.prototype,"showPremiumFeaturesModal",[f.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,n.default)(N.prototype,"premiumFeatures",[m.cached],Object.getOwnPropertyDescriptor(N.prototype,"premiumFeatures"),N.prototype),(0,n.default)(N.prototype,"profilePremiumFeatures",[m.cached],Object.getOwnPropertyDescriptor(N.prototype,"profilePremiumFeatures"),N.prototype),(0,n.default)(N.prototype,"onPremiumFeatureSelected",[c.action],Object.getOwnPropertyDescriptor(N.prototype,"onPremiumFeatureSelected"),N.prototype),(0,n.default)(N.prototype,"openPremiumFeaturesModal",[c.action],Object.getOwnPropertyDescriptor(N.prototype,"openPremiumFeaturesModal"),N.prototype),(0,n.default)(N.prototype,"closePremiumFeaturesModal",[c.action],Object.getOwnPropertyDescriptor(N.prototype,"closePremiumFeaturesModal"),N.prototype),N))})) define("profile-top-card/components/profile-picture-skeleton",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","global-helpers/helpers/get-class-hash"],(function(e,t,i,n,o){"use strict" Object.defineProperty(e,"__esModule",{value:!0}) e.default=void 0 const r=(0,n.setComponentTemplate)((0,t.createTemplateFactory)({id:"BgXWMPOh",block:'[[[1,"\\n "],[10,0],[15,0,[29,["pv-top-card-profile-picture__skeleton\\n ",[28,[32,0],["pvs-loader__shimmer"],null]]]],[12],[1,"\\n "],[13],[1,"\\n"]],[],false,[]]',moduleName:"profile-top-card/components/profile-picture-skeleton.gts",scope:()=>[o.default],isStrictMode:!0}),(0,i.default)("profile-picture-skeleton","ProfilePictureSkeleton")) e.default=r})) define("profile-top-card/components/profile-picture",["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","profile-locale-helpers/utils/secondary-locale-helpers","ember-vector-images/utils/vector-url","global-utils/utils/api-compat","global-utils/utils/is-browser","dash-interop-helper/utils/get-graphql-value-with-dash-fallback","tracked-toolbox","@ember/service","@ember/object","@glimmer/tracking","@glimmer/component","ember-vector-images/components/custom-image","profile-top-card/components/profile-picture-skeleton","global-helpers/helpers/get-class-hash","ember-cli-pemberly-i18n/helpers/t","global-utils/utils/get-location"],(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,x,D,T,O,S,I,E e.default=(0,l.setComponentTemplate)((0,r.createTemplateFactory)({id:"Qs/+nOXh",block:'[[[1,"\\n"],[1," "],[10,"button"],[15,0,[29,[[28,[32,0],["pv-top-card-profile-picture"],null],"\\n pv-top-card-profile-picture__container display-block\\n ",[30,1],"\\n "]]],[15,"onclick",[30,2]],[15,"aria-label",[28,[32,1],["button_aria_label","profile-top-card/components/profile-picture"],null]],[14,4,"button"],[12],[1,"\\n"],[41,[30,3],[[[1," "],[10,0],[15,0,[29,["profile-photo-edit ",[30,0,["profilePictureOpacityClass"]]]]],[12],[13],[1,"\\n"]],[]],[[[1," "],[8,[32,2],[[16,"data-chameleon-hovercard",[30,0,["chameleonData"]]],[16,"data-chameleon-hovercard-behavior",[30,0,["chameleonBehavior"]]]],[["@class","@image","@alt","@title","@width","@height","@ghostType","@highQuality","@onLoad","@onError"],[[29,[[28,[32,0],["pv-top-card-profile-picture__image"],null]," ",[30,0,["profilePictureOpacityClass"]]]],[30,0,["profilePicture"]],[30,4],[30,4],[30,5],[30,5],"person",true,[30,0,["onProfileImageLoad"]],[30,0,["handleImageLoadingError"]]]],null],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["showImageLoadingShimmer"]],[[[1," "],[8,[32,3],null,null,null],[1,"\\n"]],[]],null],[1,"\\n "],[13],[1,"\\n "]],["@containerClasses","@onClick","@showProfilePhotoEditIcon","@altText","@photoSize"],false,["if"]]',moduleName:"profile-top-card/components/profile-picture.gjs",scope:()=>[v.default,_.default,b.default,y.default],isStrictMode:!0}),(k=(0,m.inject)("formatter"),P=(0,m.inject)("global-services@local-storage"),C=(0,p.trackedReset)("args.dashProfile.entityUrn"),x=(0,p.trackedReset)("args.dashProfile.entityUrn"),D=class extends h.default{get showImageLoadingShimmer(){return!this.isImageLoaded&&!this.args.showProfilePhotoEditIcon}get profilePictureOpacityClass(){return this.showImageLoadingShimmer?"pv-top-card-profile-picture__image--hide":"pv-top-card-profile-picture__image--show"}get profilePicture(){if(this.hasProfileImageError)return null const e=this.args.dashProfile return this.args.withoutFrame?(0,d.getGraphQlValueWithDashFallback)(e,"profilePicture.displayImageReferenceResolutionResult.vectorImage"):(0,d.getGraphQlValueWithDashFallback)(e,"profilePicture.displayImageWithFrameReference.vectorImage")||(0,d.getGraphQlValueWithDashFallback)(e,"profilePicture.displayImageReferenceResolutionResult.vectorImage")}get chameleonData(){let e if(c.default){e=((0,w.default)()||window.location).href}return this.isChameleonEnabled?encodeURIComponent(JSON.stringify({value:(0,u.entityUrnToId)((0,g.get)(this.args.dashProfile,"objectUrn")),displayName:this.formatter.formatName((0,a.getMemberName)(this.args.dashProfile,{primaryLocale:"en_US"}),"full"),previewUrl:e,metadata:{entityType:"member"}})):null}get chameleonBehavior(){if(this.isChameleonEnabled){const e={primaryLocale:"en_US"},t=(0,s.default)(this.profilePicture,40,40),i=(0,a.getLocalizedStringFromMultiLocaleString)((0,g.get)(this.args.dashProfile,"multiLocaleHeadline"),e) return encodeURIComponent(JSON.stringify({hovercardDisplay:{imageUrl:t,title:"Chameleon",headline:this.formatter.formatName((0,a.getMemberName)(this.args.dashProfile,e),"full"),subHeadline:i,actionText:"Add"},cartPath:["changes","0","treatments","0","injections"]}))}return null}constructor(){var e super(...arguments);(0,t.default)(this,"formatter",T,this);(0,t.default)(this,"localStorage",O,this);(0,t.default)(this,"isChameleonEnabled",S,this);(0,t.default)(this,"hasProfileImageError",I,this);(0,t.default)(this,"isImageLoaded",E,this) this.isChameleonEnabled="true"===(null===(e=this.localStorage)||void 0===e?void 0:e.getItemWithoutPrefix("chameleon-extension-enabled"))}onClick(){var e,t null===(e=(t=this.args).onClick)||void 0===e||e.call(t)}onProfileImageLoad(){this.isImageLoaded=!0}handleImageLoadingError(){this.hasProfileImageError=!0}},T=(0,n.default)(D.prototype,"formatter",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,n.default)(D.prototype,"localStorage",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,n.default)(D.prototype,"isChameleonEnabled",[f.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),I=(0,n.default)(D.prototype,"hasProfileImageError",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),E=(0,n.default)(D.prototype,"isImageLoaded",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,n.default)(D.prototype,"onClick",[g.action],Object.getOwnPropertyDescriptor(D.prototype,"onClick"),D.prototype),(0,n.default)(D.prototype,"onProfileImageLoad",[g.action],Object.getOwnPropertyDescriptor(D.prototype,"onProfileImageLoad"),D.prototype),(0,n.default)(D.prototype,"handleImageLoadingError",[g.action],Object.getOwnPropertyDescriptor(D.prototype,"handleImageLoadingError"),D.prototype),D))})) define("profile-top-card/components/profile-topcard-background-image-edit",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/helper","@ember/component","image-edit-tool/components/image-upload-errors","dash-interop-helper/utils/get-graphql-value-with-dash-fallback","@glimmer/tracking","ember-batcher","global-utils/utils/url","@ember/object","global-utils/utils/image-utils","global-helpers/helpers/and","global-helpers/helpers/or","@glimmer/component","@ember/service","@ember/destroyable","image-edit/components/profile-background-image-octane","artdeco-hoverables/components/artdeco-hoverable-trigger","artdeco-button/components/artdeco-button","hue-web-icons/components/icon","ember-cli-pemberly-i18n/helpers/t","text-view-model/components/text-view-model-v2","artdeco-modal/components/artdeco-modal","ember-set-helper/helpers/set","ember-cli-pemberly-tracking/components/shared/external-link","ember-cli-pemberly-tracking/modifiers/track-interaction","image-edit/components/background-image-chooser-modal","image-edit/components/background-image-cropper-v2","image-edit/components/cover-photo-carousel-modal","image-edit/components/cover-photo-dropdown-button","@ember/modifier","premium-shared/components/animated-enhance-button","profile-shared/utils/tetris-api-helpers","s-upsell/components/premium-custom-upsell-modal"],(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,M,A,N,j,R,F){"use strict" Object.defineProperty(e,"__esModule",{value:!0}) e.default=void 0 var B,V,z,L,U,G,q,W,H,Q,K,$,Y,X,J,Z,ee,te,ie,ne,oe,re,le,ae,se e.default=(0,a.setComponentTemplate)((0,r.createTemplateFactory)({id:"diO8Q5Mi",block:'[[[1,"\\n"],[1," "],[10,0],[14,0,"profile-topcard-background-image-edit"],[12],[1,"\\n "],[8,[32,0],null,[["@backgroundImage","@coverPhotoItems","@shouldOpenBackgroundModal","@onProfileBackgroundImageResize"],[[30,0,["displayImage"]],[30,0,["coverPhotoItems"]],true,[30,1]]],null],[1,"\\n\\n "],[10,0],[14,0,"profile-topcard-background-image-edit__button"],[12],[1,"\\n "],[10,0],[14,1,"profile-topcard-background-image-edit-outlet"],[12],[13],[1,"\\n "],[10,"section"],[14,0,"profile-topcard-background-image-edit__icon"],[12],[1,"\\n"],[41,[30,0,["showTetrisCallo