// Module ID: 1669 // Function ID: 18540 // Name: findDescendantWithExitingAnimation // Dependencies: [1585, 1586, 1638, 1593, 1668] // Module 1669 (findDescendantWithExitingAnimation) const require = arg1; const dependencyMap = arg6; function findDescendantWithExitingAnimation(isDummy, appendChild) { let length; if (isDummy instanceof globalThis.HTMLElement) { isDummy = isDummy.isDummy; if (isDummy) { isDummy = undefined === isDummy.removedAfterAnimation; } if (isDummy) { (function reattachElementToAncestor(onanimationend, appendChild) { let closure_0 = onanimationend; let closure_1 = appendChild; const snapshots = outer1_0(outer1_1[4]).snapshots; const value = snapshots.get(onanimationend); if (value) { onanimationend.removedAfterAnimation = true; appendChild.appendChild(onanimationend); outer1_0(outer1_1[4]).setElementPosition(onanimationend, value); onanimationend = onanimationend.onanimationend; onanimationend.onanimationend = function(arg0) { appendChild.removeChild(closure_0); if (null != onanimationend) { const self = this; onanimationend.call(this, arg0); } }; const obj = outer1_0(outer1_1[4]); } else { const logger = outer1_0(outer1_1[1]).logger; logger.error("Failed to obtain snapshot."); } })(isDummy, appendChild); } const _Array = Array; const arr = Array.from(isDummy.children); let num = 0; if (0 < arr.length) { do { let tmp2 = findDescendantWithExitingAnimation; let tmp3 = findDescendantWithExitingAnimation(arr[num], appendChild); num = num + 1; length = arr.length; } while (num < length); } } } const map = new Map(); let closure_3 = []; let c4 = false; arg5.configureWebLayoutAnimations = function configureWebLayoutAnimations() { if (obj.isWindowAvailable()) { const _document = document; if (null === document.getElementById("ReanimatedPredefinedWebAnimationsStyle")) { const _document2 = document; const element =