// Module ID: 1741 // Function ID: 1742 // Name: findDescendantWithExitingAnimation // Dependencies: [1657, 1658, 1710, 1665, 1740] // Module 1741 (findDescendantWithExitingAnimation) import isJest from "isJest" /* 1657 */; import addLogBoxLog from "addLogBoxLog" /* 1658 */; import t from "t" /* 1665 */; require = arg1; let dependencyMap = arg6; function findDescendantWithExitingAnimation(isDummy, appendChild) { let length; if (isDummy instanceof globalThis.HTMLElement) { isDummy = isDummy.isDummy; if (isDummy) { isDummy = undefined === isDummy.removedAfterAnimation; } if (isDummy) { const _require = isDummy; dependencyMap = appendChild; const snapshots = _require(1740).snapshots; const value = snapshots.get(isDummy); if (value) { isDummy.removedAfterAnimation = true; appendChild.appendChild(isDummy); tmp2(1740).setElementPosition(isDummy, value); const onanimationend = isDummy.onanimationend; isDummy.onanimationend = function(arg0) { appendChild.removeChild(closure_0); if (onanimationend != null) { const self = this; const call = tmp2.call; if (typeof call === "unknown") { tmp2(arg0); } else { call(self, arg0); } } }; const tmp2Result = tmp2(1740); } else { const logger = tmp2(1658).logger; logger.error("Failed to obtain snapshot."); } } const _Array = Array; const arr = Array.from(isDummy.children); let num3 = 0; if (0 < arr.length) { do { let tmp8 = findDescendantWithExitingAnimation; let tmp9 = findDescendantWithExitingAnimation(arr[num3], appendChild); num3 = num3 + 1; length = arr.length; } while (num3 < length); } } } const ReanimatedPredefinedWebAnimationsStyle = "ReanimatedPredefinedWebAnimationsStyle"; const ReanimatedCustomWebAnimationsStyle = "ReanimatedCustomWebAnimationsStyle"; const map = new Map(); let closure_5 = []; let c6 = false; arg5.configureWebLayoutAnimations = function configureWebLayoutAnimations() { if (obj.isWindowAvailable()) { const _document = document; if (null === document.getElementById(ReanimatedPredefinedWebAnimationsStyle)) { const _document2 = document; const element =