31 lines
781 B
TypeScript
31 lines
781 B
TypeScript
// Metro module 8134 (f8135).
|
|
import { create } from "../../../_bundle/Module644";
|
|
import { batchUpdates } from "../../../_bundle/Module705";
|
|
const r15 = create((c16280_0) => ({
|
|
lockKeys: new Set(),
|
|
requestFreezeLock: ({ key, lockEnabled }) => {
|
|
batchUpdates(() => {
|
|
c16280_0((a0) => {
|
|
const lockKeys = a0.lockKeys;
|
|
const r12 = lockKeys.has(key);
|
|
if (lockEnabled) {
|
|
return r12 ? a0 : {
|
|
...a0,
|
|
lockKeys: new Set([key, ...Array.from(a0.lockKeys)])
|
|
};
|
|
}
|
|
if (r12) {
|
|
const set = new Set(lockKeys);
|
|
set.delete(key);
|
|
return {
|
|
...a0,
|
|
lockKeys: set
|
|
};
|
|
}
|
|
return a0;
|
|
});
|
|
});
|
|
}
|
|
}));
|
|
export default r15;
|