Module 752755

725 characters · in ba960e873e22e1dd.js
Dependencies
Required by (2)
Lazily required by (0)none
Requires (2)
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{A:()=>c,e:()=>s});var i,l=n(17928),r=n(228366),s=((i={})[i.NOT_FETCHED=0]="NOT_FETCHED",i[i.FETCHING=1]="FETCHING",i[i.FETCHED=2]="FETCHED",i[i.FAILED=3]="FAILED",i);let a={},o={};class E extends l.Ay.Store{static displayName="MediaPostEmbedStore";getMediaPostEmbed(e){if(null!=e)return a[e]}getEmbedFetchState(e){return o[e]??0}getMediaPostEmbeds(){return a}}let c=new E(r.h,{CONNECTION_OPEN:function(){a={},o={}},MEDIA_POST_EMBED_FETCH:function(e){let{threadId:t}=e;o[t]=1},MEDIA_POST_EMBED_FETCH_SUCCESS:function(e){let{threadId:t,mediaPostEmbed:n}=e;a={...a,[t]:n},o[t]=2},MEDIA_POST_EMBED_FETCH_FAILURE:function(e){let{threadId:t}=e;o[t]=3},LOGOUT:function(e){e.isSwitchingAccount||(a={},o={})}})}