package.dist.locale.getEffectiveDir.js.map Maven / Gradle / Ivy
{"version":3,"file":"getEffectiveDir.js","sourceRoot":"","sources":["../../src/locale/getEffectiveDir.ts"],"names":[],"mappings":"AAAA,MAAM,eAAe,GAAG,CAAC,OAAoB,EAAiB,EAAE;IAC/D,IAAI,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;QACjC,OAAO,KAAK,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACd,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC","sourcesContent":["const getEffectiveDir = (element: HTMLElement): \"rtl\" | \"ltr\" => {\n\tif (element.matches(\":dir(rtl)\")) {\n\t\treturn \"rtl\";\n\t}\n\n\treturn \"ltr\";\n};\n\nexport default getEffectiveDir;\n"]}