зеркало из
https://github.com/jlind0/multiplex.studio.web.git
synced 2025-10-28 20:54:22 +02:00
2267 строки
616 KiB
Plaintext
2267 строки
616 KiB
Plaintext
define("@ember/test-waiters/build-waiter",["exports","@babel/runtime/helpers/esm/defineProperty","@ember/debug","@ember/test-waiters/token","@ember/test-waiters/waiter-manager"],(function(e,t,n,i,r){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e._resetWaiterNames=function(){o=new Set}
|
|
e.default=function(e){0
|
|
return new l(e)}
|
|
let o
|
|
class l{constructor(e){this.name=e}beginAsync(){return this}endAsync(){}waitUntil(){return!0}debugInfo(){return[]}reset(){}}}))
|
|
define("@ember/test-waiters/index",["exports","@ember/test-waiters/waiter-manager","@ember/test-waiters/build-waiter","@ember/test-waiters/wait-for-promise","@ember/test-waiters/wait-for"],(function(e,t,n,i,r){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
Object.defineProperty(e,"_reset",{enumerable:!0,get:function(){return t._reset}})
|
|
Object.defineProperty(e,"_resetWaiterNames",{enumerable:!0,get:function(){return n._resetWaiterNames}})
|
|
Object.defineProperty(e,"buildWaiter",{enumerable:!0,get:function(){return n.default}})
|
|
Object.defineProperty(e,"getPendingWaiterState",{enumerable:!0,get:function(){return t.getPendingWaiterState}})
|
|
Object.defineProperty(e,"getWaiters",{enumerable:!0,get:function(){return t.getWaiters}})
|
|
Object.defineProperty(e,"hasPendingWaiters",{enumerable:!0,get:function(){return t.hasPendingWaiters}})
|
|
Object.defineProperty(e,"register",{enumerable:!0,get:function(){return t.register}})
|
|
Object.defineProperty(e,"unregister",{enumerable:!0,get:function(){return t.unregister}})
|
|
Object.defineProperty(e,"waitFor",{enumerable:!0,get:function(){return r.default}})
|
|
Object.defineProperty(e,"waitForPromise",{enumerable:!0,get:function(){return i.default}})}))
|
|
define("@ember/test-waiters/token",["exports"],(function(e){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
e.default=class{}}))
|
|
define("@ember/test-waiters/types/index",["exports"],(function(e){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})}))
|
|
define("@ember/test-waiters/wait-for-promise",["exports","@ember/test-waiters/build-waiter"],(function(e,t){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=function(e,t){let n=e
|
|
0
|
|
return n};(0,t.default)("@ember/test-waiters:promise-waiter")}))
|
|
define("@ember/test-waiters/wait-for",["exports","@ember/test-waiters/wait-for-promise","@ember/test-waiters/build-waiter"],(function(e,t,n){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
|
|
let r=t.length<3
|
|
if(r){let[e,n]=t
|
|
return i(e,n)}{let[,,e,n]=t
|
|
return e}}
|
|
function i(e,t){return e}(0,n.default)("@ember/test-waiters:generator-waiter")}))
|
|
define("@ember/test-waiters/waiter-manager",["exports","ember","@ember/test"],(function(e,t,n){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e._reset=function(){for(let e of o())e.isRegistered=!1
|
|
i.clear()}
|
|
e.getPendingWaiterState=l
|
|
e.getWaiters=o
|
|
e.hasPendingWaiters=a
|
|
e.register=function(e){i.set(e.name,e)}
|
|
e.unregister=function(e){i.delete(e.name)}
|
|
const i=function(){let e="TEST_WAITERS",t="undefined"!=typeof Symbol?Symbol.for(e):e,n=r(),i=n[t]
|
|
void 0===i&&(i=n[t]=new Map)
|
|
return i}()
|
|
function r(){if("undefined"!=typeof globalThis)return globalThis
|
|
if("undefined"!=typeof self)return self
|
|
if("undefined"!=typeof window)return window
|
|
if("undefined"!=typeof global)return global
|
|
throw new Error("unable to locate global object")}t.default.Test&&(0,n.registerWaiter)((()=>!a()))
|
|
function o(){let e=[]
|
|
i.forEach((t=>{e.push(t)}))
|
|
return e}function l(){let e={pending:0,waiters:{}}
|
|
i.forEach((t=>{if(!t.waitUntil()){e.pending++
|
|
let n=t.debugInfo()
|
|
e.waiters[t.name]=n||!0}}))
|
|
return e}function a(){return l().pending>0}}))
|
|
define("@glimmer/component/-private/base-component-manager",["exports","@babel/runtime/helpers/esm/defineProperty","@glimmer/component/-private/component"],(function(e,t,n){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=function(e,n,i){return class{static create(e){return new this(n(e))}constructor(n){(0,t.default)(this,"capabilities",i)
|
|
e(this,n)}createComponent(e,t){0
|
|
return new e(n(this),t.named)}getContext(e){return e}}}}))
|
|
define("@glimmer/component/-private/component",["exports","@babel/runtime/helpers/esm/defineProperty","@glimmer/component/-private/owner","@glimmer/component/-private/destroyables"],(function(e,t,n,i){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=e.ARGS_SET=void 0
|
|
e.ARGS_SET=void 0
|
|
0
|
|
e.default=class{constructor(e,i){(0,t.default)(this,"args",void 0)
|
|
0
|
|
this.args=i;(0,n.setOwner)(this,e)}get isDestroying(){return(0,i.isDestroying)(this)}get isDestroyed(){return(0,i.isDestroyed)(this)}willDestroy(){}}}))
|
|
define("@glimmer/component/-private/destroyables",["exports","ember"],(function(e,t){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.isDestroying=e.isDestroyed=void 0
|
|
e.isDestroying=t.default._isDestroying,e.isDestroyed=t.default._isDestroyed}))
|
|
define("@glimmer/component/-private/ember-component-manager",["exports","ember","@ember/object","@ember/application","@ember/component","@ember/runloop","@glimmer/component/-private/base-component-manager","@glimmer/component/-private/destroyables"],(function(e,t,n,i,r,o,l,a){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const{setDestroyed:s,setDestroying:c}=a,p=(0,r.capabilities)("3.13",{destructor:!0,asyncLifecycleCallbacks:!1,updateHook:!1}),d=t.default.destroy,u=t.default._registerDestructor
|
|
class m extends((0,l.default)(i.setOwner,i.getOwner,p)){createComponent(e,t){const n=super.createComponent(e,t)
|
|
u(n,(()=>{n.willDestroy()}))
|
|
return n}destroyComponent(e){d(e)}}0
|
|
e.default=m}))
|
|
define("@glimmer/component/-private/owner",["exports","@ember/application"],(function(e,t){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
Object.defineProperty(e,"setOwner",{enumerable:!0,get:function(){return t.setOwner}})}))
|
|
define("@glimmer/component/index",["exports","@ember/component","@glimmer/component/-private/ember-component-manager","@glimmer/component/-private/component"],(function(e,t,n,i){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
let r=i.default
|
|
0;(0,t.setComponentManager)((e=>new n.default(e)),r)
|
|
e.default=r}))
|
|
define("ember-batcher/batcher",["exports","ember-test-waiters"],(function(e,t){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.mutateDOM=function(e){let t=i.beginAsync()
|
|
o.unshift([t,e])
|
|
p()}
|
|
e.readDOM=function(e){let t=n.beginAsync()
|
|
r.unshift([t,e])
|
|
p()}
|
|
e.visibilityChange=void 0
|
|
const n=(0,t.buildWaiter)("ember-batcher: readDOM"),i=(0,t.buildWaiter)("ember-batcher: mutateDOM"),r=[],o=[]
|
|
let l=()=>{}
|
|
e.visibilityChange=l
|
|
let a=!1,s=!1
|
|
const c="object"==typeof window&&"function"==typeof window.requestAnimationFrame?e=>{let t=()=>{if(!s){s=!0
|
|
e()}}
|
|
setTimeout(t,20)
|
|
return requestAnimationFrame(t)}:e=>setTimeout(e)
|
|
0
|
|
function p(){if(!a){a=!0
|
|
c((()=>{let e,t
|
|
for(e=0,t=r.length;e<t;e++){let[e,t]=r.pop()
|
|
t()
|
|
n.endAsync(e)}for(e=0,t=o.length;e<t;e++){let[e,t]=o.pop()
|
|
t()
|
|
i.endAsync(e)}a=!1
|
|
s=!1;(o.length>0||r.length>0)&&p()}))}}}))
|
|
define("ember-batcher/index",["exports","ember-batcher/batcher"],(function(e,t){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
Object.defineProperty(e,"mutateDOM",{enumerable:!0,get:function(){return t.mutateDOM}})
|
|
Object.defineProperty(e,"readDOM",{enumerable:!0,get:function(){return t.readDOM}})}))
|
|
define("ember-modifier/-private/class/modifier-manager",["exports","@babel/runtime/helpers/esm/defineProperty","@ember/modifier","@ember/destroyable","ember-modifier/-private/class/modifier","ember-modifier/-private/compat"],(function(e,t,n,i,r,o){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
function l(e){e.willRemove()
|
|
e.willDestroy()}e.default=class{constructor(e){(0,t.default)(this,"capabilities",(0,n.capabilities)("3.22"))
|
|
this.owner=e}createModifier(e,t){const n=new((0,o.isFactory)(e)?e.class:e)(this.owner,t);(0,i.registerDestructor)(n,l)
|
|
return{instance:n,implementsModify:(0,r._implementsModify)(n),element:null}}installModifier(e,t,n){const i=function(e,t){const n=e
|
|
n.element=t
|
|
return n}(e,t),{instance:l}=i
|
|
!function(e,t){e[r.Element]=t}(l,t)
|
|
if(i.implementsModify)l.modify(t,n.positional,n.named)
|
|
else{(0,o.consumeArgs)(n)
|
|
l.didReceiveArguments()
|
|
l.didInstall()}}updateModifier(e,t){const{instance:n}=e
|
|
!function(e,t){e[r.Args]=t}(e.instance,t)
|
|
if(e.implementsModify)n.modify(e.element,t.positional,t.named)
|
|
else{(0,o.consumeArgs)(t)
|
|
n.didUpdateArguments()
|
|
n.didReceiveArguments()}}destroyModifier(e){(0,i.destroy)(e.instance)}}}))
|
|
define("ember-modifier/-private/class/modifier",["exports","@ember/application","@ember/modifier","ember-modifier/-private/class/modifier-manager","@ember/destroyable","@ember/debug"],(function(e,t,n,i,r,o){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=e._implementsModify=e._implementsLegacyHooks=e.Element=e.Args=void 0
|
|
0
|
|
0
|
|
0
|
|
0
|
|
const l=e=>e.modify!==p.prototype.modify
|
|
e._implementsModify=l
|
|
const a=e=>e.didInstall!==p.prototype.didInstall||e.didUpdateArguments!==p.prototype.didUpdateArguments||e.didReceiveArguments!==p.prototype.didReceiveArguments
|
|
e._implementsLegacyHooks=a
|
|
const s=e.Element=Symbol("Element"),c=e.Args=Symbol("Args")
|
|
class p{constructor(e,n){(0,t.setOwner)(this,e)
|
|
this[c]=n
|
|
0
|
|
0}modify(e,t,n){}didReceiveArguments(){}didUpdateArguments(){}didInstall(){}willRemove(){}willDestroy(){}get isDestroying(){0
|
|
return(0,r.isDestroying)(this)}get isDestroyed(){0
|
|
return(0,r.isDestroyed)(this)}}e.default=p
|
|
Object.defineProperty(p.prototype,"args",{enumerable:!0,get(){0
|
|
return this[c]}})
|
|
Object.defineProperty(p.prototype,"element",{enumerable:!0,get(){0
|
|
return this[s]??null}});(0,n.setModifierManager)((e=>new i.default(e)),p)}))
|
|
define("ember-modifier/-private/compat",["exports"],(function(e){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.consumeArgs=void 0
|
|
e.isFactory=function(e){return!1}
|
|
let t=e.consumeArgs=()=>{}
|
|
e.consumeArgs=t=function(e){let{positional:t,named:n}=e
|
|
const i=t
|
|
for(let e=0;e<i.length;e++)i[e]
|
|
Object.values(n)}}))
|
|
define("ember-modifier/-private/function-based/modifier-manager",["exports","@babel/runtime/helpers/esm/defineProperty","@ember/modifier","ember-modifier/-private/compat"],(function(e,t,n,i){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
e.default=class{constructor(e){(0,t.default)(this,"capabilities",(0,n.capabilities)("3.22"));(0,t.default)(this,"options",void 0)
|
|
this.options={eager:(null==e?void 0:e.eager)??!0}}createModifier(e){return{element:null,instance:(0,i.isFactory)(e)?e.class:e}}installModifier(e,t,n){const r=function(e,t){const n=e
|
|
n.element=t
|
|
return n}(e,t),{positional:o,named:l}=n,a=e.instance(t,o,l)
|
|
"function"==typeof a&&(r.teardown=a)
|
|
this.options.eager&&(0,i.consumeArgs)(n)}updateModifier(e,t){e.teardown&&e.teardown()
|
|
const n=e.instance(e.element,t.positional,t.named)
|
|
"function"==typeof n&&(e.teardown=n)
|
|
this.options.eager&&(0,i.consumeArgs)(t)}destroyModifier(e){"function"==typeof e.teardown&&e.teardown()}}}))
|
|
define("ember-modifier/-private/function-based/modifier",["exports","@ember/debug","@ember/modifier","ember-modifier/-private/class/modifier","ember-modifier/-private/function-based/modifier-manager"],(function(e,t,n,i,r){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{eager:!0}
|
|
return(0,n.setModifierManager)((()=>t.eager?o:l),e)}
|
|
const o=new r.default({eager:!0}),l=new r.default({eager:!1})}))
|
|
define("ember-modifier/-private/interfaces",["exports"],(function(e){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})}))
|
|
define("ember-modifier/-private/opaque",["exports"],(function(e){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})}))
|
|
define("ember-modifier/-private/signature",["exports"],(function(e){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})}))
|
|
define("ember-modifier/index",["exports","ember-modifier/-private/class/modifier","ember-modifier/-private/function-based/modifier"],(function(e,t,n){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})
|
|
Object.defineProperty(e,"modifier",{enumerable:!0,get:function(){return n.default}})}))
|
|
define("ember-resize-modifier/modifiers/did-resize",["exports","@babel/runtime/helpers/esm/defineProperty","ember-modifier"],(function(e,t,n){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
class i extends n.default{constructor(){super(...arguments);(0,t.default)(this,"handler",null);(0,t.default)(this,"options",{})
|
|
if("ResizeObserver"in window&&!i.observer){i.handlers=new WeakMap
|
|
i.observer=new ResizeObserver(((e,t)=>{for(let n of e){const e=i.handlers.get(n.target)
|
|
e&&e(n,t)}}))}}addHandler(){i.handlers.set(this.element,this.handler)}removeHandler(){i.handlers.delete(this.element)}observe(){if(i.observer){this.addHandler()
|
|
i.observer.observe(this.element,this.options)}}unobserve(){if(i.observer){i.observer.unobserve(this.element)
|
|
this.removeHandler()}}didUpdateArguments(){this.unobserve()}didReceiveArguments(){let[e,t]=this.args.positional
|
|
this.handler=e
|
|
this.options=t||this.options
|
|
this.observe()}willRemove(){this.unobserve()}}e.default=i;(0,t.default)(i,"observer",null);(0,t.default)(i,"handlers",null)}))
|
|
define("ember-test-waiters/index",["exports","@ember/debug","@ember/test-waiters"],(function(e,t,n){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))}))}))
|
|
define("label-view-model/components/label-view-model",["exports","@ember/template-factory","@ember/component","@glimmer/component","text-view-model/components/text-view-model-v2"],(function(e,t,n,i,r){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const o=Object.freeze({SIGNAL_NEUTRAL:"ui-label--neutral",SIGNAL_POSITIVE:"ui-label--positive",SIGNAL_NEGATIVE:"ui-label--caution",BRAND_ACCENT_2:"ui-label--accent-2",BRAND_ACCENT_3:"ui-label--accent-3",BRAND_ACCENT_4:"ui-label--accent-4",BRAND_ACCENT_5:"ui-label--accent"})
|
|
class l extends i.default{get labelClasses(){const e=["ui-label"]
|
|
"large"===this.args.size&&e.push("ui-label--large")
|
|
"DEFAULT"!==this.args.lvm.colorStyle&&e.push(o[this.args.lvm.colorStyle])
|
|
return e.join(" ")}}e.default=l;(0,n.setComponentTemplate)((0,t.createTemplateFactory)({id:"iMyECfy5",block:'[[[1,"\\n "],[11,1],[16,0,[30,0,["labelClasses"]]],[17,1],[12],[1,"\\n "],[8,[32,0],null,[["@tvm"],[[30,2,["text"]]]],null],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@lvm"],false,[]]',moduleName:"label-view-model/components/label-view-model.gts",scope:()=>[r.default],isStrictMode:!0}),l)}))
|
|
define("label-view-model/template-registry",[],(function(){}))
|
|
define("msg-conversation-ui/components/connection-invitation-presenter",["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","@ember/service","@ember/object","@ember/destroyable","ember-cli-pemberly-i18n/helpers/t","artdeco-button/components/artdeco-button","ember-cli-pemberly-tracking/modifiers/track-interaction","hue-web-icons/components/icon","@ember/modifier"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var b,y,_,v,T,C,E,w,P,S,O
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"ix6sz7tE",block:'[[[1,"\\n"],[1," "],[10,0],[14,0,"msg-s-thread-actions-tray__item-nonconnection-banner msg-s-thread-actions-tray__item t-12 t-black t-normal"],[12],[1,"\\n "],[10,0],[14,0,"msg-nonconnection-banner__primary-text flex-wrap mr2"],[12],[1,"\\n "],[1,[52,[30,1,["hasPendingInvitationReceived"]],[28,[32,0],["i18n_requested_to_connect","msg-conversation-ui/components/connection-invitation-presenter"],[["participantName"],[[30,1,["participantName"]]]]],[28,[32,0],["i18n_not_connected","msg-conversation-ui/components/connection-invitation-presenter"],[["participantName"],[[30,1,["participantName"]]]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"mlA flex-shrink-zero"],[12],[1,"\\n"],[41,[30,1,["hasPendingInvitationReceived"]],[[[1," "],[8,[32,1],[[4,[32,2],["click",[30,0,["declineConnection"]]],null]],[["@class","@type","@size","@circle","@color","@icon","@text"],["msg-nonconnection-banner__decline-btn mr1","secondary",1,true,"muted","close",[28,[32,0],["a11y_decline_connection_request","msg-conversation-ui/components/connection-invitation-presenter"],null]]],null],[1,"\\n\\n "],[8,[32,1],[[4,[32,2],["click",[30,0,["acceptConnection"]]],null],[4,[32,3],["confirm_connection_invite"],null]],[["@class","@type","@size","@circle","@icon","@text"],["msg-nonconnection-banner__accept-btn","secondary",1,true,"check",[28,[32,0],["a11y_accept_connection_request","msg-conversation-ui/components/connection-invitation-presenter"],null]]],null],[1,"\\n"]],[]],[[[41,[30,1,["hasPendingInvitationSent"]],[[[1," "],[10,1],[14,0,"msg-nonconnection-banner__pending"],[12],[1,"\\n "],[8,[32,4],[[24,0,"v-align-top"]],[["@a11yText","@name","@type","@size"],[[28,[32,0],["i18n_invitation_pending","msg-conversation-ui/components/connection-invitation-presenter"],null],"signal-success","system","small"]],null],[1,"\\n "],[1,[28,[32,0],["i18n_invitation_pending","msg-conversation-ui/components/connection-invitation-presenter"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[32,1],[[4,[32,2],["click",[30,0,["requestToConnect"]]],null],[4,[32,3],["send_connection_invite"],null]],[["@icon","@circle","@size","@type","@class","@text"],["connect",true,1,"secondary","msg-nonconnection-banner__connect-btn",[28,[32,0],["a11y_request_to_connect","msg-conversation-ui/components/connection-invitation-presenter"],null]]],null],[1,"\\n "]],[]]]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["@viewData"],false,["if"]]',moduleName:"msg-conversation-ui/components/connection-invitation-presenter.gjs",scope:()=>[u.default,m.default,g.on,f.default,h.default],isStrictMode:!0}),(b=(0,c.inject)("i18n"),y=(0,c.inject)("global-services@a11y-notification"),_=(0,c.inject)("persistent-toast-manager@persistent-toast-manager"),v=(0,c.inject)("invitation-platform@invitation-platform"),T=(0,c.inject)("msg-data@data-manager"),C=class e extends s.default{constructor(){super(...arguments);(0,t.default)(this,"i18n",E,this);(0,t.default)(this,"a11yNotification",w,this);(0,t.default)(this,"persistentToastManager",P,this);(0,t.default)(this,"invitationPlatform",S,this);(0,t.default)(this,"msgDataManager",O,this)}acceptConnection(){this.invitationPlatform.acceptInvitation(this.args.viewData.pendingInvitation).then((()=>{this.isDestroying||this._removePendingInvitationFromConversation(!0)})).catch((e=>{if((0,d.isDestroying)(this))throw e
|
|
this._errorToast("i18n_accept_error")
|
|
throw e}))}declineConnection(){this.invitationPlatform.ignoreInvitation(this.args.viewData.pendingInvitation).then((()=>{(0,d.isDestroying)(this)||this._removePendingInvitationFromConversation(!1)})).catch((e=>{if((0,d.isDestroying)(this))throw e
|
|
this._errorToast("i18n_decline_error")
|
|
throw e}))}requestToConnect(){this.invitationPlatform.sendInvitationByProfileId({profileId:this.args.viewData.recipientProfileId}).then((()=>{this.isDestroying||this._a11yNotify("i18n_request_to_connect_is_pending",{participantName:this.args.viewData.participantName})})).catch((e=>{if((0,d.isDestroying)(this))throw e
|
|
this._errorToast("i18n_request_to_connect_error")
|
|
throw e}))}_errorToast(t){const n=this.i18n.lookupTranslation(e,t)()
|
|
this.persistentToastManager.error({message:n})}_a11yNotify(t,n){const i=this.i18n.lookupTranslation(e,t)
|
|
this.a11yNotification.setTextInLiveRegion(i([n]))}_removePendingInvitationFromConversation(e){this.msgDataManager.connectionStatusMap.set(this.args.viewData.recipientProfileUrn,{isConnected:e,pendingInvitation:null,invitationType:null})}},E=(0,i.default)(C.prototype,"i18n",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,i.default)(C.prototype,"a11yNotification",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,i.default)(C.prototype,"persistentToastManager",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,i.default)(C.prototype,"invitationPlatform",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,i.default)(C.prototype,"msgDataManager",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(C.prototype,"acceptConnection",[p.action],Object.getOwnPropertyDescriptor(C.prototype,"acceptConnection"),C.prototype),(0,i.default)(C.prototype,"declineConnection",[p.action],Object.getOwnPropertyDescriptor(C.prototype,"declineConnection"),C.prototype),(0,i.default)(C.prototype,"requestToConnect",[p.action],Object.getOwnPropertyDescriptor(C.prototype,"requestToConnect"),C.prototype),C))}))
|
|
define("msg-conversation-ui/components/conversation-rename-presenter",["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","msg-shared/utils/constants","@ember/object/internals","@glimmer/tracking","@glimmer/component","@ember/service","@ember/object","@ember/modifier","global-modifiers/modifiers/on-click-outside","ember-cli-pemberly-tracking/modifiers/track-render","ember-cli-pemberly-i18n/helpers/t","@ember/helper","global-modifiers/modifiers/focus","artdeco-button/components/artdeco-button"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var v,T,C,E,w,P,S,O,k,A
|
|
const{ESC:I}=a.KEYCODES
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"Lw7kw9S4",block:'[[[1,"\\n"],[1," "],[11,"form"],[24,0,"msg-s-thread-actions-tray__item msg-s-thread-actions-tray__item--rename"],[17,1],[4,[32,0],["submit",[30,0,["onFormSubmit"]]],null],[4,[32,0],["change",[30,0,["onFormChange"]]],null],[4,[32,0],["keyup",[30,0,["onFormKeyUp"]]],null],[4,[32,1],[[30,2]],null],[4,[32,2],null,[["pageKey","routeName","currentRoute"],[[30,3],[28,[32,3],[[53,"outletState"],"render.name"],null],[28,[32,3],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n "],[10,"label"],[14,0,"visually-hidden"],[15,"for",[29,["msg-s-thread-actions-tray__rename-input-",[30,0,["elementId"]]]]],[12],[1,"\\n "],[1,[28,[32,4],["i18n_name_conversation","msg-conversation-ui/components/conversation-rename-presenter"],null]],[1,"\\n "],[13],[1,"\\n "],[11,"input"],[16,1,[28,[32,5],["msg-s-thread-actions-tray__rename-input-",[30,0,["elementId"]]],null]],[24,0,"msg-s-thread-actions-tray__rename-input t-20 t-black t-light"],[16,2,[30,4,["conversationName"]]],[16,"placeholder",[28,[32,4],["i18n_name_conversation","msg-conversation-ui/components/conversation-rename-presenter"],null]],[24,4,"text"],[4,[32,6],null,null],[12],[13],[1,"\\n "],[8,[32,7],null,[["@class","@controlType","@size","@disabled"],["ml2 flex-shrink-zero","submit",1,[30,0,["disableSaveButton"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,4],["i18n_save","msg-conversation-ui/components/conversation-rename-presenter"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@hideRenameConversationForm","@pageKey","@viewData"],false,["-get-dynamic-var"]]',moduleName:"msg-conversation-ui/components/conversation-rename-presenter.gjs",scope:()=>[m.on,f.default,h.default,b.get,g.default,b.concat,y.default,_.default],isStrictMode:!0}),(v=(0,d.inject)("msg-data@data-manager"),T=(0,d.inject)("tracking"),C=(0,d.inject)("i18n"),E=(0,d.inject)("global-services@a11y-notification"),w=class e extends p.default{constructor(){super(...arguments);(0,t.default)(this,"msgDataManager",P,this);(0,t.default)(this,"tracking",S,this);(0,t.default)(this,"i18n",O,this);(0,t.default)(this,"a11yNotification",k,this);(0,n.default)(this,"elementId",(0,s.guidFor)(this));(0,t.default)(this,"internalConversationName",A,this)}get invalidLength(){return this.internalConversationName.length>a.RENAME_MAX_CHARACTERS}get disableSaveButton(){return!!this.invalidLength||!(0!==this.internalConversationName.length||!this.args.viewData.disableRemovingName)}onFormKeyUp(e){if(e.keyCode===I){e.stopPropagation()
|
|
this.args.hideRenameConversationForm()}}onFormSubmit(t){t.preventDefault()
|
|
this.tracking.fireInteractionEvent(`${this.args.actionTrackingPrefix||""}save_rename`)
|
|
if(!this.invalidLength){var n,i,r
|
|
const o=this.args.viewData.conversationName||"",l=this.internalConversationName?this.internalConversationName.trim():""
|
|
let a
|
|
if(o!==l){this.msgDataManager.updateConversationName(this.args.viewData.conversationEntityUrn,l)
|
|
a=this.i18n.lookupTranslation(e,"i18n_a11y_renamed_announcement")([{conversationName:l}])}else a=this.i18n.lookupTranslation(e,"i18n_a11y_rename_closed_announcement")([])
|
|
this.args.hideRenameConversationForm()
|
|
this.a11yNotification.setTextInLiveRegion(a)
|
|
null==t||null===(n=t.target)||void 0===n||null===(i=n.closest(".msg-convo-wrapper"))||void 0===i||null===(r=i.querySelector(".msg-thread-actions__control"))||void 0===r||r.focus()}}onFormChange(e){this.internalConversationName=e.target.value
|
|
this.tracking.fireInteractionEvent(`${this.args.actionTrackingPrefix||""}group_chat_name`)}},P=(0,i.default)(w.prototype,"msgDataManager",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,i.default)(w.prototype,"tracking",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,i.default)(w.prototype,"i18n",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,i.default)(w.prototype,"a11yNotification",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,i.default)(w.prototype,"internalConversationName",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.viewData.conversationName||""}}),(0,i.default)(w.prototype,"onFormKeyUp",[u.action],Object.getOwnPropertyDescriptor(w.prototype,"onFormKeyUp"),w.prototype),(0,i.default)(w.prototype,"onFormSubmit",[u.action],Object.getOwnPropertyDescriptor(w.prototype,"onFormSubmit"),w.prototype),(0,i.default)(w.prototype,"onFormChange",[u.action],Object.getOwnPropertyDescriptor(w.prototype,"onFormChange"),w.prototype),w))}))
|
|
define("msg-conversation-ui/components/inmail-credits-presenter",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","ember-cli-pemberly-i18n/helpers/t","hue-web-icons/components/icon","global-helpers/helpers/or","@ember/helper"],(function(e,t,n,i,r,o,l,a){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const s=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"bA04UEIH",block:'[[[1,"\\n"],[1," "],[10,"section"],[15,0,[29,["msg-inmail-credits-display pv2 ph4 relative\\n ",[52,[30,1],"justify-flex-end"]]]],[12],[1,"\\n"],[41,[51,[30,1]],[[[1," "],[10,1],[14,0,"a11y-text"],[12],[1,"\\n "],[1,[28,[32,0],["i18n_a11y_premium_badge","msg-conversation-ui/components/inmail-credits-presenter"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,1],null,[["@type","@size","@name"],["logo","xxxsmall","premium-badge"]],null],[1,"\\n"]],[]],null],[1," "],[10,2],[14,0,"t-12 t-black--light t-normal"],[12],[1,"\\n"],[41,[30,2],[[[1," "],[1,[28,[32,0],["i18n_loading_indicator","msg-conversation-ui/components/inmail-credits-presenter"],null]],[1,"\\n"]],[]],[[[41,[28,[32,2],[[30,3],[30,1]],null],[[[1," "],[1,[28,[32,0],["i18n_free_inmail_with_why_link","msg-conversation-ui/components/inmail-credits-presenter"],[["linkInfo"],[[28,[32,3],null,[["target","href","rel","class","aria-label","data-control-name","data-test-awaiting-inmail-response-learn-more"],["_blank","/help/linkedin/answer/139","noopener noreferrer","link",[28,[32,0],["i18n_free_inmail_why_a11y","msg-conversation-ui/components/inmail-credits-presenter"],null],"free_inmail_why",true]]]]]]],[1,"\\n"]],[]],[[[41,[30,4],[[[1," "],[1,[28,[32,0],["i18n_num_credits_left","msg-conversation-ui/components/inmail-credits-presenter"],[["numCredits"],[[30,4]]]]],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"msg-inmail-credits-display__error"],[12],[1,"\\n "],[1,[28,[32,0],["i18n_no_credits_left","msg-conversation-ui/components/inmail-credits-presenter"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]],[]]]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],["@recipientOpenToFreeMessages","@loading","@isOpenLink","@inmailCredits"],false,["if","unless"]]',moduleName:"msg-conversation-ui/components/inmail-credits-presenter.gjs",scope:()=>[r.default,o.default,l.default,a.hash],isStrictMode:!0}),(0,n.default)("inmail-credits-presenter","InmailCreditsPresenter"))
|
|
e.default=s}))
|
|
define("msg-conversation-ui/components/premium-custom-cta-presenter",["exports","@ember/template-factory","@ember/helper","@ember/component/template-only","@ember/component","text-view-model/components/text-view-model-v2","ember-cli-pemberly-tracking/modifiers/track-render","ember-cli-pemberly-tracking/modifiers/track-interaction","ember-cli-pemberly-tracking/components/shared/external-link"],(function(e,t,n,i,r,o,l,a,s){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const c=(0,r.setComponentTemplate)((0,t.createTemplateFactory)({id:"HSeOdJ+S",block:'[[[1,"\\n "],[8,[32,0],[[4,[32,1],null,[["pageKey","routeName","currentRoute"],["flagship3_messaging_premium_custom_button_banner",[28,[32,2],[[53,"outletState"],"render.name"],null],[28,[32,2],[[53,"outletState"],"render"],null]]]],[4,[32,3],["click_premium_custom_button_banner_action"],null]],[["@href","@target","@class"],[[30,1,["targetUrl"]],"_blank","msg-s-thread-actions-tray__item msg-s-thread-actions-tray__item--custom-cta t-12 t-bold"]],[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@tvm"],[[30,1,["title"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],["@composeViewHeader"],false,["-get-dynamic-var"]]',moduleName:"msg-conversation-ui/components/premium-custom-cta-presenter.gjs",scope:()=>[s.default,l.default,n.get,a.default,o.default],isStrictMode:!0}),(0,i.default)("premium-custom-cta-presenter","PremiumCustomCtaPresenter"))
|
|
e.default=c}))
|
|
define("msg-conversation-ui/components/recipient-detail-group-presenter",["exports","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@ember/template-factory","@ember/component","global-utils/utils/get-location","@glimmer/component","@ember/object","artdeco-entity-pile/components/artdeco-entity-pile","presence/components/entity-with-presence-presenter","global-helpers/helpers/eq","ember-cli-pemberly-i18n/helpers/t","@ember/helper","artdeco-button/components/artdeco-button","ember-cli-pemberly-tracking/modifiers/track-interaction","@ember/modifier","ember-set-helper/helpers/set","app-aware-link/components/app-aware-link","image-view-model/components/image-view-model","@ember/render-modifiers/modifiers/did-insert","text-view-model/helpers/text-view-model","msg-shared-modals/components/conversation-modals-presenter"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var T
|
|
e.default=(0,i.setComponentTemplate)((0,n.createTemplateFactory)({id:"kcJkN6N0",block:'[[[1,"\\n"],[1," "],[10,0],[15,0,[29,["msg-s-profile-card ph3 ",[30,1]]]],[12],[1,"\\n "],[8,[32,0],null,[["@entities","@size","@maxEntities","@shape","@stacked","@onEntityClick"],[[30,2,["recipientProfiles"]],4,5,"circle",false,[30,0,["openProfile"]]]],[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"msg-conversation-card__presence-entity"]],[["@viewData","@size"],[[30,3,["entityWithPresenceViewData"]],4]],null],[1,"\\n "]],[3]]]]],[1,"\\n\\n"],[1," "],[10,0],[14,0,"mt2 t-14 t-bold"],[12],[1,"\\n"],[41,[28,[32,2],[[30,2,["recipientProfiles","length"]],1],null],[[[1," "],[1,[28,[32,3],["i18n_participant_list_of_1_with_pronouns","msg-conversation-ui/components/recipient-detail-group-presenter"],[["link1","name1","pronoun1"],[[28,[32,4],[[30,2,["recipientProfiles"]],"0.participantProfileUrl"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"0.name"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"0.pronoun"],null]]]]],[1,"\\n"]],[]],[[[41,[28,[32,2],[[30,2,["recipientProfiles","length"]],2],null],[[[1," "],[1,[28,[32,3],["i18n_participant_list_of_2_with_pronouns","msg-conversation-ui/components/recipient-detail-group-presenter"],[["link1","name1","pronoun1","link2","name2","pronoun2"],[[28,[32,4],[[30,2,["recipientProfiles"]],"0.participantProfileUrl"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"0.name"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"0.pronoun"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"1.participantProfileUrl"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"1.name"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"1.pronoun"],null]]]]],[1,"\\n"]],[]],[[[41,[28,[32,2],[[30,2,["recipientProfiles","length"]],3],null],[[[1," "],[1,[28,[32,3],["i18n_participant_list_of_3_with_pronouns","msg-conversation-ui/components/recipient-detail-group-presenter"],[["link1","name1","pronoun1","link2","name2","pronoun2","link3","name3","pronoun3"],[[28,[32,4],[[30,2,["recipientProfiles"]],"0.participantProfileUrl"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"0.name"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"0.pronoun"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"1.participantProfileUrl"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"1.name"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"1.pronoun"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"2.participantProfileUrl"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"2.name"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"2.pronoun"],null]]]]],[1,"\\n"]],[]],[[[41,[28,[32,2],[[30,2,["recipientProfiles","length"]],4],null],[[[1," "],[1,[28,[32,3],["i18n_participant_list_of_4_with_pronouns","msg-conversation-ui/components/recipient-detail-group-presenter"],[["link1","name1","pronoun1","link2","name2","pronoun2","link3","name3","pronoun3","link4","name4","pronoun4"],[[28,[32,4],[[30,2,["recipientProfiles"]],"0.participantProfileUrl"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"0.name"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"0.pronoun"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"1.participantProfileUrl"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"1.name"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"1.pronoun"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"2.participantProfileUrl"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"2.name"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"2.pronoun"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"3.participantProfileUrl"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"3.name"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"3.pronoun"],null]]]]],[1,"\\n"]],[]],[[[41,[28,[32,2],[[30,2,["recipientProfiles","length"]],5],null],[[[1," "],[1,[28,[32,3],["i18n_participant_list_of_5_with_pronouns","msg-conversation-ui/components/recipient-detail-group-presenter"],[["link1","name1","pronoun1","link2","name2","pronoun2","link3","name3","pronoun3","link4","name4","pronoun4","link5","name5","pronoun5"],[[28,[32,4],[[30,2,["recipientProfiles"]],"0.participantProfileUrl"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"0.name"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"0.pronoun"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"1.participantProfileUrl"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"1.name"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"1.pronoun"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"2.participantProfileUrl"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"2.name"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"2.pronoun"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"3.participantProfileUrl"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"3.name"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"3.pronoun"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"4.participantProfileUrl"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"4.name"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"4.pronoun"],null]]]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,3],["i18n_participant_list_of_more_than_5_with_pronouns","msg-conversation-ui/components/recipient-detail-group-presenter"],[["othersCount","link1","name1","pronoun1","link2","name2","pronoun2","link3","name3","pronoun3","link4","name4","pronoun4"],[[30,0,["othersCount"]],[28,[32,4],[[30,2,["recipientProfiles"]],"0.participantProfileUrl"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"0.name"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"0.pronoun"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"1.participantProfileUrl"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"1.name"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"1.pronoun"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"2.participantProfileUrl"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"2.name"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"2.pronoun"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"3.participantProfileUrl"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"3.name"],null],[28,[32,4],[[30,2,["recipientProfiles"]],"3.pronoun"],null]]]]],[1,"\\n "]],[]]]],[]]]],[]]]],[]]]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[30,2,["allowAddParticipant"]],[[[1," "],[10,0],[12],[1,"\\n "],[8,[32,5],[[16,"aria-label",[28,[32,3],["i18n_invite_others_to_join","msg-conversation-ui/components/recipient-detail-group-presenter"],null]],[4,[32,6],[[52,[30,4],"overlay.invite_others_join","invite_others_join"]],null],[4,[32,7],["click",[28,[32,8],[[30,0],"isConvoDetailModalOpen",true],null]],null]],[["@class","@text","@type"],["msg-conversation-card__cta-button link-without-visited-state p0",[28,[32,3],["i18n_invite_others_to_join","msg-conversation-ui/components/recipient-detail-group-presenter"],null],"tertiary"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,2,["allowRenameConversation"]],[[[1," "],[10,0],[12],[1,"\\n "],[8,[32,5],[[16,"aria-label",[28,[32,3],["i18n_rename_chat","msg-conversation-ui/components/recipient-detail-group-presenter"],null]],[4,[32,6],[[52,[30,4],"overlay.rename_chat_cta","rename_chat_cta"]],null],[4,[32,7],["click",[30,0,["openRenameConversationForm"]]],null]],[["@class","@text","@type"],["msg-conversation-card__cta-button link-without-visited-state p0",[28,[32,3],["i18n_rename_chat","msg-conversation-ui/components/recipient-detail-group-presenter"],null],"tertiary"]],null],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1,"\\n"],[41,[30,2,["headlineText"]],[[[1," "],[10,0],[14,0,"display-flex align-items-center mt2"],[12],[1,"\\n"],[41,[30,2,["headlineImage"]],[[[1," "],[8,[32,9],null,[["@href"],[[30,2,["headlineImage","actionTarget"]]]],[["default"],[[[[1,"\\n "],[8,[32,10],[[24,0,"pr2"]],[["@entitySize","@images"],[3,[30,2,["headlineImage"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[11,0],[24,0,"t-12 t-normal t-black--light"],[4,[32,11],[[30,0,["makeHyperlinksOpenExternally"]]],null],[12],[1,"\\n "],[1,[28,[32,12],[[30,2,["headlineText"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,13],null,[["@viewData","@isConvoDetailModalOpen","@closeConvoDetailModal","@handleSuccessfulDiscardRequest","@toggleConversationMute","@trackingModuleName","@actionTrackingPrefix","@addParticipantsPageKey","@isOverlay","@afterDismissFocusElement"],[[30,2,["conversationModalsViewData"]],[30,0,["isConvoDetailModalOpen"]],[28,[32,8],[[30,0],"isConvoDetailModalOpen",false],null],[30,5],[30,6],[30,7],[30,8],[30,9],[30,4],[30,0,["rollupButtonElement"]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@classNames","@viewData","profile","@isOverlay","@handleSuccessfulDiscardRequest","@toggleConversationMute","@trackingModuleName","@actionTrackingPrefix","@addParticipantsPageKey"],false,["if"]]',moduleName:"msg-conversation-ui/components/recipient-detail-group-presenter.gjs",scope:()=>[a.default,s.default,c.default,p.default,d.get,u.default,m.default,f.on,h.default,g.default,b.default,y.default,_.default,v.default],isStrictMode:!0}),(T=class extends o.default{get othersCount(){return this.args.viewData.recipientProfiles.length-5+1}openRenameConversationForm(e){var t,n
|
|
e.stopPropagation()
|
|
null===(t=(n=this.args).toggleShowRenameConversation)||void 0===t||t.call(n,!0)}openProfile(e){(0,r.default)().assign(jSecure.sanitizeUrl(e.participantProfileUrl))}makeHyperlinksOpenExternally(e){this.args.isOverlay&&e.querySelectorAll("a").forEach((e=>e.setAttribute("target","_blank")))}},(0,t.default)(T.prototype,"openRenameConversationForm",[l.action],Object.getOwnPropertyDescriptor(T.prototype,"openRenameConversationForm"),T.prototype),(0,t.default)(T.prototype,"openProfile",[l.action],Object.getOwnPropertyDescriptor(T.prototype,"openProfile"),T.prototype),(0,t.default)(T.prototype,"makeHyperlinksOpenExternally",[l.action],Object.getOwnPropertyDescriptor(T.prototype,"makeHyperlinksOpenExternally"),T.prototype),T))}))
|
|
define("msg-conversation-ui/components/recipient-detail-one-to-one-presenter",["exports","@ember/template-factory","@ember/component","@glimmer/component","artdeco-entity-lockup/components/artdeco-entity-lockup","presence/components/entity-with-presence-presenter","ember-cli-pemberly-tracking/components/shared/external-link","ember-vector-images/components/lazy-image","app-aware-link/components/app-aware-link","pronouns/components/pronouns","ember-cli-pemberly-i18n/helpers/t","text-view-model/components/text-view-model-v2","global-helpers/helpers/attributed-text-html"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
class m extends i.default{get isContextTextModelV2(){return!!this.args.contextText.attributesV2}get pageLogoPixelSize(){return this.args.inlineLayout?56:72}get profileNavigationEnabled(){const{viewData:e}=this.args
|
|
return e.isSponsoredConversation&&e.isRecipientOrganization?e.recipientProfileUrl:e.isSponsoredConversation?null:e.creatorProfileViewEnabled&&e.recipientProfileUrl}}e.default=m;(0,n.setComponentTemplate)((0,t.createTemplateFactory)({id:"ftnDZKK0",block:'[[[1,"\\n"],[1," "],[11,0],[24,0,"msg-s-profile-card msg-s-profile-card-one-to-one"],[17,1],[12],[1,"\\n "],[8,[32,0],null,[["@class","@size","@stacked"],["break-words",[52,[30,2],"4","5"],[52,[30,2],false,"left"]]],[["default"],[[[[1,"\\n\\n"],[41,[30,0,["profileNavigationEnabled"]],[[[1," "],[8,[32,1],null,[["@href"],[[30,4,["recipientProfileUrl"]]]],[["default"],[[[[1,"\\n "],[8,[30,3,["image"]],null,[["@type"],[[52,[30,4,["isRecipientOrganization"]],"square","circle"]]],[["default"],[[[[1,"\\n"],[41,[30,4,["isRecipientOrganization"]],[[[1," "],[8,[32,2],null,[["@class","@image","@alt","@ghostType","@desiredWidth","@desiredHeight","@ariaRole"],[[29,["presence-entity__image presence-entity__organization-image EntityPhoto-square-",[52,[30,2],4,5]]],[30,4,["pageLogo"]],[30,4,["participantName"]],"company",[30,0,["pageLogoPixelSize"]],[30,0,["pageLogoPixelSize"]],"presentation"]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,3],[[24,0,"msg-conversation-card__presence-entity"]],[["@viewData","@size"],[[30,4,["entityWithPresenceViewData"]],[52,[30,2],4,5]]],null],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[30,3,["image"]],null,[["@type"],["circle"]],[["default"],[[[[1,"\\n "],[8,[32,3],[[24,0,"msg-conversation-card__presence-entity"]],[["@viewData","@size"],[[30,4,["entityWithPresenceViewData"]],[52,[30,2],4,5]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]],[1," "],[8,[30,3,["content"]],null,null,[["default"],[[[[1,"\\n "],[8,[30,3,["title"]],null,null,[["default"],[[[[1,"\\n\\n"],[41,[30,0,["profileNavigationEnabled"]],[[[1," "],[8,[32,4],[[24,0,"profile-card-one-to-one__profile-link"]],[["@href"],[[30,4,["recipientProfileUrl"]]]],[["default"],[[[[1,"\\n "],[1,[30,4,["participantName"]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[1,[30,4,["participantName"]]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n"],[41,[30,4,["pronounsObject","isResolved"]],[[[1," "],[8,[32,5],[[24,0,"t-14 t-black--light"]],[["@pronounsObject"],[[30,4,["pronounsObject","value"]]]],null],[1,"\\n"]],[]],null],[41,[30,4,["recipientBadgeInfo"]],[[[1," "],[8,[30,3,["badge"]],null,[["@degreeText","@degreeA11yText"],[[52,[30,4,["recipientBadgeInfo","textKey"]],[28,[32,6],[[30,4,["recipientBadgeInfo","textKey"]],"msg-conversation-ui/components/recipient-detail-one-to-one-presenter"],[["value"],[[30,4,["recipientBadgeInfo","value"]]]]]],[52,[30,4,["recipientBadgeInfo","a11yTextKey"]],[28,[32,6],[[30,4,["recipientBadgeInfo","a11yTextKey"]],"msg-conversation-ui/components/recipient-detail-one-to-one-presenter"],[["value"],[[30,4,["recipientBadgeInfo","value"]]]]]]]],null],[1,"\\n"]],[]],null],[1," "],[8,[30,3,["subtitle"]],null,null,[["default"],[[[[1,"\\n "],[10,0],[15,"title",[30,4,["subtitle"]]],[12],[1,"\\n "],[1,[30,4,["subtitle"]]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,5],[[[1," "],[8,[30,3,["metadata"]],null,[["@class"],["profile-card-one-to-one__context pt1"]],[["default"],[[[[1,"\\n"],[41,[30,0,["isContextTextModelV2"]],[[[1," "],[8,[32,7],null,[["@tvm"],[[30,5]]],null],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,8],[[30,5]],null]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "]],[3]]]]],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@inlineLayout","elements","@viewData","@contextText"],false,["if"]]',moduleName:"msg-conversation-ui/components/recipient-detail-one-to-one-presenter.gjs",scope:()=>[r.default,l.default,a.default,o.default,s.default,c.default,p.default,d.default,u.default],isStrictMode:!0}),m)}))
|
|
define("msg-conversation-ui/components/sender-side-warning-banner-presenter",["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","@ember/service","text-view-model/components/text-view-model-v2","image-view-model/components/image-view-model","artdeco-button/components/artdeco-button","ember-cli-pemberly-i18n/helpers/t","@ember/object","@glimmer/tracking","@ember/modifier"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var b,y,_,v
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"3Ks0Wmsb",block:'[[[1,"\\n"],[41,[30,0,["shouldShowBanner"]],[[[1," "],[10,0],[14,0,"msg-sender-side-warning-banner"],[12],[1,"\\n"],[41,[30,1,["icon"]],[[[1," "],[8,[32,0],[[24,0,"mr2"]],[["@images","@entitySize"],[[30,1,["icon"]],1]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"flex-column mr1"],[12],[1,"\\n"],[1," "],[10,2],[14,0,"text-body-xsmall-bold mb1"],[12],[8,[32,1],null,[["@tvm"],[[30,1,["title"]]]],null],[13],[1,"\\n"],[41,[30,1,["subtitle"]],[[[1," "],[10,2],[14,0,"text-body-xsmall"],[12],[8,[32,1],null,[["@tvm"],[[30,1,["subtitle"]]]],null],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,1,["dismissable"]],[[[1," "],[8,[32,2],[[16,"aria-label",[28,[32,3],["i18n_a11y_dismiss_banner","msg-conversation-ui/components/sender-side-warning-banner-presenter"],null]],[4,[32,4],["click",[30,0,["dismissBanner"]]],null]],[["@class","@color","@icon","@type","@circle","@size"],["msg-sender-side-warning-banner__dismiss-button ph4","muted","close","tertiary","true",1]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["@bannerData"],false,["if"]]',moduleName:"msg-conversation-ui/components/sender-side-warning-banner-presenter.gjs",scope:()=>[d.default,p.default,u.default,m.default,g.on],isStrictMode:!0}),(b=(0,c.inject)("lego@tracking"),y=class extends s.default{get shouldShowBanner(){return!!this.args.bannerData&&!this.isDismissed}get legoTrackingId(){var e
|
|
return null===(e=this.args.bannerData)||void 0===e?void 0:e.legoTrackingId}constructor(){super(...arguments);(0,t.default)(this,"legoTracking",_,this);(0,t.default)(this,"isDismissed",v,this)
|
|
this.legoTrackingId&&this.legoTracking.sendLegoImpression(this.legoTrackingId,this.legoTracking.LEGO_IMPRESSION_VISIBILITY_SHOW)}dismissBanner(){this.legoTrackingId&&this.legoTracking.sendLegoAction(this.legoTrackingId,this.legoTracking.LEGO_ACTION_DISMISS,1)
|
|
this.isDismissed=!0}},_=(0,i.default)(y.prototype,"legoTracking",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,i.default)(y.prototype,"isDismissed",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(y.prototype,"dismissBanner",[f.action],Object.getOwnPropertyDescriptor(y.prototype,"dismissBanner"),y.prototype),y))}))
|
|
define("msg-conversation-ui/components/thread-top-card-feature",["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","msg-conversation-ui/viewdata/sdk-thread-top-card-viewdata","@glimmer/component","@ember/service","msg-conversation-ui/components/conversation-rename-presenter","msg-conversation-ui/components/premium-custom-cta-presenter","@ember/helper","msg-conversation-ui/components/sender-side-warning-banner-presenter","msg-conversation-ui/components/connection-invitation-presenter","msg-shared-modals/components/gdpr-notice","msg-conversation-ui/components/recipient-detail-one-to-one-presenter"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var b,y,_,v,T,C,E,w,P,S,O,k,A,I,M,D,N
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"FHhbdUWB",block:'[[[1,"\\n "],[10,0],[14,0,"msg-thread-container msg-thread__thread-actions-tray"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[8,[32,0],null,[["@actionTrackingPrefix","@viewData","@hideRenameConversationForm","@pageKey"],[[30,2],[30,0,["viewData","conversationRenameViewData"]],[28,[32,1],[[30,3],false],null],[30,4]]],null],[1,"\\n"]],[]],null],[41,[30,5,["isResolved"]],[[[41,[30,0,["showSenderSideWarningBanner"]],[[[1," "],[8,[32,2],null,[["@bannerData"],[[30,0,["composeViewHeader"]]]],null],[1,"\\n\\n"]],[]],[[[41,[30,0,["showPremiumCustomCta"]],[[[1," "],[8,[32,3],null,[["@composeViewHeader"],[[30,0,["composeViewHeader"]]]],null],[1,"\\n\\n"]],[]],[[[41,[30,0,["showConnectionInvitationBanner"]],[[[1," "],[8,[32,4],null,[["@viewData"],[[30,0,["viewData","connectionInvitationViewData"]]]],null],[1,"\\n "]],[]],null]],[]]]],[]]]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["showGdpr"]],[[[1," "],[8,[32,5],null,[["@noticeTypes"],[[30,6]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,7],[[[1," "],[8,[32,6],[[24,0,"ph3 pv2"]],[["@inlineLayout","@contextText","@viewData"],[[30,8],[30,9],[30,0,["viewData","recipientDetailOneToOneViewData"]]]],null],[1,"\\n"]],[]],null],[1," "]],["@showRenameConversationForm","@actionTrackingPrefix","@toggleShowRenameConversation","@renamePageKey","@composeViewContext","@noticeTypes","@showRecipientDetailOneToOne","@isOriginalSize","@contextText"],false,["if"]]',moduleName:"msg-conversation-ui/components/thread-top-card-feature.gjs",scope:()=>[p.default,u.fn,m.default,d.default,f.default,h.default,g.default],isStrictMode:!0}),(b=(0,c.inject)("authentication@authenticated-user"),y=(0,c.inject)("invitation-platform@invitation-platform"),_=(0,c.inject)("profile-services@identity-store"),v=(0,c.inject)("formatter"),T=(0,c.inject)("lix"),C=(0,c.inject)("msg-data@data-manager"),E=(0,c.inject)("router"),w=(0,c.inject)("global-services@store-shim"),P=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"authenticatedUser",S,this);(0,t.default)(this,"invitationPlatform",O,this);(0,t.default)(this,"identityStore",k,this);(0,t.default)(this,"formatter",A,this);(0,t.default)(this,"lix",I,this);(0,t.default)(this,"msgDataManager",M,this);(0,t.default)(this,"router",D,this);(0,t.default)(this,"storeShim",N,this)}get viewData(){const{authenticatedUser:e,formatter:t,identityStore:n,invitationPlatform:i,msgDataManager:r,router:o,storeShim:l,lix:s}=this
|
|
return new a.default({conversation:this.args.conversation,profile:this.args.recipientProfile,invitationPlatform:i,identityStore:n,formatter:t,msgDataManager:r,authenticatedUser:e,router:o,store:l,lix:s})}get showConnectionInvitationBanner(){const{latestMessageIsInMail:e,isPremiumInMailOrReply:t,isInMailOrInMailReply:n,isPendingOrDeclinedMessageRequest:i,participantIsBlocked:r,participantIsConnected:o,latestEvent:l,isGroupChat:a}=this.viewData
|
|
if(!l)return!1
|
|
return!(n&&(e||!t)||r||o||i||a)}get showGdpr(){return this.viewData.latestMessageIsInMail}get composeViewHeader(){var e,t
|
|
return null===(e=this.args.composeViewContext)||void 0===e||null===(t=e.value)||void 0===t?void 0:t.header}get showPremiumCustomCta(){var e
|
|
return"PREMIUM_CUSTOM_CTA"===(null===(e=this.composeViewHeader)||void 0===e?void 0:e.type)}get showSenderSideWarningBanner(){var e,t
|
|
return!(null!==(e=this.args.conversation)&&void 0!==e&&e.entityUrn)&&"SENDER_SIDE_WARNING"===(null===(t=this.composeViewHeader)||void 0===t?void 0:t.type)}},S=(0,i.default)(P.prototype,"authenticatedUser",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,i.default)(P.prototype,"invitationPlatform",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,i.default)(P.prototype,"identityStore",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,i.default)(P.prototype,"formatter",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,i.default)(P.prototype,"lix",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,i.default)(P.prototype,"msgDataManager",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,i.default)(P.prototype,"router",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,i.default)(P.prototype,"storeShim",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P))}))
|
|
define("msg-conversation-ui/template-registry",[],(function(){}))
|
|
define("msg-conversation-ui/viewdata/compose-recipient-detail-one-to-one-viewdata",["exports","@babel/runtime/helpers/esm/applyDecoratedDescriptor","presence/viewdata/host-entity-with-presence-viewdata","ember-async-data","msg-data/viewdata","data-layer/utils/profile/get-profile","tracked-toolbox"],(function(e,t,n,i,r,o,l){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var a
|
|
e.default=(a=class extends r.default{get recipientProfileUrl(){const e=this.props.profile.publicIdentifier
|
|
if(e)return this.props.router.urlFor("profile.common.profile",{vanityName:e})}get participantName(){return this.props.participantName}get subtitle(){const{profile:e}=this.props
|
|
return e.headline??e.occupation}get creatorProfileViewEnabled(){return this.recipientProfileUrl}get recipientBadgeInfo(){return this.recipientDistance.isResolved&&this.recipientDistance.value?{textKey:"i18n_distance",a11yTextKey:"i18n_distance_a11y",value:this.recipientDistance.value}:null}get recipientDistance(){return this.props.isInvitationAccepted()?new i.TrackedAsyncData("DISTANCE_1"):new i.TrackedAsyncData(this.props.msgDataManager.fetchConnectionStatus(this.props.profile.entityUrn.replace("fs_miniProfile","fsd_profile")).then((e=>e.memberDistance)))}get pronounsObject(){return new i.TrackedAsyncData((0,o.getProfileById)(this.props.store,this.props.profileId,"com.linkedin.voyager.dash.deco.identity.profile.FullProfile").then((e=>e.pronounUnion)))}get entityWithPresenceViewData(){return new n.default({profile:this.props.profile,altText:this.participantName})}},(0,t.default)(a.prototype,"recipientBadgeInfo",[l.cached],Object.getOwnPropertyDescriptor(a.prototype,"recipientBadgeInfo"),a.prototype),(0,t.default)(a.prototype,"recipientDistance",[l.cached],Object.getOwnPropertyDescriptor(a.prototype,"recipientDistance"),a.prototype),(0,t.default)(a.prototype,"pronounsObject",[l.cached],Object.getOwnPropertyDescriptor(a.prototype,"pronounsObject"),a.prototype),a)}))
|
|
define("msg-conversation-ui/viewdata/sdk-connection-invitation-viewdata",["exports","msg-data/viewdata","msg-data/utils/sdk-view-data-helpers","urn-utils"],(function(e,t,n,i){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
class r extends t.default{get conversationEntityUrn(){return this.props.conversation.entityUrn}get recipientProfileId(){const e=(0,n.getNonSelfParticipants)(this.props.conversation.decoratedParticipants,this.props.authenticatedUser.miniProfile)
|
|
return e&&e.length?(0,i.extractEntityInfoFromUrn)(e[0].hostIdentityUrn).id:null}get recipientProfileUrn(){var e
|
|
const t=(0,n.getNonSelfParticipants)(this.props.conversation.decoratedParticipants,this.props.authenticatedUser.miniProfile)
|
|
return t?null===(e=t[0])||void 0===e?void 0:e.hostIdentityUrn:null}get pendingInvitation(){var e
|
|
return(null===(e=this.props.msgDataManager.connectionStatusMap.get(this.recipientProfileUrn))||void 0===e?void 0:e.pendingInvitation)??null}get participantName(){var e
|
|
return null===(e=(0,n.getNonSelfParticipants)(this.props.conversation.decoratedParticipants,this.props.authenticatedUser.miniProfile))||void 0===e?void 0:e[0]}get hasPendingInvitationReceived(){const e=this.props.msgDataManager.connectionStatusMap.get(this.recipientProfileUrn)
|
|
return(null==e?void 0:e.pendingInvitation)&&"RECEIVED"===(null==e?void 0:e.invitationType)}get hasPendingInvitationSent(){const e=this.props.msgDataManager.connectionStatusMap.get(this.recipientProfileUrn)
|
|
return(null==e?void 0:e.pendingInvitation)&&"SENT"===(null==e?void 0:e.invitationType)||this.props.invitationPlatform.hasPendingInvitation(this.recipientProfileId)}}e.default=r}))
|
|
define("msg-conversation-ui/viewdata/sdk-conversation-rename-viewdata",["exports","msg-data/viewdata"],(function(e,t){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
class n extends t.default{get conversationEntityUrn(){return this.props.conversation.entityUrn}get conversationName(){return this.props.conversation.title}get disableRemovingName(){const{groupChat:e,participants:t}=this.props.conversation
|
|
return e&&t.length<=2}}e.default=n}))
|
|
define("msg-conversation-ui/viewdata/sdk-recipient-detail-group-viewdata",["exports","pronouns/utils/helpers","presence/viewdata/sdk-entity-with-presence-viewdata","global-helpers/helpers/name","msg-data/viewdata","msg-shared-modals/viewdata/sdk-conversation-modals-viewdata","msg-data/utils/sdk-view-data-helpers"],(function(e,t,n,i,r,o,l){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
class a extends r.default{get allowAddParticipant(){return!!this.isViewerCurrentParticipant&&(0,l.isConversationFeatureSupported)(this.props.conversation,"ADD_PARTICIPANT")}get allowRenameConversation(){return(0,l.isConversationFeatureSupported)(this.props.conversation,"RENAMED_CONVERSATION")}get recipientProfiles(){return this.participants.map((e=>({participantProfileUrl:e.profile.url??"",pronoun:(0,t.formatPronouns)(e,this.props.i18n),name:(0,i.getName)(e),entityWithPresenceViewData:new n.default({participant:e,altText:this.props.formatter.formatName(e,"full")})})))}get participants(){var e
|
|
return null===(e=this.props.conversation)||void 0===e?void 0:e.decoratedParticipants}get headlineText(){return this.props.conversation.headlineText}get headlineImage(){return null}get conversationModalsViewData(){var e
|
|
const{conversation:t,authenticatedUser:n,formatter:i,presenceAPI:r}=this.props
|
|
return new o.default({conversation:t,participants:this.participants,authenticatedUserProfile:null===(e=n.miniProfile)||void 0===e?void 0:e.content,formatter:i,presenceAPI:r})}get isViewerCurrentParticipant(){var e,t
|
|
return this.props.conversation&&(null===(e=this.props.conversation.participants)||void 0===e?void 0:e.includes(null===(t=this.props.authenticatedUser.miniProfile)||void 0===t?void 0:t.dashEntityUrn))}}e.default=a}))
|
|
define("msg-conversation-ui/viewdata/sdk-recipient-detail-one-to-one-viewdata",["exports","@babel/runtime/helpers/esm/applyDecoratedDescriptor","presence/viewdata/sdk-entity-with-presence-viewdata","ember-async-data","msg-data/viewdata","msg-data/utils/sdk-view-data-helpers","tracked-toolbox"],(function(e,t,n,i,r,o,l){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var a
|
|
e.default=(a=class extends r.default{get isRecipientOrganization(){return this.props.profile.kind===o.PARTICIPANT_TYPES.ORGANIZATION}get isSponsoredConversation(){return(0,o.isSponsoredConversation)(this.props.conversation)}get recipientBadgeInfo(){return this.isRecipientOrganization&&this.props.profile.following?{textKey:"i18n_following",a11yTextKey:"i18n_following_a11y",value:this.participantName}:this.recipientDistance.isResolved&&this.recipientDistance.value&&"DISTANCE_UNKNOWN"!==this.recipientDistance.value?{textKey:"i18n_distance",a11yTextKey:"i18n_distance_a11y",value:this.recipientDistance.value}:null}get subtitle(){var e
|
|
if(this.isRecipientOrganization&&null!==(e=this.props.profile.industryName)&&void 0!==e&&e.text){var t
|
|
return null===(t=this.props.profile.industryName)||void 0===t?void 0:t.text}return this.props.profile.headline}get recipientProfileUrl(){return this.isRecipientOrganization?this.props.profile.pageUrl:this.props.profile.profile.url}get participantName(){return this.props.participantName}get recipientDistance(){if(this.props.isInvitationAccepted())return new i.TrackedAsyncData("DISTANCE_1")
|
|
const e=this.props.msgDataManager.connectionStatusMap.get(this.props.profileId),t=e?e.memberDistance:"DISTANCE_UNKNOWN"
|
|
return new i.TrackedAsyncData(t)}get pronounsObject(){return new i.TrackedAsyncData(this.props.profile.pronoun)}get creatorProfileViewEnabled(){const{conversation:e}=this.props
|
|
return(0,o.isConversationFeatureSupported)(e,"VIEW_CREATOR_PROFILE")&&null!==this.recipientProfileUrl}get entityWithPresenceViewData(){return new n.default({participant:this.props.profile,altText:this.participantName})}get pageLogo(){return this.props.profile.logo}},(0,t.default)(a.prototype,"recipientDistance",[l.cached],Object.getOwnPropertyDescriptor(a.prototype,"recipientDistance"),a.prototype),(0,t.default)(a.prototype,"pronounsObject",[l.cached],Object.getOwnPropertyDescriptor(a.prototype,"pronounsObject"),a.prototype),a)}))
|
|
define("msg-conversation-ui/viewdata/sdk-thread-top-card-viewdata",["exports","global-utils/utils/profile-id-parser","global-helpers/helpers/name","msg-conversation-ui/viewdata/sdk-conversation-rename-viewdata","msg-data/viewdata","msg-conversation-ui/viewdata/sdk-connection-invitation-viewdata","msg-conversation-ui/viewdata/compose-recipient-detail-one-to-one-viewdata","msg-data/utils/sdk-view-data-helpers","msg-shared/helpers/is-message-request-conversation","urn-utils"],(function(e,t,n,i,r,o,l,a,s,c){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
class p extends r.default{get isInMailOrInMailReply(){return(0,a.isInMailConversation)(this.props.conversation)}get latestMessageIsInMail(){var e,t
|
|
const n=null===(e=this.props.conversation)||void 0===e||null===(t=e.messages)||void 0===t?void 0:t.last()
|
|
return(0,a.messageHasInMailHostUrnData)(n)}get isPremiumInMailOrReply(){var e,t
|
|
const n=null===(e=this.props.conversation)||void 0===e||null===(t=e.messages)||void 0===t?void 0:t.first()
|
|
return(0,a.messageHasInMailProductType)(n,"PREMIUM_INMAIL")}get participantIsBlocked(){}get participantIsConnected(){const e=this.recipientProfileUrn?(0,c.extractEntityInfoFromUrn)(this.recipientProfileUrn).id:null,t=this.props.msgDataManager.connectionStatusMap.get(this.recipientProfileUrn)
|
|
return!t||(t.isConnected||this.props.invitationPlatform.isInvitationAccepted(e))}get isGroupChat(){var e
|
|
return null===(e=this.props.conversation)||void 0===e?void 0:e.groupChat}get recipientProfileUrn(){var e,t
|
|
const[n]=(null===(e=this.props.conversation)||void 0===e||null===(t=e.participants)||void 0===t?void 0:t.filter((e=>e!==this.props.authenticatedUser.miniProfile.dashEntityUrn)))??[]
|
|
return n}get latestEvent(){const{conversation:e,msgDataManager:t}=this.props
|
|
return e&&(0,a.getLatestMessage)(e,t)}get isPendingOrDeclinedMessageRequest(){const{conversation:e}=this.props
|
|
return(0,s.isMessageRequestConversation)(e)}get conversationRenameViewData(){const{conversation:e}=this.props
|
|
return new i.default({conversation:e})}get connectionInvitationViewData(){const{conversation:e,invitationPlatform:t,authenticatedUser:n,msgDataManager:i}=this.props
|
|
return new o.default({conversation:e,invitationPlatform:t,authenticatedUser:n,msgDataManager:i})}get recipientDetailOneToOneViewData(){const{profile:e,formatter:i,router:r,identityStore:o,store:a,lix:s,msgDataManager:c}=this.props,p=(0,t.getProfileMemberId)(e)
|
|
return new l.default({profile:e,profileId:p,participantName:i.formatName((0,n.getName)(e),"full"),router:r,identityStore:o,store:a,lix:s,msgDataManager:c,isInvitationAccepted:()=>this.props.invitationPlatform.isInvitationAccepted(p)})}}e.default=p}))
|
|
define("msg-conversation-ui/viewdata/sdk-typing-indicators-viewdata",["exports","msg-data/viewdata"],(function(e,t){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
class n extends t.default{get typingParticipants(){return this.props.typingParticipants.map((e=>({isTyping:!0,image:e.profile.picture,fullName:this.props.formatter.formatName(e,"full")})))}}e.default=n}))
|
|
define("msg-mentions/components/mention-all-picker-option-presenter",["exports","@ember/template-factory","@ember/helper","@ember/component/template-only","@ember/component","@ember/modifier","ember-cli-pemberly-i18n/helpers/t"],(function(e,t,n,i,r,o,l){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const a=(0,r.setComponentTemplate)((0,t.createTemplateFactory)({id:"wZu8n8Cy",block:'[[[1,"\\n"],[1," "],[11,"li"],[24,"tabindex","0"],[24,0,"msg-form__mention-option"],[24,"data-mentions-picker-option",""],[4,[32,0],["click",[30,1]],null],[4,[32,0],["keydown",[30,2]],null],[12],[1,"\\n"],[1," "],[10,1],[14,0,"EntityPhoto-circle-2 ghost-group"],[12],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"display-flex flex-column pl2 truncate"],[12],[1,"\\n "],[10,1],[14,0,"t-14 t-black t-bold truncate"],[12],[1,"\\n "],[1,[28,[32,1],["i18n_mention_all","msg-mentions/components/mention-all-picker-option-presenter"],null]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"t-12 t-black--light t-normal truncate"],[12],[1,"\\n "],[1,[28,[32,1],["i18n_notify_entire_group","msg-mentions/components/mention-all-picker-option-presenter"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],["@onClick","@onKeyDown"],false,[]]',moduleName:"msg-mentions/components/mention-all-picker-option-presenter.gjs",scope:()=>[o.on,l.default],isStrictMode:!0}),(0,i.default)("mention-all-picker-option-presenter","MentionAllPickerOptionPresenter"))
|
|
e.default=a}))
|
|
define("msg-mentions/components/mention-to-invite-toast-presenter",["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","@ember/debug","@ember/object/internals","msg-shared/utils/custom-tracking","msg-shared/utils/constants","global-helpers/helpers/name","@ember/object","@glimmer/tracking","@glimmer/component","@ember/service","artdeco-card/components/artdeco-card","ember-cli-pemberly-i18n/helpers/t","@ember/render-modifiers/modifiers/did-insert","hue-web-icons/components/icon","global-helpers/helpers/gte","@ember/helper","ember-cli-pemberly-tracking/modifiers/track-interaction","@ember/modifier","ember-set-helper/helpers/set","artdeco-modal/components/artdeco-confirmation-dialog"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E,w,P,S){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var O,k,A,I,M,D,N,R,x,U,L,j
|
|
const{ACTION_TYPES:{ADD:F},CONTROL_NAMES:{ACTIONS:z}}=d.default
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"OcZdVt2l",block:'[[[1,"\\n"],[1,"\\n"],[41,[30,1],[[[1," "],[8,[32,0],[[16,1,[30,0,["mentionToInviteToastId"]]],[4,[32,2],[[30,0,["onInsert"]]],null]],[["@isDismissable","@onDismiss","@classNames","@dismissText","@tabindex"],[true,[30,0,["closeToast"]],"msg-form__mention-to-invite-toast-card",[28,[32,1],["a11y_dismiss_mention-to-invite-toast","msg-mentions/components/mention-to-invite-toast-presenter"],null],"0"]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"msg-form__mention-to-invite-toast-icon mr2"],[12],[1,"\\n "],[8,[32,3],null,[["@type","@name","@size"],["system","signal-notice","medium"]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"mr4 t-14"],[12],[1,"\\n "],[10,1],[14,"tabindex","0"],[14,0,"msg-form__mention-to-invite-toast-card__text mr1"],[12],[1,"\\n"],[41,[28,[32,4],[2,[30,1,["length"]]],null],[[[1," "],[1,[28,[32,1],["i18n_up_to_2_participants_not_in_group_conversation","msg-mentions/components/mention-to-invite-toast-presenter"],[["names","count"],[[30,0,["membersToInviteNames"]],[30,1,["length"]]]]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,1],["i18n_3_or_more_participants_not_in_group_conversation","msg-mentions/components/mention-to-invite-toast-presenter"],[["name1","name2","othersCount"],[[28,[32,5],[[30,0,["membersToInviteNames"]],"0"],null],[28,[32,5],[[30,0,["membersToInviteNames"]],"1"],null],[30,0,["othersCount"]]]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[11,3],[24,"tabindex","0"],[24,6,"#"],[16,"aria-label",[28,[32,1],["a11y_add_mentioned_members","msg-mentions/components/mention-to-invite-toast-presenter"],null]],[24,0,"msg-form__mention-to-invite-toast-link"],[4,[32,6],[[30,0,["addThemInteractionName"]]],null],[4,[32,7],["click",[28,[32,8],[[30,0],"showConfirmModal",true],null]],null],[12],[1,"\\n "],[1,[28,[32,1],["i18n_add_them","msg-mentions/components/mention-to-invite-toast-presenter"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,9],null,[["@isOpen","@title","@content","@primaryActionText","@primaryActionTextA11y","@secondaryActionText","@secondaryActionTextA11y","@onPrimary","@onSecondary","@onEscape","@primaryControlName","@size"],[[30,0,["showConfirmModal"]],[52,[28,[32,4],[2,[30,1,["length"]]],null],[28,[32,1],["i18n_add_up_to_2_members_to_this_conversation_prompt","msg-mentions/components/mention-to-invite-toast-presenter"],[["names"],[[30,0,["membersToInviteNames"]]]]],[28,[32,1],["i18n_add_3_or_more_members_to_this_conversation_prompt","msg-mentions/components/mention-to-invite-toast-presenter"],[["name1","name2","othersCount"],[[28,[32,5],[[30,0,["membersToInviteNames"]],"0"],null],[28,[32,5],[[30,0,["membersToInviteNames"]],"1"],null],[30,0,["othersCount"]]]]]],[28,[32,1],["i18n_new_members_will_see_history","msg-mentions/components/mention-to-invite-toast-presenter"],null],[28,[32,1],["i18n_yes","msg-mentions/components/mention-to-invite-toast-presenter"],null],[28,[32,1],["a11y_confirm_add_mentioned_members","msg-mentions/components/mention-to-invite-toast-presenter"],null],[28,[32,1],["i18n_cancel","msg-mentions/components/mention-to-invite-toast-presenter"],null],[28,[32,1],["a11y_dismiss_add_mentioned_members","msg-mentions/components/mention-to-invite-toast-presenter"],null],[30,0,["addParticipants"]],[30,0,["closeModal"]],[30,0,["closeModal"]],[30,0,["addConfirmationInteractionName"]],"medium"]],null],[1,"\\n "]],["@membersToInvite"],false,["if"]]',moduleName:"msg-mentions/components/mention-to-invite-toast-presenter.gjs",scope:()=>[b.default,y.default,_.default,v.default,T.default,C.get,E.default,w.on,P.default,S.default],isStrictMode:!0}),(O=(0,g.inject)("msg-data@data-manager"),k=(0,g.inject)("tracking"),A=(0,g.inject)("persistent-toast-manager@persistent-toast-manager"),I=(0,g.inject)("i18n"),M=(0,g.inject)("global-services@a11y-notification"),D=class extends h.default{constructor(){super(...arguments);(0,n.default)(this,"mentionToInviteToastId",`mention-to-invite-toast-${(0,c.guidFor)(this)}`);(0,t.default)(this,"msgDataManager",N,this);(0,t.default)(this,"tracking",R,this);(0,t.default)(this,"persistentToastManager",x,this);(0,t.default)(this,"i18n",U,this);(0,t.default)(this,"a11yNotification",L,this);(0,t.default)(this,"showConfirmModal",j,this)}get membersToInviteNames(){var e
|
|
return null===(e=this.args.membersToInvite)||void 0===e?void 0:e.map(u.getName)}get othersCount(){var e
|
|
return null!==(e=this.args.membersToInvite)&&void 0!==e&&e.length?this.args.membersToInvite.length-2:0}get actionTrackingPrefix(){return this.args.actionTrackingPrefix??""}get addThemInteractionName(){return this.actionTrackingPrefix.concat("at_mention_add_them")}get addConfirmationInteractionName(){return this.actionTrackingPrefix.concat("at_mention_confirmation_add")}onInsert(){if(a.default){const e=document.getElementById(this.mentionToInviteToastId).querySelector(".msg-form__mention-to-invite-toast-card__text")
|
|
if(e){e.focus()
|
|
const t=this.args.membersToInvite.length
|
|
t<=2?this.a11yNotify("i18n_up_to_2_participants_not_in_group_conversation",{names:this.membersToInviteNames,count:t}):this.a11yNotify("i18n_3_or_more_participants_not_in_group_conversation",{name1:this.membersToInviteNames[0],name2:this.membersToInviteNames[1],othersCount:this.othersCount})}}}addToast(){const e=this.i18n.lookupTranslation(this.constructor,"i18n_num_participants_added")([{count:this.addedParticipantsCount}])
|
|
this.persistentToastManager.success({message:e})}a11yNotify(e,t){const n=this.i18n.lookupTranslation(this.constructor,e)
|
|
this.a11yNotification.setTextInLiveRegion(n([t]))}addParticipants(){var e,t
|
|
const{conversationUrn:n,conversationBackendUrn:i,participantTrackingUrns:r,participantPresenceStatuses:o}=this.args.viewData
|
|
this.addedParticipantsCount=this.args.membersToInvite.length
|
|
this.msgDataManager.addParticipants(this.args.membersToInvite.map((e=>e.entityUrn)),n).then((()=>{if(!this.isDestroying){p.default.fireDetailActionEvent({actionType:F,controlName:`${this.actionTrackingPrefix}${z.ADD_PARTICIPANTS}`,conversationObjectUrn:i,participantUrns:r,participantPresenceStatuses:o,moduleKey:"mention_to_invite",trackingService:this.tracking})
|
|
this.addToast()}}))
|
|
this.showConfirmModal=!1
|
|
null===(e=(t=this.args).onToastDismiss)||void 0===e||e.call(t)}closeModal(){var e,t
|
|
this.tracking.fireInteractionEvent(`${this.actionTrackingPrefix}at_mention_confirmation_cancel`)
|
|
this.showConfirmModal=!1
|
|
null===(e=(t=this.args).onToastDismiss)||void 0===e||e.call(t)}closeToast(){var e,t
|
|
this.tracking.fireInteractionEvent(`${this.actionTrackingPrefix}at_mention_x_out`)
|
|
null===(e=(t=this.args).onToastDismiss)||void 0===e||e.call(t)}},N=(0,i.default)(D.prototype,"msgDataManager",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,i.default)(D.prototype,"tracking",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,i.default)(D.prototype,"persistentToastManager",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,i.default)(D.prototype,"i18n",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,i.default)(D.prototype,"a11yNotification",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,i.default)(D.prototype,"showConfirmModal",[f.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(D.prototype,"onInsert",[m.action],Object.getOwnPropertyDescriptor(D.prototype,"onInsert"),D.prototype),(0,i.default)(D.prototype,"addParticipants",[m.action],Object.getOwnPropertyDescriptor(D.prototype,"addParticipants"),D.prototype),(0,i.default)(D.prototype,"closeModal",[m.action],Object.getOwnPropertyDescriptor(D.prototype,"closeModal"),D.prototype),(0,i.default)(D.prototype,"closeToast",[m.action],Object.getOwnPropertyDescriptor(D.prototype,"closeToast"),D.prototype),D))}))
|
|
define("msg-mentions/components/mentions-picker-option-presenter",["exports","@ember/template-factory","@ember/helper","@ember/component/template-only","@ember/component","@ember/modifier","presence/components/entity-with-presence-presenter"],(function(e,t,n,i,r,o,l){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const a=(0,r.setComponentTemplate)((0,t.createTemplateFactory)({id:"BOndtOCG",block:'[[[1,"\\n"],[1," "],[11,"li"],[24,"tabindex","0"],[24,"data-mentions-picker-option",""],[24,0,"msg-form__mention-option"],[4,[32,0],["click",[30,1]],null],[4,[32,0],["keydown",[30,2]],null],[12],[1,"\\n"],[1," "],[8,[32,1],[[24,0,"msg-form__mention-entity"]],[["@viewData","@size"],[[30,3,["entityWithPresenceViewData"]],2]],null],[1,"\\n "],[10,0],[14,0,"display-flex flex-column pl2 truncate"],[12],[1,"\\n "],[10,1],[14,0,"t-14 t-black t-bold truncate"],[12],[1,"\\n "],[1,[30,3,["title"]]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"t-12 t-black--light t-normal truncate"],[12],[1,"\\n "],[1,[30,3,["subtitle"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],["@selectMention","@selectMentionWithKeyDown","@viewData"],false,[]]',moduleName:"msg-mentions/components/mentions-picker-option-presenter.gjs",scope:()=>[o.on,l.default],isStrictMode:!0}),(0,i.default)("mentions-picker-option-presenter","MentionsPickerOptionPresenter"))
|
|
e.default=a}))
|
|
define("msg-mentions/components/mentions-picker-presenter",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","global-modifiers/modifiers/on-click-outside","@ember/modifier","msg-mentions/components/mention-all-picker-option-presenter","@ember/helper","msg-mentions/components/mentions-picker-option-presenter","ember-cli-pemberly-i18n/helpers/t"],(function(e,t,n,i,r,o,l,a,s,c){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const p=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"VRK4QmAX",block:'[[[1,"\\n"],[1," "],[11,"ul"],[16,0,[29,["msg-form__mentions-picker\\n ",[52,[51,[30,1]],"msg-form__mentions-picker--auto-selected"],"\\n scrollable"]]],[24,"data-mentions-picker",""],[24,"role","listbox"],[16,5,[30,2]],[4,[32,0],[[30,3]],null],[4,[32,1],["keydown",[30,4]],null],[12],[1,"\\n"],[41,[30,5],[[[1," "],[8,[32,2],null,[["@onClick","@onKeyDown"],[[28,[32,3],[[30,6],[30,7]],null],[28,[32,3],[[30,8],[30,7]],null]]],null],[1,"\\n"]],[]],null],[42,[28,[31,3],[[28,[31,3],[[30,9,["conversationParticipantMentionOptions"]]],null]],null],null,[[[1," "],[8,[32,4],null,[["@viewData","@selectMention","@selectMentionWithKeyDown"],[[30,10],[28,[32,3],[[30,6],[30,10,["editorAttribute"]]],null],[28,[32,3],[[30,8],[30,10,["editorAttribute"]]],null]]],null],[1,"\\n"]],[10]],null],[41,[30,9,["connectionMentionOptions","length"]],[[[1," "],[10,"li"],[14,0,"msg-form__mentions-picker-connections-title t-12 t-black--light t-bold ph2 pt2 pb1"],[12],[1,"\\n "],[1,[28,[32,5],["i18n_connections_header","msg-mentions/components/mentions-picker-presenter"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[42,[28,[31,3],[[28,[31,3],[[30,9,["connectionMentionOptions"]]],null]],null],null,[[[1," "],[8,[32,4],null,[["@viewData","@selectMention","@selectMentionWithKeyDown"],[[30,11],[28,[32,3],[[30,6],[30,11,["editorAttribute"]]],null],[28,[32,3],[[30,8],[30,11,["editorAttribute"]]],null]]],null],[1,"\\n"]],[11]],null],[1," "],[13],[1,"\\n"]],["@isTabbingThroughMentions","@mentionsTopPosition","@closeMentions","@onKeyDown","@showMentionAllOption","@selectMention","@mentionAll","@selectMentionWithKeyDown","@viewData","optionViewData","optionViewData"],false,["unless","if","each","-track-array"]]',moduleName:"msg-mentions/components/mentions-picker-presenter.gjs",scope:()=>[r.default,o.on,l.default,a.fn,s.default,c.default],isStrictMode:!0}),(0,n.default)("mentions-picker-presenter","MentionsPickerPresenter"))
|
|
e.default=p}))
|
|
define("msg-mentions/template-registry",[],(function(){}))
|
|
define("msg-mentions/viewdata/connection-mentions-picker-option-viewdata",["exports","global-helpers/helpers/name","presence/viewdata/host-entity-with-presence-viewdata","msg-data/viewdata"],(function(e,t,n,i){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
class r extends i.default{get title(){return this.props.formatter.formatName((0,t.getName)(this.props.profile),"full")}get subtitle(){return this.props.profile.occupation}get entityWithPresenceViewData(){const{profile:e}=this.props
|
|
return new n.default({profile:e,altText:this.title})}get editorAttribute(){return this.props.editorAttribute}}e.default=r}))
|
|
define("msg-mentions/viewdata/sdk-mention-to-invite-toast-viewdata",["exports","msg-data/utils/sdk-view-data-helpers","msg-data/viewdata","msg-shared/utils/custom-tracking"],(function(e,t,n,i){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
class r extends n.default{get conversationUrn(){return this.props.conversation.entityUrn}get conversationBackendUrn(){return this.props.conversation.backendUrn}get participantTrackingUrns(){const{conversation:e}=this.props,t=(null==e?void 0:e.decoratedParticipants)??[]
|
|
return(0,i.getParticipantTrackingUrns)(t,!0)??[]}get participantPresenceStatuses(){const{conversation:e,presenceAPI:n}=this.props
|
|
return(0,t.getParticipantPresenceStatuses)(e.participants,n)}}e.default=r}))
|
|
define("msg-mentions/viewdata/sdk-mentions-picker-option-viewdata",["exports","msg-data/viewdata","global-helpers/helpers/name","presence/viewdata/sdk-entity-with-presence-viewdata"],(function(e,t,n,i){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
class r extends t.default{get title(){const{formatter:e,profile:t}=this.props
|
|
return e.formatName((0,n.getName)(t),"full")}get subtitle(){const{profile:e}=this.props
|
|
return e?e.headline:void 0}get entityWithPresenceViewData(){const{profile:e}=this.props
|
|
return new i.default({participant:e,altText:this.title})}get editorAttribute(){return this.props.editorAttribute}}e.default=r}))
|
|
define("msg-mentions/viewdata/sdk-mentions-picker-viewdata",["exports","msg-data/viewdata","msg-mentions/viewdata/sdk-mentions-picker-option-viewdata","msg-mentions/viewdata/connection-mentions-picker-option-viewdata"],(function(e,t,n,i){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
class r extends t.default{get conversationParticipantMentionOptions(){const{conversationParticipantMentions:e,formatter:t}=this.props
|
|
return e.map((e=>new n.default({profile:e.mentionedMemberProfile,editorAttribute:e.editorAttribute,formatter:t})))}get connectionMentionOptions(){return this.props.connectionMentions.map((e=>new i.default({profile:e.mentionedMemberProfile,editorAttribute:e.editorAttribute,formatter:this.props.formatter})))}}e.default=r}))
|
|
define("profile-creator-shared/components/-private/content-view-item-builder",["exports","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@ember/template-factory","@ember/helper","@ember/component","global-utils/utils/tracking-id","profile-creator-shared/utils/get-component-path","profile-creator-shared/utils/constants","@glimmer/component","@ember/object","@ember/debug","ember-cli-pemberly-tracking/modifiers/track-impression"],(function(e,t,n,i,r,o,l,a,s,c,p,d){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var u
|
|
e.default=(0,r.setComponentTemplate)((0,n.createTemplateFactory)({id:"V3BtL2nJ",block:'[[[1,"\\n"],[41,[30,0,["componentName"]],[[[44,[[50,[30,0,["componentPath"]],0,null,null]],[[[1," "],[8,[30,1],[[4,[32,0],null,[["registerOnImpression","routeName","currentRoute"],[[30,0,["onImpression"]],[28,[32,1],[[53,"outletState"],"render.name"],null],[28,[32,1],[[53,"outletState"],"render"],null]]]]],[["@model","@memberName","@navigationUrl","@preDashUpdateUrn","@trackingId","@moduleKey","@backendUpdateUrn","@pageKey","@controlNameOverrideMap"],[[30,0,["contentViewData"]],[30,2],[30,3,["navigationUrl"]],[30,3,["preDashUpdateUrn"]],[30,3,["trackingId"]],[30,4],[30,3,["backendUpdateUrn"]],[30,5],[30,6]]],null],[1,"\\n"]],[1]]]],[]],null],[1," "]],["ContentViewItem","@memberName","@contentViewModel","@moduleKey","@pageKey","@controlNameOverrideMap"],false,["if","let","component","-get-dynamic-var"]]',moduleName:"profile-creator-shared/components/-private/content-view-item-builder.gts",scope:()=>[d.default,i.get],isStrictMode:!0}),(u=class extends s.default{get modelName(){const e=Object.keys(a.MODEL_TO_COMPONENT_MAP).find((e=>{var t
|
|
return!(null===(t=this.args.contentViewModel.content)||void 0===t||!t[e])}))
|
|
return e}get componentName(){const e=a.MODEL_TO_COMPONENT_MAP[this.modelName]
|
|
return e}get componentPath(){return(0,l.getComponentPath)(this.componentName)}get contentViewData(){var e
|
|
return null===(e=this.args.contentViewModel.content)||void 0===e?void 0:e[this.modelName]}onImpression(){const{contentViewModel:e,index:t}=this.args
|
|
return n=>{const{boundingClientRect:i,duration:r,visibleTime:l}=n
|
|
return{name:"FeedImpressionEvent",body:{entities:[{duration:r??-1,visibleTime:l??-1,listPosition:{index:t??-1},trackingId:(0,o.getByteStringAsBase64)(e.trackingId||""),urn:e.backendUpdateUrn||"",visibleHeight:null==i?void 0:i.height}]}}}}},(0,t.default)(u.prototype,"onImpression",[c.action],Object.getOwnPropertyDescriptor(u.prototype,"onImpression"),u.prototype),u))}))
|
|
define("profile-creator-shared/components/aspect-ratio",["exports","@ember/template-factory","@ember/component","@glimmer/component","@ember/debug","@ember/helper"],(function(e,t,n,i,r,o){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const l={"1:1":"profile-creator-shared-aspect-ratio__1x1","4:5":"profile-creator-shared-aspect-ratio__4x5","16:9":"profile-creator-shared-aspect-ratio__16x9"}
|
|
class a extends i.default{get aspectRatioClass(){const{aspectRatio:e}=this.args
|
|
return l[e]||""}}e.default=a;(0,n.setComponentTemplate)((0,t.createTemplateFactory)({id:"ASSu0U17",block:'[[[1,"\\n "],[11,0],[16,0,[29,["profile-creator-shared-aspect-ratio__wrapper\\n ",[30,0,["aspectRatioClass"]]]]],[17,1],[12],[1,"\\n "],[18,2,[[28,[32,0],null,[["baseClass"],["profile-creator-shared-aspect-ratio__image"]]]]],[1,"\\n "],[13],[1,"\\n "]],["&attrs","&default"],false,["yield"]]',moduleName:"profile-creator-shared/components/aspect-ratio.gts",scope:()=>[o.hash],isStrictMode:!0}),a)}))
|
|
define("profile-creator-shared/components/content-view-container",["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","profile-creator-shared/utils/constants","@glimmer/tracking","@glimmer/component","@ember/service","@ember/object","@ember/debug","@ember/array","profile-creator-shared/components/content-view-container/pills","profile-creator-shared/components/content-view-container/data-loader","app-aware-link/components/app-aware-link","ember-cli-pemberly-tracking/modifiers/track-interaction","hue-web-icons/components/icon"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var T,C,E,w,P,S,O,k,A,I,M,D
|
|
const N="components/profile-creator-shared@content-view-container"
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"XcKqYhcD",block:'[[[1,"\\n"],[1," "],[10,0],[14,0,"mb3"],[12],[1,"\\n "],[18,4,[[50,[32,0],0,null,[["pillsToRender","onSelectPill","selectedItem"],[[30,0,["pillsToRender"]],[30,0,["onSelectPill"]],[30,0,["selectedPill"]]]]]]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"pv0 ph5"],[12],[1,"\\n "],[18,5,[[50,[32,1],0,null,[["selectedPill","profileUrn","isTruncated","defaultContent"],[[30,0,["selectedPill"]],[30,1],[30,2],[30,3]]]],[30,0,["selectedPill"]]]],[1,"\\n "],[13],[1,"\\n"],[41,[30,2],[[[1," "],[10,"footer"],[14,0,"artdeco-card__actions profile-creator-shared-content-view__footer-actions"],[12],[1,"\\n "],[8,[32,2],[[24,0,"artdeco-button artdeco-button--muted artdeco-button--icon-right artdeco-button--3 artdeco-button--fluid artdeco-button--tertiary"],[4,[32,3],[[30,0,["showAllButtonControlName"]]],null]],[["@href"],[[30,0,["currentRecentActivityURL"]]]],[["default"],[[[[1,"\\n "],[8,[32,4],[[24,0,"artdeco-button__icon"]],[["@name","@size","@type"],["arrow-right","small","system"]],null],[1,"\\n "],[10,1],[14,0,"artdeco-button__text"],[12],[1,"\\n "],[1,[30,0,["selectedPillSeeAllText"]]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],["@profileUrn","@isTruncated","@defaultContent","&nav","&content"],false,["yield","component","if"]]',moduleName:"profile-creator-shared/components/content-view-container.gts",scope:()=>[g.default,b.default,y.default,_.default,v.default],isStrictMode:!0}),(T=(0,u.inject)("i18n"),C=(0,u.inject)("global-services@window"),E=(0,u.inject)("profile-services@scroll-manager"),w=(0,u.inject)("tracking"),P=(0,u.inject)("router"),S=class extends d.default{get currentRecentActivityURL(){const e=this.selectedPill??"ALL_POSTS",t=this.router.urlFor("profile.common.recent-activity.content-view-deeplink",{contentViewType:c.PILL_TO_DEEPLINK_MAP[e]})
|
|
return`${(0,s.getDomainUrl)()}${t}`}get isControlledByRoute(){return c.ROUTE_BASED_CONTENT_VIEW_ROUTES.includes(this.router.currentRouteName)}get defaultType(){if(!this.args.defaultContent)return null
|
|
const e=c.DEFAULT_CONTENT_UNION_KEYS.find((e=>{var t
|
|
return null===(t=this.args.defaultContent)||void 0===t?void 0:t[e]}))
|
|
return e?c.DEFAULT_CONTENT_TO_PILL[e]:this.args.contentTypes[0]}get defaultPill(){var e
|
|
if(this.isControlledByRoute){const e=this.router.currentRoute,t=null==e?void 0:e.attributes,n=null==t?void 0:t.contentViewType
|
|
return(n&&c.DEEPLINK_TO_PILL_MAP[n])??c.DEEPLINK_TO_PILL_MAP.all}return this.scrollManager.getScrollRestoredRecentCardPill((null===(e=this.windowService.getLocation())||void 0===e?void 0:e.pathname)??"")||this.defaultType}get pillsToRender(){const{contentTypes:e}=this.args
|
|
return e.map(((e,t)=>{const{controlName:n,i18nKey:i}=c.pillRenderInfoMap[e]
|
|
return{controlName:n,name:this.i18n.lookupTranslation(N,i)(),id:`content-collection-pill-${t}`,value:e}}))}get showAllButtonControlName(){var e
|
|
return this.selectedPill&&(null===(e=c.pillRenderInfoMap[this.selectedPill])||void 0===e?void 0:e.showAllControlName)||"content_view_empty_see_all"}get selectedPillSeeAllText(){var e
|
|
const t=this.selectedPill&&(null===(e=c.pillRenderInfoMap[this.selectedPill])||void 0===e?void 0:e.showAllI18nKey)||"i18n_show_all_activity"
|
|
return this.i18n.lookupTranslation(N,t)()}constructor(e,n){var i
|
|
super(e,n);(0,t.default)(this,"i18n",O,this);(0,t.default)(this,"windowService",k,this);(0,t.default)(this,"scrollManager",A,this);(0,t.default)(this,"tracking",I,this);(0,t.default)(this,"router",M,this);(0,t.default)(this,"selectedPill",D,this)
|
|
this.defaultPill&&this.tracking.firePageViewEvent(c.pillRenderInfoMap[this.defaultPill].pageKey)
|
|
this.scrollManager.restoreSelectedRecentCardPill((null===(i=this.windowService.getLocation())||void 0===i?void 0:i.pathname)??"")}onSelectPill(e){this.selectedPill=e
|
|
this.tracking.firePageViewEvent(c.pillRenderInfoMap[this.selectedPill].pageKey)
|
|
this.isControlledByRoute?this.navigateToContentView(e):this.scrollManager.recordSelectedRecentCardPill(e)}navigateToContentView(e){const t=c.PILL_TO_DEEPLINK_MAP[e]
|
|
"all"===t?this.router.replaceWith(c.RECENT_ACTIVITY_ROUTES.BASE_ROUTE,this.args.vanityName):this.router.replaceWith(c.RECENT_ACTIVITY_ROUTES.CONTENT_VIEW_DEEPLINK,this.args.vanityName,t)}},O=(0,i.default)(S.prototype,"i18n",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,i.default)(S.prototype,"windowService",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,i.default)(S.prototype,"scrollManager",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,i.default)(S.prototype,"tracking",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,i.default)(S.prototype,"router",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,i.default)(S.prototype,"selectedPill",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.defaultPill}}),(0,i.default)(S.prototype,"onSelectPill",[m.action],Object.getOwnPropertyDescriptor(S.prototype,"onSelectPill"),S.prototype),S))}))
|
|
define("profile-creator-shared/components/content-view-container/data-loader",["exports","@ember/template-factory","@ember/component","@babel/runtime/helpers/esm/classPrivateMethodGet","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","profile-shared/utils/degradation-tracking","rsvp","tracked-built-ins","@glimmer/tracking","feed-requests/utils/collection-queries","tracked-toolbox","@ember/debug","@ember/object","profile-creator-shared/utils/constants","graphql-queries/queries/profile/get-creator-profile-content-by-type.graphql","@ember/service","ember-async-data/tracked-async-data","@glimmer/component","@ember/destroyable","profile-creator-shared/modifiers/data-loader-resetter","@ember/helper","scaffold-finite-scroll/components/finite-scroll","global-helpers/helpers/or"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E,w,P){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var S,O,k,A,I,M,D,N,R,x,U,L,j,F,z,V,B,G,q
|
|
let W=(S=class{get hasNoMoreToLoad(){return this.receivedLastPage}constructor(e,t,n){(0,o.default)(this,"contentViewElements",new p.TrackedArray);(0,o.default)(this,"paging",{start:0,count:20,total:0});(0,o.default)(this,"paginationToken",void 0);(0,r.default)(this,"receivedLastPage",O,this);(0,o.default)(this,"initialCall",void 0)
|
|
if(t){var i
|
|
this.paging.count=(null===(i=g.pillRenderInfoMap[e])||void 0===i?void 0:i.numToShowWhenTruncated)??20
|
|
n&&(this.contentViewElements=new p.TrackedArray(n))}}updatePaginationForNextPage(e){var t,n,i,r,o
|
|
this.receivedLastPage=0===(null==e||null===(t=e.elements)||void 0===t?void 0:t.length)
|
|
this.paginationToken=null==e||null===(n=e.metadata)||void 0===n?void 0:n.paginationToken
|
|
this.paging.count=(null==e||null===(i=e.paging)||void 0===i?void 0:i.count)||0
|
|
this.paging.start=((null==e||null===(r=e.paging)||void 0===r?void 0:r.start)||0)+((null===(o=this.paging)||void 0===o?void 0:o.count)||0)}addToContentViewElements(e){e&&this.contentViewElements.push(...e)}},O=(0,l.default)(S.prototype,"receivedLastPage",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),S)
|
|
e.default=(0,n.setComponentTemplate)((0,t.createTemplateFactory)({id:"FZDD5fB3",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[11,0],[4,[32,0],null,[["onReset","resetWhenChanged"],[[30,0,["onReset"]],[28,[32,1],[[30,2]],null]]]],[12],[1,"\\n "],[18,3,[[30,0,["selectedPillInfo"]],[30,0,["initialContentViewCall"]],[50,[32,2],0,null,[["isDisabled","items","onTrigger"],[[30,0,["hasNoMoreToLoad"]],[30,0,["selectedContentViewElements"]],[30,0,["onLoadMore"]]]]],[28,[32,3],[[30,0,["isFullUpdateType"]],[30,0,["isMiniUpdateType"]]],null],[30,0,["containerClass"]],[30,0,["onReload"]],[30,0,["selectedPilli18nName"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],["@selectedPill","@profileUrn","&default"],false,["if","yield","component"]]',moduleName:"profile-creator-shared/components/content-view-container/data-loader.gts",scope:()=>[C.default,E.array,w.default,P.default],isStrictMode:!0}),(k=(0,y.inject)("@linkedin/ember-restli-graphql@graphql"),A=(0,y.inject)("global-services@store-shim"),I=(0,y.inject)("i18n"),M=(0,y.inject)("social-counts-service@social-counts"),D=(j=new WeakSet,F=new WeakSet,z=new WeakSet,V=new WeakSet,B=new WeakSet,G=new WeakSet,q=new WeakSet,class extends v.default{constructor(){super(...arguments)
|
|
q.add(this)
|
|
G.add(this)
|
|
B.add(this)
|
|
V.add(this)
|
|
z.add(this)
|
|
F.add(this)
|
|
j.add(this);(0,r.default)(this,"graphql",N,this);(0,r.default)(this,"storeShim",R,this);(0,r.default)(this,"i18n",x,this);(0,r.default)(this,"socialCountsService",U,this);(0,r.default)(this,"contentLoaderMap",L,this)}get defaultContentElements(){var e
|
|
const t=this.activeContentType&&(null===(e=g.pillRenderInfoMap[this.activeContentType])||void 0===e?void 0:e.defaultContentKey)
|
|
if(!this.args.defaultContent||!t)return
|
|
const n=(0,h.get)(this.args.defaultContent,t)
|
|
return null==n?void 0:n.elements}get paginationToken(){var e
|
|
return null===(e=this.activeContentLoader)||void 0===e?void 0:e.paginationToken}get paging(){var e
|
|
return null===(e=this.activeContentLoader)||void 0===e?void 0:e.paging}get activeContentLoader(){return this.activeContentType&&this.contentLoaderMap.get(this.activeContentType)}get selectedContentViewElements(){var e
|
|
return null===(e=this.activeContentLoader)||void 0===e?void 0:e.contentViewElements}get activeContentType(){return this.args.selectedPill}get isFullUpdateType(){return!!this.activeContentType&&g.UPDATE_CONTENT_TYPES.includes(this.activeContentType)}get isMiniUpdateType(){return!!this.activeContentType&&g.MINI_UPDATE_CONTENT_TYPES.includes(this.activeContentType)}get containerClass(){return this.isFullUpdateType?"justify-center":"VIDEOS"===this.args.selectedPill||"IMAGES_AND_MULTI_PHOTOS"===this.args.selectedPill?"justify-flex-start":"justify-space-between"}get initialContentViewCall(){return this.activeContentType?(0,i.default)(this,F,K).call(this):new _.default((0,c.reject)())}get hasNoMoreToLoad(){var e
|
|
return!!(this.args.isTruncated||null!==(e=this.activeContentLoader)&&void 0!==e&&e.hasNoMoreToLoad)}get selectedPillInfo(){return this.args.selectedPill&&g.pillRenderInfoMap[this.args.selectedPill]}get selectedPilli18nName(){return this.selectedPillInfo?this.i18n.lookupTranslation("components/profile-creator-shared@content-view-container",this.selectedPillInfo.i18nKey)():""}onReload(){this.contentLoaderMap=new Map}onReset(){this.contentLoaderMap=new Map}onLoadMore(){return(0,i.default)(this,z,Y).call(this)}}),N=(0,l.default)(D.prototype,"graphql",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,l.default)(D.prototype,"storeShim",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,l.default)(D.prototype,"i18n",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,l.default)(D.prototype,"socialCountsService",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,l.default)(D.prototype,"contentLoaderMap",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),(0,l.default)(D.prototype,"initialContentViewCall",[m.cached],Object.getOwnPropertyDescriptor(D.prototype,"initialContentViewCall"),D.prototype),(0,l.default)(D.prototype,"onReload",[h.action],Object.getOwnPropertyDescriptor(D.prototype,"onReload"),D.prototype),(0,l.default)(D.prototype,"onReset",[h.action],Object.getOwnPropertyDescriptor(D.prototype,"onReset"),D.prototype),(0,l.default)(D.prototype,"onLoadMore",[h.action],Object.getOwnPropertyDescriptor(D.prototype,"onLoadMore"),D.prototype),D))
|
|
function H(e){const t=e.map((e=>{var t
|
|
return null==e||null===(t=e.content)||void 0===t?void 0:t.profileContentVideoViewModel}))??[]
|
|
this.socialCountsService.registerSocialActivityCountsList(t)}function K(){if(!this.activeContentLoader&&this.activeContentType){this.contentLoaderMap.set(this.activeContentType,new W(this.activeContentType,!!this.args.isTruncated,this.defaultContentElements))
|
|
this.defaultContentElements&&(this.isMiniUpdateType?this.socialCountsService.registerSocialActivityCountsList(this.defaultContentElements):this.isFullUpdateType?this.socialCountsService.registerElementsList(this.defaultContentElements):"VIDEOS"===this.activeContentType&&(0,i.default)(this,j,H).call(this,this.defaultContentElements))}this.activeContentLoader.initialCall||(this.args.isTruncated&&this.defaultContentElements?this.activeContentLoader.initialCall=new _.default((0,c.resolve)()):this.activeContentLoader.initialCall=new _.default((0,i.default)(this,z,Y).call(this)))
|
|
return this.activeContentLoader.initialCall}function Y(){return this.isMiniUpdateType?(0,i.default)(this,G,J).call(this):this.isFullUpdateType?(0,i.default)(this,B,Q).call(this):(0,i.default)(this,V,$).call(this)}async function $(){var e,t,n
|
|
const r=this.args.selectedPill,o={contentType:this.args.selectedPill,profileUrn:this.args.profileUrn,start:null===(e=this.paging)||void 0===e?void 0:e.start,count:null===(t=this.paging)||void 0===t?void 0:t.count,isLookBackWindowEnabled:this.args.isTruncated}
|
|
this.paginationToken&&(o.paginationToken=this.paginationToken)
|
|
this.activeContentType&&g.MODULE_KEY_MAP[this.activeContentType]&&(o.moduleKey=g.MODULE_KEY_MAP[this.activeContentType])
|
|
const l=await this.graphql.executeQuery(b.default,o,{url:"/voyager/api/graphql"})
|
|
if((0,T.isDestroying)(this))return
|
|
const a=null===(n=l.data)||void 0===n?void 0:n.feedDashProfileContentViewModelsByContentType
|
|
null!=a&&a.elements&&"VIDEOS"===this.activeContentType&&(0,i.default)(this,j,H).call(this,a.elements)
|
|
if(r){var s,c
|
|
null===(s=this.contentLoaderMap.get(r))||void 0===s||s.updatePaginationForNextPage(a)
|
|
null===(c=this.contentLoaderMap.get(r))||void 0===c||c.addToContentViewElements(null==a?void 0:a.elements)}}async function Q(){var e,t
|
|
const n=this.args.selectedPill,r=this.activeContentType&&{COMMENTS:"memberComments",REACTIONS:"memberReactions"}[this.activeContentType]||"memberShareFeed",o={count:null===(e=this.paging)||void 0===e?void 0:e.count,start:null===(t=this.paging)||void 0===t?void 0:t.start,profileUrn:this.args.profileUrn}
|
|
this.paginationToken&&(o.paginationToken=this.paginationToken)
|
|
const l=await(0,u.getFeedDashProfileUpdatesByType)(this.graphql,r,o);(0,T.isDestroying)(this)||(0,i.default)(this,q,X).call(this,l,n)}async function J(){var e,t
|
|
const n=this.args.selectedPill,i={q:"vieweeByFeedType",vieweeUrn:this.args.profileUrn,moduleKey:this.activeContentType&&g.MODULE_KEY_MAP[this.activeContentType],count:null===(e=this.paging)||void 0===e?void 0:e.count,start:null===(t=this.paging)||void 0===t?void 0:t.start,recipe:"com.linkedin.voyager.dash.deco.feed.miniupdate.MiniUpdates"},r=await this.storeShim.queryURL("voyagerFeedDashFrameworksMiniUpdates",{params:i,adapterOptions:{failures:[s.DEGRADATION_METADATA.CONTENT_COLLECTIONS_MINI_UPDATES_CONTENT_MISSING],degradedEntityIDsToRemove:[this.args.profileUrn]}})
|
|
if((0,T.isDestroying)(this))return
|
|
const o=r&&r.elements
|
|
o&&this.socialCountsService.registerSocialActivityCountsList(o)
|
|
if(n){var l,a
|
|
null===(l=this.contentLoaderMap.get(n))||void 0===l||l.updatePaginationForNextPage(o)
|
|
null===(a=this.contentLoaderMap.get(n))||void 0===a||a.addToContentViewElements(o)}}function X(e,t){const n=e&&e.elements
|
|
n&&this.socialCountsService.registerElementsList(n)
|
|
if(t){var i,r
|
|
null===(i=this.contentLoaderMap.get(t))||void 0===i||i.updatePaginationForNextPage(e)
|
|
null===(r=this.contentLoaderMap.get(t))||void 0===r||r.addToContentViewElements(n)}}}))
|
|
define("profile-creator-shared/components/content-view-container/pills",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/classPrivateFieldSet","@babel/runtime/helpers/esm/classPrivateFieldGet","@babel/runtime/helpers/esm/classPrivateMethodGet","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","@ember/debug","@ember/test-waiters","@ember/object/internals","ember-batcher","global-utils/utils/keyboard-utils","global-utils/utils/is-browser","@ember/object","@glimmer/tracking","@glimmer/component","ember-resize-modifier/modifiers/did-resize","profile-creator-shared/components/content-view-container/pills/pill","global-helpers/helpers/eq","@ember/helper","ember-cli-pemberly-tracking/modifiers/track-interaction","ember-cli-pemberly-i18n/helpers/t","artdeco-dropdown/components/artdeco-dropdown","artdeco-dropdown/components/artdeco-dropdown-item"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E,w,P,S){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var O,k,A,I,M,D,N,R,x,U,L,j,F,z,V,B,G,q,W
|
|
const H=(0,d.buildWaiter)("profile-creator-shared::pills-waiter")
|
|
e.default=(0,c.setComponentTemplate)((0,s.createTemplateFactory)({id:"clWYtEsx",block:'[[[1,"\\n"],[41,[30,0,["pillsToRender","length"]],[[[1," "],[11,0],[24,0,"pv2 ph5"],[17,1],[12],[1,"\\n "],[11,0],[24,0,"display-flex white-space-nowrap"],[24,"role","group"],[16,"aria-label",[28,[32,0],["recent_activity_type","profile-creator-shared/components/content-view-container/pills"],null]],[4,[32,1],[[30,0,["didResizePillGroup"]]],null],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["pillsToRender"]]],null]],null],null,[[[1," "],[8,[32,2],[[16,1,[30,2,["id"]]],[16,0,[52,[30,0,["shouldHidePills"]],"visibility-hidden"]],[4,[32,5],[[30,2,["controlName"]]],null]],[["@text","@isSelected","@onClick","@onKeyUp"],[[30,2,["name"]],[28,[32,3],[[30,4],[30,2,["value"]]],null],[28,[32,4],[[30,5],[30,2,["value"]]],null],[28,[32,4],[[30,0,["pillKeyUp"]],[30,3]],null]]],null],[1,"\\n"]],[2,3]],null],[41,[51,[30,0,["hideMoreButton"]]],[[[1," "],[8,[32,2],[[16,"aria-expanded",[29,[[30,0,["isDropdownOpen"]]]]],[16,1,[30,0,["overflowTriggerId"]]],[16,0,[52,[30,0,["shouldHidePills"]],"visibility-hidden"]]],[["@text","@iconName","@isSelected","@onClick","@onKeyUp"],[[28,[32,0],["more_button_text","profile-creator-shared/components/content-view-container/pills"],null],"caret",[30,0,["isOverflowSelected"]],[30,0,["onMoreButtonClick"]],[28,[32,4],[[30,0,["pillKeyUp"]],[30,0,["numPillsToShow"]]],null]]],null],[1,"\\n "],[8,[32,6],null,[["@classNames","@justification","@isOpen","@onVisibilityChange"],["inline-block","right",[30,0,["isDropdownOpen"]],[30,0,["onDropdownVisibilityChange"]]]],[["default"],[[[[1,"\\n "],[8,[30,6,["dropdown-content"]],null,[["@arrowDir"],["right"]],[["default"],[[[[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["overflowPills"]]],null]],null],null,[[[1," "],[8,[32,7],[[16,1,[30,7,["id"]]],[4,[32,5],[[30,7,["controlName"]]],null]],[["@selected","@itemSelected"],[[28,[32,3],[[30,4],[30,7,["value"]]],null],[28,[32,4],[[30,6,["invokeAndCloseNoRefocus"]],[28,[32,4],[[30,0,["onOverflowSelectPill"]],[30,7,["value"]]],null]],null]]],[["default"],[[[[1,"\\n "],[1,[30,7,["name"]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[7]],null],[1," "]],[]]]]],[1,"\\n "]],[6]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],["&attrs","pill","index","@selectedItem","@onSelectPill","dropdown","overflowPill"],false,["if","each","-track-array","unless"]]',moduleName:"profile-creator-shared/components/content-view-container/pills.gts",scope:()=>[w.default,_.default,v.default,T.default,C.fn,E.default,P.default,S.default],isStrictMode:!0}),(O=(D=new WeakMap,N=new WeakMap,R=new WeakMap,x=new WeakMap,U=new WeakMap,L=new WeakMap,j=new WeakMap,F=new WeakSet,z=new WeakSet,V=new WeakSet,B=new WeakSet,G=new WeakSet,q=new WeakSet,W=new WeakSet,class extends y.default{constructor(e,i){super(e,i)
|
|
W.add(this)
|
|
q.add(this)
|
|
G.add(this)
|
|
B.add(this)
|
|
V.add(this)
|
|
z.add(this)
|
|
F.add(this);(0,t.default)(this,"numPillsToShow",k,this);(0,t.default)(this,"isDropdownOpen",A,this);(0,t.default)(this,"hideMoreButton",I,this);(0,t.default)(this,"shouldHidePills",M,this);(0,n.default)(this,"overflowTriggerId",`overflow-button-${(0,u.guidFor)(this)}`)
|
|
D.set(this,{writable:!0,value:void 0})
|
|
N.set(this,{writable:!0,value:void 0})
|
|
R.set(this,{writable:!0,value:0})
|
|
x.set(this,{writable:!0,value:void 0})
|
|
U.set(this,{writable:!0,value:void 0})
|
|
L.set(this,{writable:!0,value:void 0})
|
|
j.set(this,{writable:!0,value:void 0});(0,n.default)(this,"token",void 0)
|
|
this.pillsToRender.length&&(this.token=H.beginAsync())}get pillsToRender(){var e
|
|
return null===(e=this.args.pillsToRender)||void 0===e?void 0:e.slice(0,this.numPillsToShow)}get moreButtonElement(){if(h.default)return document.getElementById(this.overflowTriggerId)}get overflowPills(){var e
|
|
return null===(e=this.args.pillsToRender)||void 0===e?void 0:e.slice(this.numPillsToShow,this.args.pillsToRender.length)}get isOverflowSelected(){var e
|
|
return(null===(e=this.overflowPills)||void 0===e?void 0:e.filter((e=>e.value===this.args.selectedItem)).length)>0}didResizePillGroup(e){(0,o.default)(this,q,X).call(this,e.target)
|
|
if(this.token){H.endAsync(this.token)
|
|
this.token=void 0}}onOverflowSelectPill(e){this.args.onSelectPill(e);(0,m.mutateDOM)((()=>{if(!this.isDestroying){var e
|
|
null===(e=this.moreButtonElement)||void 0===e||e.focus()}}))}onDropdownVisibilityChange(e){document.activeElement!==(0,r.default)(this,N)&&(this.isDropdownOpen=e)}onMoreButtonClick(){this.isDropdownOpen=!this.isDropdownOpen}pillKeyUp(e,t){t instanceof KeyboardEvent&&((0,f.isLeftArrowKey)(t)?(0,o.default)(this,W,Z).call(this,e,-1):(0,f.isRightArrowKey)(t)&&(0,o.default)(this,W,Z).call(this,e,1))}}),k=(0,l.default)(O.prototype,"numPillsToShow",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e
|
|
return null===(e=this.args.pillsToRender)||void 0===e?void 0:e.length}}),A=(0,l.default)(O.prototype,"isDropdownOpen",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),I=(0,l.default)(O.prototype,"hideMoreButton",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,l.default)(O.prototype,"shouldHidePills",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),(0,l.default)(O.prototype,"didResizePillGroup",[g.action],Object.getOwnPropertyDescriptor(O.prototype,"didResizePillGroup"),O.prototype),(0,l.default)(O.prototype,"onOverflowSelectPill",[g.action],Object.getOwnPropertyDescriptor(O.prototype,"onOverflowSelectPill"),O.prototype),(0,l.default)(O.prototype,"onDropdownVisibilityChange",[g.action],Object.getOwnPropertyDescriptor(O.prototype,"onDropdownVisibilityChange"),O.prototype),(0,l.default)(O.prototype,"onMoreButtonClick",[g.action],Object.getOwnPropertyDescriptor(O.prototype,"onMoreButtonClick"),O.prototype),(0,l.default)(O.prototype,"pillKeyUp",[g.action],Object.getOwnPropertyDescriptor(O.prototype,"pillKeyUp"),O.prototype),O))
|
|
function K(){var e
|
|
const t=8*this.numPillsToShow
|
|
return(0,r.default)(this,R)+((0,r.default)(this,U)||0)+t<((0,r.default)(this,j)||0)&&this.numPillsToShow<(null===(e=this.args.pillsToRender)||void 0===e?void 0:e.length)}function Y(){const e=8*this.numPillsToShow
|
|
return(0,r.default)(this,R)+((0,r.default)(this,U)||0)+e>((0,r.default)(this,j)||0)}function $(){var e
|
|
const t=8*(this.numPillsToShow-1)
|
|
return this.numPillsToShow===(null===(e=this.args.pillsToRender)||void 0===e?void 0:e.length)&&(0,r.default)(this,R)+t<((0,r.default)(this,j)||0)}function Q(){var e
|
|
const t=this.numPillsToShow-1;(0,i.default)(this,R,(0,r.default)(this,R)-((null===(e=(0,r.default)(this,x))||void 0===e?void 0:e[t])||0))
|
|
this.numPillsToShow--}function J(){var e
|
|
const t=this.numPillsToShow;(0,i.default)(this,R,(0,r.default)(this,R)+((null===(e=(0,r.default)(this,x))||void 0===e?void 0:e[t])||0))
|
|
this.numPillsToShow++}function X(e){h.default&&null!==e.offsetParent?(0,m.readDOM)((()=>{var t
|
|
if(!(0,r.default)(this,x)){const t=[...e.children].filter((e=>e.classList.contains("profile-creator-shared-pills__pill")));(0,i.default)(this,x,t.map((e=>{const{width:t}=e.getBoundingClientRect();(0,i.default)(this,R,(0,r.default)(this,R)+t)
|
|
return t})));(0,i.default)(this,N,t.pop());(0,i.default)(this,U,(0,r.default)(this,x).pop());(0,i.default)(this,R,(0,r.default)(this,R)-((0,r.default)(this,U)||0));(0,i.default)(this,D,e)}const n=null===(t=(0,r.default)(this,D))||void 0===t?void 0:t.getBoundingClientRect().width;(0,i.default)(this,j,n)
|
|
if((0,r.default)(this,L)&&(0,r.default)(this,L)<((0,r.default)(this,j)||0))for(;(0,o.default)(this,F,K).call(this);)(0,o.default)(this,G,J).call(this)
|
|
if((0,o.default)(this,V,$).call(this)){this.hideMoreButton=!0
|
|
this.shouldHidePills=!1}else{this.hideMoreButton=!1
|
|
for(;(0,o.default)(this,z,Y).call(this);)(0,o.default)(this,B,Q).call(this);(0,i.default)(this,L,(0,r.default)(this,j))
|
|
this.shouldHidePills=!1}})):this.shouldHidePills=!1}function Z(e,t){if(h.default){const o=this.hideMoreButton?this.numPillsToShow:this.numPillsToShow+1,l=(e+t+o)%o
|
|
if(l<this.pillsToRender.length){var n
|
|
const e=this.pillsToRender[l],t=[...(null===(n=(0,r.default)(this,D))||void 0===n?void 0:n.children)||[]].filter((t=>t.id===(null==e?void 0:e.id)))[0]
|
|
t instanceof HTMLElement&&(null==t||t.focus())}else if(l===this.pillsToRender.length){var i
|
|
null===(i=this.moreButtonElement)||void 0===i||i.focus()}}}}))
|
|
define("profile-creator-shared/components/content-view-container/pills/pill",["exports","@ember/template-factory","@ember/helper","@ember/component/template-only","@ember/component","@ember/modifier","hue-web-icons/components/icon"],(function(e,t,n,i,r,o,l){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const a=(0,r.setComponentTemplate)((0,t.createTemplateFactory)({id:"GyH1WazO",block:'[[[1,"\\n "],[11,"button"],[16,"aria-pressed",[29,[[30,1]]]],[16,"tabindex",[52,[30,1],"0","-1"]],[24,4,"button"],[16,0,[29,["profile-creator-shared-pills__pill artdeco-pill artdeco-pill--slate artdeco-pill--choice artdeco-pill--3 artdeco-pill--toggle\\n ",[52,[30,1],"artdeco-pill--selected"]]]],[17,2],[4,[32,0],["click",[30,3]],null],[4,[32,0],["keyup",[30,4]],null],[12],[1,"\\n "],[10,1],[14,0,"artdeco-pill__text"],[12],[1,[30,5]],[13],[1,"\\n"],[41,[30,6],[[[1," "],[8,[32,1],[[24,0,"artdeco-pill__icon"]],[["@name","@type","@size"],[[30,6],"system","small"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],["@isSelected","&attrs","@onClick","@onKeyUp","@text","@iconName"],false,["if"]]',moduleName:"profile-creator-shared/components/content-view-container/pills/pill.gts",scope:()=>[o.on,l.default],isStrictMode:!0}),(0,i.default)("pill","Pill"))
|
|
e.default=a}))
|
|
define("profile-creator-shared/components/content-view-items/all",["exports","@ember/template-factory","@ember/helper","@ember/component","@glimmer/component","global-modifiers/modifiers/scroll-into-view","feed-shared/components/update/generic-update"],(function(e,t,n,i,r,o,l){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
class a extends r.default{get occlusionEnabled(){return!(this.args.index<5)}get shouldScrollAndExpand(){const e=this.args.model.entityUrn
|
|
return!!(this.args.activityUrnToFocusOn&&e&&e.indexOf(this.args.activityUrnToFocusOn)>-1)}}e.default=a;(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"XFkQIbfG",block:'[[[1,"\\n "],[10,0],[14,0,"relative"],[12],[1,"\\n "],[11,0],[24,0,"profile-creator-shared-feed-update__anchor"],[4,[32,0],null,[["when"],[[30,0,["shouldScrollAndExpand"]]]]],[12],[13],[1,"\\n "],[8,[32,1],null,[["@model","@customModuleKey","@pageKey","@hideCaEntryPoint","@occlusionEnabled","@hideCommentsWithoutInteraction","@isDetailView","@isDashEnabled"],[[30,1],[30,2],[30,3],false,[30,0,["occlusionEnabled"]],true,[30,0,["shouldScrollAndExpand"]],true]],null],[1,"\\n "],[13],[1,"\\n "]],["@model","@moduleKey","@pageKey"],false,[]]',moduleName:"profile-creator-shared/components/content-view-items/all.gts",scope:()=>[o.default,l.default],isStrictMode:!0}),a)}))
|
|
define("profile-creator-shared/components/content-view-items/article",["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/tracking-id","@ember/service","global-utils/utils/get-asset-url-for-environment","@linkedin/ember-m3-pdsc-model-builder","@glimmer/component","@ember/object","@ember/array","app-aware-link/components/app-aware-link","@ember/modifier","ember-cli-pemberly-tracking/modifiers/track-interaction","profile-creator-shared/components/aspect-ratio","image-view-model/components/image-view-model","inline-show-more-text/components/inline-show-more-text","text-view-model/components/text-view-model-v2"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var C,E,w
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"vZFCcaO8",block:'[[[1,"\\n "],[11,0],[17,1],[12],[1,"\\n "],[8,[32,0],[[24,0,"link-without-hover-visited"],[24,"target","_blank"],[24,"rel","noopener noreferrer"],[4,[32,1],["click",[30,0,["fireFAE"]]],null],[4,[32,2],[[30,0,["controlName"]]],null]],[["@href"],[[30,2]]],[["default"],[[[[1,"\\n "],[8,[32,3],[[24,0,"mb2"]],[["@aspectRatio"],["16:9"]],[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@a11yText","@highQuality","@images","@imgClasses","@imgWidth"],["",true,[30,0,["image"]],[29,[[30,3,["baseClass"]]," profile-creator-shared-article__image"]],400]],null],[1,"\\n "]],[3]]]]],[1,"\\n "],[8,[32,5],null,[["@class","@lines","@showLessButton","@showMoreButton","@tvm"],["profile-creator-shared-article__title hoverable-link-text",2,false,false,[30,4,["title"]]]],null],[1,"\\n "],[8,[32,5],[[24,"aria-hidden","true"]],[["@class","@lines","@showLessButton","@showMoreButton","@tvm"],["text-body-small-open t-black mb1",2,false,false,[30,4,["description"]]]],null],[1,"\\n"],[41,[30,4,["duration"]],[[[1," "],[10,2],[14,0,"text-body-small t-black--light"],[12],[1,"\\n "],[8,[32,6],null,[["@tvm"],[[30,4,["duration"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@navigationUrl","img","@model"],false,["if"]]',moduleName:"profile-creator-shared/components/content-view-items/article.gts",scope:()=>[h.default,g.on,b.default,y.default,_.default,v.default,T.default],isStrictMode:!0}),(C=(0,c.inject)("feed-tracking@feed-action-event"),E=class extends u.default{constructor(){super(...arguments);(0,t.default)(this,"feedActionEvent",w,this)}get controlName(){var e
|
|
return(null===(e=this.args.controlNameOverrideMap)||void 0===e?void 0:e.articleOverride)??"creator_profile_article_card"}get image(){var e
|
|
const t=null===(e=this.args.model)||void 0===e?void 0:e.image
|
|
if(t)return t
|
|
const n=(0,d.buildModel)("com.linkedin.voyager.common.ImageAttribute",{sourceType:"URL",imageUrl:(0,p.default)("assets/img/publishing/default_cover_media.png")})
|
|
return(0,d.buildModel)("com.linkedin.voyager.common.ImageViewModel",{attributes:(0,f.A)([n])})}fireFAE(){if(this.args.trackingId&&this.args.backendUpdateUrn){this.feedActionEvent.setCustomModuleKey(this.args.moduleKey)
|
|
this.feedActionEvent.fireFAE({},{actionCategory:"VIEW",actionType:"viewArticle",controlName:this.controlName},{updateUrn:this.args.backendUpdateUrn,trackingId:(0,s.getByteStringAsBase64)(this.args.trackingId)})}}},w=(0,i.default)(E.prototype,"feedActionEvent",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(E.prototype,"fireFAE",[m.action],Object.getOwnPropertyDescriptor(E.prototype,"fireFAE"),E.prototype),E))}))
|
|
define("profile-creator-shared/components/content-view-items/document",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/classPrivateMethodGet","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","profile-creator-shared/utils/constants","global-utils/utils/tracking-id","feed-tracking/utils/update-tracking-obj","@ember/service","@glimmer/tracking","@glimmer/component","@ember/object","@ember/destroyable","graphql-queries/queries/feed/single-update.graphql","update-components/components/document","@ember/helper","app-aware-link/components/app-aware-link","ember-cli-pemberly-tracking/modifiers/track-interaction","@ember/modifier","inline-show-more-text/components/inline-show-more-text","ember-cli-pemberly-i18n/helpers/t"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
e.getFeedUpdate=F
|
|
var w,P,S,O,k,A,I,M,D,N,R,x,U,L,j
|
|
function F(e,t,n,i,r){const o=r?n.replace("urn:li:fs_updateV2:","urn:li:fsd_update:"):n,l={moduleKey:s.MODULE_KEY_MAP.DOCUMENTS,commentsCount:10,likesCount:10}
|
|
i&&(l.originTrackingId=(0,c.getByteStringAsBase64)(i))
|
|
if(r){l.updateUrn=o
|
|
return t.executeQuery(g.default,l).then((e=>{var t
|
|
return null==e||null===(t=e.data)||void 0===t?void 0:t.feedDashUpdatesById}))}const a=`feed/updates|${o}`
|
|
return e.queryURL(`feed/updatesV2/${o}`,{cacheKey:a,params:l})}e.default=(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"7qSaLqBO",block:'[[[1,"\\n"],[1," "],[11,0],[17,1],[12],[1,"\\n "],[10,0],[14,0,"profile-creator-shared-document__document"],[12],[1,"\\n "],[8,[32,0],null,[["@model","@updateTrackingObj"],[[28,[32,1],null,[["document"],[[30,2]]]],[30,0,["updateTrackingObj"]]]],null],[1,"\\n "],[13],[1,"\\n "],[8,[32,2],[[24,0,"link-without-hover-visited"],[24,"target","_blank"],[4,[32,3],[[30,0,["controlName"]]],null],[4,[32,4],["click",[30,0,["fireFAE"]]],null]],[["@href"],[[30,3]]],[["default"],[[[[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[32,5],null,[["@class","@lines","@showLessButton","@showMoreButton","@text"],["text-heading-large t-black hoverable-link-text",1,false,false,[30,2,["title"]]]],null],[1,"\\n "],[10,1],[14,0,"text-body-small-open t-black--light mb1"],[12],[1,"\\n "],[1,[28,[32,6],["i18n_num_pages","profile-creator-shared/components/content-view-items/document"],[["numPages"],[[30,2,["totalPageCount"]]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@model","@navigationUrl"],false,[]]',moduleName:"profile-creator-shared/components/content-view-items/document.gts",scope:()=>[b.default,y.hash,_.default,v.default,T.on,C.default,E.default],isStrictMode:!0}),(w=(0,d.inject)("global-services@store-shim"),P=(0,d.inject)("tracking"),S=(0,d.inject)("feed-tracking@feed-action-event"),O=(0,d.inject)("feed-tracking@sponsored-action-tracking"),k=(0,d.inject)("lix"),A=(0,d.inject)("@linkedin/ember-restli-graphql@graphql"),I=(j=new WeakSet,class extends m.default{constructor(e,r){super(e,r)
|
|
j.add(this);(0,t.default)(this,"storeShim",M,this);(0,t.default)(this,"tracking",D,this);(0,t.default)(this,"feedActionEvent",N,this);(0,t.default)(this,"sponsoredActionTracking",R,this);(0,t.default)(this,"lix",x,this);(0,t.default)(this,"graphql",U,this);(0,t.default)(this,"updateV2",L,this);(0,n.default)(this,"controlName","document_container");(0,i.default)(this,j,z).call(this)}get isProfileUpdatesV2DashEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.profile-dash-updates-v2")}get updateTrackingObj(){var e,t
|
|
const n=this.isProfileUpdatesV2DashEnabled?null===(e=this.updateV2)||void 0===e?void 0:e.metadata:null===(t=this.updateV2)||void 0===t?void 0:t.updateMetadata
|
|
return n?new p.default(n,this.feedActionEvent,this.sponsoredActionTracking,this.tracking):null}fireFAE(){if(this.args.trackingId&&this.args.backendUpdateUrn){this.feedActionEvent.setCustomModuleKey(this.args.moduleKey)
|
|
this.feedActionEvent.fireFAE({},{actionCategory:"VIEW",actionType:"viewDoc",controlName:this.controlName},{updateUrn:this.args.backendUpdateUrn,trackingId:(0,c.getByteStringAsBase64)(this.args.trackingId)})}}}),M=(0,r.default)(I.prototype,"storeShim",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,r.default)(I.prototype,"tracking",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,r.default)(I.prototype,"feedActionEvent",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,r.default)(I.prototype,"sponsoredActionTracking",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,r.default)(I.prototype,"lix",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,r.default)(I.prototype,"graphql",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,r.default)(I.prototype,"updateV2",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,r.default)(I.prototype,"fireFAE",[f.action],Object.getOwnPropertyDescriptor(I.prototype,"fireFAE"),I.prototype),I))
|
|
function z(){F(this.storeShim,this.graphql,this.args.preDashUpdateUrn,this.args.trackingId,this.isProfileUpdatesV2DashEnabled).then((e=>{if(!(0,h.isDestroying)(this)){this.updateV2=e
|
|
return e}}))}}))
|
|
define("profile-creator-shared/components/content-view-items/empty",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/classPrivateMethodGet","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","global-utils/utils/logger","profile-creator-shared/utils/constants","@ember/service","@glimmer/component","ember-cli-pemberly-i18n/helpers/t","artdeco-empty-state/components/artdeco-empty-state"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var f,h,g,b,y,_,v,T
|
|
e.default=(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"QMGwLIWR",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[10,0],[14,0,"display-flex flex-column full-width pb3"],[12],[1,"\\n "],[10,1],[14,0,"text-body-medium-bold"],[12],[1,[52,[30,2],[28,[32,0],["i18n_a11y_no_post_title_self","profile-creator-shared/components/content-view-items/empty"],null],[28,[32,0],["i18n_a11y_no_post_title_non_self","profile-creator-shared/components/content-view-items/empty"],[["member"],[[30,3]]]]]],[13],[1,"\\n "],[10,1],[14,0,"text-body-small"],[12],[1,[52,[30,2],[28,[32,0],["i18n_a11y_no_post_subtitle_self","profile-creator-shared/components/content-view-items/empty"],null],[28,[32,0],["i18n_a11y_no_post_subtitle_non_self","profile-creator-shared/components/content-view-items/empty"],[["member"],[[30,3]]]]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[32,1],null,[["@headline","@message","@illustration"],[[28,[32,0],["i18n_content_view_empty_headline","profile-creator-shared/components/content-view-items/empty"],null],[52,[30,2],[28,[32,0],["i18n_content_view_empty_message_selfview","profile-creator-shared/components/content-view-items/empty"],null],[28,[32,0],["i18n_content_view_empty_message_non_selfview","profile-creator-shared/components/content-view-items/empty"],[["member"],[[30,3]]]]],"empty-room"]],null],[1,"\\n"]],[]]],[1," "]],["@isTruncated","@isSelfView","@memberName"],false,["if"]]',moduleName:"profile-creator-shared/components/content-view-items/empty.gts",scope:()=>[u.default,m.default],isStrictMode:!0}),(f=(0,p.inject)("client-sensor-web@client-sensor"),h=(0,p.inject)("jet"),g=(0,p.inject)("tracking"),b=(T=new WeakSet,class extends d.default{constructor(e,n){var r
|
|
super(e,n)
|
|
T.add(this);(0,t.default)(this,"clientSensor",y,this);(0,t.default)(this,"jet",_,this);(0,t.default)(this,"tracking",v,this)
|
|
this.args.isTruncated||this.args.selectedPill!==c.DEFAULT_CONTENT_TO_PILL.allPosts||this.tracking.firePageViewEvent("flagship3_profile_creator_profile_content_view_posts_empty_state")
|
|
this.args.selectedPill&&((null===(r=this.args.contentTypes)||void 0===r?void 0:r.length)||0)>1&&this.args.selectedPill!==c.DEFAULT_CONTENT_TO_PILL.allPosts&&(0,i.default)(this,T,C).call(this)}}),y=(0,r.default)(b.prototype,"clientSensor",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,r.default)(b.prototype,"jet",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,r.default)(b.prototype,"tracking",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b))
|
|
function C(){(0,s.errorLogger)(this.jet,"[Content First Profile] Unexpected empty state found",void 0,["content-first-profile-custom-error-log"])
|
|
this.args.isTruncated?this.clientSensor.incrementMetricCounter({groupName:"profile",metricName:"content-view-unexpected-empty-state-top-level"}):this.clientSensor.incrementMetricCounter({groupName:"profile",metricName:"content-view-unexpected-empty-state-detail-view"})}}))
|
|
define("profile-creator-shared/components/content-view-items/error",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","artdeco-empty-state/components/artdeco-empty-state","ember-cli-pemberly-i18n/helpers/t"],(function(e,t,n,i,r,o){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const l=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"7+NSnPYP",block:'[[[1,"\\n"],[1," "],[8,[32,0],null,[["@class","@headline","@message","@illustration","@actionText","@onButtonClick"],["mb5",[28,[32,1],["i18n_content_view_error_headline","profile-creator-shared/components/content-view-items/error"],null],[28,[32,1],["i18n_content_view_error_message","profile-creator-shared/components/content-view-items/error"],null],"error-server",[28,[32,1],["i18n_content_view_error_action_text","profile-creator-shared/components/content-view-items/error"],null],[30,1]]],null],[1,"\\n"]],["@onReload"],false,[]]',moduleName:"profile-creator-shared/components/content-view-items/error.gts",scope:()=>[r.default,o.default],isStrictMode:!0}),(0,n.default)("error","Error"))
|
|
e.default=l}))
|
|
define("profile-creator-shared/components/content-view-items/event",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/classPrivateMethodGet","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/helper","@ember/component","@ember/object/internals","profile-shared/utils/image-helpers","@glimmer/tracking","@glimmer/component","@ember/service","@ember/object","app-aware-link/components/app-aware-link","ember-cli-pemberly-tracking/modifiers/track-interaction","profile-creator-shared/components/aspect-ratio","ember-vector-images/components/lazy-image","image-view-model/components/image-view-model","ember-cli-pemberly-i18n/helpers/t","text-view-model/components/text-view-model-v2","inline-show-more-text/components/inline-show-more-text"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var E,w,P,S,O
|
|
e.default=(0,s.setComponentTemplate)((0,l.createTemplateFactory)({id:"sBUcoJNJ",block:'[[[1,"\\n"],[1," "],[8,[32,0],[[16,"aria-label",[30,0,["eventLabel"]]],[24,0,"display-flex mb5 full-width link-without-hover-visited"],[24,"rel","noopener noreferrer"],[24,"target","_blank"],[17,1],[4,[32,1],[[30,0,["controlName"]]],null]],[["@href"],[[30,2]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"profile-creator-shared-event__image-wrapper"],[12],[1,"\\n "],[8,[32,2],null,[["@aspectRatio"],["16:9"]],[["default"],[[[[1,"\\n"],[41,[30,0,["showGhostImage"]],[[[1," "],[8,[32,3],null,[["@class"],[[29,[[30,3,["baseClass"]]," profile-creator-shared-event__image profile-creator-shared-event__image-ghost"]]]],null],[1,"\\n"]],[]],[[[41,[30,4,["eventsImage"]],[[[1," "],[8,[32,4],[[16,1,[30,0,["imageId"]]]],[["@a11yText","@highQuality","@images","@imgClasses","@imgWidth","@onError","@onLoad"],["",true,[30,4,["eventsImage"]],[29,[[30,3,["baseClass"]]," profile-creator-shared-event__image"]],400,[30,0,["onImageError"]],[30,0,["onImageLoad"]]]],null],[1,"\\n "]],[]],null]],[]]],[1," "],[10,0],[14,0,"profile-creator-shared-event__image-shadow"],[12],[13],[1,"\\n"],[41,[30,4,["shouldDisplayLiveIndicator"]],[[[1," "],[10,"label"],[14,0,"profile-creator-shared-event__image-badge profile-creator-shared-event__image-badge--live"],[12],[1,"\\n "],[1,[28,[32,5],["i18n_live","profile-creator-shared/components/content-view-items/event"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,4,["duration"]],[[[1," "],[10,"label"],[14,0,"profile-creator-shared-event__image-badge profile-creator-shared-event__image-badge--timestamp"],[12],[1,"\\n "],[1,[30,4,["duration","text"]]],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1," "]],[3]]]]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"flex-1"],[12],[1,"\\n "],[10,2],[14,0,"text-body-small-bold mb1"],[12],[1,"\\n "],[8,[32,6],null,[["@tvm"],[[30,4,["titleContext"]]]],null],[1,"\\n "],[13],[1,"\\n "],[8,[32,7],null,[["@class","@lines","@showLessButton","@showMoreButton","@tvm"],["text-heading-large t-black mb1 hoverable-link-text",2,false,false,[30,4,["title"]]]],null],[1,"\\n "],[10,2],[14,0,"text-body-small display-flex align-items-center t-black--light"],[12],[1,"\\n "],[8,[32,6],null,[["@tvm"],[[30,4,["insightText"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["&attrs","@navigationUrl","img","@model"],false,["if"]]',moduleName:"profile-creator-shared/components/content-view-items/event.gts",scope:()=>[h.default,g.default,b.default,y.default,_.default,v.default,T.default,C.default],isStrictMode:!0}),(E=(0,m.inject)("i18n"),w=(O=new WeakSet,class extends u.default{constructor(){super(...arguments)
|
|
O.add(this);(0,t.default)(this,"i18n",P,this);(0,n.default)(this,"imageId",`event-thumbnail-image-${(0,c.guidFor)(this)}`);(0,t.default)(this,"imageLoadFailed",S,this)}get controlName(){var e
|
|
return null!==(e=this.args.model)&&void 0!==e&&e.shouldDisplayLiveIndicator?"creator_profile_live_event_card":"creator_profile_event_card"}get eventLabel(){var e,t,n,r,o,l,a,s,c,p
|
|
const d=null===(e=this.args.model)||void 0===e?void 0:e.eventsImage,u=null===(t=this.args.model)||void 0===t?void 0:t.shouldDisplayLiveIndicator,m=null===(n=this.args.model)||void 0===n||null===(r=n.title)||void 0===r?void 0:r.text,f=null===(o=this.args.model)||void 0===o||null===(l=o.titleContext)||void 0===l?void 0:l.text,h=null===(a=this.args.model)||void 0===a||null===(s=a.insightText)||void 0===s?void 0:s.text,g=null===(c=this.args.model)||void 0===c||null===(p=c.duration)||void 0===p?void 0:p.text
|
|
if(d){if(u)return(0,i.default)(this,O,k).call(this,"i18n_a11y_live_event_label",{title:m,titleContext:f,insightText:h})
|
|
if(g)return(0,i.default)(this,O,k).call(this,"i18n_a11y_was_live_event_label",{title:m,titleContext:f,durationText:g,insightText:h})}return(0,i.default)(this,O,k).call(this,"i18n_a11y_default_event_label",{title:m,titleContext:f,insightText:h})}get showGhostImage(){var e
|
|
return!(null!==(e=this.args.model)&&void 0!==e&&e.eventsImage)||this.imageLoadFailed}onImageLoad(){(0,p.imgNodeIfFaulty)(this.imageId,!0)&&(this.imageLoadFailed=!0)}onImageError(){this.imageLoadFailed=!0}}),P=(0,r.default)(w.prototype,"i18n",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,r.default)(w.prototype,"imageLoadFailed",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,r.default)(w.prototype,"onImageLoad",[f.action],Object.getOwnPropertyDescriptor(w.prototype,"onImageLoad"),w.prototype),(0,r.default)(w.prototype,"onImageError",[f.action],Object.getOwnPropertyDescriptor(w.prototype,"onImageError"),w.prototype),w))
|
|
function k(e,t){return this.i18n.lookupTranslation("components/profile-creator-shared@content-view-items/event",e)([t])}}))
|
|
define("profile-creator-shared/components/content-view-items/image",["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/tracking-id","profile-creator-shared/utils/constants","@ember/service","@glimmer/component","@ember/object","profile-creator-shared/components/update-detail-viewer-trigger","ember-cli-pemberly-i18n/helpers/t","@ember/modifier","@ember/helper","ember-cli-pemberly-tracking/modifiers/track-interaction","profile-creator-shared/components/aspect-ratio","image-view-model/components/image-view-model","text-view-model/components/text-view-model-v2"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var v,T,C
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"dEN1Imou",block:'[[[1,"\\n"],[1," "],[11,0],[24,0,"display-flex"],[17,1],[12],[1,"\\n "],[8,[32,0],null,[["@updateUrn","@originTrackingId"],[[30,2],[30,3]]],[["default"],[[[[1,"\\n "],[11,"button"],[24,0,"full-height full-width"],[16,"aria-label",[28,[32,1],["i18n_a11y_default_image_label_text","profile-creator-shared/components/content-view-items/image"],[["memberName"],[[30,5]]]]],[24,4,"button"],[4,[32,2],["click",[28,[32,3],[[30,0,["fireFAEAndRun"]],[30,4]],null]],null],[4,[32,4],[[30,0,["controlName"]]],null],[12],[1,"\\n "],[8,[32,5],null,[["@aspectRatio"],["1:1"]],[["default"],[[[[1,"\\n "],[8,[32,6],null,[["@images","@desiredWidth","@imgClasses"],[[30,7,["image"]],400,[29,[[30,6,["baseClass"]]," profile-creator-shared-image__img"]]]],null],[1,"\\n"],[41,[30,7,["overlayText"]],[[[1," "],[10,2],[14,0,"profile-creator-shared-image__overlay-text-updated"],[12],[1,"\\n "],[8,[32,7],null,[["@tvm"],[[30,7,["overlayText"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[6]]]]],[1,"\\n "],[13],[1,"\\n "]],[4]]]]],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@preDashUpdateUrn","@trackingId","onTriggerUpdateDetailViewer","@memberName","img","@model"],false,["if"]]',moduleName:"profile-creator-shared/components/content-view-items/image.gts",scope:()=>[u.default,m.default,f.on,h.fn,g.default,b.default,y.default,_.default],isStrictMode:!0}),(v=(0,c.inject)("feed-tracking@feed-action-event"),T=class extends p.default{constructor(){super(...arguments);(0,t.default)(this,"feedActionEvent",C,this);(0,n.default)(this,"moduleKey",s.MODULE_KEY_MAP.IMAGES_AND_MULTI_PHOTOS);(0,n.default)(this,"controlName","creator_profile_image_card")}fireFAEAndRun(e){if(this.args.trackingId&&this.args.backendUpdateUrn){this.feedActionEvent.setCustomModuleKey(this.moduleKey)
|
|
this.feedActionEvent.fireFAE({},{actionCategory:"VIEW",actionType:"viewImage",controlName:this.controlName},{updateUrn:this.args.backendUpdateUrn,trackingId:(0,a.getByteStringAsBase64)(this.args.trackingId)})}null==e||e()}},C=(0,i.default)(T.prototype,"feedActionEvent",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(T.prototype,"fireFAEAndRun",[d.action],Object.getOwnPropertyDescriptor(T.prototype,"fireFAEAndRun"),T.prototype),T))}))
|
|
define("profile-creator-shared/components/content-view-items/loading/all",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","artdeco-card/components/artdeco-card","profile-creator-shared/components/content-view-items/loading/shimmer","profile-creator-shared/components/content-view-items/loading/loading-wrapper"],(function(e,t,n,i,r,o,l){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const a=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"QSdFEpIG",block:'[[[1,"\\n "],[10,0],[14,0,"profile-creator-shared-feed-update__container"],[12],[1,"\\n "],[8,[32,0],null,null,[["default"],[[[[1,"\\n "],[10,0],[14,0,"p4"],[12],[1,"\\n "],[10,0],[14,0,"display-flex flex-row full-width"],[12],[1,"\\n "],[10,0],[14,0,"pvs-loader__profile-card-social-icon pvs-loader__wrapper"],[12],[8,[32,1],null,null,null],[13],[1,"\\n "],[8,[32,2],[[24,0,"profile-creator-shared-loading__skeleton-border-radius-7"]],[["@width","@height"],[242,14]],null],[1,"\\n "],[13],[1,"\\n "],[10,"hr"],[14,0,"artdeco-divider mb2"],[12],[13],[1,"\\n "],[8,[32,2],[[24,0,"mb1 profile-creator-shared-loading__skeleton-border-radius-7"]],[["@height"],[14]],null],[1,"\\n "],[8,[32,2],[[24,0,"profile-creator-shared-loading__skeleton-border-radius-7"]],[["@height"],[14]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[32,2],[[24,0,"profile-creator-shared-loading__update-image"]],[["@height"],[375]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[],false,[]]',moduleName:"profile-creator-shared/components/content-view-items/loading/all.gts",scope:()=>[r.default,o.default,l.default],isStrictMode:!0}),(0,n.default)("all","All"))
|
|
e.default=a}))
|
|
define("profile-creator-shared/components/content-view-items/loading/article",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","profile-creator-shared/components/aspect-ratio","profile-creator-shared/components/content-view-items/loading/loading-wrapper"],(function(e,t,n,i,r,o){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const l=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"LPueXzs/",block:'[[[1,"\\n "],[10,0],[14,0,"profile-creator-shared-article__container"],[12],[1,"\\n "],[8,[32,0],[[24,0,"mb2"]],[["@aspectRatio"],["16:9"]],[["default"],[[[[1,"\\n "],[10,0],[15,0,[29,[[30,1,["baseClass"]]," profile-creator-shared-article__image"]]],[12],[1,"\\n "],[8,[32,1],null,null,null],[1,"\\n "],[13],[1,"\\n "]],[1]]]]],[1,"\\n "],[8,[32,1],[[24,0,"mb1 profile-creator-shared-loading__skeleton-border-radius-10"]],[["@height"],[20]],null],[1,"\\n "],[8,[32,1],[[24,0,"mb1 profile-creator-shared-loading__skeleton-border-radius-10"]],[["@height","@width"],[20,77]],null],[1,"\\n\\n "],[8,[32,1],[[24,0,"mb1 profile-creator-shared-loading__skeleton-border-radius-7"]],[["@height"],[14]],null],[1,"\\n "],[8,[32,1],[[24,0,"mb1 profile-creator-shared-loading__skeleton-border-radius-7"]],[["@height"],[14]],null],[1,"\\n "],[8,[32,1],[[24,0,"profile-creator-shared-loading__skeleton-border-radius-7"]],[["@height","@width"],[14,68]],null],[1,"\\n "],[13],[1,"\\n"]],["img"],false,[]]',moduleName:"profile-creator-shared/components/content-view-items/loading/article.gts",scope:()=>[r.default,o.default],isStrictMode:!0}),(0,n.default)("article","Article"))
|
|
e.default=l}))
|
|
define("profile-creator-shared/components/content-view-items/loading/component-builder",["exports","@ember/template-factory","@ember/component","profile-creator-shared/utils/get-component-path","@glimmer/component","@ember/debug"],(function(e,t,n,i,r,o){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
class l extends r.default{get componentName(){var e
|
|
return(null===(e=this.args.selectedPillInfo)||void 0===e?void 0:e.componentName)||""}get loadingCount(){var e
|
|
return(null===(e=this.args.selectedPillInfo)||void 0===e?void 0:e.loadingCount)||0}get componentPath(){return(0,i.getComponentPath)(this.componentName,!0)}get count(){return new Array(this.loadingCount).fill(void 0).map(((e,t)=>t))}constructor(e,t){super(e,t)}}e.default=l;(0,n.setComponentTemplate)((0,t.createTemplateFactory)({id:"gwCp0SAt",block:'[[[1,"\\n"],[44,[[50,[30,0,["componentPath"]],0,null,null]],[[[42,[28,[31,3],[[28,[31,3],[[30,0,["count"]]],null]],null],null,[[[1," "],[8,[30,1],null,null,null],[1,"\\n"]],[]],null]],[1]]],[1," "]],["ContentViewItemLoader"],false,["let","component","each","-track-array"]]',moduleName:"profile-creator-shared/components/content-view-items/loading/component-builder.gts",isStrictMode:!0}),l)}))
|
|
define("profile-creator-shared/components/content-view-items/loading/document",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","profile-creator-shared/components/aspect-ratio","profile-creator-shared/components/content-view-items/loading/loading-wrapper"],(function(e,t,n,i,r,o){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const l=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"eidLEpsG",block:'[[[1,"\\n "],[10,0],[14,0,"profile-creator-shared-document__container"],[12],[1,"\\n "],[8,[32,0],[[24,0,"mb2"]],[["@aspectRatio"],["16:9"]],[["default"],[[[[1,"\\n "],[10,0],[15,0,[29,[[30,1,["baseClass"]]," profile-creator-shared-document__image"]]],[12],[1,"\\n "],[8,[32,1],null,null,null],[1,"\\n "],[13],[1,"\\n "]],[1]]]]],[1,"\\n "],[8,[32,1],[[24,0,"mb1 profile-creator-shared-loading__skeleton-border-radius-10"]],[["@width","@height"],[562,20]],null],[1,"\\n "],[8,[32,1],[[24,0,"profile-creator-shared-loading__skeleton-border-radius-7"]],[["@width","@height"],[562,14]],null],[1,"\\n "],[13],[1,"\\n"]],["img"],false,[]]',moduleName:"profile-creator-shared/components/content-view-items/loading/document.gts",scope:()=>[r.default,o.default],isStrictMode:!0}),(0,n.default)("document","Document"))
|
|
e.default=l}))
|
|
define("profile-creator-shared/components/content-view-items/loading/event",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","profile-creator-shared/components/aspect-ratio","profile-creator-shared/components/content-view-items/loading/loading-wrapper"],(function(e,t,n,i,r,o){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const l=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"UzgT0yQe",block:'[[[1,"\\n "],[10,0],[14,0,"display-flex mb5 full-width"],[12],[1,"\\n "],[10,0],[14,0,"profile-creator-shared-event__image-wrapper"],[12],[1,"\\n "],[8,[32,0],null,[["@aspectRatio"],["16:9"]],[["default"],[[[[1,"\\n "],[10,0],[15,0,[29,[[30,1,["baseClass"]]," profile-creator-shared-event__image"]]],[12],[1,"\\n "],[8,[32,1],null,null,null],[1,"\\n "],[13],[1,"\\n "]],[1]]]]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"display-flex flex-column full-width"],[12],[1,"\\n "],[8,[32,1],[[24,0,"mb1 profile-creator-shared-loading__skeleton-border-radius-7"]],[["@height","@width"],[14,105]],null],[1,"\\n "],[8,[32,1],[[24,0,"mb1 profile-creator-shared-loading__skeleton-border-radius-10"]],[["@height"],[20]],null],[1,"\\n "],[8,[32,1],[[24,0,"mb1 profile-creator-shared-loading__skeleton-border-radius-10"]],[["@height"],[20]],null],[1,"\\n "],[8,[32,1],[[24,0,"mb1 profile-creator-shared-loading__skeleton-border-radius-7"]],[["@height","@width"],[14,105]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],["img"],false,[]]',moduleName:"profile-creator-shared/components/content-view-items/loading/event.gts",scope:()=>[r.default,o.default],isStrictMode:!0}),(0,n.default)("event","Event"))
|
|
e.default=l}))
|
|
define("profile-creator-shared/components/content-view-items/loading/image",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","profile-creator-shared/components/aspect-ratio","profile-creator-shared/components/content-view-items/loading/loading-wrapper"],(function(e,t,n,i,r,o){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const l=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"NyOKtuwT",block:'[[[1,"\\n "],[10,0],[14,0,"profile-creator-shared-image__container"],[12],[1,"\\n "],[8,[32,0],null,[["@aspectRatio"],["1:1"]],[["default"],[[[[1,"\\n "],[10,0],[15,0,[29,[[30,1,["baseClass"]]," profile-creator-shared-image__img"]]],[12],[1,"\\n "],[8,[32,1],null,null,null],[1,"\\n "],[13],[1,"\\n "]],[1]]]]],[1,"\\n "],[13],[1,"\\n"]],["img"],false,[]]',moduleName:"profile-creator-shared/components/content-view-items/loading/image.gts",scope:()=>[r.default,o.default],isStrictMode:!0}),(0,n.default)("image","Image"))
|
|
e.default=l}))
|
|
define("profile-creator-shared/components/content-view-items/loading/loading-wrapper",["exports","@ember/template-factory","@ember/component","@glimmer/component","profile-creator-shared/components/content-view-items/loading/shimmer"],(function(e,t,n,i,r){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
class o extends i.default{get style(){const{width:e,height:t}=this.args
|
|
let n=""
|
|
n+=e?`width:${e}px; max-width: 100%;`:"width: 100%;"
|
|
n+=t?`height:${t}px; max-height: 100%;`:"height: 100%;"
|
|
return n}}e.default=o;(0,n.setComponentTemplate)((0,t.createTemplateFactory)({id:"2AghnNCp",block:'[[[1,"\\n "],[11,0],[24,0,"profile-creator-shared-loading__wrapper"],[16,5,[30,0,["style"]]],[24,"aria-busy","true"],[17,1],[12],[1,"\\n "],[8,[32,0],null,null,null],[1,"\\n "],[13],[1,"\\n "]],["&attrs"],false,[]]',moduleName:"profile-creator-shared/components/content-view-items/loading/loading-wrapper.gts",scope:()=>[r.default],isStrictMode:!0}),o)}))
|
|
define("profile-creator-shared/components/content-view-items/loading/mini-update",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","profile-creator-shared/components/content-view-items/loading/loading-wrapper"],(function(e,t,n,i,r){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const o=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"Y7V/IKqX",block:'[[[1,"\\n "],[10,0],[14,0,"profile-creator-shared-feed-update__mini-container"],[12],[1,"\\n "],[10,0],[14,0,"display-flex flex-row full-width"],[12],[1,"\\n "],[8,[32,0],[[24,0,"profile-creator-shared-loading__skeleton-border-radius-7"]],[["@width","@height"],[139,14]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"pt3 pb4 display-flex"],[12],[1,"\\n "],[10,0],[14,0,"pr3"],[12],[1,"\\n "],[8,[32,0],null,[["@height","@width"],[64,64]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"full-width"],[12],[1,"\\n "],[8,[32,0],[[24,0,"mb1"]],[["@height"],[16]],null],[1,"\\n "],[8,[32,0],[[24,0,"mb1"]],[["@height"],[16]],null],[1,"\\n "],[8,[32,0],null,[["@height"],[16]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"display-flex justify-space-between pb3 pt1"],[12],[1,"\\n "],[10,0],[14,0,"display-flex"],[12],[1,"\\n "],[8,[32,0],[[24,0,"mr1"]],[["@height","@width"],[14,14]],null],[1,"\\n "],[8,[32,0],[[24,0,"mr1"]],[["@height","@width"],[14,14]],null],[1,"\\n "],[8,[32,0],null,[["@height","@width"],[14,14]],null],[1,"\\n "],[13],[1,"\\n "],[8,[32,0],[[24,0,"mb1 profile-creator-shared-loading__skeleton-border-radius-7"]],[["@height","@width"],[14,56]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[],false,[]]',moduleName:"profile-creator-shared/components/content-view-items/loading/mini-update.gts",scope:()=>[r.default],isStrictMode:!0}),(0,n.default)("mini-update","MiniUpdate"))
|
|
e.default=o}))
|
|
define("profile-creator-shared/components/content-view-items/loading/newsletter",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","profile-creator-shared/components/content-view-items/loading/loading-wrapper","profile-creator-shared/components/content-view-items/loading/article"],(function(e,t,n,i,r,o){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const l=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"V9bEycG9",block:'[[[1,"\\n "],[10,0],[14,0,"profile-creator-shared-newsletter__container"],[12],[1,"\\n "],[10,0],[14,0,"display-flex full-width"],[12],[1,"\\n "],[10,0],[14,0,"profile-creator-shared-newsletter__logo"],[12],[1,"\\n "],[8,[32,0],[[24,0,"mb1"]],[["@height","@width"],[88,88]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"display-flex flex-column justify-center"],[12],[1,"\\n "],[8,[32,0],[[24,0,"mb1 profile-creator-shared-loading__skeleton-border-radius-7"]],[["@width","@height"],[100,14]],null],[1,"\\n "],[8,[32,0],[[24,0,"mb1"]],[["@width","@height"],[501,16]],null],[1,"\\n "],[8,[32,0],[[24,0,"mb1 profile-creator-shared-loading__skeleton-border-radius-7"]],[["@width","@height"],[100,14]],null],[1,"\\n "],[8,[32,0],[[24,0,"mb1 profile-creator-shared-loading__skeleton-border-radius-7"]],[["@width","@height"],[200,14]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"profile-creator-shared-loading__newsletter-article-container"],[12],[1,"\\n "],[8,[32,1],null,null,null],[1,"\\n "],[8,[32,1],null,null,null],[1,"\\n "],[13],[1,"\\n"]],[],false,[]]',moduleName:"profile-creator-shared/components/content-view-items/loading/newsletter.gts",scope:()=>[r.default,o.default],isStrictMode:!0}),(0,n.default)("newsletter","Newsletter"))
|
|
e.default=l}))
|
|
define("profile-creator-shared/components/content-view-items/loading/pills",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","profile-creator-shared/components/content-view-items/loading/loading-wrapper"],(function(e,t,n,i,r){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const o=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"l3u8s7mQ",block:'[[[1,"\\n "],[11,0],[24,0,"profile-creator-shared-pill__container-wrapper"],[17,1],[12],[1,"\\n "],[8,[32,0],[[24,0,"profile-creator-shared-pill__container"]],[["@width","@height"],[77,32]],null],[1,"\\n\\n "],[8,[32,0],[[24,0,"profile-creator-shared-pill__container"]],[["@width","@height"],[83,32]],null],[1,"\\n\\n "],[8,[32,0],[[24,0,"profile-creator-shared-pill__container"]],[["@width","@height"],[107,32]],null],[1,"\\n\\n "],[8,[32,0],[[24,0,"profile-creator-shared-pill__container"]],[["@width","@height"],[76,32]],null],[1,"\\n\\n "],[8,[32,0],[[24,0,"profile-creator-shared-pill__container"]],[["@width","@height"],[111,32]],null],[1,"\\n\\n "],[13],[1,"\\n"]],["&attrs"],false,[]]',moduleName:"profile-creator-shared/components/content-view-items/loading/pills.gts",scope:()=>[r.default],isStrictMode:!0}),(0,n.default)("pills","Pills"))
|
|
e.default=o}))
|
|
define("profile-creator-shared/components/content-view-items/loading/reactions-and-comments",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","artdeco-card/components/artdeco-card","profile-creator-shared/components/content-view-items/loading/shimmer","profile-creator-shared/components/content-view-items/loading/loading-wrapper"],(function(e,t,n,i,r,o,l){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const a=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"2WKAk7pj",block:'[[[1,"\\n "],[10,0],[14,0,"profile-creator-shared-feed-update__container"],[12],[1,"\\n "],[8,[32,0],null,null,[["default"],[[[[1,"\\n "],[10,0],[14,0,"p4"],[12],[1,"\\n "],[10,0],[14,0,"display-flex align-items-center full-width"],[12],[1,"\\n "],[10,0],[14,0,"profile-creator-shared-feed-updated__circle2 pvs-loader__wrapper"],[12],[8,[32,1],null,null,null],[13],[1,"\\n "],[8,[32,2],[[24,0,"profile-creator-shared-loading__skeleton-border-radius-7"]],[["@width","@height"],[242,14]],null],[1,"\\n "],[13],[1,"\\n "],[10,"hr"],[14,0,"artdeco-divider mb4"],[12],[13],[1,"\\n "],[10,0],[14,0,"display-flex mv2"],[12],[1,"\\n "],[8,[32,2],[[24,0,"profile-creator-shared-feed-updated__circle"]],[["@width","@height"],[48,48]],null],[1,"\\n "],[10,0],[14,0,"display-flex flex-column"],[12],[1,"\\n "],[8,[32,2],[[24,0,"mb1"]],[["@width","@height"],[177,16]],null],[1,"\\n "],[8,[32,2],[[24,0,"mb1 profile-creator-shared-loading__skeleton-border-radius-7"]],[["@width","@height"],[177,14]],null],[1,"\\n "],[8,[32,2],[[24,0,"mb1 profile-creator-shared-loading__skeleton-border-radius-7"]],[["@width","@height"],[60,14]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[8,[32,2],[[24,0,"mb1 profile-creator-shared-loading__skeleton-border-radius-7"]],[["@width","@height"],[351,14]],null],[1,"\\n "],[8,[32,2],[[24,0,"profile-creator-shared-loading__skeleton-border-radius-7"]],[["@width","@height"],[351,14]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[32,2],[[24,0,"profile-creator-shared-loading__update-image"]],[["@height"],[375]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[],false,[]]',moduleName:"profile-creator-shared/components/content-view-items/loading/reactions-and-comments.gts",scope:()=>[r.default,o.default,l.default],isStrictMode:!0}),(0,n.default)("reactions-and-comments","ReactionsAndComments"))
|
|
e.default=a}))
|
|
define("profile-creator-shared/components/content-view-items/loading/scroll",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","artdeco-loader/components/artdeco-loader"],(function(e,t,n,i,r){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const o=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"YLk/B2Kk",block:'[[[8,[32,0],null,[["@size"],["small"]],null]],[],false,[]]',moduleName:"profile-creator-shared/components/content-view-items/loading/scroll.gts",scope:()=>[r.default],isStrictMode:!0}),(0,n.default)("scroll","Scroll"))
|
|
e.default=o}))
|
|
define("profile-creator-shared/components/content-view-items/loading/shimmer",["exports","@ember/template-factory","@ember/component/template-only","@ember/component"],(function(e,t,n,i){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const r=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"9GyJdzbl",block:'[[[1,"\\n "],[10,0],[14,0,"pvs-loader__shimmer pvs-loader__shimmer--fill-area"],[12],[13],[1,"\\n"]],[],false,[]]',moduleName:"profile-creator-shared/components/content-view-items/loading/shimmer.gts",isStrictMode:!0}),(0,n.default)("shimmer","Shimmer"))
|
|
e.default=r}))
|
|
define("profile-creator-shared/components/content-view-items/loading/video",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","profile-creator-shared/components/aspect-ratio","profile-creator-shared/components/content-view-items/loading/loading-wrapper"],(function(e,t,n,i,r,o){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const l=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"yAVehn+A",block:'[[[1,"\\n "],[10,0],[14,0,"profile-creator-shared-video__container"],[12],[1,"\\n "],[8,[32,0],[[24,0,"mb2"]],[["@aspectRatio"],["4:5"]],[["default"],[[[[1,"\\n "],[10,0],[15,0,[29,[[30,1,["baseClass"]]," profile-creator-shared-video__image"]]],[12],[1,"\\n "],[8,[32,1],null,null,null],[1,"\\n "],[13],[1,"\\n "]],[1]]]]],[1,"\\n "],[8,[32,1],[[24,0,"mb1"]],[["@height"],[16]],null],[1,"\\n "],[8,[32,1],null,[["@height"],[16]],null],[1,"\\n "],[13],[1,"\\n"]],["img"],false,[]]',moduleName:"profile-creator-shared/components/content-view-items/loading/video.gts",scope:()=>[r.default,o.default],isStrictMode:!0}),(0,n.default)("video","Video"))
|
|
e.default=l}))
|
|
define("profile-creator-shared/components/content-view-items/newsletter",["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-creator-shared/utils/constants","@ember/service","@glimmer/component","@ember/object","app-aware-link/components/app-aware-link","ember-cli-pemberly-tracking/modifiers/track-interaction","image-view-model/components/image-view-model","ember-vector-images/components/lazy-image","ember-cli-pemberly-i18n/helpers/t","publishing-shared/helpers/cadence","global-helpers/helpers/and","publishing-shared/components/subscribe-button","@ember/modifier"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var T,C,E
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"OVPgnzi2",block:'[[[1,"\\n"],[1," "],[10,0],[14,0,"profile-creator-shared-newsletter__container"],[12],[1,"\\n "],[8,[32,0],[[24,0,"display-flex link-without-hover-visited align-items-center flex-1"],[24,"target","_blank"],[24,"rel","noopener noreferrer"],[4,[32,1],["creator_profile_newsletter_header"],null]],[["@href"],[[30,1]]],[["default"],[[[[1,"\\n"],[41,[30,2,["logo"]],[[[1," "],[8,[32,2],null,[["@imgClasses","@desiredHeight","@desiredWidth","@images"],["EntityPhoto-square-6 profile-creator-shared-newsletter__logo",88,88,[30,2,["logo"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,3],null,[["@class","@alt","@width","@height","@ghostType"],["EntityPhoto-square-6 profile-creator-shared-newsletter__logo",[28,[32,4],["i18n_newsletter_logo","profile-creator-shared/components/content-view-items/newsletter"],null],88,88,"content"]],null],[1,"\\n"]],[]]],[1," "],[10,0],[12],[1,"\\n "],[10,"h2"],[14,0,"text-heading-large hoverable-link-text"],[12],[1,"\\n "],[1,[30,2,["title"]]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"mb1 inline-flex"],[12],[1,"\\n"],[41,[30,2,["publishFrequency"]],[[[1," "],[10,1],[14,0,"text-body-xsmall t-black--light"],[12],[1,"\\n"],[1," "],[1,[28,[32,4],[[28,[32,5],[[30,2,["publishFrequency"]]],null],"profile-creator-shared/components/content-view-items/newsletter"],null]],[1,"\\n"],[1," "],[13],[1,"\\n"]],[]],null],[41,[28,[32,6],[[30,2,["publishFrequency"]],[30,2,["subscribeAction"]]],null],[[[1," "],[10,1],[14,0,"text-body-xsmall t-black--light mh1"],[12],[1,"•"],[13],[1,"\\n"]],[]],null],[41,[30,2,["subscribeAction"]],[[[1," "],[10,1],[14,0,"text-body-xsmall t-black--light"],[12],[1,"\\n "],[1,[28,[32,4],["i18n_subscriber_count","profile-creator-shared/components/content-view-items/newsletter"],[["subscriberCount"],[[30,2,["subscribeAction","subscriberCount"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,2],[14,0,"text-body-small mb1"],[12],[1,"\\n "],[1,[30,2,["description"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"],[41,[30,2,["subscribeAction"]],[[[1," "],[8,[32,7],[[24,0,"profile-creator-shared-newsletter__button"],[4,[32,8],["click",[30,0,["fireFAE"]]],null],[4,[32,1],[[30,0,["controlName"]]],null]],[["@entity","@type","@color"],[[30,2],"secondary","muted"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@navigationUrl","@model"],false,["if"]]',moduleName:"profile-creator-shared/components/content-view-items/newsletter.gts",scope:()=>[u.default,m.default,f.default,h.default,g.default,b.default,y.default,_.default,v.on],isStrictMode:!0}),(T=(0,c.inject)("feed-tracking@feed-action-event"),C=class extends p.default{constructor(){super(...arguments);(0,t.default)(this,"feedActionEvent",E,this);(0,n.default)(this,"moduleKey",s.MODULE_KEY_MAP.NEWSLETTER_ARTICLES);(0,n.default)(this,"controlName","creator_profile_newsletter_subscribe_button")}fireFAE(){if(this.args.trackingId&&this.args.backendUpdateUrn){this.feedActionEvent.setCustomModuleKey(this.moduleKey)
|
|
this.feedActionEvent.fireFAE({},{actionCategory:"FOLLOW",actionType:"seriesSubscribe",controlName:this.controlName},{updateUrn:this.args.backendUpdateUrn,trackingId:this.args.trackingId})}}},E=(0,i.default)(C.prototype,"feedActionEvent",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(C.prototype,"fireFAE",[d.action],Object.getOwnPropertyDescriptor(C.prototype,"fireFAE"),C.prototype),C))}))
|
|
define("profile-creator-shared/components/content-view-items/reactions-and-comments",["exports","@ember/template-factory","@ember/helper","@ember/component","@glimmer/component","global-modifiers/modifiers/scroll-into-view","feed-shared/components/update/generic-update"],(function(e,t,n,i,r,o,l){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
class a extends r.default{get occlusionEnabled(){return!(this.args.index<5)}get shouldScroll(){const e=this.args.model.entityUrn
|
|
return!!(this.args.activityUrnToFocusOn&&e&&e.indexOf(this.args.activityUrnToFocusOn)>-1)}}e.default=a;(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"9d6rknje",block:'[[[1,"\\n "],[10,0],[14,0,"relative"],[12],[1,"\\n "],[11,0],[24,0,"profile-creator-shared-feed-update__anchor"],[4,[32,0],null,[["when"],[[30,0,["shouldScroll"]]]]],[12],[13],[1,"\\n "],[8,[32,1],null,[["@model","@customModuleKey","@pageKey","@hideCaEntryPoint","@occlusionEnabled","@hideCommentsWithoutInteraction","@isDashEnabled"],[[30,1],[30,2],[30,3],true,[30,0,["occlusionEnabled"]],true,true]],null],[1,"\\n "],[13],[1,"\\n "]],["@model","@moduleKey","@pageKey"],false,[]]',moduleName:"profile-creator-shared/components/content-view-items/reactions-and-comments.gts",scope:()=>[o.default,l.default],isStrictMode:!0}),a)}))
|
|
define("profile-creator-shared/components/content-view-items/video",["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/tracking-id","profile-creator-shared/utils/constants","@ember/service","@glimmer/component","@ember/object","app-aware-link/components/app-aware-link","ember-cli-pemberly-i18n/helpers/t","@ember/modifier","ember-cli-pemberly-tracking/modifiers/track-interaction","profile-creator-shared/components/aspect-ratio","image-view-model/components/image-view-model","text-view-model/components/text-view-model-v2","inline-show-more-text/components/inline-show-more-text","social-details/components/social-counts"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var C,E,w
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"JNgU+nye",block:'[[[1,"\\n"],[1," "],[11,0],[17,1],[12],[1,"\\n "],[8,[32,0],[[16,"aria-label",[52,[30,2,["titleText"]],[30,2,["titleText","text"]],[28,[32,1],["i18n_a11y_default_video_label_text","profile-creator-shared/components/content-view-items/video"],[["memberName"],[[30,3]]]]]],[24,0,"link-without-hover-visited"],[24,"target","_blank"],[24,"rel","noopener noreferrer"],[4,[32,2],["click",[30,0,["fireFAE"]]],null],[4,[32,3],[[30,0,["controlName"]]],null]],[["@href"],[[30,4]]],[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@aspectRatio"],["4:5"]],[["default"],[[[[1,"\\n "],[8,[32,5],null,[["@imgWidth","@images","@imgClasses"],[400,[30,2,["thumbnail"]],[29,[[30,5,["baseClass"]]," profile-creator-shared-video__image-updated"]]]],null],[1,"\\n"],[41,[30,2,["videoViews"]],[[[1," "],[10,0],[14,0,"profile-creator-shared-video__views-wrapper"],[12],[1,"\\n "],[8,[32,6],null,[["@tvm"],[[30,2,["videoViews"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[5]]]]],[1,"\\n"],[41,[30,2,["titleText"]],[[[1," "],[8,[32,7],null,[["@class","@lines","@showLessButton","@showMoreButton","@tvm"],["text-body-xsmall-bold t-black hoverable-link-text mt1",2,false,false,[30,2,["titleText"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["showSocialActivityCounts"]],[[[1," "],[8,[32,8],[[24,0,"mh0 pb0"]],[["@socialActivityCounts","@shouldHideBottomBorder","@hideSharesTotal","@isReactionsCountTruncated","@isCommentsCountTruncated"],[[30,2,["socialActivityCounts"]],true,true,true,true]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@model","@memberName","@navigationUrl","img"],false,["if"]]',moduleName:"profile-creator-shared/components/content-view-items/video.gts",scope:()=>[m.default,f.default,h.on,g.default,b.default,y.default,_.default,v.default,T.default],isStrictMode:!0}),(C=(0,p.inject)("feed-tracking@feed-action-event"),E=class extends d.default{constructor(){super(...arguments);(0,t.default)(this,"feedActionEvent",w,this);(0,n.default)(this,"moduleKey",c.MODULE_KEY_MAP.VIDEOS);(0,n.default)(this,"controlName","creator_profile_video_card")}get showSocialActivityCounts(){var e
|
|
const{socialActivityCounts:t}=this.args.model
|
|
if(!t)return!1
|
|
const n=t.numComments>0,i=((null===(e=t.reactionTypeCounts)||void 0===e?void 0:e.length)||0)>0
|
|
return n||i}fireFAE(){if(this.args.trackingId&&this.args.backendUpdateUrn){this.feedActionEvent.setCustomModuleKey(this.moduleKey)
|
|
this.feedActionEvent.fireFAE({},{actionCategory:"VIEW",actionType:"viewVideoLink",controlName:this.controlName},{updateUrn:this.args.backendUpdateUrn,trackingId:(0,s.getByteStringAsBase64)(this.args.trackingId)})}}},w=(0,i.default)(E.prototype,"feedActionEvent",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(E.prototype,"fireFAE",[u.action],Object.getOwnPropertyDescriptor(E.prototype,"fireFAE"),E.prototype),E))}))
|
|
define("profile-creator-shared/components/content-view-list-builder",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/classPrivateMethodGet","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","global-utils/utils/urn-id-helpers","profile-creator-shared/utils/constants","profile-creator-shared/utils/get-component-path","@ember/service","@glimmer/component","ember-cli-pemberly-i18n/helpers/t","feed-shared/components/mini-update","global-helpers/helpers/sum","profile-creator-shared/components/-private/content-view-item-builder","profile-creator-shared/components/content-view-items/empty"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var y,_,v,T,C,E
|
|
e.default=(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"Dw+N5zqe",block:'[[[1,"\\n"],[1," "],[8,[30,1],[[24,0,"full-width"]],null,[["content","empty"],[[[[1,"\\n "],[10,0],[14,0,"visually-hidden"],[14,"aria-live","polite"],[12],[1,"\\n "],[1,[28,[32,0],["i18n_a11y_loaded_posts_text","profile-creator-shared/components/content-view-list-builder"],[["numberOfItems","selectedPilli18nName"],[[30,3,["length"]],[30,4]]]]],[1,"\\n "],[13],[1,"\\n "],[11,"ul"],[24,0,"display-flex flex-wrap list-style-none"],[17,5],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,3]],null]],null],null,[[[41,[30,6],[[[1," "],[10,"li"],[15,0,[30,8,["wrapperClass"]]],[12],[1,"\\n "],[8,[30,2],null,[["@index"],[[30,7]]],[["default"],[[[[1,"\\n"],[41,[30,0,["isMiniUpdate"]],[[[1," "],[8,[32,1],[[24,0,"profile-creator-shared-feed-update__mini-update"]],[["@hideActor","@miniUpdate","@listPositionIndex","@customModuleKey","@hideSocialActivityCounts"],[true,[30,6],[28,[32,2],[[30,7],1],null],[30,8,["moduleKey"]],[30,0,["hideSocialActivityCounts"]]]],null],[1,"\\n"]],[]],[[[41,[30,9],[[[44,[[50,[30,0,["componentPath"]],0,null,null]],[[[1," "],[8,[30,10],null,[["@model","@index","@moduleKey","@pageKey","@activityUrnToFocusOn"],[[30,6],[30,7],[30,8,["moduleKey"]],[30,8,["pageKey"]],[30,0,["activityUrnToFocusOn"]]]],null],[1,"\\n"]],[10]]]],[]],[[[1," "],[8,[32,3],null,[["@contentViewModel","@memberName","@moduleKey","@pageKey","@controlNameOverrideMap"],[[30,6],[30,11],[30,8,["moduleKey"]],[30,8,["pageKey"]],[30,0,["controlNameOverrideMap"]]]],null],[1,"\\n "]],[]]]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[6,7]],null],[1," "],[13],[1,"\\n "]],[2,3]],[[[1,"\\n "],[8,[32,4],null,[["@memberName","@isSelfView","@isTruncated","@selectedPill","@contentTypes"],[[30,11],[30,12],[30,13],[30,14],[30,15]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@containerComponent","ItemContainer","items","@selectedPilli18nName","&attrs","model","index","@selectedPillInfo","@isUpdateType","ContentViewItem","@memberName","@isSelfView","@isTruncated","@selectedPill","@contentTypes"],false,["each","-track-array","if","let","component"]]',moduleName:"profile-creator-shared/components/content-view-list-builder.gts",scope:()=>[m.default,f.default,h.default,g.default,b.default],isStrictMode:!0}),(y=(0,d.inject)("client-sensor-web@client-sensor"),_=(0,d.inject)("router"),v=(E=new WeakSet,class extends u.default{constructor(e,n){super(e,n)
|
|
E.add(this);(0,t.default)(this,"clientSensor",T,this);(0,t.default)(this,"router",C,this);(0,i.default)(this,E,w).call(this)}get hideSocialActivityCounts(){return this.args.selectedPill===c.DEFAULT_CONTENT_TO_PILL.commentsMiniUpdates}get isMiniUpdate(){return this.args.isTruncated&&this.args.isUpdateType}get componentPath(){var e
|
|
const t=null===(e=this.args.selectedPillInfo)||void 0===e?void 0:e.componentName
|
|
return(0,p.getComponentPath)(t||"")}get controlNameOverrideMap(){var e
|
|
return"newsletter"===(null===(e=this.args.selectedPillInfo)||void 0===e?void 0:e.componentName)?{articleOverride:"creator_profile_newsletter_card"}:void 0}get activityUrnToFocusOn(){var e,t,n,i
|
|
const r=null===(e=this.router.currentRoute)||void 0===e||null===(t=e.queryParams)||void 0===t?void 0:t.updateEntityUrn
|
|
return(r?null===(n=(0,s.extractUrnParts)(r))||void 0===n||null===(i=n[1])||void 0===i?void 0:i.replace(/[()]/g,"").split(",")[0]:void 0)||""}}),T=(0,r.default)(v.prototype,"clientSensor",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,r.default)(v.prototype,"router",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v))
|
|
function w(){this.args.isTruncated?this.clientSensor.incrementMetricCounter({groupName:"profile",metricName:"content-view-served-top-level"}):this.clientSensor.incrementMetricCounter({groupName:"profile",metricName:"content-view-served-detail-view"})}}))
|
|
define("profile-creator-shared/components/content-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/service","@glimmer/component","profile-creator-shared/components/content-view-container","ember-cli-pemberly-i18n/helpers/t","profile-creator-shared/components/content-view-items/loading/component-builder","profile-creator-shared/components/content-view-items/error","profile-creator-shared/components/content-view-list-builder","profile-creator-shared/components/content-view-items/empty"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var h,g,b,y,_,v,T,C,E
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"ds1aXdhb",block:'[[[1,"\\n"],[1," "],[8,[32,0],null,[["@defaultContent","@contentTypes","@profileUrn","@vanityName","@isTruncated"],[[30,0,["defaultContent"]],[30,0,["neededContentTypes"]],[30,1,["entityUrn"]],[30,1,["publicIdentifier"]],[30,0,["isTruncated"]]]],[["nav","content"],[[[[1,"\\n "],[8,[30,2],null,null,null],[1,"\\n "]],[2]],[[[1,"\\n"],[41,[30,4],[[[1," "],[8,[30,3],null,null,[["default"],[[[[1,"\\n"],[41,[30,6,["isPending"]],[[[1," "],[10,0],[14,0,"visually-hidden"],[14,"aria-live","polite"],[15,"aria-label",[28,[32,1],["i18n_a11y_loading_posts_text","profile-creator-shared/components/content-view"],[["selectedPilli18nName"],[[30,11]]]]],[12],[1,"\\n "],[13],[1,"\\n "],[10,0],[15,0,[29,["display-flex flex-wrap ",[30,9]]]],[12],[1,"\\n "],[8,[32,2],null,[["@selectedPillInfo"],[[30,5]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,6,["isRejected"]],[[[1," "],[10,0],[14,0,"visually-hidden"],[14,"aria-live","polite"],[15,"aria-label",[28,[32,1],["i18n_a11y_error_loading_posts","profile-creator-shared/components/content-view"],[["selectedPilli18nName"],[[30,11]]]]],[12],[1,"\\n "],[13],[1,"\\n "],[8,[32,3],null,[["@onReload"],[[30,10]]],null],[1,"\\n"]],[]],[[[41,[30,6,["isResolved"]],[[[1," "],[8,[32,4],[[16,0,[30,9]]],[["@isUpdateType","@memberName","@selectedPillInfo","@selectedPilli18nName","@isSelfView","@containerComponent","@isTruncated","@selectedPill","@contentTypes"],[[30,8],[30,0,["memberName"]],[30,5],[30,11],[30,0,["isSelfView"]],[30,7],[30,0,["isTruncated"]],[30,4],[30,0,["neededContentTypes"]]]],null],[1,"\\n "]],[]],null]],[]]]],[]]],[1," "]],[5,6,7,8,9,10,11]]]]],[1,"\\n"]],[]],[[[1," "],[8,[32,5],null,[["@memberName","@isSelfView","@isTruncated"],[[30,0,["memberName"]],[30,0,["isSelfView"]],[30,0,["isTruncated"]]]],null],[1,"\\n"]],[]]],[1," "]],[3,4]]]]],[1,"\\n "]],["@vieweeProfile","Pills","DataLoader","selectedPill","selectedPillInfo","initialContentViewCall","ListContainerComponent","isUpdateType","containerClass","onReload","selectedPilli18nName"],false,["if"]]',moduleName:"profile-creator-shared/components/content-view.gts",scope:()=>[c.default,p.default,d.default,u.default,m.default,f.default],isStrictMode:!0}),(h=(0,a.inject)("profile-services@profile"),g=(0,a.inject)("router"),b=(0,a.inject)("profile-services@scroll-manager"),y=(0,a.inject)("global-services@window"),_=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"profile",v,this);(0,t.default)(this,"router",T,this);(0,t.default)(this,"scrollManager",C,this);(0,t.default)(this,"windowService",E,this)}get isSelfView(){return this.profile.isSelfView}get memberName(){return{firstName:this.args.vieweeProfile.firstName,lastName:this.args.vieweeProfile.lastName}}get isTruncated(){var e
|
|
return!(null!==(e=this.router.currentRouteName)&&void 0!==e&&e.includes("recent-activity"))}get defaultContent(){return this.isTruncated?this.args.topViewDefaultContent:this.args.detailsViewDefaultContent}get neededContentTypes(){return this.isTruncated?this.args.contentTypes:this.args.detailedContentTypes}get defaultPillFromScrollRestoration(){if(this.isTruncated){var e
|
|
return this.scrollManager.getScrollRestoredRecentCardPill((null===(e=this.windowService.getLocation())||void 0===e?void 0:e.pathname)??"")}return null}},v=(0,i.default)(_.prototype,"profile",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,i.default)(_.prototype,"router",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,i.default)(_.prototype,"scrollManager",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,i.default)(_.prototype,"windowService",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_))}))
|
|
define("profile-creator-shared/components/update-detail-viewer-trigger",["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/tracking-id","@ember/debug","ember-async-data/tracked-async-data","global-utils/utils/api-compat","@glimmer/tracking","@ember/service","@ember/object","@glimmer/component","@ember/destroyable","tracked-built-ins","graphql-queries/queries/feed/single-update.graphql","artdeco-modal/components/artdeco-modal","ember-set-helper/helpers/set","ember-cli-pemberly-i18n/helpers/t","artdeco-loader/components/artdeco-loader","feed-shared/components/render-models/update-v2","feed-shared/components/update/update-detail-viewer","sharing-entry/components/share-box-modal"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E,w){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
e.getFeedUpdate=F
|
|
var P,S,O,k,A,I,M,D,N,R,x,U,L
|
|
const j={"com.linkedin.voyager.feed.render.ImageComponent":"images","com.linkedin.voyager.feed.render.CelebrationComponent":"image","com.linkedin.voyager.feed.render.SlideshowComponent":"slideshow"}
|
|
function F(e,t,n,i,r,o){const l=o?n.replace("urn:li:fs_updateV2:","urn:li:fsd_update:"):n,s={moduleKey:i,commentsCount:10,likesCount:10}
|
|
r&&(s.originTrackingId=(0,a.getByteStringAsBase64)(r))
|
|
if(o){s.updateUrn=l
|
|
return t.executeQuery(b.default,s).then((e=>{var t
|
|
return null==e||null===(t=e.data)||void 0===t?void 0:t.feedDashUpdatesById}))}const c=`feed/updates|${l}`
|
|
return e.queryURL(`feed/updatesV2/${l}`,{cacheKey:c,params:s})}e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"ZoFnBNd+",block:'[[[1,"\\n"],[1," "],[18,6,[[30,0,["fetchAndOpen"]]]],[1,"\\n\\n"],[41,[30,0,["asyncUpdateFetch","isPending"]],[[[1," "],[8,[32,0],null,[["@size","@isOpen","@modalClasses","@overlayClasses","@dismissModal"],["x-large",[30,0,["isLoadingStateShowing"]],"feed-shared-update-detail-viewer","display-flex flex-column",[28,[32,1],[[30,0],"isLoadingStateShowing",false],null]]],[["default"],[[[[1,"\\n "],[8,[30,1,["artdeco-modal-header"]],[[24,0,"hidden"]],null,[["default"],[[[[1,"\\n "],[10,"h2"],[14,1,"modal-loading-screen__header"],[12],[1,"\\n "],[1,[28,[32,2],["i18n_modal_header","profile-creator-shared/components/update-detail-viewer-trigger"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[1," "],[8,[30,1,["artdeco-modal-content"]],null,[["@classNames"],["full-height p0"]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"feed-shared-update-detail-viewer__content"],[12],[1,"\\n "],[10,0],[14,0,"feed-shared-update-detail-viewer__left-panel"],[12],[1,"\\n "],[10,0],[14,0,"display-flex justify-center flex-column full-height"],[12],[1,"\\n "],[8,[32,3],null,[["@type"],["inverse"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"feed-shared-update-detail-viewer__right-panel"],[12],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[1]]]]],[1,"\\n"]],[]],[[[41,[30,0,["hasTriggeredContent"]],[[[1," "],[8,[32,4],null,[["@update","@isDashEnabled","@customModuleKey","@isWrapped"],[[30,0,["mediaViewerUpdate"]],[30,0,["isProfileUpdatesV2DashEnabled"]],[30,2],true]],[["default"],[[[[1,"\\n "],[8,[32,5],null,[["@actorComponent","@addCommentUrnToReportedUrns","@commentaryComponent","@displayImages","@isReshareButtonShareboxOpen","@isUpdateDetailViewerOpen","@slides","@onCloseModalClick","@reportedCommentUrns","@socialDetailComponent","@toggleReshareButtonSharebox","@transitionFromUpdateDetailToMessageDrawer","@updateMetadata","@updateTrackingObj"],[[30,3,["actor"]],[30,0,["addCommentUrnToReportedUrns"]],[30,3,["commentaryContainer"]],[30,0,["displayImages"]],[30,0,["isReshareButtonShareboxOpen"]],[30,0,["isUpdateDetailViewerOpen"]],[30,0,["updateContentSlides"]],[28,[32,1],[[30,0],"isUpdateDetailViewerOpen",false],null],[30,0,["reportedCommentUrns"]],[52,[30,5,["hasSocialDetail"]],[30,3,["updateV2SocialActivity"]]],[30,0,["toggleReshareButtonSharebox"]],[30,0,["transitionFromUpdateDetailToMessageDrawer"]],[30,0,["updateMetadata"]],[30,5,["updateTrackingObj"]]]],null],[1,"\\n "]],[3,4,5]]]]],[1,"\\n "],[8,[32,6],null,[["@updateV2","@onCloseShareboxModal","@onShareSuccess","@isShareboxModalOpen","@customTextInputI18nPlaceholderText","@shareOrigin"],[[30,0,["mediaViewerUpdate"]],[28,[32,1],[[30,0],"isReshareButtonShareboxOpen",false],null],[28,[32,1],[[30,0],"isReshareButtonShareboxOpen",false],null],[30,0,["isReshareButtonShareboxOpen"]],[28,[32,2],["i18n_reshare_modal_prompt","profile-creator-shared/components/update-detail-viewer-trigger"],null],"RESHARE"]],null],[1,"\\n "]],[]],null]],[]]],[1," "]],["modal","@moduleKey","components","actions","properties","&default"],false,["yield","if"]]',moduleName:"profile-creator-shared/components/update-detail-viewer-trigger.gts",scope:()=>[y.default,_.default,v.default,T.default,C.default,E.default,w.default],isStrictMode:!0}),(P=(0,u.inject)("global-services@store-shim"),S=(0,u.inject)("social-counts-service@social-counts"),O=(0,u.inject)("lix"),k=(0,u.inject)("@linkedin/ember-restli-graphql@graphql"),A=class extends f.default{constructor(){super(...arguments);(0,t.default)(this,"storeShim",I,this);(0,t.default)(this,"socialCountsService",M,this);(0,t.default)(this,"lix",D,this);(0,t.default)(this,"graphql",N,this);(0,t.default)(this,"isUpdateDetailViewerOpen",R,this);(0,t.default)(this,"isLoadingStateShowing",x,this);(0,t.default)(this,"isReshareButtonShareboxOpen",U,this);(0,t.default)(this,"asyncUpdateFetch",L,this);(0,n.default)(this,"reportedCommentUrns",new g.TrackedArray)}get isProfileUpdatesV2DashEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.profile-dash-updates-v2")}get mediaViewerUpdate(){var e
|
|
return null===(e=this.asyncUpdateFetch)||void 0===e?void 0:e.value}get hasTriggeredContent(){var e
|
|
return!(null===(e=this.asyncUpdateFetch)||void 0===e||!e.isResolved||!this.isUpdateDetailViewerOpen&&!this.isReshareButtonShareboxOpen)}get displayImages(){var e,t
|
|
const n=null===(e=this.mediaViewerUpdate)||void 0===e?void 0:e.content
|
|
if(null===(t=this.mediaViewerUpdate)||void 0===t||!t.actor||!n)return[]
|
|
if(this.isProfileUpdatesV2DashEnabled){var i,r
|
|
const e=null===(i=n.imageComponent)||void 0===i?void 0:i.images
|
|
if(e)return e
|
|
const t=null===(r=n.celebrationComponent)||void 0===r?void 0:r.image
|
|
return t?[t]:[]}const o=j[(0,p.classNameOf)(n)]
|
|
if(o){const e=n[o]
|
|
if(e)return void 0===e.length?[e]:e}return[]}get updateContentSlides(){var e,t
|
|
const n=null===(e=this.mediaViewerUpdate)||void 0===e?void 0:e.content
|
|
return null!==(t=this.mediaViewerUpdate)&&void 0!==t&&t.actor&&n?this.isProfileUpdatesV2DashEnabled?n.slideshowComponent:n:null}get updateMetadata(){var e,t
|
|
return this.isProfileUpdatesV2DashEnabled?null===(e=this.mediaViewerUpdate)||void 0===e?void 0:e.metadata:null===(t=this.mediaViewerUpdate)||void 0===t?void 0:t.updateMetadata}toggleReshareButtonSharebox(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null
|
|
this.isUpdateDetailViewerOpen&&(this.isUpdateDetailViewerOpen=!1)
|
|
this.isReshareButtonShareboxOpen=e??!this.isReshareButtonShareboxOpen}transitionFromUpdateDetailToMessageDrawer(){this.isUpdateDetailViewerOpen=!this.isUpdateDetailViewerOpen
|
|
if("undefined"==typeof FastBoot){const e=document.querySelector(".msg-connections-typeahead__search-field")
|
|
e instanceof HTMLElement&&e.focus()}}addCommentUrnToReportedUrns(e){this.reportedCommentUrns.push(e)}fetchAndOpen(){this.isLoadingStateShowing=!0
|
|
this.asyncUpdateFetch=new c.default(F(this.storeShim,this.graphql,this.args.updateUrn,"feed-item:desktop",this.args.originTrackingId,this.isProfileUpdatesV2DashEnabled).then((e=>{if(!(0,h.isDestroying)(this)){this.isUpdateDetailViewerOpen=!0
|
|
this.socialCountsService.registerSocialCounts(null==e?void 0:e.socialDetail)
|
|
return e}})))}},I=(0,i.default)(A.prototype,"storeShim",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,i.default)(A.prototype,"socialCountsService",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,i.default)(A.prototype,"lix",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,i.default)(A.prototype,"graphql",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,i.default)(A.prototype,"isUpdateDetailViewerOpen",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),x=(0,i.default)(A.prototype,"isLoadingStateShowing",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),U=(0,i.default)(A.prototype,"isReshareButtonShareboxOpen",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),L=(0,i.default)(A.prototype,"asyncUpdateFetch",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(A.prototype,"toggleReshareButtonSharebox",[m.action],Object.getOwnPropertyDescriptor(A.prototype,"toggleReshareButtonSharebox"),A.prototype),(0,i.default)(A.prototype,"transitionFromUpdateDetailToMessageDrawer",[m.action],Object.getOwnPropertyDescriptor(A.prototype,"transitionFromUpdateDetailToMessageDrawer"),A.prototype),(0,i.default)(A.prototype,"addCommentUrnToReportedUrns",[m.action],Object.getOwnPropertyDescriptor(A.prototype,"addCommentUrnToReportedUrns"),A.prototype),(0,i.default)(A.prototype,"fetchAndOpen",[m.action],Object.getOwnPropertyDescriptor(A.prototype,"fetchAndOpen"),A.prototype),A))}))
|
|
define("profile-creator-shared/modifiers/data-loader-resetter",["exports","ember-modifier"],(function(e,t){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
class n extends t.default{didUpdateArguments(){this.args.named.onReset()}}e.default=n}))
|
|
define("profile-creator-shared/utils/constants",["exports"],(function(e){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.pillRenderInfoMap=e.UPDATE_CONTENT_TYPES=e.ROUTE_BASED_CONTENT_VIEW_ROUTES=e.RECENT_ACTIVITY_ROUTES=e.PILL_TO_DEEPLINK_MAP=e.MODULE_KEY_MAP=e.MODEL_TO_COMPONENT_MAP=e.MINI_UPDATE_CONTENT_TYPES=e.DEFAULT_CONTENT_UNION_KEYS=e.DEFAULT_CONTENT_TO_PILL=e.DEEPLINK_TO_PILL_MAP=void 0
|
|
e.DEFAULT_CONTENT_UNION_KEYS=["images","videos","events","articles","newsletterArticles","documents","allPostsMiniUpdates","allPosts","comments","commentsMiniUpdates"],e.DEEPLINK_TO_PILL_MAP=Object.freeze({images:"IMAGES_AND_MULTI_PHOTOS",videos:"VIDEOS",events:"EVENTS",articles:"ARTICLES",newsletter:"NEWSLETTER_ARTICLES",documents:"DOCUMENTS",all:"ALL_POSTS",comments:"COMMENTS",reactions:"REACTIONS"}),e.PILL_TO_DEEPLINK_MAP=Object.freeze({IMAGES_AND_MULTI_PHOTOS:"images",VIDEOS:"videos",EVENTS:"events",ARTICLES:"articles",NEWSLETTER_ARTICLES:"newsletter",DOCUMENTS:"documents",ALL_POSTS:"all",ALL_POSTS_MINI:"all",COMMENTS_MINI:"comments",COMMENTS:"comments",REACTIONS:"reactions"}),e.MODEL_TO_COMPONENT_MAP=Object.freeze({profileContentPhotoViewModel:"image",profileContentVideoViewModel:"video",profileContentEventViewModel:"event",profileContentArticleViewModel:"article",contentSeries:"newsletter",document:"document"})
|
|
const t=e.MODULE_KEY_MAP=Object.freeze({IMAGES_AND_MULTI_PHOTOS:"creator_profile_images_content_view:desktop",VIDEOS:"creator_profile_videos_content_view:desktop",EVENTS:"creator_profile_events_content_view:desktop",ARTICLES:"creator_profile_articles_content_view:desktop",NEWSLETTER_ARTICLES:"creator_profile_newsletter_content_view:desktop",DOCUMENTS:"creator_profile_documents_content_view:desktop",ALL_POSTS:"creator_profile_all_content_view:desktop",ALL_POSTS_MINI:"creator_profile_all_content_view:desktop",COMMENTS_MINI:"creator_profile_comments_content_view:desktop",COMMENTS:"creator_profile_comments_content_view:desktop",REACTIONS:"creator_profile_reactions_content_view:desktop"}),n=(e.pillRenderInfoMap=Object.freeze({IMAGES_AND_MULTI_PHOTOS:{controlName:"creator_profile_recent_photos",i18nKey:"i18n_images",componentName:"image",pageKey:"flagship3_profile_creator_profile_images_content_view",moduleKey:t.IMAGES_AND_MULTI_PHOTOS,loadingCount:8,wrapperClass:"profile-creator-shared-image__container",numToShowWhenTruncated:8,defaultContentKey:"images.imageContents",showAllControlName:"content_view_recent_photos_see_all",containerClass:"justify-flex-start",showAllI18nKey:"i18n_see_all_images"},VIDEOS:{controlName:"creator_profile_recent_videos",i18nKey:"i18n_videos",componentName:"video",pageKey:"flagship3_profile_creator_profile_videos_content_view",moduleKey:t.VIDEOS,loadingCount:8,wrapperClass:"profile-creator-shared-video__container",numToShowWhenTruncated:8,defaultContentKey:"videos.videoContents",showAllControlName:"content_view_recent_videos_see_all",containerClass:"justify-flex-start",showAllI18nKey:"i18n_see_all_videos"},EVENTS:{controlName:"creator_profile_recent_events",i18nKey:"i18n_events",componentName:"event",pageKey:"flagship3_profile_creator_profile_events_content_view",moduleKey:t.EVENTS,loadingCount:4,wrapperClass:"profile-creator-shared-event__container",numToShowWhenTruncated:4,defaultContentKey:"events.eventContents",showAllControlName:"content_view_recent_events_see_all",containerClass:"justify-space-between",showAllI18nKey:"i18n_see_all_events"},ARTICLES:{controlName:"creator_profile_recent_articles",i18nKey:"i18n_articles",componentName:"article",pageKey:"flagship3_profile_creator_profile_articles_content_view",moduleKey:t.ARTICLES,loadingCount:2,wrapperClass:"profile-creator-shared-article__container",numToShowWhenTruncated:2,defaultContentKey:"articles.articleContents",showAllControlName:"content_view_recent_articles_see_all",containerClass:"justify-space-between",showAllI18nKey:"i18n_see_all_articles"},NEWSLETTER_ARTICLES:{controlName:"creator_profile_recent_newsletter",i18nKey:"i18n_newsletter",componentName:"newsletter",pageKey:"flagship3_profile_creator_profile_newsletter_content_view",moduleKey:t.NEWSLETTER_ARTICLES,loadingCount:1,wrapperClass:"profile-creator-shared-newsletter__wrapper",numToShowWhenTruncated:2,defaultContentKey:"newsletterArticles.newsletterContents",showAllControlName:"content_view_recent_newsletter_see_all",containerClass:"justify-space-between",showAllI18nKey:"i18n_see_all_newsletter"},DOCUMENTS:{controlName:"creator_profile_recent_documents",i18nKey:"i18n_documents",componentName:"document",pageKey:"flagship3_profile_creator_profile_documents_content_view",moduleKey:t.DOCUMENTS,loadingCount:2,wrapperClass:"profile-creator-shared-document__container",numToShowWhenTruncated:2,defaultContentKey:"documents.documentContents",showAllControlName:"content_view_recent_documents_see_all",containerClass:"justify-space-between",showAllI18nKey:"i18n_see_all_documents"},ALL_POSTS:{controlName:"creator_profile_recent_all_posts",i18nKey:"i18n_all",componentName:"all",pageKey:"flagship3_profile_creator_profile_all_content_view",moduleKey:t.ALL_POSTS,loadingCount:1,wrapperClass:"profile-creator-shared-feed-update__container",containerClass:"justify-center"},ALL_POSTS_MINI:{controlName:"creator_profile_recent_all_posts",i18nKey:"i18n_all",componentName:"mini-update",pageKey:"flagship3_profile_creator_profile_all_content_view",moduleKey:t.ALL_POSTS,loadingCount:3,wrapperClass:"profile-creator-shared-feed-update__mini-container",numToShowWhenTruncated:3,defaultContentKey:"allPostsMiniUpdates.miniUpdates",showAllControlName:"content_view_recent_all_posts_see_all",containerClass:"justify-space-between",showAllI18nKey:"i18n_see_all_posts"},COMMENTS_MINI:{controlName:"creator_profile_recent_comments",i18nKey:"i18n_comments",componentName:"mini-update",pageKey:"flagship3_profile_creator_profile_comments_content_view",moduleKey:t.COMMENTS_MINI,loadingCount:3,wrapperClass:"profile-creator-shared-feed-update__mini-container",numToShowWhenTruncated:3,defaultContentKey:"commentsMiniUpdates.miniUpdates",showAllControlName:"content_view_recent_comments_see_all",containerClass:"justify-space-between",showAllI18nKey:"i18n_see_all_comments"},COMMENTS:{controlName:"creator_profile_recent_comments",i18nKey:"i18n_comments",componentName:"reactions-and-comments",pageKey:"flagship3_profile_creator_profile_comments_content_view",moduleKey:t.COMMENTS,loadingCount:1,wrapperClass:"profile-creator-shared-feed-update__container",containerClass:"justify-center"},REACTIONS:{controlName:"creator_profile_recent_reactions",i18nKey:"i18n_reactions",componentName:"reactions-and-comments",pageKey:"flagship3_profile_creator_profile_reactions_content_view",moduleKey:t.REACTIONS,loadingCount:1,wrapperClass:"profile-creator-shared-feed-update__container",containerClass:"justify-center"}}),e.UPDATE_CONTENT_TYPES=["ALL_POSTS","REACTIONS","COMMENTS"],e.MINI_UPDATE_CONTENT_TYPES=["ALL_POSTS_MINI","COMMENTS_MINI"],e.DEFAULT_CONTENT_TO_PILL=Object.freeze({images:"IMAGES_AND_MULTI_PHOTOS",videos:"VIDEOS",events:"EVENTS",articles:"ARTICLES",newsletterArticles:"NEWSLETTER_ARTICLES",documents:"DOCUMENTS",allPostsMiniUpdates:"ALL_POSTS_MINI",allPosts:"ALL_POSTS",comments:"COMMENTS",commentsMiniUpdates:"COMMENTS_MINI"}),e.RECENT_ACTIVITY_ROUTES={CONTENT_VIEW_DEEPLINK:"profile.common.recent-activity.content-view-deeplink",BASE_ROUTE:"profile.common.recent-activity"})
|
|
e.ROUTE_BASED_CONTENT_VIEW_ROUTES=[n.CONTENT_VIEW_DEEPLINK,n.BASE_ROUTE]}))
|
|
define("profile-creator-shared/utils/get-component-path",["exports","@ember/debug","profile-creator-shared/components/content-view-items/all","profile-creator-shared/components/content-view-items/article","profile-creator-shared/components/content-view-items/document","profile-creator-shared/components/content-view-items/empty","profile-creator-shared/components/content-view-items/error","profile-creator-shared/components/content-view-items/event","profile-creator-shared/components/content-view-items/image","profile-creator-shared/components/content-view-items/newsletter","profile-creator-shared/components/content-view-items/reactions-and-comments","profile-creator-shared/components/content-view-items/video","profile-creator-shared/components/content-view-items/loading/all","profile-creator-shared/components/content-view-items/loading/article","profile-creator-shared/components/content-view-items/loading/component-builder","profile-creator-shared/components/content-view-items/loading/document","profile-creator-shared/components/content-view-items/loading/event","profile-creator-shared/components/content-view-items/loading/image","profile-creator-shared/components/content-view-items/loading/loading-wrapper","profile-creator-shared/components/content-view-items/loading/mini-update","profile-creator-shared/components/content-view-items/loading/newsletter","profile-creator-shared/components/content-view-items/loading/pills","profile-creator-shared/components/content-view-items/loading/reactions-and-comments","profile-creator-shared/components/content-view-items/loading/scroll","profile-creator-shared/components/content-view-items/loading/shimmer","profile-creator-shared/components/content-view-items/loading/video"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E,w,P){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.getComponentPath=function(e,t){return t?O[e]:S[e]}
|
|
const S={all:n.default,article:i.default,document:r.default,empty:o.default,error:l.default,event:a.default,image:s.default,newsletter:c.default,"reactions-and-comments":p.default,video:d.default},O={all:u.default,article:m.default,"component-builder":f.default,document:h.default,event:g.default,image:b.default,"loading-wrapper":y.default,"mini-update":_.default,newsletter:v.default,"reactions-and-comments":C.default,pills:T.default,scroll:E.default,shimmer:w.default,video:P.default}}))
|
|
define("profile-tetris-shared/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,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var T,C,E,w
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"OeJCUwmq",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"],[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],[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-tetris-shared/components/generated-suggestions/generated-suggestion-promo-card.gjs",scope:()=>[m.default,f.default,l.get,h.default,g.default,b.default,y.default,_.default,v.default],isStrictMode:!0}),(T=(0,p.inject)("lego@tracking"),C=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"legoTracking",E,this);(0,t.default)(this,"isDismissed",w,this)}fireLegoImpressionEvent(){const e=(0,u.get)(this.args.promoCardData,"legoTrackingToken")
|
|
e&&this.legoTracking.sendLegoImpression(e,this.legoTracking.LEGO_IMPRESSION_VISIBILITY_SHOW,!0)}onPrimaryCta(){var e,t
|
|
const n=(0,u.get)(this.args.promoCardData,"legoTrackingToken")
|
|
n&&this.legoTracking.sendLegoAction(n,this.legoTracking.LEGO_ACTION_PRIMARY,1)
|
|
null===(e=(t=this.args).onPrimaryCtaClick)||void 0===e||e.call(t)}onDismissCta(){const e=(0,u.get)(this.args.promoCardData,"legoTrackingToken")
|
|
e&&this.legoTracking.sendLegoAction(e,this.legoTracking.LEGO_ACTION_DISMISS,1)
|
|
this.args.onDismissCtaClick()}getImpressionPayload(){return()=>({name:"ProfileGeneratedSuggestionProfilePromoBannerImpressionEvent",body:{}})}},E=(0,i.default)(C.prototype,"legoTracking",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,i.default)(C.prototype,"isDismissed",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(C.prototype,"fireLegoImpressionEvent",[u.action],Object.getOwnPropertyDescriptor(C.prototype,"fireLegoImpressionEvent"),C.prototype),(0,i.default)(C.prototype,"onPrimaryCta",[u.action],Object.getOwnPropertyDescriptor(C.prototype,"onPrimaryCta"),C.prototype),(0,i.default)(C.prototype,"onDismissCta",[u.action],Object.getOwnPropertyDescriptor(C.prototype,"onDismissCta"),C.prototype),(0,i.default)(C.prototype,"getImpressionPayload",[u.action],Object.getOwnPropertyDescriptor(C.prototype,"getImpressionPayload"),C.prototype),C))}))
|
|
define("profile-tetris-shared/components/helper-component/content-contents",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","global-helpers/helpers/or","dash-interop-helper/helpers/get-graphql-value-with-dash-fallback","profile-tetris-shared/components/helper-component/optional-action-target-wrapper","profile-tetris-shared/components/helper-component/media-content","profile-tetris-shared/components/helper-component/object-content","profile-tetris-shared/components/helper-component/newsletter-content","profile-tetris-shared/components/profile-component-builder"],(function(e,t,n,i,r,o,l,a,s,c,p){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const d=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"ZuCK+rJC",block:'[[[1,"\\n"],[41,[28,[32,0],[[28,[32,1],[[30,1],"content.objectContent"],null],[28,[32,1],[[30,1],"content.mediaContent"],null]],null],[[[1," "],[8,[32,2],[[16,0,[29,["flex-1 display-flex full-width relative\\n ",[52,[30,2],"pb3"]]]],[17,3]],[["@actionTarget","@controlName"],[[52,[30,4],"",[30,1,["actionTarget"]]],[30,1,["controlName"]]]],[["default"],[[[[1,"\\n"],[41,[28,[32,1],[[30,1],"content.mediaContent"],null],[[[1," "],[8,[32,3],null,[["@mediaContent","@commentary","@wide","@imageId","@onImageLoad","@onImageError"],[[28,[32,1],[[30,1],"content.mediaContent"],null],[30,1,["commentary"]],[30,1,["wide"]],[30,5],[30,6],[30,7]]],null],[1,"\\n"]],[]],[[[41,[28,[32,1],[[30,1],"content.objectContent"],null],[[[1," "],[8,[32,4],null,[["@objectContent","@wide"],[[28,[32,1],[[30,1],"content.objectContent"],null],[30,1,["wide"]]]],null],[1,"\\n "]],[]],null]],[]]],[1," "]],[]]]]],[1,"\\n"]],[]],[[[41,[28,[32,1],[[30,1],"content.newsletterContent"],null],[[[1," "],[10,0],[15,0,[29,["flex-1 display-flex full-width\\n ",[52,[30,2],"pb3"]]]],[12],[1,"\\n "],[8,[32,5],null,[["@newsletterContent","@actionTarget","@controlName","@wide","@ariaHidden"],[[28,[32,1],[[30,1],"content.newsletterContent"],null],[30,1,["actionTarget"]],[30,1,["controlName"]],[30,1,["wide"]],[30,8]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[28,[32,1],[[30,1],"content.componentContent"],null],[[[1," "],[8,[32,2],[[24,0,"flex-1 display-flex full-width relative"]],[["@actionTarget","@controlName"],[[52,[30,4],"",[30,1,["actionTarget"]]],[30,1,["controlName"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"full-height pvs-content__component-content"],[12],[1,"\\n "],[8,[32,6],null,[["@component"],[[28,[32,1],[[30,1],"content.componentContent"],null]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[]],null]],[]]]],[]]]],["@tetrisComponentModel","@contentNeedsBottomPadding","&attrs","@disableAll","@imageId","@onImageLoad","@onImageError","@ariaHidden"],false,["if"]]',moduleName:"profile-tetris-shared/components/helper-component/content-contents.gjs",scope:()=>[r.default,o.default,l.default,a.default,s.default,c.default,p.default],isStrictMode:!0}),(0,n.default)("content-contents","ContentContents"))
|
|
e.default=d}))
|
|
define("profile-tetris-shared/components/helper-component/media-content",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","image-view-model/components/image-view-model","profile-tetris-shared/components/profile-component/text","global-helpers/helpers/or","inline-show-more-text/components/inline-show-more-text"],(function(e,t,n,i,r,o,l,a){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const s=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"rTQFQSFr",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[10,0],[14,0,"display-flex flex-row overflow-hidden full-width"],[12],[1,"\\n"],[41,[30,2,["image"]],[[[1," "],[10,0],[14,0,"pvs-media-content__image-wrapper"],[12],[1,"\\n "],[10,0],[14,0,"pvs-media-content__image-aspect-ratio"],[12],[1,"\\n "],[8,[32,0],[[16,1,[30,3]]],[["@highQuality","@images","@imgClasses","@imgWidth","@isVideo","@onLoad","@onError"],[true,[30,2,["image"]],"pvs-media-content__image","400",[30,2,["video"]],[30,4],[30,5]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"flex-1 display-flex flex-column"],[12],[1,"\\n"],[41,[30,6],[[[1," "],[8,[32,1],[[24,0,"pb2 ph3 break-words"]],[["@textClass","@tetrisComponentModel"],["text-body-medium break-words",[30,6]]],null],[1,"\\n"]],[]],null],[41,[28,[32,2],[[30,2,["title"]],[30,2,["subtitle"]],[30,2,["previewText"]]],null],[[[1," "],[10,0],[14,0,"pvs-media-content__preview flex-1"],[12],[1,"\\n"],[41,[28,[32,2],[[30,2,["title"]],[30,2,["subtitle"]]],null],[[[1," "],[10,0],[14,0,"mb1"],[12],[1,"\\n"],[41,[30,2,["title"]],[[[1," "],[8,[32,1],null,[["@textClass","@tetrisComponentModel"],["text-heading-medium break-words",[30,2,["title"]]]],null],[1,"\\n"]],[]],null],[41,[30,2,["subtitle"]],[[[1," "],[8,[32,3],[[24,0,"text-body-small t-black--light break-words"]],[["@lines","@showMoreButton","@showLessButton","@tvm"],[1,false,false,[30,2,["subtitle"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[41,[30,2,["previewText"]],[[[1," "],[8,[32,1],null,[["@tetrisComponentModel","@textClass"],[[30,2,["previewText"]],"text-body-medium break-words"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"display-flex flex-column full-width"],[12],[1,"\\n"],[41,[30,2,["image"]],[[[1," "],[10,0],[14,0,"pvs-media-content__image-wrapper"],[12],[1,"\\n "],[10,0],[14,0,"pvs-media-content__image-aspect-ratio"],[12],[1,"\\n "],[8,[32,0],[[16,1,[30,3]]],[["@highQuality","@images","@imgClasses","@imgWidth","@isVideo","@onLoad","@onError"],[true,[30,2,["image"]],"pvs-media-content__image","400",[30,2,["video"]],[30,4],[30,5]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[28,[32,2],[[30,2,["title"]],[30,2,["subtitle"]],[30,2,["previewText"]]],null],[[[1," "],[10,0],[14,0,"pvs-media-content__preview"],[12],[1,"\\n"],[41,[28,[32,2],[[30,2,["title"]],[30,2,["subtitle"]]],null],[[[1," "],[10,0],[14,0,"mb1"],[12],[1,"\\n"],[41,[30,2,["title"]],[[[1," "],[8,[32,1],null,[["@textClass","@tetrisComponentModel"],["text-heading-small break-words",[30,2,["title"]]]],null],[1,"\\n"]],[]],null],[41,[30,2,["subtitle"]],[[[1," "],[8,[32,3],[[24,0,"text-body-xsmall t-black--light break-words"]],[["@lines","@showMoreButton","@showLessButton","@tvm"],[1,false,false,[30,2,["subtitle"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[41,[30,2,["previewText"]],[[[1," "],[8,[32,1],null,[["@tetrisComponentModel","@textClass"],[[30,2,["previewText"]],"text-body-small break-words"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]]],["@wide","@mediaContent","@imageId","@onImageLoad","@onImageError","@commentary"],false,["if"]]',moduleName:"profile-tetris-shared/components/helper-component/media-content.gjs",scope:()=>[r.default,o.default,l.default,a.default],isStrictMode:!0}),(0,n.default)("media-content","MediaContent"))
|
|
e.default=s}))
|
|
define("profile-tetris-shared/components/helper-component/newsletter-content",["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-tetris-shared/utils/constant/monitoring-constants","@ember/service","@ember/object","@glimmer/component","profile-tetris-shared/components/helper-component/optional-action-target-wrapper","image-view-model/components/image-view-model","text-view-model/components/text-view-model-v2","profile-tetris-shared/components/profile-component/text","profile-tetris-shared/components/profile-component/action"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var g,b,y
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"pbpwtBGP",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[10,0],[14,0,"pvs-newsletter-content display-flex overflow-hidden full-width"],[12],[1,"\\n "],[8,[32,0],[[24,"tabindex","-1"],[24,0,"flex-1"],[24,"aria-hidden","true"]],[["@actionTarget","@controlName"],[[30,2],[30,3]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"pvs-newsletter-content__image-aspect-ratio"],[12],[1,"\\n "],[8,[32,1],[[24,"aria-hidden","true"]],[["@desiredWidth","@imgClasses","@images"],[264,"pvs-newsletter-content__image-background",[30,4,["backgroundImage"]]]],null],[1,"\\n "],[8,[32,1],[[24,0,"pvs-newsletter-content__image-entity"]],[["@imgClasses","@highQuality","@desiredWidth","@images"],["pvs-newsletter-content__image EntityPhoto-square-6",true,88,[30,4,["logo"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[10,0],[14,0,"display-flex flex-1 flex-column full-height full-width"],[12],[1,"\\n "],[8,[32,0],[[24,0,"ph3 pt3 flex-grow-1"],[17,5]],[["@actionTarget","@controlName"],[[30,2],[30,3]]],[["default"],[[[[1,"\\n"],[41,[30,4,["title"]],[[[1," "],[10,"h3"],[14,0,"text-heading-medium t-black break-words"],[12],[1,"\\n "],[8,[32,2],null,[["@tvm"],[[30,4,["title"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,4,["subtitle"]],[[[1," "],[10,2],[14,0,"text-body-small t-black--light break-words"],[12],[1,"\\n "],[8,[32,2],null,[["@tvm"],[[30,4,["subtitle"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,4,["previewText"]],[[[1," "],[8,[32,3],null,[["@textClass","@tetrisComponentModel"],["text-body-medium break-words mt1",[30,4,["previewText"]]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"],[41,[30,4,["subscribeAction"]],[[[1," "],[10,0],[14,0,"justify-center p1"],[12],[1,"\\n "],[8,[32,4],null,[["@actionComponent"],[[30,4,["subscribeAction"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"pvs-newsletter-content display-flex flex-column full-height full-width"],[12],[1,"\\n "],[8,[32,0],[[24,0,"display-flex flex-column flex-grow-1"],[17,5]],[["@actionTarget","@controlName"],[[30,2],[30,3]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"pvs-newsletter-content__image-container"],[12],[1,"\\n "],[8,[32,1],[[24,"aria-hidden","true"]],[["@desiredWidth","@imgClasses","@images"],[200,"pvs-newsletter-content__image-background",[30,4,["logo"]]]],null],[1,"\\n "],[8,[32,1],null,[["@imgClasses","@desiredWidth","@desiredHeight","@highQuality","@images"],["pvs-newsletter-content__overlay-image",200,200,true,[30,4,["logo"]]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,4,["title"]],[[[1," "],[10,"h3"],[14,0,"text-heading-small t-black break-words mt3 ml3"],[12],[1,"\\n "],[8,[32,2],null,[["@tvm"],[[30,4,["title"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,4,["subtitle"]],[[[1," "],[10,2],[14,0,"text-body-xsmall t-black--light break-words ml3"],[12],[1,"\\n "],[8,[32,2],null,[["@tvm"],[[30,4,["subtitle"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,4,["previewText"]],[[[1," "],[8,[32,3],null,[["@textClass","@tetrisComponentModel"],["text-body-small break-words mt1 ml3",[30,4,["previewText"]]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"],[41,[30,4,["subscribeAction"]],[[[1," "],[10,0],[14,0,"flex-start p1"],[12],[1,"\\n "],[8,[32,4],null,[["@actionComponent"],[[30,4,["subscribeAction"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]],[1," "]],["@wide","@actionTarget","@controlName","@newsletterContent","&attrs"],false,["if"]]',moduleName:"profile-tetris-shared/components/helper-component/newsletter-content.gjs",scope:()=>[d.default,u.default,m.default,f.default,h.default],isStrictMode:!0}),(g=(0,s.inject)("client-sensor-web@client-sensor"),b=class extends p.default{constructor(){super(...arguments);(0,t.default)(this,"clientSensor",y,this)
|
|
this._validateAndFireClientSensorEvent()}_validateAndFireClientSensorEvent(){const e=(0,c.get)(this.args,"actionTarget"),{wide:t}=this.args
|
|
e&&t?this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"newsletter-content-component-served"}):this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"newsletter-content-component-dropped"})}},y=(0,i.default)(b.prototype,"clientSensor",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b))}))
|
|
define("profile-tetris-shared/components/helper-component/object-content",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","image-view-model/components/image-view-model","text-view-model/components/text-view-model-v2","profile-tetris-shared/components/profile-component/text"],(function(e,t,n,i,r,o,l){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const a=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"XxKGgL8Q",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[10,0],[14,0,"pvs-object-content-wide artdeco-card"],[12],[1,"\\n"],[41,[30,2,["image"]],[[[1," "],[10,0],[14,0,"flex-1 relative overflow-hidden"],[12],[1,"\\n "],[10,0],[14,0,"pvs-object-content__image-aspect-ratio"],[12],[1,"\\n "],[8,[32,0],[[24,"aria-hidden","true"]],[["@desiredWidth","@highQuality","@imgClasses","@images"],[264,true,"pvs-object-content__image-background",[30,2,["image"]]]],null],[1,"\\n "],[8,[32,0],[[24,0,"pvs-object-content__image-entity display-flex justify-center align-items-center"]],[["@highQuality","@images","@imgWidth","@entitySize","@imgClasses"],[true,[30,2,["image"]],88,3,"b0"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"display-flex flex-1 flex-column full-height full-width p3"],[12],[1,"\\n"],[41,[30,2,["context"]],[[[1," "],[10,0],[14,0,"t-14 t-black--light t-bold mb2"],[12],[1,"\\n "],[8,[32,1],null,[["@tvm"],[[30,2,["context"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,2,["title"]],[[[1," "],[8,[32,2],null,[["@textClass","@tetrisComponentModel"],["t-bold t-black break-words",[30,2,["title"]]]],null],[1,"\\n"]],[]],null],[41,[30,2,["subtitle"]],[[[1," "],[8,[32,2],null,[["@textClass","@tetrisComponentModel"],["text-body-small t-black--light break-words",[30,2,["subtitle"]]]],null],[1,"\\n"]],[]],null],[41,[30,2,["description"]],[[[1," "],[8,[32,2],null,[["@textClass","@tetrisComponentModel"],["text-body-small t-black--light break-words",[30,2,["description"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"pvs-object-content artdeco-card"],[12],[1,"\\n"],[41,[30,2,["image"]],[[[1," "],[8,[32,0],[[24,0,"mb3"]],[["@highQuality","@images","@imgWidth","@entitySize","@imgClasses"],[true,[30,2,["image"]],"56",3,"b0"]],null],[1,"\\n"]],[]],null],[41,[30,2,["context"]],[[[1," "],[10,0],[14,0,"t-12 t-black--light t-bold mb2"],[12],[1,"\\n "],[8,[32,1],null,[["@tvm"],[[30,2,["context"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,2,["title"]],[[[1," "],[8,[32,2],null,[["@textClass","@tetrisComponentModel"],["t-14 t-bold t-black break-words",[30,2,["title"]]]],null],[1,"\\n"]],[]],null],[41,[30,2,["subtitle"]],[[[1," "],[8,[32,2],null,[["@textClass","@tetrisComponentModel"],["t-12 t-black--light t-normal break-words",[30,2,["subtitle"]]]],null],[1,"\\n"]],[]],null],[41,[30,2,["description"]],[[[1," "],[8,[32,2],null,[["@textClass","@tetrisComponentModel"],["t-12 t-black--light t-normal break-words",[30,2,["description"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]]],["@wide","@objectContent"],false,["if"]]',moduleName:"profile-tetris-shared/components/helper-component/object-content.gjs",scope:()=>[r.default,o.default,l.default],isStrictMode:!0}),(0,n.default)("object-content","ObjectContent"))
|
|
e.default=a}))
|
|
define("profile-tetris-shared/components/helper-component/optional-action-target-wrapper",["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/service","global-utils/utils/url","@ember/object","@glimmer/component","@ember/modifier","ember-cli-pemberly-tracking/modifiers/track-interaction"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var f,h,g,b,y,_,v
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"9N9dSW3c",block:'[[[1,"\\n"],[41,[30,0,["actionTarget"]],[[[41,[30,1],[[[1," "],[11,3],[16,"data-field",[30,1]],[24,0,"optional-action-target-wrapper"],[16,"target",[52,[30,0,["shouldOpenNewTab"]],"_blank","_self"]],[17,2],[16,6,[30,0,["actionTarget"]]],[4,[32,0],["click",[30,0,["handleClick"]]],null],[4,[32,1],[[30,1]],null],[12],[18,3,null],[13],[1,"\\n"]],[]],[[[1," "],[11,3],[24,0,"optional-action-target-wrapper"],[16,"target",[52,[30,0,["shouldOpenNewTab"]],"_blank","_self"]],[17,2],[16,6,[30,0,["actionTarget"]]],[4,[32,0],["click",[30,0,["handleClick"]]],null],[12],[18,3,null],[13],[1,"\\n"]],[]]]],[]],[[[1," "],[11,0],[17,2],[12],[1,"\\n "],[18,3,null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],["@controlName","&attrs","&default"],false,["if","yield"]]',moduleName:"profile-tetris-shared/components/helper-component/optional-action-target-wrapper.gts",scope:()=>[u.on,m.default],isStrictMode:!0}),(f=(0,s.inject)("router"),h=(0,s.inject)("profile-services@profile"),g=(0,s.inject)("global-services@window"),b=class extends d.default{constructor(){super(...arguments);(0,t.default)(this,"router",y,this);(0,t.default)(this,"profile",_,this);(0,t.default)(this,"windowService",v,this)}get actionTarget(){var e,t
|
|
if(null!==(e=this.router.currentRoute)&&void 0!==e&&null!==(t=e.queryParams)&&void 0!==t&&t.locale&&this.args.actionTarget&&(0,c.isProdOrEIHostname)(this.args.actionTarget)){var n
|
|
const e=(0,c.getRoutablePathFromInternalUrl)(this.args.actionTarget),t=e?this.router.recognize(e):void 0
|
|
if(t&&null!==(n=t.name)&&void 0!==n&&n.includes("profile.common"))return t.queryParams&&0===Object.keys(t.queryParams).length?`${this.args.actionTarget}?locale=${this.router.currentRoute.queryParams.locale}`:`${this.args.actionTarget}&locale=${this.router.currentRoute.queryParams.locale}`}return this.args.actionTarget}get shouldOpenNewTab(){return!!this.args.openExternally}handleClick(e){var t
|
|
const n=(null==e?void 0:e.target)&&(e.target instanceof HTMLAnchorElement&&e.target.href||e.target instanceof Element&&(null==e||null===(t=e.target)||void 0===t?void 0:t.parentElement)&&e.target.parentElement instanceof HTMLAnchorElement&&e.target.parentElement.href)||this.actionTarget
|
|
if(n)if((0,c.isProdOrEIHostname)(n)&&n.indexOf("/appreciation/create/")>-1){e.preventDefault()
|
|
this.profile.appreciationModalUrl=n}else{const t=(0,c.getInAppParams)(this.router,n)
|
|
if(this.args.openExternally||(0,c.isNewTabKey)(e)){e.preventDefault()
|
|
const t=this.windowService.open(n,"_blank")
|
|
t&&(t.opener=null)}else if(t){e.preventDefault()
|
|
this.router.transitionTo(t)}e.stopPropagation()}}},y=(0,i.default)(b.prototype,"router",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,i.default)(b.prototype,"profile",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,i.default)(b.prototype,"windowService",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(b.prototype,"handleClick",[p.action],Object.getOwnPropertyDescriptor(b.prototype,"handleClick"),b.prototype),b))}))
|
|
define("profile-tetris-shared/components/helper-component/overflow-menu-item-content",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","image-view-model/components/image-view-model","text-view-model/components/text-view-model-v2"],(function(e,t,n,i,r,o){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const l=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"nZXflTIQ",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[8,[32,0],[[24,0,"mr3"]],[["@entitySize","@images"],[1,[30,1]]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[12],[1,"\\n"],[41,[30,2],[[[1," "],[10,0],[12],[1,"\\n "],[8,[32,1],null,[["@tvm"],[[30,2]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,3],[[[1," "],[10,0],[14,0,"t-12 t-normal"],[12],[1,"\\n "],[8,[32,1],null,[["@tvm"],[[30,3]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],["@icon","@text","@helperText"],false,["if"]]',moduleName:"profile-tetris-shared/components/helper-component/overflow-menu-item-content.gjs",scope:()=>[r.default,o.default],isStrictMode:!0}),(0,n.default)("overflow-menu-item-content","OverflowMenuItemContent"))
|
|
e.default=l}))
|
|
define("profile-tetris-shared/components/helper-component/overflow-menu-item",["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-tetris-shared/utils/model/action-component-metadata","profile-tetris-shared/utils/constant/action-types","profile-tetris-shared/utils/profile-tracking-helpers","dash-interop-helper/utils/get-graphql-value-with-dash-fallback","graphql-queries/queries/profile/organized-queries/view/recommendations/profile-recommendations-dismiss.graphql","graphql-queries/queries/profile/organized-queries/view/recommendations/profile-recommendations-delete.graphql","@ember/service","@ember/object","@glimmer/component","@ember/destroyable","profile-tetris-shared/components/helper-component/optional-action-target-wrapper","profile-tetris-shared/components/helper-component/overflow-menu-item-content","profile-shared/components/upload-file-input","artdeco-dropdown/components/artdeco-dropdown-item","profile-tetris-shared/components/profile-component/action-component/notifications"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var C,E,w,P,S,O,k,A,I,M,D
|
|
const N="FEATURED_MEDIA_UPLOAD",R=Object.freeze({deleteRecommendationGiven:"i18n_delete_recommendation",dismissRecommendation:"i18n_dismiss_recommendation",genericFailure:"i18n_delete_failure"}),x="success",U="error"
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"bTARTrh0",block:'[[[1,"\\n"],[41,[30,0,["actionTarget"]],[[[1," "],[8,[32,0],[[24,0,"artdeco-dropdown__item artdeco-dropdown__item--is-dropdown inverse-link-light-background-without-hover-visited display-flex flex-row align-items-center full-width"],[16,"onclick",[30,1]]],[["@actionTarget","@controlName"],[[30,0,["actionTarget"]],[30,0,["controlName"]]]],[["default"],[[[[1,"\\n "],[8,[32,1],null,[["@icon","@text","@helperText"],[[30,2,["icon"]],[30,2,["text"]],[30,2,["helperText"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,0,["isFeaturedMediaUpload"]],[[[1," "],[8,[32,2],[[16,"onclick",[30,1]]],[["@accept","@fileUploadHandler","@dataControlName","@ariaLabel","@setTabindex","@labelClasses"],[".pdf,.ppt,.pptx,.doc,.docx,.jpg,.jpeg,.png,.gif",[30,0,["fileUploadHandler"]],[30,0,["featuredMediaUploadControlName"]],[30,2,["text","text"]],true,"artdeco-dropdown__item artdeco-dropdown__item--is-dropdown display-flex flex-row align-items-center full-width m0"]],[["default"],[[[[1,"\\n "],[8,[32,1],null,[["@icon","@text","@helperText"],[[30,2,["icon"]],[30,2,["text"]],[30,2,["helperText"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,0,["deleteRecommendationGivenActionUrn"]],[[[1," "],[8,[32,3],[[24,0,"display-flex flex-row align-items-center full-width"],[24,"role","button"]],[["@itemSelected"],[[30,0,["handleDeleteRecommendationGivenClick"]]]],[["default"],[[[[1,"\\n "],[8,[32,1],null,[["@icon","@text","@helperText"],[[30,2,["icon"]],[30,2,["text"]],[30,2,["helperText"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,0,["dismissRecommendationActionUrn"]],[[[1," "],[8,[32,3],[[24,0,"display-flex flex-row align-items-center full-width"]],[["@itemSelected"],[[30,0,["dismissRecommendationGiven"]]]],[["default"],[[[[1,"\\n "],[8,[32,1],null,[["@icon","@text","@helperText"],[[30,2,["icon"]],[30,2,["text"]],[30,2,["helperText"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[]],null]],[]]]],[]]]],[]]],[1," "]],["@overflowItemClicked","@model"],false,["if"]]',moduleName:"profile-tetris-shared/components/helper-component/overflow-menu-item.gjs",scope:()=>[b.default,y.default,_.default,v.default],isStrictMode:!0}),(C=(0,m.inject)("router"),E=(0,m.inject)("i18n"),w=(0,m.inject)("@linkedin/ember-restli-graphql@graphql"),P=(0,m.inject)("persistent-toast-manager@persistent-toast-manager"),S=(0,m.inject)("tracking"),O=class extends h.default{constructor(){super(...arguments);(0,t.default)(this,"router",k,this);(0,t.default)(this,"i18n",A,this);(0,t.default)(this,"graphql",I,this);(0,t.default)(this,"persistentToastManager",M,this);(0,t.default)(this,"tracking",D,this)}get action(){return(0,p.getGraphQlValueWithDashFallback)(this.args.model,"action")}get actionTarget(){return(0,f.get)(this,"action.actionTargetV2.url")||(0,f.get)(this,"action.actionTarget")}get controlName(){return(0,f.get)(this,"action.actionTargetV2.controlName")}get isFeaturedMediaUpload(){return this.action&&((0,f.get)(this.action,"actionTypeV2.actionType")===N||(0,f.get)(this.action,"actionType")===N)}get featuredMediaUploadControlName(){return this.isFeaturedMediaUpload?(0,f.get)(this.action,"actionTypeV2.controlName"):null}get deleteRecommendationGivenActionUrn(){return(0,f.get)(this.action,"deleteRecommendationGivenAction.recommendation.entityUrn")||(0,f.get)(this.action,"deleteRecommendationGivenActionUrn.entityUrn")}get dismissRecommendationActionUrn(){return(0,f.get)(this.action,"dismissRecommendationAction.recommendation.entityUrn")||(0,p.getGraphQlValueWithDashFallback)(this.action,"dismissRecommendationActionUrn.entityUrn")}handleDeleteRecommendationGivenClick(){const e=this.deleteRecommendationGivenActionUrn,t=(0,f.get)(this.action,"deleteRecommendationGivenAction.controlName");(0,c.fireControlInteractionEvent)(this.tracking,t)
|
|
this.args.confirmationDialogHandler((()=>{this._deleteRecommendationGiven(e)}))}fileUploadHandler(e){const t="profile.common.profile.index"===this.router.currentRouteName
|
|
if(this.isFeaturedMediaUpload){this.router.transitionTo(t?"profile-edit.add-edit-media":"detail-profile-edit.add-edit-media").data={file:e,elementToFocusWhenClosed:this.args.elementToFocusWhenClosed}}else t?this.router.transitionTo("profile.common.profile.index"):this.router.transitionTo("profile.common.details")}dismissRecommendationGiven(){var e,t
|
|
this._handleAction({type:s.SHOW_DISABLED_STATE})
|
|
null===(e=(t=this.args).overflowItemClicked)||void 0===e||e.call(t)
|
|
const n=(0,f.get)(this.action,"dismissRecommendationAction.controlName");(0,c.fireControlInteractionEvent)(this.tracking,n)
|
|
this.graphql.executeQuery(d.default,{recommendationUrn:this.dismissRecommendationActionUrn}).then((e=>{if(!(0,g.isDestroying)(this))return(0,f.get)(e,"data.doDismissIdentityDashRecommendations")})).then((e=>{if(!(0,g.isDestroying)(this)){this._showToast(x,R.dismissRecommendation)
|
|
return e}})).catch((e=>{if((0,g.isDestroying)(this))throw e
|
|
if(!e||!e.isAdapterError)throw e
|
|
this._showToast(U,R.genericFailure)})).finally((()=>{(0,g.isDestroying)(this)||this._handleAction({type:s.DISMISS_DISABLED_STATE})}))}_deleteRecommendationGiven(e){this._handleAction({type:s.SHOW_DISABLED_STATE})
|
|
this.graphql.executeQuery(u.default,{recommendationUrn:e}).then((e=>{if(!(0,g.isDestroying)(this))return(0,f.get)(e,"data.doDeleteIdentityDashRecommendations")})).then((e=>{if(!(0,g.isDestroying)(this)){this._showToast(x,R.deleteRecommendationGiven)
|
|
return e}})).catch((e=>{if((0,g.isDestroying)(this))throw e
|
|
if(!e||!e.isAdapterError)throw e
|
|
this._showToast(U,R.genericFailure)})).finally((()=>{(0,g.isDestroying)(this)||this._handleAction({type:s.DISMISS_DISABLED_STATE})}))}_handleAction(e){var t,n
|
|
null===(t=(n=this.args).handleAction)||void 0===t||t.call(n,new a.default(e))}_showToast(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x,t=arguments.length>1?arguments[1]:void 0
|
|
const n=this.persistentToastManager,i=this.i18n.lookupTranslation(T.default,t)()
|
|
e===x?n.success({message:i}):n.error({message:i})}},k=(0,i.default)(O.prototype,"router",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,i.default)(O.prototype,"i18n",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,i.default)(O.prototype,"graphql",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,i.default)(O.prototype,"persistentToastManager",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,i.default)(O.prototype,"tracking",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(O.prototype,"handleDeleteRecommendationGivenClick",[f.action],Object.getOwnPropertyDescriptor(O.prototype,"handleDeleteRecommendationGivenClick"),O.prototype),(0,i.default)(O.prototype,"fileUploadHandler",[f.action],Object.getOwnPropertyDescriptor(O.prototype,"fileUploadHandler"),O.prototype),(0,i.default)(O.prototype,"dismissRecommendationGiven",[f.action],Object.getOwnPropertyDescriptor(O.prototype,"dismissRecommendationGiven"),O.prototype),O))}))
|
|
define("profile-tetris-shared/components/helper-component/reorderable-list",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/helper","@ember/component","dash-interop-helper/utils/get-graphql-value-with-dash-fallback","profile-tetris-shared/utils/profile-component-builder-helpers","graphql-queries/queries/profile/organized-queries/view/component/profile-components-reorder.graphql","rsvp","@glimmer/tracking","@ember/service","@ember/object","@glimmer/component","ember-sortable/modifiers/sortable-group","ember-sortable/modifiers/sortable-item","profile-tetris-shared/components/profile-component-builder","artdeco-button/components/artdeco-button","ember-cli-pemberly-i18n/helpers/t","profile-tetris-shared/helpers/get-component-title","ember-sortable/modifiers/sortable-handle"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var E,w,P,S
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"KME1dMth",block:'[[[1,"\\n"],[1," "],[11,"ul"],[16,0,[29,["pvs-reorderable-list ",[30,0,["additionalClasses"]]]]],[4,[32,0],null,[["groupName","onChange"],[[30,1],[30,0,["reorderItems"]]]]],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["componentsArray"]]],null]],null],null,[[[1," "],[11,"li"],[16,0,[29,["pvs-reorderable-list__item ",[52,[30,3],[30,3]]]]],[4,[32,1],null,[["groupName","model"],[[30,1],[30,2]]]],[12],[1,"\\n "],[8,[32,2],null,[["@component"],[[30,2]]],null],[1,"\\n "],[8,[32,3],[[24,0,"handle pvs-reorderable-list__handle-button"],[4,[32,6],null,null]],[["@circle","@color","@icon","@size","@type","@aria-label"],["true","muted","reorder","3","tertiary",[28,[32,4],["i18n_reorder_item_a11y_text_v2","profile-tetris-shared/components/helper-component/reorderable-list"],[["title"],[[28,[32,5],[[30,2]],null]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n "]],["@groupName","component","@listClass"],false,["each","-track-array","if"]]',moduleName:"profile-tetris-shared/components/helper-component/reorderable-list.gjs",scope:()=>[g.default,b.default,y.default,_.default,v.default,T.default,C.default],isStrictMode:!0}),(E=(0,m.inject)("@linkedin/ember-restli-graphql@graphql"),w=class extends h.default{constructor(){super(...arguments);(0,t.default)(this,"graphql",P,this);(0,t.default)(this,"reorderableItems",S,this)}get componentsArray(){return this.reorderableItems||this.args.componentsArray}get additionalClasses(){return(0,f.get)(this.componentsArray,"firstObject.useCardStyling")?"pvs-reorderable-list--padded":""}reorderItems(e){const t=e.map((e=>{const t=(0,c.getComponentData)((0,s.getGraphQlValueWithDashFallback)(e,"components"))
|
|
return(0,f.get)(t,"reorderableItem")}))
|
|
if(this.componentsArray.map((e=>{const t=(0,c.getComponentData)((0,s.getGraphQlValueWithDashFallback)(e,"components"))
|
|
return(0,f.get)(t,"reorderableItem")})).every(((e,n)=>e===t[n])))return(0,d.resolve)()
|
|
this.reorderableItems=e
|
|
return this.graphql.executeQuery(p.default,{reorderedEntities:t},{reload:!0})}},P=(0,i.default)(w.prototype,"graphql",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,i.default)(w.prototype,"reorderableItems",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(w.prototype,"reorderItems",[f.action],Object.getOwnPropertyDescriptor(w.prototype,"reorderItems"),w.prototype),w))}))
|
|
define("profile-tetris-shared/components/helper-component/thumbnail",["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/test-waiters","profile-shared/utils/image-helpers","@ember/object/internals","@glimmer/tracking","image-view-model/utils/hue-icon","@ember/object","@glimmer/component","profile-tetris-shared/components/helper-component/optional-action-target-wrapper","ember-vector-images/components/lazy-image","@ember/modifier","hue-web-icons/components/icon"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var _,v
|
|
const T=(0,s.buildWaiter)("profile-tetris-shared:thumbnail-waiter")
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"PkALBbKl",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"pvs-thumbnail__wrapper"]],[["@actionTarget","@controlName"],[[30,1],[30,0,["controlName"]]]],[["default"],[[[[1,"\\n "],[10,"figure"],[14,0,"pvs-thumbnail"],[12],[1,"\\n"],[41,[30,0,["showVectorImage"]],[[[1," "],[8,[32,1],[[16,1,[30,0,["imageId"]]]],[["@alt","@image","@desiredWidth","@onLoad","@onError","@class"],["",[30,0,["vectorImage"]],48,[30,0,["onThumbnailLoad"]],[30,0,["onThumbnailError"]],"pvs-thumbnail__image"]],null],[1,"\\n"]],[]],[[[41,[30,0,["showImageUrl"]],[[[1," "],[11,"img"],[16,"src",[30,0,["imageUrl"]]],[24,"alt",""],[24,0,"pvs-thumbnail__image"],[24,"role","presentation"],[16,1,[30,0,["imageId"]]],[4,[32,2],["load",[30,0,["onThumbnailLoad"]]],null],[4,[32,2],["error",[30,0,["onThumbnailError"]]],null],[12],[13],[1,"\\n"]],[]],[[[1," "],[8,[32,3],null,[["@type","@name","@size"],["system","image","medium"]],null],[1,"\\n "]],[]]]],[]]],[41,[30,0,["showOverlayIcon"]],[[[1," "],[10,0],[14,0,"pvs-thumbnail__overlay pvs-thumbnail__overlay--icon"],[12],[1,"\\n"],[41,[30,0,["iconMetadata","name"]],[[[1," "],[8,[32,3],[[24,0,"t-black--light"]],[["@type","@name","@size"],[[30,0,["iconMetadata","type"]],[30,0,["iconMetadata","name"]],[30,0,["iconMetadata","size"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2],[[[1," "],[10,0],[14,0,"pvs-thumbnail__overlay pvs-thumbnail__overlay--text"],[12],[1,"\\n "],[10,0],[14,0,"t-14 t-white t-bold"],[12],[1,[30,2]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@actionTarget","@overlayText"],false,["if"]]',moduleName:"profile-tetris-shared/components/helper-component/thumbnail.gts",scope:()=>[h.default,g.default,b.on,y.default],isStrictMode:!0}),(_=class extends f.default{constructor(e,i){super(e,i);(0,n.default)(this,"imageId",`thumbnail-image-${(0,p.guidFor)(this)}`);(0,n.default)(this,"token",void 0);(0,t.default)(this,"isFaultyThumbnailImage",v,this);(this.showVectorImage||this.showImageUrl)&&(this.token=T.beginAsync())}willDestroy(){super.willDestroy()
|
|
this._endAsync()}get iconMetadata(){var e
|
|
if(null===(e=this.args.thumbnail)||void 0===e||!e.overlayedIcon)return
|
|
const t=(0,u.getHueIcon)(this.args.thumbnail.overlayedIcon)
|
|
return t||void 0}get showOverlayIcon(){var e,t,n
|
|
return!(null===(e=this.args)||void 0===e||null===(t=e.thumbnail)||void 0===t||!t.overlayedIcon||null!==(n=this.args)&&void 0!==n&&n.overlayText)}get vectorImage(){var e,t,n,i,r
|
|
return(null===(e=this.args)||void 0===e||null===(t=e.thumbnail)||void 0===t||null===(n=t.imageReference)||void 0===n?void 0:n.vectorImage)||(null===(i=this.args)||void 0===i||null===(r=i.thumbnail)||void 0===r?void 0:r.entityImage)||void 0}get controlName(){var e,t
|
|
if(null!==(e=this.args)&&void 0!==e&&null!==(t=e.thumbnail)&&void 0!==t&&t.controlName)return this.args.thumbnail.controlName}get imageUrl(){var e,t
|
|
return(null===(e=this.args.thumbnail)||void 0===e||null===(t=e.imageReference)||void 0===t?void 0:t.url)??void 0}get showVectorImage(){return!!this.vectorImage&&!this.isFaultyThumbnailImage}get showImageUrl(){return!!this.imageUrl&&!this.isFaultyThumbnailImage}onThumbnailLoad(){this.isDestroying||(this.isFaultyThumbnailImage=!!(0,c.imgNodeIfFaulty)(this.imageId,!1))
|
|
this._endAsync()}onThumbnailError(){this.isFaultyThumbnailImage=!0
|
|
this._endAsync()}_endAsync(){if(this.token){T.endAsync(this.token)
|
|
this.token=void 0}}},v=(0,i.default)(_.prototype,"isFaultyThumbnailImage",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(_.prototype,"onThumbnailLoad",[m.action],Object.getOwnPropertyDescriptor(_.prototype,"onThumbnailLoad"),_.prototype),(0,i.default)(_.prototype,"onThumbnailError",[m.action],Object.getOwnPropertyDescriptor(_.prototype,"onThumbnailError"),_.prototype),_))}))
|
|
define("profile-tetris-shared/components/maybe-profile-cards",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","profile-tetris-shared/components/profile-card"],(function(e,t,n,i,r){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const o=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"7NaPJf/4",block:'[[[1,"\\n"],[41,[30,1],[[[42,[28,[31,2],[[28,[31,2],[[30,1]],null]],null],null,[[[1," "],[8,[32,0],null,[["@cardModel"],[[30,2]]],null],[1,"\\n"]],[2]],null]],[]],null]],["@maybeProfileCardsData","card"],false,["if","each","-track-array"]]',moduleName:"profile-tetris-shared/components/maybe-profile-cards.gjs",scope:()=>[r.default],isStrictMode:!0}),(0,n.default)("maybe-profile-cards","MaybeProfileCards"))
|
|
e.default=o}))
|
|
define("profile-tetris-shared/components/non-support",["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-tetris-shared/utils/constant/monitoring-constants","@ember/service","@glimmer/component"],(function(e,t,n,i,r,o,l,a,s,c){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var p,d,u
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"jYTd7c+p",block:'[[[1,"\\n "],[10,0],[12],[13],[1,"\\n "]],[],false,[]]',moduleName:"profile-tetris-shared/components/non-support.gjs",isStrictMode:!0}),(p=(0,s.inject)("client-sensor-web@client-sensor"),d=class extends c.default{constructor(){super(...arguments);(0,t.default)(this,"clientSensor",u,this)
|
|
this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"non-supported-component"})}},u=(0,i.default)(d.prototype,"clientSensor",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d))}))
|
|
define("profile-tetris-shared/components/profile-card",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","global-utils/utils/tracking-id","ember-lifeline","profile-tetris-shared/helpers/card-urn-to-id","rsvp","@linkedin/ember-pem/utils/degradation-tracking-metadata","profile-shared/utils/degradation-tracking","profile-tetris-shared/utils/is-empty-card","profile-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/utils/profile-tracking-helpers","profile-tetris-shared/utils/constant/render-actions","@ember/array","@glimmer/tracking","@ember/object","@ember/service","@glimmer/component","artdeco-card/components/artdeco-card","ember-cli-pemberly-tracking/modifiers/track-impression","ember-cli-pemberly-tracking/modifiers/track-view","@ember/render-modifiers/modifiers/did-update","@ember/modifier","global-modifiers/modifiers/scroll-into-view","@ember/helper","profile-tetris-shared/components/profile-component-builder","profile-loaders/components/profile-card"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E,w,P,S,O,k,A,I){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var M,D,N,R,x,U,L,j,F,z,V,B,G,q
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"r8Fa+VLS",block:'[[[1,"\\n"],[41,[30,1],[[[41,[30,0,["shouldRenderComponent"]],[[[1," "],[8,[32,0],[[24,"tabindex","-1"],[16,0,[29,["pv-profile-card break-words\\n ",[52,[30,0,["isCollapsed"]],"pb5"],"\\n ",[52,[30,0,["isGhostCard"]],"pv-profile-card--ghost"],"\\n ",[52,[51,[30,2]],"mt2"]]]],[24,"data-view-name","profile-card"],[4,[32,1],[[30,0,["onCreateImpressionEvent"]]],[["routeName","currentRoute"],[[28,[32,2],[[53,"outletState"],"render.name"],null],[28,[32,2],[[53,"outletState"],"render"],null]]]],[4,[32,3],null,[["viewName","view","genericTrackingLixKey","routeName","currentRoute"],["profile-card",[30,0],"voyager.web.profile-pcie-to-tracking3",[28,[32,2],[[53,"outletState"],"render.name"],null],[28,[32,2],[[53,"outletState"],"render"],null]]]],[4,[32,4],[[30,0,["profileCardUpdated"]],[30,0,["topComponents"]]],null],[4,[32,5],["focusout",[30,0,["onFocusOut"]]],null]],null,[["default"],[[[[1,"\\n "],[11,0],[16,1,[30,0,["cardId"]]],[24,0,"pv-profile-card__anchor"],[4,[32,6],null,[["when","options"],[[30,0,["shouldScroll"]],[28,[32,7],null,[["block"],["start"]]]]]],[12],[1,"\\n "],[13],[1,"\\n"],[42,[28,[31,4],[[28,[31,4],[[30,0,["topComponents"]]],null]],null],null,[[[1," "],[8,[32,8],null,[["@component","@handleAction","@isProfileCardUpdated"],[[30,3],[30,0,["handleAction"]],[30,0,["isProfileCardUpdated"]]]],null],[1,"\\n"]],[3]],null],[41,[30,0,["subComponents","length"]],[[[1," "],[10,0],[15,0,[52,[30,0,["isCollapsed"]],"hidden"]],[12],[1,"\\n"],[42,[28,[31,4],[[28,[31,4],[[30,0,["subComponents"]]],null]],null],null,[[[1," "],[8,[32,8],null,[["@component","@handleAction","@isProfileCardUpdated"],[[30,4],[30,0,["handleAction"]],[30,0,["isProfileCardUpdated"]]]],null],[1,"\\n"]],[4]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["shouldRenderLoader"]],[[[1," "],[8,[32,9],null,[["@count"],[1]],null],[1,"\\n"]],[]],null]],[]],null],[1," "]],["@cardModel","@isTopElement","component","component"],false,["if","unless","-get-dynamic-var","each","-track-array"]]',moduleName:"profile-tetris-shared/components/profile-card.gjs",scope:()=>[C.default,E.default,k.get,w.default,P.default,S.on,O.default,k.hash,A.default,I.default],isStrictMode:!0}),(M=(0,v.inject)("client-sensor-web@client-sensor"),D=(0,v.inject)("lego@tracking"),N=(0,v.inject)("profile-services@profile"),R=(0,v.inject)("pem-tracking"),x=(0,v.inject)("tracking"),U=class extends T.default{constructor(){super(...arguments);(0,t.default)(this,"clientSensor",L,this);(0,t.default)(this,"legoTracking",j,this);(0,t.default)(this,"profile",F,this);(0,t.default)(this,"pemTracking",z,this);(0,t.default)(this,"tracking",V,this);(0,t.default)(this,"isDismissed",B,this);(0,t.default)(this,"isCollapsed",G,this);(0,t.default)(this,"isProfileCardUpdated",q,this)}get cardId(){return(0,c.getCardIdFromEntityUrn)([(0,_.get)(this.args.cardModel,"entityUrn")])}get isGhostCard(){var e
|
|
return!(null===(e=this.cardId)||void 0===e||!e.startsWith("ghost_"))}get shouldScroll(){const{cardIdForScroll:e,isAllCardsLoaded:t}=this.args
|
|
return!!e&&t&&e===this.cardId}get topComponents(){return(0,_.get)(this.args.cardModel,"topComponents")}get subComponents(){return(0,_.get)(this.args.cardModel,"subComponents")}get trackingId(){return(0,_.get)(this.args,"cardModel.trackingId")}get contentTrackingId(){return this.trackingId?(0,a.getByteStringAsBase64)(this.trackingId):void 0}get rowPosition(){return this.args.position}get shouldRenderComponent(){this._validateComponent()
|
|
return!!this.topComponents&&!this.isDismissed&&!(0,m.isEmptyCard)(this.args.cardModel)}get shouldRenderLoader(){const{topComponents:e,subComponents:t}=this
|
|
return!e&&!t}handleAction(e){let{type:t,actionDelegateUrn:n,options:i}=e
|
|
n===(0,_.get)(this.args,"cardModel.actionDelegateUrn")&&(t===g.RENDER_ACTIONS.DISMISS?this.isDismissed=!0:t===g.RENDER_ACTIONS.COLLAPSE_EXPAND&&(this.isCollapsed=i.collapsed))}onCreateImpressionEvent(){const e=(0,_.get)(this.args,"cardModel.legoTrackingId")
|
|
e&&this.legoTracking.sendLegoImpression(e,this.legoTracking.LEGO_IMPRESSION_VISIBILITY_SHOW)
|
|
return this.tracking.shouldRegisterForLegacyTracking("voyager.web.profile-pcie-to-tracking3")&&this.trackingId&&this.args.position>=0?(0,h.fireProfileCardImpressionEvent)(this.trackingId,this.args.position):[]}profileCardUpdated(){this.isProfileCardUpdated=!0}onFocusOut(){(0,s.runTask)(this,(()=>{if(this.isProfileCardUpdated){this.isProfileCardUpdated=!1
|
|
this.profile.shouldFocusProfileCardOverflowBtn=!1}}))}_validateComponent(){const{trackingId:e,entityUrn:t,error:n,pemFeatureKey:i}=(0,_.getProperties)(this.args.cardModel,"trackingId","entityUrn","error","pemFeatureKey")
|
|
e&&t&&(0,b.isArray)(this.topComponents)&&(0,b.isArray)(this.subComponents)?this.clientSensor.incrementMetricCounter({groupName:f.GROUP_NAME_PROFILE,metricName:"card-served"}):this.clientSensor.incrementMetricCounter({groupName:f.GROUP_NAME_PROFILE,metricName:"card-dropped"})
|
|
if(n){const e=new d.default(`${i}-profile-card`,`${i}-missing`,{productName:u.PEM_PRODUCT_NAMES.VOYAGER_PROFILE})
|
|
this.pemTracking.trackFeatureDegradations("voyagerIdentityDashProfileCards",[],[e],(0,p.reject)())}}},L=(0,i.default)(U.prototype,"clientSensor",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,i.default)(U.prototype,"legoTracking",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,i.default)(U.prototype,"profile",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,i.default)(U.prototype,"pemTracking",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,i.default)(U.prototype,"tracking",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,i.default)(U.prototype,"isDismissed",[y.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),G=(0,i.default)(U.prototype,"isCollapsed",[y.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),q=(0,i.default)(U.prototype,"isProfileCardUpdated",[y.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(U.prototype,"handleAction",[_.action],Object.getOwnPropertyDescriptor(U.prototype,"handleAction"),U.prototype),(0,i.default)(U.prototype,"onCreateImpressionEvent",[_.action],Object.getOwnPropertyDescriptor(U.prototype,"onCreateImpressionEvent"),U.prototype),(0,i.default)(U.prototype,"profileCardUpdated",[_.action],Object.getOwnPropertyDescriptor(U.prototype,"profileCardUpdated"),U.prototype),(0,i.default)(U.prototype,"onFocusOut",[_.action],Object.getOwnPropertyDescriptor(U.prototype,"onFocusOut"),U.prototype),U))}))
|
|
define("profile-tetris-shared/components/profile-component-builder",["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-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/helpers/check-type","dash-interop-helper/utils/get-graphql-value-with-dash-fallback","@ember/debug","profile-tetris-shared/utils/profile-component-builder-helpers","@ember/object","@ember/service","@glimmer/component","profile-tetris-shared/components/non-support","tracked-toolbox"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var b,y,_,v,T
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"J00ot3bJ",block:'[[[1,"\\n"],[41,[30,0,["_shouldBuildComponent"]],[[[44,[[50,[30,0,["componentType"]],0,null,null]],[[[41,[30,2,["useCardStyling"]],[[[1," "],[10,0],[14,0,"artdeco-card full-width overflow-hidden display-flex flex-column"],[12],[1,"\\n "],[8,[30,1],[[16,"aria-hidden",[30,3]]],[["@tetrisComponentModel","@actionComponent","@handleAction","@isProfileCardUpdated","@shouldDisable","@profileGeneratedSuggestionDelegateUrn"],[[30,0,["componentData"]],[30,0,["componentData"]],[30,0,["handleAction"]],[30,4],[30,5],[30,2,["profileGeneratedSuggestionDelegateUrn"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[30,1],[[16,"aria-hidden",[30,3]]],[["@tetrisComponentModel","@actionComponent","@handleAction","@isProfileCardUpdated","@shouldDisable","@profileGeneratedSuggestionDelegateUrn"],[[30,0,["componentData"]],[30,0,["componentData"]],[30,0,["handleAction"]],[30,4],[30,5],[30,2,["profileGeneratedSuggestionDelegateUrn"]]]],null],[1,"\\n"]],[]]]],[1]]]],[]],null],[1," "]],["ProfileComponentBuilderComponent","@component","@ariaHidden","@isProfileCardUpdated","@shouldDisable"],false,["if","let","component"]]',moduleName:"profile-tetris-shared/components/profile-component-builder.gjs",isStrictMode:!0}),(b=(0,m.inject)("client-sensor-web@client-sensor"),y=(0,m.inject)("lix"),_=class extends f.default{constructor(){super(...arguments);(0,t.default)(this,"clientSensor",v,this);(0,t.default)(this,"lix",T,this)}get isPagedListFixEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.profile-paged-list-fix")}get renderComponent(){return(0,c.getGraphQlValueWithDashFallback)(this.args.component,"components")}get _shouldBuildComponent(){this._validateComponentAndFireClientSensorEvent()
|
|
return!!this.renderComponent}get componentType(){return(0,d.transformTypeToComponent)(this.renderComponent,this.isPagedListFixEnabled)}get componentData(){return(0,d.getComponentData)(this.renderComponent)}handleAction(){var e,t
|
|
return null===(e=(t=this.args).handleAction)||void 0===e?void 0:e.call(t,...arguments)}_validateComponentAndFireClientSensorEvent(){const e=!this.renderComponent||this.componentType===h.default,t=(0,u.get)(this.args.component,"useCardStyling")
|
|
e||!(0,s.isBoolean)(t)?this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"component-dropped"}):this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"component-served"})}},v=(0,i.default)(_.prototype,"clientSensor",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,i.default)(_.prototype,"lix",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(_.prototype,"isPagedListFixEnabled",[g.cached],Object.getOwnPropertyDescriptor(_.prototype,"isPagedListFixEnabled"),_.prototype),(0,i.default)(_.prototype,"handleAction",[u.action],Object.getOwnPropertyDescriptor(_.prototype,"handleAction"),_.prototype),_))}))
|
|
define("profile-tetris-shared/components/profile-component-tracking",["exports","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@ember/template-factory","@ember/helper","@ember/component","@ember/object","@glimmer/component","ember-cli-pemberly-tracking/modifiers/track-impression"],(function(e,t,n,i,r,o,l,a){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var s
|
|
e.default=(0,r.setComponentTemplate)((0,n.createTemplateFactory)({id:"ic2H9uGT",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[11,0],[4,[32,0],[[30,0,["onCreateImpressionEvent"]]],[["routeName","currentRoute"],[[28,[32,1],[[53,"outletState"],"render.name"],null],[28,[32,1],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n "],[18,2,null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[18,2,null],[1,"\\n"]],[]]],[1," "]],["@enableTracking","&default"],false,["if","-get-dynamic-var","yield"]]',moduleName:"profile-tetris-shared/components/profile-component-tracking.gjs",scope:()=>[a.default,i.get],isStrictMode:!0}),(s=class extends l.default{onCreateImpressionEvent(){return[]}},(0,t.default)(s.prototype,"onCreateImpressionEvent",[o.action],Object.getOwnPropertyDescriptor(s.prototype,"onCreateImpressionEvent"),s.prototype),s))}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/add-recommendation-to-profile",["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-tetris-shared/utils/profile-monitoring-helpers","@glimmer/tracking","profile-tetris-shared/utils/model/action-component-metadata","profile-tetris-shared/utils/constant/action-types","profile-tetris-shared/utils/constant/monitoring-constants","dash-interop-helper/utils/get-graphql-value-with-dash-fallback","graphql-queries/queries/profile/organized-queries/view/recommendations/profile-recommendations-add-to-profile.graphql","profile-tetris-shared/utils/profile-tracking-helpers","@ember/service","@glimmer/component","@ember/object","@ember/destroyable","artdeco-button/components/artdeco-button","ember-cli-pemberly-i18n/helpers/t","profile-tetris-shared/components/profile-component/action-component/notifications","@ember/modifier"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var w,P,S,O,k,A,I,M,D,N,R,x
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"cpE8ulOa",block:'[[[1,"\\n"],[1," "],[8,[32,0],[[4,[32,2],["click",[30,0,["handleClick"]]],null]],[["@type","@color","@controlType","@text","@isLoading","@disabled"],["secondary","muted","button",[52,[30,0,["isPending"]],[28,[32,1],["adding_to_profile","profile-tetris-shared/components/profile-component/action-component/add-recommendation-to-profile"],null],[28,[32,1],["add_to_profile","profile-tetris-shared/components/profile-component/action-component/add-recommendation-to-profile"],null]],[30,0,["isPending"]],[30,0,["shouldDisable"]]]],null],[1,"\\n "]],[],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/add-recommendation-to-profile.gjs",scope:()=>[v.default,T.default,E.on],isStrictMode:!0}),(w=(0,g.inject)("persistent-toast-manager@persistent-toast-manager"),P=(0,g.inject)("i18n"),S=(0,g.inject)("@linkedin/ember-restli-graphql@graphql"),O=(0,g.inject)("client-sensor-web@client-sensor"),k=(0,g.inject)("tracking"),A=class extends b.default{get recommendationRequestUrn(){return(0,m.getGraphQlValueWithDashFallback)(this.args.tetrisComponentModel,"recommendation.entityUrn")||(0,m.getGraphQlValueWithDashFallback)(this.args.tetrisComponentModel,"entityUrn")}get shouldDisable(){return this.args.shouldDisable&&!this.isPending}constructor(){super(...arguments);(0,t.default)(this,"persistentToastManager",I,this);(0,t.default)(this,"i18n",M,this);(0,t.default)(this,"graphql",D,this);(0,t.default)(this,"clientSensor",N,this);(0,t.default)(this,"tracking",R,this);(0,t.default)(this,"isPending",x,this)
|
|
this._assertProps()}handleClick(){this._handleAction({type:d.SHOW_DISABLED_STATE})
|
|
this.isPending=!0
|
|
const e=this.recommendationRequestUrn;(0,h.fireCustomActionTrackingEvent)(this.tracking,this.args.trackingId,this.args.actionRecommendationTrackingId);(0,h.fireControlInteractionEvent)(this.tracking,(0,y.get)(this.args.tetrisComponentModel,"controlName"))
|
|
this.graphql.executeQuery(f.default,{recommendationUrn:e},{reload:!0}).then((e=>{if(!(0,_.isDestroying)(this))return(0,y.get)(e,"data.doAddToProfileIdentityDashRecommendations")})).then((e=>{if(!(0,_.isDestroying)(this)){this.clientSensor.incrementMetricCounter({groupName:u.GROUP_NAME_PROFILE,metricName:"add-recommendation-to-profile-action-click-success"})
|
|
this._showToast("success","i18n_add_to_profile_recommendation")
|
|
return e}})).catch((e=>{if((0,_.isDestroying)(this))throw e;(0,s.fireActionClickFailedMonitoringEvent)(this.clientSensor,"add-recommendation-to-profile-action-click-failed",e)
|
|
if(!e||!e.isAdapterError)throw e
|
|
this._showToast("error","i18n_delete_failure")})).finally((()=>{if(!(0,_.isDestroying)(this)){this._handleAction({type:d.DISMISS_DISABLED_STATE})
|
|
this.isPending=!1}}))}_handleAction(e){var t,n
|
|
null===(t=(n=this.args).handleAction)||void 0===t||t.call(n,new p.default(e))}_assertProps(){this.recommendationRequestUrn?this.clientSensor.incrementMetricCounter({groupName:u.GROUP_NAME_PROFILE,metricName:"add-recommendation-to-profile-action-component-served"}):this.clientSensor.incrementMetricCounter({groupName:u.GROUP_NAME_PROFILE,metricName:"add-recommendation-to-profile-action-component-dropped"})}_showToast(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1?arguments[1]:void 0
|
|
const n=this.persistentToastManager,i=this.i18n.lookupTranslation(C.default,t)()
|
|
"success"===e?n.success({message:i}):n.error({message:i})}},I=(0,i.default)(A.prototype,"persistentToastManager",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,i.default)(A.prototype,"i18n",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,i.default)(A.prototype,"graphql",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,i.default)(A.prototype,"clientSensor",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,i.default)(A.prototype,"tracking",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,i.default)(A.prototype,"isPending",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(A.prototype,"handleClick",[y.action],Object.getOwnPropertyDescriptor(A.prototype,"handleClick"),A.prototype),A))}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/collapse-expand",["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-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/helpers/check-type","ember-batcher","profile-tetris-shared/utils/profile-tracking-helpers","profile-tetris-shared/utils/model/action-component-metadata","profile-tetris-shared/utils/constant/render-actions","@glimmer/component","@glimmer/tracking","@ember/service","@ember/object","artdeco-button/components/artdeco-button","@ember/modifier"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var v,T,C,E,w,P
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"8BXZZASZ",block:'[[[1,"\\n "],[8,[32,0],[[4,[32,1],["click",[30,0,["handleClick"]]],null]],[["@aria-label","@aria-expanded","@type","@controlType","@color","@size","@circle","@icon"],[[52,[30,0,["isCollapsed"]],[30,1,["expandAccessibilityText"]],[30,1,["collapseAccessibilityText"]]],[52,[30,0,["isCollapsed"]],"false","true"],"tertiary","button","muted","3",true,[52,[30,0,["isCollapsed"]],"chevron-down","chevron-up"]]],null],[1,"\\n "]],["@tetrisComponentModel"],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/collapse-expand.gjs",scope:()=>[y.default,_.on],isStrictMode:!0}),(v=(0,g.inject)("client-sensor-web@client-sensor"),T=(0,g.inject)("tracking"),C=class extends f.default{get controlName(){return this.isCollapsed?(0,b.get)(this.args.tetrisComponentModel,"expandActionControlName"):(0,b.get)(this.args.tetrisComponentModel,"collapseActionControlName")}constructor(){super(...arguments);(0,t.default)(this,"clientSensor",E,this);(0,t.default)(this,"tracking",w,this);(0,t.default)(this,"isCollapsed",P,this)
|
|
this.isCollapsed=(0,b.get)(this.args.tetrisComponentModel,"collapsed")
|
|
this.isCollapsed&&(0,p.mutateDOM)((()=>{this._handleAction()}))
|
|
this._validateAndFireClientSensorEvent()}_handleAction(){var e,t
|
|
null===(e=(t=this.args).handleAction)||void 0===e||e.call(t,new u.default({type:m.RENDER_ACTIONS.COLLAPSE_EXPAND,actionDelegateUrn:(0,b.get)(this.args.tetrisComponentModel,"actionDelegateUrn"),options:{collapsed:this.isCollapsed}}))}handleClick(){this._fireActionTrackingEvent()
|
|
this.isCollapsed=!this.isCollapsed
|
|
this._handleAction()}_fireActionTrackingEvent(){(0,d.fireControlInteractionEvent)(this.tracking,this.controlName);(0,d.fireCustomActionTrackingEvent)(this.tracking,this.args.trackingId,this.args.actionRecommendationTrackingId)}_validateAndFireClientSensorEvent(){const{actionDelegateUrn:e,collapsed:t,collapseAccessibilityText:n,expandAccessibilityText:i}=(0,b.getProperties)(this.args.tetrisComponentModel,"actionDelegateUrn","collapsed","collapseAccessibilityText","expandAccessibilityText")
|
|
e&&(0,c.isBoolean)(t)&&n&&i?this.clientSensor.incrementMetricCounter({groupName:s.GROUP_NAME_PROFILE,metricName:"collapse-expand-action-component-served"}):this.clientSensor.incrementMetricCounter({groupName:s.GROUP_NAME_PROFILE,metricName:"collapse-expand-action-component-dropped"})}},E=(0,i.default)(C.prototype,"clientSensor",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,i.default)(C.prototype,"tracking",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,i.default)(C.prototype,"isCollapsed",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(C.prototype,"handleClick",[b.action],Object.getOwnPropertyDescriptor(C.prototype,"handleClick"),C.prototype),C))}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/compose-option",["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","button-appearance/helpers/button-appearance-attributes","profile-tetris-shared/utils/constant/render-actions","profile-tetris-shared/utils/constant/monitoring-constants","@ember/service","profile-tetris-shared/utils/profile-tracking-helpers","@glimmer/component","profile-tetris-shared/utils/model/action-component-metadata","@ember/object","message-button/components/entry-point"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var g,b,y,_,v
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"l5k9Xm7z",block:'[[[1,"\\n "],[8,[32,0],null,[["@entryPointClasses","@composeOption","@subject","@body","@referringModuleKey","@iconAndText","@controlUrn","@onMessagingOpened","@isGraphQLEnabled"],[[30,0,["buttonClasses"]],[30,1,["composeOption"]],[30,1,["prefilledSubject"]],[30,1,["prefilledMessage"]],"NON_SELF_PROFILE_VIEW","UPSELL_ONLY",[30,1,["actionControlName"]],[30,0,["handleClick"]],true]],null],[1,"\\n "]],["@tetrisComponentModel"],false,[]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/compose-option.gjs",scope:()=>[h.default],isStrictMode:!0}),(g=(0,p.inject)("tracking"),b=(0,p.inject)("client-sensor-web@client-sensor"),y=class extends u.default{get buttonClasses(){const{buttonAppearance:e}=this.args.tetrisComponentModel
|
|
return e?(0,a.default)(e).buttonClasses:"artdeco-button artdeco-button--secondary artdeco-button--2 artdeco-button--muted"}handleClick(){var e,t
|
|
null===(e=(t=this.args).handleAction)||void 0===e||e.call(t,new m.default({type:s.RENDER_ACTIONS.COMPOSE_OPTION}))
|
|
this._fireActionTrackingEvent()}constructor(){super(...arguments);(0,t.default)(this,"tracking",_,this);(0,t.default)(this,"clientSensor",v,this)
|
|
this._validateAndFireClientSensorEvent()}_validateAndFireClientSensorEvent(){const{composeOption:e,prefilledSubject:t,prefilledMessage:n}=(0,f.getProperties)(this.args.tetrisComponentModel,"composeOption","prefilledSubject","prefilledMessage")
|
|
e&&t&&n?this.clientSensor.incrementMetricCounter({groupName:c.GROUP_NAME_PROFILE,metricName:"compose-option-action-component-served"}):this.clientSensor.incrementMetricCounter({groupName:c.GROUP_NAME_PROFILE,metricName:"compose-option-action-component-dropped"})}_fireActionTrackingEvent(){(0,d.fireCustomActionTrackingEvent)(this.tracking,this.args.trackingId,this.args.actionRecommendationTrackingId)}},_=(0,i.default)(y.prototype,"tracking",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,i.default)(y.prototype,"clientSensor",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(y.prototype,"handleClick",[f.action],Object.getOwnPropertyDescriptor(y.prototype,"handleClick"),y.prototype),y))}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/connect-action",["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-tetris-shared/utils/constant/monitoring-constants","@ember/service","profile-tetris-shared/utils/profile-tracking-helpers","dash-interop-helper/utils/get-graphql-value-with-dash-fallback","@glimmer/component","@ember/object","connect-button/components/connect-button"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var f,h,g,b,y
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"N/6LJf4l",block:'[[[1,"\\n"],[41,[30,0,["memberRelationship"]],[[[1," "],[8,[32,0],null,[["@color","@useCase","@onClickCallback","@onFailureCallback","@onSuccessCallback","@relationshipBuildingDataModel","@size","@type"],["muted",[30,0,["controlNamePrefix"]],[30,0,["onClickCallback"]],[30,0,["onFailureCallback"]],[30,0,["onSuccessCallback"]],[30,0,["memberRelationship"]],"2","secondary"]],null],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/connect-action.gjs",scope:()=>[m.default],isStrictMode:!0}),(f=(0,s.inject)("client-sensor-web@client-sensor"),h=(0,s.inject)("tracking"),g=class extends d.default{constructor(){super(...arguments);(0,t.default)(this,"clientSensor",b,this);(0,t.default)(this,"tracking",y,this);(0,u.get)(this.args,"tetrisComponentModel.memberRelationship")?this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"connect-action-component-served"}):this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"connect-action-component-dropped"})}get memberRelationship(){return this.args.tetrisComponentModel?(0,p.getGraphQlValueWithDashFallback)(this.args.tetrisComponentModel,"memberRelationship"):null}get controlNamePrefix(){var e
|
|
return null===(e=(0,u.get)(this.args,"tetrisComponentModel.controlName"))||void 0===e?void 0:e.replace("_connect","")}onClickCallback(){(0,c.fireCustomActionTrackingEvent)(this.tracking,this.args.trackingId)}onFailureCallback(e){"STAGE_ONE"===e&&this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"connect-action-click-failed"})}onSuccessCallback(e){"STAGE_ONE"===e&&this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"connect-action-click-success"})}},b=(0,i.default)(g.prototype,"clientSensor",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,i.default)(g.prototype,"tracking",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(g.prototype,"onClickCallback",[u.action],Object.getOwnPropertyDescriptor(g.prototype,"onClickCallback"),g.prototype),(0,i.default)(g.prototype,"onFailureCallback",[u.action],Object.getOwnPropertyDescriptor(g.prototype,"onFailureCallback"),g.prototype),(0,i.default)(g.prototype,"onSuccessCallback",[u.action],Object.getOwnPropertyDescriptor(g.prototype,"onSuccessCallback"),g.prototype),g))}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/delete-skill",["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-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/utils/constant/action-types","@glimmer/tracking","profile-tetris-shared/utils/constant/render-actions","profile-tetris-shared/utils/model/action-component-metadata","profile-tetris-shared/utils/profile-monitoring-helpers","profile-tetris-shared/utils/profile-tracking-helpers","@glimmer/component","@ember/service","@ember/object","@ember/destroyable","artdeco-button/components/artdeco-button","ember-cli-pemberly-i18n/helpers/t","artdeco-modal/components/artdeco-confirmation-dialog","ember-set-helper/helpers/set","@ember/modifier"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var w,P,S,O,k,A,I,M,D,N,R,x
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"rRCz7pn8",block:'[[[1,"\\n"],[1," "],[8,[32,0],[[4,[32,2],["click",[30,0,["handleClick"]]],null]],[["@type","@controlType","@color","@text"],["secondary","button","muted",[28,[32,1],["delete_skill","profile-tetris-shared/components/profile-component/action-component/delete-skill"],null]]],null],[1,"\\n\\n "],[8,[32,3],null,[["@isOpen","@title","@content","@primaryActionText","@secondaryActionText","@onPrimary","@onSecondary","@onEscape","@testId"],[[30,0,["isDeleteConfirmationDialogOpen"]],[28,[32,1],["delete_skill","profile-tetris-shared/components/profile-component/action-component/delete-skill"],null],[28,[32,1],["confirmation_text","profile-tetris-shared/components/profile-component/action-component/delete-skill"],null],[28,[32,1],["confirmation_prmiary_cta","profile-tetris-shared/components/profile-component/action-component/delete-skill"],null],[28,[32,1],["confirmation_secondary_cta","profile-tetris-shared/components/profile-component/action-component/delete-skill"],null],[30,0,["onConfirmDelete"]],[28,[32,4],[[30,0],"isDeleteConfirmationDialogOpen",false],null],[28,[32,4],[[30,0],"isDeleteConfirmationDialogOpen",false],null],"data-test-delete-confirmation-modal"]],null],[1,"\\n "]],[],false,[]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/delete-skill.gjs",scope:()=>[_.default,v.default,E.on,T.default,C.default],isStrictMode:!0}),(w=(0,g.inject)("profile-services@identity-store"),P=(0,g.inject)("persistent-toast-manager@persistent-toast-manager"),S=(0,g.inject)("i18n"),O=(0,g.inject)("client-sensor-web@client-sensor"),k=(0,g.inject)("tracking"),A=class e extends h.default{get skillUrn(){return(0,b.get)(this.args.tetrisComponentModel,"profileSkill.entityUrn")||(0,b.get)(this.args.tetrisComponentModel,"entityUrn")}constructor(){super(...arguments);(0,t.default)(this,"identityStore",I,this);(0,t.default)(this,"persistentToastManager",M,this);(0,t.default)(this,"i18n",D,this);(0,t.default)(this,"clientSensor",N,this);(0,t.default)(this,"tracking",R,this);(0,t.default)(this,"isDeleteConfirmationDialogOpen",x,this)
|
|
this._assertProps()}handleClick(){this.isDeleteConfirmationDialogOpen=!0;(0,f.fireCustomActionTrackingEvent)(this.tracking,this.args.trackingId,this.args.actionRecommendationTrackingId);(0,f.fireControlInteractionEvent)(this.tracking,(0,b.get)(this.args.tetrisComponentModel,"controlName"))}onConfirmDelete(){this.isDeleteConfirmationDialogOpen=!1
|
|
this._postDeleteRequest().then((()=>{var e,t
|
|
if(!(0,y.isDestroying)(this)){this.clientSensor.incrementMetricCounter({groupName:s.GROUP_NAME_PROFILE,metricName:"delete-skill-action-click-success"})
|
|
null===(e=(t=this.args).handleAction)||void 0===e||e.call(t,new u.default({type:c.UPDATE_PROFILE_VIEW_MODEL}))
|
|
this._showToast()
|
|
this._navigateBackToParent()}})).catch((e=>{if((0,y.isDestroying)(this))throw e;(0,m.fireActionClickFailedMonitoringEvent)(this.clientSensor,"delete-skill-action-click-failed",e)
|
|
throw e}))}_assertProps(){this.args.tetrisComponentModel&&this.skillUrn?this.clientSensor.incrementMetricCounter({groupName:s.GROUP_NAME_PROFILE,metricName:"delete-skill-action-component-served"}):this.clientSensor.incrementMetricCounter({groupName:s.GROUP_NAME_PROFILE,metricName:"delete-skill-action-component-dropped"})}_postDeleteRequest(){const e=this.skillUrn||this.args.tetrisComponentModel
|
|
return this.identityStore.ajax("com.linkedin.voyager.dash.identity.profile.Skill",void 0,{},e,"DELETE")}_showToast(){const t=this.i18n.lookupTranslation(e,"delete_toast_success")()
|
|
this.persistentToastManager.success({message:t})}_navigateBackToParent(){var e,t
|
|
null===(e=(t=this.args).handleAction)||void 0===e||e.call(t,new u.default({type:d.RENDER_ACTIONS.DELETE_SKILL}))}},I=(0,i.default)(A.prototype,"identityStore",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,i.default)(A.prototype,"persistentToastManager",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,i.default)(A.prototype,"i18n",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,i.default)(A.prototype,"clientSensor",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,i.default)(A.prototype,"tracking",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,i.default)(A.prototype,"isDeleteConfirmationDialogOpen",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(A.prototype,"handleClick",[b.action],Object.getOwnPropertyDescriptor(A.prototype,"handleClick"),A.prototype),(0,i.default)(A.prototype,"onConfirmDelete",[b.action],Object.getOwnPropertyDescriptor(A.prototype,"onConfirmDelete"),A.prototype),A))}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/delete-treasury",["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","graphql-queries/mutations/profile/edit/profile-delete-treasury.graphql","profile-tetris-shared/helpers/get-section-urn-from-section-union","profile-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/utils/constant/action-types","profile-tetris-shared/utils/constant/render-actions","profile-tetris-shared/utils/model/action-component-metadata","profile-tetris-shared/helpers/toast-helper","@glimmer/tracking","profile-tetris-shared/utils/profile-monitoring-helpers","profile-tetris-shared/utils/profile-tracking-helpers","@glimmer/component","@ember/service","@ember/object","@ember/destroyable","artdeco-button/components/artdeco-button","ember-cli-pemberly-i18n/helpers/t","artdeco-modal/components/artdeco-confirmation-dialog","ember-set-helper/helpers/set","profile-tetris-shared/components/profile-component/action-component/notifications","@ember/modifier"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E,w,P,S,O){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var k,A,I,M,D,N,R,x,U,L,j,F,z,V,B
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"TIIKqiYF",block:'[[[1,"\\n"],[1," "],[8,[32,0],[[4,[32,2],["click",[30,0,["onDeleteBtnClick"]]],null]],[["@class","@type","@controlType","@color","@icon","@text","@isLoading","@disabled"],[[52,[30,0,["isPending"]],"pvs-inline-loading-action--disabled"],"secondary","button","muted","trash",[52,[30,0,["shouldShowPendingActionIndicator"]],[28,[32,1],["deleting_treasury","profile-tetris-shared/components/profile-component/action-component/delete-treasury"],null],[28,[32,1],["delete_treasury","profile-tetris-shared/components/profile-component/action-component/delete-treasury"],null]],[30,0,["isPending"]],[30,0,["shouldDisable"]]]],null],[1,"\\n\\n "],[8,[32,3],null,[["@isOpen","@title","@content","@primaryActionText","@secondaryActionText","@onPrimary","@onSecondary","@onEscape","@testId"],[[30,0,["isDeleteConfirmationDialogOpen"]],[28,[32,1],["confirmation_title","profile-tetris-shared/components/profile-component/action-component/delete-treasury"],null],[28,[32,1],["confirmation_text","profile-tetris-shared/components/profile-component/action-component/delete-treasury"],null],[28,[32,1],["confirmation_prmiary_cta","profile-tetris-shared/components/profile-component/action-component/delete-treasury"],null],[28,[32,1],["confirmation_secondary_cta","profile-tetris-shared/components/profile-component/action-component/delete-treasury"],null],[30,0,["onConfirmDelete"]],[28,[32,4],[[30,0],"isDeleteConfirmationDialogOpen",false],null],[28,[32,4],[[30,0],"isDeleteConfirmationDialogOpen",false],null],"data-test-delete-confirmation-modal"]],null],[1,"\\n "]],[],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/delete-treasury.gjs",scope:()=>[C.default,E.default,O.on,w.default,P.default],isStrictMode:!0}),(k=(0,_.inject)("@linkedin/ember-restli-graphql@graphql"),A=(0,_.inject)("i18n"),I=(0,_.inject)("persistent-toast-manager@persistent-toast-manager"),M=(0,_.inject)("authentication@authenticated-user"),D=(0,_.inject)("client-sensor-web@client-sensor"),N=(0,_.inject)("tracking"),R=class extends y.default{get sectionUrn(){const e=(0,v.get)(this.args.tetrisComponentModel,"section")
|
|
if(e)return(0,c.getSectionUrnFromSectionUnion)(e)
|
|
return(0,v.get)(this.authenticatedUser,"miniProfile.entityUrn").replace("fs_miniProfile","fsd_profile")}get entityUrn(){return(0,v.get)(this.args.tetrisComponentModel,"treasuryMedia.entityUrn")||(0,v.get)(this.args.tetrisComponentModel,"entityUrn")}get shouldShowPendingActionIndicator(){return this.isPending}get shouldDisable(){return this.args.shouldDisable&&!this.shouldShowPendingActionIndicator}constructor(){super(...arguments);(0,t.default)(this,"graphql",x,this);(0,t.default)(this,"i18n",U,this);(0,t.default)(this,"persistentToastManager",L,this);(0,t.default)(this,"authenticatedUser",j,this);(0,t.default)(this,"clientSensor",F,this);(0,t.default)(this,"tracking",z,this);(0,t.default)(this,"isDeleteConfirmationDialogOpen",V,this);(0,t.default)(this,"isPending",B,this)
|
|
this._assertProps()}onDeleteBtnClick(){this.isDeleteConfirmationDialogOpen=!0;(0,b.fireCustomActionTrackingEvent)(this.tracking,this.args.trackingId)
|
|
const e=(0,v.get)(this.args.tetrisComponentModel,"controlName")
|
|
e&&this.tracking.fireInteractionEvent(e)}onConfirmDelete(){this.isDeleteConfirmationDialogOpen=!1
|
|
if(this.sectionUrn){this._fireDisableAction(!0)
|
|
this.graphql.executeMutation(s.default,{resourceKey:this.entityUrn,sectionUrn:this.sectionUrn}).then((()=>{var e,t
|
|
if(!(0,T.isDestroying)(this)){this.clientSensor.incrementMetricCounter({groupName:p.GROUP_NAME_PROFILE,metricName:"delete-treasury-action-click-success"});(0,f.showToast)(this.i18n,this.persistentToastManager,S.default,"i18n_delete_treasury_item")
|
|
return null===(e=(t=this.args).handleAction)||void 0===e?void 0:e.call(t,new m.default({type:d.UPDATE_PROFILE_VIEW_MODEL}))}})).catch((e=>{if((0,T.isDestroying)(this))throw e;(0,g.fireActionClickFailedMonitoringEvent)(this.clientSensor,"delete-treasury-action-click-failed",e)
|
|
if(!e||!e.isAdapterError)throw e;(0,f.showToast)(this.i18n,this.persistentToastManager,S.default,"i18n_delete_failure",f.TOAST_TYPE.ERROR)})).finally((()=>{this.isDestroying||this._fireDisableAction(!1)}))}}_assertProps(){this.args.tetrisComponentModel?this.clientSensor.incrementMetricCounter({groupName:p.GROUP_NAME_PROFILE,metricName:"delete-treasury-action-component-served"}):this.clientSensor.incrementMetricCounter({groupName:p.GROUP_NAME_PROFILE,metricName:"delete-treasury-action-component-dropped"})}_fireDisableAction(e){var t,n
|
|
this.isPending=e
|
|
null===(t=(n=this.args).handleAction)||void 0===t||t.call(n,new m.default({type:u.RENDER_ACTIONS.DELETE_TREASURY,options:{disableAll:e}}))}},x=(0,i.default)(R.prototype,"graphql",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,i.default)(R.prototype,"i18n",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,i.default)(R.prototype,"persistentToastManager",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,i.default)(R.prototype,"authenticatedUser",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,i.default)(R.prototype,"clientSensor",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,i.default)(R.prototype,"tracking",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,i.default)(R.prototype,"isDeleteConfirmationDialogOpen",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),B=(0,i.default)(R.prototype,"isPending",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(R.prototype,"onDeleteBtnClick",[v.action],Object.getOwnPropertyDescriptor(R.prototype,"onDeleteBtnClick"),R.prototype),(0,i.default)(R.prototype,"onConfirmDelete",[v.action],Object.getOwnPropertyDescriptor(R.prototype,"onConfirmDelete"),R.prototype),R))}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/dismiss",["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-tetris-shared/utils/constant/monitoring-constants","@ember/service","profile-tetris-shared/utils/model/action-component-metadata","profile-tetris-shared/utils/profile-tracking-helpers","profile-tetris-shared/utils/constant/render-actions","@glimmer/component","@ember/object","@glimmer/tracking","artdeco-button/components/artdeco-button","artdeco-modal/components/artdeco-confirmation-dialog","button-appearance/helpers/button-appearance-attributes","@ember/modifier"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var v,T,C,E,w,P,S,O
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"xjEZGuiC",block:'[[[1,"\\n "],[8,[32,0],[[4,[32,1],["click",[30,0,["handleClick"]]],null]],[["@type","@color","@size","@circle","@iconRight","@theme","@controlType","@text","@icon","@aria-label"],[[30,0,["buttonAppearanceAttributes","type"]],[30,0,["buttonAppearanceAttributes","color"]],[30,0,["buttonAppearanceAttributes","size"]],[30,0,["buttonAppearanceAttributes","isCircle"]],[30,0,["buttonAppearanceAttributes","iconRight"]],[30,0,["buttonAppearanceAttributes","theme"]],"button",[30,0,["buttonAppearanceAttributes","text"]],[30,0,["buttonAppearanceAttributes","icon"]],[30,1,["accessibilityText"]]]],null],[1,"\\n"],[41,[30,1,["dimissActionAlert"]],[[[1," "],[8,[32,2],null,[["@isOpen","@title","@content","@primaryActionText","@secondaryActionText","@onPrimary","@onSecondary","@onEscape","@testId"],[[30,0,["showDismissAlert"]],[30,1,["dimissActionAlert","title","text"]],[30,1,["dimissActionAlert","description","text"]],[30,1,["dimissActionAlert","primaryButtonText","text"]],[30,1,["dimissActionAlert","secondaryButtonText","text"]],[30,0,["onConfirmDiscardChanges"]],[30,0,["onCancelDiscardChanges"]],[30,0,["onDismissDiscardChanges"]],"profile-dismiss-action-alert"]],null],[1,"\\n"]],[]],null],[1," "]],["@tetrisComponentModel"],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/dismiss.gjs",scope:()=>[g.default,_.on,b.default],isStrictMode:!0}),(v=(0,c.inject)("lego@tracking"),T=(0,c.inject)("tracking"),C=(0,c.inject)("client-sensor-web@client-sensor"),E=class extends m.default{get shouldOverrideButtonSize(){return"com.linkedin.voyager.dash.identity.profile.tetris.PromptComponent"===(0,f.get)(this.args,"actionContext.$type")}get buttonAppearanceAttributes(){const{buttonAppearance:e}=this.args.tetrisComponentModel
|
|
return e?(0,y.default)(e):{type:"tertiary",color:"muted",size:this.shouldOverrideButtonSize?"1":"3",isCircle:!0,icon:"close",theme:"standard"}}constructor(){super(...arguments);(0,t.default)(this,"legoTracking",w,this);(0,t.default)(this,"tracking",P,this);(0,t.default)(this,"clientSensor",S,this);(0,t.default)(this,"showDismissAlert",O,this)
|
|
this._assertProps()}_assertProps(){(0,f.get)(this.args.tetrisComponentModel,"actionDelegateUrn")?this.clientSensor.incrementMetricCounter({groupName:s.GROUP_NAME_PROFILE,metricName:"dismiss-action-component-served"}):this.clientSensor.incrementMetricCounter({groupName:s.GROUP_NAME_PROFILE,metricName:"dismiss-action-component-dropped"})}handleClick(){this.args.tetrisComponentModel.dimissActionAlert?this.showDismissAlert=!0:this.doDismiss()}onConfirmDiscardChanges(){this.showDismissAlert=!1
|
|
this.doDismiss()}onCancelDiscardChanges(){this.showDismissAlert=!1}onDismissDiscardChanges(){this.showDismissAlert=!1}doDismiss(){var e,t
|
|
this._fireActionTrackingEvent()
|
|
null===(e=(t=this.args).handleAction)||void 0===e||e.call(t,new p.default({type:u.RENDER_ACTIONS.DISMISS,actionDelegateUrn:(0,f.get)(this.args.tetrisComponentModel,"actionDelegateUrn")}))}_fireActionTrackingEvent(){const e=(0,f.get)(this.args.tetrisComponentModel,"legoTrackingId")
|
|
e&&this.legoTracking.sendLegoAction(e,this.legoTracking.LEGO_ACTION_DISMISS)
|
|
const t=(0,f.get)(this.args.tetrisComponentModel,"actionControlName");(0,d.fireControlInteractionEvent)(this.tracking,t);(0,d.fireCustomActionTrackingEvent)(this.tracking,this.args.trackingId,this.args.actionRecommendationTrackingId)}},w=(0,i.default)(E.prototype,"legoTracking",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,i.default)(E.prototype,"tracking",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,i.default)(E.prototype,"clientSensor",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,i.default)(E.prototype,"showDismissAlert",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(E.prototype,"handleClick",[f.action],Object.getOwnPropertyDescriptor(E.prototype,"handleClick"),E.prototype),(0,i.default)(E.prototype,"onConfirmDiscardChanges",[f.action],Object.getOwnPropertyDescriptor(E.prototype,"onConfirmDiscardChanges"),E.prototype),(0,i.default)(E.prototype,"onCancelDiscardChanges",[f.action],Object.getOwnPropertyDescriptor(E.prototype,"onCancelDiscardChanges"),E.prototype),(0,i.default)(E.prototype,"onDismissDiscardChanges",[f.action],Object.getOwnPropertyDescriptor(E.prototype,"onDismissDiscardChanges"),E.prototype),E))}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/endorsed-skill",["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-tetris-shared/utils/profile-monitoring-helpers","profile-tetris-shared/utils/profile-tracking-helpers","profile-tetris-shared/helpers/check-type","profile-tetris-shared/utils/model/action-component-metadata","profile-tetris-shared/utils/constant/action-types","profile-tetris-shared/utils/constant/monitoring-constants","@glimmer/tracking","@glimmer/component","@ember/service","@ember/object","@ember/destroyable","artdeco-button/components/artdeco-button","ember-cli-pemberly-i18n/helpers/t","@ember/modifier"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var C,E,w,P,S,O,k,A
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"Tuuiyru+",block:'[[[1,"\\n"],[1," "],[8,[32,0],[[4,[32,2],["click",[30,0,["handleClick"]]],null]],[["@class","@type","@controlType","@color","@icon","@text","@isLoading"],[[52,[30,0,["isPending"]],"pvs-inline-loading-action--disabled artdeco-button--disabled"],"secondary","button","muted",[52,[30,0,["showEndorsedText"]],"check"],[52,[30,0,["showEndorsedText"]],[28,[32,1],["endorsed","profile-tetris-shared/components/profile-component/action-component/endorsed-skill"],null],[28,[32,1],["endorse","profile-tetris-shared/components/profile-component/action-component/endorsed-skill"],null]],[30,0,["isPending"]]]],null],[1,"\\n "]],[],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/endorsed-skill.gjs",scope:()=>[_.default,v.default,T.on],isStrictMode:!0}),(C=(0,g.inject)("profile-services@identity-store"),E=(0,g.inject)("client-sensor-web@client-sensor"),w=(0,g.inject)("tracking"),P=class extends h.default{get endorsedSkillModel(){return(0,b.get)(this.args.tetrisComponentModel,"endorsedSkill")||this.args.tetrisComponentModel}get isEndorsedByViewer(){return(0,b.get)(this.endorsedSkillModel,"endorsedByViewer")}get showEndorsedText(){return this.isEndorsedByViewer}constructor(){super(...arguments);(0,t.default)(this,"identityStore",S,this);(0,t.default)(this,"clientSensor",O,this);(0,t.default)(this,"tracking",k,this);(0,t.default)(this,"isPending",A,this)
|
|
this._assertProps()}_assertProps(){const{entityUrn:e,endorsedByViewer:t}=(0,b.getProperties)(this.endorsedSkillModel,"entityUrn","endorsedByViewer")
|
|
e&&(0,p.isBoolean)(t)?this.clientSensor.incrementMetricCounter({groupName:m.GROUP_NAME_PROFILE,metricName:"endorsed-skill-action-component-served"}):this.clientSensor.incrementMetricCounter({groupName:m.GROUP_NAME_PROFILE,metricName:"endorsed-skill-action-component-dropped"})}handleClick(){const e={action:this.isEndorsedByViewer?"unendorse":"endorse"},t={endorsedSkillUrn:(0,b.get)(this.endorsedSkillModel,"entityUrn")};(0,c.fireCustomActionTrackingEvent)(this.tracking,this.args.trackingId,this.args.actionRecommendationTrackingId)
|
|
this.isEndorsedByViewer?(0,c.fireControlInteractionEvent)(this.tracking,(0,b.get)(this.args.tetrisComponentModel,"unendorseControlName")):(0,c.fireControlInteractionEvent)(this.tracking,(0,b.get)(this.args.tetrisComponentModel,"endorseControlName"))
|
|
this.isPending=!0
|
|
this.identityStore.queryURL("com.linkedin.voyager.dash.identity.profile.EndorsedSkill","",{queryParams:e,params:t,reload:!0,method:"POST"}).then((()=>{var e,t
|
|
if(!(0,y.isDestroying)(this)){this.clientSensor.incrementMetricCounter({groupName:m.GROUP_NAME_PROFILE,metricName:"endorsed-skill-action-click-success"})
|
|
null===(e=(t=this.args).handleAction)||void 0===e||e.call(t,new d.default({type:u.UPDATE_PROFILE_VIEW_MODEL}))}})).catch((e=>{if((0,y.isDestroying)(this))throw e;(0,s.fireActionClickFailedMonitoringEvent)(this.clientSensor,"endorsed-skill-action-click-failed",e)
|
|
throw e})).finally((()=>{(0,y.isDestroying)(this)||(this.isPending=!1)}))}},S=(0,i.default)(P.prototype,"identityStore",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,i.default)(P.prototype,"clientSensor",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,i.default)(P.prototype,"tracking",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,i.default)(P.prototype,"isPending",[f.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(P.prototype,"handleClick",[b.action],Object.getOwnPropertyDescriptor(P.prototype,"handleClick"),P.prototype),P))}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/feature-or-unfeature",["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-tetris-shared/utils/profile-monitoring-helpers","profile-tetris-shared/utils/constant/render-actions","profile-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/helpers/toast-helper","graphql-queries/queries/profile/organized-queries/view/featured/profile-featured-items-unfeature.graphql","graphql-queries/queries/profile/organized-queries/view/featured/profile-featured-items-feature.graphql","profile-tetris-shared/utils/constant/action-types","profile-tetris-shared/utils/model/action-component-metadata","profile-tetris-shared/utils/profile-tracking-helpers","@glimmer/component","@ember/service","@glimmer/tracking","@ember/object","@ember/destroyable","artdeco-button/components/artdeco-button","@ember/modifier"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var w,P,S,O,k,A,I,M,D,N,R,x,U
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"kxJgs0Dk",block:'[[[1,"\\n"],[1," "],[8,[32,0],[[4,[32,1],["click",[30,0,["handleClick"]]],null]],[["@class","@type","@controlType","@color","@text","@icon","@isLoading","@disabled"],[[52,[30,0,["isPending"]],"pvs-inline-loading-action--disabled"],"secondary","button","muted",[30,0,["featureButtonText"]],[52,[30,0,["isFeatured"]],"star-fill","star-outline"],[30,0,["isPending"]],[30,0,["shouldDisable"]]]],null],[1,"\\n "]],[],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/feature-or-unfeature.gjs",scope:()=>[C.default,E.on],isStrictMode:!0}),(w=(0,y.inject)("@linkedin/ember-restli-graphql@graphql"),P=(0,y.inject)("persistent-toast-manager@persistent-toast-manager"),S=(0,y.inject)("i18n"),O=(0,y.inject)("client-sensor-web@client-sensor"),k=(0,y.inject)("tracking"),A=class e extends b.default{constructor(){super(...arguments);(0,t.default)(this,"graphql",I,this);(0,t.default)(this,"persistentToastManager",M,this);(0,t.default)(this,"i18n",D,this);(0,t.default)(this,"clientSensor",N,this);(0,t.default)(this,"tracking",R,this);(0,t.default)(this,"isFeatured",x,this);(0,t.default)(this,"isPending",U,this)
|
|
this._assertProps()}get featuredItemCardUrn(){return(0,v.get)(this.args.tetrisComponentModel,"featuredItemCard.entityUrn")||(0,v.get)(this.args.tetrisComponentModel,"entityUrn")}get shouldDisable(){return this.args.shouldDisable&&!this.isPending}get featureButtonText(){let t=this.isFeatured?"remove_from_featured":"add_to_featured"
|
|
this.isPending&&(t=this.isFeatured?"removing_from_featured":"adding_to_featured")
|
|
return this.i18n.lookupTranslation(e,t)()}handleClick(){const t=this.featuredItemCardUrn;(0,g.fireCustomActionTrackingEvent)(this.tracking,this.args.trackingId,this.args.actionRecommendationTrackingId)
|
|
this.isFeatured?(0,g.fireControlInteractionEvent)(this.tracking,(0,v.get)(this.args.tetrisComponentModel,"unfeatureControlName")):(0,g.fireControlInteractionEvent)(this.tracking,(0,v.get)(this.args.tetrisComponentModel,"featureControlName"))
|
|
this.isFeatured?this._unfeatureAction(t).then((()=>{var t,n
|
|
if(!(0,T.isDestroying)(this)){this.clientSensor.incrementMetricCounter({groupName:p.GROUP_NAME_PROFILE,metricName:"feature-or-unfeature-action-click-success"})
|
|
this.isFeatured=!1
|
|
null===(t=(n=this.args).handleAction)||void 0===t||t.call(n,new h.default({type:f.UPDATE_PROFILE_VIEW_MODEL}));(0,d.showToast)(this.i18n,this.persistentToastManager,e,"i18n_success_remove_featured")}})).catch((t=>{if((0,T.isDestroying)(this))throw t
|
|
this.clientSensor.incrementMetricCounter({groupName:p.GROUP_NAME_PROFILE,metricName:"feature-or-unfeature-action-click-failed"})
|
|
if(!t||!t.isAdapterError)throw t;(0,d.showToast)(this.i18n,this.persistentToastManager,e,"i18n_failed_remove_featured",d.TOAST_TYPE.ERROR)})).finally((()=>{(0,T.isDestroying)(this)||this._fireDisableAction(!1)})):this._featureAction(t).then((()=>{var t,n
|
|
if(!(0,T.isDestroying)(this)){this.clientSensor.incrementMetricCounter({groupName:p.GROUP_NAME_PROFILE,metricName:"feature-or-unfeature-action-click-success"})
|
|
this.isFeatured=!0
|
|
null===(t=(n=this.args).handleAction)||void 0===t||t.call(n,new h.default({type:f.UPDATE_PROFILE_VIEW_MODEL}));(0,d.showToast)(this.i18n,this.persistentToastManager,e,"i18n_feature_success")}})).catch((t=>{if((0,T.isDestroying)(this))throw t;(0,s.fireActionClickFailedMonitoringEvent)(this.clientSensor,"feature-or-unfeature-action-click-failed",t)
|
|
if(!t||!t.isAdapterError)throw t;(0,d.showToast)(this.i18n,this.persistentToastManager,e,"i18n_feature_fail",d.TOAST_TYPE.ERROR)})).finally((()=>{(0,T.isDestroying)(this)||this._fireDisableAction(!1)}))}_assertProps(){this.featuredItemCardUrn?this.clientSensor.incrementMetricCounter({groupName:p.GROUP_NAME_PROFILE,metricName:"feature-or-unfeature-action-component-served"}):this.clientSensor.incrementMetricCounter({groupName:p.GROUP_NAME_PROFILE,metricName:"feature-or-unfeature-action-component-dropped"})}_unfeatureAction(e){this._fireDisableAction(!0)
|
|
return this.graphql.executeQuery(u.default,{urnsToRemove:[e]},{reload:!0}).then((e=>{if(!(0,T.isDestroying)(this))return(0,v.get)(e,"data.doUnfeatureItemsIdentityDashProfileFeaturedItemCards")}))}_featureAction(e){this._fireDisableAction(!0)
|
|
return this.graphql.executeQuery(m.default,{urnsToFeature:[e]},{reload:!0}).then((e=>{if(!(0,T.isDestroying)(this))return(0,v.get)(e,"data.doFeatureItemsIdentityDashProfileFeaturedItemCards")}))}_fireDisableAction(e){var t,n
|
|
this.isPending=e
|
|
null===(t=(n=this.args).handleAction)||void 0===t||t.call(n,new h.default({type:c.RENDER_ACTIONS.FEATURE_OR_UNFEATURE,options:{disableAll:e}}))}},I=(0,i.default)(A.prototype,"graphql",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,i.default)(A.prototype,"persistentToastManager",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,i.default)(A.prototype,"i18n",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,i.default)(A.prototype,"clientSensor",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,i.default)(A.prototype,"tracking",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,i.default)(A.prototype,"isFeatured",[_.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),U=(0,i.default)(A.prototype,"isPending",[_.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(A.prototype,"handleClick",[v.action],Object.getOwnPropertyDescriptor(A.prototype,"handleClick"),A.prototype),A))}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/following-state",["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","button-appearance/helpers/button-appearance-attributes","profile-tetris-shared/utils/profile-monitoring-helpers","profile-tetris-shared/utils/profile-tracking-helpers","profile-tetris-shared/helpers/check-type","profile-tetris-shared/utils/constant/monitoring-constants","urn-utils","@glimmer/tracking","@glimmer/component","@ember/service","@ember/object","@ember/destroyable","artdeco-button/components/artdeco-button","ember-cli-pemberly-i18n/helpers/t","@ember/modifier"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var C,E,w,P,S,O,k,A
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"KfHSRbLl",block:'[[[1,"\\n"],[1," "],[8,[32,0],[[16,0,[52,[30,0,["isPending"]],"pvs-inline-loading-action--disabled artdeco-button--disabled"]],[4,[32,2],["click",[30,0,["handleClick"]]],null]],[["@type","@color","@size","@circle","@iconRight","@theme","@controlType","@icon","@text","@isLoading"],[[30,0,["buttonAppearanceAttributes","type"]],[30,0,["buttonAppearanceAttributes","color"]],[30,0,["buttonAppearanceAttributes","size"]],[30,0,["buttonAppearanceAttributes","isCircle"]],[30,0,["buttonAppearanceAttributes","iconRight"]],[30,0,["buttonAppearanceAttributes","theme"]],"button",[52,[30,0,["showFollowingText"]],"check","add"],[52,[30,0,["showFollowingText"]],[28,[32,1],["following","profile-tetris-shared/components/profile-component/action-component/following-state"],null],[28,[32,1],["follow","profile-tetris-shared/components/profile-component/action-component/following-state"],null]],[30,0,["isPending"]]]],null],[1,"\\n "]],[],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/following-state.gjs",scope:()=>[_.default,v.default,T.on],isStrictMode:!0}),(C=(0,g.inject)("connect-button@follow-state-sync"),E=(0,g.inject)("client-sensor-web@client-sensor"),w=(0,g.inject)("tracking"),P=class extends h.default{get followingStateModel(){return(0,b.get)(this.args.tetrisComponentModel,"followingState")||this.args.tetrisComponentModel}get isFollowing(){return(0,b.get)(this.followingStateModel,"following")||this.followStateSync.isFollowing(this.profileUrn)}get showFollowingText(){return this.isFollowing}get profileUrn(){const e=(0,b.get)(this.followingStateModel,"entityUrn")
|
|
return e?(0,m.extractEntityInfoFromUrn)(e).id:null}get buttonAppearanceAttributes(){const{buttonAppearance:e}=this.args.tetrisComponentModel
|
|
return e?(0,s.default)(e):{type:"secondary",color:this.args.headerAction?"default":"muted",size:2,theme:"standard"}}constructor(){super(...arguments);(0,t.default)(this,"followStateSync",S,this);(0,t.default)(this,"clientSensor",O,this);(0,t.default)(this,"tracking",k,this);(0,t.default)(this,"isPending",A,this)
|
|
this._assertProps()}_assertProps(){const{entityUrn:e,following:t}=(0,b.getProperties)(this.followingStateModel,"entityUrn","following")
|
|
e&&(0,d.isBoolean)(t)?this.clientSensor.incrementMetricCounter({groupName:u.GROUP_NAME_PROFILE,metricName:"following-state-action-component-served"}):this.clientSensor.incrementMetricCounter({groupName:u.GROUP_NAME_PROFILE,metricName:"following-state-action-component-dropped"})}handleClick(){const e=(0,b.get)(this.followingStateModel,"entityUrn"),t=this.isFollowing?"UNFOLLOW":"FOLLOW";(0,p.fireCustomActionTrackingEvent)(this.tracking,this.args.trackingId,this.args.actionRecommendationTrackingId,this.args.actionTrackingMetadataUnions,t)
|
|
this.isFollowing?(0,p.fireControlInteractionEvent)(this.tracking,(0,b.get)(this.args.tetrisComponentModel,"unfollowControlName")):(0,p.fireControlInteractionEvent)(this.tracking,(0,b.get)(this.args.tetrisComponentModel,"followControlName"))
|
|
const n=!this.isFollowing
|
|
this.isPending=!0;(0,b.set)(this.followingStateModel,"following",n)
|
|
this.followingStateModel.save({adapterOptions:{partial:!0,url:`/voyager/api/feed/dash/followingStates/${e}`}}).then((()=>{if(!(0,y.isDestroying)(this)){this.clientSensor.incrementMetricCounter({groupName:u.GROUP_NAME_PROFILE,metricName:"following-state-action-click-success"})
|
|
this.followStateSync.setFollowing(this.profileUrn,n)}})).catch((e=>{if((0,y.isDestroying)(this))throw e;(0,b.set)(this.followingStateModel,"following",!n);(0,c.fireActionClickFailedMonitoringEvent)(this.clientSensor,"following-state-action-click-failed",e)
|
|
throw e})).finally((()=>{(0,y.isDestroying)(this)||(this.isPending=!1)}))}},S=(0,i.default)(P.prototype,"followStateSync",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,i.default)(P.prototype,"clientSensor",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,i.default)(P.prototype,"tracking",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,i.default)(P.prototype,"isPending",[f.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(P.prototype,"handleClick",[b.action],Object.getOwnPropertyDescriptor(P.prototype,"handleClick"),P.prototype),P))}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/group-membership",["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","button-appearance/helpers/button-appearance-attributes","profile-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/utils/profile-tracking-helpers","@ember/service","@ember/object","@glimmer/component","groups-join/components/group-join","global-helpers/helpers/eq"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var h,g,b,y,_
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"NiURCSs+",block:'[[[1,"\\n"],[41,[30,0,["shouldShowGroupCTA"]],[[[1," "],[8,[32,0],null,[["@buttonType","@isMuted","@groupMembership","@isDashEnabled","@onFailure","@onSuccess"],[[30,0,["buttonAppearanceAttributes","type"]],[28,[32,1],[[30,0,["buttonAppearanceAttributes","color"]],"muted"],null],[30,0,["groupMembershipModel"]],true,[30,0,["onClickFailure"]],[30,0,["onClickSuccess"]]]],null],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/group-membership.gjs",scope:()=>[m.default,f.default],isStrictMode:!0}),(h=(0,p.inject)("client-sensor-web@client-sensor"),g=(0,p.inject)("tracking"),b=class extends u.default{constructor(){var e
|
|
super(...arguments);(0,t.default)(this,"clientSensor",y,this);(0,t.default)(this,"tracking",_,this)
|
|
null!==(e=this.groupMembershipModel)&&void 0!==e&&e.group?this.clientSensor.incrementMetricCounter({groupName:s.GROUP_NAME_PROFILE,metricName:"group-membership-action-component-served"}):this.clientSensor.incrementMetricCounter({groupName:s.GROUP_NAME_PROFILE,metricName:"group-membership-action-component-dropped"})}get groupMembershipModel(){return this.args.tetrisComponentModel.groupMembership||this.args.tetrisComponentModel}get shouldShowGroupCTA(){return!!this.groupMembershipModel}get buttonAppearanceAttributes(){const{buttonAppearance:e}=this.args.tetrisComponentModel
|
|
return e?(0,a.default)(e):{type:"secondary",color:"muted",size:2,theme:"standard"}}onClickSuccess(e){(0,c.fireCustomActionTrackingEvent)(this.tracking,this.args.trackingId,this.args.actionRecommendationTrackingId,this.args.actionTrackingMetadataUnions,e)
|
|
this.clientSensor.incrementMetricCounter({groupName:s.GROUP_NAME_PROFILE,metricName:"group-membership-action-click-success"})}onClickFailure(){(0,c.fireCustomActionTrackingEvent)(this.tracking,this.args.trackingId)
|
|
this.clientSensor.incrementMetricCounter({groupName:s.GROUP_NAME_PROFILE,metricName:"group-membership-action-click-failed"})}},y=(0,i.default)(b.prototype,"clientSensor",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,i.default)(b.prototype,"tracking",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(b.prototype,"onClickSuccess",[d.action],Object.getOwnPropertyDescriptor(b.prototype,"onClickSuccess"),b.prototype),(0,i.default)(b.prototype,"onClickFailure",[d.action],Object.getOwnPropertyDescriptor(b.prototype,"onClickFailure"),b.prototype),b))}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/ignore-recommendation-request",["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-tetris-shared/utils/constant/action-types","profile-tetris-shared/utils/model/action-component-metadata","profile-tetris-shared/utils/constant/monitoring-constants","graphql-queries/queries/profile/organized-queries/view/recommendation-requests/profile-recommendation-requests-ignore.graphql","@glimmer/tracking","profile-tetris-shared/utils/profile-monitoring-helpers","profile-tetris-shared/utils/profile-tracking-helpers","@ember/service","@glimmer/component","@ember/object","@ember/destroyable","artdeco-button/components/artdeco-button","ember-cli-pemberly-i18n/helpers/t","artdeco-modal/components/artdeco-confirmation-dialog","profile-tetris-shared/components/profile-component/action-component/notifications","@ember/modifier"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var w,P,S,O,k,A,I,M,D,N,R,x,U
|
|
const L="success"
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"ptk5Adcx",block:'[[[1,"\\n"],[1," "],[8,[32,0],[[4,[32,2],["click",[30,0,["handleClick"]]],null]],[["@class","@type","@controlType","@color","@icon","@circle","@size","@aria-label","@isLoading","@disabled"],[[52,[30,0,["isPending"]],"pvs-inline-loading-action--disabled artdeco-button--disabled"],"tertiary","button","muted","trash",true,3,[28,[32,1],["i18n_ignore_a11y","profile-tetris-shared/components/profile-component/action-component/ignore-recommendation-request"],null],[30,0,["isPending"]],[30,0,["shouldDisable"]]]],null],[1,"\\n\\n "],[8,[32,3],null,[["@isOpen","@title","@content","@primaryActionText","@secondaryActionText","@onPrimary","@onSecondary","@onEscape","@testId"],[[30,0,["isDeleteConfirmationDialogOpen"]],[28,[32,1],["confirmation_title","profile-tetris-shared/components/profile-component/action-component/ignore-recommendation-request"],null],[28,[32,1],["confirmation_text","profile-tetris-shared/components/profile-component/action-component/ignore-recommendation-request"],null],[28,[32,1],["confirmation_prmiary_cta","profile-tetris-shared/components/profile-component/action-component/ignore-recommendation-request"],null],[28,[32,1],["confirmation_secondary_cta","profile-tetris-shared/components/profile-component/action-component/ignore-recommendation-request"],null],[30,0,["onConfirmDelete"]],[30,0,["onCancelDelete"]],[30,0,["onCancelDelete"]],"data-test-delete-confirmation-modal"]],null],[1,"\\n "]],[],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/ignore-recommendation-request.gjs",scope:()=>[_.default,v.default,E.on,T.default],isStrictMode:!0}),(w=(0,h.inject)("i18n"),P=(0,h.inject)("@linkedin/ember-restli-graphql@graphql"),S=(0,h.inject)("persistent-toast-manager@persistent-toast-manager"),O=(0,h.inject)("client-sensor-web@client-sensor"),k=(0,h.inject)("tracking"),A=class extends g.default{get recommendationRequestUrn(){return(0,b.get)(this.args,"tetrisComponentModel.recommendationRequest.entityUrn")||(0,b.get)(this.args,"tetrisComponentModel.entityUrn")}get shouldShowPendingActionIndicator(){return this.isPending}get shouldDisable(){return this.args.shouldDisable&&!this.shouldShowPendingActionIndicator}constructor(){super(...arguments);(0,t.default)(this,"i18n",I,this);(0,t.default)(this,"graphql",M,this);(0,t.default)(this,"persistentToastManager",D,this);(0,t.default)(this,"clientSensor",N,this);(0,t.default)(this,"tracking",R,this);(0,t.default)(this,"isDeleteConfirmationDialogOpen",x,this);(0,t.default)(this,"isPending",U,this)
|
|
this._assertProps()}onConfirmDelete(){this.isDeleteConfirmationDialogOpen=!1
|
|
this._ignoreRecommendation()}onCancelDelete(){this.isDeleteConfirmationDialogOpen=!1}handleClick(){this.isDeleteConfirmationDialogOpen=!0;(0,f.fireCustomActionTrackingEvent)(this.tracking,this.args.trackingId,this.args.actionRecommendationTrackingId);(0,f.fireControlInteractionEvent)(this.tracking,(0,b.get)(this.args.tetrisComponentModel,"controlName"))}_assertProps(){this.recommendationRequestUrn?this.clientSensor.incrementMetricCounter({groupName:p.GROUP_NAME_PROFILE,metricName:"ignore-recommendation-request-action-component-served"}):this.clientSensor.incrementMetricCounter({groupName:p.GROUP_NAME_PROFILE,metricName:"ignore-recommendation-request-action-component-dropped"})}_ignoreRecommendation(){const{recommendationRequestUrn:e}=this
|
|
this.isPending=!0
|
|
this._handleAction({type:s.SHOW_DISABLED_STATE})
|
|
this.graphql.executeQuery(d.default,{recommendationRequestUrn:e},{reload:!0}).then((e=>{if(!(0,y.isDestroying)(this))return(0,b.get)(e,"data.doIgnoreIdentityDashRecommendationRequests")})).then((e=>{if(!(0,y.isDestroying)(this)){this.clientSensor.incrementMetricCounter({groupName:p.GROUP_NAME_PROFILE,metricName:"ignore-recommendation-request-action-click-success"})
|
|
this._showToast(L,"i18n_delete_pending_recommendation")
|
|
return e}})).catch((e=>{if((0,y.isDestroying)(this))throw e;(0,m.fireActionClickFailedMonitoringEvent)(this.clientSensor,"ignore-recommendation-request-action-click-failed",e)
|
|
if(!e||!e.isAdapterError)throw e
|
|
this._showToast("error","i18n_delete_failure")})).finally((()=>{if(!(0,y.isDestroying)(this)){this.isPending=!1
|
|
this._handleAction({type:s.DISMISS_DISABLED_STATE})}}))}_handleAction(e){var t,n
|
|
null===(t=(n=this.args).handleAction)||void 0===t||t.call(n,new c.default(e))}_showToast(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,t=arguments.length>1?arguments[1]:void 0
|
|
const n=this.persistentToastManager,i=this.i18n.lookupTranslation(C.default,t)()
|
|
e===L?n.success({message:i}):n.error({message:i})}},I=(0,i.default)(A.prototype,"i18n",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,i.default)(A.prototype,"graphql",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,i.default)(A.prototype,"persistentToastManager",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,i.default)(A.prototype,"clientSensor",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,i.default)(A.prototype,"tracking",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,i.default)(A.prototype,"isDeleteConfirmationDialogOpen",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),U=(0,i.default)(A.prototype,"isPending",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(A.prototype,"onConfirmDelete",[b.action],Object.getOwnPropertyDescriptor(A.prototype,"onConfirmDelete"),A.prototype),(0,i.default)(A.prototype,"onCancelDelete",[b.action],Object.getOwnPropertyDescriptor(A.prototype,"onCancelDelete"),A.prototype),(0,i.default)(A.prototype,"handleClick",[b.action],Object.getOwnPropertyDescriptor(A.prototype,"handleClick"),A.prototype),A))}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/modal",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/helper","@ember/component","@glimmer/component","@glimmer/tracking","@ember/object","button-appearance/components/button-appearance","artdeco-modal/components/artdeco-modal","profile-tetris-shared/components/profile-component/text","ember-cli-pemberly-tracking/modifiers/track-render","profile-tetris-shared/components/profile-component-builder"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var g,b
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"Wg7YNeEp",block:'[[[1,"\\n "],[8,[32,0],null,[["@onClick","@appearance"],[[30,0,["onClick"]],[30,0,["buttonAppearance"]]]],null],[1,"\\n "],[8,[32,1],null,[["@isOpen","@size","@dismissModal"],[[30,0,["isBottomSheetModalOpen"]],"medium",[30,0,["closeBottomSheetModal"]]]],[["default"],[[[[1,"\\n "],[8,[30,1,["artdeco-modal-header"]],null,null,[["default"],[[[[1,"\\n "],[10,"h2"],[14,1,"modal-header"],[12],[1,"\\n"],[1," "],[8,[32,2],null,[["@textClass","@tetrisComponentModel"],[" ",[30,2,["header"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[30,1,["artdeco-modal-content"]],[[24,0,"pvs-modal__content relative"],[4,[32,3],null,[["pageKey","routeName","currentRoute"],[[30,2,["pageKey","pageKey"]],[28,[32,4],[[53,"outletState"],"render.name"],null],[28,[32,4],[[53,"outletState"],"render"],null]]]]],[["@hasPadding"],[true]],[["default"],[[[[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,2,["data"]]],null]],null],null,[[[1," "],[8,[32,5],null,[["@component"],[[30,3]]],null],[1,"\\n"]],[3]],null],[1," "]],[]]]]],[1,"\\n"],[41,[30,2,["footer"]],[[[1," "],[8,[30,1,["artdeco-modal-footer"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,5],null,[["@component","@handleAction"],[[30,2,["footer"]],[30,0,["handleAction"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],[1]]]]],[1,"\\n "]],["modal","@tetrisComponentModel","component"],false,["-get-dynamic-var","each","-track-array","if"]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/modal.gjs",scope:()=>[d.default,u.default,m.default,f.default,l.get,h.default],isStrictMode:!0}),(g=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"isBottomSheetModalOpen",b,this)}get buttonAppearance(){return(0,p.get)(this.args.tetrisComponentModel,"buttonAppearance")}onClick(){this.openBottomSheetModal()}openBottomSheetModal(){this.isBottomSheetModalOpen=!0}closeBottomSheetModal(){this.isBottomSheetModalOpen=!1}handleAction(e){(0,p.get)(this.args.tetrisComponentModel,"actionDelegateUrn")===e.actionDelegateUrn&&"dismiss"===e.type&&this.closeBottomSheetModal()}},b=(0,i.default)(g.prototype,"isBottomSheetModalOpen",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(g.prototype,"onClick",[p.action],Object.getOwnPropertyDescriptor(g.prototype,"onClick"),g.prototype),(0,i.default)(g.prototype,"openBottomSheetModal",[p.action],Object.getOwnPropertyDescriptor(g.prototype,"openBottomSheetModal"),g.prototype),(0,i.default)(g.prototype,"closeBottomSheetModal",[p.action],Object.getOwnPropertyDescriptor(g.prototype,"closeBottomSheetModal"),g.prototype),(0,i.default)(g.prototype,"handleAction",[p.action],Object.getOwnPropertyDescriptor(g.prototype,"handleAction"),g.prototype),g))}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/navigation",["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-tetris-shared/utils/constant/render-actions","profile-tetris-shared/utils/model/action-component-metadata","profile-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/helpers/check-type","profile-tetris-shared/utils/profile-tracking-helpers","global-utils/utils/url","profile-shared/utils/tetris-api-helpers","@glimmer/component","@ember/service","@ember/object","button-appearance/helpers/button-appearance-attributes","global-helpers/helpers/eq","profile-tetris-shared/components/helper-component/optional-action-target-wrapper","global-helpers/helpers/or","profile-tetris-shared/helpers/button-placement","@ember/modifier","global-helpers/helpers/and","global-helpers/helpers/not","hue-web-icons/components/icon","@ember/helper","ember-scroll-modifiers/modifiers/did-intersect"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E,w,P,S,O){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var k,A,I,M,D,N,R,x,U,L,j,F,z,V,B
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"FsSmxG8N",block:'[[[1,"\\n"],[44,[[28,[32,0],[[30,0,["buttonAppearance"]]],null]],[[[1," "],[10,0],[15,0,[52,[28,[32,1],[[30,2,["buttonPlacement"]],"END_ALIGNED"],null],"display-flex justify-flex-end"]],[12],[1,"\\n "],[8,[32,2],[[16,"aria-label",[30,2,["accessibilityText"]]],[16,1,[30,0,["navigationId"]]],[16,0,[29,[[28,[32,3],[[30,1,["buttonClass"]],[30,1,["buttonClasses"]]],null],"\\n ",[28,[32,4],[[30,2,["buttonPlacement"]]],null],"\\n ",[52,[30,3],"artdeco-button--disabled"],"\\n "]]],[4,[32,5],["click",[30,0,["onClick"]]],null],[4,[52,[30,0,["shouldAddPrefetch"]],[50,[32,6],2,null,[["onEnter","options","maxEnter"],[[30,0,["handlePrefetch"]],[28,[32,7],null,[["threshold"],[0.5]]],1]]]],null,null]],[["@actionTarget","@openExternally"],[[52,[30,3],"",[30,0,["actionTarget"]]],[30,2,["openExternally"]]]],[["default"],[[[[1,"\\n"],[41,[28,[32,8],[[28,[32,3],[[30,1,["iconType"]],[30,1,["iconName"]]],null],[28,[32,9],[[30,1,["iconRight"]]],null]],null],[[[1," "],[10,0],[14,0,"pvs-navigation__icon"],[12],[1,"\\n "],[8,[32,10],null,[["@type","@name","@size","@a11yText"],[[30,1,["iconType"]],[30,1,["iconName"]],[30,1,["iconSize"]],[30,2,["icon","accessibilityText"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["text"]],[[[1," "],[10,1],[14,0,"pvs-navigation__text"],[12],[1,"\\n "],[1,[30,1,["text"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[28,[32,8],[[28,[32,3],[[30,1,["iconType"]],[30,1,["iconName"]]],null],[30,1,["iconRight"]]],null],[[[1," "],[10,0],[14,0,"pvs-navigation__icon"],[12],[1,"\\n "],[8,[32,10],null,[["@type","@name","@size","@a11yText"],[[30,1,["iconType"]],[30,1,["iconName"]],[30,1,["iconSize"]],[30,2,["icon","accessibilityText"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[1]]],[1," "]],["buttonAppearance","@tetrisComponentModel","@shouldDisable"],false,["let","if","modifier"]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/navigation.gjs",scope:()=>[b.default,y.default,_.default,v.default,T.default,C.on,O.default,S.hash,E.default,w.default,P.default],isStrictMode:!0}),(k=(0,h.inject)("client-sensor-web@client-sensor"),A=(0,h.inject)("lego@tracking"),I=(0,h.inject)("tracking"),M=(0,h.inject)("router"),D=(0,h.inject)("global-services@internal-logger"),N=(0,h.inject)("lix"),R=(0,h.inject)("@linkedin/ember-restli-graphql@graphql"),x=class extends f.default{get useActionTargetV2(){const{actionTargetV2:e}=this.args.tetrisComponentModel
|
|
return e&&this.lix.getTreatmentIsEnabled("voyager.web.profile-components-prefetch-navigation-action-destination")}get shouldAddPrefetch(){return this.useActionTargetV2&&this.args.tetrisComponentModel.actionTargetV2.prefetchableDetailScreen}get navigationId(){const{tetrisComponentModel:e}=this.args,t=(0,u.getInAppParams)(this.router,this.actionTarget)
|
|
if(t){var n,i
|
|
const{localName:r}=this.router.recognize(t)??{},o=e.actionControlName||(null===(n=e.buttonAppearance)||void 0===n?void 0:n.text)||(null===(i=e.icon)||void 0===i?void 0:i.accessibilityText)
|
|
if("string"!=typeof o){this.internalLogger.log(o,["text must be a string"])
|
|
return}return`navigation-${r}-${null==o?void 0:o.replace(/[^A-Z0-9]+/gi,"-")}`}}get actionTarget(){const{actionTarget:e}=this.args.tetrisComponentModel
|
|
let t=e
|
|
this.useActionTargetV2&&(t=this._getActionTargetFromV2())
|
|
return t?(0,u.getUrlWithProtocol)(t):t}get buttonAppearance(){return this.args.tetrisComponentModel.buttonAppearance}constructor(){super(...arguments);(0,t.default)(this,"clientSensor",U,this);(0,t.default)(this,"legoTracking",L,this);(0,t.default)(this,"tracking",j,this);(0,t.default)(this,"router",F,this);(0,t.default)(this,"internalLogger",z,this);(0,t.default)(this,"lix",V,this);(0,t.default)(this,"graphql",B,this)
|
|
this._validateAndFireClientSensorEvent()}onClick(){this._fireActionTrackingEvent()
|
|
this._handleClickAction(...arguments)
|
|
const{legoTrackingId:e}=this.args.tetrisComponentModel
|
|
e&&this.legoTracking.sendLegoAction(e,this.legoTracking.LEGO_ACTION_PRIMARY)}handlePrefetch(){const{prefetchableDetailScreen:e}=this.args.tetrisComponentModel.actionTargetV2
|
|
e&&(0,m.fetchProfileComponentsBySectionType)(this.graphql,e.profile.entityUrn,e.sectionType,{subSectionType:e.subSectionType,parentItemUrn:e.parentItemUrn,tabIndex:e.tabIndex,requestedLocale:e.locale,lixService:this.lix})}_fireActionTrackingEvent(){const e=this.args.tetrisComponentModel.actionControlName;(0,d.fireControlInteractionEvent)(this.tracking,e);(0,d.fireCustomActionTrackingEvent)(this.tracking,this.args.trackingId,this.args.actionRecommendationTrackingId,this.args.actionTrackingMetadataUnions)}_validateAndFireClientSensorEvent(){const e=this.args.tetrisComponentModel.buttonPlacement
|
|
this.actionTarget&&this.buttonAppearance&&(0,p.isString)(e)?this.clientSensor.incrementMetricCounter({groupName:c.GROUP_NAME_PROFILE,metricName:"navigation-action-component-served"}):this.clientSensor.incrementMetricCounter({groupName:c.GROUP_NAME_PROFILE,metricName:"navigation-action-component-dropped"})}_handleClickAction(){const e=this.args.tetrisComponentModel.dismissActionDelegateUrn
|
|
if(e){var t,n
|
|
null===(t=(n=this.args).handleAction)||void 0===t||t.call(n,new s.default({type:a.RENDER_ACTIONS.DISMISS,actionDelegateUrn:e}))}else{var i,r
|
|
null===(i=(r=this.args).handleAction)||void 0===i||i.call(r,...arguments)}}_getActionTargetFromV2(){const{actionTargetV2:e}=this.args.tetrisComponentModel,{deeplink:t,prefetchableDetailScreen:n}=e
|
|
if(t)return t
|
|
const{profile:{entityUrn:i,publicIdentifier:r},sectionType:o,subSectionType:l,parentItemUrn:a,tabIndex:s,locale:c}=n
|
|
let p=`${(0,u.getDomainUrl)()}/in/${r}`
|
|
p=l?`${p}/details/${o}`:`${p}/overlay`
|
|
a&&(p=`${p}/${a}`)
|
|
p=l?`${p}/${l}`:`${p}/${o}`
|
|
const d={isPrefetched:!0}
|
|
i&&(d.profileUrn=i)
|
|
s&&(d.tabIndex=s)
|
|
c&&(d.locale=c)
|
|
return(0,u.addQueryParams)(p,d,!0)}},U=(0,i.default)(x.prototype,"clientSensor",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,i.default)(x.prototype,"legoTracking",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,i.default)(x.prototype,"tracking",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,i.default)(x.prototype,"router",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,i.default)(x.prototype,"internalLogger",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,i.default)(x.prototype,"lix",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,i.default)(x.prototype,"graphql",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(x.prototype,"onClick",[g.action],Object.getOwnPropertyDescriptor(x.prototype,"onClick"),x.prototype),(0,i.default)(x.prototype,"handlePrefetch",[g.action],Object.getOwnPropertyDescriptor(x.prototype,"handlePrefetch"),x.prototype),x))}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/notifications",["exports","@ember/template-factory","@ember/component/template-only","@ember/component"],(function(e,t,n,i){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const r=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"tJWRXEiB",block:'[[[1,"\\n"],[1," "]],[],false,[]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/notifications.gjs",isStrictMode:!0}),(0,n.default)("notifications","Notifications"))
|
|
e.default=r}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/open-profile-generated-suggestions-flow",["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-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/utils/profile-tracking-helpers","@glimmer/component","@ember/service","@ember/object","artdeco-button/components/artdeco-button","profile-shared/components/generated-suggestions/magic-wand-icon","@ember/modifier"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var g,b,y,_,v,T,C
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"oiPzzmam",block:'[[[1,"\\n"],[41,[30,0,["shouldRender"]],[[[1," "],[8,[32,0],[[24,"role","link"],[4,[32,1],["click",[30,0,["handleClick"]]],null]],[["@type","@theme","@size","@controlType"],["primary","premium",2,"button"]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"display-flex align-items-center"],[12],[1,"\\n "],[8,[32,2],null,[["@size"],["small"]],null],[1,"\\n "],[10,1],[14,0,"ml1"],[12],[1,"\\n "],[1,[30,1,["buttonAppearance","text"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],["@tetrisComponentModel"],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/open-profile-generated-suggestions-flow.gjs",scope:()=>[m.default,h.on,f.default],isStrictMode:!0}),(g=(0,d.inject)("client-sensor-web@client-sensor"),b=(0,d.inject)("lego@tracking"),y=class extends p.default{constructor(){super(...arguments);(0,t.default)(this,"clientSensor",_,this);(0,t.default)(this,"legoTracking",v,this);(0,t.default)(this,"router",T,this);(0,t.default)(this,"tracking",C,this)
|
|
this._validateAndFireClientSensorEvent()}get shouldRender(){return!!(0,u.get)(this.args.tetrisComponentModel,"buttonAppearance")}handleClick(){var e,t
|
|
null===(e=(t=this.args).handleAction)||void 0===e||e.call(t,...arguments)
|
|
this.router.transitionTo("profile.common.profile",{queryParams:{enhance:!0}})
|
|
const n=(0,u.get)(this.args.tetrisComponentModel,"actionControlName");(0,c.fireControlInteractionEvent)(this.tracking,n);(0,c.fireCustomActionTrackingEvent)(this.tracking,this.args.trackingId,this.args.actionRecommendationTrackingId,this.args.actionTrackingMetadataUnions)
|
|
const i=(0,u.get)(this.args.tetrisComponentModel,"legoTrackingId")
|
|
i&&this.legoTracking.sendLegoAction(i,this.legoTracking.LEGO_ACTION_PRIMARY)}_validateAndFireClientSensorEvent(){this.shouldRender?this.clientSensor.incrementMetricCounter({groupName:s.GROUP_NAME_PROFILE,metricName:"open-profile-generated-suggestions-flow-action-component-served"}):this.clientSensor.incrementMetricCounter({groupName:s.GROUP_NAME_PROFILE,metricName:"open-profile-generated-suggestions-flow-action-component-dropped"})}},_=(0,i.default)(y.prototype,"clientSensor",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,i.default)(y.prototype,"legoTracking",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,i.default)(y.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,i.default)(y.prototype,"tracking",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(y.prototype,"handleClick",[u.action],Object.getOwnPropertyDescriptor(y.prototype,"handleClick"),y.prototype),y))}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/overflow",["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-tetris-shared/utils/constant/action-types","profile-tetris-shared/utils/constant/monitoring-constants","global-utils/utils/a11y-focus-element","profile-tetris-shared/utils/profile-tracking-helpers","@glimmer/tracking","@ember/service","@ember/object","@glimmer/component","artdeco-dropdown/components/artdeco-dropdown","global-helpers/helpers/and","global-helpers/helpers/not","global-modifiers/modifiers/focus","artdeco-loader/components/artdeco-loader","image-view-model/components/image-view-model","profile-tetris-shared/components/helper-component/overflow-menu-item","@ember/helper","artdeco-modal/components/artdeco-confirmation-dialog","ember-cli-pemberly-i18n/helpers/t","global-helpers/helpers/name"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E,w,P){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var S,O,k,A,I,M,D,N,R,x
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"9HJyKsHp",block:'[[[1,"\\n"],[1," "],[8,[32,0],null,[["@isOpen","@onVisibilityChange","@disabled","@justification","@useNewFocusModel"],[[28,[32,1],[[30,0,["isOverflowOpen"]],[28,[32,2],[[30,0,["shouldDisable"]]],null]],null],[30,0,["onOverflowVisibilityChange"]],[30,0,["shouldDisable"]],"right",true]],[["default"],[[[[1,"\\n "],[8,[30,1,["dropdown-trigger"]],[[16,1,[30,0,["overflowDropdownTriggerId"]]],[16,0,[29,["artdeco-button artdeco-button--circle artdeco-button--muted artdeco-button--3 artdeco-button--tertiary artdeco-button-dropdown-trigger\\n ",[52,[30,0,["shouldDisable"]],"pvs-pending-component__action-container"]]]],[4,[32,3],null,[["when"],[[30,0,["shouldRefocusOverflow"]]]]]],null,[["default"],[[[[1,"\\n"],[41,[30,0,["shouldShowPendingActionIndicator"]],[[[1," "],[8,[32,4],null,[["@size"],["xsmall"]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,5],null,[["@images","@entitySize"],[[30,2,["icon"]],2]],null],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[8,[30,1,["dropdown-content"]],[[24,0,"pvs-overflow-content--width"]],null,[["default"],[[[[1,"\\n "],[10,"ul"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,2,["items"]]],null]],null],null,[[[1," "],[10,"li"],[14,0,"pvs-overflow-content__item"],[12],[1,"\\n "],[8,[32,6],null,[["@model","@confirmationDialogHandler","@overflowItemClicked","@elementToFocusWhenClosed","@handleAction"],[[30,3],[30,0,["confirmationDialogHandler"]],[28,[32,7],[[30,0,["overflowItemClicked"]],[30,1,["close"]]],null],[30,0,["overflowDropdownTriggerId"]],[30,0,["handleAction"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[1]]]]],[1,"\\n\\n "],[8,[32,8],null,[["@isOpen","@title","@content","@primaryActionText","@secondaryActionText","@onPrimary","@onSecondary","@onEscape","@testId"],[[30,0,["isDeleteConfirmationDialogOpen"]],[28,[32,9],["delete_recommendation_confirmation_title","profile-tetris-shared/components/profile-component/action-component/overflow"],null],[52,[30,0,["profileName"]],[28,[32,9],["delete_recommendation_confirmation_text","profile-tetris-shared/components/profile-component/action-component/overflow"],[["member"],[[28,[32,10],[[30,0,["profileName"]]],null]]]],[28,[32,9],["delete_recommendation_confirmation_text_generic","profile-tetris-shared/components/profile-component/action-component/overflow"],null]],[28,[32,9],["confirmation_prmiary_cta","profile-tetris-shared/components/profile-component/action-component/overflow"],null],[28,[32,9],["confirmation_secondary_cta","profile-tetris-shared/components/profile-component/action-component/overflow"],null],[30,0,["onConfirmDelete"]],[30,0,["onCancelDelete"]],[30,0,["onCancelDelete"]],"data-test-delete-confirmation-modal"]],null],[1,"\\n "]],["dropdown","@tetrisComponentModel","overflowMenuItem"],false,["if","each","-track-array"]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/overflow.gjs",scope:()=>[h.default,g.default,b.default,y.default,_.default,v.default,T.default,C.fn,E.default,w.default,P.default],isStrictMode:!0}),(S=(0,u.inject)("client-sensor-web@client-sensor"),O=(0,u.inject)("tracking"),k=(0,u.inject)("profile-services@profile"),A=class extends f.default{get profileName(){return this.args.actionContext?(0,m.get)(this.args,"actionContext.title.attributesV2.firstObject.detailData.profileFullName"):""}get shouldShowPendingActionIndicator(){return this.isPending}get shouldRefocusOverflow(){return!(!this.args.isProfileCardUpdated||!this.profile.shouldFocusProfileCardOverflowBtn)}get shouldDisable(){return this.args.shouldDisable&&!this.shouldShowPendingActionIndicator}get overflowDropdownTriggerId(){const e=(0,m.get)(this.args,"tetrisComponentModel.icon.accessibilityText")
|
|
return`overflow-${null==e?void 0:e.replaceAll(" ","-")}`}confirmationDialogHandler(e){this.isDeleteConfirmationDialogOpen=!0
|
|
this.confirmationSuccessCallback=e}onConfirmDelete(){var e
|
|
this.isDeleteConfirmationDialogOpen=!1
|
|
null===(e=this.confirmationSuccessCallback)||void 0===e||e.call(this)
|
|
this._focusOnTrigger()}onCancelDelete(){this.isDeleteConfirmationDialogOpen=!1
|
|
this._focusOnTrigger()}onOverflowVisibilityChange(){this.isOverflowOpen=!this.isOverflowOpen
|
|
this._fireActionTrackingEvent()}overflowItemClicked(e){this.isDeleteConfirmationDialogOpen?null==e||e():this._focusOnTrigger()}handleAction(e){var t,n
|
|
let{type:i}=e
|
|
i===a.SHOW_DISABLED_STATE?this.isPending=!0:i===a.DISMISS_DISABLED_STATE&&(this.isPending=!1)
|
|
return null===(t=(n=this.args).handleAction)||void 0===t?void 0:t.call(n,...arguments)}constructor(){super(...arguments);(0,t.default)(this,"clientSensor",I,this);(0,t.default)(this,"tracking",M,this);(0,t.default)(this,"profile",D,this);(0,t.default)(this,"isOverflowOpen",N,this);(0,t.default)(this,"isDeleteConfirmationDialogOpen",R,this);(0,t.default)(this,"isPending",x,this);(0,n.default)(this,"confirmationSuccessCallback",void 0)
|
|
this._validateAndFireClientSensorEvent()}_fireActionTrackingEvent(){const e=(0,m.get)(this.args.tetrisComponentModel,"actionControlName");(0,p.fireControlInteractionEvent)(this.tracking,e);(0,p.fireCustomActionTrackingEvent)(this.tracking,this.args.trackingId,this.args.actionRecommendationTrackingId)}_validateAndFireClientSensorEvent(){const{items:e,icon:t}=(0,m.getProperties)(this.args.tetrisComponentModel,"items","icon")
|
|
t&&e&&e.length?this.clientSensor.incrementMetricCounter({groupName:s.GROUP_NAME_PROFILE,metricName:"overflow-action-component-served"}):this.clientSensor.incrementMetricCounter({groupName:s.GROUP_NAME_PROFILE,metricName:"overflow-action-component-dropped"})}_focusOnTrigger(){(0,c.default)(this,`#${this.overflowDropdownTriggerId}`)}},I=(0,i.default)(A.prototype,"clientSensor",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,i.default)(A.prototype,"tracking",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,i.default)(A.prototype,"profile",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,i.default)(A.prototype,"isOverflowOpen",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),R=(0,i.default)(A.prototype,"isDeleteConfirmationDialogOpen",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),x=(0,i.default)(A.prototype,"isPending",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(A.prototype,"confirmationDialogHandler",[m.action],Object.getOwnPropertyDescriptor(A.prototype,"confirmationDialogHandler"),A.prototype),(0,i.default)(A.prototype,"onConfirmDelete",[m.action],Object.getOwnPropertyDescriptor(A.prototype,"onConfirmDelete"),A.prototype),(0,i.default)(A.prototype,"onCancelDelete",[m.action],Object.getOwnPropertyDescriptor(A.prototype,"onCancelDelete"),A.prototype),(0,i.default)(A.prototype,"onOverflowVisibilityChange",[m.action],Object.getOwnPropertyDescriptor(A.prototype,"onOverflowVisibilityChange"),A.prototype),(0,i.default)(A.prototype,"overflowItemClicked",[m.action],Object.getOwnPropertyDescriptor(A.prototype,"overflowItemClicked"),A.prototype),(0,i.default)(A.prototype,"handleAction",[m.action],Object.getOwnPropertyDescriptor(A.prototype,"handleAction"),A.prototype),A))}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/premium-upsell-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","profile-tetris-shared/utils/constant/monitoring-constants","@glimmer/component","urn-utils","s-upsell/utils/upsell-card-dash-helpers","@ember/service","@ember/object","@ember/destroyable","global-helpers/helpers/and","button-appearance/components/button-appearance","profile-tetris-shared/helpers/button-placement"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var b,y,_,v,T,C,E,w,P
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"QOAhQRt3",block:'[[[1,"\\n"],[41,[28,[32,0],[[30,1,["buttonAppearance"]],[30,1,["premiumUpsellSlot"]]],null],[[[1," "],[8,[32,1],[[16,0,[28,[32,2],[[30,1,["buttonPlacement"]]],null]]],[["@a11yText","@appearance","@onClick"],[[30,1,["accessibilityText"]],[30,1,["buttonAppearance"]],[30,0,["triggerUpsellModal"]]]],null],[1,"\\n"]],[]],null],[1," "]],["@tetrisComponentModel"],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/premium-upsell-modal.gjs",scope:()=>[f.default,h.default,g.default],isStrictMode:!0}),(b=(0,d.inject)("tracking"),y=(0,d.inject)("@linkedin/ember-restli-graphql@graphql"),_=(0,d.inject)("s-upsell@detached-upsell-modal"),v=(0,d.inject)("client-sensor-web@client-sensor"),T=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"tracking",C,this);(0,t.default)(this,"graphql",E,this);(0,t.default)(this,"detachedUpsellModal",w,this);(0,t.default)(this,"clientSensor",P,this)
|
|
const{buttonAppearance:e,premiumUpsellSlot:n}=(0,u.getProperties)(this.args.tetrisComponentModel,"buttonAppearance","premiumUpsellSlot")
|
|
e&&n?this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"premium-upsell-modal-action-component-served"}):this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"premium-upsell-modal-action-component-dropped"})}triggerUpsellModal(){const e=(0,u.get)(this.args.tetrisComponentModel,"premiumUpsellSlot.entityUrn")
|
|
if(e){this.args.tetrisComponentModel.controlName&&this.tracking.fireInteractionEvent(this.args.tetrisComponentModel.controlName);(0,p.queryUpsellCardDataV2)({graphql:this.graphql},{upsellSlot:(0,c.extractEntityInfoFromUrn)(e).id}).then((e=>(0,u.get)(e,"data.premiumDashUpsellSlotContentBySlotType.elements.0.upsellCard"))).then((e=>{if(!(0,m.isDestroying)(this)){this.detachedUpsellModal.upsellCard=e
|
|
this.detachedUpsellModal.upsellModalIsOpen=!0}}))}}},C=(0,i.default)(T.prototype,"tracking",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,i.default)(T.prototype,"graphql",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,i.default)(T.prototype,"detachedUpsellModal",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,i.default)(T.prototype,"clientSensor",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(T.prototype,"triggerUpsellModal",[u.action],Object.getOwnPropertyDescriptor(T.prototype,"triggerUpsellModal"),T.prototype),T))}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/save-state",["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","button-appearance/helpers/button-appearance-attributes","profile-tetris-shared/helpers/toast-helper","profile-tetris-shared/utils/profile-monitoring-helpers","profile-tetris-shared/utils/profile-tracking-helpers","profile-tetris-shared/helpers/check-type","profile-tetris-shared/utils/constant/monitoring-constants","@glimmer/tracking","@glimmer/component","@ember/service","@ember/object","@ember/destroyable","artdeco-button/components/artdeco-button","ember-cli-pemberly-i18n/helpers/t","@ember/modifier"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var C,E,w,P,S,O,k,A,I,M
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"Tb91YU2R",block:'[[[1,"\\n"],[1," "],[8,[32,0],[[4,[32,2],["click",[30,0,["handleClick"]]],null]],[["@class","@type","@color","@size","@circle","@icon","@iconRight","@theme","@controlType","@text","@isLoading"],[[52,[30,0,["isPending"]],"pvs-inline-loading-action--disabled"],[30,0,["buttonAppearanceAttributes","type"]],[30,0,["buttonAppearanceAttributes","color"]],[30,0,["buttonAppearanceAttributes","size"]],[30,0,["buttonAppearanceAttributes","isCircle"]],[30,0,["buttonAppearanceAttributes","iconName"]],[30,0,["buttonAppearanceAttributes","iconRight"]],[30,0,["buttonAppearanceAttributes","theme"]],"button",[52,[30,0,["isSaved"]],[28,[32,1],["saved","profile-tetris-shared/components/profile-component/action-component/save-state"],null],[28,[32,1],["save","profile-tetris-shared/components/profile-component/action-component/save-state"],null]],[30,0,["isPending"]]]],null],[1,"\\n "]],[],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/save-state.gjs",scope:()=>[_.default,v.default,T.on],isStrictMode:!0}),(C=(0,g.inject)("client-sensor-web@client-sensor"),E=(0,g.inject)("tracking"),w=(0,g.inject)("persistent-toast-manager@persistent-toast-manager"),P=(0,g.inject)("i18n"),S=class e extends h.default{constructor(){super(...arguments);(0,t.default)(this,"clientSensor",O,this);(0,t.default)(this,"tracking",k,this);(0,t.default)(this,"persistentToastManager",A,this);(0,t.default)(this,"i18n",I,this);(0,t.default)(this,"isPending",M,this)
|
|
this._assertProps()}_assertProps(){const{entityUrn:e,saved:t}=(0,b.getProperties)(this.saveStateModel,"entityUrn","saved")
|
|
e&&(0,u.isBoolean)(t)?this.clientSensor.incrementMetricCounter({groupName:m.GROUP_NAME_PROFILE,metricName:"save-action-component-served"}):this.clientSensor.incrementMetricCounter({groupName:m.GROUP_NAME_PROFILE,metricName:"save-action-component-dropped"})}get saveStateModel(){return(0,b.get)(this.args,"tetrisComponentModel.saveState")}get isSaved(){return(0,b.get)(this.saveStateModel,"saved")}get buttonAppearanceAttributes(){const{buttonAppearance:e}=this.args.tetrisComponentModel
|
|
return e?(0,s.default)(e):{type:"secondary",color:"muted",size:2,theme:"standard"}}handleClick(){const t=(0,b.get)(this.saveStateModel,"entityUrn"),n=this.isSaved?"UNSAVE":"SAVE";(0,d.fireCustomActionTrackingEvent)(this.tracking,this.args.trackingId,this.args.actionRecommendationTrackingId,this.args.actionTrackingMetadataUnions,n)
|
|
this.isSaved?(0,d.fireControlInteractionEvent)(this.tracking,(0,b.get)(this.args.tetrisComponentModel,"unsaveControlName")):(0,d.fireControlInteractionEvent)(this.tracking,(0,b.get)(this.args.tetrisComponentModel,"saveControlName"))
|
|
this.isPending=!0;(0,b.set)(this.saveStateModel,"saved",!this.isSaved)
|
|
this.saveStateModel.save({adapterOptions:{partial:!0,url:`/voyager/api/voyagerFeedDashSaveStates/${t}`}}).then((()=>{if((0,y.isDestroying)(this))return
|
|
this.clientSensor.incrementMetricCounter({groupName:m.GROUP_NAME_PROFILE,metricName:"save-action-click-success"})
|
|
const t=this.isSaved?"i18n_toast_save_success":"i18n_toast_unsave_success";(0,c.showToast)(this.i18n,this.persistentToastManager,e,t)})).catch((t=>{if((0,y.isDestroying)(this))throw t;(0,b.set)(this.saveStateModel,"saved",!this.isSaved)
|
|
const n=this.isSaved?"i18n_toast_unsave_error":"i18n_toast_save_error";(0,c.showToast)(this.i18n,this.persistentToastManager,e,n,c.TOAST_TYPE.ERROR);(0,p.fireActionClickFailedMonitoringEvent)(this.clientSensor,"save-action-click-failed",t)
|
|
throw t})).finally((()=>{(0,y.isDestroying)(this)||(this.isPending=!1)}))}},O=(0,i.default)(S.prototype,"clientSensor",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,i.default)(S.prototype,"tracking",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,i.default)(S.prototype,"persistentToastManager",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,i.default)(S.prototype,"i18n",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,i.default)(S.prototype,"isPending",[f.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(S.prototype,"handleClick",[b.action],Object.getOwnPropertyDescriptor(S.prototype,"handleClick"),S.prototype),S))}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/see-more-or-less",["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-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/utils/model/action-component-metadata","profile-tetris-shared/utils/profile-tracking-helpers","profile-tetris-shared/utils/constant/render-actions","@glimmer/tracking","@glimmer/component","@ember/service","@ember/object","artdeco-button/components/artdeco-button","@ember/modifier"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var y,_,v,T,C,E
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"8NkRoDxD",block:'[[[1,"\\n"],[1," "],[8,[32,0],[[4,[32,1],["click",[30,0,["handleClick"]]],null]],[["@type","@controlType","@text","@icon","@iconRight","@stretch","@color","@class","@size"],["tertiary","button",[52,[30,0,["isSeeMoreAction"]],[30,1,["seeMoreText","text"]],[30,1,["seeLessText","text"]]],[52,[30,0,["isSeeMoreAction"]],"chevron-down","chevron-up"],"true","fluid","muted","pv3",2]],null],[1,"\\n "]],["@tetrisComponentModel"],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/see-more-or-less.gjs",scope:()=>[g.default,b.on],isStrictMode:!0}),(y=(0,f.inject)("client-sensor-web@client-sensor"),_=(0,f.inject)("tracking"),v=class extends m.default{get controlName(){return this.isSeeMoreAction?(0,h.get)(this.args.tetrisComponentModel,"seeMoreActionControlName"):(0,h.get)(this.args.tetrisComponentModel,"seeLessActionControlName")}constructor(){super(...arguments);(0,t.default)(this,"clientSensor",T,this);(0,t.default)(this,"tracking",C,this);(0,t.default)(this,"isSeeMoreAction",E,this)
|
|
this._assertProps()}handleClick(){var e,t
|
|
this._fireActionTrackingEvent()
|
|
this.isSeeMoreAction=!this.isSeeMoreAction
|
|
null===(e=(t=this.args).handleAction)||void 0===e||e.call(t,new c.default({type:d.RENDER_ACTIONS.SEE_MORE_OR_LESS,actionDelegateUrn:(0,h.get)(this.args.tetrisComponentModel,"actionDelegateUrn"),options:{isSeeMoreAction:this.isSeeMoreAction}}))}_fireActionTrackingEvent(){(0,p.fireControlInteractionEvent)(this.tracking,this.controlName);(0,p.fireCustomActionTrackingEvent)(this.tracking,this.args.trackingId,this.args.actionRecommendationTrackingId)}_assertProps(){const{actionDelegateUrn:e,seeMoreText:t,seeLessText:n}=(0,h.getProperties)(this.args.tetrisComponentModel,"actionDelegateUrn","seeMoreText","seeLessText")
|
|
e&&t&&n?this.clientSensor.incrementMetricCounter({groupName:s.GROUP_NAME_PROFILE,metricName:"see-more-or-less-action-component-served"}):this.clientSensor.incrementMetricCounter({groupName:s.GROUP_NAME_PROFILE,metricName:"see-more-or-less-action-component-dropped"})}},T=(0,i.default)(v.prototype,"clientSensor",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,i.default)(v.prototype,"tracking",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,i.default)(v.prototype,"isSeeMoreAction",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),(0,i.default)(v.prototype,"handleClick",[h.action],Object.getOwnPropertyDescriptor(v.prototype,"handleClick"),v.prototype),v))}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/stateful-button",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","profile-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/utils/profile-tracking-helpers","@glimmer/component","@ember/string","@ember/service","@ember/object","stateful-button/components/button-builder"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var f,h,g,b,y
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"amnXKdgN",block:'[[[1,"\\n"],[41,[30,0,["statefulButtonModel"]],[[[1," "],[8,[32,0],[[17,1]],[["@buttonSize","@isCircleButton","@onClickCallback","@onSuccessCallback","@onFailureCallback","@statefulButtonModel","@useCase","@trackImpressionCallback"],[2,false,[30,0,["handleClick"]],[30,0,["onSuccessCallback"]],[30,0,["onFailureCallback"]],[30,0,["statefulButtonModel"]],[30,0,["statefulButtonUseCase"]],[30,0,["trackImpressionCallback"]]]],null],[1,"\\n"]],[]],null],[1," "]],["&attrs"],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/stateful-button.gjs",scope:()=>[m.default],isStrictMode:!0}),(f=(0,d.inject)("client-sensor-web@client-sensor"),h=(0,d.inject)("tracking"),g=class extends c.default{get controlName(){return this.args.tetrisComponentModel.controlName}get statefulButtonModel(){return this.args.tetrisComponentModel.statefulButtonModel}get statefulButtonUseCase(){if(this.statefulButtonModel){var e,t,n
|
|
return null===(e=this.args.tetrisComponentModel.statefulButtonModel)||void 0===e||null===(t=e.actionDataModel)||void 0===t||null===(n=t.relationshipActionData)||void 0===n?void 0:n.moduleKey}return""}constructor(){super(...arguments);(0,t.default)(this,"clientSensor",b,this);(0,t.default)(this,"tracking",y,this)
|
|
this._assertProps()}handleClick(){this._fireActionTrackingEvent()}onSuccessCallback(){const e=(0,p.dasherize)(this.statefulButtonUseCase)
|
|
e&&this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:`stateful-button-${e}-component-success`})}onFailureCallback(){const e=(0,p.dasherize)(this.statefulButtonUseCase)
|
|
e&&this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:`stateful-button-${e}-component-failed`})}_fireActionTrackingEvent(){(0,s.fireControlInteractionEvent)(this.tracking,this.controlName);(0,s.fireCustomActionTrackingEvent)(this.tracking,this.args.trackingId,this.args.actionRecommendationTrackingId,this.args.actionTrackingMetadataUnions)}_assertProps(){const e=(0,p.dasherize)(this.statefulButtonUseCase)
|
|
e?this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:`stateful-button-${e}-component-served`}):this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"stateful-button-component-dropped"})}},b=(0,i.default)(g.prototype,"clientSensor",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,i.default)(g.prototype,"tracking",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(g.prototype,"handleClick",[u.action],Object.getOwnPropertyDescriptor(g.prototype,"handleClick"),g.prototype),(0,i.default)(g.prototype,"onSuccessCallback",[u.action],Object.getOwnPropertyDescriptor(g.prototype,"onSuccessCallback"),g.prototype),(0,i.default)(g.prototype,"onFailureCallback",[u.action],Object.getOwnPropertyDescriptor(g.prototype,"onFailureCallback"),g.prototype),g))}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/subscribe-newsletter",["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","button-appearance/helpers/button-appearance-attributes","global-utils/utils/get-attributed-link","global-utils/utils/urn-id-helpers","global-utils/utils/url","profile-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/utils/profile-tracking-helpers","@glimmer/component","@ember/service","@ember/object","@ember/destroyable","artdeco-button/components/artdeco-button","ember-cli-pemberly-i18n/helpers/t","profile-tetris-shared/components/profile-component/action-component/notifications","@ember/modifier"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var C,E,w,P,S,O,k,A,I,M,D,N,R
|
|
const x="success",U={userInteraction:"subscribe-newsletter-via-profile",userJourney:"subscribe-to-newsletter",groupName:"publishing-reliability"}
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"kTfL8m8M",block:'[[[1,"\\n"],[1," "],[8,[32,0],[[4,[32,2],["click",[30,0,["onClick"]]],null]],[["@type","@color","@size","@circle","@iconRight","@theme","@controlType","@text","@icon","@disabled"],[[30,0,["buttonAppearanceAttributes","type"]],[30,0,["buttonAppearanceAttributes","color"]],[30,0,["buttonAppearanceAttributes","size"]],[30,0,["buttonAppearanceAttributes","isCircle"]],[30,0,["buttonAppearanceAttributes","iconRight"]],[30,0,["buttonAppearanceAttributes","theme"]],"button",[52,[30,0,["subscribed"]],[28,[32,1],["newsletter_subscribed","profile-tetris-shared/components/profile-component/action-component/subscribe-newsletter"],null],[28,[32,1],["newsletter_subscribe","profile-tetris-shared/components/profile-component/action-component/subscribe-newsletter"],null]],[52,[30,0,["subscribed"]],"check","add"],[30,1]]],null],[1,"\\n "]],["@shouldDisable"],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/subscribe-newsletter.gjs",scope:()=>[y.default,_.default,T.on],isStrictMode:!0}),(C=(0,h.inject)("i18n"),E=(0,h.inject)("persistent-toast-manager@persistent-toast-manager"),w=(0,h.inject)("client-sensor-web@client-sensor"),P=(0,h.inject)("tracking"),S=(0,h.inject)("watchman-tracking@watchman-tracking"),O=(0,h.inject)("global-services@store-shim"),k=class extends f.default{get subscribeActionModel(){return(0,g.get)(this.args,"tetrisComponentModel.subscribeAction")}get subscribed(){return!!this.subscribeActionModel&&(0,g.get)(this.subscribeActionModel,"subscribed")}get buttonAppearanceAttributes(){const{buttonAppearance:e}=this.args.tetrisComponentModel
|
|
return e?(0,s.default)(e):{type:"secondary",color:"muted",size:2,theme:"standard"}}constructor(){super(...arguments);(0,t.default)(this,"i18n",A,this);(0,t.default)(this,"persistentToastManager",I,this);(0,t.default)(this,"clientSensor",M,this);(0,t.default)(this,"tracking",D,this);(0,t.default)(this,"watchmanTracking",N,this);(0,t.default)(this,"storeShim",R,this)
|
|
this._validateAndFireClientSensorEvent()}onClick(){this.watchmanTracking.startInteraction(U)
|
|
this._fireActionTrackingEvent()
|
|
const e=(0,g.get)(this.subscribeActionModel,"entityUrn"),t=this.storeShim.adapterFor("-ember-m3"),n=(0,d.addQueryParam)("/voyager/api/voyagerPublishingDashSeriesSubscribers","action",this.subscribed?"unsubscribe":"subscribeSeries"),i=(0,p.extractUrnParts)(e)[1],r={data:this.subscribed?{subscribeActionUrn:e}:{contentSeriesUrn:i}},o=t.ajax(n,"POST",r),l=!this.subscribed;(0,g.set)(this.subscribeActionModel,"subscribed",l)
|
|
o.then((e=>{var t
|
|
if((0,b.isDestroying)(this))return
|
|
const n=(0,c.default)(null==e||null===(t=e.data)||void 0===t?void 0:t.value),i=null==n?void 0:n.message,r=null==n?void 0:n.ctaText,o=null==n?void 0:n.ctaUrl
|
|
this._showToast(x,this.subscribed?i:"i18n_success_newsletter_unsubscribe",r,o)
|
|
this.watchmanTracking.endInteraction(U)})).catch((e=>{if((0,b.isDestroying)(this))throw e
|
|
this.watchmanTracking.endInteractionWithError(U)
|
|
if(!e||!e.isAdapterError)throw e;(0,g.set)(this.subscribeActionModel,"subscribed",!l)
|
|
this._showToast("error","i18n_delete_failure")}))}_fireActionTrackingEvent(){const e=this.subscribed?"unsubscribe_newsletter":"subscribe_newsletter",t=this.subscribed?"UNSUBSCRIBE":"SUBSCRIBE";(0,m.fireCustomActionTrackingEvent)(this.tracking,this.args.trackingId,this.args.actionRecommendationTrackingId,this.args.actionTrackingMetadataUnions,t);(0,m.fireControlInteractionEvent)(this.tracking,e)}_validateAndFireClientSensorEvent(){this.subscribeActionModel?this.clientSensor.incrementMetricCounter({groupName:u.GROUP_NAME_PROFILE,metricName:"subscribe-newsletter-action-component-served"}):this.clientSensor.incrementMetricCounter({groupName:u.GROUP_NAME_PROFILE,metricName:"subscribe-newsletter-action-component-dropped"})}_showToast(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null
|
|
const r=this.persistentToastManager,o=this.subscribed?t:this.i18n.lookupTranslation(v.default,t)()
|
|
e===x?n&&i?r.success({message:o,ctaText:n,ctaUrl:i}):r.success({message:o}):r.error({message:o})}},A=(0,i.default)(k.prototype,"i18n",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,i.default)(k.prototype,"persistentToastManager",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,i.default)(k.prototype,"clientSensor",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,i.default)(k.prototype,"tracking",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,i.default)(k.prototype,"watchmanTracking",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,i.default)(k.prototype,"storeShim",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(k.prototype,"onClick",[g.action],Object.getOwnPropertyDescriptor(k.prototype,"onClick"),k.prototype),k))}))
|
|
define("profile-tetris-shared/components/profile-component/action-component/unfeature",["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-tetris-shared/utils/constant/render-actions","profile-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/helpers/toast-helper","graphql-queries/queries/profile/organized-queries/view/featured/profile-featured-items-unfeature.graphql","@glimmer/tracking","profile-tetris-shared/utils/constant/action-types","profile-tetris-shared/utils/model/action-component-metadata","profile-tetris-shared/utils/profile-monitoring-helpers","profile-tetris-shared/utils/profile-tracking-helpers","@glimmer/component","@ember/service","@ember/object","@ember/destroyable","artdeco-button/components/artdeco-button","ember-cli-pemberly-i18n/helpers/t","@ember/modifier"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var w,P,S,O,k,A,I,M,D,N,R,x
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"rsyGzZtm",block:'[[[1,"\\n"],[1," "],[8,[32,0],[[4,[32,2],["click",[30,0,["handleClick"]]],null]],[["@class","@type","@controlType","@color","@icon","@text","@isLoading","@disabled"],[[52,[30,0,["isPending"]],"pvs-inline-loading-action--disabled"],"secondary","button","muted","star-fill",[52,[30,0,["shouldShowPendingActionIndicator"]],[28,[32,1],["removing_featured","profile-tetris-shared/components/profile-component/action-component/unfeature"],null],[28,[32,1],["remove_featured","profile-tetris-shared/components/profile-component/action-component/unfeature"],null]],[30,0,["isPending"]],[30,0,["shouldDisable"]]]],null],[1,"\\n "]],[],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/action-component/unfeature.gjs",scope:()=>[T.default,C.default,E.on],isStrictMode:!0}),(w=(0,y.inject)("@linkedin/ember-restli-graphql@graphql"),P=(0,y.inject)("persistent-toast-manager@persistent-toast-manager"),S=(0,y.inject)("i18n"),O=(0,y.inject)("client-sensor-web@client-sensor"),k=(0,y.inject)("tracking"),A=class e extends b.default{get featuredItemCardUrn(){return(0,_.get)(this.args,"tetrisComponentModel.featuredItemCard.entityUrn")||(0,_.get)(this.args,"tetrisComponentModel.entityUrn")}get shouldShowPendingActionIndicator(){return this.isPending}get shouldDisable(){return this.args.shouldDisable&&!this.shouldShowPendingActionIndicator}constructor(){super(...arguments);(0,t.default)(this,"graphql",I,this);(0,t.default)(this,"persistentToastManager",M,this);(0,t.default)(this,"i18n",D,this);(0,t.default)(this,"clientSensor",N,this);(0,t.default)(this,"tracking",R,this);(0,t.default)(this,"isPending",x,this)
|
|
this._assertProps()}handleClick(){const t=this.featuredItemCardUrn
|
|
this._fireDisableAction(!0);(0,g.fireCustomActionTrackingEvent)(this.tracking,this.args.trackingId,this.args.actionRecommendationTrackingId);(0,g.fireControlInteractionEvent)(this.tracking,(0,_.get)(this.args.tetrisComponentModel,"controlName"))
|
|
return this.graphql.executeQuery(d.default,{urnsToRemove:[t]},{reload:!0}).then((e=>{if(!(0,v.isDestroying)(this))return(0,_.get)(e,"data.doUnfeatureItemsIdentityDashProfileFeaturedItemCards")})).then((()=>{if(!this.isDestroying){var t,n
|
|
this.clientSensor.incrementMetricCounter({groupName:c.GROUP_NAME_PROFILE,metricName:"unfeature-action-click-success"})
|
|
null===(t=(n=this.args).handleAction)||void 0===t||t.call(n,new f.default({type:m.UPDATE_PROFILE_VIEW_MODEL}));(0,p.showToast)(this.i18n,this.persistentToastManager,e,"i18n_success_remove_featured")}})).catch((t=>{if((0,v.isDestroying)(this))throw t;(0,h.fireActionClickFailedMonitoringEvent)(this.clientSensor,"unfeature-action-click-failed",t)
|
|
if(!t||!t.isAdapterError)throw t;(0,p.showToast)(this.i18n,this.persistentToastManager,e,"i18n_failed_remove_featured",p.TOAST_TYPE.ERROR)
|
|
this._fireDisableAction(!1)}))}_assertProps(){this.featuredItemCardUrn?this.clientSensor.incrementMetricCounter({groupName:c.GROUP_NAME_PROFILE,metricName:"unfeature-action-component-served"}):this.clientSensor.incrementMetricCounter({groupName:c.GROUP_NAME_PROFILE,metricName:"unfeature-action-component-dropped"})}_fireDisableAction(e){var t,n
|
|
this.isPending=e
|
|
null===(t=(n=this.args).handleAction)||void 0===t||t.call(n,new f.default({type:s.RENDER_ACTIONS.UNFEATURE,options:{disableAll:e}}))}},I=(0,i.default)(A.prototype,"graphql",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,i.default)(A.prototype,"persistentToastManager",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,i.default)(A.prototype,"i18n",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,i.default)(A.prototype,"clientSensor",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,i.default)(A.prototype,"tracking",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,i.default)(A.prototype,"isPending",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(A.prototype,"handleClick",[_.action],Object.getOwnPropertyDescriptor(A.prototype,"handleClick"),A.prototype),A))}))
|
|
define("profile-tetris-shared/components/profile-component/action",["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-tetris-shared/utils/profile-component-builder-helpers","profile-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/helpers/check-type","dash-interop-helper/utils/get-graphql-value-with-dash-fallback","profile-tetris-shared/utils/constant/action-types","profile-tetris-shared/utils/action-consistency-helpers","button-appearance/helpers/button-appearance-attributes","global-utils/utils/tracking-id","profile-tetris-shared/utils/profile-action-component-builder-helpers","@ember/service","@ember/object","@glimmer/component","ember-cli-pemberly-tracking/modifiers/track-impression","profile-tetris-shared/components/profile-component/action-component/see-more-or-less","profile-tetris-shared/components/profile-component/action-component/collapse-expand"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var E,w,P,S,O
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"bQcMpHpj",block:'[[[1,"\\n"],[41,[30,0,["shouldRenderAction"]],[[[44,[[50,[30,0,["componentType"]],0,null,null]],[[[1," "],[11,0],[16,0,[30,0,["actionClass"]]],[4,[32,0],null,[["registerOnImpression","routeName","currentRoute"],[[30,0,["onImpressionHandler"]],[28,[32,1],[[53,"outletState"],"render.name"],null],[28,[32,1],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n "],[8,[30,1],null,[["@tetrisComponentModel","@actionContext","@isPadded","@viewModelResponse","@trackingId","@actionRecommendationTrackingId","@actionTrackingMetadataUnions","@handleAction","@headerAction","@shouldDisable","@isProfileCardUpdated"],[[30,0,["componentData"]],[30,2],[52,[51,[30,0,["actionClass"]]],[30,0,["isPadded"]]],[30,0,["viewModelResponse"]],[30,0,["trackingId"]],[30,0,["actionRecommendationTrackingId"]],[30,0,["actionTrackingMetadataUnions"]],[30,0,["handleAction"]],[30,3],[30,4],[30,5]]],null],[1,"\\n "],[13],[1,"\\n"]],[1]]]],[]],null],[1," "]],["ActionComponent","@actionContext","@headerAction","@shouldDisable","@isProfileCardUpdated"],false,["if","let","component","-get-dynamic-var","unless"]]',moduleName:"profile-tetris-shared/components/profile-component/action.gjs",scope:()=>[v.default,l.get],isStrictMode:!0}),(E=(0,b.inject)("@linkedin/ember-restli-graphql@graphql"),w=(0,b.inject)("client-sensor-web@client-sensor"),P=class extends _.default{constructor(){super(...arguments);(0,t.default)(this,"graphql",S,this);(0,t.default)(this,"clientSensor",O,this)}get renderAction(){return(0,d.getGraphQlValueWithDashFallback)(this.args.actionComponent,"action")}get shouldRenderAction(){this._validateAndFireClientSensorEvent()
|
|
return!!this.renderAction&&!!this.componentData&&!!this.componentType}get componentType(){return(0,g.getComponentNameFromActionUnion)(this.renderAction)}get componentData(){return(0,g.getDataFromActionUnion)(this.renderAction)}get trackingId(){return(0,y.get)(this.args,"actionComponent.trackingId")}get actionRecommendationTrackingId(){return(0,y.get)(this.args.actionComponent,"actionRecommendationTrackingId")}get actionTrackingMetadataUnions(){return(0,y.get)(this.args.actionComponent,"actionTrackingMetadata")}get viewModelResponse(){return(0,y.get)(this.args.actionComponent,"viewModelResponse")}get isPadded(){return(0,y.get)(this.args.actionComponent,"padded")}get buttonAppearance(){return(0,y.get)(this.componentData,"buttonAppearance")}get buttonPlacement(){return(0,y.get)(this.componentData,"buttonPlacement")}get isCollapseExpandAction(){return this.componentType===C.default}get isCircle(){return this.buttonAppearance&&(0,f.default)(this.buttonAppearance).isCircle||this.args.headerAction||this.isCollapseExpandAction}get actionClass(){if(this.componentType===T.default)return""
|
|
const e=this.buttonPlacement&&this.buttonAppearance
|
|
return!e&&!this.args.headerAction&&!this.isCollapseExpandAction||e&&!this.isCircle&&"FULL_WIDTH"!==this.buttonPlacement&&"SPAN"!==this.buttonPlacement?this.isPadded?"p2":"pv2":""}onImpressionHandler(){const e=[]
|
|
this.trackingId&&e.push({name:"ProfileActionImpressionEvent",body:{profileActionType:"UNKNOWN",trackingId:(0,h.getByteStringAsBase64)(this.trackingId),powerCreatorTabActive:!1}})
|
|
this.actionRecommendationTrackingId&&e.push({name:"ActionRecommendationTrackingEvent",body:{timestamp:Date.now(),trackingId:this.actionRecommendationTrackingId,cohortImpression:{}}})
|
|
return()=>e}handleAction(e){var t,n
|
|
let{type:i}=e
|
|
return i===u.UPDATE_PROFILE_VIEW_MODEL?this._updateActionProfileViewModel():null===(t=(n=this.args).handleAction)||void 0===t?void 0:t.call(n,...arguments)}_updateActionProfileViewModel(){(0,m.updateViewModelResponseUsingGraphQL)(this.graphql,this.viewModelResponse)}_validateAndFireClientSensorEvent(){!this.renderAction||this.componentType===s.UNSUPPORTED_COMPONENT||!this.componentData||!(0,p.isBoolean)(this.isPadded)?this.clientSensor.incrementMetricCounter({groupName:c.GROUP_NAME_PROFILE,metricName:"action-component-dropped"}):this.clientSensor.incrementMetricCounter({groupName:c.GROUP_NAME_PROFILE,metricName:"action-component-served"})}},S=(0,i.default)(P.prototype,"graphql",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,i.default)(P.prototype,"clientSensor",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(P.prototype,"onImpressionHandler",[y.action],Object.getOwnPropertyDescriptor(P.prototype,"onImpressionHandler"),P.prototype),(0,i.default)(P.prototype,"handleAction",[y.action],Object.getOwnPropertyDescriptor(P.prototype,"handleAction"),P.prototype),P))}))
|
|
define("profile-tetris-shared/components/profile-component/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/helper","@ember/component","profile-tetris-shared/utils/profile-tracking-helpers","profile-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/helpers/check-type","dash-interop-helper/utils/get-graphql-value-with-dash-fallback","@ember/service","scaffold-layout/services/reflow","profile-tetris-shared/utils/profile-component-builder-helpers","profile-tetris-shared/utils/constant/render-actions","@glimmer/tracking","@ember/array","@ember/object","@glimmer/component","profile-tetris-shared/utils/model/action-component-metadata","artdeco-carousel/components/artdeco-carousel","profile-tetris-shared/modifiers/handle-carousel-focus","profile-tetris-shared/components/profile-component-builder","profile-tetris-shared/components/profile-component/action","artdeco-button/components/artdeco-button","ember-cli-pemberly-i18n/helpers/t","@ember/modifier"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E,w,P,S,O){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var k,A,I,M,D,N,R,x,U
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"UlNYb/hf",block:'[[[1,"\\n"],[41,[30,0,["components"]],[[[1," "],[8,[32,0],[[4,[32,1],[[30,0,["currentSlideIndex"]]],null]],[["@currentSlideIndex","@initialSlideIndex","@onNext","@onPrevious","@hidePagination","@hidePrevNextBtnText","@hidePrevNextBtns","@carouselItems","@cardWidth","@loop","@class"],[[30,0,["currentSlideIndex"]],[30,0,["initialSlideIndex"]],[30,0,["onClickNext"]],[30,0,["onClickPrevious"]],true,true,true,[30,0,["carouselItemsCount"]],[30,0,["cardWidth"]],false,"pvs-carousel"]],[["default"],[[[[1,"\\n\\n "],[10,0],[14,0,"overflow-hidden ph4 pv3"],[12],[1,"\\n "],[8,[30,1,["slider"]],null,null,[["default"],[[[[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["components"]]],null]],null],null,[[[1," "],[8,[30,1,["item"]],null,[["@myIndex","@isOcclusionCullingEnabled"],[[30,5],false]],[["default"],[[[[1,"\\n "],[8,[32,2],null,[["@component","@handleAction","@ariaHidden"],[[30,4],[30,0,["handleAction"]],[52,[30,6,["isFullyVisible"]],"false","true"]]],null],[1,"\\n "]],[6]]]]],[1,"\\n\\n"]],[4,5]],null],[41,[30,0,["carouselEndCardAction"]],[[[1," "],[8,[30,1,["item"]],null,[["@myIndex"],[[30,0,["components","length"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"artdeco-card justify-center align-items-center display-flex full-width overflow-hidden"],[12],[1,"\\n "],[8,[32,3],null,[["@actionComponent"],[[30,0,["carouselEndCardAction"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[8,[32,4],[[24,0,"pvs-carousel__navigation-button artdeco-pagination__button--previous previous-btn"],[16,"aria-label",[28,[32,5],["carousel_button_previous","profile-tetris-shared/components/profile-component/carousel"],null]],[4,[32,6],["click",[52,[30,0,["useCustomPagination"]],[30,0,["customMoveToPrevious"]],[30,2]]],null]],[["@circle","@color","@size","@icon","@disabled","@controlType"],[true,"muted",1,"chevron-left",[30,0,["isPreviousDisabled"]],"button"]],null],[1,"\\n\\n "],[8,[32,4],[[24,0,"pvs-carousel__navigation-button artdeco-pagination__button--next next-btn"],[16,"aria-label",[28,[32,5],["carousel_button_next","profile-tetris-shared/components/profile-component/carousel"],null]],[4,[32,6],["click",[52,[30,0,["useCustomPagination"]],[30,0,["customMoveToNext"]],[30,3]]],null]],[["@circle","@color","@size","@disabled","@icon","@controlType"],[true,"muted",1,[30,0,["isNextDisabled"]],"chevron-right","button"]],null],[1,"\\n "]],[1,2,3]]]]],[1,"\\n"]],[]],null],[1," "]],["carousel","moveToPrevious","moveToNext","component","index","itemState"],false,["if","each","-track-array"]]',moduleName:"profile-tetris-shared/components/profile-component/carousel.gjs",scope:()=>[T.default,C.default,E.default,w.default,P.default,S.default,O.on],isStrictMode:!0}),(k=(0,u.inject)("scaffold-layout@reflow"),A=(0,u.inject)("client-sensor-web@client-sensor"),I=(0,u.inject)("tracking"),M=class extends _.default{get useCustomPagination(){return 3===this.pageSize&&!this.isFullCarouselShown}get components(){return(0,y.get)(this.args.tetrisComponentModel,"components")}get cardWidth(){return`${Math.trunc(100/this.pageSize)}%`}get carouselEndCardAction(){return(0,y.get)(this.args.tetrisComponentModel,"endCardAction")}get carouselItemsCount(){return this.carouselEndCardAction?this.components.length+1:this.components.length}get isFullCarouselShown(){return this.pageSize===this.carouselItemsCount}get isNextDisabled(){return this.currentSlideIndex>=this.lastIndex||this.isFullCarouselShown}get isPreviousDisabled(){return this.currentSlideIndex<=0||this.isFullCarouselShown}get lastIndex(){return this.carouselItemsCount-1}get nextCustomIndex(){return this.currentSlideIndex===this.lastIndex-2||4===this.carouselItemsCount?this.lastIndex:0===this.currentSlideIndex?2:Math.min(this.currentSlideIndex+1,this.lastIndex)}get previousCustomIndex(){return 2===this.currentSlideIndex||4===this.carouselItemsCount?0:this.currentSlideIndex===this.lastIndex?this.lastIndex-2:Math.max(this.currentSlideIndex-1,0)}get pageSize(){const{clientWidth:e}=this.reflow
|
|
if(e<=m.REFLOW_BREAKPOINTS.md.maxWidth)return 1
|
|
const t=(0,y.get)(this.args.tetrisComponentModel,"maxComponentsVisible")||3
|
|
return e===m.REFLOW_BREAKPOINTS.lg.maxWidth&&this.carouselItemsCount>=t||e>=m.REFLOW_BREAKPOINTS.xl.maxWidth&&this.carouselItemsCount>=t?t:this.carouselItemsCount}constructor(){super(...arguments);(0,t.default)(this,"reflow",D,this);(0,t.default)(this,"clientSensor",N,this);(0,t.default)(this,"tracking",R,this);(0,t.default)(this,"currentSlideIndex",x,this);(0,t.default)(this,"initialSlideIndex",U,this)
|
|
this._assertProps()
|
|
this._validateAndFireClientSensorEvent()}_assertProps(){(0,y.get)(this.args.tetrisComponentModel,"components")||console.error("Components are required")}handleAction(e){let{type:t,actionDelegateUrn:n}=e
|
|
if(t===h.RENDER_ACTIONS.DISMISS){const e=this.components.find((e=>{const t=(0,f.getComponentData)((0,d.getGraphQlValueWithDashFallback)(e,"components"))
|
|
return n===(0,y.get)(t,"actionDelegateUrn")}))
|
|
if(e){this.components.removeObject(e)
|
|
this.currentSlideIndex>0&&(this.initialSlideIndex=this.currentSlideIndex-1)}}if(this.components.length){var i,r
|
|
null===(i=(r=this.args).handleAction)||void 0===i||i.call(r,...arguments)}else{var o,l
|
|
null===(o=(l=this.args).handleAction)||void 0===o||o.call(l,new v.default({type:h.RENDER_ACTIONS.DISMISS,actionDelegateUrn:this.args.tetrisComponentModel.allChildDismissedEventRecipientUrn}))}}customMoveToNext(){this.currentSlideIndex=this.nextCustomIndex}customMoveToPrevious(){this.currentSlideIndex=this.previousCustomIndex}onClickNext(){(0,s.fireControlInteractionEvent)(this.tracking,(0,y.get)(this.args.tetrisComponentModel,"advanceToNextControlName"))}onClickPrevious(){(0,s.fireControlInteractionEvent)(this.tracking,(0,y.get)(this.args.tetrisComponentModel,"advanceToPreviousControlName"))}_validateAndFireClientSensorEvent(){const{components:e,maxComponentsVisible:t}=(0,y.getProperties)(this.args.tetrisComponentModel,"components","maxComponentsVisible")
|
|
e&&e.length&&(0,b.isArray)(e)&&(0,p.isInteger)(t)?this.clientSensor.incrementMetricCounter({groupName:c.GROUP_NAME_PROFILE,metricName:"carousel-component-served"}):this.clientSensor.incrementMetricCounter({groupName:c.GROUP_NAME_PROFILE,metricName:"carousel-component-dropped"})}},D=(0,i.default)(M.prototype,"reflow",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,i.default)(M.prototype,"clientSensor",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,i.default)(M.prototype,"tracking",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,i.default)(M.prototype,"currentSlideIndex",[g.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),U=(0,i.default)(M.prototype,"initialSlideIndex",[g.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),(0,i.default)(M.prototype,"handleAction",[y.action],Object.getOwnPropertyDescriptor(M.prototype,"handleAction"),M.prototype),(0,i.default)(M.prototype,"customMoveToNext",[y.action],Object.getOwnPropertyDescriptor(M.prototype,"customMoveToNext"),M.prototype),(0,i.default)(M.prototype,"customMoveToPrevious",[y.action],Object.getOwnPropertyDescriptor(M.prototype,"customMoveToPrevious"),M.prototype),(0,i.default)(M.prototype,"onClickNext",[y.action],Object.getOwnPropertyDescriptor(M.prototype,"onClickNext"),M.prototype),(0,i.default)(M.prototype,"onClickPrevious",[y.action],Object.getOwnPropertyDescriptor(M.prototype,"onClickPrevious"),M.prototype),M))}))
|
|
define("profile-tetris-shared/components/profile-component/completion-meter",["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-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/helpers/check-type","@ember/service","@glimmer/component","text-view-model/components/text-view-model-v2","artdeco-completeness-meter-linear/components/artdeco-completeness-meter-linear","ember-cli-pemberly-i18n/helpers/t"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var f,h,g
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"lp7nFV2r",block:'[[[1,"\\n"],[1," "],[10,0],[14,0,"ph5 pv4"],[12],[1,"\\n"],[41,[30,1,["title"]],[[[1," "],[10,0],[14,0,"text-heading-medium mb1"],[12],[1,"\\n "],[8,[32,0],null,[["@tvm"],[[30,1,["title"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"display-flex"],[12],[1,"\\n "],[8,[32,1],[[24,0,"pvs-profile-component-completion-meter"]],[["@max","@value"],[[30,0,["numTotalSteps"]],[30,0,["numCompletedSteps"]]]],null],[1,"\\n"],[1," "],[10,1],[14,0,"pvs-profile-component-completion-meter__fraction text-body-small"],[12],[1,"\\n "],[1,[28,[32,2],["i18n_complete_steps_fraction","profile-tetris-shared/components/profile-component/completion-meter"],[["numberLeft","numberRight"],[[30,0,["numCompletedSteps"]],[30,0,["numTotalSteps"]]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,1,["description"]],[[[1," "],[10,0],[14,0,"text-body-small mt1"],[12],[1,"\\n "],[8,[32,0],null,[["@tvm"],[[30,1,["description"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@tetrisComponentModel"],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/completion-meter.gts",scope:()=>[d.default,u.default,m.default],isStrictMode:!0}),(f=(0,c.inject)("client-sensor-web@client-sensor"),h=class extends p.default{get numTotalSteps(){var e
|
|
return null===(e=this.args.tetrisComponentModel)||void 0===e?void 0:e.numTotalSteps}get numCompletedSteps(){var e
|
|
return(null===(e=this.args.tetrisComponentModel)||void 0===e?void 0:e.numCompletedSteps)||0}constructor(e,n){super(e,n);(0,t.default)(this,"clientSensor",g,this)
|
|
this._validateAndFireClientSensorEvent()}_validateAndFireClientSensorEvent(){var e,t;(0,s.isInteger)(this.numTotalSteps)&&(0,s.isInteger)(this.numCompletedSteps)&&null!==(e=this.args.tetrisComponentModel)&&void 0!==e&&e.title&&null!==(t=this.args.tetrisComponentModel)&&void 0!==t&&t.description?this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"completion-meter-component-served"}):this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"completion-meter-component-dropped"})}},g=(0,i.default)(h.prototype,"clientSensor",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h))}))
|
|
define("profile-tetris-shared/components/profile-component/content-footer",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","@ember/service","@ember/object","@glimmer/component","profile-tetris-shared/components/profile-component/insight","profile-tetris-shared/components/helper-component/optional-action-target-wrapper","social-details/components/social-counts","global-helpers/helpers/not","profile-tetris-shared/components/profile-component/action"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var h,g,b
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"Z6hHw3Uj",block:'[[[1,"\\n"],[41,[30,1,["insightComponent"]],[[[1," "],[8,[32,0],null,[["@tetrisComponentModel"],[[30,1,["insightComponent"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["actionComponent"]],[[[1," "],[10,0],[14,0,"ph-2"],[12],[1,"\\n "],[8,[32,1],null,[["@actionComponent"],[[30,0,["actionComponent"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["hasSocialCounts"]],[[[1," "],[8,[32,2],[[24,"tabindex","-1"],[24,"aria-hidden","true"]],[["@actionTarget","@controlName"],[[30,2],[30,3]]],[["default"],[[[[1,"\\n "],[8,[32,3],[[16,0,[29,["pvs-content__social-count-details\\n ",[52,[30,4],"pvs-content__social-count-details--no-border"]]]]],[["@socialActivityCounts","@isCommentsTotalClickable","@isReactionsTotalClickable","@hideSharesTotal","@disableSocialProofText"],[[30,1,["socialActivityCounts"]],false,false,[28,[32,4],[[30,5]],null],[28,[32,4],[[30,5]],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[]],null]],[]]]],[]]],[1," "]],["@contentFooterUnionModel","@actionTarget","@controlName","@noBorderStyle","@wide"],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/content-footer.gjs",scope:()=>[p.default,f.default,d.default,u.default,m.default],isStrictMode:!0}),(h=(0,a.inject)("social-counts-service@social-counts"),g=class extends c.default{get hasSocialCounts(){const e=(0,s.get)(this.args.contentFooterUnionModel,"socialActivityCounts")
|
|
return e&&((0,s.get)(e,"numComments")>0||(0,s.get)(e,"reactionTypeCounts.length")>0)}get actionComponent(){return(0,s.get)(this.args.contentFooterUnionModel,"actionComponent")}constructor(){super(...arguments);(0,t.default)(this,"socialCountsService",b,this)
|
|
const e=(0,s.get)(this.args.contentFooterUnionModel,"socialActivityCounts")
|
|
e&&!this.socialCountsService.checkSocialCountsManagerExists(e)&&this.socialCountsService.registerSocialActivityCounts(e)}},b=(0,i.default)(g.prototype,"socialCountsService",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g))}))
|
|
define("profile-tetris-shared/components/profile-component/content",["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","feed-tracking/utils/update-tracking-obj","profile-shared/utils/image-helpers","profile-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/helpers/check-type","@ember/service","@glimmer/tracking","profile-tetris-shared/utils/constant/render-actions","dash-interop-helper/utils/get-graphql-value-with-dash-fallback","@ember/object/internals","@ember/object","@glimmer/component","profile-tetris-shared/components/helper-component/optional-action-target-wrapper","text-view-model/components/text-view-model-v2","profile-tetris-shared/components/profile-component/text","interstitial-view-model/components/click-through-interstitial","ember-cli-pemberly-tracking/modifiers/track-impression","profile-tetris-shared/components/helper-component/content-contents","interstitial-view-model/components/non-click-through-interstitial","profile-tetris-shared/components/profile-component/content-footer","social-details/components/social-counts","global-helpers/helpers/not","profile-tetris-shared/components/profile-component/action"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E,w,P,S,O,k,A){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var I,M,D,N,R,x,U,L,j,F
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"PTd7uyCQ",block:'[[[1,"\\n "],[10,0],[15,0,[29,["display-flex flex-column full-width\\n ",[52,[51,[30,1,["wide"]]],"full-height"],"\\n ",[52,[30,1,["padded"]],"ph5"],"\\n ",[52,[30,0,["shouldShowPendingActionIndicator"]],"pvs-pending-component"]]]],[12],[1,"\\n "],[8,[32,0],[[24,"tabindex","-1"],[24,"aria-hidden","true"]],[["@actionTarget","@controlName"],[[52,[30,0,["disableAll"]],"",[30,1,["actionTarget"]]],[30,1,["controlName"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"pvs-content__top-bar"],[12],[1,"\\n"],[41,[30,1,["supplementaryInfo"]],[[[1," "],[10,0],[14,0,"mt3 mb2 mh3 display-flex t-12 t-black--light display-flex t-normal"],[12],[1,"\\n "],[8,[32,1],null,[["@tvm"],[[30,1,["supplementaryInfo"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["showCommentary"]],[[[1," "],[8,[32,2],[[16,0,[29,["ph3\\n ",[52,[30,0,["commentaryNeedsBottomPadding"]],"pb3","pb2"],"\\n ",[30,0,["commentaryTextDetails","class"]]]]]],[["@tetrisComponentModel"],[[30,1,["commentary"]]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"],[41,[30,0,["interstitial"]],[[[41,[30,0,["isClickThroughInterstitial"]],[[[1," "],[8,[32,3],[[24,0,"pvs-content__click-through-interstitial-container"],[4,[32,4],null,[["registerOnImpression","routeName","currentRoute"],[[30,0,["handleInterstitialImpressionTracking"]],[28,[32,5],[[53,"outletState"],"render.name"],null],[28,[32,5],[[53,"outletState"],"render"],null]]]]],[["@explanatoryLinkAction","@explanatoryLinkControlName","@iconType","@hideClickThroughButton","@model","@showClickThroughOverlay","@isSmallInterstitial"],[[30,0,["explanatoryLinkAction"]],"trust_sign_post_see_more","visibility-off",false,[30,0,["interstitial"]],[30,0,["showClickThroughOverlay"]],true]],[["default"],[[[[1,"\\n "],[8,[32,6],null,[["@tetrisComponentModel","@contentNeedsBottomPadding","@disableAll","@imageId","@onImageLoad","@onImageError","@ariaHidden"],[[30,1],[30,0,["contentNeedsBottomPadding"]],[30,0,["disableAll"]],[30,0,["imageId"]],[30,0,["onImageLoad"]],[30,0,["onImageError"]],[30,2]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[32,7],[[16,0,[29,["pvs-content__non-click-through-interstitial-container\\n ",[52,[30,1,["wide"]],"pvs-content__non-click-through-interstitial-container--wide"]]]],[4,[32,4],null,[["registerOnImpression","routeName","currentRoute"],[[30,0,["handleInterstitialImpressionTracking"]],[28,[32,5],[[53,"outletState"],"render.name"],null],[28,[32,5],[[53,"outletState"],"render"],null]]]]],[["@explanatoryLinkAction","@explanatoryLinkControlName","@model","@iconType"],[[30,0,["explanatoryLinkAction"]],"trust_sign_post_learn_more",[30,0,["interstitial"]],"shield"]],null],[1,"\\n"]],[]]]],[]],[[[1," "],[8,[32,6],null,[["@tetrisComponentModel","@contentNeedsBottomPadding","@disableAll","@imageId","@onImageLoad","@onImageError","@ariaHidden"],[[30,1],[30,0,["contentNeedsBottomPadding"]],[30,0,["disableAll"]],[30,0,["imageId"]],[30,0,["onImageLoad"]],[30,0,["onImageError"]],[30,2]]],null],[1,"\\n"]],[]]],[41,[30,0,["contentFooter"]],[[[1," "],[8,[32,8],null,[["@contentFooterUnionModel","@actionTarget","@controlName","@wide","@noBorderStyle"],[[30,0,["contentFooter"]],[52,[51,[30,0,["disableAll"]]],[30,1,["actionTarget"]]],[30,1,["controlName"]],[30,1,["wide"]],[52,[51,[30,1,["primaryAction"]]],true]]],null],[1,"\\n"]],[]],[[[41,[30,0,["hasSocialCounts"]],[[[1," "],[8,[32,0],[[24,"tabindex","-1"],[24,"aria-hidden","true"]],[["@actionTarget","@controlName"],[[52,[51,[30,0,["disableAll"]]],[30,1,["actionTarget"]]],[30,1,["controlName"]]]],[["default"],[[[[1,"\\n "],[8,[32,9],[[16,0,[29,["pvs-content__social-count-details\\n ",[52,[51,[30,1,["primaryAction"]]],"pvs-content__social-count-details--no-border"]]]]],[["@socialActivityCounts","@isCommentsTotalClickable","@isReactionsTotalClickable","@hideSharesTotal","@disableSocialProofText"],[[30,1,["socialActivityCounts"]],false,false,[30,0,["hideSharesTotal"]],[28,[32,10],[[30,1,["wide"]]],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n"],[41,[30,0,["hasAction"]],[[[1," "],[10,0],[15,0,[29,["pvs-content__footer-action-container\\n ",[52,[30,0,["disableAll"]],"pvs-pending-component__action-container"]]]],[12],[1,"\\n"],[41,[30,1,["primaryAction"]],[[[1," "],[8,[32,11],null,[["@actionComponent","@handleAction","@shouldDisable"],[[30,1,["primaryAction"]],[30,0,["handleAction"]],[30,0,["disableAll"]]]],null],[1,"\\n"]],[]],null],[41,[30,1,["secondaryAction"]],[[[1," "],[8,[32,11],null,[["@actionComponent","@handleAction","@shouldDisable"],[[30,1,["secondaryAction"]],[30,0,["handleAction"]],[30,0,["disableAll"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["@tetrisComponentModel","@ariaHidden"],false,["unless","if","-get-dynamic-var"]]',moduleName:"profile-tetris-shared/components/profile-component/content.gjs",scope:()=>[_.default,v.default,T.default,C.default,E.default,l.get,w.default,P.default,S.default,O.default,k.default,A.default],isStrictMode:!0}),(I=(0,u.inject)("client-sensor-web@client-sensor"),M=(0,u.inject)("social-counts-service@social-counts"),D=(0,u.inject)("feed-tracking@feed-action-event"),N=(0,u.inject)("tracking"),R=class extends y.default{get interstitial(){return(0,b.get)(this.args.tetrisComponentModel,"interstitial.interstitial")}get isClickThroughInterstitial(){return(0,b.get)(this.interstitial,"shouldBlurContent")}get interstitialTrackingControlUrn(){const e=this.isClickThroughInterstitial?"click_through_interstitial":"non_click_through_interstitial"
|
|
return this.tracking.generateControlUrn(e)}get interstitialTrackingObject(){const e={trackingData:{trackingId:(0,b.get)(this.interstitial,"trackingId")},backendUrn:(0,b.get)(this.args.tetrisComponentModel,"interstitial.miniUpdateBackendUrn")}
|
|
return e?new s.default(e,this.feedActionEvent,void 0,this.tracking,void 0,void 0,!1):null}get showClickThroughOverlay(){return this.isClickThroughInterstitial&&(0,b.get)(this.interstitial,"shouldShowInterstitial")}get showCommentary(){return(0,b.get)(this.args.tetrisComponentModel,"commentary")&&!(this.wide&&(0,h.getGraphQlValueWithDashFallback)(this.args.tetrisComponentModel,"content.mediaContent"))&&!this.interstitial}get hasAction(){return(0,b.get)(this.args,"tetrisComponentModel.primaryAction")||(0,b.get)(this.args,"tetrisComponentModel.secondaryAction")}get contentFooter(){return(0,h.getGraphQlValueWithDashFallback)(this.args.tetrisComponentModel,"contentFooter")}get hasSocialCounts(){const e=(0,b.get)(this.args.tetrisComponentModel,"socialActivityCounts")
|
|
return e&&((0,b.get)(e,"numComments")>0||(0,b.get)(e,"reactionTypeCounts.length")>0)}get contentNeedsBottomPadding(){return(0,h.getGraphQlValueWithDashFallback)(this.args.tetrisComponentModel,"content.objectContent")&&!this.hasSocialCounts&&!this.hasAction}get wide(){return(0,b.get)(this.args.tetrisComponentModel,"wide")}get isTextOnly(){return(0,b.get)(this.args.tetrisComponentModel,"commentary")&&!(0,h.getGraphQlValueWithDashFallback)(this.args.tetrisComponentModel,"content.mediaContent")&&!(0,h.getGraphQlValueWithDashFallback)(this.args.tetrisComponentModel,"content.objectContent")}get hideSharesTotal(){return!this.wide}get isShortTextOnly(){return this.isTextOnly&&(0,b.get)(this.args.tetrisComponentModel,"commentary.text.text.length")<144}get commentaryTextDetails(){return this.isShortTextOnly?{class:"text-body-large"}:this.wide?{class:"text-body-medium"}:{class:"text-body-small"}}get commentaryNeedsBottomPadding(){return this.isTextOnly&&!this.hasSocialCounts}get shouldShowPendingActionIndicator(){return this.disableAll}constructor(){super(...arguments);(0,n.default)(this,"imageId",`content-image-${(0,g.guidFor)(this)}`);(0,t.default)(this,"clientSensor",x,this);(0,t.default)(this,"socialCountsService",U,this);(0,t.default)(this,"feedActionEvent",L,this);(0,t.default)(this,"tracking",j,this);(0,t.default)(this,"disableAll",F,this)
|
|
this._validateAndFireClientSensorEvent()
|
|
const e=(0,b.get)(this.args.tetrisComponentModel,"socialActivityCounts")
|
|
this.contentFooter||!e||this.socialCountsService.checkSocialCountsManagerExists(e)||this.socialCountsService.registerSocialActivityCounts(e)}onImageLoad(){const e=(0,c.imgNodeIfFaulty)(this.imageId,!0)
|
|
e&&e.remove()}onImageError(){const e=document.querySelector(`#${this.imageId} img`)
|
|
e&&e.remove()}handleAction(e){if(e)if(e.type===f.RENDER_ACTIONS.DELETE_TREASURY||e.type===f.RENDER_ACTIONS.UNFEATURE||e.type===f.RENDER_ACTIONS.FEATURE_OR_UNFEATURE)this.disableAll=e.options.disableAll
|
|
else{var t,n
|
|
null===(t=(n=this.args).handleAction)||void 0===t||t.call(n,e)}}explanatoryLinkAction(){this.interstitialTrackingObject.fireFeedActionEvent({controlName:this.isClickThroughInterstitial?"trust_sign_post_see_more":"trust_sign_post_learn_more",actionType:this.isClickThroughInterstitial?"seeMore":"learnMore",actionCategory:this.isClickThroughInterstitial?"EXPAND":"LEARN_MORE",accessoryTrackingId:(0,b.get)(this.interstitial,"trackingId")},{moduleKey:"profile:desktop"})}handleInterstitialImpressionTracking(){const e=(0,b.get)(this.interstitial,"trackingId"),t=this.interstitialTrackingObject.generateFeedAccessoryImpressionEventBody([{accessoryEntityUrn:(0,b.get)(this.args.tetrisComponentModel,"interstitial.miniUpdateBackendUrn"),accessoryTrackingId:e,controlUrn:this.interstitialTrackingControlUrn}],e)
|
|
return()=>t?{name:"FeedAccessoryImpressionEvent",body:t}:[]}_validateAndFireClientSensorEvent(){(0,d.isBoolean)(this.wide)?this.clientSensor.incrementMetricCounter({groupName:p.GROUP_NAME_PROFILE,metricName:"content-component-served"}):this.clientSensor.incrementMetricCounter({groupName:p.GROUP_NAME_PROFILE,metricName:"content-component-dropped"})}},x=(0,i.default)(R.prototype,"clientSensor",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,i.default)(R.prototype,"socialCountsService",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,i.default)(R.prototype,"feedActionEvent",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,i.default)(R.prototype,"tracking",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,i.default)(R.prototype,"disableAll",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(R.prototype,"onImageLoad",[b.action],Object.getOwnPropertyDescriptor(R.prototype,"onImageLoad"),R.prototype),(0,i.default)(R.prototype,"onImageError",[b.action],Object.getOwnPropertyDescriptor(R.prototype,"onImageError"),R.prototype),(0,i.default)(R.prototype,"handleAction",[b.action],Object.getOwnPropertyDescriptor(R.prototype,"handleAction"),R.prototype),(0,i.default)(R.prototype,"explanatoryLinkAction",[b.action],Object.getOwnPropertyDescriptor(R.prototype,"explanatoryLinkAction"),R.prototype),(0,i.default)(R.prototype,"handleInterstitialImpressionTracking",[b.action],Object.getOwnPropertyDescriptor(R.prototype,"handleInterstitialImpressionTracking"),R.prototype),R))}))
|
|
define("profile-tetris-shared/components/profile-component/empty-state",["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-tetris-shared/utils/constant/monitoring-constants","@ember/service","@ember/object","@glimmer/component","artdeco-empty-state/components/artdeco-empty-state"],(function(e,t,n,i,r,o,l,a,s,c,p,d){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var u,m,f
|
|
const h=Object.freeze({ILL_EMPTY_WAITING_LARGE:{name:"empty-waiting",size:2},ILL_SPT_EMPTY_WAITING_LARGE:{name:"empty-waiting",size:2},ILL_MSPT_NOTEPAD_SMALL:{name:"notepad",size:1},ILL_SPT_EMPTY_LEAVING_SMALL:{name:"empty-leaving",size:1},ILL_SPT_EMPTY_LEAVING_LARGE:{name:"empty-leaving",size:2},ILL_SPT_EMPTY_ROOM_SMALL:{name:"empty-room",size:1},ILL_SPT_EMPTY_ROOM_LARGE:{name:"empty-room",size:2},ILL_SPT_MAIN_COWORKERS_SMALL:{name:"main-coworkers",size:1},ILL_SPT_MAIN_COWORKERS_LARGE:{name:"main-coworkers",size:2},ILL_SPT_MAIN_COWORKERS_3_SMALL:{name:"main-coworkers-3",size:1},ILL_SPT_MAIN_COWORKERS_4_SMALL:{name:"main-coworkers-4",size:1},ILL_SPT_MAIN_COWORKERS_3_LARGE:{name:"main-coworkers-3",size:2}})
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"aCsO8dCz",block:'[[[1,"\\n"],[1,"\\n"],[41,[30,1,["title","text"]],[[[1," "],[8,[32,0],null,[["@class","@headline","@message","@illustration","@mercadoSize"],["full-width",[30,1,["title","text"]],[30,1,["description","text"]],[30,0,["illustration","name"]],[30,0,["illustration","size"]]]],null],[1,"\\n"]],[]],null],[1," "]],["@tetrisComponentModel"],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/empty-state.gjs",scope:()=>[d.default],isStrictMode:!0}),(u=(0,s.inject)("client-sensor-web@client-sensor"),m=class extends p.default{get illustration(){return h[(0,c.get)(this.args.tetrisComponentModel,"systemImageName")]}constructor(){super(...arguments);(0,t.default)(this,"clientSensor",f,this)
|
|
this._validateAndFireClientSensorEvent()}_validateAndFireClientSensorEvent(){const{title:e,description:t}=(0,c.getProperties)(this.args.tetrisComponentModel,"title","description")
|
|
e&&t&&this.illustration?this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"empty-state-component-served"}):this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"empty-state-component-dropped"})}},f=(0,i.default)(m.prototype,"clientSensor",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m))}))
|
|
define("profile-tetris-shared/components/profile-component/entity-pile",["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/test-waiters","profile-tetris-shared/utils/constant/monitoring-constants","dash-interop-helper/utils/get-graphql-value-with-dash-fallback","@ember/service","@glimmer/tracking","@ember/object","@glimmer/component","text-view-model/components/text-view-model-v2","dash-interop-helper/helpers/get-graphql-value-with-dash-fallback","profile-tetris-shared/components/helper-component/optional-action-target-wrapper","image-view-model/components/entity-pile","ember-resize-modifier/modifiers/did-resize","profile-tetris-shared/components/helper-component/thumbnail","ember-cli-pemberly-i18n/helpers/t"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var C,E,w,P
|
|
const S=(0,s.buildWaiter)("profile-tetris-shared:entityPile-waiter")
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"AYYVGbyz",block:'[[[1,"\\n"],[1," "],[10,0],[14,0,"overflow-hidden full-width"],[12],[1,"\\n"],[41,[30,1,["title"]],[[[1," "],[10,0],[14,0,"text-heading-small mb3"],[12],[1,"\\n "],[8,[32,0],null,[["@tvm"],[[30,1,["title"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[28,[32,1],[[30,1],"entityPile.imageViewModel"],null],[[[1," "],[8,[32,2],[[16,"aria-label",[28,[32,1],[[30,1],"entityPile.imageViewModel.accessibilityText"],null]]],[["@actionTarget"],[[28,[32,1],[[30,1],"entityPile.imageViewModel.actionTarget"],null]]],[["default"],[[[[1,"\\n "],[8,[32,3],null,[["@entitySize","@isStackedLayout","@image","@maxEntities"],[3,true,[28,[32,1],[[30,1],"entityPile.imageViewModel"],null],4]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,0,["hasThumbnails"]],[[[1," "],[11,0],[24,0,"display-flex flex-row flex-wrap"],[4,[32,4],[[30,0,["onResizeEntityPile"]]],null],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["thumbnailsToShow"]]],null]],null],null,[[[1," "],[8,[32,5],null,[["@thumbnail","@actionTarget","@controlName"],[[30,2],[30,2,["actionTarget"]],[30,2,["controlName"]]]],null],[1,"\\n"]],[2]],null],[41,[30,0,["thumbnailWithOverlay"]],[[[1," "],[8,[32,5],null,[["@thumbnail","@actionTarget","@controlName","@overlayText"],[[30,0,["thumbnailWithOverlay"]],[30,0,["thumbnailEntityPile","rollupActionTarget"]],[30,0,["thumbnailEntityPile","controlName"]],[28,[32,6],["i18n_overlay_text","profile-tetris-shared/components/profile-component/entity-pile"],[["count"],[[30,0,["thumbnailOverlayCount"]]]]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n "]],["@tetrisComponentModel","thumbnail"],false,["if","each","-track-array"]]',moduleName:"profile-tetris-shared/components/profile-component/entity-pile.gjs",scope:()=>[h.default,g.default,b.default,y.default,_.default,v.default,T.default],isStrictMode:!0}),(C=(0,d.inject)("client-sensor-web@client-sensor"),E=class extends f.default{get thumbnailEntityPile(){return(0,p.getGraphQlValueWithDashFallback)(this.args.tetrisComponentModel,"entityPile.thumbnailEntityPile")}get totalEntities(){return(0,m.get)(this.thumbnailEntityPile,"thumbnails.length")+(0,m.get)(this.thumbnailEntityPile,"rollupCount")}get thumbnailOverlayCount(){return this.totalEntities<=this.numberEntitiesToShow?0:this.totalEntities-this.numberEntitiesToShow+1}get indexOfLastThumbnail(){return this.numberEntitiesToShow-1}get hasThumbnails(){const e=this.thumbnailEntityPile&&!!(0,m.get)(this.thumbnailEntityPile,"thumbnails")
|
|
e&&(this.token=S.beginAsync())
|
|
return e}get thumbnailsToShow(){const e=(0,m.get)(this.thumbnailEntityPile,"thumbnails")
|
|
return this.thumbnailOverlayCount?e.slice(0,this.numberEntitiesToShow-1):e}get thumbnailWithOverlay(){if(this.thumbnailOverlayCount){return(0,m.get)(this.thumbnailEntityPile,"thumbnails")[this.indexOfLastThumbnail]}}constructor(){super(...arguments);(0,t.default)(this,"clientSensor",w,this);(0,t.default)(this,"numberEntitiesToShow",P,this)
|
|
this._validateAndFireClientSensorEvent()}onResizeEntityPile(e){var t,n,i
|
|
const{width:r}=e.contentRect,o=null===(t=e.target)||void 0===t||null===(n=t.children)||void 0===n?void 0:n[0],l=null==o||null===(i=o.children)||void 0===i?void 0:i[0]
|
|
if(l&&l.clientWidth){const e=o.clientWidth-l.clientWidth
|
|
this.numberEntitiesToShow=Math.min(Math.floor((r+e)/o.clientWidth),(0,m.get)(this.thumbnailEntityPile,"thumbnails.length"))}if(this.token){S.endAsync(this.token)
|
|
this.token=void 0}}_validateAndFireClientSensorEvent(){this.thumbnailEntityPile?this.clientSensor.incrementMetricCounter({groupName:c.GROUP_NAME_PROFILE,metricName:"entity-pile-component-served"}):this.clientSensor.incrementMetricCounter({groupName:c.GROUP_NAME_PROFILE,metricName:"entity-pile-component-dropped"})}},w=(0,i.default)(E.prototype,"clientSensor",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,i.default)(E.prototype,"numberEntitiesToShow",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(0,m.get)(this.thumbnailEntityPile,"thumbnails.length")}}),(0,i.default)(E.prototype,"onResizeEntityPile",[m.action],Object.getOwnPropertyDescriptor(E.prototype,"onResizeEntityPile"),E.prototype),E))}))
|
|
define("profile-tetris-shared/components/profile-component/entity",["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-tetris-shared/utils/profile-tracking-helpers","profile-tetris-shared/utils/constant/action-types","profile-tetris-shared/utils/constant/render-actions","@glimmer/tracking","profile-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/helpers/check-type","@ember/service","@ember/object","@glimmer/component","global-helpers/helpers/and","global-helpers/helpers/neq","global-helpers/helpers/eq","global-helpers/helpers/or","global-helpers/helpers/not","ember-cli-pemberly-tracking/modifiers/track-impression","ember-cli-pemberly-tracking/modifiers/track-view","profile-tetris-shared/components/helper-component/optional-action-target-wrapper","@ember/modifier","image-view-model/components/image-view-model","profile-tetris-shared/components/profile-component/text","label-view-model/components/label-view-model","text-view-model/components/text-view-model-v2","profile-tetris-shared/components/profile-component/action","profile-tetris-shared/components/profile-component/fixed-list","@ember/helper","global-helpers/helpers/get-class-hash"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E,w,P,S,O,k,A,I,M,D){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var N,R,x,U,L,j,F
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"/4wa+7XI",block:'[[[1,"\\n"],[41,[28,[32,0],[[30,1,["pathStyle"]],[28,[32,1],[[30,1,["pathStyle"]],"NONE"],null]],null],[[[1," "],[10,1],[14,0,"pvs-entity__path-node"],[12],[13],[1,"\\n"]],[]],null],[1," "],[11,0],[16,0,[29,[[52,[28,[32,2],[[30,1,["size"]],"MEDIUM"],null],"pvs-entity--nested",[28,[32,3],["pvs-entity"],null]],"\\n ",[52,[30,1,["padded"]],[28,[32,3],["pvs-entity--padded pvs-list__item--no-padding-in-columns"],null]],"\\n ",[52,[28,[32,4],[[28,[32,2],[[30,1,["pathStyle"]],"TOP"],null],[28,[32,2],[[30,1,["pathStyle"]],"MIDDLE"],null]],null],[28,[32,3],["pvs-entity--with-path"],null]],"\\n ",[52,[30,1,["blurredAccessibilityText"]],[28,[32,3],["pvs-entity--blurred"],null]],"\\n "]]],[16,"aria-label",[30,1,["blurredAccessibilityText"]]],[24,"data-view-name","profile-component-entity"],[4,[32,5],null,[["registerOnImpression","routeName","currentRoute"],[[30,0,["getImpressionEvents"]],[28,[32,6],[[53,"outletState"],"render.name"],null],[28,[32,6],[[53,"outletState"],"render"],null]]]],[4,[32,7],null,[["viewName","view","genericTrackingLixKey","routeName","currentRoute"],["profile-component-entity",[30,0],"voyager.web.tracking3-batch-6",[28,[32,6],[[53,"outletState"],"render.name"],null],[28,[32,6],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n"],[1," "],[10,0],[15,"aria-hidden",[52,[30,1,["blurredAccessibilityText"]],"true"]],[12],[1,"\\n"],[1," "],[8,[32,8],[[16,0,[29,[[52,[30,0,["shouldDisableEntity"]],"pvs-pending-component"],"\\n display-flex"]]],[16,"tabindex",[52,[51,[30,1,["image","accessibilityText"]]],-1]],[16,"aria-hidden",[52,[51,[30,1,["image","accessibilityText"]]],"true"]],[4,[32,9],["click",[30,0,["fireActionTrackingByTrackingMetadata"]]],null]],[["@actionTarget","@controlName"],[[52,[51,[30,0,["shouldDisableEntity"]]],[30,1,["image","actionTarget"]]],[30,1,["controlName"]]]],[["default"],[[[[1,"\\n"],[41,[30,1,["image"]],[[[1," "],[8,[32,10],null,[["@images","@entitySize","@imgWidth","@imgHeight","@class"],[[30,1,["image"]],[30,0,["imageEntitySize"]],[30,0,["imageDimensions","width"]],[30,0,["imageDimensions","height"]],"pvs-entity__image"]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n"],[1," "],[10,0],[14,0,"display-flex flex-column full-width align-self-center"],[15,"aria-hidden",[52,[30,1,["blurredAccessibilityText"]],"true"]],[12],[1,"\\n"],[1," "],[10,0],[14,0,"display-flex flex-row justify-space-between"],[12],[1,"\\n "],[8,[32,8],[[16,0,[29,[[52,[30,0,["shouldDisableEntity"]],"pvs-pending-component"],"\\n display-flex flex-column full-width"]]],[4,[32,9],["click",[30,0,["fireActionTrackingByTrackingMetadata"]]],null]],[["@actionTarget","@controlName"],[[52,[51,[30,0,["shouldDisableEntity"]]],[30,1,["textActionTarget"]]],[30,1,["controlName"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"display-flex flex-wrap align-items-center full-height"],[12],[1,"\\n"],[41,[30,1,["titleV2"]],[[[1," "],[8,[32,11],null,[["@textClass","@tetrisComponentModel"],[[30,0,["titleEntityStyleClass"]],[30,1,["titleV2"]]]],null],[1,"\\n"]],[]],null],[41,[30,1,["labelV2"]],[[[1," "],[8,[32,12],[[24,0,"mr1"]],[["@lvm"],[[30,1,["labelV2"]]]],null],[1,"\\n"]],[]],null],[41,[30,1,["badge"]],[[[1," "],[8,[32,10],null,[["@images","@entitySize","@class"],[[30,1,["badge"]],"1","mr1"]],null],[1,"\\n"]],[]],null],[41,[30,1,["supplementaryInfo"]],[[[1," "],[10,1],[14,0,"pvs-entity__supplementary-info t-14 t-black--light t-normal mr1"],[12],[1,"\\n "],[8,[32,13],null,[["@tvm"],[[30,1,["supplementaryInfo"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["hasSubtitle"]],[[[41,[30,1,["subtitleV2"]],[[[1," "],[8,[32,11],null,[["@textClass","@tetrisComponentModel"],["t-14 t-normal",[30,1,["subtitleV2"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"t-14 t-normal"],[12],[1,"\\n "],[8,[32,13],null,[["@tvm"],[[30,1,["subtitle"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],null],[41,[30,1,["caption"]],[[[1," "],[10,1],[14,0,"t-14 t-normal t-black--light"],[12],[1,"\\n "],[8,[32,13],null,[["@tvm","@customWrapperClasses"],[[30,1,["caption"]],[28,[32,14],null,[["VISUAL_ONLY_TEXT"],["pvs-entity__caption-wrapper"]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["metadata"]],[[[1," "],[10,1],[14,0,"t-14 t-normal t-black--light"],[12],[1,"\\n "],[8,[32,13],null,[["@tvm"],[[30,1,["metadata"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n\\n"],[41,[30,1,["secondaryAction"]],[[[1," "],[10,0],[15,0,[29,[[52,[30,0,["isActionVerticallyCenterAlignment"]],"pvs-entity__secondary-action-with-vertical-alignment"]]]],[12],[1,"\\n "],[8,[32,15],null,[["@actionComponent","@handleAction","@shouldDisable"],[[30,1,["secondaryAction"]],[30,0,["handleAction"]],[30,0,["shouldDisableEntity"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[15,0,[29,[[52,[30,0,["isActionVerticallyCenterAlignment"]],"pvs-entity__tertiary-action-with-vertical-alignment","pvs-entity__action-container"]]]],[12],[1,"\\n"],[41,[30,1,["tertiaryAction"]],[[[1," "],[8,[32,15],null,[["@actionComponent","@actionContext","@handleAction","@shouldDisable"],[[30,1,["tertiaryAction"]],[30,1],[30,0,["handleAction"]],[30,0,["shouldDisableEntity"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[28,[32,0],[[30,1,["subComponents"]],[28,[32,16],[[30,0,["isCollapsed"]]],null]],null],[[[1," "],[8,[32,17],[[24,0,"pvs-entity__sub-components"]],[["@tetrisComponentModel","@shouldDisable","@handleAction"],[[30,1,["subComponents"]],[30,0,["shouldDisableEntity"]],[30,0,["handleAction"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["@tetrisComponentModel"],false,["if","-get-dynamic-var","unless"]]',moduleName:"profile-tetris-shared/components/profile-component/entity.gjs",scope:()=>[g.default,b.default,y.default,D.default,_.default,T.default,M.get,C.default,E.default,w.on,P.default,S.default,O.default,k.default,M.hash,A.default,v.default,I.default],isStrictMode:!0}),(N=(0,m.inject)("client-sensor-web@client-sensor"),R=(0,m.inject)("tracking"),x=class extends h.default{get shouldDisableEntity(){return this.args.disabled||this.isDisabled}get hasSubtitle(){return this.args.tetrisComponentModel.subtitleV2||this.args.tetrisComponentModel.subtitle}get isActionVerticallyCenterAlignment(){return"ACTION_VERTICALLY_CENTER_ALIGNED"===this.args.tetrisComponentModel.alignment}constructor(){super(...arguments);(0,t.default)(this,"clientSensor",U,this);(0,t.default)(this,"tracking",L,this);(0,t.default)(this,"isDisabled",j,this);(0,t.default)(this,"isCollapsed",F,this)
|
|
this._validateAndFireClientSensorEvent()}handleAction(e){var t,n
|
|
let{type:i,options:r}=e
|
|
i===s.SHOW_DISABLED_STATE?this.isDisabled=!0:i===s.DISMISS_DISABLED_STATE?this.isDisabled=!1:i===c.RENDER_ACTIONS.COLLAPSE_EXPAND&&(this.isCollapsed=r.collapsed)
|
|
null===(t=(n=this.args).handleAction)||void 0===t||t.call(n,...arguments)}fireActionTrackingByTrackingMetadata(){const e=this.args.tetrisComponentModel.actionTrackingMetadata
|
|
e&&(0,a.fireCustomActionTrackingEvent)(this.tracking,null,null,e)}getImpressionEvents(){const e=this.args.tetrisComponentModel.impressionTrackingMetadata
|
|
return()=>e&&0!==(null==e?void 0:e.length)?(0,a.getTetrisComponentImpressionEvents)(e):[]}_validateAndFireClientSensorEvent(){const{iconEntityType:e,padded:t}=this.args.tetrisComponentModel
|
|
this.args.tetrisComponentModel.titleV2&&(0,u.isBoolean)(e)&&(0,u.isBoolean)(t)?this.clientSensor.incrementMetricCounter({groupName:d.GROUP_NAME_PROFILE,metricName:"entity-component-served"}):this.clientSensor.incrementMetricCounter({groupName:d.GROUP_NAME_PROFILE,metricName:"entity-component-dropped"})}get imageEntitySize(){const{iconEntityType:e,size:t}=this.args.tetrisComponentModel
|
|
return e?0:"LANDSCAPE"!==t?3:void 0}get imageDimensions(){const{size:e}=this.args.tetrisComponentModel
|
|
return"LANDSCAPE"===e?{width:48,height:27}:{}}get titleEntityStyleClass(){const{textActionTarget:e,size:t}=this.args.tetrisComponentModel,n=["mr1"]
|
|
e&&n.push("hoverable-link-text")
|
|
"MEDIUM"===t?n.push("t-14"):n.push("t-bold")
|
|
return n.join(" ")}get contentTrackingId(){const e=this.args.tetrisComponentModel.impressionTrackingMetadata
|
|
if(e&&0!==(null==e?void 0:e.length))return e.map((e=>{var t
|
|
return null==e||null===(t=e.premiumPaywallImpressionTrackingMetadata)||void 0===t?void 0:t.paywallReferenceId})).find((e=>!!e))}},U=(0,i.default)(x.prototype,"clientSensor",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,i.default)(x.prototype,"tracking",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,i.default)(x.prototype,"isDisabled",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),F=(0,i.default)(x.prototype,"isCollapsed",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(x.prototype,"handleAction",[f.action],Object.getOwnPropertyDescriptor(x.prototype,"handleAction"),x.prototype),(0,i.default)(x.prototype,"fireActionTrackingByTrackingMetadata",[f.action],Object.getOwnPropertyDescriptor(x.prototype,"fireActionTrackingByTrackingMetadata"),x.prototype),(0,i.default)(x.prototype,"getImpressionEvents",[f.action],Object.getOwnPropertyDescriptor(x.prototype,"getImpressionEvents"),x.prototype),x))}))
|
|
define("profile-tetris-shared/components/profile-component/fixed-list",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","profile-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/utils/list-styles","profile-tetris-shared/utils/constant/render-actions","@glimmer/tracking","@ember/service","@ember/array","@ember/object","@glimmer/component","text-view-model/components/text-view-model-v2","profile-tetris-shared/components/profile-component-builder","profile-tetris-shared/components/profile-component/action","global-helpers/helpers/get-class-hash"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var _,v,T,C,E,w
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"qoq8gK7Z",block:'[[[1,"\\n "],[11,0],[24,0,"pvs-list__outer-container"],[17,1],[12],[1,"\\n"],[41,[30,2,["title"]],[[[1," "],[10,0],[15,0,[29,["text-heading-small pvs-list__title mb3 pt3\\n ",[52,[30,2,["padded"]],"pvs-list__title--padded"]]]],[12],[1,"\\n "],[8,[32,0],null,[["@tvm"],[[30,2,["title"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["componentsList"]],[[[1," "],[10,"ul"],[15,0,[29,["pvs-list\\n ",[52,[30,0,["shouldListHandlePadding"]],"ph5 display-flex flex-row flex-wrap"],"\\n ",[30,0,["listStyleClass"]],"\\n ",[52,[30,2,["title"]],"pvs-list--no-top-padding"]]]],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["componentsList"]]],null]],null],null,[[[1," "],[10,"li"],[15,0,[28,[32,1],[[30,0,["listItemStyleClass"]]],null]],[12],[1,"\\n "],[8,[32,2],null,[["@component","@shouldDisable","@handleAction"],[[30,3],[30,4],[30,0,["handleAction"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n"]],[]],null],[41,[30,2,["footerAction"]],[[[1," "],[10,0],[15,0,[29,["pvs-list__footer-wrapper\\n ",[52,[30,0,["isFixedListBtnAlignmentUpdateEnabled"]],"pvs-list__footer-wrapper-alignment"]]]],[12],[1,"\\n "],[8,[32,3],null,[["@actionComponent","@handleAction","@shouldDisable"],[[30,2,["footerAction"]],[30,0,["handleAction"]],[30,4]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["&attrs","@tetrisComponentModel","component","@shouldDisable"],false,["if","each","-track-array"]]',moduleName:"profile-tetris-shared/components/profile-component/fixed-list.gjs",scope:()=>[h.default,y.default,g.default,b.default],isStrictMode:!0}),(_=(0,d.inject)("client-sensor-web@client-sensor"),v=(0,d.inject)("lix"),T=class extends f.default{constructor(){super(...arguments);(0,t.default)(this,"clientSensor",C,this);(0,t.default)(this,"lix",E,this);(0,t.default)(this,"isSeeMoreAction",w,this)
|
|
this._validateAndFireClientSensorEvent()}get isFixedListBtnAlignmentUpdateEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.profile-fixed-list-btn-alignment-update")}get listStyleClass(){return(0,s.getListStyle)({decorationType:(0,m.get)(this.args.tetrisComponentModel,"decorationType"),padded:(0,m.get)(this.args.tetrisComponentModel,"padded")})}get listItemStyleClass(){return(0,s.getListItemStyle)({decorationType:(0,m.get)(this.args.tetrisComponentModel,"decorationType"),columnConfiguration:(0,m.get)(this.args.tetrisComponentModel,"columnConfiguration")||"ONE_COLUMN"})}get componentsList(){const{components:e=[],numInitialComponentsToShow:t}=(0,m.getProperties)(this.args.tetrisComponentModel,"components","numInitialComponentsToShow")
|
|
return t&&this.isSeeMoreAction?e.slice(0,t):e}get shouldListHandlePadding(){const e=(0,m.get)(this.args.tetrisComponentModel,"columnConfiguration")
|
|
return e&&"ONE_COLUMN"!==e}handleAction(e){if(!e)return
|
|
const{actionDelegateUrn:t}=e
|
|
if(t&&t===(0,m.get)(this.args.tetrisComponentModel,"actionDelegateUrn"))e.type===c.RENDER_ACTIONS.SEE_MORE_OR_LESS&&(this.isSeeMoreAction=e.options.isSeeMoreAction)
|
|
else{var n,i
|
|
null===(n=(i=this.args).handleAction)||void 0===n||n.call(i,e)}}_validateAndFireClientSensorEvent(){const e=(0,m.get)(this.args.tetrisComponentModel,"components")
|
|
e&&e.length&&(0,u.isArray)(e)?this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"fixed-list-component-served"}):this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"fixed-list-component-dropped"})}},C=(0,i.default)(T.prototype,"clientSensor",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,i.default)(T.prototype,"lix",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,i.default)(T.prototype,"isSeeMoreAction",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),(0,i.default)(T.prototype,"handleAction",[m.action],Object.getOwnPropertyDescriptor(T.prototype,"handleAction"),T.prototype),T))}))
|
|
define("profile-tetris-shared/components/profile-component/form-element",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","tracked-toolbox","form-builder-v2/utils/dash-form-utils-v2","profile-shared/utils/tetris-api-helpers","@ember/object","@ember/service","@glimmer/component","form-builder-v2/components/dash-form-element"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var f,h,g,b,y
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"gNaBsjL+",block:'[[[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[32,0],null,[["@viewModel","@onInputChange"],[[30,0,["formElementViewModel"]],[30,0,["onInputChange"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[],false,[]]',moduleName:"profile-tetris-shared/components/profile-component/form-element.gjs",scope:()=>[m.default],isStrictMode:!0}),(f=(0,d.inject)("@linkedin/ember-restli-graphql@graphql"),h=(0,d.inject)("form-builder-v2@dependency-handler"),g=class extends u.default{constructor(){super(...arguments);(0,t.default)(this,"graphql",b,this);(0,t.default)(this,"dependencyHandler",y,this)}get formElementViewModel(){return new s.FormElementViewModel(this.args.tetrisComponentModel,this.dependencyHandler)}onInputChange(){var e,t
|
|
null===(e=this.args)||void 0===e||null===(t=e.handleAction)||void 0===t||t.call(e)
|
|
const n=this.formElementViewModel.updatedFormElementInput
|
|
return(0,c.saveProfileComponentUpdateGraphQL)(this.graphql,{formElementInputs:[n]})}},b=(0,i.default)(g.prototype,"graphql",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,i.default)(g.prototype,"dependencyHandler",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(g.prototype,"formElementViewModel",[a.cached],Object.getOwnPropertyDescriptor(g.prototype,"formElementViewModel"),g.prototype),(0,i.default)(g.prototype,"onInputChange",[p.action],Object.getOwnPropertyDescriptor(g.prototype,"onInputChange"),g.prototype),g))}))
|
|
define("profile-tetris-shared/components/profile-component/header",["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-tetris-shared/utils/constant/monitoring-constants","@ember/service","@glimmer/component","profile-tetris-shared/components/profile-component/inline-callout","text-view-model/components/text-view-model-v2","profile-tetris-shared/components/profile-component/action","global-helpers/helpers/get-class-hash"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var f,h,g
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"d0mVIsXJ",block:'[[[1,"\\n"],[41,[30,1,["inlineCallout"]],[[[1," "],[10,0],[14,0,"pvs-header__inline-callout"],[12],[1,"\\n "],[8,[32,0],null,[["@tetrisComponentModel"],[[30,1,["inlineCallout"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[15,0,[28,[32,1],["pvs-header__container"],null]],[12],[1,"\\n "],[10,0],[14,0,"pvs-header__top-container--no-stack"],[12],[1,"\\n "],[10,0],[14,0,"pvs-header__left-container--stack"],[12],[1,"\\n "],[10,0],[14,0,"pvs-header__title-container"],[12],[1,"\\n"],[41,[30,1,["title"]],[[[1," "],[10,"h2"],[15,0,[29,["pvs-header__title\\n ",[52,[30,0,["textClassOverrides","title"]],[30,0,["textClassOverrides","title"]],"text-heading-large"]]]],[12],[1,"\\n "],[8,[32,2],null,[["@tvm"],[[30,1,["title"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["subtitle"]],[[[1," "],[10,2],[15,0,[28,[32,1],["pvs-header__subtitle pvs-header__optional-link text-body-small"],null]],[12],[1,"\\n "],[8,[32,2],null,[["@tvm"],[[30,1,["subtitle"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["metadata"]],[[[1," "],[10,2],[14,0,"pvs-header__metadata text-body-small"],[12],[1,"\\n "],[8,[32,2],null,[["@tvm"],[[30,1,["metadata"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,1,["primaryAction"]],[[[1," "],[10,0],[14,0,"pvs-header__primary-cta--with-button-spacing"],[12],[1,"\\n "],[8,[32,3],null,[["@actionComponent","@handleAction"],[[30,1,["primaryAction"]],[30,2]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["hasAdditionalActions"]],[[[1," "],[10,0],[14,0,"pvs-header__right-container"],[12],[1,"\\n"],[41,[30,1,["secondaryAction"]],[[[1," "],[8,[32,3],null,[["@actionComponent","@handleAction","@headerAction","@isProfileCardUpdated"],[[30,1,["secondaryAction"]],[30,2],true,[30,3]]],null],[1,"\\n"]],[]],null],[41,[30,1,["tertiaryAction"]],[[[1," "],[8,[32,3],null,[["@actionComponent","@handleAction","@headerAction","@isProfileCardUpdated"],[[30,1,["tertiaryAction"]],[30,2],true,[30,3]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["@tetrisComponentModel","@handleAction","@isProfileCardUpdated"],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/header.gts",scope:()=>[p.default,m.default,d.default,u.default],isStrictMode:!0}),(f=(0,s.inject)("client-sensor-web@client-sensor"),h=class extends c.default{get textClassOverrides(){var e
|
|
return"DEEMPHASIZED"===(null===(e=this.args.tetrisComponentModel)||void 0===e?void 0:e.textStyle)?{title:"text-heading-medium"}:{}}get hasAdditionalActions(){var e,t
|
|
return!!(null!==(e=this.args.tetrisComponentModel)&&void 0!==e&&e.secondaryAction||null!==(t=this.args.tetrisComponentModel)&&void 0!==t&&t.tertiaryAction)}constructor(e,n){super(e,n);(0,t.default)(this,"clientSensor",g,this)
|
|
this._validateAndFireClientSensorEvent()}_validateAndFireClientSensorEvent(){var e
|
|
null!==(e=this.args.tetrisComponentModel)&&void 0!==e&&e.title?this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"header-component-served"}):this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"header-component-dropped"})}},g=(0,i.default)(h.prototype,"clientSensor",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h))}))
|
|
define("profile-tetris-shared/components/profile-component/inline-callout",["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-cli-pemberly-i18n/helpers/t","profile-tetris-shared/utils/constant/render-actions","image-view-model/utils/system-image","tracked-toolbox","@glimmer/tracking","@glimmer/component","@ember/service","@ember/object","ember-cli-pemberly-tracking/modifiers/track-render","hue-web-icons/components/icon","text-view-model/components/text-view-model-v2","profile-tetris-shared/components/profile-component/action","artdeco-button/components/artdeco-button","@ember/modifier"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var C,E,w,P
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"CbvdpW8/",block:'[[[1,"\\n"],[41,[30,0,["isVisible"]],[[[1," "],[11,0],[24,0,"pv-tetris-inline-callout-wrapper"],[17,1],[12],[1,"\\n "],[11,0],[24,0,"pv-tetris-inline-callout"],[4,[32,0],null,[["onRender","routeName","currentRoute"],[[30,0,["onImpression"]],[28,[32,1],[[53,"outletState"],"render.name"],null],[28,[32,1],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n "],[10,0],[14,0,"display-flex justify-space-between"],[12],[1,"\\n "],[10,0],[15,0,[29,["mh3 mt3 display-flex flex-row\\n ",[52,[30,2,["primaryAction"]],"mb1","mb3"]]]],[12],[1,"\\n"],[41,[30,0,["icon"]],[[[1," "],[10,0],[14,0,"display-flex align-items-center pr3"],[12],[1,"\\n"],[41,[30,0,["iconData"]],[[[1," "],[8,[32,2],null,[["@type","@name","@size"],[[30,0,["iconData","type"]],[30,0,["iconData","name"]],[30,0,["iconData","size"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,"figure"],[15,0,[30,0,["iconClasses"]]],[14,"aria-hidden","true"],[12],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[12],[1,"\\n "],[10,2],[14,0,"text-body-small"],[12],[1,"\\n "],[8,[32,3],null,[["@tvm"],[[30,0,["statement"]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,2,["primaryAction"]],[[[1," "],[10,0],[14,0,"mv1"],[12],[1,"\\n "],[8,[32,4],null,[["@actionComponent","@handleAction"],[[30,2,["primaryAction"]],[30,0,["onPrimaryActionClick"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,5],[[24,0,"pv-tetris-inline-callout__dismiss"],[16,"aria-label",[28,[32,6],["dismiss_button","profile-tetris-shared/components/profile-component/inline-callout"],null]],[4,[32,7],["click",[30,0,["onDismiss"]]],null]],[["@circle","@color","@controlType","@icon","@size","@type"],[true,"muted","button","close",1,"tertiary"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],["&attrs","@tetrisComponentModel"],false,["if","-get-dynamic-var"]]',moduleName:"profile-tetris-shared/components/profile-component/inline-callout.gts",scope:()=>[g.default,l.get,b.default,y.default,_.default,v.default,s.default,T.on],isStrictMode:!0}),(C=(0,f.inject)("lego@tracking"),E=class extends m.default{constructor(){super(...arguments);(0,t.default)(this,"legoTracking",w,this);(0,t.default)(this,"_isVisible",P,this)}get icon(){var e
|
|
return null===(e=this.args.tetrisComponentModel)||void 0===e?void 0:e.icon}get isSysIcon(){return(0,p.isSystemImageIcon)(this.icon)}get iconClasses(){return(0,p.getSystemImageClasses)(this.icon).join(" ")}get iconData(){return this.isSysIcon?(0,p.getSystemImageHueIcon)(this.icon):void 0}get isVisible(){return this._isVisible&&!!this.statement}get legoTrackingId(){var e
|
|
return null===(e=this.args.tetrisComponentModel)||void 0===e?void 0:e.legoTrackingId}get statement(){var e
|
|
return null===(e=this.args.tetrisComponentModel)||void 0===e?void 0:e.statement}onPrimaryActionClick(e){let{type:t}=e
|
|
t!==c.RENDER_ACTIONS.UNFEATURE&&(this._isVisible=!1)
|
|
this.legoTrackingId&&this.legoTracking.sendLegoAction(this.legoTrackingId,this.legoTracking.LEGO_ACTION_PRIMARY,1)}onDismiss(){this._isVisible=!1
|
|
this.legoTrackingId&&this.legoTracking.sendLegoAction(this.legoTrackingId,this.legoTracking.LEGO_ACTION_DISMISS,1)}onImpression(){this.legoTrackingId&&this.legoTracking.sendLegoImpression(this.legoTrackingId,this.legoTracking.LEGO_IMPRESSION_VISIBILITY_SHOW)
|
|
return[]}},w=(0,i.default)(E.prototype,"legoTracking",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,i.default)(E.prototype,"_isVisible",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),(0,i.default)(E.prototype,"legoTrackingId",[d.cached],Object.getOwnPropertyDescriptor(E.prototype,"legoTrackingId"),E.prototype),(0,i.default)(E.prototype,"onPrimaryActionClick",[h.action],Object.getOwnPropertyDescriptor(E.prototype,"onPrimaryActionClick"),E.prototype),(0,i.default)(E.prototype,"onDismiss",[h.action],Object.getOwnPropertyDescriptor(E.prototype,"onDismiss"),E.prototype),(0,i.default)(E.prototype,"onImpression",[h.action],Object.getOwnPropertyDescriptor(E.prototype,"onImpression"),E.prototype),E))}))
|
|
define("profile-tetris-shared/components/profile-component/insight",["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-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/helpers/check-type","@ember/service","@glimmer/component","profile-tetris-shared/components/helper-component/optional-action-target-wrapper","image-view-model/components/entity-pile","profile-tetris-shared/components/profile-component/text","profile-tetris-shared/components/profile-component/action"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var h,g,b
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"viZOr91h",block:'[[[1,"\\n "],[10,0],[15,0,[29,[[52,[30,1,["renderedAsFooter"]],[52,[30,1,["secondaryAction"]],"pvs-insight--as-footer pvs-insight--as-footer-with-secondary-action","pvs-insight--as-footer pvs-insight--as-footer-with-no-secondary-action"]],"\\n ",[52,[51,[30,1,["renderedAsFooter"]]],"mv1"],"\\n display-flex align-items-center"]]],[12],[1,"\\n "],[8,[32,0],[[24,0,"display-flex link-without-hover-visited"]],[["@actionTarget","@controlName"],[[30,0,["actionTarget"]],[30,0,["controlName"]]]],[["default"],[[[[1,"\\n"],[41,[30,1,["image"]],[[[1," "],[10,0],[15,0,[29,[[52,[30,1,["smallIcon"]],"mr1","mr2"],"\\n mv1\\n ",[52,[30,1,["blurImage"]],"pvs-insight__image--blurred"],"\\n "]]],[12],[1,"\\n "],[8,[32,1],[[16,"aria-hidden",[52,[30,1,["blurImage"]],"true"]],[24,0,"t-black"]],[["@entitySize","@isStackedLayout","@image","@maxEntities"],[0,true,[30,1,["image"]],4]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["text"]],[[[1," "],[8,[32,2],[[16,0,[52,[30,1,["actionTarget"]],"hoverable-link-text"]]],[["@tetrisComponentModel","@textClass"],[[30,1,["text"]],[52,[30,1,["renderedAsFooter"]],"t-12 t-normal t-black"]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"],[41,[30,1,["secondaryAction"]],[[[1," "],[10,0],[14,0,"pvs-insight__secondary-action"],[12],[1,"\\n "],[8,[32,3],null,[["@actionComponent"],[[30,1,["secondaryAction"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@tetrisComponentModel"],false,["if","unless"]]',moduleName:"profile-tetris-shared/components/profile-component/insight.gts",scope:()=>[d.default,u.default,m.default,f.default],isStrictMode:!0}),(h=(0,c.inject)("client-sensor-web@client-sensor"),g=class extends p.default{get actionTarget(){var e
|
|
return(null===(e=this.args.tetrisComponentModel)||void 0===e?void 0:e.actionTarget)??void 0}get controlName(){var e
|
|
if(null!==(e=this.args.tetrisComponentModel)&&void 0!==e&&e.controlName)return this.args.tetrisComponentModel.controlName}constructor(e,n){super(e,n);(0,t.default)(this,"clientSensor",b,this)
|
|
this._assertProps()}_assertProps(){var e,t
|
|
null!==(e=this.args.tetrisComponentModel)&&void 0!==e&&e.text&&(0,s.isBoolean)(null===(t=this.args.tetrisComponentModel)||void 0===t?void 0:t.smallIcon)?this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"insight-component-served"}):this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"insight-component-dropped"})}},b=(0,i.default)(g.prototype,"clientSensor",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g))}))
|
|
define("profile-tetris-shared/components/profile-component/media",["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-tetris-shared/utils/constant/monitoring-constants","@ember/service","@glimmer/component","profile-tetris-shared/components/helper-component/optional-action-target-wrapper","profile-tetris-shared/components/helper-component/thumbnail","inline-show-more-text/components/inline-show-more-text","profile-tetris-shared/components/profile-component/text"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var f,h,g
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"SrA1NJvI",block:'[[[1,"\\n "],[8,[32,0],null,[["@actionTarget","@controlName"],[[30,1,["actionTarget"]],[30,0,["controlName"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"display-flex flex-row"],[12],[1,"\\n"],[41,[30,0,["thumbnail"]],[[[1," "],[10,0],[12],[1,"\\n "],[8,[32,1],null,[["@thumbnail"],[[30,0,["thumbnail"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"flex-column ml1 align-self-center"],[12],[1,"\\n"],[41,[30,0,["title"]],[[[1," "],[8,[32,2],[[24,0,"t-14 t-bold break-words"]],[["@lines","@showMoreButton","@showLessButton","@tvm"],[2,false,false,[30,0,["title"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["description"]],[[[1," "],[8,[32,3],null,[["@tetrisComponentModel"],[[30,1,["description"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@tetrisComponentModel"],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/media.gts",scope:()=>[p.default,d.default,u.default,m.default],isStrictMode:!0}),(f=(0,s.inject)("client-sensor-web@client-sensor"),h=class extends c.default{get thumbnail(){var e
|
|
return null===(e=this.args.tetrisComponentModel)||void 0===e?void 0:e.thumbnail}get title(){var e
|
|
return null===(e=this.args.tetrisComponentModel)||void 0===e?void 0:e.title}get controlName(){var e
|
|
return null===(e=this.args.tetrisComponentModel)||void 0===e?void 0:e.controlName}constructor(e,n){super(e,n);(0,t.default)(this,"clientSensor",g,this)
|
|
this._validateAndFireClientSensorEvent()}_validateAndFireClientSensorEvent(){var e
|
|
const t=null===(e=this.args.tetrisComponentModel)||void 0===e?void 0:e.actionTarget
|
|
this.title&&this.thumbnail&&t?this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"media-component-served"}):this.clientSensor.incrementMetricCounter({groupName:a.GROUP_NAME_PROFILE,metricName:"media-component-dropped"})}},g=(0,i.default)(h.prototype,"clientSensor",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h))}))
|
|
define("profile-tetris-shared/components/profile-component/mini-update",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","@ember/service","@ember/object","@glimmer/component","feed-shared/components/mini-update"],(function(e,t,n,i,r,o,l,a,s,c,p){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var d,u,m
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"w8UjVYG5",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"pvs-mini-update pvs-list__item--no-padding-in-columns"]],[["@hideActor","@miniUpdate"],[true,[30,1]]],null],[1,"\\n "]],["@tetrisComponentModel"],false,[]]',moduleName:"profile-tetris-shared/components/profile-component/mini-update.gjs",scope:()=>[p.default],isStrictMode:!0}),(d=(0,a.inject)("social-counts-service@social-counts"),u=class extends c.default{constructor(){super(...arguments);(0,t.default)(this,"socialCountsService",m,this)
|
|
const e=(0,s.get)(this.args.tetrisComponentModel,"socialActivityCounts")
|
|
e&&!this.socialCountsService.checkSocialCountsManagerExists(e)&&this.socialCountsService.registerSocialActivityCounts(e)}},m=(0,i.default)(u.prototype,"socialCountsService",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u))}))
|
|
define("profile-tetris-shared/components/profile-component/paged-list-v2",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/helper","@ember/component","profile-tetris-shared/utils/profile-component-builder-helpers","profile-tetris-shared/helpers/urn-to-id-formatter","profile-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/helpers/check-type","profile-shared/utils/tetris-api-helpers","profile-tetris-shared/utils/list-styles","@ember/service","@glimmer/tracking","@ember/object","@glimmer/component","scaffold-finite-scroll/components/finite-scroll","global-helpers/helpers/not","profile-tetris-shared/components/helper-component/reorderable-list","profile-tetris-shared/modifiers/handle-updated-list-item-focus","profile-tetris-shared/helpers/id-with-index-formatter","profile-tetris-shared/components/profile-component-builder","artdeco-button/components/artdeco-button","@ember/modifier","tracked-toolbox"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E,w,P,S){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var O,k,A,I,M,D,N,R,x,U,L,j,F
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"/BRRaBEb",block:'[[[1,"\\n"],[1," "],[10,0],[14,0,"pvs-list__container"],[12],[1,"\\n"],[41,[30,0,["isInfiniteScroll"]],[[[1," "],[8,[32,0],null,[["@isDisabled","@items","@onTrigger"],[[28,[32,1],[[30,0,["hasMoreToLoad"]]],null],[30,0,["filteredComponentsArray"]],[30,0,["loadMore"]]]],[["content"],[[[[1,"\\n"],[41,[30,0,["isReorderable"]],[[[1," "],[8,[32,2],null,[["@groupName","@componentsArray","@listClass"],[[30,0,["pagedListComponentUrn"]],[30,2],[30,0,["listItemStyleClass"]]]],null],[1,"\\n"]],[]],[[[1," "],[11,"ul"],[16,0,[29,["pvs-list ",[30,0,["listStyleClass"]]]]],[24,"tabindex","-1"],[4,[32,3],[[30,0,["filteredComponentsArray"]]],null],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,2]],null]],null],null,[[[1," "],[10,"li"],[15,0,[30,0,["listItemStyleClass"]]],[15,1,[28,[32,4],[[30,0,["listItemPrefix"]],[30,4]],null]],[12],[1,"\\n "],[8,[30,1],null,[["@index"],[[30,4]]],[["default"],[[[[1,"\\n "],[8,[32,5],null,[["@component"],[[30,3]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[3,4]],null],[1," "],[13],[1,"\\n"]],[]]],[1," "]],[1,2]]]]],[1,"\\n"]],[]],[[[41,[30,0,["filteredComponentsArray"]],[[[1," "],[10,"ul"],[15,0,[29,["pvs-list ",[30,0,["listStyleClass"]]]]],[12],[1,"\\n"],[41,[30,0,["isReorderable"]],[[[1," "],[8,[32,2],null,[["@groupName","@componentsArray"],[[30,0,["pagedListComponentUrn"]],[30,0,["filteredComponentsArray"]]]],null],[1,"\\n"]],[]],[[[42,[28,[31,2],[[28,[31,2],[[30,0,["filteredComponentsArray"]]],null]],null],null,[[[1," "],[10,"li"],[15,0,[30,0,["listItemStyleClass"]]],[12],[1,"\\n "],[8,[32,5],null,[["@component"],[[30,5]]],null],[1,"\\n "],[13],[1,"\\n"]],[5]],null]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["hasMoreToLoad"]],[[[1," "],[8,[32,6],[[4,[32,7],["click",[30,0,["loadMore"]]],null]],[["@type","@color","@text"],["tertiary","muted","Temporary loadMore"]],null],[1,"\\n"]],[]],null]],[]]],[1," "],[13],[1,"\\n "]],["ItemContainer","items","item","index","component"],false,["if","each","-track-array"]]',moduleName:"profile-tetris-shared/components/profile-component/paged-list-v2.gjs",scope:()=>[y.default,_.default,v.default,T.default,C.default,E.default,w.default,P.on],isStrictMode:!0}),(O=(0,f.inject)("@linkedin/ember-restli-graphql@graphql"),k=(0,f.inject)("router"),A=(0,f.inject)("client-sensor-web@client-sensor"),I=(0,S.trackedReset)({memo:"args.tetrisComponentModel.components.elements",update(e,t,n){if(this.count>this.initialCount){this.backgroundRefetchAfterSave()
|
|
return n}return[...(0,g.get)(e.args.tetrisComponentModel,"components.elements")]}}),M=(0,S.localCopy)("args.tetrisComponentModel.components.metadata.paginationToken"),D=class extends b.default{get filteredComponentsArray(){return this._validatePagedComponent(this.localComponentsArray)}get total(){return(0,g.get)(this.args.tetrisComponentModel,"components.paging.total")}get start(){return(0,g.get)(this.args.tetrisComponentModel,"components.paging.start")||0}get listItemStyleClass(){return`${this.listItemSelectorClass} ${(0,m.getListItemStyle)({decorationType:(0,g.get)(this.args.tetrisComponentModel,"decorationType")})}`}get listStyleClass(){return(0,m.getListStyle)({decorationType:(0,g.get)(this.args.tetrisComponentModel,"decorationType"),padded:(0,g.get)(this.args.tetrisComponentModel,"padded")})}get isInfiniteScroll(){return!(0,g.get)(this.args.tetrisComponentModel,"footerAction")}get pageSize(){return(0,g.get)(this.args.tetrisComponentModel,"pageSize")}get listItemPrefix(){return(0,c.getValidIdStringFromUrn)([this.pagedListComponentUrn])}get pagedListComponentUrn(){return(0,g.get)(this.args.tetrisComponentModel,"entityUrn")}get hasMoreToLoad(){return!this.isEmptyResponseFromRecentPaginationRequest&&(this.total?this.total>this.count:this.paginationToken)}get isReorderable(){return(0,g.get)(this.args.tetrisComponentModel,"reorderable")}get requestedLocale(){return(0,g.get)(this.router,"currentRoute.queryParams.locale")}constructor(){var e,i,r
|
|
super(...arguments);(0,n.default)(this,"listItemSelectorClass","pvs-list__paged-list-item");(0,t.default)(this,"graphql",N,this);(0,t.default)(this,"router",R,this);(0,t.default)(this,"clientSensor",x,this);(0,n.default)(this,"initialCount",void 0);(0,t.default)(this,"localComponentsArray",U,this);(0,t.default)(this,"paginationToken",L,this);(0,t.default)(this,"count",j,this);(0,t.default)(this,"isEmptyResponseFromRecentPaginationRequest",F,this)
|
|
this.initialCount=(null===(e=this.args.tetrisComponentModel)||void 0===e||null===(i=e.components)||void 0===i||null===(r=i.paging)||void 0===r?void 0:r.count)??20
|
|
this.count=this.initialCount
|
|
this._validateAndFireClientSensorEvent()}_validatePagedComponent(e){return e.filter((e=>(0,g.get)(e,"components")&&(0,s.getComponentData)((0,g.get)(e,"components"))))}handlePagedData(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
|
|
if(this.isDestroying||this.isDestroyed)return
|
|
const n=(0,g.get)(e,"elements"),i=(0,g.get)(e,"paging")
|
|
if(n&&n.length>0){if(t)this.localComponentsArray=[...(0,g.get)(this.args.tetrisComponentModel,"components.elements"),...n]
|
|
else{this.localComponentsArray=[...this.localComponentsArray,...n]
|
|
this.count+=(0,g.get)(i,"count")}this.paginationToken=(0,g.get)(e,"metadata.paginationToken")}else this.isEmptyResponseFromRecentPaginationRequest=!0}backgroundRefetchAfterSave(){const e={start:20,count:this.count-this.initialCount,paginationToken:this.paginationToken}
|
|
return(0,u.fetchProfileComponentsByPagedListComponentUrnGraphQL)(this.graphql,this.pagedListComponentUrn,e,this.requestedLocale).then((e=>this.handlePagedData(e,!0)))}loadMore(){const e={start:this.count,count:this.pageSize,paginationToken:this.paginationToken}
|
|
return(0,u.fetchProfileComponentsByPagedListComponentUrnGraphQL)(this.graphql,this.pagedListComponentUrn,e,this.requestedLocale).then(this.handlePagedData.bind(this))}_validateAndFireClientSensorEvent(){const{entityUrn:e,reorderable:t,pageSize:n}=(0,g.getProperties)(this.args.tetrisComponentModel,"entityUrn","reorderable","pageSize")
|
|
e&&(0,d.isBoolean)(t)&&(0,d.isInteger)(n)?this.clientSensor.incrementMetricCounter({groupName:p.GROUP_NAME_PROFILE,metricName:"paged-list-component-served"}):this.clientSensor.incrementMetricCounter({groupName:p.GROUP_NAME_PROFILE,metricName:"paged-list-component-dropped"})}},N=(0,i.default)(D.prototype,"graphql",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,i.default)(D.prototype,"router",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,i.default)(D.prototype,"clientSensor",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,i.default)(D.prototype,"localComponentsArray",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,i.default)(D.prototype,"paginationToken",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,i.default)(D.prototype,"count",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,i.default)(D.prototype,"isEmptyResponseFromRecentPaginationRequest",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0===this.localComponentsArray.length}}),(0,i.default)(D.prototype,"filteredComponentsArray",[S.cached],Object.getOwnPropertyDescriptor(D.prototype,"filteredComponentsArray"),D.prototype),(0,i.default)(D.prototype,"loadMore",[g.action],Object.getOwnPropertyDescriptor(D.prototype,"loadMore"),D.prototype),D))}))
|
|
define("profile-tetris-shared/components/profile-component/paged-list",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/helper","@ember/component","profile-tetris-shared/utils/profile-component-builder-helpers","profile-tetris-shared/helpers/urn-to-id-formatter","profile-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/helpers/check-type","profile-shared/utils/tetris-api-helpers","profile-tetris-shared/utils/list-styles","@ember/service","@glimmer/tracking","@ember/object","@glimmer/component","scaffold-finite-scroll/components/finite-scroll","global-helpers/helpers/not","profile-tetris-shared/components/helper-component/reorderable-list","profile-tetris-shared/modifiers/handle-updated-list-item-focus","profile-tetris-shared/helpers/id-with-index-formatter","profile-tetris-shared/components/profile-component-builder","artdeco-button/components/artdeco-button","@ember/modifier"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E,w,P){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var S,O,k,A,I,M,D,N,R
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"vDjBA0wy",block:'[[[1,"\\n"],[1," "],[10,0],[14,0,"pvs-list__container"],[12],[1,"\\n"],[41,[30,0,["isInfiniteScroll"]],[[[1," "],[8,[32,0],null,[["@isDisabled","@items","@onTrigger"],[[28,[32,1],[[30,0,["hasMoreToLoad"]]],null],[30,0,["filteredComponentsArray"]],[30,0,["loadMore"]]]],[["content"],[[[[1,"\\n"],[41,[30,0,["isReorderable"]],[[[1," "],[8,[32,2],null,[["@groupName","@componentsArray","@listClass"],[[30,0,["pagedListComponentUrn"]],[30,2],[30,0,["listItemStyleClass"]]]],null],[1,"\\n"]],[]],[[[1," "],[11,"ul"],[16,0,[29,["pvs-list ",[30,0,["listStyleClass"]]]]],[24,"tabindex","-1"],[4,[32,3],[[30,0,["filteredComponentsArray"]]],null],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,2]],null]],null],null,[[[1," "],[10,"li"],[15,0,[30,0,["listItemStyleClass"]]],[15,1,[28,[32,4],[[30,0,["listItemPrefix"]],[30,4]],null]],[12],[1,"\\n "],[8,[30,1],null,[["@index"],[[30,4]]],[["default"],[[[[1,"\\n "],[8,[32,5],null,[["@component"],[[30,3]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[3,4]],null],[1," "],[13],[1,"\\n"]],[]]],[1," "]],[1,2]]]]],[1,"\\n"]],[]],[[[41,[30,0,["filteredComponentsArray"]],[[[1," "],[10,"ul"],[15,0,[29,["pvs-list ",[30,0,["listStyleClass"]]]]],[12],[1,"\\n"],[41,[30,0,["isReorderable"]],[[[1," "],[8,[32,2],null,[["@groupName","@componentsArray"],[[30,0,["pagedListComponentUrn"]],[30,0,["filteredComponentsArray"]]]],null],[1,"\\n"]],[]],[[[42,[28,[31,2],[[28,[31,2],[[30,0,["filteredComponentsArray"]]],null]],null],null,[[[1," "],[10,"li"],[15,0,[30,0,["listItemStyleClass"]]],[12],[1,"\\n "],[8,[32,5],null,[["@component"],[[30,5]]],null],[1,"\\n "],[13],[1,"\\n"]],[5]],null]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isLoading"]],[[[1," "],[10,0],[14,0,"display-flex align-items-center justify-center"],[12],[1,"\\n Temporary Loader\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["hasMoreToLoad"]],[[[1," "],[8,[32,6],[[4,[32,7],["click",[30,0,["loadMore"]]],null]],[["@type","@color","@text"],["tertiary","muted","Temporary loadMore"]],null],[1,"\\n"]],[]],null]],[]]],[1," "],[13],[1,"\\n "]],["ItemContainer","items","item","index","component"],false,["if","each","-track-array"]]',moduleName:"profile-tetris-shared/components/profile-component/paged-list.gjs",scope:()=>[y.default,_.default,v.default,T.default,C.default,E.default,w.default,P.on],isStrictMode:!0}),(S=(0,f.inject)("@linkedin/ember-restli-graphql@graphql"),O=(0,f.inject)("router"),k=(0,f.inject)("client-sensor-web@client-sensor"),A=class extends b.default{get count(){return(0,g.get)(this.args.tetrisComponentModel,"components.paging.count")}set count(e){(0,g.set)(this.args.tetrisComponentModel,"components.paging.count",e)}get total(){return(0,g.get)(this.args.tetrisComponentModel,"components.paging.total")}get start(){return(0,g.get)(this.args.tetrisComponentModel,"components.paging.start")||0}get paginationToken(){return(0,g.get)(this.args.tetrisComponentModel,"components.metadata.paginationToken")}set paginationToken(e){(0,g.set)(this.args.tetrisComponentModel,"components.metadata.paginationToken",e)}get componentsArray(){return(0,g.get)(this.args.tetrisComponentModel,"components.elements")||[]}get filteredComponentsArray(){return this._validatePagedComponent(this.componentsArray)}get listItemStyleClass(){return`${this.listItemSelectorClass} ${(0,m.getListItemStyle)({decorationType:(0,g.get)(this.args.tetrisComponentModel,"decorationType")})}`}get listStyleClass(){return(0,m.getListStyle)({decorationType:(0,g.get)(this.args.tetrisComponentModel,"decorationType"),padded:(0,g.get)(this.args.tetrisComponentModel,"padded")})}get isInfiniteScroll(){return!(0,g.get)(this.args.tetrisComponentModel,"footerAction")}get pageSize(){return(0,g.get)(this.args.tetrisComponentModel,"pageSize")}get listItemPrefix(){return(0,c.getValidIdStringFromUrn)([this.pagedListComponentUrn])}get pagedListComponentUrn(){return(0,g.get)(this.args.tetrisComponentModel,"entityUrn")}get hasMoreToLoad(){return!this.isEmptyResponseFromRecentPaginationRequest&&(this.total?this.total>this.count:this.paginationToken)}get isReorderable(){return(0,g.get)(this.args.tetrisComponentModel,"reorderable")}get requestedLocale(){return(0,g.get)(this.router,"currentRoute.queryParams.locale")}constructor(){super(...arguments);(0,n.default)(this,"listItemSelectorClass","pvs-list__paged-list-item");(0,t.default)(this,"graphql",I,this);(0,t.default)(this,"router",M,this);(0,t.default)(this,"clientSensor",D,this);(0,t.default)(this,"isLoading",N,this);(0,t.default)(this,"isEmptyResponseFromRecentPaginationRequest",R,this)
|
|
this._validateAndFireClientSensorEvent()}_validatePagedComponent(e){return e.filter((e=>(0,g.get)(e,"components")&&(0,s.getComponentData)((0,g.get)(e,"components"))))}handlePagedData(e){const t=(0,g.get)(e,"elements"),n=(0,g.get)(e,"paging")
|
|
if(t&&t.length>0){(0,g.set)(this.args.tetrisComponentModel,"components.elements",[...this.componentsArray,...t])
|
|
this.count+=(0,g.get)(n,"count")
|
|
this.paginationToken=(0,g.get)(e,"metadata.paginationToken")}else this.isEmptyResponseFromRecentPaginationRequest=!0}loadMore(){const e={start:this.count,count:this.pageSize,paginationToken:this.paginationToken}
|
|
return(0,u.fetchProfileComponentsByPagedListComponentUrnGraphQL)(this.graphql,this.pagedListComponentUrn,e,this.requestedLocale).then(this.handlePagedData.bind(this))}_validateAndFireClientSensorEvent(){const{entityUrn:e,reorderable:t,pageSize:n}=(0,g.getProperties)(this.args.tetrisComponentModel,"entityUrn","reorderable","pageSize")
|
|
e&&(0,d.isBoolean)(t)&&(0,d.isInteger)(n)?this.clientSensor.incrementMetricCounter({groupName:p.GROUP_NAME_PROFILE,metricName:"paged-list-component-served"}):this.clientSensor.incrementMetricCounter({groupName:p.GROUP_NAME_PROFILE,metricName:"paged-list-component-dropped"})}},I=(0,i.default)(A.prototype,"graphql",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,i.default)(A.prototype,"router",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,i.default)(A.prototype,"clientSensor",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,i.default)(A.prototype,"isLoading",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),R=(0,i.default)(A.prototype,"isEmptyResponseFromRecentPaginationRequest",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0===this.componentsArray.length}}),(0,i.default)(A.prototype,"loadMore",[g.action],Object.getOwnPropertyDescriptor(A.prototype,"loadMore"),A.prototype),A))}))
|
|
define("profile-tetris-shared/components/profile-component/premium-upsell",["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-tetris-shared/utils/constant/render-actions","profile-tetris-shared/utils/model/action-component-metadata","profile-tetris-shared/utils/constant/monitoring-constants","@ember/service","@ember/object","@glimmer/component","s-upsell/components/upsell-templates/upsell-template-container","s-upsell/components/upsell-templates-v2/upsell-template-container-v2","@ember/helper","image-view-model/components/image-view-model"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var b,y,_,v,T,C,E,w
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"nL9EbAkS",block:'[[[1,"\\n"],[41,[30,1,["premiumUpsellSlot"]],[[[41,[30,0,["isUpsellTemplateComponentV2Enabled"]],[[[1," "],[8,[32,0],null,[["@upsellCard","@defaultConfig","@upsellStyles","@onDismissClick","@onUpsellClick"],[[30,1,["premiumUpsellSlot","upsellCard"]],[28,[32,1],null,[["dismissButtonSize"],[1]]],[28,[32,1],null,[["upsellWrapperClass","customAnchorClass","upsellIllustrationClass"],["pvs-premium-upsell__container pvs-premium-upsell__container--align-start","pvs-premium-upsell__cta",[52,[30,1,["padded"]],"pl3"]]]],[30,0,["handleDismissClick"]],[30,0,["handleUpsellClick"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,2],null,[["@upsellCard","@defaultConfig","@upsellStyles","@onDismissClick","@onUpsellClick"],[[30,1,["premiumUpsellSlot","upsellCard"]],[28,[32,1],null,[["dismissButtonSize"],[1]]],[28,[32,1],null,[["upsellWrapperClass","customAnchorClass","headlineClass","subheaderClass","subtextCardClass","socialProofInsightClass","socialProofInsightTextClass","upsellContentClass","upsellIllustrationClass"],["pvs-premium-upsell__container pvs-premium-upsell__container--align-start",[28,[32,3],["pvs-premium-upsell__cta ",[30,0,["ctaClassForV1"]]],null],"t-16 t-bold","t-14 t-black--light mb2",[28,[32,3],["card-upsell__subtext t-12 ",[30,0,["ctaClassForV1"]]],null],"display-flex align-items-center justify-content-center mr2","t-12 t-black--light ml2","mr2",[52,[30,1,["padded"]],"pl3"]]]],[30,0,["handleDismissClick"]],[30,0,["handleUpsellClick"]]]],[["default"],[[[[1,"\\n"],[41,[30,1,["premiumUpsellSlot","upsellCard","image"]],[[[1," "],[8,[32,4],[[24,0,"mr2"]],[["@entitySize","@images","@imgClasses","@imgWidth"],[3,[30,1,["premiumUpsellSlot","upsellCard","image"]],"pvs-premium-upsell__illustration",48]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[]]]],[]],null],[1," "]],["@tetrisComponentModel"],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/premium-upsell.gjs",scope:()=>[f.default,h.hash,m.default,h.concat,g.default],isStrictMode:!0}),(b=(0,p.inject)("client-sensor-web@client-sensor"),y=(0,p.inject)("lego@tracking"),_=(0,p.inject)("tracking"),v=class extends u.default{constructor(){super(...arguments);(0,t.default)(this,"clientSensor",T,this);(0,t.default)(this,"legoTracking",C,this);(0,t.default)(this,"tracking",E,this);(0,t.default)(this,"lix",w,this)
|
|
this._validateAndFireClientSensorEvent()}get isUpsellTemplateComponentV2Enabled(){return this.lix.getTreatmentIsEnabled("voyager.web.premium-upsell-template-components-v2")}get ctaClassForV1(){const{padded:e,premiumUpsellSlot:t}=this.args.tetrisComponentModel
|
|
return t.upsellCard.image&&e?"pvs-premium-upsell__cta--padded-with-image":t.upsellCard.image?"pvs-premium-upsell__cta--with-image":e?"ml3":"ml0"}handleDismissClick(){var e,t
|
|
null===(e=(t=this.args).handleAction)||void 0===e||e.call(t,new s.default({type:a.RENDER_ACTIONS.DISMISS,actionDelegateUrn:(0,d.get)(this.args.tetrisComponentModel,"actionDelegateUrn")}))}handleUpsellClick(){const{legoTracking:e,tracking:t}=this,{controlName:n,legoTrackingToken:i}=this.args.tetrisComponentModel.premiumUpsellSlot.upsellCard
|
|
n&&t.fireInteractionEvent(n)
|
|
i&&e.sendLegoAction(i,e.LEGO_ACTION_PRIMARY,1)}_validateAndFireClientSensorEvent(){(0,d.get)(this.args.tetrisComponentModel,"premiumUpsellSlot")?this.clientSensor.incrementMetricCounter({groupName:c.GROUP_NAME_PROFILE,metricName:"upsell-component-served"}):this.clientSensor.incrementMetricCounter({groupName:c.GROUP_NAME_PROFILE,metricName:"upsell-component-dropped"})}},T=(0,i.default)(v.prototype,"clientSensor",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,i.default)(v.prototype,"legoTracking",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,i.default)(v.prototype,"tracking",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,i.default)(v.prototype,"lix",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(v.prototype,"handleDismissClick",[d.action],Object.getOwnPropertyDescriptor(v.prototype,"handleDismissClick"),v.prototype),(0,i.default)(v.prototype,"handleUpsellClick",[d.action],Object.getOwnPropertyDescriptor(v.prototype,"handleUpsellClick"),v.prototype),v))}))
|
|
define("profile-tetris-shared/components/profile-component/profile-content-collections",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","profile-creator-shared/components/content-view"],(function(e,t,n,i,r){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const o=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"nFxpW2rb",block:'[[[1,"\\n"],[1," "],[8,[32,0],null,[["@contentTypes","@detailedContentTypes","@vieweeProfile","@topViewDefaultContent","@detailsViewDefaultContent"],[[30,1,["contentTypes"]],[30,1,["detailedContentTypes"]],[30,1,["vieweeProfile"]],[30,1,["topViewDefaultContentResolutionResult"]],[30,1,["detailsViewDefaultContentResolutionResult"]]]],null],[1,"\\n"]],["@tetrisComponentModel"],false,[]]',moduleName:"profile-tetris-shared/components/profile-component/profile-content-collections.gjs",scope:()=>[r.default],isStrictMode:!0}),(0,n.default)("profile-content-collections","ProfileContentCollections"))
|
|
e.default=o}))
|
|
define("profile-tetris-shared/components/profile-component/prompt",["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-tetris-shared/utils/constant/render-actions","@glimmer/tracking","profile-tetris-shared/utils/constant/monitoring-constants","@ember/service","@ember/object","@glimmer/component","ember-cli-pemberly-tracking/modifiers/track-impression","profile-tetris-shared/components/profile-component/action","image-view-model/components/image-view-model","hue-web-icons/components/icon","text-view-model/components/text-view-model-v2","label-view-model/components/label-view-model","profile-tetris-shared/components/profile-component/text"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var T,C,E,w,P,S
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"w8XTj7oB",block:'[[[1,"\\n"],[41,[30,0,["shouldDisplay"]],[[[1," "],[11,0],[16,0,[29,["p3 pr6 relative display-flex flex-column flex-grow-1\\n ",[30,0,["promptBackgroundColorClassName"]]]]],[4,[32,0],[[30,0,["onImpression"]]],[["eager","routeName","currentRoute"],[true,[28,[32,1],[[53,"outletState"],"render.name"],null],[28,[32,1],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n"],[41,[30,1,["secondaryAction"]],[[[1," "],[10,0],[14,0,"pvs-prompt__dismiss-container"],[12],[1,"\\n "],[8,[32,2],null,[["@actionComponent","@handleAction","@actionContext"],[[30,1,["secondaryAction"]],[30,0,["handleAction"]],[30,1]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"pvs-prompt__title-container"],[12],[1,"\\n"],[41,[30,1,["icon"]],[[[1," "],[8,[32,3],[[24,0,"mr2"]],[["@entitySize","@images"],["2",[30,1,["icon"]]]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[12],[1,"\\n"],[41,[30,1,["premium"]],[[[1," "],[8,[32,4],null,[["@type","@name","@size","@a11yText"],["logo","premium-badge","xxxsmall","premium"]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[12],[1,"\\n"],[41,[30,1,["title"]],[[[1," "],[10,1],[15,0,[29,["m0 ",[30,0,["promptTitleClassName"]]]]],[12],[1,"\\n "],[8,[32,5],null,[["@tvm"],[[30,1,["title"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["titleLabel"]],[[[1," "],[8,[32,6],null,[["@lvm"],[[30,1,["titleLabel"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"display-flex flex-column justify-space-between flex-grow-1"],[12],[1,"\\n"],[41,[30,1,["subtitle"]],[[[1," "],[8,[32,7],null,[["@tetrisComponentModel","@textClass"],[[30,1,["subtitle"]],"t-14"]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"display-flex"],[12],[1,"\\n"],[41,[30,1,["additionalAction"]],[[[1," "],[10,0],[14,0,"mr2"],[12],[1,"\\n "],[8,[32,2],null,[["@actionComponent","@handleAction"],[[30,1,["additionalAction"]],[30,0,["handleAction"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["primaryAction"]],[[[1," "],[8,[32,2],null,[["@actionComponent","@handleAction"],[[30,1,["primaryAction"]],[30,0,["handleAction"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],["@tetrisComponentModel"],false,["if","-get-dynamic-var"]]',moduleName:"profile-tetris-shared/components/profile-component/prompt.gjs",scope:()=>[f.default,l.get,h.default,g.default,b.default,y.default,_.default,v.default],isStrictMode:!0}),(T=(0,d.inject)("lego@tracking"),C=(0,d.inject)("client-sensor-web@client-sensor"),E=class extends m.default{get legoTrackingId(){return(0,u.get)(this.args.tetrisComponentModel,"legoTrackingId")}get promptBackgroundColorClassName(){var e,t
|
|
return"AMBER_BACKGROUND_LARGE_TEXT"===(null===(e=this.args.tetrisComponentModel)||void 0===e?void 0:e.promptComponentStyle)?"pvs-prompt__amber-background":"SLATE_BACKGROUND_LARGE_TEXT"===(null===(t=this.args.tetrisComponentModel)||void 0===t?void 0:t.promptComponentStyle)?"pvs-prompt__slate-background":""}get promptTitleClassName(){var e,t
|
|
return"AMBER_BACKGROUND_LARGE_TEXT"===(null===(e=this.args.tetrisComponentModel)||void 0===e?void 0:e.promptComponentStyle)||"SLATE_BACKGROUND_LARGE_TEXT"===(null===(t=this.args.tetrisComponentModel)||void 0===t?void 0:t.promptComponentStyle)?"text-heading-large":"t-16 t-bold"}constructor(){super(...arguments);(0,t.default)(this,"legoTracking",w,this);(0,t.default)(this,"clientSensor",P,this);(0,t.default)(this,"shouldDisplay",S,this)
|
|
this._validateAndFireClientSensorEvent()}onImpression(){this.legoTrackingId&&this.legoTracking.sendLegoImpression(this.legoTrackingId,this.legoTracking.LEGO_IMPRESSION_VISIBILITY_SHOW)
|
|
return[]}handleAction(e){var t,n
|
|
let{type:i}=e
|
|
i===s.RENDER_ACTIONS.DISMISS&&(this.shouldDisplay=!1)
|
|
return null===(t=(n=this.args).handleAction)||void 0===t?void 0:t.call(n,...arguments)}_validateAndFireClientSensorEvent(){const{title:e,subtitle:t,primaryAction:n}=(0,u.getProperties)(this.args.tetrisComponentModel,"title","subtitle","primaryAction")
|
|
e&&t&&n?this.clientSensor.incrementMetricCounter({groupName:p.GROUP_NAME_PROFILE,metricName:"prompt-component-served"}):this.clientSensor.incrementMetricCounter({groupName:p.GROUP_NAME_PROFILE,metricName:"prompt-component-dropped"})}},w=(0,i.default)(E.prototype,"legoTracking",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,i.default)(E.prototype,"clientSensor",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,i.default)(E.prototype,"shouldDisplay",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),(0,i.default)(E.prototype,"onImpression",[u.action],Object.getOwnPropertyDescriptor(E.prototype,"onImpression"),E.prototype),(0,i.default)(E.prototype,"handleAction",[u.action],Object.getOwnPropertyDescriptor(E.prototype,"handleAction"),E.prototype),E))}))
|
|
define("profile-tetris-shared/components/profile-component/tab",["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-tetris-shared/utils/profile-tracking-helpers","profile-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/helpers/check-type","@ember/service","@glimmer/tracking","@ember/array","@ember/object","@glimmer/component","ember-cli-artdeco-tabs/components/artdeco-tabs","artdeco-pill/components/artdeco-pill-choice","text-view-model/components/text-view-model-v2","dash-interop-helper/helpers/get-graphql-value-with-dash-fallback","profile-tetris-shared/components/profile-component-builder"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var v,T,C,E,w,P
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"AYasCD9O",block:'[[[1,"\\n"],[41,[30,0,["sections"]],[[[1," "],[8,[32,0],null,[["@selection","@size"],[[30,0,["selection"]],"48dp"]],[["default"],[[[[1,"\\n"],[41,[30,2,["filterPillStyle"]],[[[1," "],[10,0],[14,0,"pvs-tab__pill-choices"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["sections"]]],null]],null],null,[[[1," "],[8,[32,1],null,[["@class","@text","@value","@size","@selection","@onChoice"],["ml2 white-space-nowrap",[30,3,["label","text"]],[30,4],3,[30,0,["selection"]],[30,0,["onTabChange"]]]],null],[1,"\\n"]],[3,4]],null],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[8,[30,1,["tablist"]],null,[["@class"],[[52,[30,2,["filterPillStyle"]],"ph4 pv3"]]],[["default"],[[[[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["sections"]]],null]],null],null,[[[1," "],[8,[30,5,["tab"]],null,[["@model","@on-select"],[[30,7],[30,0,["onTabChange"]]]],[["default"],[[[[1,"\\n "],[8,[32,2],null,[["@tvm"],[[30,6,["label"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n\\n"]],[6,7]],null],[1," "]],[5]]]]],[1,"\\n"]],[]]],[42,[28,[31,2],[[28,[31,2],[[30,0,["sections"]]],null]],null],null,[[[1," "],[8,[30,1,["tabpanel"]],null,[["@model"],[[30,9]]],[["default"],[[[[1,"\\n"],[41,[28,[32,3],[[30,8],"subComponent.components"],null],[[[1," "],[8,[32,4],null,[["@component"],[[30,8,["subComponent"]]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[8,9]],null],[1," "]],[1]]]]],[1,"\\n"]],[]],null],[1," "]],["tabs","@tetrisComponentModel","section","index","tablist","section","index","section","index"],false,["if","each","-track-array"]]',moduleName:"profile-tetris-shared/components/profile-component/tab.gjs",scope:()=>[h.default,g.default,b.default,y.default,_.default],isStrictMode:!0}),(v=(0,p.inject)("client-sensor-web@client-sensor"),T=(0,p.inject)("tracking"),C=class extends f.default{get sections(){return(0,m.get)(this.args.tetrisComponentModel,"sections")}constructor(){super(...arguments);(0,t.default)(this,"clientSensor",E,this);(0,t.default)(this,"tracking",w,this);(0,t.default)(this,"selection",P,this)
|
|
this._assertProps()}_assertProps(){const{sections:e,initialTabIndex:t,filterPillStyle:n}=(0,m.getProperties)(this.args.tetrisComponentModel,"sections","initialTabIndex","filterPillStyle")
|
|
e&&e.length&&(0,u.isArray)(e)&&(0,c.isInteger)(t)&&(0,c.isBoolean)(n)?this.clientSensor.incrementMetricCounter({groupName:s.GROUP_NAME_PROFILE,metricName:"tab-component-served"}):this.clientSensor.incrementMetricCounter({groupName:s.GROUP_NAME_PROFILE,metricName:"tab-component-dropped"})}onTabChange(e){this.selection=e
|
|
const t=this.sections[e]
|
|
if(t){const e=(0,m.get)(t,"controlName");(0,a.fireControlInteractionEvent)(this.tracking,e)}}},E=(0,i.default)(C.prototype,"clientSensor",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,i.default)(C.prototype,"tracking",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,i.default)(C.prototype,"selection",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(0,m.get)(this.args.tetrisComponentModel,"initialTabIndex")??0}}),(0,i.default)(C.prototype,"onTabChange",[m.action],Object.getOwnPropertyDescriptor(C.prototype,"onTabChange"),C.prototype),C))}))
|
|
define("profile-tetris-shared/components/profile-component/text",["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-tetris-shared/utils/constant/monitoring-constants","profile-tetris-shared/utils/profile-tracking-helpers","profile-tetris-shared/helpers/check-type","@ember/service","@ember/object","@glimmer/component","profile-tetris-shared/components/helper-component/optional-action-target-wrapper","profile-shared/modifiers/register-generated-suggestion-target","@ember/modifier","text-view-model/components/text-view-model-v2","profile-shared/components/text-with-see-more"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var _,v,T,C,E
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"In+kahgE",block:'[[[1,"\\n "],[10,0],[15,0,[29,["display-flex ",[52,[30,1,["padded"]],"ph5 pv3"]]]],[12],[1,"\\n "],[8,[32,0],[[16,0,[29,[[52,[30,2],"pvs-pending-component"],"\\n display-flex full-width"]]],[4,[32,1],null,[["targetUrn"],[[30,3]]]],[4,[32,2],["click",[30,0,["fireActionTrackingByTrackingMetadata"]]],null]],[["@actionTarget"],[[30,0,["actionTarget"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["showFullText"]],[[[1," "],[11,0],[17,4],[16,0,[29,["display-flex align-items-center\\n ",[52,[30,5],[30,5],"t-14 t-normal t-black"]]]],[12],[1,"\\n "],[8,[32,3],null,[["@tvm","@userGenerated"],[[30,1,["text"]],true]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[32,4],[[17,4],[24,0,"display-flex align-items-center"]],[["@textClass","@lines","@tvm","@isUserGenerated","@showMoreButton","@onClickExpand"],[[30,5],[30,0,["numInitialLinesToShow"]],[30,1,["text"]],true,[30,0,["showSeeMore"]],[30,0,["onClickExpand"]]]],null],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],["@tetrisComponentModel","@shouldDisable","@profileGeneratedSuggestionDelegateUrn","&attrs","@textClass"],false,["if"]]',moduleName:"profile-tetris-shared/components/profile-component/text.gts",scope:()=>[f.default,h.default,g.on,b.default,y.default],isStrictMode:!0}),(_=(0,d.inject)("client-sensor-web@client-sensor"),v=(0,d.inject)("tracking"),T=class extends m.default{get showFullText(){var e
|
|
return!(null!==(e=this.args.tetrisComponentModel)&&void 0!==e&&e.numInitialLinesToShow)}get showSeeMore(){var e
|
|
return!(null===(e=this.args.tetrisComponentModel)||void 0===e||!e.expandable)}get numInitialLinesToShow(){var e
|
|
return(null===(e=this.args.tetrisComponentModel)||void 0===e?void 0:e.numInitialLinesToShow)??void 0}get actionTarget(){var e
|
|
return(null===(e=this.args.tetrisComponentModel)||void 0===e?void 0:e.actionTarget)??void 0}constructor(e,n){super(e,n);(0,t.default)(this,"clientSensor",C,this);(0,t.default)(this,"tracking",E,this)
|
|
this._assertProps()}onClickExpand(){var e;(0,c.fireControlInteractionEvent)(this.tracking,(null===(e=this.args.tetrisComponentModel)||void 0===e?void 0:e.seeMoreControlName)??void 0)}fireActionTrackingByTrackingMetadata(){var e
|
|
const t=null===(e=this.args.tetrisComponentModel)||void 0===e?void 0:e.actionTrackingMetadata
|
|
t&&(0,c.fireCustomActionTrackingEvent)(this.tracking,void 0,void 0,t,void 0)}_assertProps(){const{text:e,padded:t,expandable:n}=this.args.tetrisComponentModel
|
|
e&&(0,p.isBoolean)(t)&&(0,p.isBoolean)(n)?this.clientSensor.incrementMetricCounter({groupName:s.GROUP_NAME_PROFILE,metricName:"text-component-served"}):this.clientSensor.incrementMetricCounter({groupName:s.GROUP_NAME_PROFILE,metricName:"text-component-dropped"})}},C=(0,i.default)(T.prototype,"clientSensor",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,i.default)(T.prototype,"tracking",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(T.prototype,"onClickExpand",[u.action],Object.getOwnPropertyDescriptor(T.prototype,"onClickExpand"),T.prototype),(0,i.default)(T.prototype,"fireActionTrackingByTrackingMetadata",[u.action],Object.getOwnPropertyDescriptor(T.prototype,"fireActionTrackingByTrackingMetadata"),T.prototype),T))}))
|
|
define("profile-tetris-shared/components/profile-component/visibility-setting-button",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","form-builder-v2/utils/dash-form-utils-v2","profile-shared/utils/tetris-api-helpers","tracked-toolbox","@ember/object","@ember/service","@glimmer/component","@ember/destroyable","form-builder-v2/components/visibility-setting-button"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var h,g,b,y,_,v,T
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"vAmryiZ5",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"mt2"]],[["@visibilitySettingButton","@formElementViewModel","@onInputChange","@disabled","@visibilitySettingButtonIdToFocus"],[[30,1],[30,0,["formElementViewModel"]],[30,0,["onVisibilityChange"]],[30,2],[30,0,["visibilitySettingButtonIdToFocus"]]]],null],[1,"\\n "]],["@tetrisComponentModel","@shouldDisable"],false,[]]',moduleName:"profile-tetris-shared/components/profile-component/visibility-setting-button.gjs",scope:()=>[f.default],isStrictMode:!0}),(h=(0,d.inject)("@linkedin/ember-restli-graphql@graphql"),g=(0,d.inject)("profile-services@profile"),b=(0,d.inject)("form-builder-v2@dependency-handler"),y=class extends u.default{constructor(){super(...arguments);(0,t.default)(this,"graphql",_,this);(0,t.default)(this,"profile",v,this);(0,t.default)(this,"dependencyHandler",T,this)}get formElementViewModel(){return new a.FormElementViewModel(this.args.tetrisComponentModel.singleQuestionSubForm.formElement,this.dependencyHandler)}get visibilitySettingButtonIdToFocus(){return this.profile.visibilitySettingButtonIdToFocus}onVisibilityChange(e){var t,n
|
|
null===(t=this.args)||void 0===t||null===(n=t.handleAction)||void 0===n||n.call(t)
|
|
return(0,s.saveProfileComponentUpdateGraphQL)(this.graphql,{formElementInputs:[this.formElementViewModel.formElementInput]}).finally((()=>{(0,m.isDestroying)(this)||(this.profile.visibilitySettingButtonIdToFocus=e)}))}},_=(0,i.default)(y.prototype,"graphql",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,i.default)(y.prototype,"profile",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,i.default)(y.prototype,"dependencyHandler",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(y.prototype,"formElementViewModel",[c.cached],Object.getOwnPropertyDescriptor(y.prototype,"formElementViewModel"),y.prototype),(0,i.default)(y.prototype,"onVisibilityChange",[p.action],Object.getOwnPropertyDescriptor(y.prototype,"onVisibilityChange"),y.prototype),y))}))
|
|
define("profile-tetris-shared/helpers/button-placement",["exports","@ember/component/helper"],(function(e,t){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.buttonPlacement=n
|
|
e.default=void 0
|
|
function n(e){let[t]=e,n="inline-flex justify-center"
|
|
switch(t){case"WRAP":n+=" align-self-flex-start button-placement-wrap"
|
|
break
|
|
case"FULL_WIDTH":n+=" full-width align-items-center artdeco-button--fluid"
|
|
break
|
|
case"SPAN":n+=" full-width full-height align-items-center"
|
|
break
|
|
default:n=""}return n}const i=(0,t.helper)(n)
|
|
e.default=i}))
|
|
define("profile-tetris-shared/helpers/card-urn-to-id",["exports","@ember/component/helper","@ember/debug","global-utils/utils/urn-id-helpers"],(function(e,t,n,i){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
e.getCardIdFromEntityUrn=r
|
|
function r(e){var t,n
|
|
let[r]=e
|
|
return null===(t=(0,i.extractUrnParts)(r)[1])||void 0===t||null===(n=t.split(","))||void 0===n?void 0:n[1].toLowerCase()}const o=(0,t.helper)(r)
|
|
e.default=o}))
|
|
define("profile-tetris-shared/helpers/check-type",["exports","@ember/utils"],(function(e,t){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.isBoolean=function(e){return"boolean"===(0,t.typeOf)(e)}
|
|
e.isInteger=function(e){return Number.isInteger(e)}
|
|
e.isString=function(e){return"string"===(0,t.typeOf)(e)}}))
|
|
define("profile-tetris-shared/helpers/get-component-title",["exports","@ember/object","@ember/component/helper","profile-tetris-shared/utils/profile-component-builder-helpers","dash-interop-helper/utils/get-graphql-value-with-dash-fallback"],(function(e,t,n,i,r){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
e.getComponentTitle=o
|
|
function o(e){let[n]=e
|
|
const o=(0,i.getComponentData)((0,r.getGraphQlValueWithDashFallback)(n,"components"))
|
|
return(0,t.get)(o,"titleV2.text.text")??(0,t.get)(o,"title.text")??""}const l=(0,n.helper)(o)
|
|
e.default=l}))
|
|
define("profile-tetris-shared/helpers/get-focusable-elements",["exports"],(function(e){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.getFocusableElements=function(e){const t=["a","button","[tabindex]"].map((e=>`${e}:not([disabled]):not([tabindex="-1"])`)).join()
|
|
return Array.from(e.querySelectorAll(t))}}))
|
|
define("profile-tetris-shared/helpers/get-section-urn-from-section-union",["exports","global-utils/utils/urn-id-helpers","@ember/object"],(function(e,t,n){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.getSectionUrnFromSectionUnion=function(e){let i
|
|
e.eachAttribute((r=>{const o=(0,n.get)(e,`${r}`)
|
|
o&&(i="string"==typeof o&&(0,t.isUrn)(o)?o:(0,n.get)(o,"entityUrn"))}))
|
|
return i}}))
|
|
define("profile-tetris-shared/helpers/id-with-index-formatter",["exports","@ember/component/helper"],(function(e,t){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
e.getIdWithIndex=n
|
|
function n(e){let[t,n]=e
|
|
return`${t}-${n}`}const i=(0,t.helper)(n)
|
|
e.default=i}))
|
|
define("profile-tetris-shared/helpers/maybe-replace-with-gs-ghost-card",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/service","@ember/component/helper"],(function(e,t,n,i,r,o,l){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var a,s,c
|
|
e.default=(a=(0,o.inject)("profile-shared@generated-suggestions-flow-manager"),s=class extends l.default{constructor(){super(...arguments);(0,t.default)(this,"generatedSuggestionsFlowManager",c,this)}compute(e){let[t]=e
|
|
const{ghostTargetProfileCard:n,ghostProfileCard:i}=this.generatedSuggestionsFlowManager.currentSuggestionView??{}
|
|
if(n&&i){if(t.entityUrn===n.entityUrn)return i}return t}},c=(0,i.default)(s.prototype,"generatedSuggestionsFlowManager",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s)}))
|
|
define("profile-tetris-shared/helpers/toast-helper",["exports"],(function(e){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.TOAST_TYPE=void 0
|
|
e.showToast=function(e,n,i,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.SUCCESS
|
|
const l=e.lookupTranslation(i,r)()
|
|
o===t.SUCCESS?n.success({message:l}):n.error({message:l})}
|
|
const t=e.TOAST_TYPE=Object.freeze({SUCCESS:"success",ERROR:"error"})}))
|
|
define("profile-tetris-shared/helpers/urn-to-id-formatter",["exports","@ember/component/helper"],(function(e,t){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
e.getValidIdStringFromUrn=n
|
|
function n(e){let[t]=e
|
|
let n=t.replace(/[^A-Za-z0-9]+|urn:li:fsd_|urn:li:fs_/gi,"-")
|
|
n=n.replace(/--+/g,"-")
|
|
n=n.replace(/^-+|-+$/g,"")
|
|
return n}const i=(0,t.helper)(n)
|
|
e.default=i}))
|
|
define("profile-tetris-shared/modifiers/handle-carousel-focus",["exports","@babel/runtime/helpers/esm/defineProperty","ember-modifier","ember-lifeline","profile-tetris-shared/helpers/get-focusable-elements"],(function(e,t,n,i,r){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
class o extends n.default{constructor(){super(...arguments);(0,t.default)(this,"storedFocusableCarouselItems",[])}didInstall(){const e=this.element.querySelector(".artdeco-carousel__slider")
|
|
this.storeShimdFocusableCarouselItems=(0,r.getFocusableElements)(e||document)
|
|
this.configureItems()}didUpdateArguments(){(0,i.runTask)(this,(()=>this.configureItems()),250)}configureItems(){var e
|
|
const t=this.element.getBoundingClientRect()
|
|
null===(e=this.storeShimdFocusableCarouselItems)||void 0===e||e.forEach((e=>{const n=e.getBoundingClientRect().x,i=e.getBoundingClientRect().width,r=n>=t.x&&n+i<=t.x+t.width
|
|
e.setAttribute("tabindex",r?0:-1)}))}}e.default=o}))
|
|
define("profile-tetris-shared/modifiers/handle-updated-list-item-focus",["exports","@babel/runtime/helpers/esm/defineProperty","ember-modifier","ember-lifeline","profile-tetris-shared/helpers/get-focusable-elements"],(function(e,t,n,i,r){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
class o extends n.default{constructor(){super(...arguments);(0,t.default)(this,"savedTrigger",void 0);(0,t.default)(this,"storedTriggerItemIndex",void 0);(0,t.default)(this,"storedFocusableElementsArray",[])}clickHandler(){this.savedTrigger=document.activeElement
|
|
this.storeShimdFocusableElementsArray=(0,r.getFocusableElements)(this.element||document)
|
|
this.storeShimdTriggerItemIndex=this.storeShimdFocusableElementsArray.indexOf(this.savedTrigger)}focusInHandler(e){var t,n
|
|
if(e.target!==this.savedTrigger&&(null===(t=e.target)||void 0===t||null===(n=t.className)||void 0===n||!n.includes("artdeco-modal"))){this.savedTrigger=void 0
|
|
this.storeShimdTriggerItemIndex=void 0
|
|
this.storeShimdFocusableElementsArray=[]}}focusOnFallbackElement(){const e=(0,r.getFocusableElements)(this.element||document)
|
|
if(0===e.length){this.element.focus()
|
|
return}const t=this.storeShimdFocusableElementsArray.length-e.length
|
|
if(0===t){var n
|
|
null===(n=e[this.storeShimdTriggerItemIndex])||void 0===n||n.focus()
|
|
return}const o=e[this.storeShimdTriggerItemIndex-(t-1)]||this.element;(0,i.runTask)(this,(()=>{o.focus()}))}didInstall(){this.boundClickHandler=this.clickHandler.bind(this)
|
|
this.boundFocusHandler=this.focusInHandler.bind(this)
|
|
this.element.addEventListener("click",this.boundClickHandler,!0)
|
|
this.element.addEventListener("focusin",this.boundFocusHandler)}didUpdateArguments(){this.savedTrigger!==document.activeElement&&void 0!==this.storeShimdTriggerItemIndex&&this.focusOnFallbackElement()}willDestroy(){this.element.removeEventListener("click",this.boundClickHandler,!0)
|
|
this.element.removeEventListener("focusin",this.boundFocusHandler)}}e.default=o}))
|
|
define("profile-tetris-shared/utils/action-consistency-helpers",["exports","@ember/object","@ember/debug","profile-shared/utils/tetris-api-helpers","rsvp"],(function(e,t,n,i,r){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.getEntityUrnsFromViewModelResponse=o
|
|
e.updateViewModelResponseUsingGraphQL=function(e,t){const n=o(t,"updatedCards"),l=o(t,"updatedPagedLists"),a=n.length>0&&(0,i.batchGetProfileCardsGraphQL)(e,n,{reload:!0}),s=l.length>0&&(0,i.batchGetProfilePagedListComponentsGraphQL)(e,l,{reload:!0})
|
|
return(0,r.hash)({batchGetProfileCardsPromise:a,batchGetProfilePagedListComponentsPromise:s})}
|
|
function o(e,n){const i=(0,t.get)(e,n)
|
|
return i?i.map((e=>"object"==typeof e?(0,t.get)(e,"entityUrn"):e)):[]}}))
|
|
define("profile-tetris-shared/utils/add-edit-route-configs",["exports"],(function(e){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.SLP_FORMS_TYPES=e.PAGE_KEY_EDIT_ENTITY=e.PAGE_KEY_ADD_ENTITY=e.PAGE_KEY_A2P_ENTITY=e.GUIDED_EDIT_FORM_TYPES=e.FORM_TYPE=e.ENTITY_URN_PREFIX=e.API_TYPE_TO_FORM_TYPE=void 0
|
|
e.isSlpForm=function(e){return n.indexOf(e)>=0}
|
|
const t=e.FORM_TYPE=Object.freeze({"add-position-promotion":"ADD_POSITION_PROMOTION","career-break":"CAREER_BREAK",causes:"CAUSES",certification:"CERTIFICATION","contact-info":"CONTACT_INFO","content-collections-star-pill":"CONTENT_COLLECTIONS_STAR_PILL",course:"COURSE","custom-action":"CUSTOM_ACTION","dynamic-skill":"DYNAMIC_SKILL_AND_ASSOCIATION",education:"EDUCATION",honor:"AWARD",intro:"TOP_CARD",language:"LANGUAGE",organization:"ORGANIZATION",patent:"PATENT",position:"POSITION",project:"PROJECT",publication:"PUBLICATION",skills:"SKILL_AND_ASSOCIATION","skills-endorsement-settings":"SKILLS_ENDORSEMENT_SETTINGS",summary:"SUMMARY","test-score":"TEST_SCORE","volunteer-experience":"VOLUNTEER","resume-profile-position":"RESUME_PROFILE_POSITION","resume-profile-education":"RESUME_PROFILE_EDUCATION","guided-edit-certification":"GUIDED_EDIT_CERTIFICATION","guided-edit-contact-info":"GUIDED_EDIT_CONTACT_INFO","guided-edit-education":"GUIDED_EDIT_EDUCATION","guided-edit-headline":"GUIDED_EDIT_HEADLINE","guided-edit-industry":"GUIDED_EDIT_INDUSTRY","guided-edit-location":"GUIDED_EDIT_LOCATION","guided-edit-past-position":"GUIDED_EDIT_PAST_POSITION","guided-edit-position":"GUIDED_EDIT_POSITION","guided-edit-publications":"GUIDED_EDIT_PUBLICATIONS","guided-edit-add-skills":"GUIDED_EDIT_ADD_SKILLS","guided-edit-summary":"GUIDED_EDIT_SUMMARY"}),n=(e.API_TYPE_TO_FORM_TYPE=Object.freeze(Object.keys(t).reduce(((e,n)=>{e[t[n]]=n
|
|
return e}),{})),e.GUIDED_EDIT_FORM_TYPES=Object.freeze([t["guided-edit-certification"],t["guided-edit-contact-info"],t["guided-edit-education"],t["guided-edit-headline"],t["guided-edit-industry"],t["guided-edit-location"],t["guided-edit-past-position"],t["guided-edit-position"],t["guided-edit-publications"],t["guided-edit-add-skills"],t["guided-edit-summary"]]),e.ENTITY_URN_PREFIX=Object.freeze({"career-break":"urn:li:fsu_lifeevent",certification:"urn:li:fsd_profileCertification",course:"urn:li:fsd_profileCourse",education:"urn:li:fsd_profileEducation",honor:"urn:li:fsd_profileHonor",language:"urn:li:fsd_profileLanguage",organization:"urn:li:fsd_profileOrganization",patent:"urn:li:fsd_profilePatent",position:"urn:li:fsd_profilePosition",project:"urn:li:fsd_profileProject",publication:"urn:li:fsd_profilePublication",skills:"urn:li:fsd_skill","test-score":"urn:li:fsd_profileTestScore","volunteer-experience":"urn:li:fsd_profileVolunteerExperience","resume-profile-position":"urn:li:fsd_resumeProfileEntity","resume-profile-education":"urn:li:fsd_resumeProfileEntity","guided-edit-education":"urn:li:fsd_profileEducation","guided-edit-position":"urn:li:fsd_profilePosition"}),e.PAGE_KEY_ADD_ENTITY=Object.freeze({"add-position-promotion":"flagship3_profile_self_add_position_promotion","career-break":"flagship3_profile_self_add_career_break",causes:"flagship3_profile_self_edit_causes_care",certification:"flagship3_profile_self_add_certification","content-collections-star-pill":"flagship3_profile_self_edit_recent",course:"flagship3_profile_self_add_course","dynamic-skill":"flagship3_profile_self_dynamic_add_skill_associations",education:"flagship3_profile_self_add_education",honor:"flagship3_profile_self_add_honor",intro:"flagship3_profile_self_edit_top_card",language:"flagship3_profile_self_add_language",organization:"flagship3_profile_self_add_organization",patent:"flagship3_profile_self_add_patent",position:"flagship3_profile_self_add_position",project:"flagship3_profile_self_add_project",publication:"flagship3_profile_self_add_publication",skills:"flagship3_profile_self_add_skill_associations","skills-endorsement-settings":"flagship3_profile_self_skills-endorsement-settings",summary:"flagship3_profile_self_edit_about","test-score":"flagship3_profile_self_add_test_score","volunteer-experience":"flagship3_profile_self_add_volunteer_exp","contact-info":"flagship3_profile_self_edit_contact-info","custom-action":"flagship3_profile_self_edit_custom_action","guided-edit-certification":"flagship3_ge_add_certification","guided-edit-contact-info":"flagship3_profile_self_edit_contact_info","guided-edit-education":"flagship3_ge_add_education","guided-edit-headline":"flagship3_ge_update_headline","guided-edit-industry":"flagship3_ge_industry","guided-edit-location":"flagship3_ge_location","guided-edit-past-position":"flagship3_ge_add_past_position","guided-edit-position":"flagship3_ge_add_current_position","guided-edit-publications":"flagship3_ge_publications","guided-edit-add-skills":"flagship3_ge_add_skills","guided-edit-summary":"flagship3_ge_summary"}),e.PAGE_KEY_EDIT_ENTITY=Object.freeze({"career-break":"flagship3_profile_self_edit_career_break",certification:"flagship3_profile_self_edit_certification",course:"flagship3_profile_self_edit_course",education:"flagship3_profile_self_edit_education",honor:"flagship3_profile_self_edit_honor",language:"flagship3_profile_self_edit_language",organization:"flagship3_profile_self_edit_organization",patent:"flagship3_profile_self_edit_patent",position:"flagship3_profile_self_edit_position",project:"flagship3_profile_self_edit_project",publication:"flagship3_profile_self_edit_publication",skills:"flagship3_profile_self_edit_skill_associations","test-score":"flagship3_profile_self_edit_test_score","volunteer-experience":"flagship3_profile_self_edit_volunteer_exp","resume-profile-position":"flagship3_profile_edit_gai_resume_profile_position","resume-profile-education":"flagship3_profile_edit_gai_resume_profile_education","guided-edit-education":"flagship3_ge_update_education","guided-edit-position":"flagship3_ge_confirm_current_position"}),e.PAGE_KEY_A2P_ENTITY=Object.freeze({certification:"flagship3_profile_self_a2p_certification"}),Object.freeze(["career-break","education","position","summary","intro"]))
|
|
e.SLP_FORMS_TYPES=n.map((e=>t[e]))}))
|
|
define("profile-tetris-shared/utils/add-edit-utils",["exports"],(function(e){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.RECOMMENDATION_FORM_TYPE=e.API_TYPE_TO_RECOMMENDATION_FORM_TYPE=void 0
|
|
const t=e.RECOMMENDATION_FORM_TYPE={request:"REQUEST_RECOMMENDATION",write:"WRITE_RECOMMENDATION"}
|
|
e.API_TYPE_TO_RECOMMENDATION_FORM_TYPE=Object.freeze(Object.keys(t).reduce(((e,n)=>{e[t[n]]=n
|
|
return e}),{}))}))
|
|
define("profile-tetris-shared/utils/constant/action-types",["exports","profile-tetris-shared/utils/constant/render-actions"],(function(e,t){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.UPDATE_PROFILE_VIEW_MODEL=e.SUPPORTED_ACTION_TYPES=e.SHOW_DISABLED_STATE=e.DISMISS_DISABLED_STATE=void 0
|
|
const n=e.UPDATE_PROFILE_VIEW_MODEL="update-profile-view-model",i=e.SHOW_DISABLED_STATE="show-disabled-state",r=e.DISMISS_DISABLED_STATE="dismiss-disabled-state"
|
|
e.SUPPORTED_ACTION_TYPES={UPDATE_PROFILE_VIEW_MODEL:n,...t.RENDER_ACTIONS,SHOW_DISABLED_STATE:i,DISMISS_DISABLED_STATE:r}}))
|
|
define("profile-tetris-shared/utils/constant/helper-components",["exports"],(function(e){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.HELPER_COMPONENTS=void 0
|
|
e.HELPER_COMPONENTS={COMPONENTS_COLLECTION_METADATA:"components-collection-metadata",MEDIA_CONTENT:"media-content",OBJECT_CONTENT:"object-content",NEWSLETTER_CONTENT:"newsletter-content",COMPONENT_CONTENT:"component-content",OVERFLOW_MENU_ITEM:"overflow-menu-item",TAB_SECTION:"tab-section",THUMBNAIL:"thumbnail",THUMBNAIL_ENTITY_PILE:"thumbnail-entity-pile"}}))
|
|
define("profile-tetris-shared/utils/constant/monitoring-constants",["exports"],(function(e){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.GROUP_NAME_PROFILE=void 0
|
|
e.GROUP_NAME_PROFILE="profile"}))
|
|
define("profile-tetris-shared/utils/constant/profile-subsection-type",["exports"],(function(e){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.VERIFIABLE_CREDENTIALS=e.TREASURY=e.SKILL_INSIGHTS=e.SKILL_ENDORSERS=e.REORDER=e.PUBLICATION_AUTHORS=e.PROJECT_CREATORS=e.PROFILE_OVERLAY_WITH_PARENT=e.PROFILE_OVERLAY_TYPE=e.PROFILE_OVERLAY=e.PRODUCTS=e.PATENT_INVENTORS=e.MUTUAL_GROUPS=e.DETAILS_OVERLAY_WITH_PARENT=e.DETAILS_OVERLAY_AS_SUBSECTIONTYPE=e.DETAILS_OVERLAY_AS_SECTIONTYPE=e.ADD_FEATURED_PROFILE_SKILL=e.ADD_FEATURED_PROFILE_SECTION_SELECTION=e.ADD_FEATURED_PROFILE_RECOMMENDATION=e.ADD_FEATURED_PROFILE_PROJECT=e.ADD_FEATURED_PROFILE_POSITION=e.ADD_FEATURED_PROFILE_HONOR=e.ADD_FEATURED_PROFILE_EDUCATION=e.ADD_FEATURED_PROFILE_COURSE=e.ADD_FEATURED_PROFILE_CERTIFICATION=e.ADD_FEATURED_POST=e.ADD_FEATURED_NEWSLETTER=e.ADD_FEATURED_LEARNING_COURSE=e.ADD_FEATURED_ARTICLE=void 0
|
|
const t=e.REORDER="reorder",n=e.SKILL_ENDORSERS="endorsers",i=e.SKILL_INSIGHTS="skill-insights",r=e.TREASURY="treasury",o=e.ADD_FEATURED_POST="add-featured-post",l=e.ADD_FEATURED_LEARNING_COURSE="add-featured-learning-course",a=e.ADD_FEATURED_NEWSLETTER="add-featured-newsletter",s=e.ADD_FEATURED_ARTICLE="add-featured-article",c=e.ADD_FEATURED_PROFILE_SECTION_SELECTION="add-featured-profile-section-selection",p=e.ADD_FEATURED_PROFILE_POSITION="add-featured-profile-position",d=e.ADD_FEATURED_PROFILE_EDUCATION="add-featured-profile-education",u=e.ADD_FEATURED_PROFILE_SKILL="add-featured-profile-skill",m=e.ADD_FEATURED_PROFILE_COURSE="add-featured-profile-course",f=e.ADD_FEATURED_PROFILE_CERTIFICATION="add-featured-profile-certification",h=e.ADD_FEATURED_PROFILE_RECOMMENDATION="add-featured-profile-recommendation",g=e.ADD_FEATURED_PROFILE_HONOR="add-featured-profile-honor",b=e.ADD_FEATURED_PROFILE_PROJECT="add-featured-profile-project",y=e.PROJECT_CREATORS="creators",_=e.PATENT_INVENTORS="inventors",v=e.PUBLICATION_AUTHORS="authors",T=e.MUTUAL_GROUPS="mutual-groups",C=e.PRODUCTS="products",E=e.VERIFIABLE_CREDENTIALS="verifiable-credentials",w="article-recommendations",P="pymk-recommendations",S="pymk-recommendations-from-school",O="pymk-recommendations-from-company",k="pymk-recommendations-from-title",A="pymk-recommendations-from-industry",I="group-recommendations",M="company-recommendations",D="online-event-recommendations",N="newsletter-recommendations",R="learning-recommendations",x="browsemap-recommendations",U="top-skills-details",L="skill-associations-details"
|
|
e.PROFILE_OVERLAY_TYPE=Object.freeze({REORDER:t,SKILL_ENDORSERS:n,SKILL_INSIGHTS:i,TREASURY:r,ADD_FEATURED_POST:o,ADD_FEATURED_ARTICLE:s,ADD_FEATURED_LEARNING_COURSE:l,ADD_FEATURED_NEWSLETTER:a,ADD_FEATURED_PROFILE_SECTION_SELECTION:c,ADD_FEATURED_PROFILE_POSITION:p,ADD_FEATURED_PROFILE_EDUCATION:d,ADD_FEATURED_PROFILE_SKILL:u,ADD_FEATURED_PROFILE_COURSE:m,ADD_FEATURED_PROFILE_CERTIFICATION:f,ADD_FEATURED_PROFILE_RECOMMENDATION:h,ADD_FEATURED_PROFILE_HONOR:g,ADD_FEATURED_PROFILE_PROJECT:b,BROWSEMAP_RECOMMENDATION:x,COMPANY_RECOMMENDATION:M,GROUP_RECOMMENDATION:I,LEARNING_RECOMMENDATION:R,NEWSLETTER_RECOMMENDATION:N,ONLINE_EVENT_RECOMMENDATION:D,ARTICLE_RECOMMENDATION:w,PYMK_RECOMMENDATION:P,PYMK_RECOMMENDATION_FROM_SCHOOL:S,PYMK_RECOMMENDATION_FROM_COMPANY:O,PYMK_RECOMMENDATION_FROM_TITLE:k,PYMK_RECOMMENDATION_FROM_INDUSTRY:A,PROJECT_CREATORS:y,PATENT_INVENTORS:_,PUBLICATION_AUTHORS:v,MUTUAL_GROUPS:T,PRODUCTS:C,TOP_SKILLS_DETAILS:U,SKILL_ASSOCIATIONS_DETAILS:L}),e.PROFILE_OVERLAY=[o,s,l,a,c,p,d,u,m,f,h,g,b,x,M,I,R,N,D,w,P,S,O,k,A,U],e.PROFILE_OVERLAY_WITH_PARENT=[n,i,y,_,v,r,T,C,L],e.DETAILS_OVERLAY_AS_SUBSECTIONTYPE=[t],e.DETAILS_OVERLAY_AS_SECTIONTYPE=[o,s,l,a,c,p,d,u,m,f,h,g,b],e.DETAILS_OVERLAY_WITH_PARENT=Object.freeze({SKILL_ENDORSERS:n,SKILL_INSIGHTS:i,PROJECT_CREATORS:y,PATENT_INVENTORS:_,PUBLICATION_AUTHORS:v,TREASURY:r,MUTUAL_GROUPS:T,PRODUCTS:C,VERIFIABLE_CREDENTIALS:E})}))
|
|
define("profile-tetris-shared/utils/constant/render-actions",["exports"],(function(e){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.SUPPORTED_KEYS_IN_ACTION_UNION=e.RENDER_ACTIONS=void 0
|
|
e.RENDER_ACTIONS={ADD_RECOMMENDATION_PROFILE:"add-recommendation-to-profile",ADD_RECOMMENDATION_PROFILE_ACTION:"add-recommendation-to-profile-action",COLLAPSE_EXPAND:"collapse-expand",COMPOSE_OPTION:"compose-option",CONNECT_ACTION:"connect-action",DELETE_SKILL:"delete-skill",DELETE_SKILL_ACTION:"delete-skill-action",DELETE_TREASURY:"delete-treasury",DELETE_TREASURY_V2:"delete-treasury-v2",DISMISS:"dismiss",ENDORSED_SKILL:"endorsed-skill",ENDORSED_SKILL_ACTION:"endorsed-skill-action",FEATURE_OR_UNFEATURE:"feature-or-unfeature",FEATURE_OR_UNFEATURE_V2:"feature-or-unfeature-v2",FOLLOWING_STATE:"following-state",FOLLOWING_STATE_ACTION:"following-state-action",GROUP_MEMBERSHIP:"group-membership",GROUP_MEMBERSHIP_ACTION:"group-membership-action",IGNORE_RECOMMENDATION_REQUEST:"ignore-recommendation-request",IGNORE_RECOMMENDATION_REQUEST_ACTION:"ignore-recommendation-request-action",NAVIGATION:"navigation",OPEN_PROFILE_GENERATED_SUGGESTIONS_FLOW:"open-profile-generated-suggestions-flow",OVERFLOW:"overflow",PREMIUM_UPSELL_MODAL_ACTION:"premium-upsell-modal",SAVE_STATE_ACTION:"save-state",SEE_MORE_OR_LESS:"see-more-or-less",UNFEATURE:"unfeature",UNFEATURE_V2:"unfeature-v2",SUBSCRIBE_NEWSLETTER_ACTION:"subscribe-newsletter",MODAL_ACTION:"modal",STATEFUL_BUTTON_ACTION:"stateful-button"},e.SUPPORTED_KEYS_IN_ACTION_UNION=["endorsedSkill","endorsedSkillAction","followingState","followingStateAction","groupMembership","groupMembershipAction","navigationAction","collapseExpandAction","dismissAction","seeMoreOrLessAction","composeOptionAction","connectAction","openProfileGeneratedSuggestionsFlowAction","overflowAction","featureOrUnfeatureAction","featureOrUnfeatureActionV2","deleteTreasuryAction","deleteTreasuryActionV2","unfeatureAction","unfeatureActionV2","ignoreRecommendationRequestActionUrn","ignoreRecommendationRequestAction","addRecommendationToProfileActionUrn","addRecommendationToProfileAction","deleteSkill","deleteSkillAction","subscribeNewsletterAction","modalAction","saveStateAction","premiumUpsellModalAction","statefulButtonAction"]}))
|
|
define("profile-tetris-shared/utils/constant/section-types",["exports"],(function(e){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.VOLUNTEERING_EXPERIENCE_ROUTE=e.TREASURY_ROUTE=e.TEST_SCORES_ROUTE=e.SUBSECTION_TYPE_TO_DETAIL_SCREEN_MAPPING=e.SKILLS_ROUTE=e.SKILLS_ENDORSEMENT_SETTINGS_ROUTE=e.SECTION_TYPE_FORM_TYPE_MAPPING=e.RESOURCES_ROUTE=e.RECOMMENDATIONS_ROUTE=e.PUBLICATIONS_ROUTE=e.PROJECTS_ROUTE=e.PROFILE_SUBSECTION_TYPE=e.PROFILE_SECTION_TYPE=e.PROFILE_CONTENT_COLLECTIONS=e.PATENTS_ROUTE=e.ORGANIZATIONS_ROUTE=e.LICENSES_AND_CERTIFICATIONS_ROUTE=e.LANGUAGES_ROUTE=e.INTERESTS_ROUTE=e.HONORS_AND_AWARDS_ROUTE=e.HIGHLIGHTS_ROUTE=e.GUIDANCE_ROUTE=e.FORM_TYPE_TO_SUBSECTION_TYPE_MAPPING=e.FORM_TYPE_TO_SECTION_TYPE_MAPPING=e.FEATURED_ROUTE=e.EXPERIENCE_ROUTE=e.EDUCATION_ROUTE=e.COURSES_ROUTE=e.CONTACTS_ROUTE=e.CAREER_BREAK_ROUTE=void 0
|
|
e.extractSectionTypeFromURL=function(e){const t=e.split("/")
|
|
return t[t.lastIndexOf("details")+1]}
|
|
const t=e.CONTACTS_ROUTE="contacts",n=e.EXPERIENCE_ROUTE="experience",i=e.EDUCATION_ROUTE="education",r=e.SKILLS_ROUTE="skills",o=e.PUBLICATIONS_ROUTE="publications",l=e.PATENTS_ROUTE="patents",a=e.TEST_SCORES_ROUTE="testscores",s=e.PROJECTS_ROUTE="projects",c=e.VOLUNTEERING_EXPERIENCE_ROUTE="volunteering-experiences",p=e.LICENSES_AND_CERTIFICATIONS_ROUTE="certifications",d=e.COURSES_ROUTE="courses",u=e.HONORS_AND_AWARDS_ROUTE="honors",m=e.INTERESTS_ROUTE="interests",f=e.RECOMMENDATIONS_ROUTE="recommendations",h=e.LANGUAGES_ROUTE="languages",g=e.HIGHLIGHTS_ROUTE="highlights",b=e.ORGANIZATIONS_ROUTE="organizations",y=e.FEATURED_ROUTE="featured",_=e.RESOURCES_ROUTE="resources",v=(e.TREASURY_ROUTE="treasury",e.GUIDANCE_ROUTE="guidance"),T=e.CAREER_BREAK_ROUTE="career-break",C=e.SKILLS_ENDORSEMENT_SETTINGS_ROUTE="skills-endorsement-settings"
|
|
e.PROFILE_CONTENT_COLLECTIONS="content-collections",e.PROFILE_SECTION_TYPE=Object.freeze([d,i,n,y,g,u,m,h,p,b,l,s,o,f,_,r,a,c,v,t]),e.PROFILE_SUBSECTION_TYPE=Object.freeze([T]),e.SECTION_TYPE_FORM_TYPE_MAPPING=Object.freeze({[d]:"course",[i]:"education",[n]:"position",[u]:"honor",[h]:"language",[p]:"certification",[b]:"organization",[s]:"project",[o]:"publication",[r]:"skills",[a]:"test-score",[c]:"volunteer-experience",[v]:"guidance",[l]:"patent",[m]:"interets"}),e.FORM_TYPE_TO_SECTION_TYPE_MAPPING=Object.freeze({causes:m,certification:p,course:d,education:i,honor:u,language:h,organization:b,position:n,publication:o,project:s,skills:r,guidance:v,patent:l,"test-score":a,"volunteer-experience":c}),e.SUBSECTION_TYPE_TO_DETAIL_SCREEN_MAPPING={[T]:n,[C]:r},e.FORM_TYPE_TO_SUBSECTION_TYPE_MAPPING=Object.freeze({"career-break":T,"skills-endorsement-settings":C})}))
|
|
define("profile-tetris-shared/utils/constant/supported-components",["exports"],(function(e){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.SUPPORTED_COMPONENTS=void 0
|
|
e.SUPPORTED_COMPONENTS=["visibilitySettingButton","formElement","miniUpdateUrn","profileContentCollectionsComponent","premiumUpsellComponent","actionComponent","carouselComponent","completionMeterComponent","contentComponent","emptyStateComponent","entityComponent","entityPileComponent","fixedListComponent","headerComponent","inlineCalloutComponent","insightComponent","mediaComponent","pagedListComponent","promptComponent","tabComponent","textComponent"]}))
|
|
define("profile-tetris-shared/utils/engine-mounting-route-transition",["exports","global-utils/utils/routing"],(function(e,t){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.BASE_ROUTE_TO_MOUNTED_PROFILE_EDIT=void 0
|
|
e.getTransitionArgsForParentRoutes=function(e){if(!e)return[]
|
|
return[...i(e),{queryParams:Object.entries(e.queryParams).reduce(((e,t)=>{var n,i
|
|
let[r,o]=t
|
|
e[r]=o
|
|
null!=o&&null!==(n=o.startsWith)&&void 0!==n&&n.call(o,"[")&&null!=o&&null!==(i=o.endsWith)&&void 0!==i&&i.call(o,"]")&&(e[r]=JSON.parse(o))
|
|
return e}),{})??{}}]}
|
|
e.getTransitionMountingRouteInfo=function(e){return Object.keys(n).reduce(((n,i)=>n||(0,t.findParentRouteNamed)(i,e.from)),null)}
|
|
const n=e.BASE_ROUTE_TO_MOUNTED_PROFILE_EDIT=Object.freeze({"job-details-engine":"job-details-skill-edit","jobs-search.index":"jobs-search-skill-edit","jobs-search.job-collection":"jobs-collections-skill-edit","search.results.generic":"search-skill-edit","jobs.index":"jobs-home-skill-edit","feed.index":"feed-skill-edit"})
|
|
function i(e){const t=[]
|
|
let n=e
|
|
for(;n;){t.unshift(n)
|
|
n=n.parent}return t.reduce(((e,t)=>{var n
|
|
null===(n=t.paramNames)||void 0===n||n.forEach((n=>e.push(t.params[n])))
|
|
return e}),[])}}))
|
|
define("profile-tetris-shared/utils/is-empty-card",["exports","@ember/object","profile-tetris-shared/utils/profile-component-builder-helpers"],(function(e,t,n){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.isEmptyCard=function(e){const i=(0,t.get)(e,"topComponents")
|
|
return null==i?void 0:i.every((e=>{var i
|
|
const r=(0,t.get)(e,"components")||(0,t.get)(e,"componentsUnion"),o=(0,n.getComponentType)(r),l=(0,n.getComponentData)(r)
|
|
return!o||!l||"premiumUpsellComponent"===o&&!(null!==(i=l.premiumUpsellSlot)&&void 0!==i&&i.upsellCard)}))}}))
|
|
define("profile-tetris-shared/utils/list-styles",["exports"],(function(e){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.TETRIS_LIST_PADDING_CLASSES=e.TETRIS_LIST_PADDED_CLASS=e.TETRIS_LIST_ITEM_PADDING_CLASSES=e.TETRIS_LIST_ITEM_COLUMN_CLASSES=void 0
|
|
e.getListItemStyle=function(e){let{decorationType:t,columnConfiguration:n}=e
|
|
const o=i[t]||"",l=r[n]||r.ONE_COLUMN
|
|
return`${o} ${l}`}
|
|
e.getListStyle=function(e){let{decorationType:i,padded:r}=e
|
|
const o=t[i]||""
|
|
return r?`${o} ${n}`:o}
|
|
const t=e.TETRIS_LIST_PADDING_CLASSES=Object.freeze({LINE_SEPARATED:"",PADDED:"",GAP_SEPARATED:"pvs-list--with-gap",NONE:"",TOP_PADDED:""}),n=e.TETRIS_LIST_PADDED_CLASS="pvs-list--padded",i=e.TETRIS_LIST_ITEM_PADDING_CLASSES=Object.freeze({LINE_SEPARATED:"artdeco-list__item pvs-list__item--line-separated",PADDED:"pvs-list__item--with-padding",GAP_SEPARATED:"pvs-list__item--with-gap",NONE:"",TOP_PADDED:"pvs-list__item--with-top-padding"}),r=e.TETRIS_LIST_ITEM_COLUMN_CLASSES=Object.freeze({ONE_COLUMN:"pvs-list__item--one-column",TWO_COLUMN:"pvs-list__item--two-column",THREE_COLUMN:"pvs-list__item--three-column"})}))
|
|
define("profile-tetris-shared/utils/model/action-component-metadata",["exports","@babel/runtime/helpers/esm/defineProperty","@ember/debug","profile-tetris-shared/utils/constant/action-types"],(function(e,t,n,i){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
class r{constructor(e){let{isSeeMoreAction:n,collapsed:i,disableAll:r}=e;(0,t.default)(this,"isSeeMoreAction",void 0);(0,t.default)(this,"collapsed",void 0);(0,t.default)(this,"disableAll",void 0)
|
|
this.isSeeMoreAction=n
|
|
this.collapsed=i
|
|
this.disableAll=r}}e.default=class{constructor(e){let{type:n,actionDelegateUrn:i,options:o}=e;(0,t.default)(this,"type",void 0);(0,t.default)(this,"actionDelegateUrn",void 0);(0,t.default)(this,"options",void 0)
|
|
this.type=n
|
|
i&&(this.actionDelegateUrn=i)
|
|
o&&(this.options=new r(o))
|
|
this._validateType()}_validateType(){}}}))
|
|
define("profile-tetris-shared/utils/profile-action-component-builder-helpers",["exports","@ember/object","profile-tetris-shared/utils/constant/render-actions","profile-tetris-shared/components/non-support","profile-tetris-shared/components/profile-component/action-component/endorsed-skill","profile-tetris-shared/components/profile-component/action-component/following-state","profile-tetris-shared/components/profile-component/action-component/group-membership","profile-tetris-shared/components/profile-component/action-component/navigation","profile-tetris-shared/components/profile-component/action-component/collapse-expand","profile-tetris-shared/components/profile-component/action-component/dismiss","profile-tetris-shared/components/profile-component/action-component/see-more-or-less","profile-tetris-shared/components/profile-component/action-component/compose-option","profile-tetris-shared/components/profile-component/action-component/connect-action","profile-tetris-shared/components/profile-component/action-component/open-profile-generated-suggestions-flow","profile-tetris-shared/components/profile-component/action-component/overflow","profile-tetris-shared/components/profile-component/action-component/feature-or-unfeature","profile-tetris-shared/components/profile-component/action-component/delete-treasury","profile-tetris-shared/components/profile-component/action-component/unfeature","profile-tetris-shared/components/profile-component/action-component/ignore-recommendation-request","profile-tetris-shared/components/profile-component/action-component/add-recommendation-to-profile","profile-tetris-shared/components/profile-component/action-component/delete-skill","profile-tetris-shared/components/profile-component/action-component/subscribe-newsletter","profile-tetris-shared/components/profile-component/action-component/modal","profile-tetris-shared/components/profile-component/action-component/save-state","profile-tetris-shared/components/profile-component/action-component/premium-upsell-modal","profile-tetris-shared/components/profile-component/action-component/stateful-button"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E,w,P){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.actionBuilderPrefix=void 0
|
|
e.getComponentNameFromActionUnion=function(e){const t=S(e)
|
|
if(t)switch(t){case"endorsedSkill":case"endorsedSkillAction":return r.default
|
|
case"followingState":case"followingStateAction":return o.default
|
|
case"groupMembership":case"groupMembershipAction":return l.default
|
|
case"navigationAction":return a.default
|
|
case"collapseExpandAction":return s.default
|
|
case"dismissAction":return c.default
|
|
case"seeMoreOrLessAction":return p.default
|
|
case"composeOptionAction":return d.default
|
|
case"connectAction":return u.default
|
|
case"openProfileGeneratedSuggestionsFlowAction":return m.default
|
|
case"overflowAction":return f.default
|
|
case"featureOrUnfeatureAction":case"featureOrUnfeatureActionV2":return h.default
|
|
case"deleteTreasuryAction":case"deleteTreasuryActionV2":return g.default
|
|
case"unfeatureAction":case"unfeatureActionV2":return b.default
|
|
case"ignoreRecommendationRequestActionUrn":case"ignoreRecommendationRequestAction":return y.default
|
|
case"addRecommendationToProfileActionUrn":case"addRecommendationToProfileAction":return _.default
|
|
case"deleteSkill":case"deleteSkillAction":return v.default
|
|
case"subscribeNewsletterAction":return T.default
|
|
case"modalAction":return C.default
|
|
case"saveStateAction":return E.default
|
|
case"premiumUpsellModalAction":return w.default
|
|
case"statefulButtonAction":return P.default
|
|
default:return i.default}return i.default}
|
|
e.getDataFromActionUnion=function(e){const n=S(e)
|
|
if(n)return(0,t.get)(e,n)||(0,t.get)(e,`*${n}`)
|
|
return}
|
|
e.actionBuilderPrefix="profile-tetris-shared@profile-component/action-component/"
|
|
function S(e){return n.SUPPORTED_KEYS_IN_ACTION_UNION.find((n=>!!(0,t.get)(e,n)||!!(0,t.get)(e,`*${n}`)))}}))
|
|
define("profile-tetris-shared/utils/profile-component-builder-helpers",["exports","profile-tetris-shared/utils/profile-component-builder/transform-type"],(function(e,t){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
Object.defineProperty(e,"UNSUPPORTED_COMPONENT",{enumerable:!0,get:function(){return t.UNSUPPORTED_COMPONENT}})
|
|
Object.defineProperty(e,"getComponentData",{enumerable:!0,get:function(){return t.getComponentData}})
|
|
Object.defineProperty(e,"getComponentType",{enumerable:!0,get:function(){return t.getComponentType}})
|
|
Object.defineProperty(e,"transformTypeToComponent",{enumerable:!0,get:function(){return t.transformTypeToComponent}})}))
|
|
define("profile-tetris-shared/utils/profile-component-builder/transform-type",["exports","@ember/object","profile-tetris-shared/utils/constant/supported-components","profile-tetris-shared/components/non-support","profile-tetris-shared/components/profile-component/visibility-setting-button","profile-tetris-shared/components/profile-component/form-element","profile-tetris-shared/components/profile-component/mini-update","profile-tetris-shared/components/profile-component/profile-content-collections","profile-tetris-shared/components/profile-component/premium-upsell","profile-tetris-shared/components/profile-component/action","profile-tetris-shared/components/profile-component/carousel","profile-tetris-shared/components/profile-component/completion-meter","profile-tetris-shared/components/profile-component/content","profile-tetris-shared/components/profile-component/empty-state","profile-tetris-shared/components/profile-component/entity","profile-tetris-shared/components/profile-component/entity-pile","profile-tetris-shared/components/profile-component/fixed-list","profile-tetris-shared/components/profile-component/header","profile-tetris-shared/components/profile-component/inline-callout","profile-tetris-shared/components/profile-component/insight","profile-tetris-shared/components/profile-component/media","profile-tetris-shared/components/profile-component/paged-list","profile-tetris-shared/components/profile-component/paged-list-v2","profile-tetris-shared/components/profile-component/prompt","profile-tetris-shared/components/profile-component/tab","profile-tetris-shared/components/profile-component/text"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E,w,P){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.builderPrefix=e.UNSUPPORTED_COMPONENT=void 0
|
|
e.getComponentData=function(e){const n=S(e)
|
|
if(n)return(0,t.get)(e,n)
|
|
return}
|
|
e.getComponentType=S
|
|
e.transformTypeToComponent=function(e){let S=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
|
|
const O=n.SUPPORTED_COMPONENTS.find((n=>(0,t.get)(e,n)))
|
|
if(O)switch(O){case"visibilitySettingButton":return r.default
|
|
case"formElement":return o.default
|
|
case"miniUpdateUrn":return l.default
|
|
case"profileContentCollectionsComponent":return a.default
|
|
case"premiumUpsellComponent":return s.default
|
|
case"actionComponent":return c.default
|
|
case"carouselComponent":return p.default
|
|
case"completionMeterComponent":return d.default
|
|
case"contentComponent":return u.default
|
|
case"emptyStateComponent":return m.default
|
|
case"entityComponent":return f.default
|
|
case"entityPileComponent":return h.default
|
|
case"fixedListComponent":return g.default
|
|
case"headerComponent":return b.default
|
|
case"inlineCalloutComponent":return y.default
|
|
case"insightComponent":return _.default
|
|
case"mediaComponent":return v.default
|
|
case"pagedListComponent":return S?C.default:T.default
|
|
case"promptComponent":return E.default
|
|
case"tabComponent":return w.default
|
|
case"textComponent":return P.default
|
|
default:return i.default}return i.default}
|
|
e.builderPrefix="profile-tetris-shared@profile-component/",e.UNSUPPORTED_COMPONENT="profile-tetris-shared@non-support"
|
|
function S(e){return n.SUPPORTED_COMPONENTS.find((n=>!!(0,t.get)(e,n)))}}))
|
|
define("profile-tetris-shared/utils/profile-monitoring-helpers",["exports","@ember/debug","global-utils/utils/is-network-error","profile-tetris-shared/utils/constant/monitoring-constants"],(function(e,t,n,i){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.fireActionClickFailedMonitoringEvent=function(e,t,r){if((0,n.default)(r)){e.incrementMetricCounter({metricName:t,groupName:i.GROUP_NAME_PROFILE})
|
|
return!0}return!1}}))
|
|
define("profile-tetris-shared/utils/profile-tracking-helpers",["exports","@ember/object","global-utils/utils/tracking-id","dash-interop-helper/utils/get-graphql-value-with-dash-fallback"],(function(e,t,n,i){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.fireControlInteractionEvent=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"SHORT_PRESS"
|
|
if(!e)return
|
|
t&&e.fireInteractionEvent(t,n)}
|
|
e.fireCustomActionTrackingEvent=function(e,i,o,l,a){if(!e)return
|
|
i&&e.fireTrackingPayload("ProfileActionClickedEvent",{trackingId:(0,n.getByteStringAsBase64)(i),profileActionType:"UNKNOWN"})
|
|
o&&e.fireTrackingPayload("ActionRecommendationTrackingEvent",{timestamp:Date.now(),trackingId:o,cohortAction:{actionCategory:"CLICK_THROUGH"}})
|
|
l&&function(e,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"UNKNOWN"
|
|
if(!e)return
|
|
n&&n.forEach((n=>{const o=(0,t.get)(n,"premiumPaywallActionTrackingMetadata"),l=(0,t.get)(n,"browsemapActionTrackingMetadata"),a=(0,t.get)(n,"discoveryFunnelEventTrackingMetadata"),{opportunityCardActionTrackingMetadata:s}=n
|
|
o&&e.fireTrackingPayload("PremiumPaywallActionEvent",{actionType:(0,t.get)(o,"actionType"),urlClicked:(0,t.get)(o,"urlClicked"),paywallReferenceId:(0,t.get)(o,"paywallReferenceId")})
|
|
if(l){const n=r((0,t.get)(l,"memberRelationship"))
|
|
e.fireTrackingPayload("BrowseMapActionEvent",{actionType:"CLICK",connectionDistance:n,browsemapPosition:{index:(0,t.get)(l,"index"),listSize:(0,t.get)(l,"listSize")},sourceMemberUrn:(0,t.get)(l,"sourceMemberUrn"),targetMemberUrn:(0,t.get)(l,"targetMemberUrn"),viewedMemberUrn:(0,t.get)(l,"viewedMemberUrn")})}if(a){const{trackingId:t,objectUrn:n,displayContext:r}=a
|
|
e.fireTrackingPayload("DiscoveryFunnelEvent",{trackingId:t,funnelStep:"ACTION",funnelBody:{action:{objectUrn:n,displayContext:`d_${r}`,actionCategory:i}}})}if(s){const{profileOpportunityCardType:t,actionCategory:n,vieweeUrn:i}=s
|
|
e.fireTrackingPayload("ProfileOpportunityCardActionEvent",{profileOpportunityCardType:t,actionCategory:n,vieweeUrn:i})}}))}(e,l,a)}
|
|
e.fireProfileCardImpressionEvent=function(e,t){return{name:"ProfileCardImpressionEvent",body:{position:{index:t},trackingId:(0,n.getByteStringAsBase64)(e)}}}
|
|
e.getTetrisComponentImpressionEvents=function(e){if(!e)return[]
|
|
const n=[]
|
|
e.forEach((e=>{const i=(0,t.get)(e,"premiumPaywallImpressionTrackingMetadata"),r=(0,t.get)(e,"premiumUpsellImpressionTrackingMetadata"),o=(0,t.get)(e,"discoveryFunnelEventTrackingMetadata")
|
|
if(i){const e=(0,t.get)(i,"restrictionTypeDrop")?"DROP":"WARN"
|
|
n.push({name:"PremiumPaywallImpressionEvent",body:{paywallType:"BROWSEMAPS",paywallReferenceId:(0,t.get)(i,"paywallReferenceId"),restrictionType:e}})}r&&n.push({name:"PremiumUpsellImpressionEvent",body:{upsellOrderOrigin:r}})
|
|
if(o){const{trackingId:e,objectUrn:t,displayContext:i}=o
|
|
n.push({name:"DiscoveryFunnelEvent",body:{trackingId:e,funnelStep:"IMPRESSION",funnelBody:{impression:{objectUrn:t,displayContext:`d_${i}`,size:{height:0,width:0},visibleTime:0,duration:0}}}})}}))
|
|
return n}
|
|
function r(e){return(0,t.get)(e,"self")?"SELF":(0,i.getGraphQlValueWithDashFallback)(e,"memberRelationship.connection")?"DISTANCE_1":(0,i.getGraphQlValueWithDashFallback)(e,"memberRelationship.noConnection")?(0,i.getGraphQlValueWithDashFallback)(e,"memberRelationship.noConnection.memberDistance"):null}}))
|
|
define("profile-tetris-shared/utils/subroute-helpers",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/service","global-utils/utils/is-browser","@ember/array","@ember/object","@ember/debug","@ember/application","ember-lifeline"],(function(e,t,n,i,r,o,l,a,s,c,p,d){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.RESUME_TO_PROFILE=e.PROFILE_PAGE=e.DETAIL_PAGE=void 0
|
|
e.getProfileOrDetailRouteName=function(e){var t,n
|
|
e.router||(e.router=(0,p.getOwner)(e).lookup("service:router"))
|
|
if(null!==(t=e.router.currentRoute)&&void 0!==t&&null!==(n=t.name)&&void 0!==n&&n.includes("profile.common.details"))return"profile.common.details"
|
|
return"profile.common.profile"}
|
|
e.setupCloseSubrouteAction=function(e){var r,c,p,u,m
|
|
return r=(0,o.inject)("global-services@window"),c=class extends e{constructor(){super(...arguments);(0,t.default)(this,"windowService",p,this);(0,t.default)(this,"router",u,this);(0,t.default)(this,"lix",m,this);(0,n.default)(this,"transitionedFrom",void 0);(0,n.default)(this,"isHistoryBackAction",void 0)
|
|
this.router.on("routeWillChange",this.routeWillTransition.bind(this))}willDestroy(){(0,d.removeEventListener)(this,this.router,"routeWillChange",this.routeWillTransition.bind(this))}routeWillTransition(e){e.data.didUseHistoryBack=this.isHistoryBackAction
|
|
this.isHistoryBackAction=!1}closeSubroute(e,t){const[n,...i]=Array.isArray(e)?e:[e]
|
|
if(!l.default||this.transitionedFrom!==n&&this.transitionedFrom!==`${n}.index`)if(t&&(0,a.isArray)(t)){!function(e){if(e&&(0,a.isArray)(e)){let t=!1
|
|
e.forEach((e=>{if(e.queryParams){e.queryParams.restoreScroll=!0
|
|
t=!0}}))
|
|
t||e.push({queryParams:{restoreScroll:!0}})}}(t)
|
|
this.router.transitionTo(n,...i,...t)}else if(t)if(t.queryParams){t.queryParams.restoreScroll=!0
|
|
this.router.transitionTo(n,...i,t)}else this.router.transitionTo(n,...i,t,{queryParams:{restoreScroll:!0}})
|
|
else this.router.transitionTo(n,...i,{queryParams:{restoreScroll:!0}})
|
|
else{this.isHistoryBackAction=!0
|
|
this.windowService.getHistory().back()}}},p=(0,i.default)(c.prototype,"windowService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,i.default)(c.prototype,"router",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,i.default)(c.prototype,"lix",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(c.prototype,"closeSubroute",[s.action],Object.getOwnPropertyDescriptor(c.prototype,"closeSubroute"),c.prototype),c}
|
|
e.setupCloseSubrouteInRoute=function(e){var r,l
|
|
return r=class extends e{constructor(){super(...arguments);(0,t.default)(this,"lix",l,this);(0,n.default)(this,"transitionedFrom",void 0);(0,n.default)(this,"isOffRoute",!1)}queryParamsDidChange(){var e,t
|
|
null===(e=super.actions)||void 0===e||null===(t=e.queryParamsDidChange)||void 0===t||t.call(this,...arguments)
|
|
this.controller&&!this.isOffRoute&&(this.controller.transitionedFrom="")
|
|
return!0}didTransition(){var e,t
|
|
null===(e=super.actions)||void 0===e||null===(t=e.didTransition)||void 0===t||t.call(this,...arguments)
|
|
this.isOffRoute=!1}willTransition(){var e,t
|
|
null===(e=super.actions)||void 0===e||null===(t=e.willTransition)||void 0===t||t.call(this,...arguments)
|
|
this.isOffRoute=!0}beforeModel(e){var t
|
|
super.beforeModel(...arguments)
|
|
const n=null==e||null===(t=e.from)||void 0===t?void 0:t.name
|
|
this.transitionedFrom=n===u||n===m||n===f?n:""}setupController(e){super.setupController(...arguments)
|
|
e.transitionedFrom=this.transitionedFrom}},l=(0,i.default)(r.prototype,"lix",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(r.prototype,"queryParamsDidChange",[s.action],Object.getOwnPropertyDescriptor(r.prototype,"queryParamsDidChange"),r.prototype),(0,i.default)(r.prototype,"didTransition",[s.action],Object.getOwnPropertyDescriptor(r.prototype,"didTransition"),r.prototype),(0,i.default)(r.prototype,"willTransition",[s.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),r}
|
|
const u=e.PROFILE_PAGE="profile.common.profile.index",m=e.DETAIL_PAGE="profile.common.details.index",f=e.RESUME_TO_PROFILE="resume-to-profile.index.index"}))
|
|
define("profile-tetris-shared/utils/tetris-card-helpers",["exports","ember-batcher"],(function(e,t){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.scrollToCardAndFocus=function(e){e&&(0,t.mutateDOM)((()=>{const t=e.closest("section")
|
|
e.scrollIntoView(!0)
|
|
null==t||t.focus()}))}}))
|
|
define("profile-tetris-shared/utils/tetris-graphql-helpers",["exports","rsvp","@ember-data/adapter/error"],(function(e,t,n){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.processGraphQLResponse=function(e){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
|
|
if(!i)return e.errors?(0,t.reject)(new n.default(e.errors)):e
|
|
return e}}))
|
|
define("publishing-shared/components/-private/i18n-strings",["exports","@ember/template-factory","@ember/component/template-only","@ember/component"],(function(e,t,n,i){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const r=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"i3g3TpfS",block:'[[[1,"\\n"],[1,"\\n"],[1," "]],[],false,[]]',moduleName:"publishing-shared/components/-private/i18n-strings.gts",isStrictMode:!0}),(0,n.default)("i18n-strings","I18nStrings"))
|
|
e.default=r}))
|
|
define("publishing-shared/components/company-actor-detour",["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","graphql-queries/queries/service-marketplace/admin-widget.graphql","@glimmer/tracking","@glimmer/component","@ember/service","@ember/object","ember-cli-pemberly-i18n/helpers/t","publishing-shared/components/company-actor-list-item","global-helpers/helpers/eq","dash-interop-helper/helpers/get-graphql-value-with-dash-fallback","artdeco-button/components/artdeco-button","ember-cli-pemberly-tracking/modifiers/track-interaction","@ember/modifier"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var v,T,C,E,w,P,S,O,k,A,I,M,D
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"7v0BOboH",block:'[[[1,"\\n"],[1," "],[10,"form"],[12],[1,"\\n "],[10,"fieldset"],[12],[1,"\\n "],[10,"legend"],[14,0,"visually-hidden"],[12],[1,"\\n "],[1,[28,[32,0],["i18n_actor_btn_a11y_label","publishing-shared/components/company-actor-detour"],[["label"],[[30,0,["fullName"]]]]]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"artdeco-list share-generic-list"],[14,"role","radiogroup"],[12],[1,"\\n "],[8,[32,1],null,[["@id","@image","@imageClass","@isSelected","@name","@onClick"],[[30,0,["authenticatedUser","miniProfile","entityUrn"]],[30,0,["authenticatedUser","miniProfile","picture"]],"EntityPhoto-circle-2",[28,[32,2],[[30,0,["selectedEntity"]],[30,0,["authenticatedUser","miniProfile","entityUrn"]]],null],[30,0,["fullName"]],[30,0,["onActorSelect"]]]],null],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["actorEntities"]]],null]],null],null,[[[1," "],[8,[32,1],null,[["@id","@image","@imageClass","@isSelected","@name","@onClick"],[[30,1,["entityUrn"]],[28,[32,3],[[30,1],"logoResolutionResult.vectorImage"],null],"EntityPhoto-square-2",[28,[32,2],[[30,0,["selectedEntity"]],[30,1,["entityUrn"]]],null],[30,1,["name"]],[30,0,["onActorSelect"]]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"share-box-footer"],[12],[1,"\\n "],[10,0],[14,0,"share-box-footer__main-actions"],[12],[1,"\\n "],[8,[32,4],[[4,[32,5],["click",[30,0,["onNext"]]],null],[4,[32,6],["pages_publishing_actor_next"],null]],[["@text","@type","@controlType","@size","@class"],[[28,[32,0],["i18n_next","publishing-shared/components/company-actor-detour"],null],"primary","button",2,"ml2"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["entity"],false,["each","-track-array"]]',moduleName:"publishing-shared/components/company-actor-detour.gjs",scope:()=>[m.default,f.default,h.default,g.default,b.default,_.on,y.default],isStrictMode:!0}),(v=(0,d.inject)("authentication@authenticated-user"),T=(0,d.inject)("formatter"),C=(0,d.inject)("i18n"),E=(0,d.inject)("router"),w=(0,d.inject)("@linkedin/ember-restli-graphql@graphql"),P=class e extends p.default{get fullName(){return this.formatter.formatName((0,u.getProperties)((0,u.get)(this,"authenticatedUser.miniProfile"),"firstName","maidenName","lastName"),"full")}constructor(){var n,i
|
|
super(...arguments);(0,t.default)(this,"authenticatedUser",S,this);(0,t.default)(this,"formatter",O,this);(0,t.default)(this,"i18n",k,this);(0,t.default)(this,"router",A,this);(0,t.default)(this,"selectedEntity",I,this);(0,t.default)(this,"actorEntities",M,this);(0,t.default)(this,"graphql",D,this)
|
|
null===(n=(i=this.args).updateShareboxModalConfig)||void 0===n||n.call(i,{modalHeader:this.i18n.lookupTranslation(e,"i18n_detour_header")(),controlName:"pages_publishing_actor_close",shouldFocusOnHeader:!0})
|
|
this.fetchPagesAdminOrganization().then((e=>{if(!this.isDestroying){this.selectedEntity=(0,u.get)(this,"authenticatedUser.miniProfile.entityUrn")
|
|
this.actorEntities=(0,u.get)(e,"data.organizationDashCompaniesByViewerPermissions.elements")}}))}fetchPagesAdminOrganization(){return this.graphql.executeQuery(s.default,{start:this.orgsPaginationStart,viewerPermissions:{canCreateOrganicShare:!0}})}onActorSelect(e){this.selectedEntity=e}onNext(){this.router.transitionTo("publishing.post.new.index",{queryParams:{author:this.selectedEntity}})}},S=(0,i.default)(P.prototype,"authenticatedUser",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,i.default)(P.prototype,"formatter",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,i.default)(P.prototype,"i18n",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,i.default)(P.prototype,"router",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,i.default)(P.prototype,"selectedEntity",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=(0,i.default)(P.prototype,"actorEntities",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),D=(0,i.default)(P.prototype,"graphql",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(P.prototype,"onActorSelect",[u.action],Object.getOwnPropertyDescriptor(P.prototype,"onActorSelect"),P.prototype),(0,i.default)(P.prototype,"onNext",[u.action],Object.getOwnPropertyDescriptor(P.prototype,"onNext"),P.prototype),P))}))
|
|
define("publishing-shared/components/company-actor-list-item",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","@ember/modifier","ember-cli-pemberly-tracking/modifiers/track-interaction","ember-vector-images/components/lazy-image","@ember/helper"],(function(e,t,n,i,r,o,l,a){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const s=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"Iw8eBoYr",block:'[[[1,"\\n "],[10,0],[14,0,"p0"],[12],[1,"\\n "],[11,"button"],[24,"role","radio"],[24,0,"publishing-s-company-list__item-button t-14 t-bold t-black"],[16,"aria-checked",[52,[30,1],"true","false"]],[24,4,"button"],[4,[32,0],["click",[28,[32,1],[[30,2],[30,3]],null]],null],[4,[32,2],["share_company_actor_select"],null],[12],[1,"\\n "],[10,0],[14,0,"publishing-s-company-list__item-row"],[12],[1,"\\n "],[10,0],[14,0,"publishing-s-company-list__content"],[12],[1,"\\n "],[10,1],[14,0,"publishing-s-company-list__image"],[12],[1,"\\n "],[8,[32,3],null,[["@alt","@class","@desiredWidth","@ghostType","@image","@role"],["",[30,4],50,"person",[30,5],"presentation"]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"overflow-hidden text-align-left"],[12],[1,"\\n "],[10,0],[14,0,"publishing-s-company-list__text pl3 t-black"],[12],[1,"\\n "],[10,1],[14,0,"publishing-s-company-list__description-double-line"],[12],[1,"\\n "],[1,[30,6]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"publishing-s-company-list__radio-button"],[12],[1,"\\n"],[1," "],[10,"input"],[15,1,[28,[32,4],["share-generic-list-radio-",[30,3]],null]],[15,"checked",[30,1]],[14,"tabindex","-1"],[14,4,"radio"],[12],[13],[1,"\\n "],[10,"label"],[15,"for",[28,[32,4],["share-generic-list-radio-",[30,3]],null]],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],["@isSelected","@onClick","@id","@imageClass","@image","@name"],false,["if"]]',moduleName:"publishing-shared/components/company-actor-list-item.gjs",scope:()=>[r.on,a.fn,o.default,l.default,a.concat],isStrictMode:!0}),(0,n.default)("company-actor-list-item","CompanyActorListItem"))
|
|
e.default=s}))
|
|
define("publishing-shared/components/entity-embed",["exports","@ember/template-factory","@ember/component","app-aware-link/components/app-aware-link","artdeco-entity-lockup/components/artdeco-entity-lockup","artdeco-button/components/artdeco-button","@glimmer/component","ember-vector-images/components/lazy-image","text-view-model/components/text-view-model-v2","ember-cli-pemberly-i18n/helpers/t"],(function(e,t,n,i,r,o,l,a,s,c){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
class p extends l.default{get imageGhostType(){return{EVENT:"events",GROUP:"group",JOB:"job",MEMBER:"person",NEWSLETTER:"content",ORGANIZATION:"company"}[this.args.entityType]}get imageShape(){return"MEMBER"===this.args.entityType?"circle":"square"}}e.default=p;(0,n.setComponentTemplate)((0,t.createTemplateFactory)({id:"6wgVCwC9",block:'[[[1,"\\n"],[1," "],[10,0],[14,0,"publishing-s-entity-embed"],[12],[1,"\\n "],[8,[32,0],[[24,0,"publishing-s-entity-embed__link"],[24,"target","_blank"]],[["@href","@useDefaultLinkBehavior"],[[30,1],true]],[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"flex-wrap"]],[["@size"],[6]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"flex-shrink-zero p4"],[12],[1,"\\n "],[8,[30,2,["image"]],null,[["@type"],[[30,0,["imageShape"]]]],[["default"],[[[[1,"\\n "],[8,[32,2],null,[["@ghostType","@image"],[[30,0,["imageGhostType"]],[30,3]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[30,2,["content"]],null,null,[["default"],[[[[1,"\\n "],[8,[30,2,["title"]],[[24,0,"hoverable-link-text mb2 text-heading-xlarge"]],null,[["default"],[[[[1,"\\n "],[8,[32,3],null,[["@tvm"],[[30,4]]],null],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[30,2,["subtitle"]],[[24,0,"mb2 text-body-medium"]],null,[["default"],[[[[1,"\\n "],[8,[32,3],null,[["@tvm"],[[30,5]]],null],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[30,2,["metadata"]],[[24,0,"text-body-medium"]],null,[["default"],[[[[1,"\\n "],[8,[32,3],null,[["@tvm"],[[30,6]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],[2]]]]],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[10,0],[14,0,"p4"],[12],[1,"\\n"],[41,[30,7],[[[1," "],[8,[32,4],null,[["@icon","@size","@text","@type"],["add","2","Follow","secondary"]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,0],[[24,"target","_blank"]],[["@href","@useDefaultLinkBehavior"],[[30,1],true]],[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@icon","@iconRight","@size","@text","@type"],["link-external",true,"2",[28,[32,5],["i18n_cta_fallback_text","publishing-shared/components/entity-embed"],null],"secondary"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["@destinationUrl","elements","@image","@title","@description","@subDescription","@ctaButton"],false,["if"]]',moduleName:"publishing-shared/components/entity-embed.gjs",scope:()=>[i.default,r.default,a.default,s.default,o.default,c.default],isStrictMode:!0}),p)}))
|
|
define("publishing-shared/components/newsletter-access-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/helper","@ember/component","@ember/debug","@ember/object","@glimmer/component","@ember/service","@ember/render-modifiers/modifiers/did-insert","@ember/modifier","ember-cli-pemberly-tracking/modifiers/track-interaction","ember-cli-pemberly-i18n/helpers/t","artdeco-button/components/artdeco-button"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var b,y,_
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"jgfTHveV",block:'[[[1,"\\n"],[1," "],[11,0],[24,0,"publishing-s-newsletter-access-banner"],[4,[32,0],[[30,0,["onDidInsertHandler"]]],null],[12],[1,"\\n "],[10,0],[14,0,"publishing-s-newsletter-access-banner__inner"],[12],[1,"\\n "],[10,0],[14,0,"publishing-s-newsletter-access-banner__content pv4"],[12],[1,"\\n "],[10,"h3"],[14,0,"t-light mb2"],[12],[1,[30,1]],[13],[1,"\\n "],[10,2],[14,0,"publishing-s-newsletter-access-banner__message t-14 mb3"],[12],[1,[30,2]],[13],[1,"\\n "],[11,"button"],[24,0,"link t-16"],[24,4,"button"],[4,[32,1],["click",[30,0,["onPrimaryActionClick"]]],null],[4,[32,2],["onboarding_banner_cta"],null],[12],[1,"\\n "],[1,[28,[32,3],["i18n_banner_cta_primary","publishing-shared/components/newsletter-access-banner"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,4],[[4,[32,1],["click",[30,0,["onDismissButtonClick"]]],null],[4,[32,2],["onboarding_banner_dismiss"],null]],[["@class","@type","@circle","@icon","@color"],["publishing-s-newsletter-access-banner__dismiss-button absolute","tertiary",true,"close","muted"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@headlineText","@messageText"],false,[]]',moduleName:"publishing-shared/components/newsletter-access-banner.gjs",scope:()=>[u.default,m.on,f.default,h.default,g.default],isStrictMode:!0}),(b=(0,d.inject)("lego@tracking"),y=class extends p.default{constructor(){super(...arguments);(0,t.default)(this,"legoTracking",_,this)}get legoTrackingToken(){return this.args.legoTrackingToken}get headerText(){return this.args.headerText}get messageText(){return this.args.messageText}onDidInsertHandler(){const{legoTracking:e}=this
|
|
e.sendLegoImpression(this.legoTrackingToken,e.LEGO_IMPRESSION_VISIBILITY_SHOW)}onPrimaryActionClick(){const{legoTracking:e}=this
|
|
e.sendLegoAction(this.legoTrackingToken,e.LEGO_ACTION_PRIMARY)
|
|
"function"==typeof this.args.onPrimaryAction&&this.args.onPrimaryAction()}onDismissButtonClick(){const{legoTracking:e}=this
|
|
e.sendLegoAction(this.legoTrackingToken,e.LEGO_ACTION_DISMISS)
|
|
"function"==typeof this.args.onDismiss&&this.args.onDismiss()}},_=(0,i.default)(y.prototype,"legoTracking",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(y.prototype,"onDidInsertHandler",[c.action],Object.getOwnPropertyDescriptor(y.prototype,"onDidInsertHandler"),y.prototype),(0,i.default)(y.prototype,"onPrimaryActionClick",[c.action],Object.getOwnPropertyDescriptor(y.prototype,"onPrimaryActionClick"),y.prototype),(0,i.default)(y.prototype,"onDismissButtonClick",[c.action],Object.getOwnPropertyDescriptor(y.prototype,"onDismissButtonClick"),y.prototype),y))}))
|
|
define("publishing-shared/components/publish-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","publishing-shared/utils/visibility-options","global-utils/utils/url","publishing-shared/utils/preview-builder","@ember/service","@ember/object","@glimmer/component","sharing-entry/components/share-box-modal","publishing-shared/components/-private/i18n-strings","@ember/helper"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var b,y,_,v,T,C,E,w,P,S,O,k,A,I,M,D,N
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"bvijONEW",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[8,[32,0],null,[["@fixedVisibilityType","@customPrimaryButtonText","@customTextInputI18nPlaceholderText","@disableDetourPreviewRemoval","@disableSuccessToasts","@initialDetourManager","@isShareboxModalOpen","@onCloseShareboxModal","@onShareSuccess","@shareOrigin","@actorsOverride","@onShareFailure"],[[30,0,["shareboxContainerVisibilityType"]],[30,0,["modalTranslations","publishText"]],[52,[30,2],[30,0,["modalTranslations","publishNewsletterPromptText"]],[30,0,["modalTranslations","publishArticlePromptText"]]],true,true,[30,0,["initialDetourManager"]],[30,1],[30,3],[30,0,["onShareSuccess"]],"PUBLISHING",[28,[32,1],[[30,4]],null],[30,0,["watchmanTrackingFailEvent"]]]],null],[1,"\\n"]],[]],null],[1," "]],["@isOpen","@currentNewsletter","@onClose","@currentAuthor"],false,["if"]]',moduleName:"publishing-shared/components/publish-modal.gjs",scope:()=>[f.default,g.array],isStrictMode:!0}),(b=(0,d.inject)("client-sensor-web@client-sensor"),y=(0,d.inject)("global-services@internal-logger"),_=(0,d.inject)("i18n"),v=(0,d.inject)("m3-schema"),T=(0,d.inject)("persistent-toast-manager@persistent-toast-manager"),C=(0,d.inject)("router"),E=(0,d.inject)("tracking"),w=(0,d.inject)("watchman-tracking@watchman-tracking"),P=class extends m.default{constructor(){super(...arguments);(0,t.default)(this,"clientSensor",S,this);(0,t.default)(this,"internalLogger",O,this);(0,t.default)(this,"i18n",k,this);(0,t.default)(this,"m3Schema",A,this);(0,t.default)(this,"persistentToastManager",I,this);(0,t.default)(this,"router",M,this);(0,t.default)(this,"tracking",D,this);(0,t.default)(this,"watchmanTracking",N,this)}get modalTranslations(){return{publishText:this.i18n.lookupTranslation(h.default,"i18n_publish_button")(),publishArticlePromptText:this.i18n.lookupTranslation(h.default,"i18n_tell_your_network_article")(),publishNewsletterPromptText:this.i18n.lookupTranslation(h.default,"i18n_tell_your_network_newsletter")()}}get shareboxContainerVisibilityType(){return(0,s.getVisibilityOptions)(this.i18n,{isCompanyAuthor:this.args.isPageAuthor,newsletterEntityUrn:this.args.currentNewsletter?this.args.currentNewsletter.entityUrn:null,newsletterTitle:this.args.currentNewsletter?this.args.currentNewsletter.title:null})}get initialDetourManager(){return(0,p.default)(this.args.currentArticle,this.m3Schema,this.watchmanTracking,this.args.isUsingDashAndGql)}onShareSuccess(e,t,n){this.internalLogger.log({postState:n},["publishing:controllers/post:onShareSuccess"])
|
|
"SCHEDULED"===n?this.didScheduleArticle():this.args.publishArticle().then((e=>{if(!(0,a.isDestroying)(this)){this.watchmanTracking.endInteraction({userInteraction:"article_editor_publish_article_endSuccess",userJourney:"publish-article",groupName:"publishing-reliability"})
|
|
return this.didPublishArticle(e)}})).catch((e=>{if((0,a.isDestroying)(this))throw e
|
|
this.clientSensor.incrementMetricCounter({groupName:"publishing",metricName:"article-publish-failed"})
|
|
this.persistentToastManager.error({message:this.i18n.lookupTranslation(h.default,"i18n_error_publish_failure")()})
|
|
this.watchmanTrackingFailEvent()})).finally((()=>{var e,t
|
|
if(!(0,a.isDestroying)(this))return null===(e=(t=this.args).onClose)||void 0===e?void 0:e.call(t)}))}watchmanTrackingFailEvent(){this.watchmanTracking.endInteractionWithError({userInteraction:"article_editor_publish_article_endError",userJourney:"publish-article",groupName:"publishing-reliability"})}didPublishArticle(e){const t=e.series
|
|
if(t){if(1===t.issueCount){const e=(0,c.getInAppParams)(this.router,t.shareableLink)
|
|
if(e)return this.router.transitionTo(e)}}return this.router.transitionTo("article-reader.index",e.permalink,{queryParams:{published:"t"}})}didScheduleArticle(){this.tracking.fireInteractionEvent("scheduled_publish_button")
|
|
this.router.transitionTo("article-editor.index.new",{queryParams:this.router.currentRoute.queryParams})
|
|
this.persistentToastManager.success({message:this.i18n.lookupTranslation(h.default,"i18n_article_scheduled"),ctaText:this.i18n.lookupTranslation(h.default,"i18n_see_scheduled_articles"),ctaRouteName:"article-editor.index.manage.scheduled",ctaOptions:{queryParams:this.router.currentRoute.queryParams}})}},S=(0,i.default)(P.prototype,"clientSensor",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,i.default)(P.prototype,"internalLogger",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,i.default)(P.prototype,"i18n",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,i.default)(P.prototype,"m3Schema",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,i.default)(P.prototype,"persistentToastManager",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,i.default)(P.prototype,"router",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,i.default)(P.prototype,"tracking",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,i.default)(P.prototype,"watchmanTracking",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(P.prototype,"onShareSuccess",[u.action],Object.getOwnPropertyDescriptor(P.prototype,"onShareSuccess"),P.prototype),(0,i.default)(P.prototype,"watchmanTrackingFailEvent",[u.action],Object.getOwnPropertyDescriptor(P.prototype,"watchmanTrackingFailEvent"),P.prototype),P))}))
|
|
define("publishing-shared/components/series-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/keyboard-utils","rsvp","publishing-tracking/constants/tracking","publishing-shared/utils/utils","publishing-shared/constants/series","publishing-shared/utils/data-request","publishing-shared/utils/get-timespan","publishing-shared/utils/get-cadence","publishing-shared/utils/file-upload","global-utils/utils/urn-converter","global-utils/utils/is-browser","ember-vector-images/utils/vector-url","@linkedin/ember-m3-pdsc-model-builder","@linkedin/ember-pem/utils/failure-tracking-metadata","@glimmer/tracking","@glimmer/component","@ember/service","@ember/object","@ember/destroyable","artdeco-modal/components/artdeco-modal","@ember/render-modifiers/modifiers/did-insert","@ember/render-modifiers/modifiers/did-update","ember-cli-pemberly-i18n/helpers/t","artdeco-text-input/components/artdeco-text-input","@ember/helper","global-modifiers/modifiers/focus","global-helpers/helpers/eq","artdeco-inline-feedback/components/artdeco-inline-feedback","@ember/modifier","publishing-shared/helpers/cadence","artdeco-loader/components/artdeco-loader","hue-web-icons/components/icon","artdeco-button/components/artdeco-button"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b,y,_,v,T,C,E,w,P,S,O,k,A,I,M,D,N,R,x,U,L,j,F){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var z,V,B,G,q,W,H,K,Y,$,Q,J,X,Z,ee,te,ne,ie,re,oe,le,ae,se,ce,pe,de,ue,me,fe,he,ge,be,ye,_e,ve
|
|
const Te={description:"series-modal__description-input",title:"series-modal__title"},Ce={title:"series-modal__title",cadence:"series-modal__frequency-select"}
|
|
Ce.description=Te.description
|
|
const Ee="title",we="description",Pe="cadence"
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"QpuUQON8",block:'[[[1,"\\n"],[1," "],[8,[32,0],[[4,[32,1],[[30,0,["loadContentSeriesData"]]],null],[4,[32,2],[[30,0,["loadContentSeriesData"]],[30,3],[30,4],[30,1]],null]],[["@closeButtonInHeader","@dismissModal","@headerId","@isOpen","@modalClasses","@returnFocusTo","@size"],[true,[30,0,["closeModal"]],"series-modal__header",[30,1],"series-modal",[30,2],"large"]],[["default"],[[[[1,"\\n "],[8,[30,5,["artdeco-modal-header"]],null,[["@classNames"],["ph5"]],[["default"],[[[[1,"\\n "],[10,"h2"],[14,1,"series-modal__header"],[12],[1,"\\n"],[41,[30,3],[[[1," "],[1,[28,[32,3],["i18n_edit_series_details","publishing-shared/components/series-modal"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,3],["i18n_create_new_series","publishing-shared/components/series-modal"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[30,5,["artdeco-modal-content"]],null,[["@classNames"],["ph5"]],[["default"],[[[[1,"\\n "],[10,2],[14,0,"series-modal__newsletter-cap-description pt1 pb2 p-4 t-sans t-14 t-black"],[12],[1,"\\n "],[1,[30,0,["newsletterCapDescription"]]],[1,"\\n "],[10,3],[14,6,"/help/linkedin/answer/97507"],[14,"rel","noopener noreferrer"],[14,"target","_blank"],[15,"aria-label",[28,[32,3],["i18n_a11y_learn_more","publishing-shared/components/series-modal"],null]],[14,"tabindex","0"],[12],[1,"\\n "],[1,[28,[32,3],["i18n_learn_more","publishing-shared/components/series-modal"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"h3"],[14,0,"t-16 t-black t-bold"],[12],[1,"\\n "],[1,[28,[32,3],["i18n_newsletter_details","publishing-shared/components/series-modal"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"publishing-s-series-modal__title-frequency-field-container display-flex pt2 flex-wrap-wrap justify-space-between"],[12],[1,"\\n "],[10,0],[14,0,"publishing-s-series-modal__field-container publishing-s-series-modal__field-container--title flex-grow-1"],[12],[1,"\\n "],[8,[32,4],[[4,[32,6],null,[["onSelector","when"],["input",[28,[32,7],[[30,0,["elementToBeFocussed"]],"title"],null]]]]],[["@inputId","@label","@placeholder","@value","@maxLength","@required","@restrictToMaxLength","@name","@onKeyUp","@onFocusIn","@aria-describedby"],["series-modal__title",[28,[32,3],["i18n_series_title","publishing-shared/components/series-modal"],null],[28,[32,3],["i18n_series_title_placeholder","publishing-shared/components/series-modal"],null],[30,0,["title"]],30,true,true,"title",[30,0,["setTitle"]],[28,[32,5],[[30,0,["fireTrackingEvent"]],"series_modal_title"],null],"series-title-error"]],null],[1,"\\n "],[10,1],[15,0,[29,["publishing-s-series-modal__error\\n ",[52,[51,[30,0,["titleError"]]],"visually-hidden"]]]],[14,1,"series-title-error"],[12],[1,"\\n "],[1,[28,[32,3],["i18n_series_title_required","publishing-shared/components/series-modal"],null]],[1,"\\n "],[13],[1,"\\n"],[41,[30,3],[[[1," "],[8,[32,8],[[16,"aria-label",[28,[32,3],["i18_series_title_change_warning","publishing-shared/components/series-modal"],null]]],[["@class","@type","@message"],["pt1","yield",[28,[32,3],["i18_series_title_change_warning","publishing-shared/components/series-modal"],null]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"publishing-s-series-modal__field-container"],[12],[1,"\\n "],[10,"label"],[14,"for","series-modal__frequency-select"],[14,0,"publishing-s-series-modal__frequency-label publishing-s-series-modal__frequency-label--required mt0"],[12],[1,"\\n "],[1,[28,[32,3],["i18n_how_often_publish","publishing-shared/components/series-modal"],null]],[1,"\\n "],[13],[1,"\\n "],[11,"select"],[24,1,"series-modal__frequency-select"],[24,"required",""],[24,3,"cadence"],[16,2,[30,0,["cadence"]]],[16,"onchange",[30,0,["onCadenceChange"]]],[24,"aria-describedby","series-frequency-error"],[4,[32,6],null,[["when"],[[28,[32,7],[[30,0,["elementToBeFocussed"]],"select"],null]]]],[4,[32,9],["keyup",[30,0,["onKeyUp"]]],null],[12],[1,"\\n "],[10,"option"],[14,"disabled",""],[14,"selected",""],[14,2,""],[12],[1,[28,[32,3],["i18n_select_one","publishing-shared/components/series-modal"],null]],[13],[1,"\\n "],[10,"option"],[14,2,"DAILY"],[15,"selected",[28,[32,7],["i18n_daily",[28,[32,10],[[30,0,["publishFrequency"]]],null]],null]],[12],[1,[28,[32,3],["i18n_daily","publishing-shared/components/series-modal"],null]],[13],[1,"\\n "],[10,"option"],[14,2,"WEEKLY"],[15,"selected",[28,[32,7],["i18n_weekly",[28,[32,10],[[30,0,["publishFrequency"]]],null]],null]],[12],[1,[28,[32,3],["i18n_weekly","publishing-shared/components/series-modal"],null]],[13],[1,"\\n "],[10,"option"],[14,2,"TWICE_MONTH"],[15,"selected",[28,[32,7],["i18n_twice_month",[28,[32,10],[[30,0,["publishFrequency"]]],null]],null]],[12],[1,[28,[32,3],["i18n_twice_month","publishing-shared/components/series-modal"],null]],[13],[1,"\\n "],[10,"option"],[14,2,"MONTHLY"],[15,"selected",[28,[32,7],["i18n_monthly",[28,[32,10],[[30,0,["publishFrequency"]]],null]],null]],[12],[1,[28,[32,3],["i18n_monthly","publishing-shared/components/series-modal"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[15,0,[29,["publishing-s-series-modal__error\\n ",[52,[51,[30,0,["cadenceError"]]],"visually-hidden"]]]],[14,1,"series-frequency-error"],[12],[1,"\\n "],[1,[28,[32,3],["i18n_series_cadence_required","publishing-shared/components/series-modal"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"display-flex pt3"],[12],[1,"\\n "],[10,0],[14,0,"publishing-s-series-modal__field-container publishing-s-series-modal__field-container--description"],[12],[1,"\\n "],[8,[32,4],[[4,[32,6],null,[["onSelector","when"],["input",[28,[32,7],[[30,0,["elementToBeFocussed"]],"description"],null]]]]],[["@inputId","@label","@placeholder","@value","@maxLength","@required","@restrictToMaxLength","@name","@onKeyUp","@onFocusIn","@aria-describedby"],["series-modal__description-input",[28,[32,3],["i18n_series_description","publishing-shared/components/series-modal"],null],[28,[32,3],["i18n_series_description_placeholder","publishing-shared/components/series-modal"],null],[30,0,["description"]],120,true,true,"description",[30,0,["setDescription"]],[28,[32,5],[[30,0,["fireTrackingEvent"]],"series_modal_description"],null],"series-description-error"]],null],[1,"\\n "],[10,1],[15,0,[29,["publishing-s-series-modal__error\\n ",[52,[51,[30,0,["descriptionError"]]],"visually-hidden"]]]],[14,1,"series-description-error"],[12],[1,"\\n "],[1,[28,[32,3],["i18n_series_description_required","publishing-shared/components/series-modal"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"t-12 t-black--light pv1"],[12],[1,"\\n "],[1,[28,[32,3],["i18n_series_description_explainer","publishing-shared/components/series-modal"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"display-flex align-items-center mt2"],[12],[1,"\\n"],[41,[30,0,["isImageLoading"]],[[[1," "],[10,0],[14,0,"publishing-s-series-modal__logo-loader mr4"],[12],[1,"\\n "],[8,[32,11],null,[["@size"],["small"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"publishing-s-series-modal__logo-entity-container mr4"],[14,"role","alert"],[12],[1,"\\n"],[41,[30,0,["logoPreviewPath"]],[[[1," "],[10,"img"],[14,0,"publishing-s-series-modal__logo-entity"],[15,"src",[30,0,["logoPreviewPath"]]],[15,"alt",[30,0,["title"]]],[12],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"EntityPhoto-square-5-ghost-content"],[12],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]]],[1,"\\n "],[10,0],[14,0,"publishing-s-series-modal__field-container flex-1"],[12],[1,"\\n "],[10,2],[14,0,"t-14 t-black pb1"],[12],[1,"\\n "],[1,[28,[32,3],["i18n_add_image","publishing-shared/components/series-modal"],null]],[1,"\\n "],[13],[1,"\\n "],[10,2],[14,0,"t-12 t-black--light pb2"],[12],[1,"\\n "],[1,[28,[32,3],["i18n_recommended_image_size","publishing-shared/components/series-modal"],null]],[1,"\\n "],[13],[1,"\\n "],[11,"input"],[24,1,"upload-image"],[24,0,"visually-hidden publishing-s-series-modal__upload-image-input"],[24,"accept","image/*"],[24,4,"file"],[4,[32,9],["change",[30,0,["fileSelected"]]],null],[12],[13],[1,"\\n "],[11,"label"],[24,0,"artdeco-button artdeco-button--muted artdeco-button--2 artdeco-button--secondary mv0"],[24,"for","upload-image"],[4,[32,9],["click",[30,0,["onUploadImageClick"]]],null],[12],[1,"\\n "],[1,[28,[32,3],["i18n_upload_image","publishing-shared/components/series-modal"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["logoTypeError"]],[[[1," "],[10,"label"],[14,0,"series-modal__error"],[12],[1,"\\n "],[1,[28,[32,3],["i18n_logo_type_error","publishing-shared/components/series-modal"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["logoSizeError"]],[[[1," "],[10,"label"],[14,0,"series-modal__error"],[12],[1,"\\n "],[1,[28,[32,3],["i18n_logo_type_error","publishing-shared/components/series-modal"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["hasGenericError"]],[[[1," "],[10,"label"],[14,0,"publishing-s-series-modal__error"],[12],[1,"\\n "],[1,[28,[32,3],["i18_series_error_generic","publishing-shared/components/series-modal"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["issueCount"]]],[[[1," "],[10,0],[14,0,"publishing-s-series-modal__invite-subscribe-container"],[12],[1,"\\n\\n "],[10,0],[14,0,"display-flex align-items-center"],[12],[1,"\\n "],[10,0],[14,0,"publishing-s-series-modal__invite-subscribe-illustration mail-open-56 illustration-48 mr2"],[12],[13],[1,"\\n "],[10,0],[14,0,"mv0"],[12],[1,"\\n "],[10,"h4"],[14,0,"t-14 t-black t-bold mb2"],[12],[1,"\\n "],[1,[52,[30,0,["isPageAuthor"]],[28,[32,3],["i18n_series_invite_headline_pages","publishing-shared/components/series-modal"],null],[28,[32,3],["i18n_series_invite_headline_members","publishing-shared/components/series-modal"],null]]],[1,"\\n "],[13],[1,"\\n "],[10,2],[14,0,"t-14 t-black"],[12],[1,"\\n "],[1,[52,[30,0,["isPageAuthor"]],[28,[32,3],["i18n_series_invite_notify_pages","publishing-shared/components/series-modal"],null],[28,[32,3],["i18n_series_invite_notify_members","publishing-shared/components/series-modal"],null]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[51,[30,3]],[[[1," "],[10,0],[14,0,"display-flex align-items-center mt5"],[12],[1,"\\n "],[10,0],[14,0,"publishing-s-series-modal__invite-subscribe-illustration success-check illustration-48 mr2"],[12],[13],[1,"\\n "],[10,0],[14,0,"mv0"],[12],[1,"\\n "],[10,"h4"],[14,0,"t-14 t-black t-bold mb2"],[12],[1,"\\n "],[1,[52,[30,0,["isPageAuthor"]],[28,[32,3],["i18n_series_subscribe_headline_pages","publishing-shared/components/series-modal"],null],[28,[32,3],["i18n_series_subscribe_headline_members","publishing-shared/components/series-modal"],null]]],[1,"\\n "],[13],[1,"\\n "],[10,2],[14,0,"t-14 t-black"],[12],[1,"\\n "],[1,[28,[32,3],["i18n_series_subscribe_subheadline","publishing-shared/components/series-modal"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"display-flex align-items-center mt5"],[12],[1,"\\n "],[10,0],[14,0,"publishing-s-series-modal__feature-on-profile-illustration"],[12],[13],[1,"\\n "],[10,0],[14,0,"mv0"],[12],[1,"\\n "],[10,"h4"],[14,0,"t-14 t-black t-bold mb2"],[12],[1,"\\n "],[1,[52,[30,0,["isPageAuthor"]],[28,[32,3],["i18n_series_feature_on_profile_headline_pages","publishing-shared/components/series-modal"],null],[28,[32,3],["i18n_series_feature_on_profile_headline_members","publishing-shared/components/series-modal"],null]]],[1,"\\n "],[13],[1,"\\n "],[10,2],[14,0,"t-14 t-black"],[12],[1,"\\n "],[1,[52,[30,0,["isPageAuthor"]],[28,[32,3],["i18n_series_feature_on_profile_desc_pages","publishing-shared/components/series-modal"],null],[28,[32,3],["i18n_series_feature_on_profile_desc_members","publishing-shared/components/series-modal"],null]]],[1,"\\n "],[10,3],[14,6,"/help/linkedin/answer/a550399"],[14,"rel","noopener noreferrer"],[14,"target","_blank"],[15,"aria-label",[28,[32,3],["i18n_a11y_learn_more","publishing-shared/components/series-modal"],null]],[14,"tabindex","0"],[12],[1,"\\n "],[1,[28,[32,3],["i18n_learn_more","publishing-shared/components/series-modal"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n\\n "],[8,[30,5,["artdeco-modal-footer"]],null,[["@has-divider","@classNames"],["true","ph5"]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"display-flex justify-flex-end"],[12],[1,"\\n"],[41,[30,0,["serverValidationError"]],[[[1," "],[10,0],[14,0,"publishing-s-series-modal__server-validation-error"],[12],[1,"\\n "],[10,1],[14,0,"publishing-s-series-modal__server-validation-error-icon"],[12],[1,"\\n "],[8,[32,12],null,[["@type","@size","@name"],["system","medium","signal-caution"]],null],[1,"\\n "],[13],[1,"\\n "],[10,2],[14,0,"publishing-s-series-modal__server-validation-error-text t-12"],[12],[1,"\\n "],[1,[30,0,["serverValidationError"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"flex-shrink-zero"],[12],[1,"\\n "],[8,[32,13],[[4,[32,9],["click",[30,0,["closeModal"]]],null]],[["@class","@text","@type"],["series-modal__cancel-button",[28,[32,3],["i18n_cancel","publishing-shared/components/series-modal"],null],"secondary"]],null],[1,"\\n "],[8,[32,13],[[4,[32,9],["click",[52,[30,3],[30,0,["onEditSubmit"]],[30,0,["onCreateSubmit"]]]],null]],[["@class","@text"],["series-modal__submit-button ml1",[28,[32,3],["i18n_done","publishing-shared/components/series-modal"],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[5]]]]],[1,"\\n "]],["@isOpen","@returnFocusTo","@isEditForm","@contentSeriesUrn","modal"],false,["if","unless"]]',moduleName:"publishing-shared/components/series-modal.gjs",scope:()=>[S.default,O.default,k.default,A.default,I.default,M.fn,D.default,N.default,R.default,x.on,U.default,L.default,j.default,F.default],isStrictMode:!0}),(z=(0,E.inject)("@linkedin/ember-restli-graphql@graphql"),V=(0,E.inject)("jet"),B=(0,E.inject)("lix"),G=(0,E.inject)("global-services@store-shim"),q=(0,E.inject)("tracking"),W=(0,E.inject)("vector@vector-media-upload"),H=(0,E.inject)("i18n"),K=(0,E.inject)("persistent-toast-manager@persistent-toast-manager"),Y=class e extends C.default{constructor(){super(...arguments);(0,t.default)(this,"graphql",$,this);(0,t.default)(this,"jet",Q,this);(0,t.default)(this,"lix",J,this);(0,t.default)(this,"storeShim",X,this);(0,t.default)(this,"tracking",Z,this);(0,t.default)(this,"vectorMediaUpload",ee,this);(0,t.default)(this,"i18n",te,this);(0,t.default)(this,"persistentToastManager",ne,this);(0,t.default)(this,"authorSubscribe",ie,this);(0,t.default)(this,"title",re,this);(0,t.default)(this,"cadence",oe,this);(0,t.default)(this,"isImageLoading",le,this);(0,t.default)(this,"description",ae,this);(0,t.default)(this,"publishFrequency",se,this);(0,t.default)(this,"logo",ce,this);(0,t.default)(this,"issueCount",pe,this);(0,t.default)(this,"logoUrn",de,this);(0,t.default)(this,"logoPreviewPath",ue,this);(0,t.default)(this,"titleError",me,this);(0,t.default)(this,"cadenceError",fe,this);(0,t.default)(this,"descriptionError",he,this);(0,t.default)(this,"logoTypeError",ge,this);(0,t.default)(this,"logoSizeError",be,this);(0,t.default)(this,"editSeriesRecord",ye,this);(0,t.default)(this,"serverValidationError",_e,this);(0,t.default)(this,"hasGenericError",ve,this)}get elementToBeFocussed(){return this.titleError?Ee:this.cadenceError?"select":this.descriptionError?we:""}get isContentSeriesGraphQLEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.publishing-graphql-content-series")}get isPageAuthor(){return!!(0,w.get)(this.args,"pageAuthor")}get logoVectorImage(){var e,t,n,i,r
|
|
if(this.isContentSeriesGraphQLEnabled){var o,l,a,s,c
|
|
return null===(o=this.editSeriesRecord)||void 0===o||null===(l=o.logo)||void 0===l||null===(a=l.attributes)||void 0===a||null===(s=a[0])||void 0===s||null===(c=s.detailData)||void 0===c?void 0:c.vectorImage}return null===(e=this.editSeriesRecord)||void 0===e||null===(t=e.logo)||void 0===t||null===(n=t.attributes)||void 0===n||null===(i=n[0])||void 0===i||null===(r=i.detailDataUnion)||void 0===r?void 0:r.vectorImage}get newsletterCapDescription(){return this.i18n.lookupTranslation(e,this.isPageAuthor?"i18n_newsletter_cap_description_pages_v2":"i18n_newsletter_cap_description_members_v2")([{limit:this.args.isMultipleNewslettersEnabled?d.SERIES_CREATION_LIMIT:1}])}isValidLogo(e){if(!(0,h.validImageType)(e.type)){this.logoTypeError=!0
|
|
return!1}if(!(0,h.validImageSize)(e.size,e.type)){this.logoSizeError=!0
|
|
return!1}return!0}_createTimeSpan(e){const{duration:t,unit:n}=(0,m.default)(e)
|
|
return(0,_.buildModel)("com.linkedin.common.TimeSpan",{duration:t,unit:n})}_createSeriesModel(){const e={title:this.title,description:this.description,publishFrequency:this._createTimeSpan(this.cadence),inviteTargetAudiences:!0}
|
|
null!==this.logoUrn&&(e.logoUrn=this.logoUrn)
|
|
if(this.isPageAuthor){const t=(0,w.get)(this.args,"pageAuthor.entityUrn"),n=(0,g.fromUrn)(t).id
|
|
e.authorUnion=(0,_.buildModel)("com.linkedin.voyager.dash.publishing.AuthorEntityUnion",{companyUrn:(0,g.toUrn)("fsd_company",n)})}return this.storeShim.createRecord("com.linkedin.voyager.dash.publishing.ContentSeries",e)}validate(e){this.flushValidations(e)
|
|
let t=!1
|
|
Object.keys(e).forEach((e=>{if(!((0,w.get)(this,e)&&(0,w.get)(this,e).trim())){t=!0
|
|
b.default&&(e===Ee?this.titleError=!0:e===Pe?this.cadenceError=!0:e===we&&(this.descriptionError=!0))}}))
|
|
return t?s.Promise.reject("Failed to validate series model"):s.Promise.resolve()}flushValidations(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|
this.hasGenericError=!1
|
|
this.logoTypeError=!1
|
|
this.logoSizeError=!1
|
|
this.serverValidationError=""
|
|
Object.keys(e).forEach((e=>{b.default&&(e===Ee?this.titleError=!1:e===Pe?this.cadenceError=!1:e===we&&(this.descriptionError=!1))}))}loadContentSeriesData(){if(this.args.isEditForm&&this.args.contentSeriesUrn&&this.args.isOpen){this.flushValidations()
|
|
const e={failures:[new v.default("find-series","failed",{productName:"Voyager - Article Creator"})],degradedEntityIDsToRemove:[]}
|
|
let t
|
|
const n=(0,g.fromUrn)(this.args.contentSeriesUrn).id,i=(0,g.toUrn)("fsd_contentSeries",n)
|
|
t=this.isContentSeriesGraphQLEnabled?this.graphql.executeQuery(...(0,u.findNewsletterByUrnGraphQL)({entityUrn:i,adapterOptions:e})):this.storeShim.findRecord(...(0,u.findNewsletterRecord)({entityUrn:this.args.contentSeriesUrn,pemAdapterOptions:e}))
|
|
t.then((e=>{if(this.isDestroying)return
|
|
let t
|
|
if(this.isContentSeriesGraphQLEnabled){var n
|
|
t=null==e||null===(n=e.data)||void 0===n?void 0:n.publishingDashContentSeriesById}else t=e
|
|
const{title:i,description:r,publishFrequency:o,logoUrn:l,issueCount:a}=(0,w.getProperties)(t,"title","description","publishFrequency","logo","logoUrn","issueCount")
|
|
this.editSeriesRecord=t
|
|
this.title=i
|
|
this.description=r
|
|
this.publishFrequency=o
|
|
this.cadence=(0,f.default)(o)
|
|
this.logoUrn=l
|
|
this.issueCount=a
|
|
this.logoPreviewPath=(0,y.default)(this.logoVectorImage,200,200)}))}}_clearForm(){this.title=null
|
|
this.description=null
|
|
this.cadence=null
|
|
this.publishFrequency=null
|
|
this.logoUrn=null
|
|
this.logoPreviewPath=null
|
|
this.issueCount=0}closeModal(){this.fireTrackingEvent("series_modal_close")
|
|
this._clearForm()
|
|
this.args.onClose()
|
|
this.flushValidations(Ce)}onCadenceChange(e){let{target:{value:t}}=e
|
|
this.fireTrackingEvent(`series_modal_cadence_${t.toLowerCase()}`)
|
|
this.cadence=t}onCreateSubmit(){this.fireTrackingEvent(c.CONTROL_URNS.SERIES_MODAL_DONE)
|
|
return this.validate(Ce).then((()=>{if((0,P.isDestroying)(this))return
|
|
const e={failures:[new v.default("create-series-model","failed",{productName:"Voyager - Article Creator"})],degradedEntityIDsToRemove:[]}
|
|
return this._createSeriesModel().save(...(0,u.createContentSeries)({pemAdapterOptions:e}))})).then((e=>{var t,n
|
|
if((0,P.isDestroying)(this))return
|
|
this._clearForm()
|
|
const i=[null===(t=(n=this.args).onCreateSuccess)||void 0===t?void 0:t.call(n,e)]
|
|
if(this.authorSubscribe){const t=(0,w.get)(e,"id"),n=this.storeShim.adapterFor("-ember-m3"),r=`urn:li:fsd_subscribeAction:urn:li:contentSeries:${t}`,o=n.ajax(...(0,u.updateNewsletterSubscription)({isSubscribed:!1,urn:r})).catch((e=>{if((0,P.isDestroying)(this))throw e
|
|
this.jet.logError(new Error(`Network request failed while attempting to subscribe to the newsletter with urn ${r}`),"publishing-subscribe-to-newsletter",!1)
|
|
throw e}))
|
|
i.push(o)}return s.Promise.all(i)})).then((()=>{if(!(0,P.isDestroying)(this)){this.persistentToastManager.success({message:this.i18n.lookupTranslation(e,"i18n_newsletter_create_message")()})
|
|
this.closeModal()}})).catch((e=>{if((0,P.isDestroying)(this))throw e
|
|
if("Failed to validate series model"===e)return s.Promise.resolve();(0,p.isValidVoyagerUserVisibleException)(e)?this.serverValidationError=e.errors[0].message:this.hasGenericError=!0
|
|
throw e}))}onEditSubmit(){this.fireTrackingEvent(c.CONTROL_URNS.SERIES_MODAL_DONE)
|
|
return this.validate(Te).then((()=>{if((0,P.isDestroying)(this))return
|
|
const{editSeriesRecord:e}=this;(0,w.setProperties)(e,{title:this.title,description:this.description,publishFrequency:this._createTimeSpan(this.cadence)})
|
|
this._updateFields()
|
|
this.logoUrn&&(0,w.set)(e,"logoUrn",this.logoUrn)
|
|
this.issueCount||(0,w.set)(e,"inviteTargetAudiences",!0)
|
|
const t={failures:[new v.default("edit-series","failed",{productName:"Voyager - Article Creator"})],degradedEntityIDsToRemove:[]}
|
|
e.save(...(0,u.editContentSeries)({entityUrn:(0,w.get)(e,"entityUrn"),pemAdapterOptions:t}))
|
|
this.closeModal()})).catch((e=>{if((0,P.isDestroying)(this))throw e
|
|
if("Failed to validate series model"===e)return s.Promise.resolve()
|
|
this.hasGenericError=!0
|
|
throw e}))}onUploadImageClick(){this.fireTrackingEvent("series_modal_logo")}fileSelected(e){var t=this
|
|
let{target:n}=e
|
|
const i=n.files[0]
|
|
if(this.isValidLogo(i)){this.logoSizeError=!1
|
|
this.logoTypeError=!1
|
|
this.isImageLoading=!0;(0,h.getBlobFromFile)(i).then((e=>{if(!this.isDestroying){this.logoPreviewPath=e.dataUrl
|
|
const n="PUBLISHING_SERIES_LOGO"
|
|
this.vectorMediaUpload.ingest([{file:i,mediaUploadType:n}]).then((e=>{let[t]=e
|
|
return t})).then((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|
if(!t.isDestroying){const n=(null==e?void 0:e.urn)||(0,w.get)(e,"meta.urn")
|
|
n&&(t.logoUrn=n)}})).catch((e=>{if(!this.isDestroying){this.logoPreviewPath=null
|
|
this.logoUrn=null}throw e})).finally((()=>{this.isDestroying||(this.isImageLoading=!1)}))}}))}}fireTrackingEvent(e){this.tracking.fireInteractionEvent(e)}setDescription(e){let{target:{value:t}}=e
|
|
this.description=t}setTitle(e){let{target:{value:t}}=e
|
|
this.title=t}_updateFields(){this.args.updateField("title",this.title)
|
|
this.args.updateField("description",this.description)
|
|
this.args.updateField("publishFrequency",this._createTimeSpan(this.cadence))}onKeyUp(e){(0,a.isEscapeKey)(e)&&e.stopPropagation()}},$=(0,i.default)(Y.prototype,"graphql",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q=(0,i.default)(Y.prototype,"jet",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J=(0,i.default)(Y.prototype,"lix",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),X=(0,i.default)(Y.prototype,"storeShim",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=(0,i.default)(Y.prototype,"tracking",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ee=(0,i.default)(Y.prototype,"vectorMediaUpload",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),te=(0,i.default)(Y.prototype,"i18n",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ne=(0,i.default)(Y.prototype,"persistentToastManager",[K],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ie=(0,i.default)(Y.prototype,"authorSubscribe",[T.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),re=(0,i.default)(Y.prototype,"title",[T.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oe=(0,i.default)(Y.prototype,"cadence",[T.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),le=(0,i.default)(Y.prototype,"isImageLoading",[T.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ae=(0,i.default)(Y.prototype,"description",[T.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),se=(0,i.default)(Y.prototype,"publishFrequency",[T.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ce=(0,i.default)(Y.prototype,"logo",[T.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pe=(0,i.default)(Y.prototype,"issueCount",[T.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),de=(0,i.default)(Y.prototype,"logoUrn",[T.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ue=(0,i.default)(Y.prototype,"logoPreviewPath",[T.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),me=(0,i.default)(Y.prototype,"titleError",[T.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),fe=(0,i.default)(Y.prototype,"cadenceError",[T.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),he=(0,i.default)(Y.prototype,"descriptionError",[T.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ge=(0,i.default)(Y.prototype,"logoTypeError",[T.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),be=(0,i.default)(Y.prototype,"logoSizeError",[T.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ye=(0,i.default)(Y.prototype,"editSeriesRecord",[T.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_e=(0,i.default)(Y.prototype,"serverValidationError",[T.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ve=(0,i.default)(Y.prototype,"hasGenericError",[T.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.default)(Y.prototype,"loadContentSeriesData",[w.action],Object.getOwnPropertyDescriptor(Y.prototype,"loadContentSeriesData"),Y.prototype),(0,i.default)(Y.prototype,"closeModal",[w.action],Object.getOwnPropertyDescriptor(Y.prototype,"closeModal"),Y.prototype),(0,i.default)(Y.prototype,"onCadenceChange",[w.action],Object.getOwnPropertyDescriptor(Y.prototype,"onCadenceChange"),Y.prototype),(0,i.default)(Y.prototype,"onCreateSubmit",[w.action],Object.getOwnPropertyDescriptor(Y.prototype,"onCreateSubmit"),Y.prototype),(0,i.default)(Y.prototype,"onEditSubmit",[w.action],Object.getOwnPropertyDescriptor(Y.prototype,"onEditSubmit"),Y.prototype),(0,i.default)(Y.prototype,"onUploadImageClick",[w.action],Object.getOwnPropertyDescriptor(Y.prototype,"onUploadImageClick"),Y.prototype),(0,i.default)(Y.prototype,"fileSelected",[w.action],Object.getOwnPropertyDescriptor(Y.prototype,"fileSelected"),Y.prototype),(0,i.default)(Y.prototype,"fireTrackingEvent",[w.action],Object.getOwnPropertyDescriptor(Y.prototype,"fireTrackingEvent"),Y.prototype),(0,i.default)(Y.prototype,"setDescription",[w.action],Object.getOwnPropertyDescriptor(Y.prototype,"setDescription"),Y.prototype),(0,i.default)(Y.prototype,"setTitle",[w.action],Object.getOwnPropertyDescriptor(Y.prototype,"setTitle"),Y.prototype),(0,i.default)(Y.prototype,"onKeyUp",[w.action],Object.getOwnPropertyDescriptor(Y.prototype,"onKeyUp"),Y.prototype),Y))}))
|
|
define("publishing-shared/components/subscribe-button",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/helper","@ember/component","publishing-shared/utils/newsletter-subscribe","feed-utils/utils/article-toast-utils","@glimmer/component","@ember/service","@ember/object","artdeco-button/components/artdeco-button","ember-cli-pemberly-i18n/helpers/t","global-helpers/helpers/or","ember-cli-pemberly-tracking/modifiers/track-interaction","@ember/modifier"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var y,_,v,T,C,E,w,P,S,O,k
|
|
const A="subscribe-newsletter-via-newsletter-entity-header"
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"SEh6FnUC",block:'[[[1,"\\n"],[1," "],[8,[32,0],[[16,"aria-label",[52,[30,0,["isSubscribed"]],[28,[32,1],["i18n_unsubscribe_series_name","publishing-shared/components/subscribe-button"],[["seriesName"],[[30,1,["title"]]]]],[28,[32,1],["i18n_subscribe_to_series_name","publishing-shared/components/subscribe-button"],[["seriesName"],[[30,1,["title"]]]]]]],[17,2],[4,[32,3],["click",[30,0,["onClick"]]],null],[4,[32,4],["series_subscribe_toggle"],null]],[["@color","@icon","@text","@type"],[[28,[32,2],[[30,3],"default"],null],[30,0,["icon"]],[52,[30,0,["isSubscribed"]],[28,[32,1],["i18n_subscribed_series","publishing-shared/components/subscribe-button"],null],[28,[32,1],["i18n_subscribe_series","publishing-shared/components/subscribe-button"],null]],[30,4]]],null],[1,"\\n "]],["@entity","&attrs","@color","@type"],false,["if"]]',moduleName:"publishing-shared/components/subscribe-button.gjs",scope:()=>[m.default,f.default,h.default,b.on,g.default],isStrictMode:!0}),(y=(0,d.inject)("i18n"),_=(0,d.inject)("jet"),v=(0,d.inject)("persistent-toast-manager@persistent-toast-manager"),T=(0,d.inject)("global-services@store-shim"),C=(0,d.inject)("watchman-tracking@watchman-tracking"),E=class extends p.default{constructor(){super(...arguments);(0,t.default)(this,"i18n",w,this);(0,t.default)(this,"jet",P,this);(0,t.default)(this,"persistentToastManager",S,this);(0,t.default)(this,"storeShim",O,this);(0,t.default)(this,"watchmanTracking",k,this)}get isSubscribed(){return(0,u.get)(this.args.entity,"subscribeAction.subscribed")}get toastManager(){return new c.default(this.persistentToastManager,this.i18n)}get icon(){return this.args.isIconDisabled?"":this.isSubscribed?"check-icon":"add"}onClick(){var e,t
|
|
this.watchmanTracking.startInteraction({userInteraction:A,userJourney:"subscribe-to-newsletter",groupName:"publishing-reliability"})
|
|
null===(e=(t=this.args).onSubscribeButtonClick)||void 0===e||e.call(t);(0,s.default)(this.args.entity,this.isSubscribed,this.storeShim,this.jet,this.toastManager,this.isDestroying,this.args.onSubscribeSuccess,this.watchmanTracking,A)}},w=(0,i.default)(E.prototype,"i18n",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,i.default)(E.prototype,"jet",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,i.default)(E.prototype,"persistentToastManager",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,i.default)(E.prototype,"storeShim",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,i.default)(E.prototype,"watchmanTracking",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(E.prototype,"onClick",[u.action],Object.getOwnPropertyDescriptor(E.prototype,"onClick"),E.prototype),E))}))
|
|
define("publishing-shared/components/subscribers-list-item",["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","@ember/object","ember-engines/components/link-to-external","ember-cli-pemberly-tracking/modifiers/track-interaction","feed-components-shared/components/avatar-image","global-helpers/helpers/actor-name","distance-badge/components/distance-badge","@ember/service"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var g,b,y
|
|
const _=["connection","noConnection","self"]
|
|
e.default=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"IVLqZmNi",block:'[[[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[32,0],[[24,0,"reader-subscriber-list-item__actor-profile-link"],[4,[32,1],["article_reader_subscriber_list_profile_tracking"],null]],[["@model","@route"],[[30,0,["publicIdentifier"]],"profile.common.profile"]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"display-flex flex-row"],[12],[1,"\\n "],[8,[32,2],[[24,0,"mr2"]],[["@alt","@avatar","@avatarEntityClassSize","@avatarType"],[[28,[32,3],[[30,0,["miniProfile"]]],null],[30,0,["profilePicture"]],4,"member"]],null],[1,"\\n "],[10,0],[14,0,"display-flex flex-column justify-center"],[12],[1,"\\n "],[10,"h3"],[14,0,"t-16 t-black t-bold"],[12],[1,"\\n "],[1,[28,[32,3],[[30,0,["miniProfile"]]],null]],[1,"\\n "],[8,[32,4],null,[["@class","@distanceEnum","@separator"],["reader-subscribers-list_distance_badge",[30,0,["distance"]],true]],null],[1,"\\n "],[13],[1,"\\n "],[10,2],[14,0,"t-14 t-black--light"],[12],[1,"\\n "],[1,[30,0,["headline"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],[],false,[]]',moduleName:"publishing-shared/components/subscribers-list-item.gjs",scope:()=>[p.default,d.default,u.default,m.default,f.default],isStrictMode:!0}),(g=(0,h.inject)("lix"),b=class extends s.default{constructor(){super(...arguments);(0,t.default)(this,"lix",y,this)}get isNewsletterEntityGraphQlEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.publishing-graphql-newsletter-entity")}get distance(){var e,t
|
|
const n=this.isNewsletterEntityGraphQlEnabled?null===(e=this.args.subscriber)||void 0===e||null===(t=e.memberRelationship)||void 0===t?void 0:t.memberRelationship:(0,c.get)(this.args,"subscriber.memberRelationship.memberRelationshipUnion")
|
|
if(n){switch(_.find((e=>!!(0,c.get)(n,e)))){case"connection":return"DISTANCE_1"
|
|
case"noConnection":return(0,c.get)(n,"noConnection.memberDistance")
|
|
case"self":return"SELF"
|
|
default:return""}}return""}get headline(){return(0,c.get)(this.args,"subscriber.headline")}get miniProfile(){return{miniProfile:{firstName:(0,c.get)(this.args,"subscriber.firstName"),lastName:(0,c.get)(this.args,"subscriber.lastName")}}}get publicIdentifier(){return(0,c.get)(this.args,"subscriber.publicIdentifier")}get profilePicture(){if(this.isNewsletterEntityGraphQlEnabled){var e,t,n
|
|
return null===(e=this.args.subscriber)||void 0===e||null===(t=e.profilePicture)||void 0===t||null===(n=t.displayImageReferenceResolutionResult)||void 0===n?void 0:n.vectorImage}return(0,c.get)(this.args,"subscriber.profilePicture.displayImageReference.vectorImage")}},y=(0,i.default)(b.prototype,"lix",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b))}))
|
|
define("publishing-shared/components/subscribers-list",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","publishing-shared/utils/data-request","rsvp","feed-pagination-state/utils/pagination-state","@glimmer/tracking","@glimmer/component","@ember/object","@ember/service","@ember/destroyable","scaffold-finite-scroll/components/finite-scroll","global-helpers/helpers/not","publishing-shared/components/subscribers-list-item"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u,m,f,h,g,b){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var y,_,v,T,C,E,w,P,S,O,k,A
|
|
e.default=(0,l.setComponentTemplate)((0,o.createTemplateFactory)({id:"iW9JireD",block:'[[[1,"\\n "],[8,[32,0],null,[["@isDisabled","@items","@onTrigger"],[[28,[32,1],[[30,0,["canInfiniteScroll"]]],null],[30,0,["subscribers"]],[30,0,["onInfiniteScroll"]]]],[["content"],[[[[1,"\\n "],[10,"ul"],[14,0,"artdeco-list artdeco-list--offset-2 reader-subscriber-list__list"],[14,"tabindex","0"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,2]],null]],null],null,[[[1," "],[10,"li"],[14,0,"artdeco-list__item reader-subscriber-list__actor-list-item"],[14,"tabindex","0"],[12],[1,"\\n "],[8,[30,1],null,[["@index"],[[30,4]]],[["default"],[[[[1,"\\n "],[8,[32,2],null,[["@subscriber"],[[30,3]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[3,4]],null],[1," "],[13],[1,"\\n "]],[1,2]]]]],[1,"\\n "]],["ItemContainer","items","subscriber","index"],false,["each","-track-array"]]',moduleName:"publishing-shared/components/subscribers-list.gjs",scope:()=>[h.default,g.default,b.default],isStrictMode:!0}),(y=(0,m.inject)("global-services@store-shim"),_=(0,m.inject)("@linkedin/ember-restli-graphql@graphql"),v=(0,m.inject)("lix"),T=(0,m.inject)("router"),C=class extends d.default{get isNewsletterEntityGraphQlEnabled(){return this.lix.getTreatmentIsEnabled("voyager.web.publishing-graphql-newsletter-entity")}constructor(){super(...arguments);(0,t.default)(this,"storeShim",E,this);(0,t.default)(this,"graphql",w,this);(0,t.default)(this,"lix",P,this);(0,t.default)(this,"router",S,this);(0,t.default)(this,"isLoading",O,this);(0,t.default)(this,"subscribers",k,this);(0,t.default)(this,"canInfiniteScroll",A,this)
|
|
this.paginationState=new c.default({start:0,count:10,pagingSize:10,total:this.args.totalSubscribers,direction:"next"})
|
|
const e=this.paginationState.getCurrentState()
|
|
this.loadPage(e)}loadPage(e){if(e.count<=0){this.canInfiniteScroll=!1
|
|
return(0,s.resolve)()}const{contentSeriesUrn:t}=this.args
|
|
this.isLoading=!0
|
|
return this.isNewsletterEntityGraphQlEnabled?this.graphql.executeQuery(...(0,a.newsletterSubscribersRequestGraphQL)({urn:t,count:e.count,start:e.start})).then((e=>{var t
|
|
if((0,f.isDestroying)(this))return
|
|
this.isLoading=!1
|
|
const{elements:n}=e.data.publishingDashSeriesSubscribersByContentSeries,i=null===(t=n.filter((e=>e)))||void 0===t?void 0:t.map((e=>e.subscriber))
|
|
this.subscribers=this.subscribers.concat(i)
|
|
return i})).catch((e=>{var t,n
|
|
if((0,f.isDestroying)(this))throw e
|
|
"403"===(null==e||null===(t=e.errors)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.status)&&this.router.transitionTo("publishing-entity.newsletter")
|
|
throw e})):this.storeShim.queryURL(...(0,a.newsletterSubscribersRequest)({contentSeriesUrn:t,reload:!1,paging:{start:e.start,count:e.count}})).then((e=>{if(!this.isDestroying){this.isLoading=!1
|
|
const t=(0,u.get)(e,"elements").map((e=>(0,u.get)(e,"subscriber")))
|
|
this.subscribers=this.subscribers.concat(t)}})).catch((e=>{if((0,f.isDestroying)(this))throw e
|
|
"403"===e.errors[0].status&&this.router.transitionTo("publishing-entity.newsletter")
|
|
throw e}))}onInfiniteScroll(){const e=this.paginationState.getNextPagingValues()
|
|
return this.loadPage(e)}},E=(0,i.default)(C.prototype,"storeShim",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,i.default)(C.prototype,"graphql",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,i.default)(C.prototype,"lix",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,i.default)(C.prototype,"router",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,i.default)(C.prototype,"isLoading",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),k=(0,i.default)(C.prototype,"subscribers",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),A=(0,i.default)(C.prototype,"canInfiniteScroll",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),(0,i.default)(C.prototype,"onInfiniteScroll",[u.action],Object.getOwnPropertyDescriptor(C.prototype,"onInfiniteScroll"),C.prototype),C))}))
|
|
define("publishing-shared/components/subscribers-modal",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","artdeco-modal/components/artdeco-modal","ember-cli-pemberly-tracking/helpers/tracked-action","ember-cli-pemberly-i18n/helpers/t","publishing-shared/components/subscribers-list"],(function(e,t,n,i,r,o,l,a){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const s=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"yjntvsxb",block:'[[[1,"\\n"],[1," "],[8,[32,0],null,[["@isOpen","@headerId","@dismissModal","@modalClasses","@size"],[[30,1],"subscribers-modal-label",[28,[32,1],["close",[30,2]],null],"reader-subscribers-modal","medium"]],[["default"],[[[[1,"\\n "],[8,[30,3,["artdeco-modal-header"]],null,[["@classNames"],["reader-subscribers-modal__header"]],[["default"],[[[[1,"\\n "],[10,"h2"],[14,1,"subscribers-modal-label"],[14,0,"reader-subscribers-modal__subscribers-count truncated-text t-21px-black-70%"],[12],[1,"\\n "],[1,[28,[32,2],["num_subscribers","publishing-shared/components/subscribers-modal"],[["numSubscribers"],[[30,4]]]]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[30,3,["artdeco-modal-content"]],null,[["@classNames"],["reader-subscribers-modal__content flex-1"]],[["default"],[[[[1,"\\n "],[8,[32,3],null,[["@contentSeriesUrn","@totalSubscribers"],[[30,5],[30,4]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[3]]]]],[1,"\\n"]],["@isSubscribersModalOpen","@onCloseSubscribersModal","modal","@totalSubscribers","@contentSeriesUrn"],false,[]]',moduleName:"publishing-shared/components/subscribers-modal.gjs",scope:()=>[r.default,o.default,l.default,a.default],isStrictMode:!0}),(0,n.default)("subscribers-modal","SubscribersModal"))
|
|
e.default=s}))
|
|
define("publishing-shared/constants/series",["exports"],(function(e){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.TIME_SPAN_UNIT=e.SERIES_URN_DELETE_VALUE=e.SERIES_URN=e.SERIES_LOGO_SIZE_IN_BYTES=e.SERIES_CREATION_LIMIT=e.SERIES_CADENCE=void 0
|
|
e.SERIES_LOGO_SIZE_IN_BYTES=8388608,e.SERIES_CADENCE={DAILY:"DAILY",WEEKLY:"WEEKLY",MONTHLY:"MONTHLY",TWICE_MONTH:"TWICE_MONTH"},e.SERIES_CREATION_LIMIT=5,e.TIME_SPAN_UNIT={DAY:"DAY",WEEK:"WEEK",MONTH:"MONTH"},e.SERIES_URN_DELETE_VALUE="-1",e.SERIES_URN="seriesUrn"}))
|
|
define("publishing-shared/helpers/cadence",["exports","@ember/component/helper","publishing-shared/utils/get-cadence"],(function(e,t,n){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.cadenceHelper=r
|
|
e.default=void 0
|
|
const i={DAILY:"i18n_daily",WEEKLY:"i18n_weekly",MONTHLY:"i18n_monthly"}
|
|
function r(e){let[t]=e
|
|
const r=(0,n.default)(t)
|
|
return"TWICE_MONTH"===r?"i18n_twice_month":r?i[r]:void 0}const o=(0,t.helper)(r)
|
|
e.default=o}))
|
|
define("publishing-shared/modifiers/input-change-enforcer",["exports","@ember/debug","ember-modifier"],(function(e,t,n){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
const i=(0,n.modifier)(((e,t,n)=>{let{maxLength:i,onChange:r}=n
|
|
const o=e=>{const{value:t}=e.target
|
|
if(i){const n=t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').length-t.length
|
|
e.target.value=t.slice(0,i-n)}r(e)}
|
|
e.addEventListener("input",o)
|
|
return()=>{e.removeEventListener("input",o)}}),{eager:!1})
|
|
e.default=i}))
|
|
define("publishing-shared/modifiers/reload-page-on-cookie-consent-accept",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/destroyable","@ember/service","ember-lifeline","ember-modifier"],(function(e,t,n,i,r,o,l,a,s){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var c,p,d
|
|
e.default=(c=(0,l.inject)("global-services@window"),p=class extends s.default{get acceptButton(){var e
|
|
return null===(e=this.globalAlertContainer)||void 0===e?void 0:e.querySelector(".artdeco-global-alert--cookie_consent button")}constructor(){super(...arguments);(0,t.default)(this,"windowService",d,this)
|
|
this.globalAlertContainer=document.getElementById("artdeco-global-alert-container")
|
|
this.mutationObserver=null
|
|
this.reloadPage=this.reloadPage.bind(this);(0,o.registerDestructor)(this,(()=>{var e
|
|
return null===(e=this.mutationObserver)||void 0===e?void 0:e.disconnect()}))}addGlobalCookieConsentListener(e){(0,a.addEventListener)(this,e,"click",this.reloadPage)}modify(){if(this.globalAlertContainer){const e=this.acceptButton
|
|
if(e)this.addGlobalCookieConsentListener(e)
|
|
else{this.mutationObserver=new MutationObserver((()=>{this.addGlobalCookieConsentListener(this.acceptButton)}))
|
|
this.mutationObserver.observe(this.globalAlertContainer,{childList:!0})}}}reloadPage(){this.windowService.getLocation().reload()}},d=(0,i.default)(p.prototype,"windowService",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p)}))
|
|
define("publishing-shared/template-registry",[],(function(){}))
|
|
define("publishing-shared/utils/constants",["exports"],(function(e){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.PUBLISHING_LEGO_CONFIGS=e.ARTICLE_READER_LEGO_CONFIGS=void 0
|
|
e.PUBLISHING_LEGO_CONFIGS=Object.freeze({PAGE_KEY:"voyager_publishing",SLOT_ID:"promo",GROUP_ID:"promo_group",WIDGET:{NEWSLETTER_ACCESS_BANNER:"publishing_newsletter_access_banner"}}),e.ARTICLE_READER_LEGO_CONFIGS=Object.freeze({PAGE_KEY:"voyager_article_reader",SLOT_ID:"promo",GROUP_ID:"promo_group",WIDGET:{NEWSLETTER_ACCESS_BANNER:"article_reader_newsletter_access_banner"}})}))
|
|
define("publishing-shared/utils/data-request",["exports","@ember/debug","voyager-web/config/environment","global-utils/utils/url","global-utils/utils/urn-id-helpers","graphql-queries/queries/publishing/content-series-by-id.graphql","graphql-queries/queries/publishing/content-series-by-owner-and-access.graphql","graphql-queries/queries/publishing/content-series-by-slug.graphql","graphql-queries/queries/publishing/series-subscribers-by-id.graphql","@linkedin/ember-pem/utils/failure-tracking-metadata","data-layer/utils/organization/resource-to-url-map","graphql-queries/queries/organizations/member-company-by-company-urns.graphql","global-utils/utils/urn-converter"],(function(e,t,n,i,r,o,l,a,s,c,p,d,u){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.createContentSeries=function(){let{readOnCreate:e=!1,pemAdapterOptions:t={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|
const i=`/${n.default.namespace}/voyagerPublishingDashContentSeries`,r={recipe:"com.linkedin.voyager.dash.deco.publishing.ContentSeries"}
|
|
return[{adapterOptions:{url:i,params:r,readOnCreate:e,...t}}]}
|
|
e.deleteContentSeries=function(){let{entityUrn:e,readOnCreate:t=!1,pemAdapterOptions:i={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|
const o=`urn:li:fsd_contentSeries:${(0,r.extractUrnParts)(e)[1]}`,l=`/${n.default.namespace}/voyagerPublishingDashContentSeries/${o}`,a={recipe:"com.linkedin.voyager.dash.deco.publishing.ContentSeries"}
|
|
return[{adapterOptions:{url:l,params:a,readOnCreate:t,...i}}]}
|
|
e.editContentSeries=function(){let{entityUrn:e,readOnCreate:t=!1,pemAdapterOptions:i={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|
const o=`urn:li:fsd_contentSeries:${(0,r.extractUrnParts)(e)[1]}`,l=`/${n.default.namespace}/voyagerPublishingDashContentSeries/${o}`,a={recipe:"com.linkedin.voyager.dash.deco.publishing.ContentSeries"}
|
|
return[{adapterOptions:{url:l,params:a,readOnCreate:t,partial:!0,...i}}]}
|
|
e.fetchNewslettersAndAccess=function(){let{companyOwner:e,reload:t=!1,pemAdapterOptions:i={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|
const o={count:10,q:"ownerAndAccess",recipe:"com.linkedin.voyager.dash.deco.publishing.ContentSeries"},l=`/${n.default.namespace}/voyagerPublishingDashContentSeries`
|
|
if(e){const t=`urn:li:fsd_company:${(0,r.extractUrnParts)(e)[1]}`
|
|
o.companyOwner=t}return[l,{params:o,reload:t,adapterOptions:{url:l,readOnCreate:!1,...i}}]}
|
|
e.fetchNewslettersAndAccessGraphQL=function(){let{companyOwner:e,count:t=10,start:n=0,adapterOptions:i={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|
const o={count:t,start:n}
|
|
e&&(o.companyOwner=`urn:li:fsd_company:${(0,r.extractUrnParts)(e)[1]}`)
|
|
return[l.default,{...o},{adapterOptions:{...i}}]}
|
|
e.findNewsletterByUrnGraphQL=function(e){let{entityUrn:t,adapterOptions:n={}}=e
|
|
const i=`urn:li:fsd_contentSeries:${(0,r.extractUrnParts)(t)[1]}`
|
|
return[o.default,{contentSeriesId:i},{adapterOptions:{...n}}]}
|
|
e.findNewsletterRecord=function(){let{entityUrn:e,pemAdapterOptions:t={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|
const i=`urn:li:fsd_contentSeries:${(0,r.extractUrnParts)(e)[1]}`,o=`/${n.default.namespace}/voyagerPublishingDashContentSeries/${i}`,l="com.linkedin.voyager.dash.deco.publishing.ContentSeries",a={recipe:"com.linkedin.voyager.dash.deco.publishing.ContentSeries"}
|
|
return[l,e,{adapterOptions:{url:o,params:a,...t},backgroundReload:!1}]}
|
|
e.getNewsletterBySlug=function(){let{newsletterId:e,isDashEnabled:t=!0,pemAdapterOptions:i={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|
const r={q:"slug",slug:e}
|
|
let o=`/${n.default.namespace}/publishing/contentSeries`
|
|
if(t){o=`/${n.default.namespace}/voyagerPublishingDashContentSeries`
|
|
r.recipe="com.linkedin.voyager.dash.deco.publishing.ContentSeries"}return[o,{params:r,reload:!0,adapterOptions:{...i}}]}
|
|
e.getNewsletterBySlugGraphQL=function(){let{slug:e,adapterOptions:t={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|
return[a.default,{slug:e},{adapterOptions:{...t}}]}
|
|
e.getOrganizationDataGraphQL=function(e,t,n,i){const r=(0,u.fromUrn)(e),o=(0,p.buildFullUrl)(p.urlsMap.OrganizationDashCompaniesResource,r)
|
|
return n.executeQuery(d.default,{companyUrns:[e]},{adapterOptions:{failures:[new c.default("get-page-author","failed",{productName:i})],degradedEntityIDsToRemove:[r],url:o}}).catch((e=>{t.logError(new Error(`Network request while attempting to fetch organization ${r}`),"publishing-page-admin",!1)
|
|
throw e}))}
|
|
e.newsletterSubscribersRequest=function(e){let{contentSeriesUrn:t,paging:i={},reload:o=!1}=e
|
|
const{start:l=0,count:a=10}=i,s={q:"contentSeries",start:l,count:a,recipe:"com.linkedin.voyager.dash.deco.publishing.SeriesSubscriberMiniProfile"}
|
|
s.seriesUrn=`urn:li:fsd_contentSeries:${(0,r.extractUrnParts)(t)[1]}`
|
|
const c=`/${n.default.namespace}/voyagerPublishingDashSeriesSubscribers`
|
|
return[c,{cacheKey:`publishing/voyagerPublishingDashSeriesSubscribers|subscribers|${l}|${a}|${t}`,params:s,reload:o}]}
|
|
e.newsletterSubscribersRequestGraphQL=function(e){let{urn:t,start:n=0,count:i=10}=e
|
|
let o=t;(0,r.isDashUrn)(t)||(o=`urn:li:fsd_contentSeries:${(0,r.extractUrnParts)(t)[1]}`)
|
|
return[s.default,{seriesUrn:o,start:n,count:i}]}
|
|
e.saveArticle=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|
const{entityUrn:t="",state:i,transformPayload:o,pemProductName:l}=e,a=(0,r.extractUrnParts)(t)[1],s={degradedEntityIDsToRemove:[a]}
|
|
s.failures="AUTOSAVED"===i||"AUTOSAVED_OF_PUBLISHED"===i?[new c.default("autosave-article","failed",{productName:l})]:[new c.default("publish-article","failed",{productName:l})]
|
|
const p=`/${n.default.namespace}/voyagerPublishingDashFirstPartyArticles/${t}`,d={url:p,partial:!0,readOnCreate:!1,...s}
|
|
o&&(d.transformPayload=o)
|
|
return[{adapterOptions:d}]}
|
|
e.updateNewsletterSubscription=function(e){let{isSubscribed:t,urn:o}=e
|
|
const l=(0,r.extractUrnParts)(o)[1],a=t?{subscribeActionUrn:o}:{contentSeriesUrn:l},s=(0,i.addQueryParam)(`/${n.default.namespace}/voyagerPublishingDashSeriesSubscribers`,"action",t?"unsubscribe":"subscribeSeries")
|
|
return[s,"POST",{data:a}]}
|
|
e.updateStoreOnSubscribeAction=function(e,t,n,i){const r=t.split(":").at(-1),o="com.linkedin.voyager.dash.publishing.SubscribeAction",l=`urn:li:fsd_subscribeAction:urn:li:fsd_contentSeries:${r}`
|
|
e.peekRecord(o,l)&&e.push({data:{id:l,type:o,attributes:{subscribed:n,subscriberCount:i}}})
|
|
const a="com.linkedin.voyager.feed.render.SubscribeAction",s=`urn:li:fs_subscribeAction:urn:li:contentSeries:${r}`
|
|
e.peekRecord(a,s)&&e.push({data:{id:s,type:a,attributes:{subscribed:n,subscriberCount:i}}})}}))
|
|
define("publishing-shared/utils/file-upload",["exports","@ember/debug","rsvp","global-utils/utils/is-browser","ember-test-waiters"],(function(e,t,n,i,r){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.getBlobFromFile=function(e){if(i.default)return(0,r.waitForPromise)(new n.Promise(((t,n)=>{const i=new window.FileReader
|
|
i.onload=()=>{const r=new window.Image,o=i.result
|
|
r.onload=n=>{t({dataUrl:o,size:e.size,name:e.name,type:e.type,width:n.target.naturalWidth,height:n.target.naturalHeight})}
|
|
r.onerror=e=>{n(e)}
|
|
r.src=o}
|
|
i.onerror=e=>n(e)
|
|
try{i.readAsDataURL(e)}catch(e){n(e)}})),"publishing-shared-file-onload-waiter")
|
|
return(0,n.resolve)()}
|
|
e.validImageDimensions=function(e,t){return e&&t&&e<=7680&&t<=4320}
|
|
e.validImageSize=function(e,t){if(t&&"image/gif"===t)return e&&e<5242880
|
|
return e&&e<=209715200}
|
|
e.validImageType=function(e){return e&&e.match("image.*")&&o.indexOf(e.split("/")[1])>-1}
|
|
const o=["png","jpg","jpeg","gif","webp"]}))
|
|
define("publishing-shared/utils/get-cadence",["exports","@ember/debug","@ember/object"],(function(e,t,n){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.UNIT_CADENCE_MAP=void 0
|
|
e.default=function(e){if(!e)return
|
|
const t=(0,n.get)(e,"duration"),r=(0,n.get)(e,"unit")
|
|
if("MONTH"===r&&2===t)return"TWICE_MONTH"
|
|
return i[r]}
|
|
const i=e.UNIT_CADENCE_MAP={DAY:"DAILY",WEEK:"WEEKLY",MONTH:"MONTHLY"}}))
|
|
define("publishing-shared/utils/get-timespan",["exports","publishing-shared/constants/series"],(function(e,t){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=function(e){let n,i
|
|
switch(e){case t.SERIES_CADENCE.DAILY:n=1
|
|
i=t.TIME_SPAN_UNIT.DAY
|
|
break
|
|
case t.SERIES_CADENCE.WEEKLY:n=1
|
|
i=t.TIME_SPAN_UNIT.WEEK
|
|
break
|
|
case t.SERIES_CADENCE.TWICE_MONTH:n=2
|
|
i=t.TIME_SPAN_UNIT.MONTH
|
|
break
|
|
default:n=1
|
|
i=t.TIME_SPAN_UNIT.MONTH}return{duration:n,unit:i}}}))
|
|
define("publishing-shared/utils/newsletter-subscribe",["exports","publishing-shared/utils/data-request","@ember/object","global-utils/utils/get-attributed-link"],(function(e,t,n,i){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=function(e,r,o,l,a,s,c,p){let d=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"subscribe-newsletter-via-newsletter-entity-header"
|
|
const u=o.adapterFor("-ember-m3"),m=(0,n.get)(e,"subscribeAction.dashEntityUrn")||(0,n.get)(e,"subscribeAction.entityUrn"),f=r?"unsubscribe":"subscribe"
|
|
return u.ajax(...(0,t.updateNewsletterSubscription)({isSubscribed:r,urn:m})).catch((e=>{l.logError(new Error(`Network request failed while attempting to ${f} to the newsletter with urn ${m}`),`publishing-${f}-to-newsletter`,!1)
|
|
null==p||p.endInteractionWithError({userInteraction:d,userJourney:"subscribe-to-newsletter",groupName:"publishing-reliability"})
|
|
throw e})).then((l=>{var u
|
|
if(!s){null==c||c()
|
|
const i=!r,l=i?(0,n.get)(e,"subscribeAction.subscriberCount")+1:(0,n.get)(e,"subscribeAction.subscriberCount")-1;(0,n.setProperties)(e,{"subscribeAction.subscribed":i,"subscribeAction.subscriberCount":l});(0,t.updateStoreOnSubscribeAction)(o,m,i,l)}null==p||p.endInteraction({userInteraction:d,userJourney:"subscribe-to-newsletter",groupName:"publishing-reliability"})
|
|
const f=(0,i.default)(null==l||null===(u=l.data)||void 0===u?void 0:u.value)
|
|
a.success((0,n.get)(e,"subscribeAction.subscribed"),null==f?void 0:f.message,null==f?void 0:f.ctaText,null==f?void 0:f.ctaUrl)})).catch((e=>{null==p||p.endInteractionWithError({userInteraction:d,userJourney:"subscribe-to-newsletter",groupName:"publishing-reliability"})
|
|
a.error()
|
|
throw e}))}}))
|
|
define("publishing-shared/utils/pem",["exports","@linkedin/ember-pem/utils/failure-tracking-metadata"],(function(e,t){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.FAILURE_TRACKING_METADATA=void 0
|
|
e.getFailureTrackingMetadata=n
|
|
function n(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"failure",{productName:i=""}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
|
|
return new t.default(e,n,{productName:i})}e.FAILURE_TRACKING_METADATA=Object.freeze({CREATE_SERIES_MODEL:n("create-series-model","failure",{productName:"Voyager - Article Creator"}),DELETE_ARTICLE:n("delete-article","failure",{productName:"Voyager - Article Creator"}),DELETE_CONTENT_SERIES:n("delete-content-series","failure",{productName:"Voyager - Article Creator"}),NEWSLETTER_ENTITY_DELETE_CONTENT_SERIES:n("delete-content-series","failure",{productName:"Voyager - Newsletter Entity"}),EDIT_SERIES:n("edit-series","failure",{productName:"Voyager - Article Creator"}),FETCH_ARTICLE:n("fetch-article","failure",{productName:"Voyager - Article Creator"}),FETCH_DRAFT_ARTICLES:n("fetch-draft-articles","failure",{productName:"Voyager - Article Creator"}),FETCH_NEWSLETTER:n("fetch-newsletter","failure",{productName:"Voyager - Article Creator"}),FETCH_PUBLISHED_ARTICLES:n("fetch-published-articles","failure",{productName:"Voyager - Article Creator"}),FETCH_SERIES_ARTICLES:n("fetch-series-articles","failure",{productName:"Voyager - Article Creator"}),FIND_SERIES:n("find-series","failure",{productName:"Voyager - Article Creator"}),GET_ENCRYPTED_ID:n("get-encrypted-id","failure",{productName:"Voyager - Article Creator"}),GET_PAGE_AUTHOR:n("get-page-author","failure",{productName:"Voyager - Article Creator"}),PUBLISH_ARTICLE:n("publish-article","failure",{productName:"Voyager - Article Creator"}),PUBLISH_NEW_ARTICLE_REQUEST:n("publish-new-article-request","failure",{productName:"Voyager - Article Creator"})})}))
|
|
define("publishing-shared/utils/preview-builder",["exports","rsvp","detour-framework/utils/detour-manager","global-utils/utils/url","global-utils/utils/image-utils","global-utils/utils/get-asset-url-for-environment","ember-vector-images/utils/vector-url","global-utils/utils/is-browser","detour-framework/utils/detour-constants","detour-framework/utils/detour-preview-data","detour-framework/utils/detour-status-data","detour-framework/utils/dash-detour-preview-data"],(function(e,t,n,i,r,o,l,a,s,c,p,d){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=function(e,i,r,o){if(!e)return null
|
|
const l=i.buildModel("com.linkedin.voyager.dash.feed.component.article.ArticleComponent",{type:"FIRST_PARTY",articleUrn:e.linkedInArticleUrn,largeImage:m(e,i,o),navigationContext:i.buildModel("com.linkedin.voyager.dash.feed.navigation.FeedNavigationContext",{actionTarget:"#",accessibilityText:""}),title:i.buildModel("com.linkedin.voyager.dash.common.text.TextViewModel",{text:e.title})}),a=i.buildModel("com.linkedin.voyager.dash.feed.component.FeedComponent",{articleComponent:l}),u=new n.default({detourStatusData:new p.default({detourState:s.DETOUR_STATES.SUCCEEDED}),detourPreviewData:new c.default({previewComponent:l,previewState:s.DETOUR_PREVIEW_STATES.SUCCEEDED}),dashDetourPreviewData:new d.default({previewComponent:a,previewState:s.DETOUR_PREVIEW_STATES.SUCCEEDED}),detourType:s.DETOUR_TYPES.PUBLISHING_ARTICLE})
|
|
u.getShareMedia=()=>{r.startInteraction({userInteraction:"article_editor_publish_article_start",userJourney:"publish-article",groupName:"publishing-reliability"})
|
|
return t.Promise.resolve([i.buildModel("com.linkedin.voyager.contentcreation.ShareMedia",{mediaUrn:e.linkedInArticleUrn})])}
|
|
u.getDashShareMedia=()=>{r.startInteraction({userInteraction:"article_editor_publish_article_start",userJourney:"publish-article",groupName:"publishing-reliability"})
|
|
return t.Promise.resolve([{mediaUrn:e.linkedInArticleUrn,category:"URN_REFERENCE"}])}
|
|
return u}
|
|
function u(e,t){if(a.default){if(e.coverMedia){var n,s,c,p,d,u,m,f,h,g
|
|
const o=t?null===(n=e.coverMedia)||void 0===n||null===(s=n.originalImage)||void 0===s||null===(c=s.attributes)||void 0===c||null===(p=c[0])||void 0===p||null===(d=p.detailData)||void 0===d?void 0:d.vectorImage:null===(u=e.coverMedia)||void 0===u||null===(m=u.originalImage)||void 0===m||null===(f=m.attributes)||void 0===f||null===(h=f[0])||void 0===h||null===(g=h.detailDataUnion)||void 0===g?void 0:g.vectorImage,a=(0,l.default)(o,1e4,1e4)
|
|
if(a)return a
|
|
const b=document.querySelector(".article-editor-cover-image__image")
|
|
if(b&&((0,i.isUrl)(b.src)||(0,r.isDataURI)(b.src)))return b.src}const o=document.querySelector(".article-editor-content__inline-image")
|
|
if(o&&((0,i.isUrl)(o.src)||(0,r.isDataURI)(o.src)))return o.src}return(0,o.default)("assets/img/publishing/default_cover_media.png")}function m(e,t,n){return t.buildModel("com.linkedin.voyager.dash.common.image.ImageViewModel",{attributes:[t.buildModel("com.linkedin.voyager.dash.common.image.ImageAttribute",{detailDataUnion:{imageUrl:t.buildModel("com.linkedin.voyager.dash.common.ImageUrl",{url:u(e,n)})}})]})}}))
|
|
define("publishing-shared/utils/utils",["exports","@ember/debug","publishing-shared/utils/constants","lego/utils/lego-page-content","@ember/object"],(function(e,t,n,i,r){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.getNewsletterBannerLegoData=o
|
|
e.isValidVoyagerUserVisibleException=function(e){const t="com.linkedin.voyager.common.VoyagerUserVisibleException"===(0,r.get)(e,"errors.0.exceptionClass"),n=(0,r.get)(e,"errors.0.message")
|
|
return Boolean(t&&n)}
|
|
e.shouldShowNewsletterBanner=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3]
|
|
const r=o(t,i)
|
|
return Boolean(e&&0===n&&r&&r.trackingToken)}
|
|
function o(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
|
|
const{SLOT_ID:r,GROUP_ID:o,WIDGET:l}=n.PUBLISHING_LEGO_CONFIGS
|
|
return t?(0,i.getWidgetFromDataGraphQL)(e,r,o,l.NEWSLETTER_ACCESS_BANNER):(0,i.getWidgetFromData)(e,r,o,l.NEWSLETTER_ACCESS_BANNER)}}))
|
|
define("publishing-shared/utils/visibility-options",["exports","@ember/debug","publishing-shared/components/-private/i18n-strings"],(function(e,t,n){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.getVisibilityOptions=function(e,t){let{isCompanyAuthor:i=!1,newsletterEntityUrn:r="",newsletterTitle:o=""}=t
|
|
if(r)return{type:"CONTAINER",containerEntity:r,name:e.lookupTranslation(n.default,"i18n_publish_visibility_name_newsletter")(),subText:e.lookupTranslation(n.default,"i18n_publish_visibility_subtext")([{seriesName:o}]),iconType:"people"}
|
|
if(i)return null
|
|
return{type:"ANYONE"}}}))
|
|
define("publishing-tracking/constants/tracking",["exports"],(function(e){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.QUILL_EVENTS_MAP=e.PUBLISH_EVENT_NAME=e.PUBLISHING_WORKFLOW=e.PUBLISHING_TRACKABLE_OBJECT=e.EMBED_TYPES=e.EMBED_PROVIDER_MAP=e.EMBED_ACTION_EVENT_NAME=e.EMBED_ACTIONS=e.EDIT_EVENT_NAME=e.DEFAULT_URN=e.DEFAULT_MEDIA_URN=e.CONTROL_URNS=e.ACTION_EVENT_NAME=void 0
|
|
e.ACTION_EVENT_NAME="PublishingActionEvent",e.EDIT_EVENT_NAME="PublishingEditEvent",e.PUBLISH_EVENT_NAME="PublishingPublishEvent",e.EMBED_ACTION_EVENT_NAME="PublishingEmbedActionEvent"
|
|
const t=e.CONTROL_URNS={EMBED_TOOLBAR_TOGGLE:"embed_toolbar_toggle",SERIES_MODAL_DONE:"series_modal_done"}
|
|
e.PUBLISHING_TRACKABLE_OBJECT="publishingTrackableObject",e.PUBLISHING_WORKFLOW="publishingWorkFlow",e.DEFAULT_URN="urn:li:linkedInArticleUrn:-9",e.DEFAULT_MEDIA_URN="urn:li:digitalmediaAsset:-9",e.EMBED_PROVIDER_MAP={video:["YouTube","Vimeo"],image:null,slides:["SlideShare","Prezi"],universal:["Twitter","Instagram"]},e.EMBED_TYPES={IMAGE:"IMAGE",VIDEO:"VIDEO",LINK:"LINK",SLIDESHOW:"SLIDESHOW",UNKNOWN:"UNKNOWN"},e.EMBED_ACTIONS={ADD:"ADD"},e.QUILL_EVENTS_MAP=[{eventName:"slate-embed-toolbar-open",controlUrn:t.EMBED_TOOLBAR_TOGGLE},{eventName:"slate-embed-toolbar-close",controlUrn:t.EMBED_TOOLBAR_TOGGLE},{eventName:"slate-image-embed-uploading",controlUrn:"upload_from_computer"},{eventName:"slate-resizable-image-embed-changed",evaluation:(e,t)=>({controlUrn:t.buttonClass.replace(/-/g,"_")})},{eventName:"slate-embed-toolbar-clicked",evaluation(e){switch(e){case"image":return{controlUrn:"embed_toolbar_image"}
|
|
case"video":return{controlUrn:"embed_toolbar_video"}
|
|
case"slides":return{controlUrn:"embed_toolbar_slides"}
|
|
case"code":return{controlUrn:"embed_toolbar_code"}
|
|
case"universal":return{controlUrn:"embed_toolbar_links"}
|
|
default:return{}}}}]}))
|
|
define("publishing-tracking/services/publishing-workflow",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/service","@glimmer/tracking","ember-cli-pemberly-tracking/utils/tracking"],(function(e,t,n,i,r,o,l,a){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.default=void 0
|
|
var s,c
|
|
e.default=(s=class extends o.default{constructor(){super(...arguments);(0,t.default)(this,"trackingId",c,this)}setPublishingWorkFlow(){this.trackingId=(0,a.generateTrackingId)()}},c=(0,i.default)(s.prototype,"trackingId",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),s)}))
|
|
define("publishing-tracking/template-registry",[],(function(){}))
|
|
define("publishing-tracking/utils/fire-event",["exports","ember-cli-pemberly-tracking/utils/tracking","publishing-tracking/constants/tracking"],(function(e,t,n){"use strict"
|
|
Object.defineProperty(e,"__esModule",{value:!0})
|
|
e.firePublishingTrackingEvent=function(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.DEFAULT_URN,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,t.generateTrackingId)(),a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[]
|
|
const s={[n.PUBLISHING_TRACKABLE_OBJECT]:{objectUrn:o,trackingId:l},[n.PUBLISHING_WORKFLOW]:l}
|
|
Object.keys(a).forEach((function(t){let n=a[t]
|
|
t===i&&(n=e.generateControlUrn(n))
|
|
s[t]=n}))
|
|
e.fireTrackingPayload(r,s)}
|
|
const i="controlUrn"}))
|
|
|
|
//# sourceMappingURL=engine-vendor.map |