@saasquatch/mint-components 1.8.5-8 → 1.9.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.
Files changed (135) hide show
  1. package/dist/cjs/{ShadowViewAddon-89ba2ab0.js → ShadowViewAddon-1e2f6f9b.js} +17 -17
  2. package/dist/cjs/{email-registration-view-a6b6430e.js → email-registration-view-5170d9f1.js} +3 -3
  3. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +17 -17
  4. package/dist/cjs/sqm-big-stat_38.cjs.entry.js +1 -1
  5. package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -2
  6. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +1 -1
  7. package/dist/cjs/{sqm-invoice-table-view-501f8985.js → sqm-invoice-table-view-cae2a67d.js} +8 -8
  8. package/dist/cjs/sqm-password-field.cjs.entry.js +1 -1
  9. package/dist/cjs/{sqm-portal-forgot-password-view-ca5f6db9.js → sqm-portal-forgot-password-view-969c49ed.js} +1 -1
  10. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +1 -1
  11. package/dist/cjs/{sqm-portal-profile-view-d8697f23.js → sqm-portal-profile-view-851a020f.js} +4 -4
  12. package/dist/cjs/sqm-portal-profile.cjs.entry.js +1 -1
  13. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +2 -2
  14. package/dist/cjs/{sqm-portal-reset-password-view-07a13210.js → sqm-portal-reset-password-view-96f329ed.js} +1 -1
  15. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
  16. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +19 -24
  17. package/dist/cjs/sqm-referred-registration.cjs.entry.js +1 -1
  18. package/dist/cjs/sqm-stencilbook.cjs.entry.js +8 -8
  19. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +1 -1
  20. package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +1 -1
  21. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +3 -3
  22. package/dist/collection/components/sqm-empty/sqm-empty-view.js +2 -2
  23. package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +1 -1
  24. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +2 -2
  25. package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +1 -1
  26. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +1 -1
  27. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +1 -1
  28. package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +2 -2
  29. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +4 -4
  30. package/dist/collection/components/sqm-portal-register/PortalRegister.stories.js +2 -2
  31. package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +2 -2
  32. package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +2 -2
  33. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +2 -2
  34. package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password-view.js +1 -1
  35. package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +20 -25
  36. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +4 -4
  37. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +4 -4
  38. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +8 -8
  39. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +12 -12
  40. package/dist/collection/components/views/email-registration-view.js +3 -3
  41. package/dist/esm/{ShadowViewAddon-c22043d9.js → ShadowViewAddon-8fd4f148.js} +17 -17
  42. package/dist/esm/{email-registration-view-4a4202e7.js → email-registration-view-07d80492.js} +3 -3
  43. package/dist/esm/sqm-banking-info-form_16.entry.js +17 -17
  44. package/dist/esm/sqm-big-stat_38.entry.js +1 -1
  45. package/dist/esm/sqm-empty_4.entry.js +2 -2
  46. package/dist/esm/sqm-instant-access-registration.entry.js +1 -1
  47. package/dist/esm/{sqm-invoice-table-view-d00894ce.js → sqm-invoice-table-view-c905071b.js} +8 -8
  48. package/dist/esm/sqm-password-field.entry.js +1 -1
  49. package/dist/esm/{sqm-portal-forgot-password-view-a764ad67.js → sqm-portal-forgot-password-view-c2ed8fed.js} +1 -1
  50. package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
  51. package/dist/esm/{sqm-portal-profile-view-13f0ef79.js → sqm-portal-profile-view-eeff5fa0.js} +4 -4
  52. package/dist/esm/sqm-portal-profile.entry.js +1 -1
  53. package/dist/esm/sqm-portal-registration-form.entry.js +2 -2
  54. package/dist/esm/{sqm-portal-reset-password-view-d3e726a9.js → sqm-portal-reset-password-view-79a85e02.js} +1 -1
  55. package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
  56. package/dist/esm/sqm-portal-verify-email.entry.js +20 -25
  57. package/dist/esm/sqm-referred-registration.entry.js +1 -1
  58. package/dist/esm/sqm-stencilbook.entry.js +8 -8
  59. package/dist/esm-es5/ShadowViewAddon-8fd4f148.js +1 -0
  60. package/dist/esm-es5/{email-registration-view-4a4202e7.js → email-registration-view-07d80492.js} +1 -1
  61. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  62. package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
  63. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  64. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  65. package/dist/esm-es5/{sqm-invoice-table-view-d00894ce.js → sqm-invoice-table-view-c905071b.js} +1 -1
  66. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  67. package/dist/esm-es5/{sqm-portal-forgot-password-view-a764ad67.js → sqm-portal-forgot-password-view-c2ed8fed.js} +1 -1
  68. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  69. package/dist/esm-es5/sqm-portal-profile-view-eeff5fa0.js +1 -0
  70. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  71. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  72. package/dist/esm-es5/{sqm-portal-reset-password-view-d3e726a9.js → sqm-portal-reset-password-view-79a85e02.js} +1 -1
  73. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  74. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  75. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  76. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  77. package/dist/mint-components/mint-components.esm.js +1 -1
  78. package/dist/mint-components/p-0382167f.entry.js +1 -0
  79. package/dist/mint-components/{p-3539d14d.js → p-03cfceb5.js} +1 -1
  80. package/dist/mint-components/p-10036f16.js +1 -0
  81. package/dist/mint-components/{p-18ccb4ad.system.entry.js → p-11858d60.system.entry.js} +1 -1
  82. package/dist/mint-components/{p-da99e3c7.system.entry.js → p-1403b1f1.system.entry.js} +1 -1
  83. package/dist/mint-components/{p-ea6a7135.js → p-1b9e6fc6.js} +1 -1
  84. package/dist/mint-components/{p-cd45b39f.system.js → p-2020caa1.system.js} +1 -1
  85. package/dist/mint-components/p-3652236f.system.entry.js +1 -0
  86. package/dist/mint-components/p-3e096e73.entry.js +1 -0
  87. package/dist/mint-components/{p-d3cd5ec5.entry.js → p-41e2a408.entry.js} +1 -1
  88. package/dist/mint-components/p-44b12b2e.system.js +1 -1
  89. package/dist/mint-components/p-4a3a0014.entry.js +9 -0
  90. package/dist/mint-components/{p-561262cd.entry.js → p-4b3fff57.entry.js} +1 -1
  91. package/dist/mint-components/{p-f710f9d7.entry.js → p-4d964945.entry.js} +3 -3
  92. package/dist/mint-components/{p-fca0dc98.system.js → p-4e48267b.system.js} +1 -1
  93. package/dist/mint-components/{p-1a8a8795.entry.js → p-5c750437.entry.js} +1 -1
  94. package/dist/mint-components/p-5e1366ac.system.js +1 -0
  95. package/dist/mint-components/{p-4e513c81.entry.js → p-6868667d.entry.js} +1 -1
  96. package/dist/mint-components/{p-907c3344.system.entry.js → p-6a6b1966.system.entry.js} +1 -1
  97. package/dist/mint-components/p-6bf41e0d.system.js +1 -0
  98. package/dist/mint-components/{p-be96cc00.system.entry.js → p-6d95589e.system.entry.js} +1 -1
  99. package/dist/mint-components/{p-7487f23c.system.js → p-7d5e0645.system.js} +1 -1
  100. package/dist/mint-components/p-8c5a6603.js +1 -0
  101. package/dist/mint-components/{p-dd5ca1b2.entry.js → p-9891a965.entry.js} +2 -2
  102. package/dist/mint-components/p-9bdccddd.system.entry.js +1 -0
  103. package/dist/mint-components/{p-20e2037d.system.entry.js → p-a61430ad.system.entry.js} +1 -1
  104. package/dist/mint-components/p-ab174fe6.system.entry.js +1 -0
  105. package/dist/mint-components/p-abc6cb26.system.js +1 -0
  106. package/dist/mint-components/{p-fd3dacb9.system.entry.js → p-b2e34063.system.entry.js} +1 -1
  107. package/dist/mint-components/p-ccb7d32e.system.entry.js +1 -0
  108. package/dist/mint-components/{p-46ef82ed.js → p-d49e2f7a.js} +1 -1
  109. package/dist/mint-components/p-d60b15e7.js +391 -0
  110. package/dist/mint-components/p-da718618.system.entry.js +1 -0
  111. package/dist/mint-components/{p-2f2b220a.entry.js → p-e0f374e2.entry.js} +1 -1
  112. package/dist/mint-components/p-e1253472.system.entry.js +1 -0
  113. package/dist/mint-components/{p-11be93f5.entry.js → p-ebbcc7c5.entry.js} +1 -1
  114. package/dist/mint-components/{p-2a6133dc.entry.js → p-f3be6d20.entry.js} +1 -1
  115. package/docs/docs.docx +0 -0
  116. package/docs/picklesdoc--2024-01-15--11-20-00.xlsx +0 -0
  117. package/docs/picklesdoc--2024-01-15--11-24-04.xlsx +0 -0
  118. package/package.json +3 -1
  119. package/dist/esm-es5/ShadowViewAddon-c22043d9.js +0 -1
  120. package/dist/esm-es5/sqm-portal-profile-view-13f0ef79.js +0 -1
  121. package/dist/mint-components/p-05bfb3bf.js +0 -391
  122. package/dist/mint-components/p-0c04454c.system.entry.js +0 -1
  123. package/dist/mint-components/p-3a5d82b7.system.entry.js +0 -1
  124. package/dist/mint-components/p-5cd6d4ed.system.entry.js +0 -1
  125. package/dist/mint-components/p-7f6a6657.system.js +0 -1
  126. package/dist/mint-components/p-9b400b7e.system.entry.js +0 -1
  127. package/dist/mint-components/p-b153fc0c.system.js +0 -1
  128. package/dist/mint-components/p-b2b22a2a.entry.js +0 -9
  129. package/dist/mint-components/p-b5ee2781.js +0 -1
  130. package/dist/mint-components/p-b67f5743.system.js +0 -1
  131. package/dist/mint-components/p-be584089.system.entry.js +0 -1
  132. package/dist/mint-components/p-c74a8f95.entry.js +0 -1
  133. package/dist/mint-components/p-cef64e28.system.entry.js +0 -1
  134. package/dist/mint-components/p-e55a10f3.entry.js +0 -1
  135. package/dist/mint-components/p-f5f25aba.js +0 -1
