PromoCursed/node_modules/.cache/babel-loader/40cd1b12adab8eb59f92aec3fe9946cc74c02ddc532f862f9e6ef35711d7a7f8.json

1 line
1.4 KiB
JSON
Raw Normal View History

2024-08-20 23:25:37 +04:00
{"ast":null,"code":"export default function contains(root, n) {\n if (!root) {\n return false;\n }\n\n // Use native if support\n if (root.contains) {\n return root.contains(n);\n }\n\n // `document.contains` not support with IE11\n var node = n;\n while (node) {\n if (node === root) {\n return true;\n }\n node = node.parentNode;\n }\n return false;\n}","map":{"version":3,"names":["contains","root","n","node","parentNode"],"sources":["C:/Users/Аришина)/source/repos/PromoCursed/node_modules/rc-util/es/Dom/contains.js"],"sourcesContent":["export default function contains(root, n) {\n if (!root) {\n return false;\n }\n\n // Use native if support\n if (root.contains) {\n return root.contains(n);\n }\n\n // `document.contains` not support with IE11\n var node = n;\n while (node) {\n if (node === root) {\n return true;\n }\n node = node.parentNode;\n }\n return false;\n}"],"mappings":"AAAA,eAAe,SAASA,QAAQA,CAACC,IAAI,EAAEC,CAAC,EAAE;EACxC,IAAI,CAACD,IAAI,EAAE;IACT,OAAO,KAAK;EACd;;EAEA;EACA,IAAIA,IAAI,CAACD,QAAQ,EAAE;IACjB,OAAOC,IAAI,CAACD,QAAQ,CAACE,CAAC,CAAC;EACzB;;EAEA;EACA,IAAIC,IAAI,GAAGD,CAAC;EACZ,OAAOC,IAAI,EAAE;IACX,IAAIA,IAAI,KAAKF,IAAI,EAAE;MACjB,OAAO,IAAI;IACb;IACAE,IAAI,GAAGA,IAAI,CAACC,UAAU;EACxB;EACA,OAAO,KAAK;AACd","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}