70 lines
2.2 KiB
JavaScript
70 lines
2.2 KiB
JavaScript
// Metro module 1766 (f1767).
|
|
import _classCallCheck from "./_classCallCheck";
|
|
import _createClass from "./_createClass";
|
|
import { prepareUIRegistry } from "./Module1767";
|
|
import { runOnUI } from "./Module1650";
|
|
let env1492 = {};
|
|
const c1492_4 = {
|
|
code: "function pnpm_FrameCallbackRegistryJSTs1(){const{callback,callbackId}=this.__closure;global._frameCallbackRegistry.registerFrameCallback(callback,callbackId);}"
|
|
};
|
|
const c1492_5 = {
|
|
code: "function pnpm_FrameCallbackRegistryJSTs2(){const{callbackId}=this.__closure;global._frameCallbackRegistry.unregisterFrameCallback(callbackId);}"
|
|
};
|
|
const c1492_6 = {
|
|
code: "function pnpm_FrameCallbackRegistryJSTs3(){const{callbackId,state}=this.__closure;global._frameCallbackRegistry.manageStateFrameCallback(callbackId,state);}"
|
|
};
|
|
const FrameCallbackRegistryJS = function FrameCallbackRegistryJS() {
|
|
_classCallCheck(this, FrameCallbackRegistryJS);
|
|
this.nextCallbackId = 0;
|
|
prepareUIRegistry();
|
|
};
|
|
export default _createClass(FrameCallbackRegistryJS, [{
|
|
key: "registerFrameCallback",
|
|
value: function registerFrameCallback(a0) {
|
|
let nextCallbackId;
|
|
if (a0) {
|
|
nextCallbackId = this.nextCallbackId;
|
|
this.nextCallbackId = this.nextCallbackId + 1;
|
|
const r15 = function c() {
|
|
global._frameCallbackRegistry.registerFrameCallback(a0, nextCallbackId);
|
|
};
|
|
r15.__closure = {
|
|
callback: a0,
|
|
callbackId: nextCallbackId
|
|
};
|
|
r15.__workletHash = 11361563554462;
|
|
r15.__initData = c1492_4;
|
|
runOnUI(r15)();
|
|
return nextCallbackId;
|
|
}
|
|
return -1;
|
|
}
|
|
}, {
|
|
key: "unregisterFrameCallback",
|
|
value: function unregisterFrameCallback(a0) {
|
|
const r11 = function c() {
|
|
global._frameCallbackRegistry.unregisterFrameCallback(a0);
|
|
};
|
|
r11.__closure = {
|
|
callbackId: a0
|
|
};
|
|
r11.__workletHash = 9182274559334;
|
|
r11.__initData = c1492_5;
|
|
runOnUI(r11)();
|
|
}
|
|
}, {
|
|
key: "manageStateFrameCallback",
|
|
value: function manageStateFrameCallback(a0, a1) {
|
|
const t = function t() {
|
|
global._frameCallbackRegistry.manageStateFrameCallback(a0, a1);
|
|
};
|
|
t.__closure = {
|
|
callbackId: a0,
|
|
state: a1
|
|
};
|
|
t.__workletHash = 5244475777443;
|
|
t.__initData = c1492_6;
|
|
runOnUI(t)();
|
|
}
|
|
}]);
|