@saasquatch/mint-components 1.14.6-15 → 1.14.6-17
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.
- package/dist/cjs/{ShadowViewAddon-1266b75b.js → ShadowViewAddon-344e1c0d.js} +2 -2
- package/dist/cjs/sqm-big-stat_42.cjs.entry.js +3 -1
- package/dist/cjs/{sqm-lead-dropdown-field-view-9d1443ea.js → sqm-lead-dropdown-field-view-8117cd38.js} +2 -1
- package/dist/cjs/sqm-lead-dropdown-field.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-lead-input-field-view-6344cd93.js → sqm-lead-input-field-view-5a0b1aed.js} +3 -3
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +3 -3
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +2 -1
- package/dist/collection/components/sqm-lead-form/sqm-lead-form-view.js +2 -2
- package/dist/collection/components/sqm-lead-form/sqm-lead-form.js +2 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field-view.js +3 -3
- package/dist/esm/{ShadowViewAddon-ec5d2f0a.js → ShadowViewAddon-a14f9e24.js} +2 -2
- package/dist/esm/sqm-big-stat_42.entry.js +3 -1
- package/dist/esm/{sqm-lead-dropdown-field-view-145e94e8.js → sqm-lead-dropdown-field-view-92442a2f.js} +2 -1
- package/dist/esm/sqm-lead-dropdown-field.entry.js +1 -1
- package/dist/esm/{sqm-lead-input-field-view-f1dd4b77.js → sqm-lead-input-field-view-9b23f22c.js} +3 -3
- package/dist/esm/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +3 -3
- package/dist/esm-es5/{ShadowViewAddon-ec5d2f0a.js → ShadowViewAddon-a14f9e24.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
- package/dist/esm-es5/sqm-lead-dropdown-field-view-92442a2f.js +1 -0
- package/dist/esm-es5/sqm-lead-dropdown-field.entry.js +1 -1
- package/dist/esm-es5/sqm-lead-input-field-view-9b23f22c.js +1 -0
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-00590b7a.system.js +1 -0
- package/dist/mint-components/{p-8fd72009.entry.js → p-03681bf2.entry.js} +2 -2
- package/dist/mint-components/{p-67032723.system.js → p-05516d33.system.js} +1 -1
- package/dist/mint-components/{p-c03de0eb.entry.js → p-14602dd0.entry.js} +1 -1
- package/dist/mint-components/{p-e31c2bef.entry.js → p-2192104c.entry.js} +1 -1
- package/dist/mint-components/p-34c5b141.system.entry.js +1 -0
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/{p-1471676f.system.entry.js → p-3e327cc8.system.entry.js} +1 -1
- package/dist/mint-components/{p-9578fec0.js → p-5afa5a28.js} +1 -1
- package/dist/mint-components/p-65258b28.system.js +1 -0
- package/dist/mint-components/{p-9d89cc58.system.entry.js → p-9e39c0bf.system.entry.js} +1 -1
- package/dist/mint-components/p-e021bda2.js +1 -0
- package/dist/mint-components/{p-26da31c6.js → p-f6717dd7.js} +1 -1
- package/dist/mint-components/{p-82cb222a.entry.js → p-fd52d2d4.entry.js} +1 -1
- package/dist/mint-components/{p-b63f31f4.system.entry.js → p-feee4ff6.system.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/esm-es5/sqm-lead-dropdown-field-view-145e94e8.js +0 -1
- package/dist/esm-es5/sqm-lead-input-field-view-f1dd4b77.js +0 -1
- package/dist/mint-components/p-34e8ca38.system.entry.js +0 -1
- package/dist/mint-components/p-618fcf78.js +0 -1
- package/dist/mint-components/p-87384d9e.system.js +0 -1
- package/dist/mint-components/p-94f66806.system.js +0 -1
|
@@ -4132,8 +4132,8 @@ function LeadFormView(props) {
|
|
|
4132
4132
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, content.supportLink)),
|
|
4133
4133
|
}))),
|
|
4134
4134
|
index.h("div", { class: sheet$d.classes.NameFieldWrapper },
|
|
4135
|
-
index.h("sqm-lead-input-field", { style: { width: "50%" }, "field-label": "First Name", "field-name": "firstName" }),
|
|
4136
|
-
index.h("sqm-lead-input-field", { style: { width: "50%" }, "field-label": "Last Name", "field-name": "lastName" })),
|
|
4135
|
+
index.h("sqm-lead-input-field", { style: { width: "50%" }, "field-label": content.firstNameLabel || "First Name", "field-name": "firstName" }),
|
|
4136
|
+
index.h("sqm-lead-input-field", { style: { width: "50%" }, "field-label": content.lastNameLabel || "Last Name", "field-name": "lastName" })),
|
|
4137
4137
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true, validationError: ({ value }) => {
|
|
4138
4138
|
if (!value) {
|
|
4139
4139
|
return getRequiredFieldErrorMessage({
|
|
@@ -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-
|
|
27
|
+
const ShadowViewAddon = require('./ShadowViewAddon-344e1c0d.js');
|
|
28
28
|
require('./sqm-portal-container-view-4f15143a.js');
|
|
29
29
|
const usePayoutStatus = require('./usePayoutStatus-feeac99b.js');
|
|
30
30
|
|
|
@@ -1529,6 +1529,8 @@ const LeadForm = class {
|
|
|
1529
1529
|
submitErrorDescription: this.submitErrorDescription,
|
|
1530
1530
|
invalidEmailErrorMessage: this.invalidEmailErrorMessage,
|
|
1531
1531
|
requiredFieldErrorMessage: this.requiredFieldErrorMessage,
|
|
1532
|
+
firstNameLabel: this.firstNameLabel,
|
|
1533
|
+
lastNameLabel: this.lastNameLabel,
|
|
1532
1534
|
};
|
|
1533
1535
|
return (index.h(ShadowViewAddon.LeadFormView, { states: states, callbacks: callbacks, content: content, refs: refs }));
|
|
1534
1536
|
}
|
|
@@ -38,8 +38,9 @@ function LeadDropdownFieldView(props) {
|
|
|
38
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
|
+
console.log({ validationErrors });
|
|
41
42
|
const getRequiredFieldErrorMessage = ({ dropdownLabel, }) => global.intl.formatMessage({
|
|
42
|
-
id:
|
|
43
|
+
id: `requiredFieldErrorMessage-${dropdownLabel}`,
|
|
43
44
|
defaultMessage: content.requiredFieldErrorMessage,
|
|
44
45
|
}, {
|
|
45
46
|
dropdownLabel,
|
|
@@ -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-
|
|
13
|
+
const sqmLeadDropdownFieldView = require('./sqm-lead-dropdown-field-view-8117cd38.js');
|
|
14
14
|
|
|
15
15
|
function useLeadDropdownField() {
|
|
16
16
|
const leadFormState = stencilHooks_module.d(useLeadFormState.LEAD_FORM_STATE_CONTEXT);
|
package/dist/cjs/{sqm-lead-input-field-view-6344cd93.js → sqm-lead-input-field-view-5a0b1aed.js}
RENAMED
|
@@ -25,7 +25,7 @@ function LeadInputFieldView(props) {
|
|
|
25
25
|
var _a, _b, _c, _d, _e, _f;
|
|
26
26
|
const { states, content } = props;
|
|
27
27
|
const getRequiredFieldErrorMessage = ({ fieldLabel, }) => global.intl.formatMessage({
|
|
28
|
-
id:
|
|
28
|
+
id: `requiredFieldErrorMessage-${fieldLabel}`,
|
|
29
29
|
defaultMessage: content.requiredFieldErrorMessage,
|
|
30
30
|
}, {
|
|
31
31
|
fieldLabel,
|
|
@@ -40,9 +40,9 @@ function LeadInputFieldView(props) {
|
|
|
40
40
|
fieldLabel: content.fieldLabel,
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
} }, (((_d = (_c = states.leadFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.
|
|
43
|
+
} }, (((_d = (_c = states.leadFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d[content.fieldName]) ? {
|
|
44
44
|
class: sheet.classes.ErrorStyle,
|
|
45
|
-
helpText: ((_f = (_e = states.leadFormState) === null || _e === void 0 ? void 0 : _e.validationErrors) === null || _f === void 0 ? void 0 : _f.
|
|
45
|
+
helpText: ((_f = (_e = states.leadFormState) === null || _e === void 0 ? void 0 : _e.validationErrors) === null || _f === void 0 ? void 0 : _f[content.fieldName]) ||
|
|
46
46
|
content.requiredFieldErrorMessage,
|
|
47
47
|
}
|
|
48
48
|
: [])))));
|
|
@@ -11,7 +11,7 @@ const utils = require('./utils-6847bc06.js');
|
|
|
11
11
|
require('./JSS-8503a151.js');
|
|
12
12
|
require('./mixins-f7e0377a.js');
|
|
13
13
|
const useLeadFormState = require('./useLeadFormState-c83d2034.js');
|
|
14
|
-
const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-
|
|
14
|
+
const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-5a0b1aed.js');
|
|
15
15
|
|
|
16
16
|
function useLeadInputField() {
|
|
17
17
|
const leadFormState = stencilHooks_module.d(useLeadFormState.LEAD_FORM_STATE_CONTEXT);
|
|
@@ -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-
|
|
23
|
+
const sqmLeadDropdownFieldView = require('./sqm-lead-dropdown-field-view-8117cd38.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,10 +36,10 @@ 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-
|
|
39
|
+
const ShadowViewAddon = require('./ShadowViewAddon-344e1c0d.js');
|
|
40
40
|
const sqmPortalContainerView = require('./sqm-portal-container-view-4f15143a.js');
|
|
41
41
|
const sqmInvoiceTableView = require('./sqm-invoice-table-view-0f7fa309.js');
|
|
42
|
-
const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-
|
|
42
|
+
const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-5a0b1aed.js');
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -36,8 +36,9 @@ export function LeadDropdownFieldView(props) {
|
|
|
36
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
|
+
console.log({ validationErrors });
|
|
39
40
|
const getRequiredFieldErrorMessage = ({ dropdownLabel, }) => intl.formatMessage({
|
|
40
|
-
id:
|
|
41
|
+
id: `requiredFieldErrorMessage-${dropdownLabel}`,
|
|
41
42
|
defaultMessage: content.requiredFieldErrorMessage,
|
|
42
43
|
}, {
|
|
43
44
|
dropdownLabel,
|
|
@@ -89,8 +89,8 @@ export function LeadFormView(props) {
|
|
|
89
89
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, content.supportLink)),
|
|
90
90
|
}))),
|
|
91
91
|
h("div", { class: sheet.classes.NameFieldWrapper },
|
|
92
|
-
h("sqm-lead-input-field", { style: { width: "50%" }, "field-label": "First Name", "field-name": "firstName" }),
|
|
93
|
-
h("sqm-lead-input-field", { style: { width: "50%" }, "field-label": "Last Name", "field-name": "lastName" })),
|
|
92
|
+
h("sqm-lead-input-field", { style: { width: "50%" }, "field-label": content.firstNameLabel || "First Name", "field-name": "firstName" }),
|
|
93
|
+
h("sqm-lead-input-field", { style: { width: "50%" }, "field-label": content.lastNameLabel || "Last Name", "field-name": "lastName" })),
|
|
94
94
|
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true, validationError: ({ value }) => {
|
|
95
95
|
if (!value) {
|
|
96
96
|
return getRequiredFieldErrorMessage({
|
|
@@ -97,6 +97,8 @@ export class LeadForm {
|
|
|
97
97
|
submitErrorDescription: this.submitErrorDescription,
|
|
98
98
|
invalidEmailErrorMessage: this.invalidEmailErrorMessage,
|
|
99
99
|
requiredFieldErrorMessage: this.requiredFieldErrorMessage,
|
|
100
|
+
firstNameLabel: this.firstNameLabel,
|
|
101
|
+
lastNameLabel: this.lastNameLabel,
|
|
100
102
|
};
|
|
101
103
|
return (h(LeadFormView, { states: states, callbacks: callbacks, content: content, refs: refs }));
|
|
102
104
|
}
|
|
@@ -23,7 +23,7 @@ export function LeadInputFieldView(props) {
|
|
|
23
23
|
var _a, _b, _c, _d, _e, _f;
|
|
24
24
|
const { states, content } = props;
|
|
25
25
|
const getRequiredFieldErrorMessage = ({ fieldLabel, }) => intl.formatMessage({
|
|
26
|
-
id:
|
|
26
|
+
id: `requiredFieldErrorMessage-${fieldLabel}`,
|
|
27
27
|
defaultMessage: content.requiredFieldErrorMessage,
|
|
28
28
|
}, {
|
|
29
29
|
fieldLabel,
|
|
@@ -38,9 +38,9 @@ export function LeadInputFieldView(props) {
|
|
|
38
38
|
fieldLabel: content.fieldLabel,
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
} }, (((_d = (_c = states.leadFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.
|
|
41
|
+
} }, (((_d = (_c = states.leadFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d[content.fieldName]) ? {
|
|
42
42
|
class: sheet.classes.ErrorStyle,
|
|
43
|
-
helpText: ((_f = (_e = states.leadFormState) === null || _e === void 0 ? void 0 : _e.validationErrors) === null || _f === void 0 ? void 0 : _f.
|
|
43
|
+
helpText: ((_f = (_e = states.leadFormState) === null || _e === void 0 ? void 0 : _e.validationErrors) === null || _f === void 0 ? void 0 : _f[content.fieldName]) ||
|
|
44
44
|
content.requiredFieldErrorMessage,
|
|
45
45
|
}
|
|
46
46
|
: [])))));
|
|
@@ -4130,8 +4130,8 @@ function LeadFormView(props) {
|
|
|
4130
4130
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, content.supportLink)),
|
|
4131
4131
|
}))),
|
|
4132
4132
|
h("div", { class: sheet$d.classes.NameFieldWrapper },
|
|
4133
|
-
h("sqm-lead-input-field", { style: { width: "50%" }, "field-label": "First Name", "field-name": "firstName" }),
|
|
4134
|
-
h("sqm-lead-input-field", { style: { width: "50%" }, "field-label": "Last Name", "field-name": "lastName" })),
|
|
4133
|
+
h("sqm-lead-input-field", { style: { width: "50%" }, "field-label": content.firstNameLabel || "First Name", "field-name": "firstName" }),
|
|
4134
|
+
h("sqm-lead-input-field", { style: { width: "50%" }, "field-label": content.lastNameLabel || "Last Name", "field-name": "lastName" })),
|
|
4135
4135
|
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true, validationError: ({ value }) => {
|
|
4136
4136
|
if (!value) {
|
|
4137
4137
|
return getRequiredFieldErrorMessage({
|
|
@@ -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-
|
|
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-a14f9e24.js';
|
|
24
24
|
import './sqm-portal-container-view-1683ae32.js';
|
|
25
25
|
import { u as usePayoutStatus } from './usePayoutStatus-fed17fc9.js';
|
|
26
26
|
|
|
@@ -1525,6 +1525,8 @@ const LeadForm = class {
|
|
|
1525
1525
|
submitErrorDescription: this.submitErrorDescription,
|
|
1526
1526
|
invalidEmailErrorMessage: this.invalidEmailErrorMessage,
|
|
1527
1527
|
requiredFieldErrorMessage: this.requiredFieldErrorMessage,
|
|
1528
|
+
firstNameLabel: this.firstNameLabel,
|
|
1529
|
+
lastNameLabel: this.lastNameLabel,
|
|
1528
1530
|
};
|
|
1529
1531
|
return (h$1(LeadFormView, { states: states, callbacks: callbacks, content: content, refs: refs }));
|
|
1530
1532
|
}
|
|
@@ -36,8 +36,9 @@ function LeadDropdownFieldView(props) {
|
|
|
36
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
|
+
console.log({ validationErrors });
|
|
39
40
|
const getRequiredFieldErrorMessage = ({ dropdownLabel, }) => intl.formatMessage({
|
|
40
|
-
id:
|
|
41
|
+
id: `requiredFieldErrorMessage-${dropdownLabel}`,
|
|
41
42
|
defaultMessage: content.requiredFieldErrorMessage,
|
|
42
43
|
}, {
|
|
43
44
|
dropdownLabel,
|
|
@@ -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-
|
|
9
|
+
import { L as LeadDropdownFieldView } from './sqm-lead-dropdown-field-view-92442a2f.js';
|
|
10
10
|
|
|
11
11
|
function useLeadDropdownField() {
|
|
12
12
|
const leadFormState = d(LEAD_FORM_STATE_CONTEXT);
|
package/dist/esm/{sqm-lead-input-field-view-f1dd4b77.js → sqm-lead-input-field-view-9b23f22c.js}
RENAMED
|
@@ -23,7 +23,7 @@ function LeadInputFieldView(props) {
|
|
|
23
23
|
var _a, _b, _c, _d, _e, _f;
|
|
24
24
|
const { states, content } = props;
|
|
25
25
|
const getRequiredFieldErrorMessage = ({ fieldLabel, }) => intl.formatMessage({
|
|
26
|
-
id:
|
|
26
|
+
id: `requiredFieldErrorMessage-${fieldLabel}`,
|
|
27
27
|
defaultMessage: content.requiredFieldErrorMessage,
|
|
28
28
|
}, {
|
|
29
29
|
fieldLabel,
|
|
@@ -38,9 +38,9 @@ function LeadInputFieldView(props) {
|
|
|
38
38
|
fieldLabel: content.fieldLabel,
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
} }, (((_d = (_c = states.leadFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.
|
|
41
|
+
} }, (((_d = (_c = states.leadFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d[content.fieldName]) ? {
|
|
42
42
|
class: sheet.classes.ErrorStyle,
|
|
43
|
-
helpText: ((_f = (_e = states.leadFormState) === null || _e === void 0 ? void 0 : _e.validationErrors) === null || _f === void 0 ? void 0 : _f.
|
|
43
|
+
helpText: ((_f = (_e = states.leadFormState) === null || _e === void 0 ? void 0 : _e.validationErrors) === null || _f === void 0 ? void 0 : _f[content.fieldName]) ||
|
|
44
44
|
content.requiredFieldErrorMessage,
|
|
45
45
|
}
|
|
46
46
|
: [])))));
|
|
@@ -7,7 +7,7 @@ import { g as getProps, a as getMissingProps } from './utils-334c1e34.js';
|
|
|
7
7
|
import './JSS-67b5cff8.js';
|
|
8
8
|
import './mixins-83f90fa1.js';
|
|
9
9
|
import { L as LEAD_FORM_STATE_CONTEXT, R as RequiredPropsError } from './useLeadFormState-9016d812.js';
|
|
10
|
-
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-
|
|
10
|
+
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-9b23f22c.js';
|
|
11
11
|
|
|
12
12
|
function useLeadInputField() {
|
|
13
13
|
const leadFormState = d(LEAD_FORM_STATE_CONTEXT);
|
|
@@ -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-
|
|
19
|
+
import { L as LeadDropdownFieldView } from './sqm-lead-dropdown-field-view-92442a2f.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,10 +32,10 @@ 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-
|
|
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-a14f9e24.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
|
-
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-
|
|
38
|
+
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-9b23f22c.js';
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
* lodash (Custom Build) <https://lodash.com/>
|