Module 295811

1,568 characters · in no known chunk
Dependencies
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";let i,r;n.d(t,{A:()=>p});var a=n(17928),s=n(228366),l=n(758836),o=n(202541);let d=[],c=new Map,u=new Map,_=new Map,E=new Map,A=new Map,h=new Map,I=new Map;class f extends a.Ay.Store{static displayName="CollectiblesShopHomesStore";getLastSuccessfulFetch(e){return c.get(e)}getLastErrorTimestamp(e){return u.get(e)}getLastFetchOptions(e){return _.get(e)}getFetchShopHomeError(e){return E.get(e)}getIsFetchingShopHome(e){return A.get(e)}getShopBlocks(e){return I.get(e)??d}getHasKnownStaleData(e){return h.get(e)}getShopHomeConfigOverride(){return i}getShopLayoutUrlOverride(){return r}}let p=new f(s.h,{COLLECTIBLES_SHOP_HOME_FETCH:function(e){A.set(e.tab,!0),E.set(e.tab,void 0),_.set(e.tab,e.options),_.set(e.tab,e.options),u.set(e.tab,void 0),h.set(e.tab,!1)},COLLECTIBLES_SHOP_HOME_FETCH_SUCCESS:function(e){I.set(e.tab,e.shopHome.shopBlocks),c.set(e.tab,Date.now()),A.set(e.tab,!1),E.set(e.tab,void 0),u.set(e.tab,void 0),h.set(e.tab,!1)},COLLECTIBLES_SHOP_HOME_FETCH_FAILURE:function(e){I.set(e.tab,d),A.set(e.tab,!1),E.set(e.tab,e.error),u.set(e.tab,Date.now()),h.set(e.tab,!0)},COLLECTIBLES_SET_SHOP_HOME_CONFIG_OVERRIDE:function(e){i=e.shopHomeConfigOverride},COLLECTIBLES_SET_SHOP_LAYOUT_URL_OVERRIDE:function(e){r=e.shopLayoutUrlOverride},SKU_PURCHASE_SUCCESS:function(e){null!=e.appliedUserDiscounts&&e.appliedUserDiscounts.some(e=>e.discount.id===o.eR||e.discount.id===o.Qz||e.discount.id===o.tU)&&h.set(l.G2.HOME,!0)},LOGOUT:function(){I.clear(),_.clear(),E.clear(),A.clear(),c.clear(),u.clear(),h.clear(),i=void 0,r=void 0}})}