@everymatrix/general-registration 1.45.13 → 1.46.0

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.
@@ -31063,6 +31063,7 @@ const TRANSLATIONS = {
31063
31063
  "GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER": "The role has already been assigned to the user.",
31064
31064
  "GmErr_ASSIGN_USER_ROLE_FAILED": "Failed to assign a role to the user.",
31065
31065
  "GmErr_BadRequest_1000": "There was a problem with the personal identification number",
31066
+ "CountryRestricted": "Unfortunately, you are attempting to register from a country where we cannot accept gameplay. We are unable to process your registration for this reason.",
31066
31067
  "nextButton": 'Next',
31067
31068
  "backButton": 'Back',
31068
31069
  "doneButton": 'Done',
@@ -31116,6 +31117,7 @@ const TRANSLATIONS = {
31116
31117
  "GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER": "A szerepkör már hozzá lett rendelve a felhasználóhoz.",
31117
31118
  "GmErr_ASSIGN_USER_ROLE_FAILED": "Nem sikerült a felhasználói szerepkört hozzárendelni.",
31118
31119
  "GmErr_BadRequest_1000": "Probléma volt a személyi azonosító számmal",
31120
+ "CountryRestricted": "Sajnálatos módon olyan országból próbál regisztrálni, ahonnan nem fogadhatunk játékot. Emiatt nem tudjuk feldolgozni a regisztrációját.",
31119
31121
  "nextButton": 'Következő',
31120
31122
  "backButton": 'Vissza',
31121
31123
  "doneButton": 'Kész',
@@ -31169,6 +31171,7 @@ const TRANSLATIONS = {
31169
31171
  "GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER": "Uloga je već dodijeljena korisniku.",
31170
31172
  "GmErr_ASSIGN_USER_ROLE_FAILED": "Neuspješno dodjeljivanje uloge korisniku.",
31171
31173
  "GmErr_BadRequest_1000": "Došlo je do problema s OIB-om",
31174
+ "CountryRestricted": "Nažalost, prijavljujete se iz zemlje iz koje ne možemo prihvatiti igru. Nismo u mogućnosti obraditi registraciju iz navedenog razloga.",
31172
31175
  "nextButton": 'Sljedeće',
31173
31176
  "backButton": 'Nazad',
31174
31177
  "doneButton": 'Gotovo',
@@ -31222,6 +31225,7 @@ const TRANSLATIONS = {
31222
31225
  "GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER": "A função já foi atribuída ao usuário.",
31223
31226
  "GmErr_ASSIGN_USER_ROLE_FAILED": "Falha ao atribuir a função ao usuário.",
31224
31227
  "GmErr_BadRequest_1000": "Houve um problema com o número de identificação pessoal",
31228
+ "CountryRestricted": "Infelizmente, você está tentando se registrar a partir de um país onde não podemos aceitar jogos. Não podemos processar seu registro por esse motivo.",
31225
31229
  "nextButton": 'Seguindo',
31226
31230
  "backButton": 'Voltar',
31227
31231
  "doneButton": 'Terminar',
@@ -31275,6 +31279,7 @@ const TRANSLATIONS = {
31275
31279
  "GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER": "El rol ya ha sido asignado al usuario.",
31276
31280
  "GmErr_ASSIGN_USER_ROLE_FAILED": "Falló la asignación del rol al usuario.",
31277
31281
  "GmErr_BadRequest_1000": "Hubo un problema con el número de identificación personal",
31282
+ "CountryRestricted": "Desafortunadamente, estás intentando registrarte desde un país donde no podemos aceptar juegos. No podemos procesar tu registro por esta razón.",
31278
31283
  "nextButton": 'Siguiente',
31279
31284
  "backButton": 'Atrás',
31280
31285
  "doneButton": 'Terminar',
@@ -31295,6 +31300,7 @@ const TRANSLATIONS = {
31295
31300
  "GmErr_Unauthorized": 'Something went wrong... Please try again.',
31296
31301
  "GmErr_NotFound": 'Something went wrong... Please try again.',
31297
31302
  "GmErr_UnexpectedException": 'Something went wrong... Please try again.',
31303
+ "CountryRestricted": "Maalesef, oyun kabul edemediğimiz bir ülkeden kayıt yapmaya çalışıyorsunuz. Bu nedenle kaydınızı işleme alamıyoruz.",
31298
31304
  "generalError": "Something went wrong... Please try again.",
31299
31305
  "successMessage": "Register successful"
31300
31306
  }
@@ -31477,32 +31483,45 @@ const GeneralRegistration = class {
31477
31483
  window.dispatchEvent(this.registerCredentialsEvent);
31478
31484
  }
31479
31485
  stepsStateMachine(state) {
31486
+ const saveToLocalStorage = () => {
31487
+ localStorage.setItem('registrationStepsState', JSON.stringify(this.registrationStepsState));
31488
+ };
31489
+ const loadFromLocalStorage = () => {
31490
+ return JSON.parse(localStorage.getItem('registrationStepsState'));
31491
+ };
31480
31492
  switch (state.event) {
31481
31493
  case 'set':
31482
31494
  if (state.type == 'inputs') {
31483
- this.registrationStepsState[this.registrationStep].fields = this.listOfInputs;
31484
- this.registrationStepsState[this.registrationStep].actions = this.listOfActions;
31485
- this.registrationStepsState[this.registrationStep].fieldsValidity = this.listOfInputValidity;
31495
+ // Store input-related data into the current step state
31496
+ const currentStep = this.registrationStepsState[this.registrationStep];
31497
+ currentStep.fields = this.listOfInputs;
31498
+ currentStep.actions = this.listOfActions;
31499
+ currentStep.fieldsValidity = this.listOfInputValidity;
31486
31500
  }
31487
31501
  if (state.type == 'values') {
31488
- this.registrationStepsState[this.registrationStep].registerUserData = this.listOfInputValues.reduce((acc, curr) => {
31502
+ // Map input values into the current step state
31503
+ const currentStep = this.registrationStepsState[this.registrationStep];
31504
+ currentStep.registerUserData = this.listOfInputValues.reduce((acc, curr) => {
31489
31505
  acc[curr.name] = { value: curr.value, isDuplicate: curr.isDuplicate };
31490
31506
  return acc;
31491
31507
  }, {});
31492
31508
  }
31493
- localStorage.setItem('registrationStepsState', JSON.stringify(this.registrationStepsState));
31509
+ saveToLocalStorage();
31494
31510
  break;
31495
31511
  case 'get':
31496
- const savedUserData = JSON.parse(localStorage.getItem('registrationStepsState'));
31512
+ const savedUserData = loadFromLocalStorage();
31497
31513
  if (!savedUserData)
31498
31514
  return;
31499
31515
  if (state.type == 'inputs') {
31500
- this.listOfInputs = this.registrationStepsState[this.registrationStep].fields;
31501
- this.listOfActions = this.registrationStepsState[this.registrationStep].actions;
31502
- this.listOfInputValidity = this.registrationStepsState[this.registrationStep].fieldsValidity;
31516
+ // Load input-related data from the saved state
31517
+ const currentStep = this.registrationStepsState[this.registrationStep];
31518
+ this.listOfInputs = currentStep.fields;
31519
+ this.listOfActions = currentStep.actions;
31520
+ this.listOfInputValidity = currentStep.fieldsValidity;
31503
31521
  }
31504
31522
  if (state.type == 'values') {
31505
31523
  const savedValues = savedUserData[this.registrationStep].registerUserData;
31524
+ // Convert saved values to the expected format for inputs
31506
31525
  this.listOfInputValues = Object.keys(savedValues).map(name => {
31507
31526
  return { name, value: savedValues[name].value, isDuplicate: savedValues[name].isDuplicate };
31508
31527
  });
@@ -31511,6 +31530,13 @@ const GeneralRegistration = class {
31511
31530
  const input = this.listOfInputs.find(input => input.name === inputValue.name);
31512
31531
  if (input) {
31513
31532
  input.defaultValue = inputValue.value;
31533
+ // if the input is a togglecheckbox, set the default value for each subfield.
31534
+ if (input.inputType === 'togglecheckbox') {
31535
+ input.data.subFields.forEach((subfield) => {
31536
+ const subfieldValue = this.listOfInputValues.find(subfieldValue => subfieldValue.name === subfield.name);
31537
+ subfield.defaultValue = subfieldValue.value;
31538
+ });
31539
+ }
31514
31540
  }
31515
31541
  });
31516
31542
  }
@@ -31572,6 +31598,9 @@ const GeneralRegistration = class {
31572
31598
  });
31573
31599
  }
31574
31600
  }
31601
+ else if (curr.type === 'toggle') {
31602
+ acc[curr.name] = curr.value ? 'true' : 'false';
31603
+ }
31575
31604
  else {
31576
31605
  acc[curr.name] = curr.value;
31577
31606
  }
@@ -31734,29 +31763,26 @@ const GeneralRegistration = class {
31734
31763
  return acc;
31735
31764
  }, []);
31736
31765
  this.listOfInputValues = this.listOfInputs.reduce((acc, field) => {
31737
- var _a, _b, _c;
31766
+ var _a;
31767
+ const inputType = (_a = field.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase();
31738
31768
  // If the field type is a 'togglecheckbox', add its subfields
31739
- if (((_a = field.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === "togglecheckbox") {
31769
+ if (inputType === 'togglecheckbox') {
31740
31770
  field.data.subFields.forEach(subfield => {
31741
- var _a, _b;
31771
+ var _a;
31742
31772
  acc.push({
31743
31773
  name: subfield.name,
31744
31774
  value: ((_a = subfield.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) == 'checkbox' ? 'false' : null,
31745
31775
  isDuplicate: subfield.isDuplicateInput || false,
31746
- type: ((_b = field.inputType) === null || _b === void 0 ? void 0 : _b.toLowerCase()) == 'togglecheckbox'
31747
- ? 'togglecheckbox'
31748
- : null
31776
+ type: inputType === 'togglecheckbox' ? 'togglecheckbox' : null
31749
31777
  });
31750
31778
  });
31751
31779
  }
31752
- else {
31753
- acc.push({
31754
- name: field.name,
31755
- value: ((_b = field.inputType) === null || _b === void 0 ? void 0 : _b.toLowerCase()) == 'checkbox' ? 'false' : null,
31756
- isDuplicate: field.isDuplicateInput || false,
31757
- type: ((_c = field.inputType) === null || _c === void 0 ? void 0 : _c.toLowerCase()) == 'checkboxgroup' ? 'checkboxgroup' : null
31758
- });
31759
- }
31780
+ acc.push({
31781
+ name: field.name,
31782
+ value: inputType === 'checkbox' || inputType === 'togglecheckbox' ? 'false' : null,
31783
+ isDuplicate: field.isDuplicateInput || false,
31784
+ type: inputType === 'checkboxgroup' ? 'checkboxgroup' : (inputType === 'togglecheckbox' ? 'toggle' : null)
31785
+ });
31760
31786
  return acc;
31761
31787
  }, []);
31762
31788
  if (this.btag)
@@ -39320,7 +39346,7 @@ const ToggleCheckboxInput = class {
39320
39346
  this.isValid = undefined;
39321
39347
  this.limitStylingAppends = false;
39322
39348
  this.showTooltip = false;
39323
- this.showFields = undefined;
39349
+ this.showFields = this.defaultValue === 'true';
39324
39350
  }
39325
39351
  validityStateHandler(inputStateEvent) {
39326
39352
  this.sendValidityState.emit(inputStateEvent);
@@ -39347,6 +39373,7 @@ const ToggleCheckboxInput = class {
39347
39373
  this.showFields = this.checkboxReference.checked;
39348
39374
  this.errorMessage = this.setErrorMessage();
39349
39375
  this.isValid = this.setValidity();
39376
+ this.valueHandler({ name: this.name, value: this.checkboxReference.checked ? 'true' : 'false', type: 'toggle' });
39350
39377
  }
39351
39378
  setValidity() {
39352
39379
  return this.checkboxReference.validity.valid;
@@ -39366,8 +39393,8 @@ const ToggleCheckboxInput = class {
39366
39393
  return null;
39367
39394
  }
39368
39395
  render() {
39369
- return index.h("div", { key: 'd5a645fdc3409f4efdc3319c07cded8c1931991c', class: `togglecheckbox__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: 'c18e410777502b3609dd0872487cc8281e1adf25', class: 'togglecheckbox__wrapper--flex' }, index.h("input", { key: '7c2f6204300b5c046c9ad909089619f39f6cda83', class: 'togglecheckbox__input', type: "checkbox", id: `${this.name}__input`, ref: (el) => this.checkboxReference = el, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel()), index.h("small", { key: '24e57e5a5dd20e5f646a69c4fa0c0bbbe38aba1f', class: 'togglecheckbox__error-message' }, this.errorMessage), index.h("div", { key: 'eea41bc49a5c572d86a595880d4c60093f15156e', class: 'togglecheckbox__wrapper--relative' }, this.tooltip &&
39370
- index.h("img", { key: 'bb093e1c928cf87ea69a2c49a784395bd82e542e', class: 'togglecheckbox__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), index.h("div", { key: 'eda4df7b1669eca99d4013877e2ef082ea54984c', class: `togglecheckbox__fields-wrapper ${this.showFields ? '' : 'hidden'}` }, this.options.map(subfield => {
39396
+ return index.h("div", { key: '8c8e9bb2ae7feadf3a5fc38b9913e38d7ccb9aed', class: `togglecheckbox__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '18e2ec43ff98738323ddab1e134d6d215978e1c7', class: 'togglecheckbox__wrapper--flex' }, index.h("input", { key: '640b3ba4fd34bd813239533236e51f452e735409', class: 'togglecheckbox__input', type: "checkbox", id: `${this.name}__input`, ref: (el) => this.checkboxReference = el, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel()), index.h("small", { key: 'efd70a691559cfa98e93561dd945a0fe92909718', class: 'togglecheckbox__error-message' }, this.errorMessage), index.h("div", { key: 'e56a8fafa17da25d01f894fe6e6c143c318d2aab', class: 'togglecheckbox__wrapper--relative' }, this.tooltip &&
39397
+ index.h("img", { key: '8b59366827b8f4f8ca5581203a2dca44ae8132d5', class: 'togglecheckbox__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), index.h("div", { key: '475e27345b51396c36e78b5a1e06edd980bc3ae1', class: `togglecheckbox__fields-wrapper ${this.showFields ? '' : 'hidden'}` }, this.options.map(subfield => {
39371
39398
  return index.h("general-input", { type: subfield.inputType, name: subfield.name, displayName: subfield.displayName, validation: subfield.validate, action: subfield.action || null, defaultValue: subfield.defaultValue, autofilled: subfield.autofill, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: subfield.tooltip, placeholder: subfield.placeholder == null ? '' : subfield.placeholder });
39372
39399
  })));
39373
39400
  }
@@ -146,32 +146,45 @@ export class GeneralRegistration {
146
146
  window.dispatchEvent(this.registerCredentialsEvent);
147
147
  }
148
148
  stepsStateMachine(state) {
149
+ const saveToLocalStorage = () => {
150
+ localStorage.setItem('registrationStepsState', JSON.stringify(this.registrationStepsState));
151
+ };
152
+ const loadFromLocalStorage = () => {
153
+ return JSON.parse(localStorage.getItem('registrationStepsState'));
154
+ };
149
155
  switch (state.event) {
150
156
  case 'set':
151
157
  if (state.type == 'inputs') {
152
- this.registrationStepsState[this.registrationStep].fields = this.listOfInputs;
153
- this.registrationStepsState[this.registrationStep].actions = this.listOfActions;
154
- this.registrationStepsState[this.registrationStep].fieldsValidity = this.listOfInputValidity;
158
+ // Store input-related data into the current step state
159
+ const currentStep = this.registrationStepsState[this.registrationStep];
160
+ currentStep.fields = this.listOfInputs;
161
+ currentStep.actions = this.listOfActions;
162
+ currentStep.fieldsValidity = this.listOfInputValidity;
155
163
  }
156
164
  if (state.type == 'values') {
157
- this.registrationStepsState[this.registrationStep].registerUserData = this.listOfInputValues.reduce((acc, curr) => {
165
+ // Map input values into the current step state
166
+ const currentStep = this.registrationStepsState[this.registrationStep];
167
+ currentStep.registerUserData = this.listOfInputValues.reduce((acc, curr) => {
158
168
  acc[curr.name] = { value: curr.value, isDuplicate: curr.isDuplicate };
159
169
  return acc;
160
170
  }, {});
161
171
  }
162
- localStorage.setItem('registrationStepsState', JSON.stringify(this.registrationStepsState));
172
+ saveToLocalStorage();
163
173
  break;
164
174
  case 'get':
165
- const savedUserData = JSON.parse(localStorage.getItem('registrationStepsState'));
175
+ const savedUserData = loadFromLocalStorage();
166
176
  if (!savedUserData)
167
177
  return;
168
178
  if (state.type == 'inputs') {
169
- this.listOfInputs = this.registrationStepsState[this.registrationStep].fields;
170
- this.listOfActions = this.registrationStepsState[this.registrationStep].actions;
171
- this.listOfInputValidity = this.registrationStepsState[this.registrationStep].fieldsValidity;
179
+ // Load input-related data from the saved state
180
+ const currentStep = this.registrationStepsState[this.registrationStep];
181
+ this.listOfInputs = currentStep.fields;
182
+ this.listOfActions = currentStep.actions;
183
+ this.listOfInputValidity = currentStep.fieldsValidity;
172
184
  }
173
185
  if (state.type == 'values') {
174
186
  const savedValues = savedUserData[this.registrationStep].registerUserData;
187
+ // Convert saved values to the expected format for inputs
175
188
  this.listOfInputValues = Object.keys(savedValues).map(name => {
176
189
  return { name, value: savedValues[name].value, isDuplicate: savedValues[name].isDuplicate };
177
190
  });
@@ -180,6 +193,13 @@ export class GeneralRegistration {
180
193
  const input = this.listOfInputs.find(input => input.name === inputValue.name);
181
194
  if (input) {
182
195
  input.defaultValue = inputValue.value;
196
+ // if the input is a togglecheckbox, set the default value for each subfield.
197
+ if (input.inputType === 'togglecheckbox') {
198
+ input.data.subFields.forEach((subfield) => {
199
+ const subfieldValue = this.listOfInputValues.find(subfieldValue => subfieldValue.name === subfield.name);
200
+ subfield.defaultValue = subfieldValue.value;
201
+ });
202
+ }
183
203
  }
184
204
  });
185
205
  }
@@ -241,6 +261,9 @@ export class GeneralRegistration {
241
261
  });
242
262
  }
243
263
  }
264
+ else if (curr.type === 'toggle') {
265
+ acc[curr.name] = curr.value ? 'true' : 'false';
266
+ }
244
267
  else {
245
268
  acc[curr.name] = curr.value;
246
269
  }
@@ -403,29 +426,26 @@ export class GeneralRegistration {
403
426
  return acc;
404
427
  }, []);
405
428
  this.listOfInputValues = this.listOfInputs.reduce((acc, field) => {
406
- var _a, _b, _c;
429
+ var _a;
430
+ const inputType = (_a = field.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase();
407
431
  // If the field type is a 'togglecheckbox', add its subfields
408
- if (((_a = field.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === "togglecheckbox") {
432
+ if (inputType === 'togglecheckbox') {
409
433
  field.data.subFields.forEach(subfield => {
410
- var _a, _b;
434
+ var _a;
411
435
  acc.push({
412
436
  name: subfield.name,
413
437
  value: ((_a = subfield.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) == 'checkbox' ? 'false' : null,
414
438
  isDuplicate: subfield.isDuplicateInput || false,
415
- type: ((_b = field.inputType) === null || _b === void 0 ? void 0 : _b.toLowerCase()) == 'togglecheckbox'
416
- ? 'togglecheckbox'
417
- : null
439
+ type: inputType === 'togglecheckbox' ? 'togglecheckbox' : null
418
440
  });
419
441
  });
420
442
  }
421
- else {
422
- acc.push({
423
- name: field.name,
424
- value: ((_b = field.inputType) === null || _b === void 0 ? void 0 : _b.toLowerCase()) == 'checkbox' ? 'false' : null,
425
- isDuplicate: field.isDuplicateInput || false,
426
- type: ((_c = field.inputType) === null || _c === void 0 ? void 0 : _c.toLowerCase()) == 'checkboxgroup' ? 'checkboxgroup' : null
427
- });
428
- }
443
+ acc.push({
444
+ name: field.name,
445
+ value: inputType === 'checkbox' || inputType === 'togglecheckbox' ? 'false' : null,
446
+ isDuplicate: field.isDuplicateInput || false,
447
+ type: inputType === 'checkboxgroup' ? 'checkboxgroup' : (inputType === 'togglecheckbox' ? 'toggle' : null)
448
+ });
429
449
  return acc;
430
450
  }, []);
431
451
  if (this.btag)
@@ -47,6 +47,7 @@ export const TRANSLATIONS = {
47
47
  "GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER": "The role has already been assigned to the user.",
48
48
  "GmErr_ASSIGN_USER_ROLE_FAILED": "Failed to assign a role to the user.",
49
49
  "GmErr_BadRequest_1000": "There was a problem with the personal identification number",
50
+ "CountryRestricted": "Unfortunately, you are attempting to register from a country where we cannot accept gameplay. We are unable to process your registration for this reason.",
50
51
  "nextButton": 'Next',
51
52
  "backButton": 'Back',
52
53
  "doneButton": 'Done',
@@ -100,6 +101,7 @@ export const TRANSLATIONS = {
100
101
  "GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER": "A szerepkör már hozzá lett rendelve a felhasználóhoz.",
101
102
  "GmErr_ASSIGN_USER_ROLE_FAILED": "Nem sikerült a felhasználói szerepkört hozzárendelni.",
102
103
  "GmErr_BadRequest_1000": "Probléma volt a személyi azonosító számmal",
104
+ "CountryRestricted": "Sajnálatos módon olyan országból próbál regisztrálni, ahonnan nem fogadhatunk játékot. Emiatt nem tudjuk feldolgozni a regisztrációját.",
103
105
  "nextButton": 'Következő',
104
106
  "backButton": 'Vissza',
105
107
  "doneButton": 'Kész',
@@ -153,6 +155,7 @@ export const TRANSLATIONS = {
153
155
  "GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER": "Uloga je već dodijeljena korisniku.",
154
156
  "GmErr_ASSIGN_USER_ROLE_FAILED": "Neuspješno dodjeljivanje uloge korisniku.",
155
157
  "GmErr_BadRequest_1000": "Došlo je do problema s OIB-om",
158
+ "CountryRestricted": "Nažalost, prijavljujete se iz zemlje iz koje ne možemo prihvatiti igru. Nismo u mogućnosti obraditi registraciju iz navedenog razloga.",
156
159
  "nextButton": 'Sljedeće',
157
160
  "backButton": 'Nazad',
158
161
  "doneButton": 'Gotovo',
@@ -206,6 +209,7 @@ export const TRANSLATIONS = {
206
209
  "GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER": "A função já foi atribuída ao usuário.",
207
210
  "GmErr_ASSIGN_USER_ROLE_FAILED": "Falha ao atribuir a função ao usuário.",
208
211
  "GmErr_BadRequest_1000": "Houve um problema com o número de identificação pessoal",
212
+ "CountryRestricted": "Infelizmente, você está tentando se registrar a partir de um país onde não podemos aceitar jogos. Não podemos processar seu registro por esse motivo.",
209
213
  "nextButton": 'Seguindo',
210
214
  "backButton": 'Voltar',
211
215
  "doneButton": 'Terminar',
@@ -259,6 +263,7 @@ export const TRANSLATIONS = {
259
263
  "GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER": "El rol ya ha sido asignado al usuario.",
260
264
  "GmErr_ASSIGN_USER_ROLE_FAILED": "Falló la asignación del rol al usuario.",
261
265
  "GmErr_BadRequest_1000": "Hubo un problema con el número de identificación personal",
266
+ "CountryRestricted": "Desafortunadamente, estás intentando registrarte desde un país donde no podemos aceptar juegos. No podemos procesar tu registro por esta razón.",
262
267
  "nextButton": 'Siguiente',
263
268
  "backButton": 'Atrás',
264
269
  "doneButton": 'Terminar',
@@ -279,6 +284,7 @@ export const TRANSLATIONS = {
279
284
  "GmErr_Unauthorized": 'Something went wrong... Please try again.',
280
285
  "GmErr_NotFound": 'Something went wrong... Please try again.',
281
286
  "GmErr_UnexpectedException": 'Something went wrong... Please try again.',
287
+ "CountryRestricted": "Maalesef, oyun kabul edemediğimiz bir ülkeden kayıt yapmaya çalışıyorsunuz. Bu nedenle kaydınızı işleme alamıyoruz.",
282
288
  "generalError": "Something went wrong... Please try again.",
283
289
  "successMessage": "Register successful"
284
290
  }
@@ -31059,6 +31059,7 @@ const TRANSLATIONS = {
31059
31059
  "GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER": "The role has already been assigned to the user.",
31060
31060
  "GmErr_ASSIGN_USER_ROLE_FAILED": "Failed to assign a role to the user.",
31061
31061
  "GmErr_BadRequest_1000": "There was a problem with the personal identification number",
31062
+ "CountryRestricted": "Unfortunately, you are attempting to register from a country where we cannot accept gameplay. We are unable to process your registration for this reason.",
31062
31063
  "nextButton": 'Next',
31063
31064
  "backButton": 'Back',
31064
31065
  "doneButton": 'Done',
@@ -31112,6 +31113,7 @@ const TRANSLATIONS = {
31112
31113
  "GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER": "A szerepkör már hozzá lett rendelve a felhasználóhoz.",
31113
31114
  "GmErr_ASSIGN_USER_ROLE_FAILED": "Nem sikerült a felhasználói szerepkört hozzárendelni.",
31114
31115
  "GmErr_BadRequest_1000": "Probléma volt a személyi azonosító számmal",
31116
+ "CountryRestricted": "Sajnálatos módon olyan országból próbál regisztrálni, ahonnan nem fogadhatunk játékot. Emiatt nem tudjuk feldolgozni a regisztrációját.",
31115
31117
  "nextButton": 'Következő',
31116
31118
  "backButton": 'Vissza',
31117
31119
  "doneButton": 'Kész',
@@ -31165,6 +31167,7 @@ const TRANSLATIONS = {
31165
31167
  "GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER": "Uloga je već dodijeljena korisniku.",
31166
31168
  "GmErr_ASSIGN_USER_ROLE_FAILED": "Neuspješno dodjeljivanje uloge korisniku.",
31167
31169
  "GmErr_BadRequest_1000": "Došlo je do problema s OIB-om",
31170
+ "CountryRestricted": "Nažalost, prijavljujete se iz zemlje iz koje ne možemo prihvatiti igru. Nismo u mogućnosti obraditi registraciju iz navedenog razloga.",
31168
31171
  "nextButton": 'Sljedeće',
31169
31172
  "backButton": 'Nazad',
31170
31173
  "doneButton": 'Gotovo',
@@ -31218,6 +31221,7 @@ const TRANSLATIONS = {
31218
31221
  "GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER": "A função já foi atribuída ao usuário.",
31219
31222
  "GmErr_ASSIGN_USER_ROLE_FAILED": "Falha ao atribuir a função ao usuário.",
31220
31223
  "GmErr_BadRequest_1000": "Houve um problema com o número de identificação pessoal",
31224
+ "CountryRestricted": "Infelizmente, você está tentando se registrar a partir de um país onde não podemos aceitar jogos. Não podemos processar seu registro por esse motivo.",
31221
31225
  "nextButton": 'Seguindo',
31222
31226
  "backButton": 'Voltar',
31223
31227
  "doneButton": 'Terminar',
@@ -31271,6 +31275,7 @@ const TRANSLATIONS = {
31271
31275
  "GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER": "El rol ya ha sido asignado al usuario.",
31272
31276
  "GmErr_ASSIGN_USER_ROLE_FAILED": "Falló la asignación del rol al usuario.",
31273
31277
  "GmErr_BadRequest_1000": "Hubo un problema con el número de identificación personal",
31278
+ "CountryRestricted": "Desafortunadamente, estás intentando registrarte desde un país donde no podemos aceptar juegos. No podemos procesar tu registro por esta razón.",
31274
31279
  "nextButton": 'Siguiente',
31275
31280
  "backButton": 'Atrás',
31276
31281
  "doneButton": 'Terminar',
@@ -31291,6 +31296,7 @@ const TRANSLATIONS = {
31291
31296
  "GmErr_Unauthorized": 'Something went wrong... Please try again.',
31292
31297
  "GmErr_NotFound": 'Something went wrong... Please try again.',
31293
31298
  "GmErr_UnexpectedException": 'Something went wrong... Please try again.',
31299
+ "CountryRestricted": "Maalesef, oyun kabul edemediğimiz bir ülkeden kayıt yapmaya çalışıyorsunuz. Bu nedenle kaydınızı işleme alamıyoruz.",
31294
31300
  "generalError": "Something went wrong... Please try again.",
31295
31301
  "successMessage": "Register successful"
31296
31302
  }
@@ -31473,32 +31479,45 @@ const GeneralRegistration = class {
31473
31479
  window.dispatchEvent(this.registerCredentialsEvent);
31474
31480
  }
31475
31481
  stepsStateMachine(state) {
31482
+ const saveToLocalStorage = () => {
31483
+ localStorage.setItem('registrationStepsState', JSON.stringify(this.registrationStepsState));
31484
+ };
31485
+ const loadFromLocalStorage = () => {
31486
+ return JSON.parse(localStorage.getItem('registrationStepsState'));
31487
+ };
31476
31488
  switch (state.event) {
31477
31489
  case 'set':
31478
31490
  if (state.type == 'inputs') {
31479
- this.registrationStepsState[this.registrationStep].fields = this.listOfInputs;
31480
- this.registrationStepsState[this.registrationStep].actions = this.listOfActions;
31481
- this.registrationStepsState[this.registrationStep].fieldsValidity = this.listOfInputValidity;
31491
+ // Store input-related data into the current step state
31492
+ const currentStep = this.registrationStepsState[this.registrationStep];
31493
+ currentStep.fields = this.listOfInputs;
31494
+ currentStep.actions = this.listOfActions;
31495
+ currentStep.fieldsValidity = this.listOfInputValidity;
31482
31496
  }
31483
31497
  if (state.type == 'values') {
31484
- this.registrationStepsState[this.registrationStep].registerUserData = this.listOfInputValues.reduce((acc, curr) => {
31498
+ // Map input values into the current step state
31499
+ const currentStep = this.registrationStepsState[this.registrationStep];
31500
+ currentStep.registerUserData = this.listOfInputValues.reduce((acc, curr) => {
31485
31501
  acc[curr.name] = { value: curr.value, isDuplicate: curr.isDuplicate };
31486
31502
  return acc;
31487
31503
  }, {});
31488
31504
  }
31489
- localStorage.setItem('registrationStepsState', JSON.stringify(this.registrationStepsState));
31505
+ saveToLocalStorage();
31490
31506
  break;
31491
31507
  case 'get':
31492
- const savedUserData = JSON.parse(localStorage.getItem('registrationStepsState'));
31508
+ const savedUserData = loadFromLocalStorage();
31493
31509
  if (!savedUserData)
31494
31510
  return;
31495
31511
  if (state.type == 'inputs') {
31496
- this.listOfInputs = this.registrationStepsState[this.registrationStep].fields;
31497
- this.listOfActions = this.registrationStepsState[this.registrationStep].actions;
31498
- this.listOfInputValidity = this.registrationStepsState[this.registrationStep].fieldsValidity;
31512
+ // Load input-related data from the saved state
31513
+ const currentStep = this.registrationStepsState[this.registrationStep];
31514
+ this.listOfInputs = currentStep.fields;
31515
+ this.listOfActions = currentStep.actions;
31516
+ this.listOfInputValidity = currentStep.fieldsValidity;
31499
31517
  }
31500
31518
  if (state.type == 'values') {
31501
31519
  const savedValues = savedUserData[this.registrationStep].registerUserData;
31520
+ // Convert saved values to the expected format for inputs
31502
31521
  this.listOfInputValues = Object.keys(savedValues).map(name => {
31503
31522
  return { name, value: savedValues[name].value, isDuplicate: savedValues[name].isDuplicate };
31504
31523
  });
@@ -31507,6 +31526,13 @@ const GeneralRegistration = class {
31507
31526
  const input = this.listOfInputs.find(input => input.name === inputValue.name);
31508
31527
  if (input) {
31509
31528
  input.defaultValue = inputValue.value;
31529
+ // if the input is a togglecheckbox, set the default value for each subfield.
31530
+ if (input.inputType === 'togglecheckbox') {
31531
+ input.data.subFields.forEach((subfield) => {
31532
+ const subfieldValue = this.listOfInputValues.find(subfieldValue => subfieldValue.name === subfield.name);
31533
+ subfield.defaultValue = subfieldValue.value;
31534
+ });
31535
+ }
31510
31536
  }
31511
31537
  });
31512
31538
  }
@@ -31568,6 +31594,9 @@ const GeneralRegistration = class {
31568
31594
  });
31569
31595
  }
31570
31596
  }
31597
+ else if (curr.type === 'toggle') {
31598
+ acc[curr.name] = curr.value ? 'true' : 'false';
31599
+ }
31571
31600
  else {
31572
31601
  acc[curr.name] = curr.value;
31573
31602
  }
@@ -31730,29 +31759,26 @@ const GeneralRegistration = class {
31730
31759
  return acc;
31731
31760
  }, []);
31732
31761
  this.listOfInputValues = this.listOfInputs.reduce((acc, field) => {
31733
- var _a, _b, _c;
31762
+ var _a;
31763
+ const inputType = (_a = field.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase();
31734
31764
  // If the field type is a 'togglecheckbox', add its subfields
31735
- if (((_a = field.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === "togglecheckbox") {
31765
+ if (inputType === 'togglecheckbox') {
31736
31766
  field.data.subFields.forEach(subfield => {
31737
- var _a, _b;
31767
+ var _a;
31738
31768
  acc.push({
31739
31769
  name: subfield.name,
31740
31770
  value: ((_a = subfield.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) == 'checkbox' ? 'false' : null,
31741
31771
  isDuplicate: subfield.isDuplicateInput || false,
31742
- type: ((_b = field.inputType) === null || _b === void 0 ? void 0 : _b.toLowerCase()) == 'togglecheckbox'
31743
- ? 'togglecheckbox'
31744
- : null
31772
+ type: inputType === 'togglecheckbox' ? 'togglecheckbox' : null
31745
31773
  });
31746
31774
  });
31747
31775
  }
31748
- else {
31749
- acc.push({
31750
- name: field.name,
31751
- value: ((_b = field.inputType) === null || _b === void 0 ? void 0 : _b.toLowerCase()) == 'checkbox' ? 'false' : null,
31752
- isDuplicate: field.isDuplicateInput || false,
31753
- type: ((_c = field.inputType) === null || _c === void 0 ? void 0 : _c.toLowerCase()) == 'checkboxgroup' ? 'checkboxgroup' : null
31754
- });
31755
- }
31776
+ acc.push({
31777
+ name: field.name,
31778
+ value: inputType === 'checkbox' || inputType === 'togglecheckbox' ? 'false' : null,
31779
+ isDuplicate: field.isDuplicateInput || false,
31780
+ type: inputType === 'checkboxgroup' ? 'checkboxgroup' : (inputType === 'togglecheckbox' ? 'toggle' : null)
31781
+ });
31756
31782
  return acc;
31757
31783
  }, []);
31758
31784
  if (this.btag)
@@ -39316,7 +39342,7 @@ const ToggleCheckboxInput = class {
39316
39342
  this.isValid = undefined;
39317
39343
  this.limitStylingAppends = false;
39318
39344
  this.showTooltip = false;
39319
- this.showFields = undefined;
39345
+ this.showFields = this.defaultValue === 'true';
39320
39346
  }
39321
39347
  validityStateHandler(inputStateEvent) {
39322
39348
  this.sendValidityState.emit(inputStateEvent);
@@ -39343,6 +39369,7 @@ const ToggleCheckboxInput = class {
39343
39369
  this.showFields = this.checkboxReference.checked;
39344
39370
  this.errorMessage = this.setErrorMessage();
39345
39371
  this.isValid = this.setValidity();
39372
+ this.valueHandler({ name: this.name, value: this.checkboxReference.checked ? 'true' : 'false', type: 'toggle' });
39346
39373
  }
39347
39374
  setValidity() {
39348
39375
  return this.checkboxReference.validity.valid;
@@ -39362,8 +39389,8 @@ const ToggleCheckboxInput = class {
39362
39389
  return null;
39363
39390
  }
39364
39391
  render() {
39365
- return h$2("div", { key: 'd5a645fdc3409f4efdc3319c07cded8c1931991c', class: `togglecheckbox__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, h$2("div", { key: 'c18e410777502b3609dd0872487cc8281e1adf25', class: 'togglecheckbox__wrapper--flex' }, h$2("input", { key: '7c2f6204300b5c046c9ad909089619f39f6cda83', class: 'togglecheckbox__input', type: "checkbox", id: `${this.name}__input`, ref: (el) => this.checkboxReference = el, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel()), h$2("small", { key: '24e57e5a5dd20e5f646a69c4fa0c0bbbe38aba1f', class: 'togglecheckbox__error-message' }, this.errorMessage), h$2("div", { key: 'eea41bc49a5c572d86a595880d4c60093f15156e', class: 'togglecheckbox__wrapper--relative' }, this.tooltip &&
39366
- h$2("img", { key: 'bb093e1c928cf87ea69a2c49a784395bd82e542e', class: 'togglecheckbox__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), h$2("div", { key: 'eda4df7b1669eca99d4013877e2ef082ea54984c', class: `togglecheckbox__fields-wrapper ${this.showFields ? '' : 'hidden'}` }, this.options.map(subfield => {
39392
+ return h$2("div", { key: '8c8e9bb2ae7feadf3a5fc38b9913e38d7ccb9aed', class: `togglecheckbox__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, h$2("div", { key: '18e2ec43ff98738323ddab1e134d6d215978e1c7', class: 'togglecheckbox__wrapper--flex' }, h$2("input", { key: '640b3ba4fd34bd813239533236e51f452e735409', class: 'togglecheckbox__input', type: "checkbox", id: `${this.name}__input`, ref: (el) => this.checkboxReference = el, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel()), h$2("small", { key: 'efd70a691559cfa98e93561dd945a0fe92909718', class: 'togglecheckbox__error-message' }, this.errorMessage), h$2("div", { key: 'e56a8fafa17da25d01f894fe6e6c143c318d2aab', class: 'togglecheckbox__wrapper--relative' }, this.tooltip &&
39393
+ h$2("img", { key: '8b59366827b8f4f8ca5581203a2dca44ae8132d5', class: 'togglecheckbox__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), h$2("div", { key: '475e27345b51396c36e78b5a1e06edd980bc3ae1', class: `togglecheckbox__fields-wrapper ${this.showFields ? '' : 'hidden'}` }, this.options.map(subfield => {
39367
39394
  return h$2("general-input", { type: subfield.inputType, name: subfield.name, displayName: subfield.displayName, validation: subfield.validate, action: subfield.action || null, defaultValue: subfield.defaultValue, autofilled: subfield.autofill, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: subfield.tooltip, placeholder: subfield.placeholder == null ? '' : subfield.placeholder });
39368
39395
  })));
39369
39396
  }
@@ -1 +1 @@
1
- import{p as e,b as l}from"./p-35ed5ec5.js";export{s as setNonce}from"./p-35ed5ec5.js";import{g as i}from"./p-e1255160.js";(()=>{const l=import.meta.url,i={};return""!==l&&(i.resourcesUrl=new URL(".",l).href),e(i)})().then((async e=>(await i(),l([["p-12d7a191",[[1,"general-registration",{endpoint:[513],language:[513],clientStyling:[1537,"client-styling"],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"],errorMessage:[32],isFormValid:[32],isLoading:[32],isLoadingPOST:[32],registrationStep:[32],forms:[32],limitStylingAppends:[32],autofilled:[32]},[[0,"sendValidityState","checkInputsValidityHandler"],[0,"sendInputValue","getInputsValueHandler"]],{registrationStep:["sendStep"],clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"],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"],clientStyling:[520,"client-styling"],dateFormat:[513,"date-format"],translationUrl:[513,"translation-url"],emitOnClick:[516,"emit-on-click"]}],[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"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],showFields:[32]},[[4,"click","handleClickOutside"]]],[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"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],selectedValues:[32]},[[4,"click","handleClickOutside"]],{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"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{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"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[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"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]],{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"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{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],language:[513],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32],passwordComplexity:[32],showPopup:[32],value:[32]},[[16,"sendOriginalValidityState","originalValidityChangedHandler"],[16,"sendInputValue","valueChangedHandler"],[4,"click","handleClickOutside"]],{isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}],[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"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{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"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{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"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{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"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]],{isValid:["validityChanged"],emitValue:["emitValueHandler"]}]]]],e))));
1
+ import{p as e,b as l}from"./p-35ed5ec5.js";export{s as setNonce}from"./p-35ed5ec5.js";import{g as i}from"./p-e1255160.js";(()=>{const l=import.meta.url,i={};return""!==l&&(i.resourcesUrl=new URL(".",l).href),e(i)})().then((async e=>(await i(),l([["p-7f98f290",[[1,"general-registration",{endpoint:[513],language:[513],clientStyling:[1537,"client-styling"],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"],errorMessage:[32],isFormValid:[32],isLoading:[32],isLoadingPOST:[32],registrationStep:[32],forms:[32],limitStylingAppends:[32],autofilled:[32]},[[0,"sendValidityState","checkInputsValidityHandler"],[0,"sendInputValue","getInputsValueHandler"]],{registrationStep:["sendStep"],clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"],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"],clientStyling:[520,"client-styling"],dateFormat:[513,"date-format"],translationUrl:[513,"translation-url"],emitOnClick:[516,"emit-on-click"]}],[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"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],showFields:[32]},[[4,"click","handleClickOutside"]]],[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"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],selectedValues:[32]},[[4,"click","handleClickOutside"]],{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"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{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"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[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"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]],{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"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{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],language:[513],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32],passwordComplexity:[32],showPopup:[32],value:[32]},[[16,"sendOriginalValidityState","originalValidityChangedHandler"],[16,"sendInputValue","valueChangedHandler"],[4,"click","handleClickOutside"]],{isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}],[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"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{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"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{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"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{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"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]],{isValid:["validityChanged"],emitValue:["emitValueHandler"]}]]]],e))));