Module 390756

661 characters · in no known chunk
Dependencies
Required by (3)
Lazily required by (0)none
Requires (3)
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{Mv:()=>o,My:()=>u,bV:()=>l});var r=n(353640),i=n(499867),s=n(121894);let a=(0,r.v)((0,i.eh)(()=>({commandAnalyticsContext:new Map})));function o(e){let{command:t,location:n,sectionName:r}=e,{commandAnalyticsContext:i}=a.getState(),o=i.get(t);if(null==o||o.location!==n||o.sectionName!==r){let e=new Map(i);e.set(t,{location:n,sectionName:r}),(0,s.r)(()=>a.setState({commandAnalyticsContext:e}))}}function l(e){let{commandAnalyticsContext:t}=a.getState();return t.get(e)}function u(e){let{commandAnalyticsContext:t}=a.getState();if(t.has(e)){let n=new Map(t);n.delete(e),(0,s.r)(()=>a.setState({commandAnalyticsContext:n}))}}}