@everymatrix/general-registration 1.99.54 → 1.99.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-91535fcc.js');
5
+ const index = require('./index-4ef02ef9.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE$1 = 'en';
8
8
  const TRANSLATIONS$1 = {
@@ -15050,6 +15050,7 @@ const GeneralRegistration = class {
15050
15050
  return this.getRegisterConfig()
15051
15051
  .then((config) => {
15052
15052
  this.formatConfig(config);
15053
+ this.notifyTwofaStepChange();
15053
15054
  this.isFormValid = !this.getInvalidStatus(this.listOfInputValidity);
15054
15055
  this.stepsStateMachine({ event: 'set', type: 'inputs' });
15055
15056
  this.setupConditionalValidationMap();
@@ -15175,10 +15176,12 @@ const GeneralRegistration = class {
15175
15176
  }
15176
15177
  backHandler(e) {
15177
15178
  e.preventDefault();
15179
+ const wasTwofaStep = this.listOfInputs.some(input => { var _a; return ((_a = input.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'twofa'; });
15178
15180
  this.registrationStep = this.stepChange('decrement');
15179
15181
  this.errorMessage = '';
15180
15182
  this.stepsStateMachine({ event: 'get', type: 'inputs' });
15181
15183
  this.stepsStateMachine({ event: 'get', type: 'values' });
15184
+ this.notifyTwofaStepChange(wasTwofaStep, this.lastPhoneData);
15182
15185
  }
15183
15186
  dispatchRegisterCredentialsEvent() {
15184
15187
  let userNameEmail = '';
@@ -15331,7 +15334,31 @@ const GeneralRegistration = class {
15331
15334
  });
15332
15335
  });
15333
15336
  }
15337
+ notifyTwofaStepChange(wasTwofaStep = false, phoneData) {
15338
+ const isTwofaStep = this.listOfInputs.some(input => { var _a; return ((_a = input.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'twofa'; });
15339
+ if (isTwofaStep) {
15340
+ this.notifyTwofaStep(phoneData);
15341
+ }
15342
+ else if (wasTwofaStep) {
15343
+ this.notifyTwofaStepExited();
15344
+ }
15345
+ }
15346
+ notifyTwofaStepExited() {
15347
+ window.postMessage({
15348
+ type: 'registrationTwofaStepExited',
15349
+ step: this.registrationStep,
15350
+ registrationId: this.registrationID
15351
+ }, window.location.href);
15352
+ }
15353
+ notifyTwofaStep(phoneData) {
15354
+ window.postMessage(Object.assign({ type: 'registrationTwofaStep', step: this.registrationStep, registrationId: this.registrationID }, (phoneData ? { phoneData } : {})), window.location.href);
15355
+ }
15334
15356
  setRegisterStep() {
15357
+ const wasTwofaStep = this.listOfInputs.some(input => { var _a; return ((_a = input.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'twofa'; });
15358
+ const mobile = this.listOfInputValues.find(input => input.name === 'Mobile' && input.type === 'tel');
15359
+ const phoneData = (mobile === null || mobile === void 0 ? void 0 : mobile.value) && Object.assign({}, mobile.value);
15360
+ if (phoneData)
15361
+ this.lastPhoneData = phoneData;
15335
15362
  this.isLoadingPOST = true;
15336
15363
  const stepPath = this.gmversion === 'gm2'
15337
15364
  ? '/api/pam/v2/legislation/register/step'
@@ -15466,11 +15493,13 @@ const GeneralRegistration = class {
15466
15493
  // Use the one from state
15467
15494
  this.stepsStateMachine({ event: 'get', type: 'inputs' });
15468
15495
  this.stepsStateMachine({ event: 'get', type: 'values' });
15496
+ this.notifyTwofaStepChange(wasTwofaStep, phoneData);
15469
15497
  }
15470
15498
  else {
15471
15499
  this.getRegisterConfig(this.registrationID).then((config) => {
15472
15500
  // Format the new step config.
15473
15501
  this.formatConfig(config);
15502
+ this.notifyTwofaStepChange(wasTwofaStep, phoneData);
15474
15503
  // Set it in local storage.
15475
15504
  this.stepsStateMachine({ event: 'set', type: 'inputs' });
15476
15505
  // Setup conditionalValidationMap
@@ -15885,8 +15914,8 @@ const GeneralRegistration = class {
15885
15914
  const isLoading = this.isLoading && !this.registerErrors;
15886
15915
  const isError = !this.isLoading && this.registerErrors;
15887
15916
  const showForm = !(isLoading || isError);
15888
- return (index.h("div", { key: '4823e0ef5f2941b78defdf998ac29290c30e969c', ref: (el) => (this.stylingContainer = el), class: `registration registration__${this.registrationStep}` }, isLoading && index.h("p", { key: 'd94524bd9aca362d2662cc6b19a080223c64d461', class: `registration registration__loading-message` }, translate('loadingMessage', this.language)), isError && this.renderErrorMessage(this.errorMessage), showForm && this.renderForm(), showForm && !this.buttonInsideForm && this.renderButtons(), this.turnstileSiteKey &&
15889
- index.h("div", { key: '00e07cca4749d63b8dea6d169a6c5461b32b7491', class: "captcha-wrapper" }, index.h("slot", { key: 'd5aefd8e364f93911642f48b8330ff9f1f8fa455', name: CAPTCHA_CONTAINER_SLOT }))));
15917
+ return (index.h("div", { key: '53b15694dbc2a96e11d7f4063bcd6025c8e3c729', ref: (el) => (this.stylingContainer = el), class: `registration registration__${this.registrationStep}` }, isLoading && index.h("p", { key: 'd23e595780422a46e6b8b2f20d51444ba46e2c8d', class: `registration registration__loading-message` }, translate('loadingMessage', this.language)), isError && this.renderErrorMessage(this.errorMessage), showForm && this.renderForm(), showForm && !this.buttonInsideForm && this.renderButtons(), this.turnstileSiteKey &&
15918
+ index.h("div", { key: '94a3b0a7a5f7afb770817364e4cc3fad3328a523', class: "captcha-wrapper" }, index.h("slot", { key: 'f4821bcc295105fdd15b72153822eed1989614b6', name: CAPTCHA_CONTAINER_SLOT }))));
15890
15919
  }
15891
15920
  get host() { return index.getElement(this); }
15892
15921
  static get watchers() { return {
@@ -16278,6 +16307,11 @@ const PasswordInput = class {
16278
16307
  && !this.hidePasswordComplexity
16279
16308
  && !this.isDuplicateInput;
16280
16309
  }
16310
+ // The complexity popup only lists the regex rules, so length/required errors must stay visible next to it.
16311
+ isErrorCoveredByComplexityPopup() {
16312
+ const { valueMissing, tooShort, tooLong } = this.getValueValidity();
16313
+ return this.isComplexityPopupVisible() && !valueMissing && !tooShort && !tooLong;
16314
+ }
16281
16315
  renderTooltip() {
16282
16316
  if (this.showTooltip) {
16283
16317
  return (index.h("div", { class: `password__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
@@ -16302,9 +16336,9 @@ const PasswordInput = class {
16302
16336
  if (this.touched) {
16303
16337
  invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
16304
16338
  }
16305
- return index.h("div", { key: 'b4f26f39d749b45a85e4d3a05419ff74026b9c73', class: `password__wrapper ${this.autofilled ? 'password__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '25ab8386ec960e36ec411a3142452bb1a7ffbe05', class: 'password__wrapper--flex' }, index.h("label", { key: '0ee895de1059e39fbde8723b1606f9f2a0f89d97', class: `password__label ${this.validation.mandatory ? 'password__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: 'd5d84181edfdfc638c6d35f91c555dd91c97b69a', class: 'password__wrapper--relative' }, this.tooltip &&
16306
- index.h("img", { key: '5a176a28a7efde57506a1db7690d57a86379a527', class: 'password__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("vaadin-password-field", { key: '70710167fc3a008c555e447e372e735e3c8af497', type: "password", id: `${this.name}__input`, class: `password__input ${invalidClass}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue, required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.placeholder}`, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }), !this.noValidation && !this.isComplexityPopupVisible() &&
16307
- index.h("small", { key: 'd39c8e2c585e574bc31725e6935254d4bf634d0e', class: 'password__error-message' }, this.errorMessage), this.isComplexityPopupVisible() &&
16339
+ return index.h("div", { key: 'c10920f293ff4935cc5e6e9efd78ad84afb55b39', class: `password__wrapper ${this.autofilled ? 'password__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '6592d199a5dfb9b81995c0b045b62e10af05158d', class: 'password__wrapper--flex' }, index.h("label", { key: '893732849fc38cc702d1e21e1868263ca4a1e422', class: `password__label ${this.validation.mandatory ? 'password__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: '0cd5a201d08c956989448770616f09a0e33836a1', class: 'password__wrapper--relative' }, this.tooltip &&
16340
+ index.h("img", { key: 'b5ff997ee6307cb53f38a6de60c048d32ec980ab', class: 'password__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("vaadin-password-field", { key: '6596dc25971341baeede5afc4fe65567a80f1a88', type: "password", id: `${this.name}__input`, class: `password__input ${invalidClass}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue, required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.placeholder}`, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }), !this.noValidation && !this.isErrorCoveredByComplexityPopup() &&
16341
+ index.h("small", { key: '9f436a53c0a1ca1959bd825e3547b16e9e6eda7e', class: 'password__error-message' }, this.errorMessage), this.isComplexityPopupVisible() &&
16308
16342
  (this.enableSouthAfricanMode
16309
16343
  ? this.renderCustomComplexityPopup()
16310
16344
  : this.renderComplexityPopup()));
@@ -17822,6 +17856,10 @@ const TwofaInput = class {
17822
17856
  valueHandler(inputValueEvent) {
17823
17857
  this.sendInputValue.emit(inputValueEvent);
17824
17858
  }
17859
+ /** Return the current OTP value. */
17860
+ async getOtpValue() {
17861
+ return this.code.join('');
17862
+ }
17825
17863
  handleClickOutside(event) {
17826
17864
  const path = event.composedPath();
17827
17865
  if (!path.includes(this.tooltipIconReference) && !path.includes(this.tooltipReference)) {
@@ -17946,9 +17984,9 @@ const TwofaInput = class {
17946
17984
  return current;
17947
17985
  }
17948
17986
  render() {
17949
- return (index.h("div", { key: 'c2accac3362fe80b2f78ff5f7f76fe45871d63b3', class: "twofa", ref: el => this.stylingContainer = el }, index.h("div", { key: '8cae1d115652698e0d579de8762ad767448c7bc5', class: 'twofa__error-message' }, index.h("p", { key: '73a3a6138d131dab6ae052401e7b4b44619b2a1b' }, this.errorMessage)), index.h("div", { key: '447cebaf6d1f21f6b25af4a2a49932446eae812f', class: "twofa__description", innerHTML: translate$1('twofaDescription', this.language, { values: { destination: this.destination } }) }), index.h("div", { key: '72732322e151bdbcecbde20a348c54b79a9a064e', class: "twofa__input-wrapper", ref: this.setContainerRef }, this.code.map((_, idx) => {
17987
+ return (index.h("div", { key: 'f7123fd5b93d7edb05abc48c7bf0e64dd35a0096', class: "twofa", ref: el => this.stylingContainer = el }, index.h("div", { key: '500c8c0347308373a1019cd839bd98c8be4f1dfc', class: 'twofa__error-message' }, index.h("p", { key: '71655b12862d0be463112c91b8ad96ebabce5308' }, this.errorMessage)), index.h("div", { key: '722b6f26f6c317a5cd844f010486fe3ce8937307', class: "twofa__description", innerHTML: translate$1('twofaDescription', this.language, { values: { destination: this.destination } }) }), index.h("div", { key: '3f94387b22a825f1c39e55d402d413378b1979d8', class: "twofa__input-wrapper", ref: this.setContainerRef }, this.code.map((_, idx) => {
17950
17988
  return (index.h("input", { key: idx, ref: el => this.setInputRef(el, idx), id: `otp-input-${idx}`, type: "text", maxLength: 2, value: this.getInputDisplayValue(idx), onInput: (event) => this.handleInput(event, idx), onKeyDown: (event) => this.handleKeyDown(event, idx), onPaste: (event) => this.handlePaste(event) }));
17951
- })), index.h("div", { key: '57062c200893d084fd0328ec6363b16821413f5e', class: "twofa__button-wrapper" }, index.h("p", { key: 'dafc860bf614c3c274c1b144bfc1584a347458de', class: "twofa__resend-message" }, translate$1('twofaResendMessage', this.language)), index.h("button", { key: '6d1bc6083e98c23879070f91a29b709b0223b02c', class: `twofa__resend-button ${this.pinAttemptsExceeded ? 'twofa__resend-button--disabled' : ''}`, onClick: this.resendCodeHandler, disabled: !this.isResendButtonAvailable || this.pinAttemptsExceeded }, this.isResendButtonAvailable
17989
+ })), index.h("div", { key: '3465beb171e55b3b61d954dee6f772e64dc63835', class: "twofa__button-wrapper" }, index.h("p", { key: '19da7fbe70c7768171adcc1329240348be60cb70', class: "twofa__resend-message" }, translate$1('twofaResendMessage', this.language)), index.h("button", { key: 'b0c097d4afaa9d60716b2da6465401c15c45626e', class: `twofa__resend-button ${this.pinAttemptsExceeded ? 'twofa__resend-button--disabled' : ''}`, onClick: this.resendCodeHandler, disabled: !this.isResendButtonAvailable || this.pinAttemptsExceeded }, this.isResendButtonAvailable
17952
17990
  ? translate$1('twofaResendButton', this.language)
17953
17991
  : this.formatTime()))));
17954
17992
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-91535fcc.js');
5
+ const index = require('./index-4ef02ef9.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy(JSON.parse("[[\"checkbox-group-input_15.cjs\",[[1,\"general-registration\",{\"endpoint\":[513],\"language\":[513],\"clientStyling\":[1537,\"client-styling\"],\"mbSource\":[1,\"mb-source\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"dateFormat\":[513,\"date-format\"],\"buttonInsideForm\":[516,\"button-inside-form\"],\"btag\":[513],\"emitOnClick\":[516,\"emit-on-click\"],\"haspostalcodelookup\":[516],\"ignorebtag\":[516],\"enableManualDateInput\":[516,\"enable-manual-date-input\"],\"enableCustomRegexValidation\":[516,\"enable-custom-regex-validation\"],\"gmversion\":[513],\"turnstileSiteKey\":[1,\"turnstile-site-key\"],\"twofaStartCountDown\":[4,\"twofa-start-count-down\"],\"cfCaptchaIsVisible\":[1,\"cf-captcha-is-visible\"],\"errorMessage\":[32],\"isFormValid\":[32],\"isConsentValid\":[32],\"isConsentReady\":[32],\"isLoading\":[32],\"isLoadingPOST\":[32],\"registrationStep\":[32],\"forms\":[32],\"autofilled\":[32],\"isInitalInteraction\":[32],\"addresses\":[32],\"addressUpdateKey\":[32]},[[0,\"sendValidityState\",\"checkInputsValidityHandler\"],[0,\"sendInputValue\",\"getInputsValueHandler\"],[0,\"sendAddressValue\",\"handleAddressSelection\"],[8,\"countryCodeUpdated\",\"handleCountryCodeUpdateGlobal\"],[0,\"resendCode\",\"handleRequestTwofa\"],[8,\"message\",\"messageHandler\"]],{\"registrationStep\":[\"sendStep\"],\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"],\"forms\":[\"setFormValidity\"],\"btag\":[\"addBtag\"]}],[1,\"general-input\",{\"type\":[513],\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"action\":[513],\"validation\":[16],\"options\":[520],\"language\":[513],\"autofilled\":[516],\"tooltip\":[513],\"defaultValue\":[520,\"default-value\"],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"hidePasswordComplexity\":[516,\"hide-password-complexity\"],\"noValidation\":[516,\"no-validation\"],\"clientStyling\":[520,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"dateFormat\":[513,\"date-format\"],\"translationUrl\":[513,\"translation-url\"],\"emitOnClick\":[516,\"emit-on-click\"],\"twofaDestination\":[513,\"twofa-destination\"],\"twofaResendIntervalSeconds\":[514,\"twofa-resend-interval-seconds\"],\"twofaStartCountDown\":[516,\"twofa-start-count-down\"],\"haspostalcodelookup\":[516],\"postalcodelength\":[514],\"addresses\":[520],\"ignoreCountry\":[516,\"ignore-country\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"enableManualDateInput\":[516,\"enable-manual-date-input\"],\"pinAttemptsExceeded\":[516,\"pin-attempts-exceeded\"],\"mbSource\":[513,\"mb-source\"],\"enableCustomRegexValidation\":[516,\"enable-custom-regex-validation\"]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"]}],[1,\"toggle-checkbox-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"defaultValue\":[513,\"default-value\"],\"options\":[16],\"autofilled\":[516],\"tooltip\":[513],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"translationUrl\":[513,\"translation-url\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32],\"showFields\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"]}],[1,\"checkbox-group-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"options\":[16],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32],\"selectedValues\":[32],\"showCheckboxes\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"selectedValues\":[\"setValue\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"checkbox-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"date-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"dateFormat\":[513,\"date-format\"],\"emitOnClick\":[516,\"emit-on-click\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"enableManualDateInput\":[516,\"enable-manual-date-input\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"],\"enableSouthAfricanMode\":[\"handleCustomRegistrationChange\"]}],[1,\"email-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"],[16,\"sendInputValue\",\"valueChangedHandler\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"number-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"password-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"validation\":[16],\"noValidation\":[516,\"no-validation\"],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"hidePasswordComplexity\":[516,\"hide-password-complexity\"],\"clientStyling\":[513,\"client-styling\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"passwordComplexity\":[32],\"showPopup\":[32],\"value\":[32]},[[16,\"sendOriginalValidityState\",\"originalValidityChangedHandler\"],[16,\"sendInputValue\",\"valueChangedHandler\"],[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"value\":[\"valueChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"postalcode-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"postalcodelength\":[520],\"addresses\":[520],\"ignoreCountry\":[516,\"ignore-country\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"selectedCountryCode\":[32],\"currentPostalCode\":[32],\"openAddressDropdown\":[32],\"showNoResultsMessage\":[32],\"refreshTrigger\":[32],\"isFetchingAddresses\":[32]},[[10,\"click\",\"handleClickOutside\"],[8,\"countryCodeUpdated\",\"handleCountryCodeUpdate\"],[8,\"addressFetchStarted\",\"handleFetchStarted\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"],\"addresses\":[\"handleAddresses\"]}],[1,\"radio-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"optionsGroup\":[16],\"validation\":[16],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"select-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"action\":[513],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"options\":[16],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"tel-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"showLabels\":[516,\"show-labels\"],\"action\":[513],\"validation\":[16],\"defaultValue\":[520,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"enableCustomRegexValidation\":[516,\"enable-custom-regex-validation\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"disablePhonePrefix\":[32],\"phoneValue\":[32],\"phoneCodesOptions\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"text-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"checkValidity\":[516,\"check-validity\"],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"clientStyling\":[513,\"client-styling\"],\"haspostalcodelookup\":[516],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"selectedCountryCode\":[32]},[[10,\"click\",\"handleClickOutside\"],[16,\"sendInputValue\",\"valueChangedHandler\"],[16,\"validationChange\",\"handleValidationChange\"],[8,\"countryCodeUpdated\",\"handleCountryCodeUpdate\"],[16,\"sendAddressValue\",\"handleAddressSelection\"],[8,\"documentNumberUpdatedExternally\",\"handleExternalDocUpdate\"],[8,\"documentNumberResetValidation\",\"handleDocReset\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"twofa-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"destination\":[513],\"resendIntervalSeconds\":[514,\"resend-interval-seconds\"],\"clientStyling\":[513,\"client-styling\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"pinAttemptsExceeded\":[516,\"pin-attempts-exceeded\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"mbSource\":[513,\"mb-source\"],\"startCountDown\":[516,\"start-count-down\"],\"isValid\":[32],\"isResendButtonAvailable\":[32],\"showTooltip\":[32],\"errorMessage\":[32],\"code\":[32],\"resendIntervalSecondsLeft\":[32],\"revealedIndexes\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"],\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"]}]]]]"), options);
22
+ return index.bootstrapLazy(JSON.parse("[[\"checkbox-group-input_15.cjs\",[[1,\"general-registration\",{\"endpoint\":[513],\"language\":[513],\"clientStyling\":[1537,\"client-styling\"],\"mbSource\":[1,\"mb-source\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"dateFormat\":[513,\"date-format\"],\"buttonInsideForm\":[516,\"button-inside-form\"],\"btag\":[513],\"emitOnClick\":[516,\"emit-on-click\"],\"haspostalcodelookup\":[516],\"ignorebtag\":[516],\"enableManualDateInput\":[516,\"enable-manual-date-input\"],\"enableCustomRegexValidation\":[516,\"enable-custom-regex-validation\"],\"gmversion\":[513],\"turnstileSiteKey\":[1,\"turnstile-site-key\"],\"twofaStartCountDown\":[4,\"twofa-start-count-down\"],\"cfCaptchaIsVisible\":[1,\"cf-captcha-is-visible\"],\"errorMessage\":[32],\"isFormValid\":[32],\"isConsentValid\":[32],\"isConsentReady\":[32],\"isLoading\":[32],\"isLoadingPOST\":[32],\"registrationStep\":[32],\"forms\":[32],\"autofilled\":[32],\"isInitalInteraction\":[32],\"addresses\":[32],\"addressUpdateKey\":[32]},[[0,\"sendValidityState\",\"checkInputsValidityHandler\"],[0,\"sendInputValue\",\"getInputsValueHandler\"],[0,\"sendAddressValue\",\"handleAddressSelection\"],[8,\"countryCodeUpdated\",\"handleCountryCodeUpdateGlobal\"],[0,\"resendCode\",\"handleRequestTwofa\"],[8,\"message\",\"messageHandler\"]],{\"registrationStep\":[\"sendStep\"],\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"],\"forms\":[\"setFormValidity\"],\"btag\":[\"addBtag\"]}],[1,\"general-input\",{\"type\":[513],\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"action\":[513],\"validation\":[16],\"options\":[520],\"language\":[513],\"autofilled\":[516],\"tooltip\":[513],\"defaultValue\":[520,\"default-value\"],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"hidePasswordComplexity\":[516,\"hide-password-complexity\"],\"noValidation\":[516,\"no-validation\"],\"clientStyling\":[520,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"dateFormat\":[513,\"date-format\"],\"translationUrl\":[513,\"translation-url\"],\"emitOnClick\":[516,\"emit-on-click\"],\"twofaDestination\":[513,\"twofa-destination\"],\"twofaResendIntervalSeconds\":[514,\"twofa-resend-interval-seconds\"],\"twofaStartCountDown\":[516,\"twofa-start-count-down\"],\"haspostalcodelookup\":[516],\"postalcodelength\":[514],\"addresses\":[520],\"ignoreCountry\":[516,\"ignore-country\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"enableManualDateInput\":[516,\"enable-manual-date-input\"],\"pinAttemptsExceeded\":[516,\"pin-attempts-exceeded\"],\"mbSource\":[513,\"mb-source\"],\"enableCustomRegexValidation\":[516,\"enable-custom-regex-validation\"]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"]}],[1,\"toggle-checkbox-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"defaultValue\":[513,\"default-value\"],\"options\":[16],\"autofilled\":[516],\"tooltip\":[513],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"translationUrl\":[513,\"translation-url\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32],\"showFields\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"]}],[1,\"checkbox-group-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"options\":[16],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32],\"selectedValues\":[32],\"showCheckboxes\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"selectedValues\":[\"setValue\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"checkbox-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"date-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"dateFormat\":[513,\"date-format\"],\"emitOnClick\":[516,\"emit-on-click\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"enableManualDateInput\":[516,\"enable-manual-date-input\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"],\"enableSouthAfricanMode\":[\"handleCustomRegistrationChange\"]}],[1,\"email-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"],[16,\"sendInputValue\",\"valueChangedHandler\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"number-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"password-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"validation\":[16],\"noValidation\":[516,\"no-validation\"],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"hidePasswordComplexity\":[516,\"hide-password-complexity\"],\"clientStyling\":[513,\"client-styling\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"passwordComplexity\":[32],\"showPopup\":[32],\"value\":[32]},[[16,\"sendOriginalValidityState\",\"originalValidityChangedHandler\"],[16,\"sendInputValue\",\"valueChangedHandler\"],[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"value\":[\"valueChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"postalcode-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"postalcodelength\":[520],\"addresses\":[520],\"ignoreCountry\":[516,\"ignore-country\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"selectedCountryCode\":[32],\"currentPostalCode\":[32],\"openAddressDropdown\":[32],\"showNoResultsMessage\":[32],\"refreshTrigger\":[32],\"isFetchingAddresses\":[32]},[[10,\"click\",\"handleClickOutside\"],[8,\"countryCodeUpdated\",\"handleCountryCodeUpdate\"],[8,\"addressFetchStarted\",\"handleFetchStarted\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"],\"addresses\":[\"handleAddresses\"]}],[1,\"radio-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"optionsGroup\":[16],\"validation\":[16],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"select-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"action\":[513],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"options\":[16],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"tel-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"showLabels\":[516,\"show-labels\"],\"action\":[513],\"validation\":[16],\"defaultValue\":[520,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"enableCustomRegexValidation\":[516,\"enable-custom-regex-validation\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"disablePhonePrefix\":[32],\"phoneValue\":[32],\"phoneCodesOptions\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"text-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"checkValidity\":[516,\"check-validity\"],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"clientStyling\":[513,\"client-styling\"],\"haspostalcodelookup\":[516],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"selectedCountryCode\":[32]},[[10,\"click\",\"handleClickOutside\"],[16,\"sendInputValue\",\"valueChangedHandler\"],[16,\"validationChange\",\"handleValidationChange\"],[8,\"countryCodeUpdated\",\"handleCountryCodeUpdate\"],[16,\"sendAddressValue\",\"handleAddressSelection\"],[8,\"documentNumberUpdatedExternally\",\"handleExternalDocUpdate\"],[8,\"documentNumberResetValidation\",\"handleDocReset\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"twofa-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"destination\":[513],\"resendIntervalSeconds\":[514,\"resend-interval-seconds\"],\"clientStyling\":[513,\"client-styling\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"pinAttemptsExceeded\":[516,\"pin-attempts-exceeded\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"mbSource\":[513,\"mb-source\"],\"startCountDown\":[516,\"start-count-down\"],\"isValid\":[32],\"isResendButtonAvailable\":[32],\"showTooltip\":[32],\"errorMessage\":[32],\"code\":[32],\"resendIntervalSecondsLeft\":[32],\"revealedIndexes\":[32],\"getOtpValue\":[64]},[[10,\"click\",\"handleClickOutside\"]],{\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"],\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"]}]]]]"), options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'general-registration';
24
- const BUILD = /* general-registration */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* general-registration */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
27
  Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
@@ -41,6 +41,9 @@ var registerHost = (hostElement, cmpMeta) => {
41
41
  $cmpMeta$: cmpMeta,
42
42
  $instanceValues$: /* @__PURE__ */ new Map()
43
43
  };
44
+ {
45
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
46
+ }
44
47
  {
45
48
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
46
49
  hostElement["s-p"] = [];
@@ -872,6 +875,9 @@ var postUpdateComponent = (hostRef) => {
872
875
  } else {
873
876
  endPostUpdate();
874
877
  }
878
+ {
879
+ hostRef.$onInstanceResolve$(elm);
880
+ }
875
881
  {
876
882
  if (hostRef.$onRenderResolve$) {
877
883
  hostRef.$onRenderResolve$();
@@ -973,6 +979,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
973
979
  configurable: true,
974
980
  enumerable: true
975
981
  });
982
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
983
+ Object.defineProperty(prototype, memberName, {
984
+ value(...args) {
985
+ var _a2;
986
+ const ref = getHostRef(this);
987
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
988
+ var _a3;
989
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
990
+ });
991
+ }
992
+ });
976
993
  }
977
994
  });
978
995
  if ((flags & 1 /* isElementConstructor */)) {
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-91535fcc.js');
5
+ const index = require('./index-4ef02ef9.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy(JSON.parse("[[\"checkbox-group-input_15.cjs\",[[1,\"general-registration\",{\"endpoint\":[513],\"language\":[513],\"clientStyling\":[1537,\"client-styling\"],\"mbSource\":[1,\"mb-source\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"dateFormat\":[513,\"date-format\"],\"buttonInsideForm\":[516,\"button-inside-form\"],\"btag\":[513],\"emitOnClick\":[516,\"emit-on-click\"],\"haspostalcodelookup\":[516],\"ignorebtag\":[516],\"enableManualDateInput\":[516,\"enable-manual-date-input\"],\"enableCustomRegexValidation\":[516,\"enable-custom-regex-validation\"],\"gmversion\":[513],\"turnstileSiteKey\":[1,\"turnstile-site-key\"],\"twofaStartCountDown\":[4,\"twofa-start-count-down\"],\"cfCaptchaIsVisible\":[1,\"cf-captcha-is-visible\"],\"errorMessage\":[32],\"isFormValid\":[32],\"isConsentValid\":[32],\"isConsentReady\":[32],\"isLoading\":[32],\"isLoadingPOST\":[32],\"registrationStep\":[32],\"forms\":[32],\"autofilled\":[32],\"isInitalInteraction\":[32],\"addresses\":[32],\"addressUpdateKey\":[32]},[[0,\"sendValidityState\",\"checkInputsValidityHandler\"],[0,\"sendInputValue\",\"getInputsValueHandler\"],[0,\"sendAddressValue\",\"handleAddressSelection\"],[8,\"countryCodeUpdated\",\"handleCountryCodeUpdateGlobal\"],[0,\"resendCode\",\"handleRequestTwofa\"],[8,\"message\",\"messageHandler\"]],{\"registrationStep\":[\"sendStep\"],\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"],\"forms\":[\"setFormValidity\"],\"btag\":[\"addBtag\"]}],[1,\"general-input\",{\"type\":[513],\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"action\":[513],\"validation\":[16],\"options\":[520],\"language\":[513],\"autofilled\":[516],\"tooltip\":[513],\"defaultValue\":[520,\"default-value\"],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"hidePasswordComplexity\":[516,\"hide-password-complexity\"],\"noValidation\":[516,\"no-validation\"],\"clientStyling\":[520,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"dateFormat\":[513,\"date-format\"],\"translationUrl\":[513,\"translation-url\"],\"emitOnClick\":[516,\"emit-on-click\"],\"twofaDestination\":[513,\"twofa-destination\"],\"twofaResendIntervalSeconds\":[514,\"twofa-resend-interval-seconds\"],\"twofaStartCountDown\":[516,\"twofa-start-count-down\"],\"haspostalcodelookup\":[516],\"postalcodelength\":[514],\"addresses\":[520],\"ignoreCountry\":[516,\"ignore-country\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"enableManualDateInput\":[516,\"enable-manual-date-input\"],\"pinAttemptsExceeded\":[516,\"pin-attempts-exceeded\"],\"mbSource\":[513,\"mb-source\"],\"enableCustomRegexValidation\":[516,\"enable-custom-regex-validation\"]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"]}],[1,\"toggle-checkbox-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"defaultValue\":[513,\"default-value\"],\"options\":[16],\"autofilled\":[516],\"tooltip\":[513],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"translationUrl\":[513,\"translation-url\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32],\"showFields\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"]}],[1,\"checkbox-group-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"options\":[16],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32],\"selectedValues\":[32],\"showCheckboxes\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"selectedValues\":[\"setValue\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"checkbox-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"date-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"dateFormat\":[513,\"date-format\"],\"emitOnClick\":[516,\"emit-on-click\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"enableManualDateInput\":[516,\"enable-manual-date-input\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"],\"enableSouthAfricanMode\":[\"handleCustomRegistrationChange\"]}],[1,\"email-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"],[16,\"sendInputValue\",\"valueChangedHandler\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"number-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"password-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"validation\":[16],\"noValidation\":[516,\"no-validation\"],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"hidePasswordComplexity\":[516,\"hide-password-complexity\"],\"clientStyling\":[513,\"client-styling\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"passwordComplexity\":[32],\"showPopup\":[32],\"value\":[32]},[[16,\"sendOriginalValidityState\",\"originalValidityChangedHandler\"],[16,\"sendInputValue\",\"valueChangedHandler\"],[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"value\":[\"valueChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"postalcode-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"postalcodelength\":[520],\"addresses\":[520],\"ignoreCountry\":[516,\"ignore-country\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"selectedCountryCode\":[32],\"currentPostalCode\":[32],\"openAddressDropdown\":[32],\"showNoResultsMessage\":[32],\"refreshTrigger\":[32],\"isFetchingAddresses\":[32]},[[10,\"click\",\"handleClickOutside\"],[8,\"countryCodeUpdated\",\"handleCountryCodeUpdate\"],[8,\"addressFetchStarted\",\"handleFetchStarted\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"],\"addresses\":[\"handleAddresses\"]}],[1,\"radio-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"optionsGroup\":[16],\"validation\":[16],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"select-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"action\":[513],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"options\":[16],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"tel-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"showLabels\":[516,\"show-labels\"],\"action\":[513],\"validation\":[16],\"defaultValue\":[520,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"enableCustomRegexValidation\":[516,\"enable-custom-regex-validation\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"disablePhonePrefix\":[32],\"phoneValue\":[32],\"phoneCodesOptions\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"text-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"checkValidity\":[516,\"check-validity\"],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"clientStyling\":[513,\"client-styling\"],\"haspostalcodelookup\":[516],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"selectedCountryCode\":[32]},[[10,\"click\",\"handleClickOutside\"],[16,\"sendInputValue\",\"valueChangedHandler\"],[16,\"validationChange\",\"handleValidationChange\"],[8,\"countryCodeUpdated\",\"handleCountryCodeUpdate\"],[16,\"sendAddressValue\",\"handleAddressSelection\"],[8,\"documentNumberUpdatedExternally\",\"handleExternalDocUpdate\"],[8,\"documentNumberResetValidation\",\"handleDocReset\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"twofa-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"destination\":[513],\"resendIntervalSeconds\":[514,\"resend-interval-seconds\"],\"clientStyling\":[513,\"client-styling\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"pinAttemptsExceeded\":[516,\"pin-attempts-exceeded\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"mbSource\":[513,\"mb-source\"],\"startCountDown\":[516,\"start-count-down\"],\"isValid\":[32],\"isResendButtonAvailable\":[32],\"showTooltip\":[32],\"errorMessage\":[32],\"code\":[32],\"resendIntervalSecondsLeft\":[32],\"revealedIndexes\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"],\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"]}]]]]"), options);
11
+ return index.bootstrapLazy(JSON.parse("[[\"checkbox-group-input_15.cjs\",[[1,\"general-registration\",{\"endpoint\":[513],\"language\":[513],\"clientStyling\":[1537,\"client-styling\"],\"mbSource\":[1,\"mb-source\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"dateFormat\":[513,\"date-format\"],\"buttonInsideForm\":[516,\"button-inside-form\"],\"btag\":[513],\"emitOnClick\":[516,\"emit-on-click\"],\"haspostalcodelookup\":[516],\"ignorebtag\":[516],\"enableManualDateInput\":[516,\"enable-manual-date-input\"],\"enableCustomRegexValidation\":[516,\"enable-custom-regex-validation\"],\"gmversion\":[513],\"turnstileSiteKey\":[1,\"turnstile-site-key\"],\"twofaStartCountDown\":[4,\"twofa-start-count-down\"],\"cfCaptchaIsVisible\":[1,\"cf-captcha-is-visible\"],\"errorMessage\":[32],\"isFormValid\":[32],\"isConsentValid\":[32],\"isConsentReady\":[32],\"isLoading\":[32],\"isLoadingPOST\":[32],\"registrationStep\":[32],\"forms\":[32],\"autofilled\":[32],\"isInitalInteraction\":[32],\"addresses\":[32],\"addressUpdateKey\":[32]},[[0,\"sendValidityState\",\"checkInputsValidityHandler\"],[0,\"sendInputValue\",\"getInputsValueHandler\"],[0,\"sendAddressValue\",\"handleAddressSelection\"],[8,\"countryCodeUpdated\",\"handleCountryCodeUpdateGlobal\"],[0,\"resendCode\",\"handleRequestTwofa\"],[8,\"message\",\"messageHandler\"]],{\"registrationStep\":[\"sendStep\"],\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"],\"forms\":[\"setFormValidity\"],\"btag\":[\"addBtag\"]}],[1,\"general-input\",{\"type\":[513],\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"action\":[513],\"validation\":[16],\"options\":[520],\"language\":[513],\"autofilled\":[516],\"tooltip\":[513],\"defaultValue\":[520,\"default-value\"],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"hidePasswordComplexity\":[516,\"hide-password-complexity\"],\"noValidation\":[516,\"no-validation\"],\"clientStyling\":[520,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"dateFormat\":[513,\"date-format\"],\"translationUrl\":[513,\"translation-url\"],\"emitOnClick\":[516,\"emit-on-click\"],\"twofaDestination\":[513,\"twofa-destination\"],\"twofaResendIntervalSeconds\":[514,\"twofa-resend-interval-seconds\"],\"twofaStartCountDown\":[516,\"twofa-start-count-down\"],\"haspostalcodelookup\":[516],\"postalcodelength\":[514],\"addresses\":[520],\"ignoreCountry\":[516,\"ignore-country\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"enableManualDateInput\":[516,\"enable-manual-date-input\"],\"pinAttemptsExceeded\":[516,\"pin-attempts-exceeded\"],\"mbSource\":[513,\"mb-source\"],\"enableCustomRegexValidation\":[516,\"enable-custom-regex-validation\"]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"]}],[1,\"toggle-checkbox-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"defaultValue\":[513,\"default-value\"],\"options\":[16],\"autofilled\":[516],\"tooltip\":[513],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"translationUrl\":[513,\"translation-url\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32],\"showFields\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"]}],[1,\"checkbox-group-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"options\":[16],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32],\"selectedValues\":[32],\"showCheckboxes\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"selectedValues\":[\"setValue\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"checkbox-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"date-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"dateFormat\":[513,\"date-format\"],\"emitOnClick\":[516,\"emit-on-click\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"enableManualDateInput\":[516,\"enable-manual-date-input\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"],\"enableSouthAfricanMode\":[\"handleCustomRegistrationChange\"]}],[1,\"email-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"],[16,\"sendInputValue\",\"valueChangedHandler\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"number-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"password-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"validation\":[16],\"noValidation\":[516,\"no-validation\"],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"hidePasswordComplexity\":[516,\"hide-password-complexity\"],\"clientStyling\":[513,\"client-styling\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"passwordComplexity\":[32],\"showPopup\":[32],\"value\":[32]},[[16,\"sendOriginalValidityState\",\"originalValidityChangedHandler\"],[16,\"sendInputValue\",\"valueChangedHandler\"],[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"value\":[\"valueChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"postalcode-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"postalcodelength\":[520],\"addresses\":[520],\"ignoreCountry\":[516,\"ignore-country\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"selectedCountryCode\":[32],\"currentPostalCode\":[32],\"openAddressDropdown\":[32],\"showNoResultsMessage\":[32],\"refreshTrigger\":[32],\"isFetchingAddresses\":[32]},[[10,\"click\",\"handleClickOutside\"],[8,\"countryCodeUpdated\",\"handleCountryCodeUpdate\"],[8,\"addressFetchStarted\",\"handleFetchStarted\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"],\"addresses\":[\"handleAddresses\"]}],[1,\"radio-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"optionsGroup\":[16],\"validation\":[16],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"select-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"action\":[513],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"options\":[16],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"tel-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"showLabels\":[516,\"show-labels\"],\"action\":[513],\"validation\":[16],\"defaultValue\":[520,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"enableCustomRegexValidation\":[516,\"enable-custom-regex-validation\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"disablePhonePrefix\":[32],\"phoneValue\":[32],\"phoneCodesOptions\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"text-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"checkValidity\":[516,\"check-validity\"],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"clientStyling\":[513,\"client-styling\"],\"haspostalcodelookup\":[516],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"selectedCountryCode\":[32]},[[10,\"click\",\"handleClickOutside\"],[16,\"sendInputValue\",\"valueChangedHandler\"],[16,\"validationChange\",\"handleValidationChange\"],[8,\"countryCodeUpdated\",\"handleCountryCodeUpdate\"],[16,\"sendAddressValue\",\"handleAddressSelection\"],[8,\"documentNumberUpdatedExternally\",\"handleExternalDocUpdate\"],[8,\"documentNumberResetValidation\",\"handleDocReset\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"twofa-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"destination\":[513],\"resendIntervalSeconds\":[514,\"resend-interval-seconds\"],\"clientStyling\":[513,\"client-styling\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"pinAttemptsExceeded\":[516,\"pin-attempts-exceeded\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"mbSource\":[513,\"mb-source\"],\"startCountDown\":[516,\"start-count-down\"],\"isValid\":[32],\"isResendButtonAvailable\":[32],\"showTooltip\":[32],\"errorMessage\":[32],\"code\":[32],\"resendIntervalSecondsLeft\":[32],\"revealedIndexes\":[32],\"getOtpValue\":[64]},[[10,\"click\",\"handleClickOutside\"]],{\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"],\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"]}]]]]"), options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -259,6 +259,7 @@ export class GeneralRegistration {
259
259
  return this.getRegisterConfig()
260
260
  .then((config) => {
261
261
  this.formatConfig(config);
262
+ this.notifyTwofaStepChange();
262
263
  this.isFormValid = !this.getInvalidStatus(this.listOfInputValidity);
263
264
  this.stepsStateMachine({ event: 'set', type: 'inputs' });
264
265
  this.setupConditionalValidationMap();
@@ -384,10 +385,12 @@ export class GeneralRegistration {
384
385
  }
385
386
  backHandler(e) {
386
387
  e.preventDefault();
388
+ const wasTwofaStep = this.listOfInputs.some(input => { var _a; return ((_a = input.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'twofa'; });
387
389
  this.registrationStep = this.stepChange('decrement');
388
390
  this.errorMessage = '';
389
391
  this.stepsStateMachine({ event: 'get', type: 'inputs' });
390
392
  this.stepsStateMachine({ event: 'get', type: 'values' });
393
+ this.notifyTwofaStepChange(wasTwofaStep, this.lastPhoneData);
391
394
  }
392
395
  dispatchRegisterCredentialsEvent() {
393
396
  let userNameEmail = '';
@@ -540,7 +543,31 @@ export class GeneralRegistration {
540
543
  });
541
544
  });
542
545
  }
546
+ notifyTwofaStepChange(wasTwofaStep = false, phoneData) {
547
+ const isTwofaStep = this.listOfInputs.some(input => { var _a; return ((_a = input.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'twofa'; });
548
+ if (isTwofaStep) {
549
+ this.notifyTwofaStep(phoneData);
550
+ }
551
+ else if (wasTwofaStep) {
552
+ this.notifyTwofaStepExited();
553
+ }
554
+ }
555
+ notifyTwofaStepExited() {
556
+ window.postMessage({
557
+ type: 'registrationTwofaStepExited',
558
+ step: this.registrationStep,
559
+ registrationId: this.registrationID
560
+ }, window.location.href);
561
+ }
562
+ notifyTwofaStep(phoneData) {
563
+ window.postMessage(Object.assign({ type: 'registrationTwofaStep', step: this.registrationStep, registrationId: this.registrationID }, (phoneData ? { phoneData } : {})), window.location.href);
564
+ }
543
565
  setRegisterStep() {
566
+ const wasTwofaStep = this.listOfInputs.some(input => { var _a; return ((_a = input.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'twofa'; });
567
+ const mobile = this.listOfInputValues.find(input => input.name === 'Mobile' && input.type === 'tel');
568
+ const phoneData = (mobile === null || mobile === void 0 ? void 0 : mobile.value) && Object.assign({}, mobile.value);
569
+ if (phoneData)
570
+ this.lastPhoneData = phoneData;
544
571
  this.isLoadingPOST = true;
545
572
  const stepPath = this.gmversion === 'gm2'
546
573
  ? '/api/pam/v2/legislation/register/step'
@@ -675,11 +702,13 @@ export class GeneralRegistration {
675
702
  // Use the one from state
676
703
  this.stepsStateMachine({ event: 'get', type: 'inputs' });
677
704
  this.stepsStateMachine({ event: 'get', type: 'values' });
705
+ this.notifyTwofaStepChange(wasTwofaStep, phoneData);
678
706
  }
679
707
  else {
680
708
  this.getRegisterConfig(this.registrationID).then((config) => {
681
709
  // Format the new step config.
682
710
  this.formatConfig(config);
711
+ this.notifyTwofaStepChange(wasTwofaStep, phoneData);
683
712
  // Set it in local storage.
684
713
  this.stepsStateMachine({ event: 'set', type: 'inputs' });
685
714
  // Setup conditionalValidationMap
@@ -1095,8 +1124,8 @@ export class GeneralRegistration {
1095
1124
  const isLoading = this.isLoading && !this.registerErrors;
1096
1125
  const isError = !this.isLoading && this.registerErrors;
1097
1126
  const showForm = !(isLoading || isError);
1098
- return (h("div", { key: '4823e0ef5f2941b78defdf998ac29290c30e969c', ref: (el) => (this.stylingContainer = el), class: `registration registration__${this.registrationStep}` }, isLoading && h("p", { key: 'd94524bd9aca362d2662cc6b19a080223c64d461', class: `registration registration__loading-message` }, translate('loadingMessage', this.language)), isError && this.renderErrorMessage(this.errorMessage), showForm && this.renderForm(), showForm && !this.buttonInsideForm && this.renderButtons(), this.turnstileSiteKey &&
1099
- h("div", { key: '00e07cca4749d63b8dea6d169a6c5461b32b7491', class: "captcha-wrapper" }, h("slot", { key: 'd5aefd8e364f93911642f48b8330ff9f1f8fa455', name: CAPTCHA_CONTAINER_SLOT }))));
1127
+ return (h("div", { key: '53b15694dbc2a96e11d7f4063bcd6025c8e3c729', ref: (el) => (this.stylingContainer = el), class: `registration registration__${this.registrationStep}` }, isLoading && h("p", { key: 'd23e595780422a46e6b8b2f20d51444ba46e2c8d', class: `registration registration__loading-message` }, translate('loadingMessage', this.language)), isError && this.renderErrorMessage(this.errorMessage), showForm && this.renderForm(), showForm && !this.buttonInsideForm && this.renderButtons(), this.turnstileSiteKey &&
1128
+ h("div", { key: '94a3b0a7a5f7afb770817364e4cc3fad3328a523', class: "captcha-wrapper" }, h("slot", { key: 'f4821bcc295105fdd15b72153822eed1989614b6', name: CAPTCHA_CONTAINER_SLOT }))));
1100
1129
  }
1101
1130
  static get is() { return "general-registration"; }
1102
1131
  static get encapsulation() { return "shadow"; }
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement, H as Host, f as forceUpdate } from './index-153a4c96.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement, H as Host, f as forceUpdate } from './index-66ea2aae.js';
2
2
 
3
3
  const DEFAULT_LANGUAGE$1 = 'en';
4
4
  const TRANSLATIONS$1 = {
@@ -15046,6 +15046,7 @@ const GeneralRegistration = class {
15046
15046
  return this.getRegisterConfig()
15047
15047
  .then((config) => {
15048
15048
  this.formatConfig(config);
15049
+ this.notifyTwofaStepChange();
15049
15050
  this.isFormValid = !this.getInvalidStatus(this.listOfInputValidity);
15050
15051
  this.stepsStateMachine({ event: 'set', type: 'inputs' });
15051
15052
  this.setupConditionalValidationMap();
@@ -15171,10 +15172,12 @@ const GeneralRegistration = class {
15171
15172
  }
15172
15173
  backHandler(e) {
15173
15174
  e.preventDefault();
15175
+ const wasTwofaStep = this.listOfInputs.some(input => { var _a; return ((_a = input.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'twofa'; });
15174
15176
  this.registrationStep = this.stepChange('decrement');
15175
15177
  this.errorMessage = '';
15176
15178
  this.stepsStateMachine({ event: 'get', type: 'inputs' });
15177
15179
  this.stepsStateMachine({ event: 'get', type: 'values' });
15180
+ this.notifyTwofaStepChange(wasTwofaStep, this.lastPhoneData);
15178
15181
  }
15179
15182
  dispatchRegisterCredentialsEvent() {
15180
15183
  let userNameEmail = '';
@@ -15327,7 +15330,31 @@ const GeneralRegistration = class {
15327
15330
  });
15328
15331
  });
15329
15332
  }
15333
+ notifyTwofaStepChange(wasTwofaStep = false, phoneData) {
15334
+ const isTwofaStep = this.listOfInputs.some(input => { var _a; return ((_a = input.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'twofa'; });
15335
+ if (isTwofaStep) {
15336
+ this.notifyTwofaStep(phoneData);
15337
+ }
15338
+ else if (wasTwofaStep) {
15339
+ this.notifyTwofaStepExited();
15340
+ }
15341
+ }
15342
+ notifyTwofaStepExited() {
15343
+ window.postMessage({
15344
+ type: 'registrationTwofaStepExited',
15345
+ step: this.registrationStep,
15346
+ registrationId: this.registrationID
15347
+ }, window.location.href);
15348
+ }
15349
+ notifyTwofaStep(phoneData) {
15350
+ window.postMessage(Object.assign({ type: 'registrationTwofaStep', step: this.registrationStep, registrationId: this.registrationID }, (phoneData ? { phoneData } : {})), window.location.href);
15351
+ }
15330
15352
  setRegisterStep() {
15353
+ const wasTwofaStep = this.listOfInputs.some(input => { var _a; return ((_a = input.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'twofa'; });
15354
+ const mobile = this.listOfInputValues.find(input => input.name === 'Mobile' && input.type === 'tel');
15355
+ const phoneData = (mobile === null || mobile === void 0 ? void 0 : mobile.value) && Object.assign({}, mobile.value);
15356
+ if (phoneData)
15357
+ this.lastPhoneData = phoneData;
15331
15358
  this.isLoadingPOST = true;
15332
15359
  const stepPath = this.gmversion === 'gm2'
15333
15360
  ? '/api/pam/v2/legislation/register/step'
@@ -15462,11 +15489,13 @@ const GeneralRegistration = class {
15462
15489
  // Use the one from state
15463
15490
  this.stepsStateMachine({ event: 'get', type: 'inputs' });
15464
15491
  this.stepsStateMachine({ event: 'get', type: 'values' });
15492
+ this.notifyTwofaStepChange(wasTwofaStep, phoneData);
15465
15493
  }
15466
15494
  else {
15467
15495
  this.getRegisterConfig(this.registrationID).then((config) => {
15468
15496
  // Format the new step config.
15469
15497
  this.formatConfig(config);
15498
+ this.notifyTwofaStepChange(wasTwofaStep, phoneData);
15470
15499
  // Set it in local storage.
15471
15500
  this.stepsStateMachine({ event: 'set', type: 'inputs' });
15472
15501
  // Setup conditionalValidationMap
@@ -15881,8 +15910,8 @@ const GeneralRegistration = class {
15881
15910
  const isLoading = this.isLoading && !this.registerErrors;
15882
15911
  const isError = !this.isLoading && this.registerErrors;
15883
15912
  const showForm = !(isLoading || isError);
15884
- return (h("div", { key: '4823e0ef5f2941b78defdf998ac29290c30e969c', ref: (el) => (this.stylingContainer = el), class: `registration registration__${this.registrationStep}` }, isLoading && h("p", { key: 'd94524bd9aca362d2662cc6b19a080223c64d461', class: `registration registration__loading-message` }, translate('loadingMessage', this.language)), isError && this.renderErrorMessage(this.errorMessage), showForm && this.renderForm(), showForm && !this.buttonInsideForm && this.renderButtons(), this.turnstileSiteKey &&
15885
- h("div", { key: '00e07cca4749d63b8dea6d169a6c5461b32b7491', class: "captcha-wrapper" }, h("slot", { key: 'd5aefd8e364f93911642f48b8330ff9f1f8fa455', name: CAPTCHA_CONTAINER_SLOT }))));
15913
+ return (h("div", { key: '53b15694dbc2a96e11d7f4063bcd6025c8e3c729', ref: (el) => (this.stylingContainer = el), class: `registration registration__${this.registrationStep}` }, isLoading && h("p", { key: 'd23e595780422a46e6b8b2f20d51444ba46e2c8d', class: `registration registration__loading-message` }, translate('loadingMessage', this.language)), isError && this.renderErrorMessage(this.errorMessage), showForm && this.renderForm(), showForm && !this.buttonInsideForm && this.renderButtons(), this.turnstileSiteKey &&
15914
+ h("div", { key: '94a3b0a7a5f7afb770817364e4cc3fad3328a523', class: "captcha-wrapper" }, h("slot", { key: 'f4821bcc295105fdd15b72153822eed1989614b6', name: CAPTCHA_CONTAINER_SLOT }))));
15886
15915
  }
15887
15916
  get host() { return getElement(this); }
15888
15917
  static get watchers() { return {
@@ -16274,6 +16303,11 @@ const PasswordInput = class {
16274
16303
  && !this.hidePasswordComplexity
16275
16304
  && !this.isDuplicateInput;
16276
16305
  }
16306
+ // The complexity popup only lists the regex rules, so length/required errors must stay visible next to it.
16307
+ isErrorCoveredByComplexityPopup() {
16308
+ const { valueMissing, tooShort, tooLong } = this.getValueValidity();
16309
+ return this.isComplexityPopupVisible() && !valueMissing && !tooShort && !tooLong;
16310
+ }
16277
16311
  renderTooltip() {
16278
16312
  if (this.showTooltip) {
16279
16313
  return (h("div", { class: `password__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
@@ -16298,9 +16332,9 @@ const PasswordInput = class {
16298
16332
  if (this.touched) {
16299
16333
  invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
16300
16334
  }
16301
- return h("div", { key: 'b4f26f39d749b45a85e4d3a05419ff74026b9c73', class: `password__wrapper ${this.autofilled ? 'password__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, h("div", { key: '25ab8386ec960e36ec411a3142452bb1a7ffbe05', class: 'password__wrapper--flex' }, h("label", { key: '0ee895de1059e39fbde8723b1606f9f2a0f89d97', class: `password__label ${this.validation.mandatory ? 'password__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), h("div", { key: 'd5d84181edfdfc638c6d35f91c555dd91c97b69a', class: 'password__wrapper--relative' }, this.tooltip &&
16302
- h("img", { key: '5a176a28a7efde57506a1db7690d57a86379a527', class: 'password__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), h("vaadin-password-field", { key: '70710167fc3a008c555e447e372e735e3c8af497', type: "password", id: `${this.name}__input`, class: `password__input ${invalidClass}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue, required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.placeholder}`, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }), !this.noValidation && !this.isComplexityPopupVisible() &&
16303
- h("small", { key: 'd39c8e2c585e574bc31725e6935254d4bf634d0e', class: 'password__error-message' }, this.errorMessage), this.isComplexityPopupVisible() &&
16335
+ return h("div", { key: 'c10920f293ff4935cc5e6e9efd78ad84afb55b39', class: `password__wrapper ${this.autofilled ? 'password__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, h("div", { key: '6592d199a5dfb9b81995c0b045b62e10af05158d', class: 'password__wrapper--flex' }, h("label", { key: '893732849fc38cc702d1e21e1868263ca4a1e422', class: `password__label ${this.validation.mandatory ? 'password__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), h("div", { key: '0cd5a201d08c956989448770616f09a0e33836a1', class: 'password__wrapper--relative' }, this.tooltip &&
16336
+ h("img", { key: 'b5ff997ee6307cb53f38a6de60c048d32ec980ab', class: 'password__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), h("vaadin-password-field", { key: '6596dc25971341baeede5afc4fe65567a80f1a88', type: "password", id: `${this.name}__input`, class: `password__input ${invalidClass}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue, required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.placeholder}`, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }), !this.noValidation && !this.isErrorCoveredByComplexityPopup() &&
16337
+ h("small", { key: '9f436a53c0a1ca1959bd825e3547b16e9e6eda7e', class: 'password__error-message' }, this.errorMessage), this.isComplexityPopupVisible() &&
16304
16338
  (this.enableSouthAfricanMode
16305
16339
  ? this.renderCustomComplexityPopup()
16306
16340
  : this.renderComplexityPopup()));
@@ -17818,6 +17852,10 @@ const TwofaInput = class {
17818
17852
  valueHandler(inputValueEvent) {
17819
17853
  this.sendInputValue.emit(inputValueEvent);
17820
17854
  }
17855
+ /** Return the current OTP value. */
17856
+ async getOtpValue() {
17857
+ return this.code.join('');
17858
+ }
17821
17859
  handleClickOutside(event) {
17822
17860
  const path = event.composedPath();
17823
17861
  if (!path.includes(this.tooltipIconReference) && !path.includes(this.tooltipReference)) {
@@ -17942,9 +17980,9 @@ const TwofaInput = class {
17942
17980
  return current;
17943
17981
  }
17944
17982
  render() {
17945
- return (h("div", { key: 'c2accac3362fe80b2f78ff5f7f76fe45871d63b3', class: "twofa", ref: el => this.stylingContainer = el }, h("div", { key: '8cae1d115652698e0d579de8762ad767448c7bc5', class: 'twofa__error-message' }, h("p", { key: '73a3a6138d131dab6ae052401e7b4b44619b2a1b' }, this.errorMessage)), h("div", { key: '447cebaf6d1f21f6b25af4a2a49932446eae812f', class: "twofa__description", innerHTML: translate$1('twofaDescription', this.language, { values: { destination: this.destination } }) }), h("div", { key: '72732322e151bdbcecbde20a348c54b79a9a064e', class: "twofa__input-wrapper", ref: this.setContainerRef }, this.code.map((_, idx) => {
17983
+ return (h("div", { key: 'f7123fd5b93d7edb05abc48c7bf0e64dd35a0096', class: "twofa", ref: el => this.stylingContainer = el }, h("div", { key: '500c8c0347308373a1019cd839bd98c8be4f1dfc', class: 'twofa__error-message' }, h("p", { key: '71655b12862d0be463112c91b8ad96ebabce5308' }, this.errorMessage)), h("div", { key: '722b6f26f6c317a5cd844f010486fe3ce8937307', class: "twofa__description", innerHTML: translate$1('twofaDescription', this.language, { values: { destination: this.destination } }) }), h("div", { key: '3f94387b22a825f1c39e55d402d413378b1979d8', class: "twofa__input-wrapper", ref: this.setContainerRef }, this.code.map((_, idx) => {
17946
17984
  return (h("input", { key: idx, ref: el => this.setInputRef(el, idx), id: `otp-input-${idx}`, type: "text", maxLength: 2, value: this.getInputDisplayValue(idx), onInput: (event) => this.handleInput(event, idx), onKeyDown: (event) => this.handleKeyDown(event, idx), onPaste: (event) => this.handlePaste(event) }));
17947
- })), h("div", { key: '57062c200893d084fd0328ec6363b16821413f5e', class: "twofa__button-wrapper" }, h("p", { key: 'dafc860bf614c3c274c1b144bfc1584a347458de', class: "twofa__resend-message" }, translate$1('twofaResendMessage', this.language)), h("button", { key: '6d1bc6083e98c23879070f91a29b709b0223b02c', class: `twofa__resend-button ${this.pinAttemptsExceeded ? 'twofa__resend-button--disabled' : ''}`, onClick: this.resendCodeHandler, disabled: !this.isResendButtonAvailable || this.pinAttemptsExceeded }, this.isResendButtonAvailable
17985
+ })), h("div", { key: '3465beb171e55b3b61d954dee6f772e64dc63835', class: "twofa__button-wrapper" }, h("p", { key: '19da7fbe70c7768171adcc1329240348be60cb70', class: "twofa__resend-message" }, translate$1('twofaResendMessage', this.language)), h("button", { key: 'b0c097d4afaa9d60716b2da6465401c15c45626e', class: `twofa__resend-button ${this.pinAttemptsExceeded ? 'twofa__resend-button--disabled' : ''}`, onClick: this.resendCodeHandler, disabled: !this.isResendButtonAvailable || this.pinAttemptsExceeded }, this.isResendButtonAvailable
17948
17986
  ? translate$1('twofaResendButton', this.language)
17949
17987
  : this.formatTime()))));
17950
17988
  }