Loading
function(e,t,n){var r=n(620632),a=n(73153),i=n(626584),o=n(287809),u=n(927813),c=n(773527),s=n(211824);let l=new i.A("HexagonActionCreators"),d=10*u.A.Millis.SECOND,f=null;function p(e){a.h.dispatch({type:"HEXAGON_CAMPAIGN_PREVIOUS_PERK_VALUES_SAVED",previousPerkValues:e})}n.d(t,{},{Br:function(e){return(0,c.Rd)(o.default.getCurrentUser(),e)?Promise.resolve(!0):(null==f&&(f=async function(e){try{return await async function(e){try{await async function(){await r.Bo.post({url:s.tK,rejectWithError:!0})}()}catch(e){return l.warn(`Failed to enroll in the Hexagon campaign: ${e}`),!1}return await function(e){function t(){return(0,c.Rd)(o.default.getCurrentUser(),e)}return t()?Promise.resolve(!0):new Promise(e=>{function n(){t()&&(clearTimeout(r),o.default.removeChangeListener(n),e(!0))}let r=setTimeout(()=>{o.default.removeChangeListener(n),e(!1)},d);o.default.addChangeListener(n)})}(e)||l.warn(`Timed out waiting for the Hexagon campaign ${e} perk to sync`),!0}(e)}finally{f=null}}(e)),f)},Lo:function(e){(0,c.z9)(e)||p({appIconId:e})},Tf:function(){a.h.dispatch({type:"HEXAGON_CAMPAIGN_DISPLAY_NAME_STYLES_VISITED"})},VN:function(e){a.h.dispatch({type:"HEXAGON_CAMPAIGN_PERK_APPLIED",perk:e})},WT:function(){let e=o.default.getCurrentUser()?.displayNameStyles??null;(0,c.Jy)(e)||p({displayNameStyles:e})},fv:p})}