@saasquatch/mint-components 1.14.6-11 → 1.14.6-13

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 (48) hide show
  1. package/dist/cjs/{ShadowViewAddon-d1dda2b0.js → ShadowViewAddon-c66bde05.js} +1 -5
  2. package/dist/cjs/sqm-big-stat_42.cjs.entry.js +15 -1
  3. package/dist/cjs/{sqm-lead-dropdown-field-view-03a3e03f.js → sqm-lead-dropdown-field-view-9d1443ea.js} +2 -4
  4. package/dist/cjs/sqm-lead-dropdown-field.cjs.entry.js +1 -1
  5. package/dist/cjs/sqm-lead-input-field.cjs.entry.js +1 -1
  6. package/dist/cjs/sqm-stencilbook.cjs.entry.js +3 -2
  7. package/dist/collection/components/sqm-lead-form/LeadForm.stories.js +1 -0
  8. package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +2 -4
  9. package/dist/collection/components/sqm-lead-form/sqm-lead-form-view.js +1 -5
  10. package/dist/collection/components/sqm-lead-form/sqm-lead-form.js +1 -0
  11. package/dist/collection/components/sqm-lead-form/sqm-lead-input-field.js +2 -2
  12. package/dist/collection/components/sqm-lead-form/useLeadForm.js +13 -0
  13. package/dist/esm/{ShadowViewAddon-81771102.js → ShadowViewAddon-d75d8384.js} +1 -5
  14. package/dist/esm/sqm-big-stat_42.entry.js +15 -1
  15. package/dist/esm/{sqm-lead-dropdown-field-view-4c85fe20.js → sqm-lead-dropdown-field-view-145e94e8.js} +2 -4
  16. package/dist/esm/sqm-lead-dropdown-field.entry.js +1 -1
  17. package/dist/esm/sqm-lead-input-field.entry.js +1 -1
  18. package/dist/esm/sqm-stencilbook.entry.js +3 -2
  19. package/dist/esm-es5/{ShadowViewAddon-81771102.js → ShadowViewAddon-d75d8384.js} +1 -1
  20. package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
  21. package/dist/esm-es5/sqm-lead-dropdown-field-view-145e94e8.js +1 -0
  22. package/dist/esm-es5/sqm-lead-dropdown-field.entry.js +1 -1
  23. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  24. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  25. package/dist/mint-components/mint-components.esm.js +1 -1
  26. package/dist/mint-components/{p-4056c0ea.system.entry.js → p-1471676f.system.entry.js} +1 -1
  27. package/dist/mint-components/p-37996351.system.js +1 -1
  28. package/dist/mint-components/p-618fcf78.js +1 -0
  29. package/dist/mint-components/{p-460974bf.js → p-6200bc0d.js} +3 -3
  30. package/dist/mint-components/{p-ba585a4b.entry.js → p-80449940.entry.js} +2 -2
  31. package/dist/mint-components/{p-c5a55554.entry.js → p-82cb222a.entry.js} +1 -1
  32. package/dist/mint-components/p-94f66806.system.js +1 -0
  33. package/dist/mint-components/{p-de5356d9.system.entry.js → p-9d89cc58.system.entry.js} +1 -1
  34. package/dist/mint-components/p-a370bcf2.system.entry.js +1 -0
  35. package/dist/mint-components/{p-fa303868.entry.js → p-cc15e6c0.entry.js} +2 -2
  36. package/dist/mint-components/p-e31c2bef.entry.js +1 -0
  37. package/dist/mint-components/{p-ad128614.system.js → p-e9a550bf.system.js} +1 -1
  38. package/dist/mint-components/{p-59970cb1.system.entry.js → p-fdbd9629.system.entry.js} +1 -1
  39. package/dist/types/components/sqm-lead-form/sqm-lead-form-view.d.ts +1 -0
  40. package/dist/types/components/sqm-lead-form/useLeadForm.d.ts +1 -0
  41. package/docs/docs.docx +0 -0
  42. package/docs/raisins.json +1 -1
  43. package/package.json +1 -1
  44. package/dist/esm-es5/sqm-lead-dropdown-field-view-4c85fe20.js +0 -1
  45. package/dist/mint-components/p-15f1ff1d.system.js +0 -1
  46. package/dist/mint-components/p-4d5b02af.js +0 -1
  47. package/dist/mint-components/p-6b093d8c.entry.js +0 -1
  48. package/dist/mint-components/p-8d86d7e6.system.entry.js +0 -1
