Build 586984stable
Module 650048
872 characters · in no known chunkDependencies
Source Raw
function(e,t,n){"use strict";n.d(t,{A:()=>u});var i=n(17928),r=n(506774),a=n(228366),s=n(652215);let l={lastViewedPath:null,lastViewedNonVoicePath:null},o=l,d="LAST_VIEWED_PATH";class c extends i.Ay.PersistedStore{static displayName="DefaultRouteStore";static persistKey="DefaultRouteStore";static migrations=[()=>{let e=r.w.get(d,null);return r.w.remove(d),{lastViewedPath:e}}];initialize(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;o=e??l}get defaultRoute(){return s.BVt.ME}get lastNonVoiceRoute(){return o.lastViewedNonVoicePath??s.BVt.ME}get fallbackRoute(){return s.BVt.ME}getState(){return o}}let u=new c(a.h,{SAVE_LAST_ROUTE:function(e){let{path:t}=e;return o.lastViewedPath=t,!0},SAVE_LAST_NON_VOICE_ROUTE:function(e){let{path:t}=e;return o.lastViewedNonVoicePath=t,!0},LOGOUT:function(){o={lastViewedPath:null,lastViewedNonVoicePath:null}}})}