@saasquatch/mint-components 1.6.2-20 → 1.6.2-23

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.
Files changed (122) hide show
  1. package/dist/cjs/{ShadowViewAddon-312e517f.js → ShadowViewAddon-fa9574a8.js} +25 -17
  2. package/dist/cjs/sqm-big-stat_35.cjs.entry.js +57 -32
  3. package/dist/cjs/sqm-password-field.cjs.entry.js +6 -8
  4. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  5. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
  6. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +32 -14
  7. package/dist/cjs/sqm-stencilbook.cjs.entry.js +68 -35
  8. package/dist/cjs/{useRegistrationFormState-d0e43ca9.js → useRegistrationFormState-bee054d6.js} +0 -9
  9. package/dist/collection/components/sqm-brand/sqm-brand.js +7 -1
  10. package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +12 -5
  11. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +3 -2
  12. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +4 -4
  13. package/dist/collection/components/sqm-checkbox-field/useCheckboxField.js +12 -5
  14. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +2 -2
  15. package/dist/collection/components/sqm-dropdown-field/DropdownField.stories.js +13 -6
  16. package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +6 -2
  17. package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +3 -3
  18. package/dist/collection/components/sqm-dropdown-field/useDropdownField.js +3 -3
  19. package/dist/collection/components/sqm-input-field/InputField.stories.js +12 -5
  20. package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +6 -2
  21. package/dist/collection/components/sqm-input-field/sqm-input-field.js +3 -3
  22. package/dist/collection/components/sqm-input-field/useInputField.js +3 -3
  23. package/dist/collection/components/sqm-name-fields/NameFields.stories.js +8 -4
  24. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +6 -6
  25. package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +1 -1
  26. package/dist/collection/components/sqm-name-fields/useNameFields.js +0 -3
  27. package/dist/collection/components/sqm-password-field/PasswordField.stories.js +9 -6
  28. package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +4 -3
  29. package/dist/collection/components/sqm-password-field/sqm-password-field.js +1 -2
  30. package/dist/collection/components/sqm-password-field/usePasswordField.js +0 -3
  31. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +10 -10
  32. package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +4 -4
  33. package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +2 -2
  34. package/dist/collection/components/sqm-portal-register/PortalRegister.stories.js +5 -0
  35. package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +4 -5
  36. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +7 -7
  37. package/dist/collection/components/sqm-portal-register/usePortalRegister.js +20 -6
  38. package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +1 -0
  39. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +4 -5
  40. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +7 -7
  41. package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +24 -6
  42. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +4 -4
  43. package/dist/collection/components/sqm-route/sqm-route.js +1 -1
  44. package/dist/esm/{ShadowViewAddon-b7ca4ee5.js → ShadowViewAddon-9da264db.js} +25 -17
  45. package/dist/esm/sqm-big-stat_35.entry.js +57 -32
  46. package/dist/esm/sqm-password-field.entry.js +6 -8
  47. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  48. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  49. package/dist/esm/sqm-portal-registration-form.entry.js +32 -14
  50. package/dist/esm/sqm-stencilbook.entry.js +68 -35
  51. package/dist/esm/{useRegistrationFormState-e94eec81.js → useRegistrationFormState-3cdf2939.js} +1 -8
  52. package/dist/esm-es5/ShadowViewAddon-9da264db.js +1 -0
  53. package/dist/esm-es5/sqm-big-stat_35.entry.js +1 -1
  54. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  55. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  56. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  57. package/dist/esm-es5/useRegistrationFormState-3cdf2939.js +1 -0
  58. package/dist/mint-components/mint-components.esm.js +1 -1
  59. package/dist/mint-components/p-11a4a003.system.js +1 -1
  60. package/dist/mint-components/p-1287215d.js +1 -0
  61. package/dist/mint-components/p-16e4ee0a.entry.js +9 -0
  62. package/dist/mint-components/p-2c805081.system.js +1 -0
  63. package/dist/mint-components/p-4a2238b1.system.entry.js +1 -0
  64. package/dist/mint-components/p-68824c97.system.js +1 -0
  65. package/dist/mint-components/p-97c5e680.system.entry.js +1 -0
  66. package/dist/mint-components/p-a400c8c6.entry.js +13 -0
  67. package/dist/mint-components/p-ab5a8bf0.system.entry.js +1 -0
  68. package/dist/mint-components/p-ca319b4f.js +268 -0
  69. package/dist/mint-components/p-dcf30408.entry.js +1 -0
  70. package/dist/mint-components/{p-1f6d8c42.entry.js → p-f2150df4.entry.js} +12 -12
  71. package/dist/mint-components/p-f828edc5.system.entry.js +1 -0
  72. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field-view.d.ts +2 -2
  73. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +1 -0
  74. package/dist/types/components/sqm-checkbox-field/useCheckboxField.d.ts +4 -2
  75. package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +1 -1
  76. package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field-view.d.ts +2 -2
  77. package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +1 -0
  78. package/dist/types/components/sqm-dropdown-field/useDropdownField.d.ts +2 -1
  79. package/dist/types/components/sqm-input-field/sqm-input-field-view.d.ts +2 -2
  80. package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +1 -1
  81. package/dist/types/components/sqm-input-field/useInputField.d.ts +2 -1
  82. package/dist/types/components/sqm-name-fields/sqm-name-fields-view.d.ts +0 -2
  83. package/dist/types/components/sqm-name-fields/useNameFields.d.ts +0 -1
  84. package/dist/types/components/sqm-password-field/sqm-password-field-view.d.ts +0 -1
  85. package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +0 -1
  86. package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +5 -5
  87. package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +2 -2
  88. package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +1 -1
  89. package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +2 -2
  90. package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +3 -3
  91. package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +1 -1
  92. package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +0 -2
  93. package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +3 -3
  94. package/dist/types/components/sqm-portal-registration-form/usePortalRegistrationForm.d.ts +0 -1
  95. package/dist/types/components/sqm-portal-registration-form/useRegistrationFormState.d.ts +2 -0
  96. package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +2 -2
  97. package/dist/types/components/sqm-route/sqm-route.d.ts +1 -0
  98. package/dist/types/components.d.ts +42 -36
  99. package/dist/types/global/android.d.ts +7 -0
  100. package/dist/types/global/demo.d.ts +1 -0
  101. package/dist/types/stories/features.d.ts +4 -0
  102. package/dist/types/stories/templates.d.ts +4 -0
  103. package/docs/docs.docx +0 -0
  104. package/docs/grapesjs.js +54 -0
  105. package/docs/raisins.json +1 -1
  106. package/grapesjs/grapesjs.js +1 -1
  107. package/package.json +1 -1
  108. package/dist/collection/components/sqm-portal-register/useValidationState.js +0 -8
  109. package/dist/esm-es5/ShadowViewAddon-b7ca4ee5.js +0 -1
  110. package/dist/esm-es5/useRegistrationFormState-e94eec81.js +0 -1
  111. package/dist/mint-components/p-233e784a.js +0 -1
  112. package/dist/mint-components/p-3245da29.entry.js +0 -9
  113. package/dist/mint-components/p-3435cd60.system.entry.js +0 -1
  114. package/dist/mint-components/p-5d815633.system.entry.js +0 -1
  115. package/dist/mint-components/p-5d86baae.entry.js +0 -13
  116. package/dist/mint-components/p-94e85aa5.system.entry.js +0 -1
  117. package/dist/mint-components/p-aa893634.entry.js +0 -1
  118. package/dist/mint-components/p-b01e28dd.system.js +0 -1
  119. package/dist/mint-components/p-b17ec97c.system.js +0 -1
  120. package/dist/mint-components/p-eb5835b3.js +0 -268
  121. package/dist/mint-components/p-f75f56f6.system.entry.js +0 -1
  122. package/dist/types/components/sqm-portal-register/useValidationState.d.ts +0 -18
