PromoCursed/node_modules/.cache/babel-loader/e9f49316d81ed2d35f3b341d5899d7d447817b84f89f1756ba67715a17d8d320.json
2024-08-20 23:25:37 +04:00

1 line
1.3 KiB
JSON

{"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/Аришина)/Desktop/promo/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":[]}