Module 752755

725 characters · in 2f9baa53e1c5e105.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:()=>r});var i,a=n(311907),l=n(73153),r=((i={})[i.NOT_FETCHED=0]="NOT_FETCHED",i[i.FETCHING=1]="FETCHING",i[i.FETCHED=2]="FETCHED",i[i.FAILED=3]="FAILED",i);let s={},o={};class d extends a.Ay.Store{static displayName="MediaPostEmbedStore";getMediaPostEmbed(e){if(null!=e)return s[e]}getEmbedFetchState(e){return o[e]??0}getMediaPostEmbeds(){return s}}let c=new d(l.h,{CONNECTION_OPEN:function(){s={},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;s={...s,[t]:n},o[t]=2},MEDIA_POST_EMBED_FETCH_FAILURE:function(e){let{threadId:t}=e;o[t]=3},LOGOUT:function(e){e.isSwitchingAccount||(s={},o={})}})}