@wordpress/block-library
Version:
Block library for the WordPress editor.
8 lines (7 loc) • 938 B
Source Map (JSON)
{
"version": 3,
"sources": ["../../src/cover/view.js"],
"sourcesContent": ["import { getContext, store } from '@wordpress/interactivity';\nimport { prefersReducedMotion } from '@wordpress/a11y';\n\nstore(\n\t'core/cover',\n\t{\n\t\tstate: {\n\t\t\tget videoSrc() {\n\t\t\t\tconst { src, reducedMotionSrc } = getContext();\n\n\t\t\t\t// The server renders the autoplaying source, so it is only\n\t\t\t\t// replaced for a visitor who has asked for reduced motion.\n\t\t\t\tif ( reducedMotionSrc && prefersReducedMotion() ) {\n\t\t\t\t\treturn reducedMotionSrc;\n\t\t\t\t}\n\n\t\t\t\treturn src;\n\t\t\t},\n\t\t},\n\t},\n\t{ lock: true }\n);\n"],
"mappings": ";;;AAAA,2BAAkC;AAClC,kBAAqC;AAAA,IAErC;AAAA,EACC;AAAA,EACA;AAAA,IACC,OAAO;AAAA,MACN,IAAI,WAAW;AACd,cAAM,EAAE,KAAK,iBAAiB,QAAI,iCAAW;AAI7C,YAAK,wBAAoB,kCAAqB,GAAI;AACjD,iBAAO;AAAA,QACR;AAEA,eAAO;AAAA,MACR;AAAA,IACD;AAAA,EACD;AAAA,EACA,EAAE,MAAM,KAAK;AACd;",
"names": []
}