decord/beta/source/modules/auth/native/useInitialRegistrationStep.tsx
github-actions 30c0bb2ec3 chore: update source for beta 347.10
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4975.js (118.4 MB)
2026-09-24 16:03:38 +00:00

140 lines
4.2 KiB
TypeScript

// Module ID: 16305
// Function ID: 16306
// Name: useInitialRegistrationStep
// Dependencies: [19, 502, 6866, 16290, 16289, 558, 568, 504, 6864, 2]
// Module 16305 (useInitialRegistrationStep)
import AuthenticationActionCreatorsDefault from "AuthenticationActionCreators" /* 6864 */;
import RegistrationStepsUtils from "RegistrationStepsUtils" /* 16289 */;
import noop from "module_19" /* 19 */;
import AuthenticationStore from "AuthenticationStore" /* 502 */;
import ConsentStore from "ConsentStore" /* 6866 */;
const require = globalThis.__r;
require = fn;
const resetRegistration = fn(16290).resetRegistration;
const ReactCompilerGating = fn(558);
const size = fn(2);
const result = size.fileFinishedImporting("modules/auth/native/useInitialRegistrationStep.tsx");
export default ReactCompilerGating.isReactCompilerEnabled() ? ((arg0) => {
_require = arg0;
const cResult = require("c").c(9);
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const items = [ConsentStore];
const fn = function f() {
return authenticationConsentRequired.getAuthenticationConsentRequired();
};
cResult[0] = items;
cResult[1] = fn;
tmp4 = items;
tmp5 = fn;
} else {
[tmp4, tmp5] = cResult;
}
let obj = require("c");
const stateFromStores = require("initialize").useStateFromStores(tmp4, tmp5);
if (cResult[2] === stateFromStores) {
if (cResult[3] === arg0) {
let tmp8 = cResult[4];
let tmp9 = cResult[5];
}
const effect = noop.useEffect(tmp8, tmp9);
if (cResult[6] !== arg0) {
class F {
constructor() {
obj = closure_0(closure_2[4]);
if (closure_0 === obj.getRegistrationSteps()[1]) {
return () => {
closure_1_6();
if (!authenticated.isAuthenticated()) {
stateFromStores(dependencyMap[8]).loginReset();
const obj = stateFromStores(dependencyMap[8]);
}
};
} else {
return;
}
}
}
const items1 = [arg0];
cResult[6] = arg0;
cResult[7] = F;
cResult[8] = items1;
let tmp12 = items1;
const tmp11 = F;
} else {
class F {
constructor() {
obj = closure_0(closure_2[4]);
if (closure_0 === obj.getRegistrationSteps()[1]) {
return () => {
closure_1_6();
if (!authenticated.isAuthenticated()) {
stateFromStores(dependencyMap[8]).loginReset();
const obj = stateFromStores(dependencyMap[8]);
}
};
} else {
return;
}
}
}
tmp12 = cResult[8];
}
const effect1 = noop.useEffect(tmp11, tmp12);
}
class S {
constructor() {
tmp = closure_2;
obj = closure_0(closure_2[4]);
tmp2 = closure_0 === obj.getRegistrationSteps()[1];
if (tmp2) {
tmp3 = closure_1;
tmp4 = null;
tmp2 = null == closure_1;
}
if (tmp2) {
tmp5 = closure_1;
obj2 = closure_1(tmp[8]);
locationMetadata = obj2.getLocationMetadata();
}
return;
}
}
const items2 = [stateFromStores, arg0];
cResult[2] = stateFromStores;
cResult[3] = arg0;
cResult[4] = S;
cResult[5] = items2;
tmp9 = items2;
tmp8 = S;
}) : ((arg0) => {
_require = arg0;
const items = [ConsentStore];
const stateFromStores = require("initialize").useStateFromStores(items, () => authenticationConsentRequired.getAuthenticationConsentRequired());
const items1 = [stateFromStores, arg0];
const effect = noop.useEffect(() => {
let tmp2 = closure_0 === RegistrationStepsUtils.getRegistrationSteps()[1];
if (tmp2) {
tmp2 = null == stateFromStores;
}
if (tmp2) {
const locationMetadata = AuthenticationActionCreatorsDefault.getLocationMetadata();
}
}, items1);
const items2 = [arg0];
const effect1 = noop.useEffect(() => {
if (closure_0 === obj.getRegistrationSteps()[1]) {
return () => {
closure_1_6();
if (!authenticated.isAuthenticated()) {
stateFromStores(dependencyMap[8]).loginReset();
const obj = stateFromStores(dependencyMap[8]);
}
};
}
obj = RegistrationStepsUtils;
}, items2);
});