@@ -1619,18 +1619,17 @@ function PortalRegisterView(props) {
1619
1619
  if (!value.includes("@")) {
1620
1620
  return "Must be a valid email address";
1621
1621
  }
1622
- } }, (((_b = (_a = states.validationState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
1622
+ } }, (((_b = (_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
1623
1623
  class: sheet$5.classes.ErrorStyle,
1624
- helpText: ((_d = (_c = states.validationState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
1624
+ helpText: ((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
1625
1625
  "Cannot be empty",
1626
1626
  }
1627
1627
  : [])))),
1628
1628
  !states.hideInputs && (index.h("sqm-password-field", { fieldLabel: content.passwordLabel, "disable-validation": states.disablePasswordValidation })),
1629
1629
  content.passwordField,
1630
- !states.hideInputs && states.confirmPassword && (index.h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading, required: true }, (((_f = (_e = states.validationState) === null || _e === void 0 ? void 0 : _e.validationErrors) === null || _f === void 0 ? void 0 : _f.confirmPassword) ? {
1630
+ !states.hideInputs && states.confirmPassword && (index.h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading, required: true }, (((_f = (_e = states.registrationFormState) === null || _e === void 0 ? void 0 : _e.validationErrors) === null || _f === void 0 ? void 0 : _f.confirmPassword) ? {
1631
1631
  class: sheet$5.classes.ErrorStyle,
1632
- helpText: ((_h = (_g = states.validationState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.confirmPassword) ||
1633
- "Cannot be empty",
1632
+ helpText: ((_h = (_g = states.registrationFormState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.confirmPassword) || "Cannot be empty",
1634
1633
  }
1635
1634
  : [])))),
1636
1635
  content.terms,
@@ -2446,23 +2445,23 @@ sl-input::part(label){
2446
2445
  const sheet$9 = JSS.createStyleSheet(style$9);
2447
2446
  const styleString$9 = sheet$9.toString();
2448
2447
  function NameFieldsView(props) {
2449
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
2448
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
2450
2449
  const { states } = props;
2451
- const validationErrors = states === null || states === void 0 ? void 0 : states.validationErrors;
2450
+ const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2452
2451
  return (index.h("div", { class: sheet$9.classes.FieldsContainer },
2453
2452
  index.h("style", { type: "text/css" },
2454
2453
  vanillaStyle$3,
2455
2454
  styleString$9),
2456
- index.h("sl-input", Object.assign({ exportparts: "label: input-label", name: "/firstName", type: "text", label: states.content.firstNameLabel, required: true, disabled: ((_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.loading) || ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.disabled) }, (((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.initialData) === null || _d === void 0 ? void 0 : _d.firstName) ? {
2457
- value: (_f = (_e = states.registrationFormState) === null || _e === void 0 ? void 0 : _e.initialData) === null || _f === void 0 ? void 0 : _f.firstName,
2455
+ index.h("sl-input", Object.assign({ exportparts: "label: input-label", name: "/firstName", type: "text", label: states.content.firstNameLabel, required: true, disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e.firstName) ? {
2456
+ value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
2458
2457
  }
2459
2458
  : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
2460
2459
  class: sheet$9.classes.ErrorStyle,
2461
2460
  helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
2462
2461
  }
2463
2462
  : []))),
2464
- index.h("sl-input", Object.assign({ exportparts: "label: input-label", name: "/lastName", type: "text", label: states.content.lastNameLabel, required: true, disabled: ((_g = states.registrationFormState) === null || _g === void 0 ? void 0 : _g.loading) || ((_h = states.registrationFormState) === null || _h === void 0 ? void 0 : _h.disabled) }, (((_k = (_j = states.registrationFormState) === null || _j === void 0 ? void 0 : _j.initialData) === null || _k === void 0 ? void 0 : _k.lastName) ? {
2465
- value: (_m = (_l = states.registrationFormState) === null || _l === void 0 ? void 0 : _l.initialData) === null || _m === void 0 ? void 0 : _m.lastName,
2463
+ index.h("sl-input", Object.assign({ exportparts: "label: input-label", name: "/lastName", type: "text", label: states.content.lastNameLabel, required: true, disabled: ((_h = states.registrationFormState) === null || _h === void 0 ? void 0 : _h.loading) || ((_j = states.registrationFormState) === null || _j === void 0 ? void 0 : _j.disabled) }, (((_l = (_k = states.registrationFormState) === null || _k === void 0 ? void 0 : _k.initialData) === null || _l === void 0 ? void 0 : _l.lastName) ? {
2464
+ value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
2466
2465
  }
2467
2466
  : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
2468
2467
  class: sheet$9.classes.ErrorStyle,
@@ -2513,8 +2512,9 @@ JSS.jss.setup(JSS.create());
2513
2512
  const sheet$a = JSS.jss.createStyleSheet(style$a);
2514
2513
  const styleString$a = sheet$a.toString();
2515
2514
  function CheckboxFieldView(props) {
2515
+ var _a, _b, _c;
2516
2516
  const { states, content, callbacks } = props;
2517
- const validationErrors = states === null || states === void 0 ? void 0 : states.validationErrors;
2517
+ const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2518
2518
  return (index.h("div", { class: sheet$a.classes.FieldContainer },
2519
2519
  index.h("style", { type: "text/css" },
2520
2520
  vanillaStyle$4,
@@ -2522,7 +2522,7 @@ function CheckboxFieldView(props) {
2522
2522
  index.h("sl-checkbox", Object.assign({ exportparts: "label: input-label", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
2523
2523
  e.target.value = e.target.checked;
2524
2524
  callbacks.setChecked(e.target.value);
2525
- } }, (!content.checkboxOptional ? { required: true } : []), (!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName])
2525
+ } }, (!content.checkboxOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName])
2526
2526
  ? {
2527
2527
  class: sheet$a.classes.ErrorStyle,
2528
2528
  }
@@ -2570,13 +2570,17 @@ JSS.jss.setup(JSS.create());
2570
2570
  const sheet$b = JSS.jss.createStyleSheet(style$b);
2571
2571
  const styleString$b = sheet$b.toString();
2572
2572
  function DropdownFieldView(props) {
2573
+ var _a, _b, _c, _d, _e, _f, _g;
2573
2574
  const { states, content } = props;
2574
- const validationErrors = states === null || states === void 0 ? void 0 : states.validationErrors;
2575
+ const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2575
2576
  return (index.h("div", { class: sheet$b.classes.FieldContainer },
2576
2577
  index.h("style", { type: "text/css" },
2577
2578
  vanillaStyle$5,
2578
2579
  styleString$b),
2579
- index.h("sl-select", Object.assign({ exportparts: "label: input-label", label: content.dropdownLabel, name: `/${content.dropdownName}` }, (!content.dropdownOptional ? { required: true } : []), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
2580
+ index.h("sl-select", Object.assign({ exportparts: "label: input-label", label: content.dropdownLabel, name: `/${content.dropdownName}` }, (!content.dropdownOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.dropdownName]) ? {
2581
+ value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.dropdownName],
2582
+ }
2583
+ : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
2580
2584
  class: sheet$b.classes.ErrorStyle,
2581
2585
  }
2582
2586
  : [])), content.selectOptions),
@@ -2603,13 +2607,17 @@ JSS.jss.setup(JSS.create());
2603
2607
  const sheet$c = JSS.jss.createStyleSheet(style$c);
2604
2608
  const styleString$c = sheet$c.toString();
2605
2609
  function InputFieldView(props) {
2610
+ var _a, _b, _c, _d, _e, _f, _g;
2606
2611
  const { states, content } = props;
2607
- const validationErrors = states === null || states === void 0 ? void 0 : states.validationErrors;
2612
+ const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2608
2613
  return (index.h("div", { class: sheet$c.classes.FieldContainer },
2609
2614
  index.h("style", { type: "text/css" },
2610
2615
  vanillaStyle$6,
2611
2616
  styleString$c),
2612
- index.h("sl-input", Object.assign({ exportparts: "label: input-label", name: `/${content.fieldName}`, type: content.fieldType, label: content.fieldLabel }, (!content.fieldOptional ? { required: true } : []), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
2617
+ index.h("sl-input", Object.assign({ exportparts: "label: input-label", name: `/${content.fieldName}`, type: content.fieldType, label: content.fieldLabel }, (!content.fieldOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.fieldName]) ? {
2618
+ value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.fieldName],
2619
+ }
2620
+ : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
2613
2621
  class: sheet$c.classes.ErrorStyle,
2614
2622
  helpText: global.intl.formatMessage({
2615
2623
  id: `errorMessage-${content.fieldName}`,
@@ -18,8 +18,8 @@ const utils = require('./utils-6847bc06.js');
18
18
  require('./sqm-text-span-view-b318af73.js');
19
19
  require('./sqm-portal-container-view-2ddcaa12.js');
20
20
  const AsYouType = require('./AsYouType-6788393a.js');
21
- const useRegistrationFormState = require('./useRegistrationFormState-d0e43ca9.js');
22
- const ShadowViewAddon = require('./ShadowViewAddon-312e517f.js');
21
+ const useRegistrationFormState = require('./useRegistrationFormState-bee054d6.js');
22
+ const ShadowViewAddon = require('./ShadowViewAddon-fa9574a8.js');
23
23
  require('./sqm-portal-section-view-1e5bbcb1.js');
24
24
 
25
25
  const BigStat = class {
@@ -68,7 +68,13 @@ const BrandComponent = class {
68
68
  render() {
69
69
  var _a, _b;
70
70
  const brandColor = (_a = this.brandColor) !== null && _a !== void 0 ? _a : "#FFF";
71
- const css = ShadowViewAddon.autoColorScaleCss(brandColor);
71
+ let css;
72
+ try {
73
+ css = ShadowViewAddon.autoColorScaleCss(brandColor);
74
+ }
75
+ catch {
76
+ css = ShadowViewAddon.autoColorScaleCss("#FFF");
77
+ }
72
78
  const sanitizedFont = ((_b = this.brandFont) !== null && _b !== void 0 ? _b : "Nunito Sans").trim() || undefined;
73
79
  stencilHooks_module.useEffect(() => {
74
80
  if (!sanitizedFont) {
@@ -179,12 +185,19 @@ function RequiredPropsError({ missingProps, heading = "There was a problem loadi
179
185
  index.h("div", { class: sheet.classes.Children }, children)));
180
186
  }
181
187
 
182
- function useCheckboxField() {
183
- const validationState = stencilHooks_module.d(useRegistrationFormState.FORM_VALIDATION_CONTEXT);
188
+ function useCheckboxField(props) {
189
+ var _a;
190
+ const registrationFormState = stencilHooks_module.d(useRegistrationFormState.REGISTRATION_FORM_STATE_CONTEXT);
184
191
  const [checked, setChecked] = stencilHooks_module.useState(false);
192
+ stencilHooks_module.useEffect(() => {
193
+ var _a, _b;
194
+ if ((_a = registrationFormState === null || registrationFormState === void 0 ? void 0 : registrationFormState.initialData) === null || _a === void 0 ? void 0 : _a[props.checkboxName]) {
195
+ setChecked(!!((_b = registrationFormState === null || registrationFormState === void 0 ? void 0 : registrationFormState.initialData) === null || _b === void 0 ? void 0 : _b[props.checkboxName]));
196
+ }
197
+ }, [(_a = registrationFormState === null || registrationFormState === void 0 ? void 0 : registrationFormState.initialData) === null || _a === void 0 ? void 0 : _a[props.checkboxName]]);
185
198
  return {
186
199
  states: {
187
- validationErrors: validationState === null || validationState === void 0 ? void 0 : validationState.validationErrors,
200
+ registrationFormState,
188
201
  checked,
189
202
  },
190
203
  callbacks: {
@@ -238,14 +251,14 @@ const CheckboxField = class {
238
251
  };
239
252
  const { states, callbacks } = index_module.isDemo()
240
253
  ? useCheckboxFieldDemo(this)
241
- : useCheckboxField();
254
+ : useCheckboxField(this);
242
255
  return (index.h(ShadowViewAddon.CheckboxFieldView, { states: states, content: content, callbacks: callbacks }));
243
256
  }
244
257
  };
245
258
  function useCheckboxFieldDemo(props) {
246
259
  return cjs.cjs({
247
260
  states: {
248
- validationErrors: [],
261
+ registrationFormState: {},
249
262
  checked: false,
250
263
  },
251
264
  callbacks: {
@@ -309,7 +322,7 @@ const DividedLayout = class {
309
322
  constructor(hostRef) {
310
323
  index.registerInstance(this, hostRef);
311
324
  /**
312
- * Uses Shorthand CSS border syntax
325
+ * Uses Shorthand CSS border syntax allowing specification of thickness, fill style and color.
313
326
  * @uiName Border Style
314
327
  */
315
328
  this.dividerStyle = "1px solid #EAEAEA";
@@ -322,10 +335,10 @@ const DividedLayout = class {
322
335
  };
323
336
 
324
337
  function useDropdownField() {
325
- const validationState = stencilHooks_module.d(useRegistrationFormState.FORM_VALIDATION_CONTEXT);
338
+ const registrationFormState = stencilHooks_module.d(useRegistrationFormState.REGISTRATION_FORM_STATE_CONTEXT);
326
339
  return {
327
340
  states: {
328
- validationErrors: validationState === null || validationState === void 0 ? void 0 : validationState.validationErrors,
341
+ registrationFormState,
329
342
  },
330
343
  };
331
344
  }
@@ -373,7 +386,7 @@ const DropdownField = class {
373
386
  function useDropdownFieldDemo(props) {
374
387
  return cjs.cjs({
375
388
  states: {
376
- validationErrors: [],
389
+ registrationFormState: {},
377
390
  },
378
391
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
379
392
  }
@@ -813,10 +826,10 @@ const SqmHookStoryContainer = class {
813
826
  };
814
827
 
815
828
  function useInputField() {
816
- const validationState = stencilHooks_module.d(useRegistrationFormState.FORM_VALIDATION_CONTEXT);
829
+ const registrationFormState = stencilHooks_module.d(useRegistrationFormState.REGISTRATION_FORM_STATE_CONTEXT);
817
830
  return {
818
831
  states: {
819
- validationErrors: validationState === null || validationState === void 0 ? void 0 : validationState.validationErrors,
832
+ registrationFormState: registrationFormState,
820
833
  },
821
834
  };
822
835
  }
@@ -864,7 +877,7 @@ const InputField = class {
864
877
  function useInputFieldDemo(props) {
865
878
  return cjs.cjs({
866
879
  states: {
867
- validationErrors: [],
880
+ registrationFormState: {},
868
881
  },
869
882
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
870
883
  }
@@ -1106,10 +1119,8 @@ function useLeaderboardDemo(props) {
1106
1119
 
1107
1120
  function useNameFields(props) {
1108
1121
  const registrationFormState = stencilHooks_module.d(useRegistrationFormState.REGISTRATION_FORM_STATE_CONTEXT);
1109
- const validationState = stencilHooks_module.d(useRegistrationFormState.FORM_VALIDATION_CONTEXT);
1110
1122
  return {
1111
1123
  states: {
1112
- validationErrors: validationState === null || validationState === void 0 ? void 0 : validationState.validationErrors,
1113
1124
  registrationFormState,
1114
1125
  content: {
1115
1126
  lastNameLabel: props.lastNameLabel,
@@ -1288,25 +1299,25 @@ const PortalChangePassword = class {
1288
1299
  */
1289
1300
  this.modalChangePasswordHeader = "Change Password";
1290
1301
  /**
1291
- * Modal cancel button text
1302
+ * Found in modal
1292
1303
  *
1293
1304
  * @uiName Cancel Button Text
1294
1305
  */
1295
1306
  this.cancelText = "Cancel";
1296
1307
  /**
1297
- * Modal change password button text
1308
+ * Found in modal
1298
1309
  *
1299
1310
  * @uiName Change Password Button Text
1300
1311
  */
1301
1312
  this.changePasswordButtonText = "Change Password";
1302
1313
  /**
1303
- * Password input field label
1314
+ * Found in modal
1304
1315
  *
1305
- * @uiName Password Label
1316
+ * @uiName New Password Field Label
1306
1317
  */
1307
1318
  this.passwordFieldLabel = "New Password";
1308
1319
  /**
1309
- * Password confirmation input field label
1320
+ * Found in modal
1310
1321
  *
1311
1322
  * @uiName Confirm Password Label
1312
1323
  */
@@ -1532,7 +1543,7 @@ function useLoginDemo(props) {
1532
1543
  function usePortalRegister(props) {
1533
1544
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1534
1545
  const formRef = stencilHooks_module.useRef(null);
1535
- const { validationState, setValidationState } = useRegistrationFormState.useValidationState({});
1546
+ const { registrationFormState, setRegistrationFormState } = useRegistrationFormState.useRegistrationFormState({});
1536
1547
  const [request, { loading, errors, data }] = index_module.je();
1537
1548
  stencilHooks_module.useEffect(() => {
1538
1549
  if (!formRef.current)
@@ -1573,11 +1584,16 @@ function usePortalRegister(props) {
1573
1584
  confirmPassword: "Passwords do not match.",
1574
1585
  };
1575
1586
  }
1576
- setValidationState({ error: "", validationErrors });
1577
1587
  if (Object.keys(validationErrors).length) {
1588
+ setRegistrationFormState({ loading: false, error: "", validationErrors });
1578
1589
  // early return for validation errors
1579
1590
  return;
1580
1591
  }
1592
+ setRegistrationFormState({
1593
+ loading: true,
1594
+ error: "",
1595
+ validationErrors: {},
1596
+ });
1581
1597
  const { email, password } = formData;
1582
1598
  delete formData.email;
1583
1599
  delete formData.password;
@@ -1595,12 +1611,21 @@ function usePortalRegister(props) {
1595
1611
  if (result instanceof Error) {
1596
1612
  throw result;
1597
1613
  }
1614
+ setRegistrationFormState({
1615
+ loading: false,
1616
+ error: "",
1617
+ validationErrors: {},
1618
+ });
1598
1619
  if ((_a = result.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
1599
1620
  index_module.fn.push(props.nextPage);
1600
1621
  }
1601
1622
  }
1602
1623
  catch (error) {
1603
- setValidationState({ error: "Network request failed." });
1624
+ setRegistrationFormState({
1625
+ loading: false,
1626
+ error: "Network request failed.",
1627
+ validationErrors: {},
1628
+ });
1604
1629
  }
1605
1630
  };
1606
1631
  const inputFunction = useCallback.useCallback((e) => {
@@ -1620,13 +1645,13 @@ function usePortalRegister(props) {
1620
1645
  }
1621
1646
  else {
1622
1647
  errorMessage =
1623
- ((_f = (_e = (_d = (_c = errors === null || errors === void 0 ? void 0 : errors.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.extensions) === null || _f === void 0 ? void 0 : _f.message) || ((_j = (_h = (_g = errors === null || errors === void 0 ? void 0 : errors.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) || (validationState === null || validationState === void 0 ? void 0 : validationState.error);
1648
+ ((_f = (_e = (_d = (_c = errors === null || errors === void 0 ? void 0 : errors.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.extensions) === null || _f === void 0 ? void 0 : _f.message) || ((_j = (_h = (_g = errors === null || errors === void 0 ? void 0 : errors.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) || (registrationFormState === null || registrationFormState === void 0 ? void 0 : registrationFormState.error);
1624
1649
  }
1625
1650
  return {
1626
1651
  states: {
1627
1652
  loading,
1628
1653
  error: errorMessage,
1629
- validationState,
1654
+ registrationFormState,
1630
1655
  confirmPassword: props.confirmPassword,
1631
1656
  hideInputs: props.hideInputs,
1632
1657
  loginPath: props.loginPath,
@@ -1647,7 +1672,7 @@ const PortalRegister = class {
1647
1672
  index.registerInstance(this, hostRef);
1648
1673
  this.ignored = true;
1649
1674
  /**
1650
- * Redirect participants to this page after they successfully register.
1675
+ * Redirect participants to this page from their verification email
1651
1676
  *
1652
1677
  * @uiName Registration Redirect
1653
1678
  * @uiWidget pageSelect
@@ -1689,9 +1714,9 @@ const PortalRegister = class {
1689
1714
  */
1690
1715
  this.disablePasswordValidation = false;
1691
1716
  /**
1692
- * Hide default input fields to use custom fields.
1717
+ * Hides the email and password fields. Note: If you hide default inputs, you must add additional input fields. They must have the input name attributes "email" and "password" for this form to succeed.
1693
1718
  *
1694
- * @uiName Hide Default Inputs
1719
+ * @uiName Hide Default Fields
1695
1720
  */
1696
1721
  this.hideInputs = false;
1697
1722
  /**
@@ -2025,12 +2050,12 @@ const SqmReferralIframe = class {
2025
2050
  index.registerInstance(this, hostRef);
2026
2051
  this.ignored = true;
2027
2052
  /**
2028
- * Height of the iframe container
2053
+ * Define the height of the iframe with any valid CSS height value. Example: 100px, 5rem, or auto.
2029
2054
  * @uiName Iframe Height
2030
2055
  */
2031
2056
  this.iframeHeight = "100%";
2032
2057
  /**
2033
- * Width of the iframe container
2058
+ * Width of the iframe container to Define the width of the iframe with any valid CSS width value. Example: 100px, 5rem, or auto.
2034
2059
  * @uiName Iframe Width
2035
2060
  */
2036
2061
  this.iframeWidth = "100%";
@@ -9,7 +9,7 @@ const index_module = require('./index.module-93c78ac7.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  const mixins = require('./mixins-fe9d4112.js');
11
11
  const JSS = require('./JSS-8503a151.js');
12
- const useRegistrationFormState = require('./useRegistrationFormState-d0e43ca9.js');
12
+ const useRegistrationFormState = require('./useRegistrationFormState-bee054d6.js');
13
13
 
14
14
  var constants = {
15
15
  error: {
@@ -487,7 +487,7 @@ const vanillaStyle = `
487
487
  const sheet$1 = JSS.createStyleSheet(style$1);
488
488
  const styleString$1 = sheet$1.toString();
489
489
  function PortalResetPasswordView(props) {
490
- var _a, _b, _c, _d, _e, _f, _g, _h;
490
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
491
491
  const { states, callbacks } = props;
492
492
  return (index.h("div", { class: sheet$1.classes.InputContainer },
493
493
  index.h("style", { type: "text/css" },
@@ -500,16 +500,16 @@ function PortalResetPasswordView(props) {
500
500
  } }, (((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.initialData) === null || _d === void 0 ? void 0 : _d.password) ? {
501
501
  value: (_f = (_e = states.registrationFormState) === null || _e === void 0 ? void 0 : _e.initialData) === null || _f === void 0 ? void 0 : _f.password,
502
502
  }
503
- : {}), (((_g = states.validationErrors) === null || _g === void 0 ? void 0 : _g.password) ? {
503
+ : {}), (((_h = (_g = states.registrationFormState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.password) ? {
504
504
  class: sheet$1.classes.ErrorStyle,
505
- helpText: ((_h = states.validationErrors) === null || _h === void 0 ? void 0 : _h.password) || "Cannot be empty",
505
+ helpText: ((_k = (_j = states.registrationFormState) === null || _j === void 0 ? void 0 : _j.validationErrors) === null || _k === void 0 ? void 0 : _k.password) ||
506
+ "Cannot be empty",
506
507
  }
507
508
  : []), { onInput: (input) => states.enableValidation && callbacks.onInput(input) })),
508
509
  states.dynamicValidation));
509
510
  }
510
511
 
511
512
  function usePasswordField(props) {
512
- const validationState = stencilHooks_module.d(useRegistrationFormState.FORM_VALIDATION_CONTEXT);
513
513
  const registrationFormState = stencilHooks_module.d(useRegistrationFormState.REGISTRATION_FORM_STATE_CONTEXT);
514
514
  const [dynamicValidation, setDynamicValidation] = stencilHooks_module.useState("");
515
515
  function onInput(input) {
@@ -521,7 +521,6 @@ function usePasswordField(props) {
521
521
  enableValidation: !props.disableValidation,
522
522
  dynamicValidation,
523
523
  registrationFormState,
524
- validationErrors: validationState === null || validationState === void 0 ? void 0 : validationState.validationErrors,
525
524
  content: {
526
525
  fieldLabel: props.fieldLabel,
527
526
  },
@@ -574,8 +573,7 @@ function usePasswordFieldDemo(props) {
574
573
  states: {
575
574
  enableValidation: !props.disableValidation,
576
575
  dynamicValidation,
577
- validationErrors: ((_f = (_e = props === null || props === void 0 ? void 0 : props.demoData) === null || _e === void 0 ? void 0 : _e.states) === null || _f === void 0 ? void 0 : _f.validationErrors) || {},
578
- registrationFormState: {},
576
+ registrationFormState: ((_f = (_e = props === null || props === void 0 ? void 0 : props.demoData) === null || _e === void 0 ? void 0 : _e.states) === null || _f === void 0 ? void 0 : _f.registrationFormState) || {},
579
577
  content: {
580
578
  fieldLabel: props.fieldLabel,
581
579
  },
@@ -64,9 +64,9 @@ const PortalEmailVerification = class {
64
64
  index.registerInstance(this, hostRef);
65
65
  this.ignored = true;
66
66
  /**
67
- * The microsite page that participants are redirected to from the verification email.
67
+ * Redirect participants to this page from their verification email.
68
68
  *
69
- * @uiName Email Redirection Path
69
+ * @uiName Email Redirect
70
70
  * @uiWidget pageSelect
71
71
  */
72
72
  this.redirectPath = "/verifyEmail";
@@ -37,7 +37,7 @@ const PortalProtectedRoute = class {
37
37
  index.registerInstance(this, hostRef);
38
38
  this.ignored = true;
39
39
  /**
40
- * Redirect participants to this path they are not logged in.
40
+ * Redirect participants to this page they are not logged in.
41
41
  *
42
42
  * @uiName Redirect Path
43
43
  */
@@ -12,7 +12,7 @@ const mixins = require('./mixins-fe9d4112.js');
12
12
  const JSS = require('./JSS-8503a151.js');
13
13
  const sqmTextSpanView = require('./sqm-text-span-view-b318af73.js');
14
14
  const AsYouType = require('./AsYouType-6788393a.js');
15
- const useRegistrationFormState = require('./useRegistrationFormState-d0e43ca9.js');
15
+ const useRegistrationFormState = require('./useRegistrationFormState-bee054d6.js');
16
16
 
17
17
  const style = {
18
18
  Wrapper: { ...mixins.AuthWrapper, "max-width": "600px" },
@@ -69,9 +69,9 @@ function PortalRegistrationFormView(props) {
69
69
  } }, (((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.initialData) === null || _d === void 0 ? void 0 : _d.email) ? {
70
70
  value: (_f = (_e = states.registrationFormState) === null || _e === void 0 ? void 0 : _e.initialData) === null || _f === void 0 ? void 0 : _f.email,
71
71
  }
72
- : {}), (((_h = (_g = states.validationState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.email) ? {
72
+ : {}), (((_h = (_g = states.registrationFormState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.email) ? {
73
73
  class: sheet.classes.ErrorStyle,
74
- helpText: ((_k = (_j = states.validationState) === null || _j === void 0 ? void 0 : _j.validationErrors) === null || _k === void 0 ? void 0 : _k.email) ||
74
+ helpText: ((_k = (_j = states.registrationFormState) === null || _j === void 0 ? void 0 : _j.validationErrors) === null || _k === void 0 ? void 0 : _k.email) ||
75
75
  "Cannot be empty",
76
76
  }
77
77
  : [])))),
@@ -80,10 +80,9 @@ function PortalRegistrationFormView(props) {
80
80
  !states.hideInputs && states.confirmPassword && (index.h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading, required: true }, (((_m = (_l = states.registrationFormState) === null || _l === void 0 ? void 0 : _l.initialData) === null || _m === void 0 ? void 0 : _m.confirmPassword) ? {
81
81
  value: (_p = (_o = states.registrationFormState) === null || _o === void 0 ? void 0 : _o.initialData) === null || _p === void 0 ? void 0 : _p.confirmPassword,
82
82
  }
83
- : {}), (((_r = (_q = states.validationState) === null || _q === void 0 ? void 0 : _q.validationErrors) === null || _r === void 0 ? void 0 : _r.confirmPassword) ? {
83
+ : {}), (((_r = (_q = states.registrationFormState) === null || _q === void 0 ? void 0 : _q.validationErrors) === null || _r === void 0 ? void 0 : _r.confirmPassword) ? {
84
84
  class: sheet.classes.ErrorStyle,
85
- helpText: ((_t = (_s = states.validationState) === null || _s === void 0 ? void 0 : _s.validationErrors) === null || _t === void 0 ? void 0 : _t.confirmPassword) ||
86
- "Cannot be empty",
85
+ helpText: ((_t = (_s = states.registrationFormState) === null || _s === void 0 ? void 0 : _s.validationErrors) === null || _t === void 0 ? void 0 : _t.confirmPassword) || "Cannot be empty",
87
86
  }
88
87
  : [])))),
89
88
  content.terms,
@@ -109,7 +108,6 @@ function usePortalRegistrationForm(props) {
109
108
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
110
109
  const formRef = stencilHooks_module.useRef(null);
111
110
  const { registrationFormState, setRegistrationFormState } = useRegistrationFormState.useRegistrationFormState({});
112
- const { validationState, setValidationState } = useRegistrationFormState.useValidationState({});
113
111
  const [request, { loading, errors, data, formError }] = index_module.qe();
114
112
  const queryResponse = index_module.dn(RegistrationFormQuery, { key: props.formKey });
115
113
  const formLoading = loading || queryResponse.loading;
@@ -167,11 +165,22 @@ function usePortalRegistrationForm(props) {
167
165
  confirmPassword: "Passwords do not match.",
168
166
  };
169
167
  }
170
- setValidationState({ error: "", validationErrors });
171
168
  if (Object.keys(validationErrors).length) {
172
169
  // early return for validation errors
170
+ setRegistrationFormState({
171
+ ...registrationFormState,
172
+ loading: false,
173
+ error: "",
174
+ validationErrors,
175
+ });
173
176
  return;
174
177
  }
178
+ setRegistrationFormState({
179
+ ...registrationFormState,
180
+ loading: true,
181
+ error: "",
182
+ validationErrors: {},
183
+ });
175
184
  const { email, password } = formData;
176
185
  delete formData.email;
177
186
  delete formData.password;
@@ -191,6 +200,12 @@ function usePortalRegistrationForm(props) {
191
200
  if (result instanceof Error) {
192
201
  throw result;
193
202
  }
203
+ setRegistrationFormState({
204
+ ...registrationFormState,
205
+ loading: false,
206
+ error: "",
207
+ validationErrors: {},
208
+ });
194
209
  const managedIdentityResponse = (_a = result.submitForm) === null || _a === void 0 ? void 0 : _a.results.find((result) => result.formHandler.namespace === "identity");
195
210
  if (managedIdentityResponse &&
196
211
  managedIdentityResponse.result.results.length &&
@@ -200,7 +215,11 @@ function usePortalRegistrationForm(props) {
200
215
  }
201
216
  }
202
217
  catch (error) {
203
- setValidationState({ error: "Network request failed." });
218
+ setRegistrationFormState({
219
+ ...registrationFormState,
220
+ loading: false,
221
+ error: "Network request failed.",
222
+ });
204
223
  }
205
224
  };
206
225
  const inputFunction = useCallback.useCallback((e) => {
@@ -225,13 +244,12 @@ function usePortalRegistrationForm(props) {
225
244
  }
226
245
  else {
227
246
  errorMessage =
228
- formError || ((_j = (_h = (_g = (_f = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.errors) === null || _f === void 0 ? void 0 : _f.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) || ((_o = (_m = (_l = (_k = errors === null || errors === void 0 ? void 0 : errors.response) === null || _k === void 0 ? void 0 : _k.errors) === null || _l === void 0 ? void 0 : _l[0]) === null || _m === void 0 ? void 0 : _m.extensions) === null || _o === void 0 ? void 0 : _o.message) || ((_r = (_q = (_p = errors === null || errors === void 0 ? void 0 : errors.response) === null || _p === void 0 ? void 0 : _p.errors) === null || _q === void 0 ? void 0 : _q[0]) === null || _r === void 0 ? void 0 : _r.message) || (validationState === null || validationState === void 0 ? void 0 : validationState.error);
247
+ formError || ((_j = (_h = (_g = (_f = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.errors) === null || _f === void 0 ? void 0 : _f.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) || ((_o = (_m = (_l = (_k = errors === null || errors === void 0 ? void 0 : errors.response) === null || _k === void 0 ? void 0 : _k.errors) === null || _l === void 0 ? void 0 : _l[0]) === null || _m === void 0 ? void 0 : _m.extensions) === null || _o === void 0 ? void 0 : _o.message) || ((_r = (_q = (_p = errors === null || errors === void 0 ? void 0 : errors.response) === null || _p === void 0 ? void 0 : _p.errors) === null || _q === void 0 ? void 0 : _q[0]) === null || _r === void 0 ? void 0 : _r.message) || (registrationFormState === null || registrationFormState === void 0 ? void 0 : registrationFormState.error);
229
248
  }
230
249
  return {
231
250
  states: {
232
251
  loading: loading || queryResponse.loading,
233
252
  error: errorMessage,
234
- validationState,
235
253
  registrationFormState,
236
254
  confirmPassword: props.confirmPassword,
237
255
  hideInputs: props.hideInputs,
@@ -260,7 +278,7 @@ const PortalRegistrationForm = class {
260
278
  */
261
279
  this.nextPage = "/";
262
280
  /**
263
- * The page that participants are redirected to from the verification email.
281
+ * Redirect participants to this page from their verification email
264
282
  *
265
283
  * @uiName Email Verification Redirect
266
284
  * @uiWidget pageSelect
@@ -295,9 +313,9 @@ const PortalRegistrationForm = class {
295
313
  */
296
314
  this.disablePasswordValidation = false;
297
315
  /**
298
- * Hide default input fields to use custom fields.
316
+ * Hides the email and password fields. Note: If you hide default inputs, you must add additional input fields. They must have the input name attributes "email" and "password" for this form to succeed.
299
317
  *
300
- * @uiName Hide Default Inputs
318
+ * @uiName Hide Default Fields
301
319
  */
302
320
  this.hideInputs = false;
303
321
  /**