onst o=null===(e=this.feedbackFormSectionViewModel)||void 0===e?void 0:e.firstFormElementViewModel
if(!o||this.isDestroying)return
const r=null===(t=o.formElement.formComponentResolutionResult)||void 0===t||null===(i=t.radioButtonFormComponent)||void 0===i||null===(n=i.selectableOptionsResolutionResults)||void 0===n?void 0:n.map((e=>{var t
return null===(t=e.textSelectableOption)||void 0===t?void 0:t.optionEnumString}))
this.tracking.fireTrackingPayload("PremiumGenerativeAISurveyImpressionEvent",{surveyChoicesShown:r,generatedContentTrackingId:this.args.generatedContentTrackingId,generatedContentType:d.feedbackFormType.PROFILE})}resetFeedbackPanel(){var e
this.showThankYou=!1
null===(e=this.feedbackFormSectionViewModel)||void 0===e||e.reset()}},E=(0,n.default)(I.prototype,"tracking",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,n.default)(I.prototype,"graphql",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,n.default)(I.prototype,"dependencyHandler",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,n.default)(I.prototype,"isFeedbackCollectionModalOpen",[f.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),j=(0,n.default)(I.prototype,"showThankYou",[f.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),R=(0,n.default)(I.prototype,"feedbackFormData",[f.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(I.prototype,"feedbackFormSectionViewModel",[p.cached],Object.getOwnPropertyDescriptor(I.prototype,"feedbackFormSectionViewModel"),I.prototype),(0,n.default)(I.prototype,"markFeedbackAsGood",[h.action],Object.getOwnPropertyDescriptor(I.prototype,"markFeedbackAsGood"),I.prototype),(0,n.default)(I.prototype,"markFeedbackAsBad",[h.action],Object.getOwnPropertyDescriptor(I.prototype,"markFeedbackAsBad"),I.prototype),(0,n.default)(I.prototype,"hideFeedbackCollectionModal",[h.action],Object.getOwnPropertyDescriptor(I.prototype,"hideFeedbackCollectionModal"),I.prototype),(0,n.default)(I.prototype,"submitSuggestionQualityFeedback",[h.action],Object.getOwnPropertyDescriptor(I.prototype,"submitSuggestionQualityFeedback"),I.prototype),(0,n.default)(I.prototype,"fireImpressionEvent",[h.action],Object.getOwnPropertyDescriptor(I.prototype,"fireImpressionEvent"),I.prototype),(0,n.default)(I.prototype,"resetFeedbackPanel",[h.action],Object.getOwnPropertyDescriptor(I.prototype,"resetFeedbackPanel"),I.prototype),I))}))
define("profile-premium/components/generated-suggestions/generated-suggestion-promo-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","@glimmer/component","@glimmer/tracking","@ember/service","@ember/debug","@ember/object","ember-scroll-modifiers/modifiers/did-intersect","ember-cli-pemberly-tracking/modifiers/track-impression","hue-web-icons/components/icon","text-view-model/components/text-view-model-v2","label-view-model/components/label-view-model","button-appearance/components/button-appearance","ember-cli-pemberly-tracking/modifiers/track-interaction","profile-tetris-shared/components/profile-component/action-component/navigation"],(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
e.default=(0,a.setComponentTemplate)((0,r.createTemplateFactory)({id:"ZFIF3xww",block:'[[[1,"\\n"],[1,"    "],[11,0],[24,0,"premium-accent-bar artdeco-card pv-shared-promo-card__container"],[4,[32,0],null,[["onEnter"],[[30,0,["fireLegoImpressionEvent"]]]]],[4,[32,1],null,[["registerOnImpression","routeName","currentRoute"],[[30,0,["getImpressionPayload"]],[28,[32,2],[[53,"outletState"],"render.name"],null],[28,[32,2],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n"],[1,"      "],[8,[32,3],null,[["@type","@name","@size","@a11yText"],["logo","premium-badge","xxxsmall","Premium"]],null],[1,"\\n      "],[10,0],[14,0,"mt2 pr7"],[12],[1,"\\n"],[41,[30,1,["headline"]],[[[1,"          "],[10,0],[14,0,"mb1"],[12],[1,"\\n            "],[10,"h1"],[14,0,"t-20 t-bold inline-block mr2"],[12],[1,"\\n              "],[8,[32,4],null,[["@tvm"],[[30,1,["headline"]]]],null],[1,"\\n            "],[13],[1,"\\n"],[41,[30,1,["headlineVersion"]],[[[1,"              "],[8,[32,5],[[24,0,"v-align-text-bottom"]],[["@lvm"],[[30,1,["headlineVersion"]]]],null],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n"]],[]],null],[41,[30,1,["description"]],[[[1,"          "],[10,2],[14,0,"t-16 t-black--light mb3"],[12],[1,"\\n            "],[8,[32,4],null,[["@tvm"],[[30,1,["description"]]]],null],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n"],[41,[30,1,["dismissCta"]],[[[1,"        "],[8,[32,6],[[24,0,"pv-shared-promo-card__dismiss-cta"],[4,[32,7],["generated_suggestion_promo_card_dismiss"],null]],[["@onClick","@appearance","@a11yText"],[[30,0,["onDismissCta"]],[30,1,["dismissCta"]],[30,1,["dismissCtaAccessibilityText"]]]],null],[1,"\\n"]],[]],null],[41,[30,1,["primaryCtaButtonV2"]],[[[1,"        "],[8,[32,8],null,[["@tetrisComponentModel","@handleAction"],[[30,1,["primaryCtaButtonV2"]],[30,0,["onPrimaryCta"]]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "]],["@promoCardData"],false,["-get-dynamic-var","if"]]',moduleName:"profile-premium/components/generated-suggestions/generated-suggestion-promo-card.gjs",scope:()=>[m.default,g.default,l.get,f.default,h.default,b.default,y.default,v.default,_.default],isStrictMode:!0}),(w=(0,c.inject)("lego@tracking"),k=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"legoTracking",P,this);(0,t.default)(this,"isDismissed",C,this)}fireLegoImpressionEvent(){const e=(0,p.get)(this.args.promoCardData,"legoTrackingToken")
e&&this.legoTracking.sendLegoImpression(e,this.legoTracking.LEGO_IMPRESSION_VISIBILITY_SHOW,!0)}onPrimaryCta(){var e,t
const i=(0,p.get)(this.args.promoCardData,"legoTrackingToken")
i&&this.legoTracking.sendLegoAction(i,this.legoTracking.LEGO_ACTION_PRIMARY,1)
null===(e=(t=this.args).onPrimaryCtaClick)||void 0===e||e.call(t,...arguments)}onDismissCta(){const e=(0,p.get)(this.args.promoCardData,"legoTrackingToken")
e&&this.legoTracking.sendLegoAction(e,this.legoTracking.LEGO_ACTION_DISMISS,1)
this.args.onDismissCtaClick()}getImpressionPayload(){return()=>({name:"ProfileGeneratedSuggestionProfilePromoBannerImpressionEvent",body:{}})}},P=(0,n.default)(k.prototype,"legoTracking",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,n.default)(k.prototype,"isDismissed",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,n.default)(k.prototype,"fireLegoImpressionEvent",[p.action],Object.getOwnPropertyDescriptor(k.prototype,"fireLegoImpressionEvent"),k.prototype),(0,n.default)(k.prototype,"onPrimaryCta",[p.action],Object.getOwnPropertyDescriptor(k.prototype,"onPrimaryCta"),k.prototype),(0,n.default)(k.prototype,"onDismissCta",[p.action],Object.getOwnPropertyDescriptor(k.prototype,"onDismissCta"),k.prototype),(0,n.default)(k.prototype,"getImpressionPayload",[p.action],Object.getOwnPropertyDescriptor(k.prototype,"getImpressionPayload"),k.prototype),k))}))
define("profile-premium/components/generated-suggestions/generated-suggestion-terminal-view",["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","profile-premium/utils/profile-generated-suggestion-tracking-util","@glimmer/component","@ember/service","@ember/debug","@ember/object","profile-premium/components/generated-suggestions/inline-modal","ember-scroll-modifiers/modifiers/did-intersect","ember-cli-pemberly-tracking/modifiers/track-view","button-appearance/components/button-appearance","global-helpers/helpers/or","ember-cli-pemberly-i18n/helpers/t","hue-web-icons/components/icon","text-view-model/components/text-view-model-v2","ember-cli-pemberly-tracking/modifiers/track-interaction"],(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,a.setComponentTemplate)((0,r.createTemplateFactory)({id:"prhBOTi3",block:'[[[1,"\\n"],[1,"    "],[8,[32,0],null,[["@onDismiss"],[[30,0,["exit"]]]],[["default"],[[[[1,"\\n      "],[11,"section"],[24,0,"pv-shared-generated-suggestion-terminal-view__card pv-shared-generated-suggestion-terminal-view__card--coach"],[24,"data-view-name","profile-generated-suggestions-intro-end"],[4,[32,1],null,[["onEnter"],[[30,0,["fireImpressionEvent"]]]]],[4,[32,2],null,[["viewName","view","routeName","currentRoute"],["profile-generated-suggestions-intro-end",[30,0],[28,[32,3],[[53,"outletState"],"render.name"],null],[28,[32,3],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n        "],[10,0],[14,0,"pv-shared-generated-suggestion-terminal-view__header"],[12],[1,"\\n          "],[8,[32,4],[[24,0,"pv-shared-generated-suggestion-terminal-view__premium-badge"]],[["@a11yText","@type","@size","@name"],["Premium","logo","xxxsmall","premium-badge"]],null],[1,"\\n          "],[8,[32,4],[[24,0,"pv-shared-generated-suggestion-terminal-view__coach-logo"]],[["@type","@size","@name"],["system","medium","signal-ai"]],null],[1,"\\n"],[41,[30,1,["appearance"]],[[[1,"            "],[10,0],[14,0,"pv-shared-generated-suggestion-terminal-view__exit-cta-container"],[12],[1,"\\n              "],[8,[32,5],null,[["@a11yText","@onClick","@appearance"],[[28,[32,6],[[30,1,["accessibilityText"]],[28,[32,7],["i18n_dismiss","profile-premium/components/generated-suggestions/generated-suggestion-terminal-view"],null]],null],[30,0,["exit"]],[30,1,["appearance"]]]],null],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n\\n        "],[10,0],[14,0,"pv-shared-generated-suggestion-terminal-view__inner-container"],[12],[1,"\\n"],[41,[30,2,["title"]],[[[1,"            "],[10,"h2"],[14,0,"pv-shared-generated-suggestion-terminal-view__title"],[12],[1,"\\n              "],[8,[32,8],null,[["@tvm"],[[30,2,["title"]]]],null],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2,["subtitle"]],[[[1,"            "],[10,0],[14,0,"pv-shared-generated-suggestion-terminal-view__subtitle"],[12],[1,"\\n              "],[8,[32,8],null,[["@tvm"],[[30,2,["subtitle"]]]],null],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2,["description"]],[[[1,"            "],[10,0],[14,0,"pv-shared-generated-suggestion-terminal-view__description"],[12],[1,"\\n              "],[8,[32,8],null,[["@tvm"],[[30,2,["description"]]]],null],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2,["startButtonV2","appearance"]],[[[1,"            "],[8,[32,5],[[24,0,"pv-shared-generated-suggestion-terminal-view__cta"],[4,[32,9],["generated_suggestion_intro_view_start"],null]],[["@onClick","@appearance","@a11yText"],[[30,3],[30,2,["startButtonV2","appearance"]],[30,2,["startButtonV2","accessibilityText"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2,["closeButtonV2","appearance"]],[[[1,"            "],[8,[32,5],[[24,0,"pv-shared-generated-suggestion-terminal-view__cta"],[4,[32,9],["generated_suggestion_end_view_close"],null]],[["@onClick","@appearance","@a11yText"],[[30,0,["exit"]],[30,2,["closeButtonV2","appearance"]],[30,2,["closeButtonV2","accessibilityText"]]]],null],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],["@exitButton","@model","@onStart"],false,["-get-dynamic-var","if"]]',moduleName:"profile-premium/components/generated-suggestions/generated-suggestion-terminal-view.gjs",scope:()=>[m.default,g.default,f.default,l.get,v.default,h.default,b.default,y.default,_.default,w.default],isStrictMode:!0}),(k=(0,c.inject)("tracking"),P=class extends u.default{constructor(){super(...arguments);(0,t.default)(this,"tracking",C,this)}get contentTrackingId(){return this.args.suggestionViewTrackingId}fireImpressionEvent(){const{suggestionViewTrackingId:e}=this.args;(0,s.fireProfileGeneratedSuggestionViewImpressionEvent)(this.tracking,e)}exit(){const e=s.profileGeneratedSuggestionActionType.EXIT,{suggestionViewTrackingId:t}=this.args;(0,s.fireProfileGeneratedSuggestionViewActionEvent)(this.tracking,{actionType:e,suggestionViewTrackingId:t})
this.args.onExit()}},C=(0,n.default)(P.prototype,"tracking",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(P.prototype,"fireImpressionEvent",[p.action],Object.getOwnPropertyDescriptor(P.prototype,"fireImpressionEvent"),P.prototype),(0,n.default)(P.prototype,"exit",[p.action],Object.getOwnPropertyDescriptor(P.prototype,"exit"),P.prototype),P))}))
define("profile-premium/components/generated-suggestions/generated-suggestion-view-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","@ember/destroyable","tracked-built-ins","global-utils/utils/logger","profile-shared/utils/tetris-api-helpers","ember-async-data/tracked-async-data","tracked-toolbox","@glimmer/component","@ember/service","@ember/object","@ember/debug","profile-premium/components/generated-suggestions/inline-modal","artdeco-loader/components/artdeco-loader","profile-premium/components/generated-suggestions/generated-suggestion-edit-view","profile-premium/components/generated-suggestions/generated-suggestion-terminal-view","profile-premium/components/generated-suggestions/profile-enhancing-view","global-helpers/helpers/or"],(function(e,t,i,n,o,r,l,a,s,u,c,d,p,m,g,f,h,b,y,v,_,w,k){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var P,C,x,D,T,O,S,I,E,M,A,N
const j="magic-wand-profile-generated-suggestion-success-count",R="magic-wand-profile-generated-suggestion-error-count"
e.default=(0,l.setComponentTemplate)((0,r.createTemplateFactory)({id:"Zrq98cji",block:'[[[1,"\\n"],[41,[30,0,["suggestionViewsAsyncData","isPending"]],[[[1,"      "],[8,[32,0],null,[["@onDismiss"],[[30,0,["exitFlow"]]]],[["default"],[[[[1,"\\n        "],[10,0],[14,0,"pv-shared-generated-suggestion-view-modal__loading-view"],[12],[1,"\\n          "],[8,[32,1],null,[["@size"],["small"]],null],[1,"\\n        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,0,["shouldRender"]],[[[41,[30,0,["model","view","editView"]],[[[1,"        "],[8,[32,2],null,[["@model","@locale","@targetDelegateUrn","@suggestionsAsyncData","@onSkip","@onExit","@exitButton","@onRetry","@suggestionViewTrackingId"],[[30,0,["model","view","editView"]],[30,1],[30,0,["model","targetDelegateUrn"]],[30,0,["suggestionsAsyncData"]],[30,0,["generatedSuggestionsFlowManager","goToNext"]],[30,0,["exitFlow"]],[30,0,["model","exitButtonV2"]],[30,0,["refetchSuggestionsForCurrentView"]],[30,0,["model","trackingId"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["model","view","enhancingView"]],[[[1,"        "],[8,[32,3],null,[["@model","@onSkip","@onExit","@exitButton","@suggestionViewTrackingId"],[[30,0,["model","view","enhancingView"]],[30,0,["generatedSuggestionsFlowManager","goToNext"]],[30,0,["exitFlow"]],[30,0,["model","exitButtonV2"]],[30,0,["model","trackingId"]]]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[32,4],null,[["@model","@onStart","@onExit","@exitButton","@suggestionViewTrackingId"],[[28,[32,5],[[30,0,["model","view","introView"]],[30,0,["model","view","endView"]]],null],[30,0,["generatedSuggestionsFlowManager","goToNext"]],[30,0,["exitFlow"]],[30,0,["model","exitButtonV2"]],[30,0,["model","trackingId"]]]],null],[1,"\\n      "]],[]]]],[]]],[1,"    "]],[]],null]],[]]],[1,"  "]],["@primaryLocale"],false,["if"]]',moduleName:"profile-premium/components/generated-suggestions/generated-suggestion-view-modal.gjs",scope:()=>[b.default,y.default,v.default,w.default,_.default,k.default],isStrictMode:!0}),(P=(0,g.inject)("@linkedin/ember-restli-graphql@graphql"),C=(0,g.inject)("profile-shared@generated-suggestions-flow-manager"),x=(0,g.inject)("persistent-toast-manager@persistent-toast-manager"),D=(0,g.inject)("i18n"),T=(0,g.inject)("client-sensor-web@client-sensor"),O=class e extends m.default{get suggestionViewsAsyncData(){const t=(0,c.fetchProfileGeneratedSuggestionViewsByViewerGraphQL)(this.graphql,this.args.profileUrn,this.args.viewLocale).then((e=>{if(this.isDestroying)return
const t=e.data.identityDashProfileGeneratedSuggestionViewsByViewer.elements
t.forEach(this.fetchSuggestionsForView)
this.generatedSuggestionsFlowManager.setSuggestionViews(t)
this.generatedSuggestionsFlowManager.start()
return e})).catch((t=>{var i,n
if(this.isDestroying)throw t
this.persistentToastManager.error({message:this.i18n.lookupTranslation(e,"i18n_fetch_error")()})
null===(i=(n=this.args).onInitializationError)||void 0===i||i.call(n);(0,u.errorLogger)(this.jet,"Error fetching ProfileGeneratedSuggestionViewsResource",t,["profile-generated-suggestion"])
throw t}))
return new d.default(t)}get model(){return this.generatedSuggestionsFlowManager.currentSuggestionView}get suggestionsAsyncData(){const{targetDelegateUrn:e}=this.model
return this.suggestionsAsyncDataByTargetUrn.get(e)}get shouldRender(){if(!this.model)return!1
if(this.model.targetDelegateUrn&&!this.generatedSuggestionsFlowManager.hasCurrentTargetRendered){(0,h.debug)(`Target hasn't rendered: ${this.targetSelector}`)
return!1}return!0}constructor(){super(...arguments);(0,t.default)(this,"graphql",S,this);(0,t.default)(this,"generatedSuggestionsFlowManager",I,this);(0,t.default)(this,"persistentToastManager",E,this);(0,t.default)(this,"i18n",M,this);(0,t.default)(this,"jet",A,this);(0,t.default)(this,"clientSensor",N,this);(0,i.default)(this,"suggestionsAsyncDataByTargetUrn",new s.TrackedMap)}fetchSuggestionsForView(e){let{view:t,targetDelegateUrn:i}=e
t.editView&&i&&this.suggestionsAsyncDataByTargetUrn.set(i,new d.default((0,c.fetchProfileGeneratedSuggestionsByProfileField)(this.graphql,t.editView.profileField,this.args.viewLocale).then((e=>{if(!(0,a.isDestroying)(this)){this.clientSensor.incrementMetricCounter({groupName:"premium",metricName:j})
return e.data.identityDashProfileGeneratedSuggestionsByProfileField}})).catch((e=>{if((0,a.isDestroying)(this))throw e
this.clientSensor.incrementMetricCounter({groupName:"premium",metricName:R})
throw e}))))}refetchSuggestionsForCurrentView(){this.fetchSuggestionsForView(this.model)}exitFlow(){var e,t
null===(e=(t=this.args).onModalExit)||void 0===e||e.call(t)
this.generatedSuggestionsFlowManager.end()}},S=(0,n.default)(O.prototype,"graphql",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,n.default)(O.prototype,"generatedSuggestionsFlowManager",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,n.default)(O.prototype,"persistentToastManager",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,n.default)(O.prototype,"i18n",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,n.default)(O.prototype,"jet",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,n.default)(O.prototype,"clientSensor",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.default)(O.prototype,"suggestionViewsAsyncData",[p.cached],Object.getOwnPropertyDescriptor(O.prototype,"suggestionViewsAsyncData"),O.prototype),(0,n.default)(O.prototype,"fetchSuggestionsForView",[f.action],Object.getOwnPropertyDescriptor(O.prototype,"fetchSuggestionsForView"),O.prototype),(0,n.default)(O.prototype,"refetchSuggestionsForCurrentView",[f.action],Object.getOwnPropertyDescriptor(O.prototype,"refetchSuggestionsForCurrentView"),O.prototype),(0,n.default)(O.prototype,"exitFlow",[f.action],Object.getOwnPropertyDescriptor(O.prototype,"exitFlow"),O.prototype),O))}))
define("profile-premium/components/generated-suggestions/inline-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/is-browser","@glimmer/component","tracked-toolbox","@glimmer/tracking","global-utils/utils/keyboard-utils","@ember/object","@ember/modifier","@ember/helper","profile-premium/modifiers/set-up-inline-modal","profile-shared/modifiers/trap-focus","global-modifiers/modifiers/focus","global-helpers/helpers/not","ember-cli-pemberly-i18n/helpers/t","artdeco-button/components/artdeco-button","@ember/debug","ember-lifeline","ember-batcher","@ember/destroyable"],(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){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=e.ANIMATION_ENUM=void 0
var x,D,T,O
const S="#profile-inline-modal-outlet",I="profile-inline-modal-overlay",E=e.ANIMATION_ENUM={DEFAULT:"DEFAULT"},M={[E.DEFAULT]:560},A={[E.DEFAULT]:"pv-shared-inline-modal__overlay--duration-xslow-ease-decelerate"}
e.default=(0,l.setComponentTemplate)((0,r.createTemplateFactory)({id:"8QTBjtX5",block:'[[[1,"\\n"],[41,[30,0,["outletElement"]],[[[40,[[[1,"        "],[11,0],[16,0,[28,[32,0],["pv-shared-inline-modal__overlay ",[52,[30,0,["easeInBaseClass"]],[30,0,["easeInBaseClass"]]]],null]],[16,1,[30,0,["overlayElementId"]]],[17,1],[4,[32,1],["pointerdown",[30,0,["handlePointerDown"]]],null],[4,[32,1],["pointerup",[30,0,["handlePointerUp"]]],null],[12],[1,"\\n"],[41,[30,0,["config","showDismissButton"]],[[[1,"            "],[8,[32,2],[[24,0,"pv-shared-inline-modal__dismiss-button"],[4,[32,1],["click",[30,0,["onDismiss"]]],null]],[["@color","@type","@circle","@icon"],["muted","tertiary",true,"cancel-icon"]],null],[1,"\\n"]],[]],null],[1,"          "],[11,0],[24,"role","dialog"],[24,"tabindex","-1"],[16,"aria-label",[28,[32,3],["i18n_dialog_aria_label","profile-premium/components/generated-suggestions/inline-modal"],null]],[16,0,[28,[32,0],["pv-shared-inline-modal__modal",[52,[30,0,["isScrollingToTarget"]]," pv-shared-inline-modal__modal--scrolling"],[52,[30,2]," pv-shared-inline-modal__modal--anchored"," pv-shared-inline-modal__modal--centered"]],null]],[4,[32,1],["keyup",[30,0,["handleKeyUp"]]],null],[4,[32,4],null,[["targetSelector","outletSelector","paddingPx","overlaySelector","onResizeOptions","easeInClass","onScrollEnd","distanceAboveCenterPx"],[[30,2],[30,0,["outletSelector"]],[30,3],[30,0,["overlaySelector"]],[30,0,["onResizeOptions"]],[30,0,["easeInClass"]],[30,0,["handleScrollEnd"]],[30,0,["config","distanceAboveCenterPx"]]]]],[4,[32,5],null,null],[4,[32,6],null,[["when"],[[28,[32,7],[[30,0,["isScrollingToTarget"]]],null]]]],[12],[1,"\\n            "],[18,4,null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],"%cursor:0%",[28,[31,2],[[30,0,["outletElement"]]],null]]],[]],null],[1,"  "]],["&attrs","@targetSelector","@paddingPx","&default"],false,["if","in-element","-in-el-null","yield"]]',moduleName:"profile-premium/components/generated-suggestions/inline-modal.gjs",scope:()=>[g.concat,m.on,_.default,v.default,f.default,h.default,b.default,y.default],isStrictMode:!0}),(x=(0,u.trackedReset)({memo:"args.targetSelector",update:e=>!!e.args.targetSelector}),D=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"isScrollingToTarget",T,this);(0,t.default)(this,"outletElement",O,this);(0,i.default)(this,"outletSelector",S);(0,i.default)(this,"overlayElementId",I);(0,i.default)(this,"overlaySelector",`#${I}`);(0,i.default)(this,"autoDismissTask",void 0);(0,i.default)(this,"pointerDownElement",void 0)
a.default&&(this.outletElement=document.querySelector(S))
const{easeInOutAnimation:e,autoDismissDuration:n}=this.config
"number"==typeof n&&this.startAutoDismissTimer(n)}get config(){return this.args.config||{}}get onResizeOptions(){return this.config.dismissOnResize?{onResize:this.onResize,cancelEvents:!0}:void 0}get easeInBaseClass(){if(this.config.easeInOutAnimation)return A[this.config.easeInOutAnimation]}get easeInClass(){if(this.easeInBaseClass)return`${this.easeInBaseClass}-in`}get showAnimatedDismiss(){return this.config.easeInOutAnimation&&this.easeInClass}startAutoDismissTimer(e){const t=(0,k.runTask)(this,(()=>{(0,C.isDestroying)(this)||this.onDismiss()}),e)
this.autoDismissTask=t}cancelAutoDismissTimer(){if(this.autoDismissTask){(0,k.cancelTask)(this,this.autoDismissTask)
this.autoDismissTask=void 0}}handleScrollEnd(){if(this.isScrollingToTarget){var e,t
null===(e=(t=this.args).onScrollEnd)||void 0===e||e.call(t)}this.isScrollingToTarget=!1}handleKeyUp(e){if((0,d.isEscapeKey)(e)){e.stopImmediatePropagation()
return this.onDismiss(e)}return e}handlePointerDown(e){this.pointerDownElement=e.target}handlePointerUp(e){var t
return(null===(t=this.pointerDownElement)||void 0===t?void 0:t.id)===this.overlayElementId?this.onDismiss(e):e}onDismiss(e){this.cancelAutoDismissTimer()
this.showAnimatedDismiss?this.easeOutDismiss(e):this.args.onDismiss(e)}easeOutDismiss(e){(0,P.readDOM)((()=>{const t=document.querySelector(this.overlaySelector)
t&&this.easeInClass&&(0,P.mutateDOM)((()=>{t.classList.remove(this.easeInClass)}))
const i=M[this.config.easeInOutAnimation]||M[E.DEFAULT];(0,k.runTask)(this,(()=>{t&&this.args.onDismiss(e)}),i)}))}onResize(){this.config.dismissOnResize&&this.onDismiss()}},T=(0,n.default)(D.prototype,"isScrollingToTarget",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,n.default)(D.prototype,"outletElement",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),(0,n.default)(D.prototype,"handleScrollEnd",[p.action],Object.getOwnPropertyDescriptor(D.prototype,"handleScrollEnd"),D.prototype),(0,n.default)(D.prototype,"handleKeyUp",[p.action],Object.getOwnPropertyDescriptor(D.prototype,"handleKeyUp"),D.prototype),(0,n.default)(D.prototype,"handlePointerDown",[p.action],Object.getOwnPropertyDescriptor(D.prototype,"handlePointerDown"),D.prototype),(0,n.default)(D.prototype,"handlePointerUp",[p.action],Object.getOwnPropertyDescriptor(D.prototype,"handlePointerUp"),D.prototype),(0,n.default)(D.prototype,"onDismiss",[p.action],Object.getOwnPropertyDescriptor(D.prototype,"onDismiss"),D.prototype),(0,n.default)(D.prototype,"easeOutDismiss",[p.action],Object.getOwnPropertyDescriptor(D.prototype,"easeOutDismiss"),D.prototype),(0,n.default)(D.prototype,"onResize",[p.action],Object.getOwnPropertyDescriptor(D.prototype,"onResize"),D.prototype),D))}))
define("profile-premium/components/generated-suggestions/loader",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/helper","@ember/component","ember-batcher","global-utils/utils/is-browser","@glimmer/component","@glimmer/tracking","ember-lifeline","@ember/debug","@ember/object","@ember/destroyable","ember-resize-modifier/modifiers/did-resize","global-helpers/helpers/gt","artdeco-button/components/artdeco-button","ember-cli-pemberly-i18n/helpers/t","profile-shared/modifiers/rotating-text","@ember/modifier"],(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=e.TEXT_LOOP_POLL_TOKEN=void 0
var k,P
const C=e.TEXT_LOOP_POLL_TOKEN="PROFILE_GS_LOADER_TEXT_LOOP_POLL_TOKEN"
e.default=(0,a.setComponentTemplate)((0,r.createTemplateFactory)({id:"2sK1uPM2",block:'[[[1,"\\n"],[1,"    "],[11,0],[24,0,"pv-shared-generated-suggestion-loader"],[4,[32,0],[[30,0,["handleResizeDebounced"]]],null],[4,[32,1],null,[["texts","token","classIdentifier"],[[30,1],[32,2],"pv-shared-generated-suggestion-loader__text"]]],[12],[1,"\\n      "],[10,0],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["skeletonRows"]]],null]],null],null,[[[1,"          "],[10,0],[15,0,[29,["pv-shared-generated-suggestion-loader__skeleton-row\\n              ",[52,[28,[32,3],[[30,0,["skeletonRows","length"]],1],null],"pv-shared-generated-suggestion-loader__skeleton-row--multiple"]]]],[12],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n"],[41,[30,0,["verticalSpace"]],[[[1,"        "],[10,0],[14,0,"display-flex align-items-baseline align-self-center"],[12],[1,"\\n          "],[10,2],[14,"aria-live","polite"],[14,0,"pv-shared-generated-suggestion-loader__text"],[12],[13],[1,"\\n          "],[8,[32,4],[[4,[32,6],["click",[30,2]],null]],[["@text","@color","@type","@size","@class"],[[28,[32,5],["i18n_cancel","profile-premium/components/generated-suggestions/loader"],null],"muted","tertiary","1","ml1"]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "]],["@texts","@onCancel"],false,["each","-track-array","if"]]',moduleName:"profile-premium/components/generated-suggestions/loader.gjs",scope:()=>[h.default,_.default,C,b.default,y.default,v.default,w.on],isStrictMode:!0}),(k=class extends c.default{constructor(){super(...arguments);(0,t.default)(this,"verticalSpace",P,this)}get numTotalRows(){return Math.max(1,Math.floor(this.verticalSpace/20))}get skeletonRows(){return Array.from({length:this.numTotalRows-1})}handleResize(e){(0,s.readDOM)((()=>{if((0,f.isDestroying)(this)||!u.default)return
const{parentNode:t}=e.target
if(!t)return
const i=Math.round(t.getBoundingClientRect().height),n=window.getComputedStyle(t),o=parseInt(n.getPropertyValue("padding-top"),10)+parseInt(n.getPropertyValue("padding-bottom"),10)
this.verticalSpace=i-o}))}handleResizeDebounced(){(0,p.debounceTask)(this,"handleResize",...arguments,200)}},P=(0,n.default)(k.prototype,"verticalSpace",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),(0,n.default)(k.prototype,"handleResize",[g.action],Object.getOwnPropertyDescriptor(k.prototype,"handleResize"),k.prototype),(0,n.default)(k.prototype,"handleResizeDebounced",[g.action],Object.getOwnPropertyDescriptor(k.prototype,"handleResizeDebounced"),k.prototype),k))}))
define("profile-premium/components/generated-suggestions/profile-enhancing-view",["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/debug","@ember/destroyable","@ember/helper","@ember/object","@ember/service","@glimmer/component","@glimmer/tracking","@linkedin/ember-restli-graphql","artdeco-loader/components/artdeco-loader","artdeco-modal/components/artdeco-confirmation-dialog","button-appearance/components/button-appearance","ember-cli-pemberly-i18n/helpers/t","ember-cli-pemberly-tracking/modifiers/track-interaction","ember-cli-pemberly-tracking/modifiers/track-view","ember-scroll-modifiers/modifiers/did-intersect","graphql-queries/mutations/profile/feature-content.graphql","hue-web-icons/components/icon","profile-premium/components/generated-suggestions/entity-checkbox-list","profile-premium/components/generated-suggestions/inline-modal","profile-premium/utils/profile-generated-suggestion-tracking-util","profile-shared/utils/tetris-api-helpers","rsvp","tracked-built-ins"],(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){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var I,E,M,A,N,j,R,F,B,V,z,L
e.default=(0,l.setComponentTemplate)((0,r.createTemplateFactory)({id:"mb2K18ND",block:'[[[1,"\\n"],[1,"    "],[8,[32,0],null,[["@onDismiss"],[[30,0,["exit"]]]],[["default"],[[[[1,"\\n      "],[11,0],[24,0,"pv-shared-profile-enhancing-view"],[24,"data-view-name","profile-generated-suggestions"],[4,[32,1],null,[["onEnter"],[[30,0,["fireImpressionEvent"]]]]],[4,[32,2],null,[["viewName","view","routeName","currentRoute"],["profile-generated-suggestions",[30,0],[28,[32,3],[[53,"outletState"],"render.name"],null],[28,[32,3],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n        "],[10,"section"],[14,0,"display-flex align-items-center p5 pr8"],[12],[1,"\\n          "],[10,0],[12],[1,"\\n"],[1,"            "],[8,[32,4],null,[["@type","@name","@size","@a11yText"],["logo","premium-badge","xxxsmall","Premium"]],null],[1,"\\n            "],[10,"h2"],[14,0,"text-display-small-bold"],[12],[1,"\\n              "],[1,[30,1,["title"]]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"],[41,[30,2],[[[1,"            "],[8,[32,5],[[24,0,"pv-shared-profile-enhancing-view__exit-button"],[4,[52,[30,0,["exitButtonControlName"]],[50,[32,6],2,[[30,0,["exitButtonControlName"]]],null]],null,null]],[["@a11yText","@onClick","@appearance","@disabled"],[[52,[30,2,["accessibilityText"]],[30,2,["accessibilityText"]]],[30,0,["exit"]],[30,2,["appearance"]],[30,0,["isSaving"]]]],null],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n        "],[10,"section"],[15,0,[29,["overflow-auto flex-grow-1\\n            ",[52,[30,0,["isSaving"]],"display-flex align-items-center"],"\\n            "]]],[12],[1,"\\n"],[41,[30,0,["isSaving"]],[[[1,"            "],[8,[32,7],null,[["@size"],["small"]],null],[1,"\\n"]],[]],[[[42,[28,[31,4],[[28,[31,4],[[30,0,["bodyComponents"]]],null]],null],null,[[[41,[30,3],[[[1,"                "],[8,[30,3,["component"]],null,[["@index","@model","@suggestionViewTrackingId","@componentInputState","@updateComponentInputState"],[[30,4],[30,3,["model"]],[30,5],[28,[32,3],[[30,0,["bodyComponentsInputState"]],[30,4]],null],[28,[32,8],[[30,0,["updateComponentInputState"]],[30,4]],null]]],null],[1,"\\n"]],[]],null]],[3,4]],null]],[]]],[1,"        "],[13],[1,"\\n        "],[10,"section"],[14,0,"pv-shared-profile-enhancing-view__footer"],[12],[1,"\\n          "],[10,0],[14,0,"display-flex align-items-center mlA"],[12],[1,"\\n"],[41,[30,1,["secondaryButton"]],[[[1,"              "],[8,[32,5],[[24,0,"ml4"],[4,[52,[30,0,["secondaryButtonControlName"]],[50,[32,6],2,[[30,0,["secondaryButtonControlName"]]],null]],null,null]],[["@onClick","@appearance","@a11yText","@disabled"],[[30,0,["skip"]],[30,1,["secondaryButton","appearance"]],[52,[30,1,["secondaryButton","accessibilityText"]],[30,1,["secondaryButton","accessibilityText"]]],[30,0,["isSaving"]]]],null],[1,"\\n"]],[]],null],[41,[30,1,["primaryButton"]],[[[1,"              "],[8,[32,5],[[24,0,"ml4"],[4,[52,[30,0,["primaryButtonControlName"]],[50,[32,6],2,[[30,0,["primaryButtonControlName"]]],null]],null,null]],[["@onClick","@appearance","@a11yText","@disabled"],[[30,0,["performPrimaryAction"]],[30,1,["primaryButton","appearance"]],[52,[30,1,["primaryButton","accessibilityText"]],[30,1,["primaryButton","accessibilityText"]]],[30,0,["isSaving"]]]],null],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n"],[1,"    "],[8,[32,9],null,[["@testId","@isOpen","@title","@content","@primaryActionText","@secondaryActionText","@primaryControlName","@secondaryControlName","@onPrimary","@onSecondary","@onEscape"],["exit-confirmation-modal",[30,0,["isExitConfirmationDialogOpen"]],[28,[32,10],["i18n_exit_confirmation_title","profile-premium/components/generated-suggestions/profile-enhancing-view"],null],[28,[32,10],["i18n_exit_confirmation_content","profile-premium/components/generated-suggestions/profile-enhancing-view"],null],[28,[32,10],["i18n_exit_confirmation_yes","profile-premium/components/generated-suggestions/profile-enhancing-view"],null],[28,[32,10],["i18n_exit_confirmation_no","profile-premium/components/generated-suggestions/profile-enhancing-view"],null],"generated-suggestion-exit-confirm","generated-suggestion-exit-cancel",[30,0,["confirmExit"]],[30,0,["cancelExit"]],[30,0,["cancelExit"]]]],null],[1,"\\n  "]],["@model","@exitButton","bodyComponent","index","@suggestionViewTrackingId"],false,["-get-dynamic-var","if","modifier","each","-track-array"]]',moduleName:"profile-premium/components/generated-suggestions/profile-enhancing-view.gts",scope:()=>[x.default,w.default,_.default,u.get,P.default,b.default,v.default,f.default,u.fn,h.default,y.default],isStrictMode:!0}),(I=(0,d.inject)("@linkedin/ember-restli-graphql@graphql"),E=(0,d.inject)("i18n"),M=(0,d.inject)("persistent-toast-manager@persistent-toast-manager"),A=(0,d.inject)("tracking"),N=class e extends p.default{constructor(e,i){super(e,i);(0,t.default)(this,"graphql",j,this);(0,t.default)(this,"i18n",R,this);(0,t.default)(this,"persistentToastManager",F,this);(0,t.default)(this,"tracking",B,this);(0,t.default)(this,"isSaving",V,this);(0,t.default)(this,"isExitConfirmationDialogOpen",z,this);(0,t.default)(this,"bodyComponentsInputState",L,this)}get bodyComponents(){var e
const t=null===(e=this.args.model.bodyView)||void 0===e?void 0:e.component
return t.map((e=>{if(null!=e&&e.entityCheckboxList)return{component:C.default,model:e.entityCheckboxList}}))}get bodyView(){return this.args.model.bodyView}get contentTrackingId(){return this.args.suggestionViewTrackingId}get exitButtonControlName(){var e,t
return null!==(e=this.args.exitButton)&&void 0!==e&&e.controlName?null===(t=this.args.exitButton)||void 0===t?void 0:t.controlName:void 0}get primaryButtonControlName(){var e,t
return null!==(e=this.args.model.primaryButton)&&void 0!==e&&e.controlName?null===(t=this.args.model.primaryButton)||void 0===t?void 0:t.controlName:void 0}get secondaryButtonControlName(){var e,t
return null!==(e=this.args.model.secondaryButton)&&void 0!==e&&e.controlName?null===(t=this.args.model.secondaryButton)||void 0===t?void 0:t.controlName:void 0}cancelExit(){this.isExitConfirmationDialogOpen=!1}confirmExit(){this._fireActionTrackingEvent(D.profileGeneratedSuggestionActionType.EXIT)
this.args.onExit()}exit(){this.isExitConfirmationDialogOpen=!0}fireImpressionEvent(){(0,D.fireProfileGeneratedSuggestionViewImpressionEvent)(this.tracking,this.args.suggestionViewTrackingId)}performPrimaryAction(){this.isSaving=!0
this._submitPrimaryActionForViewType().then((()=>{(0,s.isDestroying)(this)||this.args.onSkip()})).catch((e=>{if((0,s.isDestroying)(this))throw e
this._showErrorToast()
if(!(e instanceof g.GraphQLQueryError))throw e})).finally((()=>{(0,s.isDestroying)(this)||(this.isSaving=!1)}))}skip(){this._fireActionTrackingEvent(D.profileGeneratedSuggestionActionType.SKIP)
this.args.onSkip()}updateComponentInputState(e,t){this.bodyComponentsInputState[e]=t}_fireActionTrackingEvent(e){const{suggestionViewTrackingId:t}=this.args,i={actionType:e,suggestionViewTrackingId:t};(0,D.fireProfileGeneratedSuggestionViewActionEvent)(this.tracking,i)}_handleViewModelRefresh(e){if(e){if(e.updatedCardsResolutionResults.length){const t=e.updatedCardsResolutionResults.map((e=>null==e?void 0:e.entityUrn)).filter((e=>"string"==typeof e));(0,T.batchGetProfileCardsGraphQL)(this.graphql,t,{reload:!0})}if(e.updatedPagedListsResolutionResults.length){const t=e.updatedPagedListsResolutionResults.map((e=>null==e?void 0:e.entityUrn)).filter((e=>"string"==typeof e));(0,T.batchGetProfilePagedListComponentsGraphQL)(this.graphql,t,{reload:!0})}}}_saveFeaturedContent(){var e,t,i,n
const o=null===(e=this.args.model.bodyView)||void 0===e?void 0:e.component.findIndex((e=>null==e?void 0:e.entityCheckboxList)),r=this.bodyComponentsInputState[o],l=null===(t=this.args.model.bodyView)||void 0===t||null===(i=t.component[o])||void 0===i||null===(n=i.entityCheckboxList)||void 0===n?void 0:n.map((e=>{var t
return null==e||null===(t=e.target)||void 0===t?void 0:t.entityUrn})).filter(((e,t)=>"string"==typeof e&&!!r[t]))
return l&&(null==l?void 0:l.length)>0?this.graphql.executeMutation(k.default,{urnsToFeature:l}).then((()=>{if(!(0,s.isDestroying)(this)){var e
this._showSaveSuccessToast()
this._fireActionTrackingEvent(D.profileGeneratedSuggestionActionType.SAVE)
this._handleViewModelRefresh(null===(e=this.args.model.primaryButton)||void 0===e?void 0:e.updatedViewModel)}})):(0,O.resolve)()}_showErrorToast(){const t=this.i18n.lookupTranslation(e,"i18n_error_toast")()
this.persistentToastManager.error({message:t})}_showSaveSuccessToast(){const t=this.i18n.lookupTranslation(e,"i18n_save_success_toast")()
this.persistentToastManager.success({message:t})}_submitPrimaryActionForViewType(){return"FEATURED_PROFILE_CONTENT"===this.args.model.viewType?this._saveFeaturedContent():(0,O.resolve)()}},j=(0,n.default)(N.prototype,"graphql",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,n.default)(N.prototype,"i18n",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,n.default)(N.prototype,"persistentToastManager",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,n.default)(N.prototype,"tracking",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,n.default)(N.prototype,"isSaving",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),z=(0,n.default)(N.prototype,"isExitConfirmationDialogOpen",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),L=(0,n.default)(N.prototype,"bodyComponentsInputState",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new S.TrackedArray([])}}),(0,n.default)(N.prototype,"cancelExit",[c.action],Object.getOwnPropertyDescriptor(N.prototype,"cancelExit"),N.prototype),(0,n.default)(N.prototype,"confirmExit",[c.action],Object.getOwnPropertyDescriptor(N.prototype,"confirmExit"),N.prototype),(0,n.default)(N.prototype,"exit",[c.action],Object.getOwnPropertyDescriptor(N.prototype,"exit"),N.prototype),(0,n.default)(N.prototype,"fireImpressionEvent",[c.action],Object.getOwnPropertyDescriptor(N.prototype,"fireImpressionEvent"),N.prototype),(0,n.default)(N.prototype,"performPrimaryAction",[c.action],Object.getOwnPropertyDescriptor(N.prototype,"performPrimaryAction"),N.prototype),(0,n.default)(N.prototype,"skip",[c.action],Object.getOwnPropertyDescriptor(N.prototype,"skip"),N.prototype),(0,n.default)(N.prototype,"updateComponentInputState",[c.action],Object.getOwnPropertyDescriptor(N.prototype,"updateComponentInputState"),N.prototype),N))}))
define("profile-premium/components/generated-suggestions/typing-animation",["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/is-browser","@glimmer/component","@ember/utils","@glimmer/tracking","ember-lifeline","@ember/debug","@ember/object","@ember/helper","@ember/render-modifiers/modifiers/did-insert"],(function(e,t,i,n,o,r,l,a,s,u,c,d,p,m,g,f){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var h,b
e.default=(0,l.setComponentTemplate)((0,r.createTemplateFactory)({id:"w/kyM9T8",block:'[[[1,"\\n    "],[11,0],[16,"aria-busy",[52,[51,[30,0,["isDoneTyping"]]],"true"]],[16,0,[28,[32,0],["pv-shared-typing-animation",[52,[51,[30,0,["isDoneTyping"]]]," pv-shared-typing-animation--animating"]],null]],[17,1],[4,[32,1],[[30,0,["startAnimation"]]],null],[12],[1,"\\n      "],[18,2,[[30,0,["animatedString"]]]],[1,"\\n    "],[13],[1,"\\n  "]],["&attrs","&default"],false,["unless","yield"]]',moduleName:"profile-premium/components/generated-suggestions/typing-animation.gjs",scope:()=>[g.concat,f.default],isStrictMode:!0}),(h=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"numVisibleChars",b,this);(0,i.default)(this,"startTime",void 0)}get charPerMs(){return Math.max(this.args.string.length/4e3,.08)}get isDoneTyping(){return this.numVisibleChars>=this.args.string.length}get animatedString(){return`${this.args.string.substring(0,this.numVisibleChars)}${this.isDoneTyping?"":"｜"}`}startAnimation(){if(!this.isDestroying&&a.default){this.numVisibleChars=0;(0,d.runTask)(this,(()=>{if(!this.isDestroying&&a.default){this.startTime=performance.now()
this.animate()}}),this.args.initialDelayMs)}}animate(){var e,t
if(this.isDestroying||!a.default)return
const i=performance.now()-this.startTime
null===(e=(t=this.args).onUpdate)||void 0===e||e.call(t)
if(this.isDoneTyping){var n,o
this.numVisibleChars=this.args.string.length
null===(n=(o=this.args).onAnimationEnd)||void 0===n||n.call(o)}else{this.numVisibleChars=Math.min(Math.ceil(i*this.charPerMs),this.args.string.length);(0,d.runTask)(this,this.animate,50)}}},b=(0,n.default)(h.prototype,"numVisibleChars",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),(0,n.default)(h.prototype,"startAnimation",[m.action],Object.getOwnPropertyDescriptor(h.prototype,"startAnimation"),h.prototype),(0,n.default)(h.prototype,"animate",[m.action],Object.getOwnPropertyDescriptor(h.prototype,"animate"),h.prototype),h))}))
define("profile-premium/controllers/custom-button-form",["exports","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@ember/controller","@ember/object","profile-tetris-shared/utils/subroute-helpers"],(function(e,t,i,n,o){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var r,l
e.default=(0,o.setupCloseSubrouteAction)(r=(l=class extends i.default{closeModal(){this.closeSubroute(o.PROFILE_PAGE)}updateCustomButtonFormView(e){this.model=e}},(0,t.default)(l.prototype,"closeModal",[n.action],Object.getOwnPropertyDescriptor(l.prototype,"closeModal"),l.prototype),(0,t.default)(l.prototype,"updateCustomButtonFormView",[n.action],Object.getOwnPropertyDescriptor(l.prototype,"updateCustomButtonFormView"),l.prototype),l))||r}))
define("profile-premium/modifiers/set-up-inline-modal",["exports","@babel/runtime/helpers/esm/defineProperty","@ember/debug","ember-lifeline","ember-batcher","rsvp","@ember/destroyable","@ember/utils","ember-modifier","global-utils/utils/scroller"],(function(e,t,i,n,o,r,l,a,s,u){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const c=Object.freeze({top:2,right:2,bottom:2,left:2}),d="pv-shared-inline-modal-is-open"
class p extends s.default{modify(e,t,i){let{targetSelector:r,outletSelector:l,overlaySelector:a,easeInClass:s,paddingPx:u,onResizeOptions:d,distanceAboveCenterPx:p,onScrollStart:m,onScrollEnd:g}=i
this.targetSelector=r
this.distanceAboveCenterPx=p??240;(0,o.readDOM)((()=>{const t=r&&document.querySelector(r),i=document.querySelector(l)
if(e&&i){this.modalElement=e
this.onResizeOptions=d
this.onScrollStart=m
this.onScrollEnd=g
this.paddingPx={...c,...u}
if(!this.didSetup){var o
this.outletSiblings=Array.from((null===(o=i.parentNode)||void 0===o?void 0:o.children)??[]).filter((e=>e instanceof HTMLElement&&e!==i))
this.updateDomElements()
window.addEventListener("scroll",this.handleScrollEndDebounced)
window.addEventListener("resize",this.handleResizeDebounced)
this.didSetup=!0}if(t){var p
null===(p=this.onScrollStart)||void 0===p||p.call(this)
this.overlaySelector=a
this.easeInClass=s;(0,n.runTask)(this,(()=>{this.overlaySelector&&this.easeInClass?this.easeInOverlay().then((()=>this.scrollToTarget({animate:!0}))):this.scrollToTarget({animate:!0})}))}}}))}constructor(e,i){super(e,i);(0,t.default)(this,"targetSelector",void 0);(0,t.default)(this,"modalElement",void 0);(0,t.default)(this,"overlaySelector",void 0);(0,t.default)(this,"easeInClass",void 0);(0,t.default)(this,"distanceAboveCenterPx",void 0);(0,t.default)(this,"outletSiblings",[]);(0,t.default)(this,"outletSiblingStates",new WeakMap);(0,t.default)(this,"paddingPx",c);(0,t.default)(this,"onResizeOptions",void 0);(0,t.default)(this,"onScrollStart",void 0);(0,t.default)(this,"onScrollEnd",void 0);(0,t.default)(this,"didSetup",!1);(0,t.default)(this,"updateDomElements",(()=>{(0,o.mutateDOM)((()=>{this.outletSiblings.forEach((e=>{if("artdeco-modal-outlet"!==e.getAttribute("id")){const t=e.getAttribute("aria-hidden")
t&&this.outletSiblingStates.set(e,t)
e.setAttribute("aria-hidden","true")}}))
document.body.classList.add(d)}))}));(0,t.default)(this,"resetDomElements",(()=>{(0,o.mutateDOM)((()=>{this.outletSiblings.forEach((e=>{const t=this.outletSiblingStates.get(e)
t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}))}))
document.body.classList.remove(d)}));(0,t.default)(this,"setModalWidth",(()=>new r.Promise((e=>{(0,o.readDOM)((()=>{const{modalElement:t,paddingPx:i,targetSelector:n}=this,r=n?document.querySelector(n):void 0
if(!t||!r){e()
return}const{width:l}=r.getBoundingClientRect();(0,o.mutateDOM)((()=>{t.style.width=`${l+i.left+i.right}px`
e()}))}))}))));(0,t.default)(this,"getTopOffset",(()=>{const{modalElement:e,paddingPx:t}=this,i=null==e?void 0:e.querySelector("[data-profile-inline-modal-vertical-anchor-point]")
return e&&i?i.getBoundingClientRect().top-e.getBoundingClientRect().top:t.top}));(0,t.default)(this,"scrollToTarget",(e=>{let{animate:t}=e;(0,o.readDOM)((()=>{const e=this.targetSelector?document.querySelector(this.targetSelector):void 0
if(!e)return
const i=window.pageYOffset+e.getBoundingClientRect().top-this.getTopOffset(),n=Math.min(i,i-window.innerHeight/2+(this.distanceAboveCenterPx??240))
u.default.scrollTo(window,{top:n,animate:t})
this.handleScrollEndDebounced()}))}));(0,t.default)(this,"easeInOverlay",(()=>new r.Promise((e=>{(0,o.readDOM)((()=>{if(void 0!==this.overlaySelector&&void 0!==this.easeInClass&&"string"==typeof this.easeInClass){const t=document.querySelector(this.overlaySelector)
if(!t){e()
return}(0,o.mutateDOM)((()=>{t.classList.add(this.easeInClass)
e()}))}}))}))));(0,t.default)(this,"anchorToTarget",(()=>new r.Promise((e=>{(0,o.readDOM)((()=>{const{modalElement:t,paddingPx:i,targetSelector:n}=this,r=n?document.querySelector(n):void 0
if(!t||!r){e()
return}const l=this.getTopOffset(),{top:a,left:s}=r.getBoundingClientRect();(0,o.mutateDOM)((()=>{t.style.top=a-l+"px"
t.style.left=s-i.left+"px"
t.style.maxHeight=`calc(100vh - ${a-l}px)`
e()}))}))}))));(0,t.default)(this,"handleScrollEnd",(()=>{this.setModalWidth().then(this.anchorToTarget).then((()=>{var e
return null===(e=this.onScrollEnd)||void 0===e?void 0:e.call(this)}))}));(0,t.default)(this,"handleScrollEndDebounced",(()=>{(0,n.debounceTask)(this,"handleScrollEnd",200)}));(0,t.default)(this,"handleResize",(()=>{this.setModalWidth().then((()=>this.scrollToTarget({animate:!1})))}));(0,t.default)(this,"handleResizeDebounced",(()=>{if(this.onResizeOptions){var e,t
null===(e=(t=this.onResizeOptions).onResize)||void 0===e||e.call(t)
if(!0===this.onResizeOptions.cancelEvents)return}(0,n.debounceTask)(this,"handleResize",200)}));(0,l.registerDestructor)(this,(()=>{this.resetDomElements()
window.removeEventListener("scroll",this.handleScrollEndDebounced)
window.removeEventListener("resize",this.handleResizeDebounced)}))}}e.default=p}))
define("profile-premium/routes/custom-button-form",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/routing/route","@ember/service","profile-tetris-shared/utils/subroute-helpers","graphql-queries/queries/premium/custom-button-form-views-by-viewer.graphql"],(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,d,p,m,g,f
e.default=(c=(0,a.inject)("@linkedin/ember-restli-graphql@graphql"),(0,s.setupCloseSubrouteInRoute)(d=(p=class extends l.default{constructor(){super(...arguments);(0,t.default)(this,"graphql",m,this);(0,t.default)(this,"lix",g,this);(0,t.default)(this,"router",f,this);(0,i.default)(this,"pageKey","flagship3_premium_profile_custom_button_form")}get isNewCustomButtonFormEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.premium-custom-button-calendly-integration")}beforeModel(){super.beforeModel(...arguments)
this.isNewCustomButtonFormEnabled||this.router.replaceWith("profile-edit.custom-action")}model(){if(!(0,r.isDestroying)(this))return this.graphql.executeQuery(u.default,{},{adapterOptions:{targetViewNames:["premium-custom-button-add-edit-form"]},reload:!0}).then((e=>{var t,i,n
if(!(0,r.isDestroying)(this))return null==e||null===(t=e.data)||void 0===t||null===(i=t.premiumDashCustomButtonFormViewsByViewer)||void 0===i||null===(n=i.elements)||void 0===n?void 0:n[0]}))}},m=(0,n.default)(p.prototype,"graphql",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,n.default)(p.prototype,"lix",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,n.default)(p.prototype,"router",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p))||d)}))
define("profile-premium/template-registry",[],(function(){}))
define("profile-premium/templates/custom-button-form",["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:"i7BAfgvG",block:'[[[8,[39,0],null,[["@model","@onExit"],[[30,0,["model"]],[30,0,["closeModal"]]]],null]],[],false,["profile-premium@custom-button-form-view"]]',moduleName:"profile-premium/templates/custom-button-form.hbs",isStrictMode:!1})}))
define("profile-premium/types/shared-types",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})}))
define("profile-premium/utils/profile-generated-suggestion-tracking-util",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.profileGeneratedSuggestionActionType=e.generalFeedbackType=e.fireProfileGeneratedSuggestionViewImpressionEvent=e.fireProfileGeneratedSuggestionViewActionEvent=e.feedbackFormType=void 0
e.profileGeneratedSuggestionActionType={SAVE:"SAVE",SKIP:"SKIP",EXIT:"EXIT"},e.feedbackFormType={PROFILE:"PROFILE",MESSAGING:"MESSAGING"},e.generalFeedbackType={SATISFIED:"SATISFIED",UNSATISFIED:"UNSATISFIED"}
e.fireProfileGeneratedSuggestionViewImpressionEvent=(e,t,i)=>{e.fireTrackingPayload("ProfileGeneratedSuggestionViewImpressionEvent",{suggestionViewTrackingId:t,suggestionTrackingId:i})}
e.fireProfileGeneratedSuggestionViewActionEvent=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
e.fireTrackingPayload("ProfileGeneratedSuggestionViewActionEvent",t)}}))
define("profile-premium/utils/request-utils",["exports"],(function(e){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.getVoyagerUserVisibleExceptionMessage=function(e){var t
const{extensions:i,message:n}=(null==e||null===(t=e.errors)||void 0===t?void 0:t[0])??{}
if("com.linkedin.voyager.common.VoyagerUserVisibleException"===(null==i?void 0:i.exceptionClass))return n
return}}))
define("profile-pymk/components/dash-pymk-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","urn-utils","discover-utils/utils/constants","discover-utils/utils/discover-util","@ember/service","@ember/object","@glimmer/component","ember-cli-pemberly-tracking/modifiers/track-impression","app-aware-link/components/app-aware-link","ember-cli-pemberly-tracking/modifiers/track-interaction","image-view-model/components/image-view-model","name-with-distance/components/name-with-distance","inline-show-more-text/components/inline-show-more-text","connect-button/components/connect-button","global-helpers/helpers/get-class-hash"],(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
const x="d_profile_rightRail_pymk"
e.default=(0,a.setComponentTemplate)((0,r.createTemplateFactory)({id:"CFfdJmlo",block:'[[[1,"\\n"],[1,"    "],[11,"li"],[16,0,[28,[32,0],["pv-pymk-section__member-container"],null]],[4,[32,1],[[30,0,["createDiscoveryImpressionEvents"]]],[["routeName","currentRoute"],[[28,[32,2],[[53,"outletState"],"render.name"],null],[28,[32,2],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n      "],[8,[32,3],[[24,0,"display-flex align-items-center link-without-hover-visited justify-flex-start text-body-medium"],[4,[32,4],["pymk_profile"],null]],[["@href"],[[30,1,["navigationUrl"]]]],[["default"],[[[[1,"\\n"],[41,[30,1,["entityImage"]],[[[1,"          "],[8,[32,5],[[24,0,"pv-pymk-section__member-image EntityPhoto-circle-3"]],[["@entitySize","@a11yText","@images"],[3,"",[30,1,["entityImage"]]]],null],[1,"\\n"]],[]],null],[1,"\\n        "],[10,0],[15,0,[29,[[28,[32,0],["pv-pymk-section__member-detail"],null]]]],[12],[1,"\\n"],[41,[30,1,["title","text"]],[[[1,"            "],[8,[32,6],[[24,0,"pv-pymk-section__member-detail--has-hover"]],[["@name","@noTruncate","@hasHoverableName"],[[30,1,["title","text"]],true,false]],null],[1,"\\n"]],[]],null],[1,"          "],[10,2],[14,0,"pv-pymk-section__member-headline"],[12],[1,"\\n            "],[8,[32,7],null,[["@lines","@showMoreButton","@showLessButton","@text"],[2,false,false,[30,1,["subtitle","text"]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n\\n"],[1,"      "],[10,0],[14,0,"pv-pymk-section__member-cta"],[12],[1,"\\n"],[1,"        "],[8,[32,8],null,[["@invitee","@type","@size","@color","@onSendInvite","@onWithdrawInvite"],[[30,0,["targetInvitee"]],"secondary","2","muted",[30,0,["onSendInvite"]],[30,0,["onWithdrawInvite"]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],["@pymk"],false,["-get-dynamic-var","if"]]',moduleName:"profile-pymk/components/dash-pymk-card.gts",scope:(