{"version":3,"file":"reduced-motion.mjs","names":[],"sources":["../../src/utils/reduced-motion.js"],"sourcesContent":["/**\n * Whether the user has asked their operating system to reduce motion.\n *\n * This is the counterpart to the `useReducedMotion` hook in\n * `@wordpress/compose`, for block view scripts, which run outside React. It\n * reads the preference once; callers that need to react to it changing should\n * watch the media query themselves.\n *\n * @return {boolean} Whether reduced motion is preferred.\n */\nexport function prefersReducedMotion() {\n\treturn (\n\t\twindow.matchMedia?.( '(prefers-reduced-motion: reduce)' )?.matches ===\n\t\ttrue\n\t);\n}\n"],"mappings":";;;;;;;;;;;AAUA,SAAgB,uBAAuB;CACtC,OACC,OAAO,aAAc,kCAAmC,CAAC,EAAE,YAC3D;AAEF"}