Loading
function(e,t,n){var i=n(855986),s=n(73153),r=n(793943),l=n(287809),a=n(129230),o=n(722178),c=n(350972),u=n(652215),d=n(49999),m=n(682901);let h={client:{desktop:c.LW.DEFAULT,coachmarkImpressions:0}},g=!0;function f(){(g=!o.Ay.canUsePremiumAppIcons(l.default.getCurrentUser()))&&x(c.LW.DEFAULT)}function x(e){h.client.desktop=e,g||a.default.track(u.HAw.APP_ICON_UPDATED,{icon_id:e,user_premium_tier:l.default.getCurrentUser()?.premiumType,icon_premium_tier:e!==c.LW.DEFAULT?m.PremiumTypes.TIER_2:null})}function p(){g&&(h.client={desktop:c.LW.DEFAULT,coachmarkImpressions:2})}class A extends i.Ay.PersistedStore{static displayName="AppIconPersistedStoreState";static persistKey="AppIconPersistedStoreState";initialize(e){null!=e&&(h=e),this.waitFor(l.default),this.syncWith([l.default],f)}get isUpsellPreview(){return g}getState(){return h}getCurrentDesktopIcon(){return h?.client?.desktop}}let y=new A(s.h,{APP_ICON_UPDATED:function(e){let{id:t}=e;null!=t&&x(t)},APP_ICON_EDITOR_RESET:p,APP_ICON_TRACK_IMPRESSION:function(e){let{markAsDismissed:t}=e;h.client.coachmarkImpressions+=1,h.client.coachmarkImpressions>=2&&(t?.(d.i.UNKNOWN),p(),(0,r.Jp)())},LOGOUT:p});n.d(t,{},{A:y})}