@@ -489,7 +489,7 @@ function PortalResetPasswordView(props) {
489
489
  h("style", { type: "text/css" },
490
490
  vanillaStyle,
491
491
  styleString$1),
492
- h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/password", label: states.content.fieldLabel || "Password", 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), validationError: ({ value }) => {
492
+ h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "password", name: "/password", label: states.content.fieldLabel || "Password", 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), validationError: ({ value }) => {
493
493
  if (!value) {
494
494
  return "Cannot be empty";
495
495
  }
@@ -34,7 +34,7 @@ function PortalForgotPasswordView(props) {
34
34
  h("div", { part: "erroralert-text" }, props.states.error))),
35
35
  props.states.success && (h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
36
36
  h("div", { part: "successalert-text" }, content.successAlertText))),
37
- h("sl-input", { exportparts: "label: input-label", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
37
+ h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
38
38
  h("div", { class: sheet.classes.ButtonsContainer },
39
39
  h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Reset Password"),
40
40
  h("div", { class: sheet.classes.SecondaryButton }, content.secondaryButton)))));
@@ -6,7 +6,7 @@ import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './mixins-f60a614c.js';
7
7
  import './JSS-67b5cff8.js';
8
8
  import './sqm-text-span-view-8d140661.js';
9
- import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view-a764ad67.js';
9
+ import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view-c2ed8fed.js';
10
10
 
