Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
48 lines
1.7 KiB
TypeScript
48 lines
1.7 KiB
TypeScript
// Module ID: 16295
|
|
// Function ID: 16296
|
|
// Name: useInitialRegistrationStep
|
|
// Dependencies: [19, 502, 6868, 16280, 16279, 504, 6866, 2]
|
|
// Exports: default
|
|
|
|
// Module 16295 (useInitialRegistrationStep)
|
|
import AuthenticationActionCreatorsDefault from "AuthenticationActionCreators" /* 6866 */;
|
|
import RegistrationStepsUtils from "RegistrationStepsUtils" /* 16279 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import AuthenticationStore from "AuthenticationStore" /* 502 */;
|
|
import ConsentStore from "ConsentStore" /* 6868 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
require = fn;
|
|
const resetRegistration = fn(16280).resetRegistration;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/auth/native/useInitialRegistrationStep.tsx");
|
|
|
|
export default function useInitialRegistrationStep(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[6]).loginReset();
|
|
const obj = stateFromStores(dependencyMap[6]);
|
|
}
|
|
};
|
|
}
|
|
obj = RegistrationStepsUtils;
|
|
}, items2);
|
|
};
|