@@ -4114,11 +4114,7 @@ function LeadFormView(props) {
4114
4114
  index.h("b", null, content.submitSuccessHeader),
4115
4115
  index.h("br", null),
4116
4116
  index.h("div", { part: "successalert-text" }, content.submitSuccessDescription)),
4117
- index.h("sl-button", {
4118
- // AL: TODO add button to allow user to submit another form
4119
- class: sheet$d.classes.ContinueButton,
4120
- // onClick={callbacks.submitAnotherForm}
4121
- loading: states.loading, exportparts: "base: primarybutton-base", type: "default" }, content.resubmitFormLabel)));
4117
+ index.h("sl-button", { class: sheet$d.classes.ContinueButton, onClick: callbacks.resetForm, loading: states.loading, exportparts: "base: primarybutton-base", type: "default" }, content.resubmitFormLabel)));
4122
4118
  }
4123
4119
  return (index.h("div", { class: sheet$d.classes.Wrapper, part: "sqm-base" },
4124
4120
  index.h("style", { type: "text/css" },
@@ -24,7 +24,7 @@ const sqmPortalLoginView = require('./sqm-portal-login-view-761a4d8e.js');
24
24
  const usePortalLogin = require('./usePortalLogin-63d896d1.js');
25
25
  const AsYouType = require('./AsYouType-6788393a.js');
26
26
  const utilities = require('./utilities-78f5e169.js');
27
- const ShadowViewAddon = require('./ShadowViewAddon-d1dda2b0.js');
27
+ const ShadowViewAddon = require('./ShadowViewAddon-c66bde05.js');
28
28
  require('./sqm-portal-container-view-4f15143a.js');
29
29
  const usePayoutStatus = require('./usePayoutStatus-feeac99b.js');
30
30
 
@@ -1396,6 +1396,18 @@ function useLeadForm(props) {
1396
1396
  const asYouType = new AsYouType.AsYouType("US");
1397
1397
  e.target.value = asYouType.input(e.target.value);
1398
1398
  }, []);
1399
+ function resetForm() {
1400
+ var _a, _b;
1401
+ setLeadFormState({
1402
+ loading: false,
1403
+ error: "",
1404
+ validationErrors: {},
1405
+ });
1406
+ (_b = (_a = formRef.current) === null || _a === void 0 ? void 0 : _a.getFormControls()) === null || _b === void 0 ? void 0 : _b.forEach((c) => {
1407
+ c.value = "";
1408
+ });
1409
+ setSuccess(false);
1410
+ }
1399
1411
  let errorMessage = "";
1400
1412
  if ((_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a["error"]) {
1401
1413
  errorMessage = props.networkErrorMessage;
@@ -1419,6 +1431,7 @@ function useLeadForm(props) {
1419
1431
  callbacks: {
1420
1432
  submit,
1421
1433
  inputFunction,
1434
+ resetForm,
1422
1435
  },
1423
1436
  refs: {
1424
1437
  formRef,
@@ -1532,6 +1545,7 @@ function useRegisterDemo(props) {
1532
1545
  console.log("submit");
1533
1546
  },
1534
1547
  inputFunction: () => { },
1548
+ resetForm: () => { },
1535
1549
  },
1536
1550
  refs: {
1537
1551
  formRef: {},
@@ -35,7 +35,7 @@ JSS.jss.setup(JSS.create());
35
35
  const sheet = JSS.jss.createStyleSheet(style);
36
36
  const styleString = sheet.toString();
37
37
  function LeadDropdownFieldView(props) {
38
- var _a, _b, _c, _d, _e, _f, _g;
38
+ var _a, _b, _c, _d;
39
39
  const { states, content } = props;
40
40
  const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.leadFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
41
41
  const getRequiredFieldErrorMessage = ({ dropdownLabel, }) => global.intl.formatMessage({
@@ -54,10 +54,8 @@ function LeadDropdownFieldView(props) {
54
54
  dropdownLabel: content.dropdownLabel,
55
55
  });
56
56
  }
57
- } }, (((_e = (_d = states.leadFormState) === null || _d === void 0 ? void 0 : _d.validationErrors) === null || _e === void 0 ? void 0 : _e.firstName) ? {
57
+ } }, (((_d = states.leadFormState) === null || _d === void 0 ? void 0 : _d.validationErrors) ? {
58
58
  class: sheet.classes.ErrorStyle,
59
- helpText: ((_g = (_f = states.leadFormState) === null || _f === void 0 ? void 0 : _f.validationErrors) === null || _g === void 0 ? void 0 : _g.firstName) ||
60
- content.requiredFieldErrorMessage,
61
59
  }
62
60
  : [])), content.selectOptions),
63
61
  (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet.classes.ErrorMessageStyle }, global.intl.formatMessage({
@@ -10,7 +10,7 @@ const cjs = require('./cjs-1066ec21.js');
10
10
  const utils = require('./utils-6847bc06.js');
11
11
  require('./JSS-8503a151.js');
12
12
  const useLeadFormState = require('./useLeadFormState-c83d2034.js');
13
- const sqmLeadDropdownFieldView = require('./sqm-lead-dropdown-field-view-03a3e03f.js');
13
+ const sqmLeadDropdownFieldView = require('./sqm-lead-dropdown-field-view-9d1443ea.js');
14
14
 
15
15
  function useLeadDropdownField() {
16
16
  const leadFormState = stencilHooks_module.d(useLeadFormState.LEAD_FORM_STATE_CONTEXT);
@@ -39,7 +39,7 @@ const LeadInputField = class {
39
39
  * @uiName Required field message
40
40
  * @uiWidget textArea
41
41
  */
42
- this.requiredFieldErrorMessage = "Please enter a {fieldName}";
42
+ this.requiredFieldErrorMessage = "Please enter a {fieldLabel}";
43
43
  /**
44
44
  * @uiName Optional
45
45
  * @default
@@ -20,7 +20,7 @@ const sqmAssetCardView = require('./sqm-asset-card-view-21ddf04f.js');
20
20
  const sqmCloseButtonView = require('./sqm-close-button-view-ea3fa23b.js');
21
21
  require('./index-8c6255f5.js');
22
22
  const emailRegistrationView = require('./email-registration-view-55b378dc.js');
23
- const sqmLeadDropdownFieldView = require('./sqm-lead-dropdown-field-view-03a3e03f.js');
23
+ const sqmLeadDropdownFieldView = require('./sqm-lead-dropdown-field-view-9d1443ea.js');
24
24
  const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-d39a55d8.js');
25
25
  const sqmLogoutCurrentUserView = require('./sqm-logout-current-user-view-11d57c12.js');
26
26
  const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-17111896.js');
@@ -36,7 +36,7 @@ const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-fe6
36
36
  const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-7b678f34.js');
37
37
  require('./ErrorView-b2fcf954.js');
38
38
  const sqmQrCodeView = require('./sqm-qr-code-view-15dfc0b6.js');
39
- const ShadowViewAddon = require('./ShadowViewAddon-d1dda2b0.js');
39
+ const ShadowViewAddon = require('./ShadowViewAddon-c66bde05.js');
40
40
  const sqmPortalContainerView = require('./sqm-portal-container-view-4f15143a.js');
41
41
  const sqmInvoiceTableView = require('./sqm-invoice-table-view-0f7fa309.js');
42
42
  const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-6344cd93.js');
@@ -15847,6 +15847,7 @@ const defaultProps$t = {
15847
15847
  callbacks: {
15848
15848
  submit: () => console.log("Submit!"),
15849
15849
  inputFunction: () => { },
15850
+ resetForm: () => { },
15850
15851
  },
15851
15852
  refs: {
15852
15853
  formRef: {},
@@ -14,6 +14,7 @@ const defaultProps = {
14
14
  callbacks: {
15
15
  submit: () => console.log("Submit!"),
16
16
  inputFunction: () => { },
17
+ resetForm: () => { },
17
18
  },
18
19
  refs: {
19
20
  formRef: {},
@@ -33,7 +33,7 @@ jss.setup(preset());
33
33
  const sheet = jss.createStyleSheet(style);
34
34
  const styleString = sheet.toString();
35
35
  export function LeadDropdownFieldView(props) {
36
- var _a, _b, _c, _d, _e, _f, _g;
36
+ var _a, _b, _c, _d;
37
37
  const { states, content } = props;
38
38
  const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.leadFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
39
39
  const getRequiredFieldErrorMessage = ({ dropdownLabel, }) => intl.formatMessage({
@@ -52,10 +52,8 @@ export function LeadDropdownFieldView(props) {
52
52
  dropdownLabel: content.dropdownLabel,
53
53
  });
54
54
  }
55
- } }, (((_e = (_d = states.leadFormState) === null || _d === void 0 ? void 0 : _d.validationErrors) === null || _e === void 0 ? void 0 : _e.firstName) ? {
55
+ } }, (((_d = states.leadFormState) === null || _d === void 0 ? void 0 : _d.validationErrors) ? {
56
56
  class: sheet.classes.ErrorStyle,
57
- helpText: ((_g = (_f = states.leadFormState) === null || _f === void 0 ? void 0 : _f.validationErrors) === null || _g === void 0 ? void 0 : _g.firstName) ||
58
- content.requiredFieldErrorMessage,
59
57
  }
60
58
  : [])), content.selectOptions),
61
59
  (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (h("p", { class: sheet.classes.ErrorMessageStyle }, intl.formatMessage({
@@ -71,11 +71,7 @@ export function LeadFormView(props) {
71
71
  h("b", null, content.submitSuccessHeader),
72
72
  h("br", null),
73
73
  h("div", { part: "successalert-text" }, content.submitSuccessDescription)),
74
- h("sl-button", {
75
- // AL: TODO add button to allow user to submit another form
76
- class: sheet.classes.ContinueButton,
77
- // onClick={callbacks.submitAnotherForm}
78
- loading: states.loading, exportparts: "base: primarybutton-base", type: "default" }, content.resubmitFormLabel)));
74
+ h("sl-button", { class: sheet.classes.ContinueButton, onClick: callbacks.resetForm, loading: states.loading, exportparts: "base: primarybutton-base", type: "default" }, content.resubmitFormLabel)));
79
75
  }
80
76
  return (h("div", { class: sheet.classes.Wrapper, part: "sqm-base" },
81
77
  h("style", { type: "text/css" },
@@ -456,6 +456,7 @@ function useRegisterDemo(props) {
456
456
  console.log("submit");
457
457
  },
458
458
  inputFunction: () => { },
459
+ resetForm: () => { },
459
460
  },
460
461
  refs: {
461
462
  formRef: {},
@@ -28,7 +28,7 @@ export class LeadInputField {
28
28
  * @uiName Required field message
29
29
  * @uiWidget textArea
30
30
  */
31
- this.requiredFieldErrorMessage = "Please enter a {fieldName}";
31
+ this.requiredFieldErrorMessage = "Please enter a {fieldLabel}";
32
32
  /**
33
33
  * @uiName Optional
34
34
  * @default
@@ -152,7 +152,7 @@ export class LeadInputField {
152
152
  },
153
153
  "attribute": "required-field-error-message",
154
154
  "reflect": false,
155
- "defaultValue": "\"Please enter a {fieldName}\""
155
+ "defaultValue": "\"Please enter a {fieldLabel}\""
156
156
  },
157
157
  "fieldOptional": {
158
158
  "type": "boolean",
@@ -107,6 +107,18 @@ export function useLeadForm(props) {
107
107
  const asYouType = new AsYouType("US");
108
108
  e.target.value = asYouType.input(e.target.value);
109
109
  }, []);
110
+ function resetForm() {
111
+ var _a, _b;
112
+ setLeadFormState({
113
+ loading: false,
114
+ error: "",
115
+ validationErrors: {},
116
+ });
117
+ (_b = (_a = formRef.current) === null || _a === void 0 ? void 0 : _a.getFormControls()) === null || _b === void 0 ? void 0 : _b.forEach((c) => {
118
+ c.value = "";
119
+ });
120
+ setSuccess(false);
121
+ }
110
122
  let errorMessage = "";
111
123
  if ((_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a["error"]) {
112
124
  errorMessage = props.networkErrorMessage;
@@ -130,6 +142,7 @@ export function useLeadForm(props) {
130
142
  callbacks: {
131
143
  submit,
132
144
  inputFunction,
145
+ resetForm,
133
146
  },
134
147
  refs: {
135
148
  formRef,
@@ -4112,11 +4112,7 @@ function LeadFormView(props) {
4112
4112
  h("b", null, content.submitSuccessHeader),
4113
4113
  h("br", null),
4114
4114
  h("div", { part: "successalert-text" }, content.submitSuccessDescription)),
4115
- h("sl-button", {
4116
- // AL: TODO add button to allow user to submit another form
4117
- class: sheet$d.classes.ContinueButton,
4118
- // onClick={callbacks.submitAnotherForm}
4119
- loading: states.loading, exportparts: "base: primarybutton-base", type: "default" }, content.resubmitFormLabel)));
4115
+ h("sl-button", { class: sheet$d.classes.ContinueButton, onClick: callbacks.resetForm, loading: states.loading, exportparts: "base: primarybutton-base", type: "default" }, content.resubmitFormLabel)));
4120
4116
  }
4121
4117
  return (h("div", { class: sheet$d.classes.Wrapper, part: "sqm-base" },
4122
4118
  h("style", { type: "text/css" },
@@ -20,7 +20,7 @@ import { P as PortalLoginView } from './sqm-portal-login-view-7e49609a.js';
20
20
  import { u as usePortalLogin } from './usePortalLogin-ef647a50.js';
21
21
  import { A as AsYouType } from './AsYouType-46f67d0d.js';
22
22
  import { i as isEmpty } from './utilities-5b0ca040.js';
23
- import { b as useDemoBigStat, V as useBigStat, B as BigStatView, Q as autoColorScaleCss, J as CardFeedView, i as CheckboxFieldView, K as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, O as LeadFormView, W as withShadowView, L as LeaderboardView, N as NameFieldsView, C as ChangeMarktingView, d as PortalChangePasswordView, h as PortalFooterView, P as PortalFrameView, e as PortalRegisterView, R as ReferralIframeView, X as demoRewardExchange, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-81771102.js';
23
+ import { b as useDemoBigStat, V as useBigStat, B as BigStatView, Q as autoColorScaleCss, J as CardFeedView, i as CheckboxFieldView, K as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, O as LeadFormView, W as withShadowView, L as LeaderboardView, N as NameFieldsView, C as ChangeMarktingView, d as PortalChangePasswordView, h as PortalFooterView, P as PortalFrameView, e as PortalRegisterView, R as ReferralIframeView, X as demoRewardExchange, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-d75d8384.js';
24
24
  import './sqm-portal-container-view-1683ae32.js';
25
25
  import { u as usePayoutStatus } from './usePayoutStatus-fed17fc9.js';
26
26
 
@@ -1392,6 +1392,18 @@ function useLeadForm(props) {
1392
1392
  const asYouType = new AsYouType("US");
1393
1393
  e.target.value = asYouType.input(e.target.value);
1394
1394
  }, []);
1395
+ function resetForm() {
1396
+ var _a, _b;
1397
+ setLeadFormState({
1398
+ loading: false,
1399
+ error: "",
1400
+ validationErrors: {},
1401
+ });
1402
+ (_b = (_a = formRef.current) === null || _a === void 0 ? void 0 : _a.getFormControls()) === null || _b === void 0 ? void 0 : _b.forEach((c) => {
1403
+ c.value = "";
1404
+ });
1405
+ setSuccess(false);
1406
+ }
1395
1407
  let errorMessage = "";
1396
1408
  if ((_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a["error"]) {
1397
1409
  errorMessage = props.networkErrorMessage;
@@ -1415,6 +1427,7 @@ function useLeadForm(props) {
1415
1427
  callbacks: {
1416
1428
  submit,
1417
1429
  inputFunction,
1430
+ resetForm,
1418
1431
  },
1419
1432
  refs: {
1420
1433
  formRef,
@@ -1528,6 +1541,7 @@ function useRegisterDemo(props) {
1528
1541
  console.log("submit");
1529
1542
  },
1530
1543
  inputFunction: () => { },
1544
+ resetForm: () => { },
1531
1545
  },
1532
1546
  refs: {
1533
1547
  formRef: {},
@@ -33,7 +33,7 @@ jss.setup(create());
33
33
  const sheet = jss.createStyleSheet(style);
34
34
  const styleString = sheet.toString();
35
35
  function LeadDropdownFieldView(props) {
36
- var _a, _b, _c, _d, _e, _f, _g;
36
+ var _a, _b, _c, _d;
37
37
  const { states, content } = props;
38
38
  const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.leadFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
39
39
  const getRequiredFieldErrorMessage = ({ dropdownLabel, }) => intl.formatMessage({
@@ -52,10 +52,8 @@ function LeadDropdownFieldView(props) {
52
52
  dropdownLabel: content.dropdownLabel,
53
53
  });
54
54
  }
55
- } }, (((_e = (_d = states.leadFormState) === null || _d === void 0 ? void 0 : _d.validationErrors) === null || _e === void 0 ? void 0 : _e.firstName) ? {
55
+ } }, (((_d = states.leadFormState) === null || _d === void 0 ? void 0 : _d.validationErrors) ? {
56
56
  class: sheet.classes.ErrorStyle,
57
- helpText: ((_g = (_f = states.leadFormState) === null || _f === void 0 ? void 0 : _f.validationErrors) === null || _g === void 0 ? void 0 : _g.firstName) ||
58
- content.requiredFieldErrorMessage,
59
57
  }
60
58
  : [])), content.selectOptions),
61
59
  (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (h("p", { class: sheet.classes.ErrorMessageStyle }, intl.formatMessage({
@@ -6,7 +6,7 @@ import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import { a as getMissingProps, g as getProps } from './utils-334c1e34.js';
7
7
  import './JSS-67b5cff8.js';
8
8
  import { L as LEAD_FORM_STATE_CONTEXT, R as RequiredPropsError } from './useLeadFormState-9016d812.js';
9
- import { L as LeadDropdownFieldView } from './sqm-lead-dropdown-field-view-4c85fe20.js';
9
+ import { L as LeadDropdownFieldView } from './sqm-lead-dropdown-field-view-145e94e8.js';
10
10
 
11
11
  function useLeadDropdownField() {
12
12
  const leadFormState = d(LEAD_FORM_STATE_CONTEXT);
@@ -35,7 +35,7 @@ const LeadInputField = class {
35
35
  * @uiName Required field message
36
36
  * @uiWidget textArea
37
37
  */
38
- this.requiredFieldErrorMessage = "Please enter a {fieldName}";
38
+ this.requiredFieldErrorMessage = "Please enter a {fieldLabel}";
39
39
  /**
40
40
  * @uiName Optional
41
41
  * @default
@@ -16,7 +16,7 @@ import { A as AssetCardView } from './sqm-asset-card-view-fe5db3c0.js';
16
16
  import { C as CloseButtonView } from './sqm-close-button-view-f9819751.js';
17
17
  import './index-ffa26b43.js';
18
18
  import { E as EmailRegistrationView } from './email-registration-view-a7818cf2.js';
19
- import { L as LeadDropdownFieldView } from './sqm-lead-dropdown-field-view-4c85fe20.js';
19
+ import { L as LeadDropdownFieldView } from './sqm-lead-dropdown-field-view-145e94e8.js';
20
20
  import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-753c8d4a.js';
21
21
  import { L as LogoutCurrentUserView } from './sqm-logout-current-user-view-8ef8180f.js';
22
22
  import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-9d802b78.js';
@@ -32,7 +32,7 @@ import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-5
32
32
  import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-b12cb894.js';
33
33
  import './ErrorView-48e2b969.js';
34
34
  import { Q as QrCodeView } from './sqm-qr-code-view-f1d0763b.js';
35
- import { S as ShareButtonView, L as LeaderboardView, 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 PortalRegisterView, C as ChangeMarktingView, T as TaskCardView, f as ProgressBarView, g as PoweredByImg$1, h as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, i as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as LeadFormView, Q as autoColorScaleCss, U as ShadowViewAddon } from './ShadowViewAddon-81771102.js';
35
+ import { S as ShareButtonView, L as LeaderboardView, 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 PortalRegisterView, C as ChangeMarktingView, T as TaskCardView, f as ProgressBarView, g as PoweredByImg$1, h as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, i as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as LeadFormView, Q as autoColorScaleCss, U as ShadowViewAddon } from './ShadowViewAddon-d75d8384.js';
36
36
  import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-1683ae32.js';
37
37
  import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-7f376a75.js';
38
38
  import { L as LeadInputFieldView } from './sqm-lead-input-field-view-f1dd4b77.js';
@@ -15843,6 +15843,7 @@ const defaultProps$t = {
15843
15843
  callbacks: {
15844
15844
  submit: () => console.log("Submit!"),
15845
15845
  inputFunction: () => { },
15846
+ resetForm: () => { },
15846
15847
  },
15847
15848
  refs: {
15848
15849
  formRef: {},