Module 582388

941 characters · in no known chunk
Dependencies
Required by (2)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{A:()=>d});var i=n(17928),r=n(228366),s=n(526218),a=n(970928),o=n(257269);class l{type;applicationId;linkId;assetId;assetPath;title;description;customId;constructor(e){const t=(0,s.t)(e.link_id);this.type=t?.type??null,this.applicationId=e.application_id,this.linkId=e.link_id,this.assetId="asset_id"in e?e.asset_id:void 0,this.assetPath="asset_path"in e?e.asset_path:void 0,this.title=e.title,this.description=e.description,this.customId=e.custom_id}getAssetURL(){return this.type===s.G.MANAGED?(0,a.uD)(this.applicationId,this.assetId,512):this.type===s.G.QUICK?(0,o.VP)(this.assetPath):void 0}}let u={};class c extends i.Ay.Store{static displayName="CustomActivityLinksStore";getOne(e,t){if(null!=u[e])return u[e][t]}}let d=new c(r.h,{CUSTOM_ACTIVITY_LINK_FETCH_SUCCESS:function(e){let{applicationId:t,link:n}=e;null==u[t]&&(u[t]=Object.create(null)),u[t][n.link_id]=new l(n)},LOGOUT:function(){u={}}})}