Untitled

 avatar
unknown
plain_text
4 months ago
27 kB
3
Indexable
'use strict';

(self.webpackChunkreact_web = self.webpackChunkreact_web || []).push([[0x94], {
  0x1a69: (_0x55b7a7, _0x580d60, _0x26fb71) => {
    _0x26fb71.d(_0x580d60, {
      'A': () => _0x4ca103
    });
    var _0x4365c2 = _0x26fb71(0x26de);
    var _0x1aa7af = _0x26fb71(0x160ba);
    var _0x3323ac = _0x26fb71(0x337);
    var _0x2aa3b6 = _0x26fb71(0x3cef);
    var _0x3f0bdd = _0x26fb71(0x13c29);
    var _0x399f43 = _0x26fb71(0xfb0b);
    var _0x2d0728 = _0x26fb71.n(_0x399f43);
    var _0x3d7c1f = _0x26fb71(0xa6f);
    var _0x2cf229 = _0x26fb71(0xe65f);
    var _0xe02c74 = _0x26fb71(0xad7e);
    const _0x45a4b5 = _0x26cc63 => {
      let {
        image: _0x245928
      } = _0x26cc63;
      0x0;
      0x0;
      return _0xe02c74.jsx(_0x3d7c1f.FR, {
        'data-testid': "inputImageWrapper",
        'children': _0xe02c74.jsx("img", {
          'src': 'data:'.concat(_0x245928)
        })
      });
    };
    var _0x271d3c = _0x26fb71(0x105ba);
    var _0x30c131 = _0x26fb71(0x6f85);
    const _0x2881e5 = _0x4f6f14 => {
      let {
        image: _0x1ad6b1,
        validation: _0x11a4b0
      } = _0x4f6f14;
      0x0;
      const _0x399942 = _0x30c131.j();
      0x0;
      const [_0x48b6f2, _0x4784f4] = _0x4365c2.useState();
      0x0;
      _0x4365c2.useEffect(() => {
        if (_0x11a4b0) {
          const _0x4a920c = _0x11a4b0.find(_0x37c364 => undefined !== _0x37c364.image);
          if (null !== _0x4a920c && undefined !== _0x4a920c && _0x4a920c.image) {
            _0x4784f4(_0x4a920c.image);
          }
        } else {
          _0x4784f4(_0x1ad6b1);
        }
      }, [_0x11a4b0, _0x1ad6b1]);
      0x0;
      const _0x2e9386 = _0x4365c2.useCallback(async () => {
        await _0x399942.authenticationModel.refreshCaptcha();
      }, [_0x399942]);
      return _0x48b6f2 ? (0x0, _0xe02c74.jsxs)(_0x1aa7af.$l, {
        'data-testid': "inputCaptchaImageWrapper",
        'children': [(0x0, _0xe02c74.jsx)(_0x45a4b5, {
          'image': _0x48b6f2
        }), (0x0, _0xe02c74.jsx)(_0x1aa7af.Yt, {
          'name': _0x271d3c.$M.Refresh,
          'onClick': _0x2e9386,
          'size': "24px",
          'data-testid': "refreshCaptchaButton"
        })]
      }) : null;
    };
    0x0;
    const _0x947273 = _0x4365c2.memo(_0x2881e5);
    const _0x5a98a9 = _0x320a44 => {
      let {
        prefix: _0x5151eb
      } = _0x320a44;
      0x0;
      0x0;
      return _0xe02c74.jsx(_0x3d7c1f.eL, {
        'children': _0xe02c74.jsx(_0x3d7c1f.Pk, {
          'children': _0x5151eb
        })
      });
    };
    var _0x5855b0 = _0x26fb71(0x195a);
    const _0xef0280 = _0x175e0c => {
      let {
        label: _0x228e95
      } = _0x175e0c;
      0x0;
      0x0;
      0x0;
      return _0xe02c74.jsx(_0x3d7c1f.vH, {
        'className': "sc-input-suffix",
        'data-testid': "inputSuffixWrapper",
        'children': _0xe02c74.jsx(_0x3d7c1f.cx, {
          'children': _0xe02c74.jsx(_0x5855b0.A, {
            'label': _0x228e95
          })
        })
      });
    };
    var _0xaa0694 = _0x26fb71(0x91e5);
    var _0x41b922 = _0x26fb71(0x13901);
    var _0x11615d = _0x26fb71(0x8cec);
    const _0x27bd57 = _0x13ff87 => {
      let {
        label: _0x1919ee
      } = _0x13ff87;
      0x0;
      0x0;
      0x0;
      return _0xe02c74.jsx(_0x3d7c1f.uH, {
        'data-testid': "inputDescriptionWrapper",
        'children': _0xe02c74.jsx(_0x3d7c1f.lF, {
          'children': _0xe02c74.jsx(_0x5855b0.A, {
            'label': _0x1919ee
          })
        })
      });
    };
    var _0x6158b4 = _0x26fb71(0x16053);
    const _0x124465 = _0x3f5eda => {
      let {
        formInput: {
          key: _0x4cfc22,
          label: _0x1e7235,
          descriptionLabel: _0xb81301,
          prefix: _0x11671d,
          image: _0x5c7f39,
          value: _0x38b8e0,
          type: _0x5d0651,
          mode: _0x38a334,
          rule: _0x5a7ae7,
          required: _0x3c48c3 = false
        },
        initValue: _0x2b8662,
        error: _0x4573ec,
        validation: _0x4cd4c6,
        onChange: _0x5bba4f,
        onClear: _0x43f5fd,
        onBlur: _0x4f45ba,
        changeInputStatus: _0x4483d8
      } = _0x3f5eda;
      0x0;
      const [_0x16b698, _0x4fa84e] = _0x4365c2.useState(_0x5d0651);
      0x0;
      const [_0x46cc20, _0xa5a55c] = _0x4365c2.useState(false);
      0x0;
      const [_0x390f1c, _0x186c18] = _0x4365c2.useState(_0x2b8662);
      0x0;
      _0x4365c2.useEffect(() => {
        if ("checkbox" !== _0x5d0651 && _0x2b8662) {
          _0x24289e(_0x4cfc22, _0x2b8662);
        }
      }, [_0x2b8662, _0x5d0651, _0x4cfc22]);
      0x0;
      const {
        t: _0x609f0c
      } = _0x3f0bdd.Bd();
      const _0x451ed7 = _0x4a542e => {
        _0xa5a55c(_0x5c5b74 => !_0x5c5b74);
      };
      const _0x4a58b5 = _0x4694fb => {
        const {
          target: {
            name: _0x2a6277
          }
        } = _0x4694fb;
        _0x451ed7();
        _0x4f45ba(_0x2a6277);
      };
      0x0;
      const _0x335b28 = _0x4365c2.useCallback(_0x2d0728()((_0x200e8e, _0x4cd398) => {
        _0x5bba4f(_0x200e8e, _0x4cd398);
      }, 0x1f4), [_0x5bba4f]);
      0x0;
      const _0x24289e = _0x4365c2.useCallback((_0x3fd719, _0xa933e1) => {
        _0x186c18(_0xa933e1);
        _0x4483d8(_0x3fd719, _0x6158b4.W.Typing);
        _0x335b28(_0x3fd719, _0xa933e1);
      }, [_0x4483d8, _0x335b28]);
      const _0x1e8dde = _0x362ee5 => {
        let {
          target: {
            name: _0x300f4b,
            type: _0x58e537,
            value: _0x5d0ef7,
            checked: _0x345b86
          }
        } = _0x362ee5;
        let _0x590647 = _0x5d0ef7;
        if (!("checkbox" !== _0x58e537 || _0x345b86)) {
          _0x590647 = '';
        }
        _0x24289e(_0x300f4b, _0x590647);
      };
      0x0;
      0x0;
      return _0xe02c74.jsxs(_0x1aa7af.qm, {
        'data-testid': "formInputContainer",
        'children': ["checkbox" === _0x5d0651 ? (0x0, _0xe02c74.jsxs)(_0x1aa7af.BU, {
          'variant': _0x3d7c1f.Su.Default,
          'invalid': !(0x0, _0x2aa3b6.A)(_0x4573ec),
          'children': [(0x0, _0xe02c74.jsx)(_0x1aa7af.qr, {
            'id': _0x4cfc22,
            'checked': _0x390f1c === _0x38b8e0,
            'type': _0x5d0651,
            'onChange': _0x1e8dde,
            'onBlur': _0x4a58b5,
            'onFocus': _0x451ed7,
            'name': _0x4cfc22,
            'required': _0x3c48c3,
            'value': null !== _0x38b8e0 && undefined !== _0x38b8e0 ? _0x38b8e0 : ''
          }, _0x4cfc22), (0x0, _0xe02c74.jsx)(_0x1aa7af.IP, {
            'htmlFor': _0x4cfc22,
            'children': (0x0, _0xe02c74.jsx)(_0x271d3c.Ay, {
              'name': _0x390f1c === _0x38b8e0 ? _0x271d3c.$M.ICOPassed : _0x271d3c.$M.ICOEmpty
            })
          }), (0x0, _0xe02c74.jsx)(_0x1aa7af.GR, {
            'children': (0x0, _0xe02c74.jsx)(_0x5855b0.A, {
              'label': _0x1e7235
            })
          })]
        }) : (0x0, _0xe02c74.jsxs)(_0xe02c74.Fragment, {
          'children': [_0x5c7f39 && "captcha" === _0x4cfc22 && (0x0, _0xe02c74.jsx)(_0x947273, {
            'image': _0x5c7f39,
            'validation': _0x4cd4c6
          }), (0x0, _0xe02c74.jsxs)(_0x1aa7af.At, {
            'variant': _0x3d7c1f.Su.Default,
            'invalid': !(0x0, _0x2aa3b6.A)(_0x4573ec),
            'children': [_0x11671d && (0x0, _0xe02c74.jsx)(_0x5a98a9, {
              'prefix': _0x11671d
            }), (0x0, _0xe02c74.jsx)(_0x1aa7af.ZQ, {
              'formNoValidate': true,
              'autoComplete': "password" === _0x16b698 ? "new-password" : undefined,
              'inputMode': _0x38a334,
              'type': _0x16b698,
              'onChange': _0x1e8dde,
              'onFocus': _0x451ed7,
              'onBlur': _0x4a58b5,
              'name': _0x4cfc22,
              'required': _0x3c48c3,
              'pattern': _0x5a7ae7,
              'value': null !== _0x390f1c && undefined !== _0x390f1c ? _0x390f1c : '',
              'placeholder': (0x0, _0x2cf229.vC)({
                'label': _0x1e7235,
                't': _0x609f0c
              }),
              'data-testid': "password" === _0x16b698 ? "passwordInput" : "textInput"
            }, _0x4cfc22), (0x0, _0xe02c74.jsx)(_0x3d7c1f.rj, {
              'htmlFor': _0x4cfc22,
              'children': (0x0, _0xe02c74.jsx)(_0x5855b0.A, {
                'label': _0x1e7235
              })
            }), "password" !== _0x5d0651 && !_0x3c48c3 && (0x0, _0xe02c74.jsx)(_0xef0280, {
              'label': 'sg.ui.optional'
            }), "password" !== _0x5d0651 && _0x390f1c && _0x46cc20 && (0x0, _0xe02c74.jsx)(_0xaa0694.A, {
              'onClick': () => {
                _0x335b28.cancel();
                _0x186c18(null);
                _0x43f5fd(_0x4cfc22);
              }
            }), "password" === _0x5d0651 && (0x0, _0xe02c74.jsx)(_0x41b922.A, {
              'changeInputType': _0x4fa84e,
              'type': _0x16b698
            })]
          }, _0x4cfc22)]
        }), !_0x2aa3b6.A(_0x4573ec) && (0x0, _0xe02c74.jsx)(_0x11615d.A, {
          'label': _0x4573ec
        }), _0xb81301 && (0x0, _0xe02c74.jsx)(_0x27bd57, {
          'label': _0xb81301
        })]
      }, _0x4cfc22);
    };
    0x0;
    const _0x52ee92 = _0x4365c2.memo(_0x124465);
    var _0x3b8355 = _0x26fb71(0x13da4);
    var _0x487239 = _0x26fb71(0x5296);
    const _0x105777 = _0x261abc => {
      let {
        formConfiguration: _0xef67b6,
        mainFormChildren: _0x336e41,
        subFormChildren: _0x537c56,
        onFormSubmit: _0x2c265b
      } = _0x261abc;
      0x0;
      const _0x16de34 = _0x30c131.G(_0x487239.Lt.authenticationModel.getAuthUserData);
      0x0;
      const {
        handleChange: _0x1c5d4c,
        handleBlur: _0x36a7ce,
        handleClear: _0x15c901,
        handleInputStateChange: _0x320a4a,
        handleSubmit: _0x184bda,
        isSubmitDisabled: _0x1e2f04,
        headerLabel: _0x16309b,
        descriptionLabel: _0x13bf6a,
        submitLabel: _0x11c4ec,
        formInput: _0x1ce19b,
        errors: _0x426577,
        validation: _0x1db53d
      } = _0x3323ac.V({
        ..._0xef67b6,
        'onFormSubmit': _0x2c265b
      });
      0x0;
      0x0;
      0x0;
      0x0;
      0x0;
      return _0xe02c74.jsxs(_0x1aa7af.MG, {
        'children': [_0xe02c74.jsxs(_0x1aa7af.rN, {
          'data-testid': 'mainFormWrapper',
          'children': [_0xe02c74.jsx(_0x1aa7af.Mo, {
            'data-testid': "formHeader",
            'children': _0xe02c74.jsx(_0x5855b0.A, {
              'label': _0x16309b
            })
          }), _0x13bf6a && (0x0, _0xe02c74.jsx)(_0x1aa7af.Rr, {
            'data-testid': 'formDescriptionLabel',
            'children': (0x0, _0xe02c74.jsx)(_0x5855b0.A, {
              'label': _0x13bf6a
            })
          }), _0x1ce19b && _0x1ce19b.length > 0x0 && (0x0, _0xe02c74.jsxs)(_0x1aa7af._H, {
            'id': "form",
            'onSubmit': _0x184bda,
            'data-testid': "formElement",
            'children': [_0x1ce19b.map(_0x501fbb => (0x0, _0xe02c74.jsx)(_0x52ee92, {
              'formInput': _0x501fbb,
              'initValue': null === _0x16de34 || undefined === _0x16de34 ? undefined : _0x16de34[_0x501fbb.key],
              'error': _0x426577[_0x501fbb.key],
              'validation': null === _0x1db53d || undefined === _0x1db53d ? undefined : _0x1db53d[_0x501fbb.key],
              'onChange': _0x1c5d4c,
              'onClear': _0x15c901,
              'onBlur': _0x36a7ce,
              'changeInputStatus': _0x320a4a
            }, _0x501fbb.key)), _0x336e41, (0x0, _0xe02c74.jsx)(_0x1aa7af.VH, {
              'type': 'submit',
              'variant': _0x3b8355.KI.Highlighted,
              'data-testid': "formProceedButton",
              'disabled': _0x1e2f04,
              'children': (0x0, _0xe02c74.jsx)(_0x1aa7af.Nz, {
                'children': (0x0, _0xe02c74.jsx)(_0x5855b0.A, {
                  'label': _0x11c4ec
                })
              })
            })]
          })]
        }), _0xe02c74.jsx(_0x1aa7af.ww, {
          'children': _0x537c56
        })]
      });
    };
    0x0;
    const _0x4ca103 = _0x4365c2.memo(_0x105777);
  },
  0x337: (_0x24ff80, _0xb28b7d, _0x1d2e21) => {
    _0x1d2e21.d(_0xb28b7d, {
      'V': () => _0xe81edf.A,
      'm': () => _0x2345c8
    });
    var _0xe81edf = _0x1d2e21(0x16053);
    var _0x1edc9d = _0x1d2e21(0x1370);
    0x0;
    const _0x5a7849 = _0x1d2e21(0x1716e).A(function (_0x5434e9, _0x899e5) {
      var _0xab7a33 = {};
      var _0x2d6def = {};
      var _0x1cb186 = 0x0;
      for (var _0x208ce8 = _0x5434e9.length; _0x1cb186 < _0x208ce8;) {
        _0x2d6def[_0x5434e9[_0x1cb186]] = 0x1;
        _0x1cb186 += 0x1;
      }
      for (var _0x2c0ee7 in _0x899e5) if (!_0x2d6def.hasOwnProperty(_0x2c0ee7)) {
        _0xab7a33[_0x2c0ee7] = _0x899e5[_0x2c0ee7];
      }
      return _0xab7a33;
    });
    var _0x2a05b8 = _0x1d2e21(0xdc03);
    var _0x16a57a = _0x1d2e21(0x26de);
    const _0x2345c8 = _0x4bdb5d => {
      0x0;
      const _0x293ded = _0x16a57a.useRef();
      0x0;
      const _0x29112e = _0x16a57a.useMemo(() => (0x0, _0x1edc9d.A)(_0x5a7849(['image']), _0x4bdb5d), [_0x4bdb5d]);
      0x0;
      _0x16a57a.useEffect(() => {
        _0x293ded.current = _0x29112e;
      });
      0x0;
      return !_0x2a05b8.A(_0x293ded.current, _0x29112e);
    };
  },
  0x16053: (_0x4ad136, _0x2d77af, _0x4b20ce) => {
    _0x4b20ce.d(_0x2d77af, {
      'A': () => _0x41cd2f,
      'W': () => _0x3737a1
    });
    var _0xce3b05 = _0x4b20ce(0x26de);
    var _0x50b26d = _0x4b20ce(0x337);
    var _0x3da8ef = _0x4b20ce(0x1131b);
    var _0x4e0d93 = _0x4b20ce(0x24a4);
    let _0x3737a1;
    !function (_0x42d133) {
      _0x42d133.Idle = 'idle';
      _0x42d133.Typing = "typing";
    }(_0x3737a1 || (_0x3737a1 = {}));
    const _0x46db16 = {
      'userInput': {},
      'errors': {},
      'touched': {},
      'state': {}
    };
    const _0x41cd2f = _0x54c410 => {
      let {
        formInput: _0xd2ddd0,
        validation: _0xdc2323,
        result: _0x2f9324,
        label: _0x32324e,
        descriptionLabel: _0x32a236,
        proceedLabel: _0x2fb29d,
        onFormSubmit: _0x1d20d2
      } = _0x54c410;
      0x0;
      const [_0x35a94a, _0x19304b] = _0xce3b05.useState(_0x46db16);
      0x0;
      const _0x352837 = _0x50b26d.m(_0xd2ddd0);
      0x0;
      const _0x1322a8 = _0xce3b05.useMemo(() => _0xd2ddd0.filter(_0x5b371d => _0x5b371d.required).length, [_0xd2ddd0]);
      0x0;
      const _0x4d35f8 = _0xce3b05.useMemo(() => {
        var _0x428569;
        var _0x4a5e8c;
        0x0;
        return _0x3da8ef.nI(_0x35a94a.state) || (null === (_0x428569 = Object.keys(_0x35a94a.errors)) || undefined === _0x428569 ? undefined : _0x428569.length) > 0x0 || (null === (_0x4a5e8c = Object.keys(_0x35a94a.userInput)) || undefined === _0x4a5e8c ? undefined : _0x4a5e8c.length) < _0x1322a8;
      }, [_0x35a94a, _0x1322a8]);
      0x0;
      _0xce3b05.useEffect(() => {
        if (_0x352837) {
          _0x19304b(_0x47c602 => ({
            ..._0x47c602,
            'userInput': {}
          }));
        }
      }, [_0x352837]);
      0x0;
      _0xce3b05.useEffect(() => {
        if (!(_0x2f9324 !== _0x4e0d93.Q7.Invalid && _0x2f9324 !== _0x4e0d93.Q7.Error || !_0xdc2323)) {
          _0x19304b(_0x27a596 => ({
            ..._0x27a596,
            'errors': (0x0, _0x3da8ef.wU)(_0xd2ddd0, _0xdc2323)
          }));
        }
      }, [_0xdc2323, _0x2f9324, _0xd2ddd0]);
      0x0;
      const _0x5be439 = _0xce3b05.useCallback((_0xd9b213, _0x38afbe) => {
        _0x19304b(_0x3be685 => {
          const _0x2da409 = {
            ..._0x3be685.userInput,
            [_0xd9b213]: _0x38afbe
          };
          const _0x165be8 = {
            ..._0x3be685.touched,
            [_0xd9b213]: true
          };
          0x0;
          0x0;
          0x0;
          const _0x2be92b = _0x3da8ef.Bt({
            'input': _0x3da8ef.yf(_0xd2ddd0, _0x32e4ee => _0x32e4ee.key === _0xd9b213),
            'inputToMatch': _0x3da8ef.yf(_0xd2ddd0, _0x4cd139 => _0x4cd139.matchInput === _0xd9b213),
            'formInputState': _0x2da409,
            'touchState': _0x165be8,
            'formErrorsState': _0x3be685.errors
          });
          const _0x445094 = {
            ..._0x3be685.state,
            [_0xd9b213]: _0x3737a1.Idle
          };
          return {
            ..._0x3be685,
            'userInput': _0x2da409,
            'touched': _0x165be8,
            'state': _0x445094,
            ...(_0x2be92b && {
              'errors': _0x2be92b
            })
          };
        });
      }, [_0xd2ddd0]);
      0x0;
      const _0x31d7a9 = _0xce3b05.useCallback(_0x2cfea2 => {
        _0x19304b(_0x19ac8d => {
          const {
            [_0x2cfea2]: _0x47dbcb,
            ..._0x41e95d
          } = _0x19ac8d.userInput;
          const {
            [_0x2cfea2]: _0x4a6a7f,
            ..._0x41a3fc
          } = _0x19ac8d.state;
          let _0x235ce7 = {
            ..._0x19ac8d.errors
          };
          if (_0x19ac8d.errors[_0x2cfea2]) {
            const {
              [_0x2cfea2]: _0x415995,
              ..._0x36d4f5
            } = _0x235ce7;
            _0x235ce7 = _0x36d4f5;
          }
          return {
            ..._0x19ac8d,
            'userInput': _0x41e95d,
            'state': _0x41a3fc,
            ...(_0x19ac8d.errors[_0x2cfea2] && {
              'errors': _0x235ce7
            })
          };
        });
      }, []);
      0x0;
      0x0;
      return {
        'handleChange': _0x5be439,
        'handleBlur': _0xce3b05.useCallback(_0x36bb08 => {
          if (_0x35a94a.state[_0x36bb08] !== _0x3737a1.Typing) {
            _0x19304b(_0x4920e7 => {
              const _0x1a650c = {
                ..._0x4920e7.touched,
                [_0x36bb08]: true
              };
              0x0;
              0x0;
              const _0x2c2c1d = _0x3da8ef.Bt({
                'input': _0x3da8ef.yf(_0xd2ddd0, _0x38f747 => _0x38f747.key === _0x36bb08),
                'formInputState': _0x4920e7.userInput,
                'touchState': _0x1a650c,
                'formErrorsState': _0x4920e7.errors
              });
              return {
                ..._0x4920e7,
                'touched': _0x1a650c,
                ...(_0x2c2c1d && {
                  'errors': _0x2c2c1d
                })
              };
            });
          }
        }, [_0x35a94a, _0xd2ddd0]),
        'handleClear': _0x31d7a9,
        'handleInputStateChange': _0xce3b05.useCallback((_0x21d9aa, _0xc10d70) => {
          if (_0x35a94a.state[_0x21d9aa] !== _0xc10d70) {
            _0x19304b(_0xc2aa6a => ({
              ..._0xc2aa6a,
              'state': {
                [_0x21d9aa]: _0xc10d70
              }
            }));
          }
        }, [_0x35a94a]),
        'handleSubmit': _0x3f2407 => {
          _0x3f2407.preventDefault();
          if (!(null === _0x1d20d2 || undefined === _0x1d20d2)) {
            _0x1d20d2(_0x35a94a.userInput);
          }
        },
        'isSubmitDisabled': _0x4d35f8,
        'headerLabel': _0x32324e,
        'descriptionLabel': _0x32a236,
        'submitLabel': _0x2fb29d,
        'formInput': _0xd2ddd0,
        'validation': _0xdc2323,
        'errors': _0x35a94a.errors
      };
    };
  },
  0x1131b: (_0x251409, _0x372081, _0x4c400c) => {
    _0x4c400c.d(_0x372081, {
      'Bt': () => _0x2b7d9b,
      'jq': () => _0x5a9572,
      'nI': () => _0xd650fe,
      'wU': () => _0x3e9fb6,
      'yf': () => _0x7245de
    });
    var _0x4ba044 = _0x4c400c(0x5296);
    var _0x134181 = _0x4c400c(0x16053);
    const _0x2b7d9b = _0x331632 => {
      let {
        input: _0x35010b,
        inputToMatch: _0x198f27,
        formInputState: _0x463311,
        formErrorsState: _0x3d8e52,
        touchState: _0xa5bfdd,
        valueToCheck: _0x327017
      } = _0x331632;
      let _0x25c05f = null;
      if (!_0x35010b) {
        return;
      }
      const {
        key: _0x2393a8,
        rule: _0x3a7da5,
        matchInput: _0x4ea756,
        required: _0x38bf03
      } = _0x35010b;
      const _0x88dde0 = _0x463311[_0x2393a8];
      const _0xf4d74b = _0x327017 || _0x4ea756 && _0x463311[_0x4ea756];
      if (_0x38bf03 && !_0x88dde0) {
        _0x25c05f = "sg.ui.sso.validation.required";
      } else if (_0x3a7da5 && _0x88dde0 && !new RegExp(_0x3a7da5).test(_0x88dde0)) {
        _0x25c05f = "sg.ui.sso.validation.invalid";
      } else if (_0xf4d74b && _0x88dde0 !== _0xf4d74b) {
        _0x25c05f = 'sg.ui.sso.validation.mismatch';
      }
      let _0x393a6b = {
        ..._0x3d8e52
      };
      if (_0x25c05f) {
        _0x393a6b = {
          ..._0x393a6b,
          [_0x2393a8]: _0x25c05f
        };
      } else {
        if (_0x393a6b[_0x2393a8]) {
          const {
            [_0x2393a8]: _0x4a87f0,
            ..._0xf39ee2
          } = _0x393a6b;
          _0x393a6b = {
            ..._0xf39ee2
          };
        }
      }
      return _0x198f27 && null !== _0xa5bfdd && undefined !== _0xa5bfdd && _0xa5bfdd[_0x198f27.key] ? _0x2b7d9b({
        'input': _0x198f27,
        'formInputState': _0x463311,
        'formErrorsState': _0x393a6b,
        'valueToCheck': _0x88dde0
      }) : _0x393a6b;
    };
    const _0x7245de = (_0x173b7b, _0x2c8fe9) => _0x173b7b.find(_0x2c8fe9);
    const _0x3e9fb6 = (_0x5217ff, _0x4d386a) => _0x5217ff.reduce((_0x269f00, _0x32a60d) => {
      let {
        key: _0x496193
      } = _0x32a60d;
      const _0x3818c1 = _0x4d386a[_0x496193];
      return _0x3818c1 ? {
        ..._0x269f00,
        [_0x496193]: _0x3818c1[0x0].label
      } : _0x269f00;
    }, {});
    const _0xd650fe = _0x2db1ad => {
      let _0x5c8cac = false;
      Object.keys(_0x2db1ad).forEach(_0x1dcb1c => {
        if (_0x2db1ad[_0x1dcb1c] === _0x134181.W.Typing) {
          _0x5c8cac = true;
        }
      });
      return _0x5c8cac;
    };
    const _0x5a9572 = () => {
      const _0x1fe6f8 = document.getElementById('form');
      if (_0x1fe6f8) {
        const _0x47979b = _0x1fe6f8.querySelectorAll('input[type=text]');
        let _0x21f72c = {};
        _0x47979b.forEach(_0x57dbca => {
          _0x21f72c = {
            ..._0x21f72c,
            [_0x57dbca.name]: _0x57dbca.value
          };
        });
        _0x4ba044.JD.authenticationModel.setAuthFlowUserData(_0x21f72c);
      }
    };
  },
  0x41ec: (_0x2ac5db, _0x244748, _0x7f0aa7) => {
    _0x7f0aa7.d(_0x244748, {
      'eS': () => _0x564adc,
      'LO': () => _0x2a4b35,
      'Rw': () => _0x6d01d6,
      'rE': () => _0x36baf8,
      'Ts': () => _0xd1fe19
    });
    var _0x5c113e = _0x7f0aa7(0x5fd1);
    var _0x3e1605 = _0x7f0aa7(0x5296);
    var _0x2bc7f4 = _0x7f0aa7(0x6f85);
    const _0xd1fe19 = () => {
      0x0;
      const _0x2c9434 = _0x2bc7f4.j();
      0x0;
      const _0x66aadf = _0x2bc7f4.G(_0x323647 => _0x323647.loading.effects.settingsModel.processRegionSelection);
      0x0;
      const _0x18abf2 = _0x2bc7f4.G(_0x3e1605.Lt.tvAPIProfileModel.shouldShowRegionSelector);
      const _0x3af6ab = _0x66aadf || !_0x18abf2;
      0x0;
      _0x5c113e.KW(() => {
        _0x2c9434.settingsModel.processRegionSelection();
      }, _0x3af6ab);
      return {
        'isRegionSelectionPending': _0x66aadf,
        'shouldShowRegionSelector': _0x18abf2
      };
    };
    var _0x37a8e2 = _0x7f0aa7(0x26de);
    const _0x2a4b35 = _0x34397d => {
      let {
        processConfigurationConfig: _0x20c304
      } = _0x34397d;
      0x0;
      const _0xc2681b = _0x37a8e2.useRef(false);
      0x0;
      const _0x588c22 = _0x2bc7f4.j();
      0x0;
      const _0x58de4f = _0x2bc7f4.G(_0x3e1605.Lt.authenticationModel.getAuthProcessData);
      0x0;
      const _0x4956be = _0x2bc7f4.G(_0x23db99 => _0x23db99.loading.models.authenticationModel);
      0x0;
      _0x37a8e2.useEffect(() => () => {
        _0x588c22.authenticationModel.resetAuthFlowProcessData();
      }, []);
      0x0;
      _0x37a8e2.useEffect(() => {
        if (!(_0x58de4f || !_0xc2681b.current || _0x4956be)) {
          _0xc2681b.current = false;
        }
      }, [_0x58de4f, _0x4956be]);
      const {
        isRegionSelectionPending: _0x3061d6,
        shouldShowRegionSelector: _0x7814de
      } = _0xd1fe19();
      0x0;
      _0x37a8e2.useEffect(() => {
        (async () => {
          if (!(_0x3061d6 || _0x7814de || _0x58de4f || _0xc2681b.current)) {
            await _0x588c22.authenticationModel.loadProcessConfiguration(_0x20c304);
            _0xc2681b.current = true;
          }
        })();
      }, [_0x58de4f, _0x3061d6, _0x7814de, _0x20c304]);
      return {
        'shouldProceed': (null === _0x58de4f || undefined === _0x58de4f ? undefined : _0x58de4f.processType) === _0x20c304.processType,
        'authFlowProcessData': _0x58de4f
      };
    };
    var _0x3e7be9 = _0x7f0aa7(0x24a4);
    const _0x564adc = () => {
      0x0;
      const _0x115602 = _0x2bc7f4.j();
      0x0;
      const _0x438e21 = _0x2bc7f4.G(_0x3e1605.Lt.authenticationModel.getUserType);
      0x0;
      const _0x510692 = _0x2bc7f4.G(_0x3a27be => _0x3a27be.loading.models.authenticationModel);
      0x0;
      _0x37a8e2.useEffect(() => {
        if (!(_0x438e21 !== _0x3e7be9.ut.Authed || _0x510692)) {
          _0x115602.redirectModel.toHomePage(true);
        }
      }, [_0x438e21, _0x510692]);
    };
    const _0x36baf8 = () => {
      0x0;
      const _0x268ae7 = _0x2bc7f4.G(_0x1614a6 => _0x1614a6.loading.models.authenticationModel);
      0x0;
      const _0x1b9dea = _0x2bc7f4.G(_0x3e1605.Lt.authenticationModel.getAuthProcessData);
      0x0;
      _0x5c113e.im(_0x268ae7 && !!_0x1b9dea);
    };
    const _0x6d01d6 = _0x406e5b => {
      let {
        onSubmitCallback: _0x5aea1e
      } = _0x406e5b;
      0x0;
      return {
        'handleFormSubmit': _0x37a8e2.useCallback(async _0xd4f0ab => {
          await _0x5aea1e(_0xd4f0ab);
        }, [_0x5aea1e])
      };
    };
  }
}]);
Editor is loading...
Leave a Comment