11
11
  function usePortalForgotPassword(props) {
12
12
  var _a, _b, _c, _d, _e, _f, _g;
@@ -67,16 +67,16 @@ function PortalProfileView(props) {
67
67
  error && (h("sqm-form-message", { class: sheet.classes.Error, type: "error", exportparts: "erroralert-icon" },
68
68
  h("div", { part: "erroralert-text" }, error))),
69
69
  h("div", { class: sheet.classes.NameInputContainer },
70
- h("sl-input", Object.assign({ class: sheet.classes.NameInputStyle, exportparts: "label: input-label", value: (_c = states.user) === null || _c === void 0 ? void 0 : _c.firstName, onInput: callbacks.onChange, label: text.firstnametext, disabled: states.loading }, ((errors === null || errors === void 0 ? void 0 : errors.firstName) && (errors === null || errors === void 0 ? void 0 : errors.firstName.status) !== "valid"
70
+ h("sl-input", Object.assign({ class: sheet.classes.NameInputStyle, exportparts: "label: input-label, base: input-base", value: (_c = states.user) === null || _c === void 0 ? void 0 : _c.firstName, onInput: callbacks.onChange, label: text.firstnametext, disabled: states.loading }, ((errors === null || errors === void 0 ? void 0 : errors.firstName) && (errors === null || errors === void 0 ? void 0 : errors.firstName.status) !== "valid"
71
71
  ? { class: "ErrorStyles", helpText: text.fieldEmptyText }
72
72
  : []), { id: "firstName", name: "firstName", error: (errors === null || errors === void 0 ? void 0 : errors.firstName) && (errors === null || errors === void 0 ? void 0 : errors.firstName.status) !== "valid"
73
73
  ? errors === null || errors === void 0 ? void 0 : errors.firstName.message : undefined })),
74
- h("sl-input", Object.assign({ class: sheet.classes.NameInputStyle, exportparts: "label: input-label", value: (_d = states.user) === null || _d === void 0 ? void 0 : _d.lastName, onInput: callbacks.onChange, label: text.lastnametext, disabled: states.loading, id: "lastName", name: "lastName" }, ((errors === null || errors === void 0 ? void 0 : errors.lastName) && (errors === null || errors === void 0 ? void 0 : errors.lastName.status) !== "valid"
74
+ h("sl-input", Object.assign({ class: sheet.classes.NameInputStyle, exportparts: "label: input-label, base: input-base", value: (_d = states.user) === null || _d === void 0 ? void 0 : _d.lastName, onInput: callbacks.onChange, label: text.lastnametext, disabled: states.loading, id: "lastName", name: "lastName" }, ((errors === null || errors === void 0 ? void 0 : errors.lastName) && (errors === null || errors === void 0 ? void 0 : errors.lastName.status) !== "valid"
75
75
  ? { class: "ErrorStyles", helpText: text.fieldEmptyText }
76
76
  : []), { error: (errors === null || errors === void 0 ? void 0 : errors.lastName) && (errors === null || errors === void 0 ? void 0 : errors.lastName.status) !== "valid"
77
77
  ? errors === null || errors === void 0 ? void 0 : errors.lastName.message : undefined }))),
78
- h("sl-input", { label: text.emailtext, value: (_e = states.user) === null || _e === void 0 ? void 0 : _e.email, exportparts: "label: input-label", disabled: true }),
79
- states.showCountry && (h("sl-input", { label: text.countrytext, value: country, exportparts: "label: input-label", disabled: true })),
78
+ h("sl-input", { label: text.emailtext, value: (_e = states.user) === null || _e === void 0 ? void 0 : _e.email, exportparts: "label: input-label, base: input-base", disabled: true }),
79
+ states.showCountry && (h("sl-input", { label: text.countrytext, value: country, exportparts: "label: input-label, base: input-base", disabled: true })),
80
80
  h("sl-button", { type: "primary", loading: states.loading, disabled: states.submitDisabled, onClick: (e) => {
81
81
  callbacks.onSubmit(e);
82
82
  }, submit: true }, text.submitChangeButtonText))));
@@ -6,7 +6,7 @@ import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './JSS-67b5cff8.js';
7
7
  import { g as getProps } from './utils-334c1e34.js';
8
8
  import './sqm-text-span-view-8d140661.js';
9
- import { P as PortalProfileView } from './sqm-portal-profile-view-13f0ef79.js';
9
+ import { P as PortalProfileView } from './sqm-portal-profile-view-eeff5fa0.js';
10
10
  import { i as isEmpty } from './utilities-21d8a4df.js';
11
11
 
12
12
  const GET_USER = dist.gql `
@@ -53,7 +53,7 @@ function PortalRegistrationFormView(props) {
53
53
  h("div", { part: "erroralert-text" }, states.registrationFormState.disabledMessage))) : (states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
54
54
  h("div", { part: "erroralert-text" }, props.states.error)))),
55
55
  content.formData,
56
- !states.hideInputs && (h("sl-input", Object.assign({ exportparts: "label: input-label", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading || ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.disabled), required: true, validationError: ({ value }) => {
56
+ !states.hideInputs && (h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading || ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.disabled), required: true, validationError: ({ value }) => {
57
57
  if (!value) {
58
58
  return content.requiredFieldErrorMessage;
59
59
  }
@@ -72,7 +72,7 @@ function PortalRegistrationFormView(props) {
72
72
  : [])))),
73
73
  !states.hideInputs && (h("sqm-password-field", { fieldLabel: content.passwordLabel, "disable-validation": !states.enablePasswordValidation, meetsRequirementsText: content.meetsRequirementsText, doesNotMeetRequirementsText: content.doesNotMeetRequirementsText, minErrorText: content.minErrorText, uppercaseErrorText: content.uppercaseErrorText, lowercaseErrorText: content.lowercaseErrorText, hasErrorText: content.hasErrorText })),
74
74
  content.passwordField,
75
- !states.hideInputs && states.confirmPassword && (h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading || ((_l = states.registrationFormState) === null || _l === void 0 ? void 0 : _l.disabled), required: true }, (((_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.confirmPassword) ? {
75
+ !states.hideInputs && states.confirmPassword && (h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading || ((_l = states.registrationFormState) === null || _l === void 0 ? void 0 : _l.disabled), required: true }, (((_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.confirmPassword) ? {
76
76
  value: (_q = (_p = states.registrationFormState) === null || _p === void 0 ? void 0 : _p.initialData) === null || _q === void 0 ? void 0 : _q.confirmPassword,
77
77
  }
78
78
  : {}), (((_s = (_r = states.registrationFormState) === null || _r === void 0 ? void 0 : _r.validationErrors) === null || _s === void 0 ? void 0 : _s.confirmPassword) ? {
@@ -69,7 +69,7 @@ function PortalResetPasswordView(props) {
69
69
  props.states.error && (h("sqm-form-message", { type: "error", class: sheet.classes.Banner, exportparts: "erroralert-icon" },
70
70
  h("div", { part: "erroralert-text" }, props.states.error))),
71
71
  !states.reset && (h("sqm-password-field", { fieldLabel: states.content.passwordFieldLabel, demoData: states.passwordDemoData, meetsRequirementsText: states.content.meetsRequirementsText, doesNotMeetRequirementsText: states.content.doesNotMeetRequirementsText, minErrorText: states.content.minErrorText, uppercaseErrorText: states.content.uppercaseErrorText, lowercaseErrorText: states.content.lowercaseErrorText, hasErrorText: states.content.hasErrorText })),
72
- !states.reset && states.confirmPassword && (h("sl-input", { exportparts: "label: input-label", type: "password", name: "/confirmPassword", label: states.content.confirmPasswordFieldLabel, disabled: states.loading, required: true })),
72
+ !states.reset && states.confirmPassword && (h("sl-input", { exportparts: "label: input-label, base: input-base", type: "password", name: "/confirmPassword", label: states.content.confirmPasswordFieldLabel, disabled: states.loading, required: true })),
73
73
  h("div", { class: sheet.classes.ButtonsContainer },
74
74
  h("sl-button", { class: sheet.classes.ContinueButton, submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, states.reset
75
75
  ? states.content.continueButtonText
@@ -7,7 +7,7 @@ import './mixins-f60a614c.js';
7
7
  import './JSS-67b5cff8.js';
8
8
  import { s as sanitizeUrlPath } from './utils-334c1e34.js';
9
9
  import './sqm-text-span-view-8d140661.js';
10
- import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-d3e726a9.js';
10
+ import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-79a85e02.js';
11
11
 
12
12
  function usePortalResetPassword(props) {
13
13
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
2
2
  import { f as useEffect, n as h } from './stencil-hooks.module-8032b139.js';
3
- import { Q, j as an, $ as $n, b as setUserIdentity, i as isDemo } from './index.module-ba0ed7a8.js';
3
+ import { Q, j as an, $ as $n, i as isDemo } from './index.module-ba0ed7a8.js';
4
4
  import { c as cjs } from './cjs-bdfb4486.js';
5
5
  import './mixins-f60a614c.js';
6
6
  import './JSS-67b5cff8.js';
@@ -14,19 +14,17 @@ function setSubmitted(submitted) {
14
14
  window[SUBMITTED_CONTEXT] = submitted;
15
15
  }
16
16
  function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText, verifyEmailText, verifyInvalidText, networkErrorMessage, continueText, }) {
17
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
17
+ var _a, _b, _c, _d, _e, _f, _g, _h;
18
18
  const submitted = window[SUBMITTED_CONTEXT];
19
19
  const userIdent = Q();
20
- const email = (_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.email;
21
20
  const [request, { loading, data, errors }] = an();
22
21
  const urlParams = new URLSearchParams($n.location.search);
23
22
  const oobCode = urlParams.get("oobCode");
24
- const oobEmail = urlParams.get("email");
25
23
  const nextPageOverride = urlParams.get("nextPage");
26
24
  // derived from useMutation in component boilerplate initialState
27
25
  const disableContinue = data === undefined && errors === undefined && !!oobCode;
28
26
  // if logged out, userIdent?.managedIdentity?.emailVerified will be falsey, even if verification was successful
29
- const verified = !!(((_b = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _b === void 0 ? void 0 : _b.emailVerified) || (data === null || data === void 0 ? void 0 : data.verifyManagedIdentityEmail.success));
27
+ const verified = !!(((_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) || (data === null || data === void 0 ? void 0 : data.verifyManagedIdentityEmail.success));
30
28
  const failed = () => {
31
29
  return $n.push({
32
30
  pathname: failedPage,
@@ -38,42 +36,39 @@ function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText, verifyE
38
36
  const url = sanitizeUrlPath(nextPageOverride || nextPage);
39
37
  $n.push(url.href);
40
38
  };
41
- const submit = () => {
42
- console.debug("Submit called");
43
- setSubmitted(true);
44
- request({ oobCode });
45
- };
46
- console.log({ email, oobEmail, data, userIdent });
47
- useEffect(() => {
39
+ const submit = async () => {
48
40
  var _a;
49
- // verification successful but user in context is not verified
50
- // or mismatch between logged in user and user associated with oobCode
51
- if ((data === null || data === void 0 ? void 0 : data.verifyManagedIdentityEmail.success) &&
52
- (!((_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) || email !== oobEmail)) {
53
- console.debug("MISMATCH");
41
+ setSubmitted(true);
42
+ if (oobCode) {
43
+ const result = await request({ oobCode });
44
+ if ((result instanceof Error ||
45
+ !result.verifyManagedIdentityEmail.success) &&
46
+ !((_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified)) {
47
+ // pause on error if logged out/unverified
48
+ return;
49
+ }
54
50
  setTimeout(() => {
55
51
  gotoNextPage();
56
- setUserIdentity(undefined);
57
52
  setSubmitted(false);
58
53
  }, 3000);
59
- return;
60
- // Already verified, begin redirect
61
54
  }
62
- else if (verified) {
63
- console.debug("VERIFIED");
55
+ };
56
+ useEffect(() => {
57
+ // Already verified, begin redirect
58
+ if (verified) {
64
59
  setTimeout(() => {
65
60
  gotoNextPage();
66
61
  setSubmitted(false);
67
62
  }, 3000);
68
63
  return;
69
64
  }
70
- if (userIdent && !data && !submitted && oobCode)
65
+ if (userIdent && !data && !submitted)
71
66
  submit();
72
- }, [verified, submitted, data, userIdent]);
67
+ }, [verified, submitted, data, userIdent, submitted]);
73
68
  return {
74
69
  states: {
75
70
  loading: loading || disableContinue,
76
- error: ((_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) ||
71
+ error: ((_e = (_d = (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.response) === null || _b === void 0 ? void 0 : _b.errors) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.extensions) === null || _e === void 0 ? void 0 : _e.message) || ((_h = (_g = (_f = errors === null || errors === void 0 ? void 0 : errors.response) === null || _f === void 0 ? void 0 : _f.errors) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.message) ||
77
72
  ((errors === null || errors === void 0 ? void 0 : errors.message) && networkErrorMessage),
78
73
  verified,
79
74
  },
@@ -5,7 +5,7 @@ import './jsonpointer-388a7082.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './mixins-f60a614c.js';
7
7
  import './JSS-67b5cff8.js';
8
- import { E as EmailRegistrationView } from './email-registration-view-4a4202e7.js';
8
+ import { E as EmailRegistrationView } from './email-registration-view-07d80492.js';
9
9
  import './useRegistrationFormState-0e09e2ca.js';
10
10
  import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-0d27c474.js';
11
11
 
@@ -13,20 +13,20 @@ import './sqm-text-span-view-8d140661.js';
13
13
  import { A as AssetCardView } from './sqm-asset-card-view-9d93fbdd.js';
14
14
  import { C as CloseButtonView } from './sqm-close-button-view-dc65b4e3.js';
15
15
  import './index-ffa26b43.js';
16
- import { E as EmailRegistrationView } from './email-registration-view-4a4202e7.js';
16
+ import { E as EmailRegistrationView } from './email-registration-view-07d80492.js';
17
17
  import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-10657658.js';
18
18
  import { L as LogoutCurrentUserView } from './sqm-logout-current-user-view-2c6122cd.js';
19
19
  import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-414bcb19.js';
20
20
  import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-d3484a50.js';
21
21
  import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-33b24b91.js';
22
- import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view-a764ad67.js';
23
- import { P as PortalProfileView } from './sqm-portal-profile-view-13f0ef79.js';
22
+ import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view-c2ed8fed.js';
23
+ import { P as PortalProfileView } from './sqm-portal-profile-view-eeff5fa0.js';
24
24
  import './utilities-21d8a4df.js';
25
- import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-d3e726a9.js';
25
+ import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-79a85e02.js';
26
26
  import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-283bf637.js';
27
- import { S as ShareButtonView, L as LeaderboardView, C as CopyTextView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalLoginView, f as PortalRegisterView, T as TaskCardView, g as ProgressBarView, h as PoweredByImg$1, i as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, j as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, k as RewardExchangeView, r as rewardExchangeCustomErrorMsg, l as rewardExchangeLongText, m as rewardExchangeSelected, n as chooseAmountFixed, o as chooseAmountFixedNoDescription, p as chooseAmountVariable, q as chooseAmountVariableNoDescription, s as chooseAmountVariableDisabled, t as chooseAmountVariableUnavailable, v as confirmFixed, w as confirmVariable, x as redemptionError, y as queryError, z as success, A as successVariable, F as loading, G as empty$1, J as rewardExchange, K as CardFeedView, M as CouponCodeView, O as ProgressBar$2, Q as autoColorScaleCss, U as ShadowViewAddon } from './ShadowViewAddon-c22043d9.js';
27
+ import { S as ShareButtonView, L as LeaderboardView, C as CopyTextView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalLoginView, f as PortalRegisterView, T as TaskCardView, g as ProgressBarView, h as PoweredByImg$1, i as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, j as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, k as RewardExchangeView, r as rewardExchangeCustomErrorMsg, l as rewardExchangeLongText, m as rewardExchangeSelected, n as chooseAmountFixed, o as chooseAmountFixedNoDescription, p as chooseAmountVariable, q as chooseAmountVariableNoDescription, s as chooseAmountVariableDisabled, t as chooseAmountVariableUnavailable, v as confirmFixed, w as confirmVariable, x as redemptionError, y as queryError, z as success, A as successVariable, F as loading, G as empty$1, J as rewardExchange, K as CardFeedView, M as CouponCodeView, O as ProgressBar$2, Q as autoColorScaleCss, U as ShadowViewAddon } from './ShadowViewAddon-8fd4f148.js';
28
28
  import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-ab89c6cc.js';
29
- import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-d00894ce.js';
29
+ import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-c905071b.js';
30
30
 
31
31
  /**
32
32
  * lodash (Custom Build) <https://lodash.com/>
@@ -7235,8 +7235,8 @@ const slottedProps = {
7235
7235
  requiredFieldErrorMessage: "Cannot be empty",
7236
7236
  invalidEmailErrorMessage: "Must be a valid email address",
7237
7237
  formData: (h("div", null,
7238
- h("sl-input", { style: { marginBottom: "var(--sl-spacing-x-large)" }, exportparts: "label: input-label", label: "Slotted Input", required: true }),
7239
- h("sl-input", { exportparts: "label: input-label", label: "Slotted Input 2", required: true }))),
7238
+ h("sl-input", { style: { marginBottom: "var(--sl-spacing-x-large)" }, exportparts: "label: input-label, base: input-base", label: "Slotted Input", required: true }),
7239
+ h("sl-input", { exportparts: "label: input-label, base: input-base", label: "Slotted Input 2", required: true }))),
7240
7240
  },
7241
7241
  };
7242
7242
  const Default$3 = () => h(PortalRegisterView, Object.assign({}, defaultProps$3));