Build 574548stable
Module 697138
1,361 characters · in no known chunkDependencies
Source Raw
function(e,t,n){"use strict";n.d(t,{A:()=>p});var i=n(627968),r=n(64700),s=n(919523),a=n(621466),o=n(17928),l=n(844222),u=n(174459),c=n(775602),d=n(264927),_=n(652215),h=n(650583),f=n(375708);function E(e){if(e.ctrlKey||e.altKey||e.metaKey||e.key!==h.dh.TAB||null==e.target)return;let{target:t}=e,n=(0,a.BF)(e)?.activeElement;(0,a.vq)(t)&&u.default.track(_.HAw.KEYBOARD_SHORTCUT_USED,{shortcut_name:"tab_navigation",source_class_list:null!=n?Array.from(n.classList):[],location_object:t.tagName})}function p(e){let{children:t}=e,n=(0,o.cf)([c.Ay],()=>({enabled:c.Ay.useReducedMotion,rawValue:c.Ay.rawPrefersReducedMotion})),a=(0,o.cf)([c.Ay],()=>({enabled:c.Ay.useForcedColors,rawValue:c.Ay.systemForcedColors})),u=(0,o.bG)([c.Ay],()=>c.Ay.isHighContrastModeEnabled),_=(0,o.bG)([c.Ay],()=>c.Ay.alwaysShowLinkDecorations),h=(0,o.bG)([c.Ay],()=>c.Ay.keyboardModeEnabled),p=(0,o.bG)([c.Ay],()=>c.Ay.isSwitchIconsEnabled),m=r.useMemo(()=>({reducedMotion:n,prefersCrossfades:!1,forcedColors:a,alwaysShowLinkDecorations:_,highContrastModeEnabled:u,keyboardModeEnabled:h,switchIconsEnabled:p}),[n,a,_,u,h,p]);return r.useEffect(()=>((0,s.waitForAllDefaultIntlMessagesLoaded)().then(()=>(0,d.Z7)()),f.intl.onLocaleChange(()=>(0,d.Z7)()),window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)),[]),(0,i.jsx)(l.C.Provider,{value:m,children:t})}}