@saasquatch/mint-components 1.14.6-8 → 1.14.6
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-d1dda2b0.js → ShadowViewAddon-3c344355.js} +116 -49
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/{sqm-big-stat_42.cjs.entry.js → sqm-big-stat_43.cjs.entry.js} +119 -25
- package/dist/cjs/{sqm-lead-input-field-view-6344cd93.js → sqm-lead-input-field-view-89308aab.js} +7 -7
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +6 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +17 -10
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +1 -1
- package/dist/collection/components/sqm-lead-form/LeadForm.stories.js +5 -2
- package/dist/collection/components/sqm-lead-form/LeadFormDropdownField.stories.js +3 -0
- package/dist/collection/components/sqm-lead-form/LeadInputField.stories.js +1 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +10 -10
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field.js +57 -5
- package/dist/collection/components/sqm-lead-form/sqm-lead-form-view.js +55 -51
- package/dist/collection/components/sqm-lead-form/sqm-lead-form.js +65 -35
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field-view.js +7 -7
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field.js +28 -5
- package/dist/collection/components/sqm-lead-form/useLeadForm.js +16 -10
- package/dist/esm/{ShadowViewAddon-81771102.js → ShadowViewAddon-64194d20.js} +117 -51
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/{sqm-big-stat_42.entry.js → sqm-big-stat_43.entry.js} +119 -26
- package/dist/esm/{sqm-lead-input-field-view-f1dd4b77.js → sqm-lead-input-field-view-4ede5d7f.js} +7 -7
- package/dist/esm/sqm-lead-input-field.entry.js +6 -2
- package/dist/esm/sqm-stencilbook.entry.js +12 -5
- package/dist/esm-es5/ShadowViewAddon-64194d20.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -0
- package/dist/esm-es5/sqm-lead-input-field-view-4ede5d7f.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-01dd541f.system.js +1 -0
- package/dist/mint-components/{p-cbfa7a11.entry.js → p-0a4f1306.entry.js} +21 -21
- package/dist/mint-components/p-0d94d81a.system.js +1 -0
- package/dist/mint-components/{p-460974bf.js → p-30a11ec0.js} +24 -24
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/p-6ba44ca9.js +1 -0
- package/dist/mint-components/p-74fdf750.system.entry.js +1 -0
- package/dist/mint-components/p-d3e72503.entry.js +1 -0
- package/dist/mint-components/p-eaf1a8a6.system.entry.js +1 -0
- package/dist/mint-components/{p-ba585a4b.entry.js → p-f60d1ae9.entry.js} +2 -2
- package/dist/mint-components/p-fbbb85f0.system.entry.js +1 -0
- package/dist/types/components/sqm-lead-form/LeadFormDropdownField.stories.d.ts +1 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field-view.d.ts +3 -1
- package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field.d.ts +11 -4
- package/dist/types/components/sqm-lead-form/sqm-lead-form-view.d.ts +2 -1
- package/dist/types/components/sqm-lead-form/sqm-lead-form.d.ts +19 -10
- package/dist/types/components/sqm-lead-form/sqm-lead-input-field-view.d.ts +1 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-input-field.d.ts +4 -2
- package/dist/types/components/sqm-lead-form/useLeadForm.d.ts +1 -0
- package/dist/types/components/sqm-referral-iframe/useReferralIframe.d.ts +1 -1
- package/dist/types/components.d.ts +63 -19
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/sqm-lead-dropdown-field-view-03a3e03f.js +0 -69
- package/dist/cjs/sqm-lead-dropdown-field.cjs.entry.js +0 -81
- package/dist/esm/sqm-lead-dropdown-field-view-4c85fe20.js +0 -67
- package/dist/esm/sqm-lead-dropdown-field.entry.js +0 -77
- package/dist/esm-es5/ShadowViewAddon-81771102.js +0 -1
- package/dist/esm-es5/sqm-big-stat_42.entry.js +0 -1
- package/dist/esm-es5/sqm-lead-dropdown-field-view-4c85fe20.js +0 -1
- package/dist/esm-es5/sqm-lead-dropdown-field.entry.js +0 -1
- package/dist/esm-es5/sqm-lead-input-field-view-f1dd4b77.js +0 -1
- package/dist/mint-components/p-15f1ff1d.system.js +0 -1
- package/dist/mint-components/p-26da31c6.js +0 -1
- package/dist/mint-components/p-4056c0ea.system.entry.js +0 -1
- package/dist/mint-components/p-4d5b02af.js +0 -1
- package/dist/mint-components/p-59970cb1.system.entry.js +0 -1
- package/dist/mint-components/p-6b093d8c.entry.js +0 -1
- package/dist/mint-components/p-732849d6.system.entry.js +0 -1
- package/dist/mint-components/p-87384d9e.system.js +0 -1
- package/dist/mint-components/p-ad128614.system.js +0 -1
- package/dist/mint-components/p-c5a55554.entry.js +0 -1
- package/dist/mint-components/p-de5356d9.system.entry.js +0 -1
|
@@ -2844,7 +2844,7 @@ const style$9 = {
|
|
|
2844
2844
|
fontSize: "var(--sl-input-help-text-font-size-medium)",
|
|
2845
2845
|
},
|
|
2846
2846
|
FieldContainer: {
|
|
2847
|
-
"margin-bottom": "var(--sl-spacing-
|
|
2847
|
+
"margin-bottom": "var(--sl-spacing-medium)",
|
|
2848
2848
|
},
|
|
2849
2849
|
};
|
|
2850
2850
|
const vanillaStyle$5 = `
|
|
@@ -4047,7 +4047,12 @@ function CouponCodeView(props) {
|
|
|
4047
4047
|
}
|
|
4048
4048
|
|
|
4049
4049
|
const style$d = {
|
|
4050
|
-
Wrapper: {
|
|
4050
|
+
Wrapper: {
|
|
4051
|
+
...mixins.AuthWrapper,
|
|
4052
|
+
"max-width": "600px",
|
|
4053
|
+
border: "none",
|
|
4054
|
+
margin: "0",
|
|
4055
|
+
},
|
|
4051
4056
|
Column: mixins.AuthColumn,
|
|
4052
4057
|
HostBlock: mixins.HostBlock,
|
|
4053
4058
|
":host": {
|
|
@@ -4057,6 +4062,7 @@ const style$d = {
|
|
|
4057
4062
|
NameFieldWrapper: {
|
|
4058
4063
|
display: "flex",
|
|
4059
4064
|
gap: "var(--sl-spacing-medium)",
|
|
4065
|
+
marginBottom: "0 !important",
|
|
4060
4066
|
},
|
|
4061
4067
|
ContinueButton: { maxWidth: "169px" },
|
|
4062
4068
|
ButtonsContainer: mixins.AuthButtonsContainer,
|
|
@@ -4072,6 +4078,10 @@ const style$d = {
|
|
|
4072
4078
|
borderTop: "none",
|
|
4073
4079
|
},
|
|
4074
4080
|
},
|
|
4081
|
+
NameInput: {
|
|
4082
|
+
marginBottom: "0",
|
|
4083
|
+
width: "50%",
|
|
4084
|
+
},
|
|
4075
4085
|
ErrorStyle: mixins.ErrorStyles,
|
|
4076
4086
|
};
|
|
4077
4087
|
const vanillaStyle$8 = `
|
|
@@ -4094,7 +4104,6 @@ const styleString$d = sheet$d.toString();
|
|
|
4094
4104
|
function LeadFormView(props) {
|
|
4095
4105
|
var _a, _b, _c, _d;
|
|
4096
4106
|
const { states, refs, callbacks, content } = props;
|
|
4097
|
-
console.log({ states });
|
|
4098
4107
|
if (states.error) {
|
|
4099
4108
|
window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
|
4100
4109
|
}
|
|
@@ -4104,8 +4113,8 @@ function LeadFormView(props) {
|
|
|
4104
4113
|
}, {
|
|
4105
4114
|
fieldLabel,
|
|
4106
4115
|
});
|
|
4107
|
-
|
|
4108
|
-
|
|
4116
|
+
return (index.h(index.Fragment, null,
|
|
4117
|
+
states.success && (index.h("div", { class: sheet$d.classes.Wrapper, part: "sqm-base" },
|
|
4109
4118
|
index.h("style", { type: "text/css" },
|
|
4110
4119
|
vanillaStyle$8,
|
|
4111
4120
|
styleString$d),
|
|
@@ -4114,51 +4123,108 @@ function LeadFormView(props) {
|
|
|
4114
4123
|
index.h("b", null, content.submitSuccessHeader),
|
|
4115
4124
|
index.h("br", null),
|
|
4116
4125
|
index.h("div", { part: "successalert-text" }, content.submitSuccessDescription)),
|
|
4117
|
-
index.h("sl-button", {
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4126
|
+
index.h("sl-button", { class: sheet$d.classes.ContinueButton, onClick: callbacks.resetForm, loading: states.loading, exportparts: "base: primarybutton-base", type: "default" }, content.resubmitFormLabel))),
|
|
4127
|
+
index.h("div", { class: sheet$d.classes.Wrapper, part: "sqm-base", style: { display: states.success ? "none" : "block" } },
|
|
4128
|
+
index.h("style", { type: "text/css" },
|
|
4129
|
+
vanillaStyle$8,
|
|
4130
|
+
styleString$d),
|
|
4131
|
+
index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
|
|
4132
|
+
index.h("sl-form", { class: sheet$d.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
4133
|
+
states.error && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", class: sheet$d.classes.ErrorAlertContainer, open: true },
|
|
4134
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
4135
|
+
index.h("b", null, content.submitErrorHeader),
|
|
4136
|
+
index.h("br", null),
|
|
4137
|
+
global.intl.formatMessage({
|
|
4138
|
+
id: "submitErrorDescription",
|
|
4139
|
+
defaultMessage: content.submitErrorDescription,
|
|
4140
|
+
}, {
|
|
4141
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, content.supportLinkText)),
|
|
4142
|
+
}))),
|
|
4143
|
+
index.h("div", { class: sheet$d.classes.NameFieldWrapper },
|
|
4144
|
+
index.h("sqm-lead-input-field", { class: sheet$d.classes.NameInput, "field-label": content.firstNameLabel || "First Name", "field-name": "firstName" }),
|
|
4145
|
+
index.h("sqm-lead-input-field", { class: sheet$d.classes.NameInput, "field-label": content.lastNameLabel || "Last Name", "field-name": "lastName" })),
|
|
4146
|
+
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 }) => {
|
|
4147
|
+
if (!value) {
|
|
4148
|
+
return getRequiredFieldErrorMessage({
|
|
4149
|
+
fieldLabel: content.emailLabel || "Email",
|
|
4150
|
+
});
|
|
4151
|
+
}
|
|
4152
|
+
// this matches shoelace validation, but could be better
|
|
4153
|
+
if (!value.includes("@")) {
|
|
4154
|
+
return content.invalidEmailErrorMessage;
|
|
4155
|
+
}
|
|
4156
|
+
} }, (((_b = (_a = states.leadFormState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
|
|
4157
|
+
class: sheet$d.classes.ErrorStyle,
|
|
4158
|
+
helpText: ((_d = (_c = states.leadFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
|
|
4159
|
+
content.requiredFieldErrorMessage,
|
|
4160
|
+
}
|
|
4161
|
+
: []))),
|
|
4162
|
+
index.h("input", { type: "hidden", hidden: true, name: "/referralCode", value: states.referralCode }),
|
|
4163
|
+
content.formData,
|
|
4164
|
+
index.h("div", { class: sheet$d.classes.ButtonsContainer },
|
|
4165
|
+
index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"))))));
|
|
4166
|
+
}
|
|
4167
|
+
|
|
4168
|
+
const style$e = {
|
|
4169
|
+
ErrorStyle: {
|
|
4170
|
+
"--sl-input-border-color": "var(--sl-color-danger-500)",
|
|
4171
|
+
"--sl-input-background-color": "var(--sl-color-danger-10)",
|
|
4172
|
+
"--sl-input-border-color-focus": "var(--sl-color-danger-500)",
|
|
4173
|
+
"--sl-input-border-color-hover": "var(--sl-color-danger-500)",
|
|
4174
|
+
},
|
|
4175
|
+
ErrorMessageStyle: {
|
|
4176
|
+
margin: 0,
|
|
4177
|
+
color: "var(--sl-color-danger-500)",
|
|
4178
|
+
fontSize: "var(--sl-input-help-text-font-size-medium)",
|
|
4179
|
+
},
|
|
4180
|
+
FieldContainer: {
|
|
4181
|
+
"margin-bottom": "var(--sl-spacing-large)",
|
|
4182
|
+
},
|
|
4183
|
+
};
|
|
4184
|
+
const vanillaStyle$9 = `
|
|
4185
|
+
:host {
|
|
4186
|
+
margin: 0 auto;
|
|
4187
|
+
width: 100%;
|
|
4188
|
+
display: block;
|
|
4189
|
+
}
|
|
4190
|
+
sl-select::part(label){
|
|
4191
|
+
font-size: var(--sl-input-label-font-size-small);
|
|
4192
|
+
font-weight: var(--sl-font-weight-semibold);
|
|
4193
|
+
}
|
|
4194
|
+
sl-select::part(menu){
|
|
4195
|
+
max-height: 300px;
|
|
4196
|
+
}
|
|
4197
|
+
`;
|
|
4198
|
+
JSS.jss.setup(JSS.create());
|
|
4199
|
+
const sheet$e = JSS.jss.createStyleSheet(style$e);
|
|
4200
|
+
const styleString$e = sheet$e.toString();
|
|
4201
|
+
function LeadDropdownFieldView(props) {
|
|
4202
|
+
var _a, _b, _c, _d, _e;
|
|
4203
|
+
const { states, content } = props;
|
|
4204
|
+
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.leadFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
4205
|
+
const getRequiredFieldErrorMessage = ({ dropdownLabel, }) => global.intl.formatMessage({
|
|
4206
|
+
id: `requiredFieldErrorMessage-${dropdownLabel}`,
|
|
4207
|
+
defaultMessage: content.requiredFieldErrorMessage,
|
|
4208
|
+
}, {
|
|
4209
|
+
dropdownLabel,
|
|
4210
|
+
});
|
|
4211
|
+
return (index.h("div", { class: sheet$e.classes.FieldContainer, part: "sqm-base" },
|
|
4124
4212
|
index.h("style", { type: "text/css" },
|
|
4125
|
-
vanillaStyle$
|
|
4126
|
-
styleString$
|
|
4127
|
-
index.h(
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
index.h("sqm-lead-input-field", { style: { width: "50%" }, "field-label": "First Name", "field-name": "firstName" }),
|
|
4141
|
-
index.h("sqm-lead-input-field", { style: { width: "50%" }, "field-label": "Last Name", "field-name": "lastName" })),
|
|
4142
|
-
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 }) => {
|
|
4143
|
-
if (!value) {
|
|
4144
|
-
return getRequiredFieldErrorMessage({
|
|
4145
|
-
fieldLabel: content.emailLabel || "Email",
|
|
4146
|
-
});
|
|
4147
|
-
}
|
|
4148
|
-
// this matches shoelace validation, but could be better
|
|
4149
|
-
if (!value.includes("@")) {
|
|
4150
|
-
return content.invalidEmailErrorMessage;
|
|
4151
|
-
}
|
|
4152
|
-
} }, (((_b = (_a = states.leadFormState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
|
|
4153
|
-
class: sheet$d.classes.ErrorStyle,
|
|
4154
|
-
helpText: ((_d = (_c = states.leadFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
|
|
4155
|
-
content.requiredFieldErrorMessage,
|
|
4156
|
-
}
|
|
4157
|
-
: []))),
|
|
4158
|
-
index.h("input", { type: "hidden", hidden: true, name: "/rsReferralCode", value: states.referralCode }),
|
|
4159
|
-
content.formData,
|
|
4160
|
-
index.h("div", { class: sheet$d.classes.ButtonsContainer },
|
|
4161
|
-
index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register")))));
|
|
4213
|
+
vanillaStyle$9,
|
|
4214
|
+
styleString$e),
|
|
4215
|
+
index.h("sl-select", Object.assign({ style: { maxHeight: "100px" }, exportparts: "label: input-label, base: input-base", label: `${content.dropdownLabel}${content.dropdownOptional ? ` ${content.optionalLabel}` : ""}`, name: `/${content.dropdownName}`, multiple: content.multiple }, (!content.dropdownOptional ? { required: true } : []), { disabled: ((_b = states.leadFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.leadFormState) === null || _c === void 0 ? void 0 : _c.disabled), validationError: ({ value }) => {
|
|
4216
|
+
if (!value && !content.dropdownOptional) {
|
|
4217
|
+
return getRequiredFieldErrorMessage({
|
|
4218
|
+
dropdownLabel: content.dropdownLabel,
|
|
4219
|
+
});
|
|
4220
|
+
}
|
|
4221
|
+
} }, (((_e = (_d = states.leadFormState) === null || _d === void 0 ? void 0 : _d.validationErrors) === null || _e === void 0 ? void 0 : _e[content.dropdownName]) ? {
|
|
4222
|
+
class: sheet$e.classes.ErrorStyle,
|
|
4223
|
+
}
|
|
4224
|
+
: [])), content.selectOptions),
|
|
4225
|
+
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet$e.classes.ErrorMessageStyle }, getRequiredFieldErrorMessage({
|
|
4226
|
+
dropdownLabel: content.dropdownLabel,
|
|
4227
|
+
})))));
|
|
4162
4228
|
}
|
|
4163
4229
|
|
|
4164
4230
|
function t(t,n,r){return Math.min(Math.max(t,r),n)}class n extends Error{constructor(t){super(`Failed to parse color: "${t}"`);}}function r(r){if("string"!=typeof r)throw new n(r);if("transparent"===r.trim().toLowerCase())return [0,0,0,0];let e=r.trim();e=u.test(r)?function(t){const r=t.toLowerCase().trim(),e=o[function(t){let n=5381,r=t.length;for(;r;)n=33*n^t.charCodeAt(--r);return (n>>>0)%2341}(r)];if(!e)throw new n(t);return `#${e}`}(r):r;const f=s.exec(e);if(f){const t=Array.from(f).slice(1);return [...t.slice(0,3).map(t=>parseInt(_(t,2),16)),parseInt(_(t[3]||"f",2),16)/255]}const p=i.exec(e);if(p){const t=Array.from(p).slice(1);return [...t.slice(0,3).map(t=>parseInt(t,16)),parseInt(t[3]||"ff",16)/255]}const z=a.exec(e);if(z){const t=Array.from(z).slice(1);return [...t.slice(0,3).map(t=>parseInt(t,10)),parseFloat(t[3]||"1")]}const h=c.exec(e);if(h){const[e,o,_,s]=Array.from(h).slice(1).map(parseFloat);if(t(0,100,o)!==o)throw new n(r);if(t(0,100,_)!==_)throw new n(r);return [...l(e,o,_),s||1]}throw new n(r)}const e=t=>parseInt(t.replace(/_/g,""),36),o="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((t,n)=>{const r=e(n.substring(0,3)),o=e(n.substring(3)).toString(16);let _="";for(let t=0;t<6-o.length;t++)_+="0";return t[r]=`${_}${o}`,t},{}),_=(t,n)=>Array.from(Array(n)).map(()=>t).join(""),s=new RegExp(`^#${_("([a-f0-9])",3)}([a-f0-9])?$`,"i"),i=new RegExp(`^#${_("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),a=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${_(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),c=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,u=/^[a-z]+$/i,f=t=>Math.round(255*t),l=(t,n,r)=>{let e=r/100;if(0===n)return [e,e,e].map(f);const o=(t%360+360)%360/60,_=(1-Math.abs(2*e-1))*(n/100),s=_*(1-Math.abs(o%2-1));let i=0,a=0,c=0;o>=0&&o<1?(i=_,a=s):o>=1&&o<2?(i=s,a=_):o>=2&&o<3?(a=_,c=s):o>=3&&o<4?(a=s,c=_):o>=4&&o<5?(i=s,c=_):o>=5&&o<6&&(i=_,c=s);const u=e-_/2;return [i+u,a+u,c+u].map(f)};function p(t){const[n,e,o,_]=r(t).map((t,n)=>3===n?t:t/255),s=Math.max(n,e,o),i=Math.min(n,e,o),a=(s+i)/2;if(s===i)return [0,0,a,_];const c=s-i;return [60*(n===s?(e-o)/c+(e<o?6:0):e===s?(o-n)/c+2:(n-e)/c+4),a>.5?c/(2-s-i):c/(s+i),a,_]}function z(n,r,e,o){return `hsla(${(n%360).toFixed()}, ${t(0,100,100*r).toFixed()}%, ${t(0,100,100*e).toFixed()}%, ${parseFloat(t(0,1,o).toFixed(3))})`}
|
|
@@ -4255,6 +4321,7 @@ exports.DropdownFieldView = DropdownFieldView;
|
|
|
4255
4321
|
exports.EditProfileView = EditProfileView;
|
|
4256
4322
|
exports.HeroView = HeroView;
|
|
4257
4323
|
exports.InputFieldView = InputFieldView;
|
|
4324
|
+
exports.LeadDropdownFieldView = LeadDropdownFieldView;
|
|
4258
4325
|
exports.LeadFormView = LeadFormView;
|
|
4259
4326
|
exports.LeaderboardView = LeaderboardView;
|
|
4260
4327
|
exports.NameFieldsView = NameFieldsView;
|