@saasquatch/mint-components 1.14.6-9 → 1.14.7-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 (96) hide show
  1. package/dist/cjs/{ShadowViewAddon-d1dda2b0.js → ShadowViewAddon-3c344355.js} +116 -49
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/{sqm-big-stat_42.cjs.entry.js → sqm-big-stat_43.cjs.entry.js} +117 -24
  5. package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +155 -0
  6. package/dist/cjs/{sqm-lead-input-field-view-6344cd93.js → sqm-lead-input-field-view-89308aab.js} +7 -7
  7. package/dist/cjs/sqm-lead-input-field.cjs.entry.js +6 -2
  8. package/dist/cjs/sqm-stencilbook.cjs.entry.js +17 -10
  9. package/dist/collection/collection-manifest.json +2 -1
  10. package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +1 -1
  11. package/dist/collection/components/sqm-lead-form/LeadCheckboxField.stories.js +103 -0
  12. package/dist/collection/components/sqm-lead-form/LeadForm.stories.js +5 -2
  13. package/dist/collection/components/sqm-lead-form/LeadFormDropdownField.stories.js +3 -0
  14. package/dist/collection/components/sqm-lead-form/LeadInputField.stories.js +1 -0
  15. package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field-view.js +62 -0
  16. package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field.js +238 -0
  17. package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +10 -10
  18. package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field.js +57 -5
  19. package/dist/collection/components/sqm-lead-form/sqm-lead-form-view.js +55 -51
  20. package/dist/collection/components/sqm-lead-form/sqm-lead-form.js +65 -35
  21. package/dist/collection/components/sqm-lead-form/sqm-lead-input-field-view.js +7 -7
  22. package/dist/collection/components/sqm-lead-form/sqm-lead-input-field.js +28 -5
  23. package/dist/collection/components/sqm-lead-form/useCheckboxField.js +23 -0
  24. package/dist/collection/components/sqm-lead-form/useLeadForm.js +15 -10
  25. package/dist/esm/{ShadowViewAddon-81771102.js → ShadowViewAddon-64194d20.js} +117 -51
  26. package/dist/esm/loader.js +1 -1
  27. package/dist/esm/mint-components.js +1 -1
  28. package/dist/esm/{sqm-big-stat_42.entry.js → sqm-big-stat_43.entry.js} +118 -26
  29. package/dist/esm/sqm-lead-checkbox-field.entry.js +151 -0
  30. package/dist/esm/{sqm-lead-input-field-view-f1dd4b77.js → sqm-lead-input-field-view-4ede5d7f.js} +7 -7
  31. package/dist/esm/sqm-lead-input-field.entry.js +6 -2
  32. package/dist/esm/sqm-stencilbook.entry.js +12 -5
  33. package/dist/esm-es5/ShadowViewAddon-64194d20.js +1 -0
  34. package/dist/esm-es5/loader.js +1 -1
  35. package/dist/esm-es5/mint-components.js +1 -1
  36. package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -0
  37. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -0
  38. package/dist/esm-es5/sqm-lead-input-field-view-4ede5d7f.js +1 -0
  39. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  40. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  41. package/dist/mint-components/mint-components.esm.js +1 -1
  42. package/dist/mint-components/p-01dd541f.system.js +1 -0
  43. package/dist/mint-components/p-0d94d81a.system.js +1 -0
  44. package/dist/mint-components/p-10a8ecae.system.entry.js +1 -0
  45. package/dist/mint-components/p-12bba567.entry.js +1 -0
  46. package/dist/mint-components/p-214c7807.entry.js +1 -0
  47. package/dist/mint-components/{p-460974bf.js → p-30a11ec0.js} +24 -24
  48. package/dist/mint-components/p-37996351.system.js +1 -1
  49. package/dist/mint-components/p-589962db.system.entry.js +1 -0
  50. package/dist/mint-components/p-6ba44ca9.js +1 -0
  51. package/dist/mint-components/{p-b2ff8561.entry.js → p-851eaf57.entry.js} +21 -21
  52. package/dist/mint-components/p-8c0b7881.system.entry.js +1 -0
  53. package/dist/mint-components/p-eaf1a8a6.system.entry.js +1 -0
  54. package/dist/mint-components/{p-ba585a4b.entry.js → p-f60d1ae9.entry.js} +2 -2
  55. package/dist/types/components/sqm-lead-form/LeadCheckboxField.stories.d.ts +55 -0
  56. package/dist/types/components/sqm-lead-form/LeadFormDropdownField.stories.d.ts +1 -0
  57. package/dist/types/components/sqm-lead-form/sqm-lead-checkbox-field-view.d.ts +19 -0
  58. package/dist/types/components/sqm-lead-form/sqm-lead-checkbox-field.d.ts +46 -0
  59. package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field-view.d.ts +3 -1
  60. package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field.d.ts +11 -4
  61. package/dist/types/components/sqm-lead-form/sqm-lead-form-view.d.ts +2 -1
  62. package/dist/types/components/sqm-lead-form/sqm-lead-form.d.ts +19 -10
  63. package/dist/types/components/sqm-lead-form/sqm-lead-input-field-view.d.ts +1 -0
  64. package/dist/types/components/sqm-lead-form/sqm-lead-input-field.d.ts +4 -2
  65. package/dist/types/components/sqm-lead-form/useCheckboxField.d.ts +11 -0
  66. package/dist/types/components/sqm-lead-form/useLeadForm.d.ts +1 -0
  67. package/dist/types/components/sqm-referral-iframe/useReferralIframe.d.ts +1 -1
  68. package/dist/types/components.d.ts +143 -19
  69. package/docs/docs.docx +0 -0
  70. package/docs/raisins.json +1 -1
  71. package/grapesjs/grapesjs.js +1 -1
  72. package/package.json +1 -1
  73. package/dist/cjs/sqm-lead-dropdown-field-view-03a3e03f.js +0 -69
  74. package/dist/cjs/sqm-lead-dropdown-field.cjs.entry.js +0 -81
  75. package/dist/esm/sqm-lead-dropdown-field-view-4c85fe20.js +0 -67
  76. package/dist/esm/sqm-lead-dropdown-field.entry.js +0 -77
  77. package/dist/esm-es5/ShadowViewAddon-81771102.js +0 -1
  78. package/dist/esm-es5/sqm-big-stat_42.entry.js +0 -1
  79. package/dist/esm-es5/sqm-lead-dropdown-field-view-4c85fe20.js +0 -1
  80. package/dist/esm-es5/sqm-lead-dropdown-field.entry.js +0 -1
  81. package/dist/esm-es5/sqm-lead-input-field-view-f1dd4b77.js +0 -1
  82. package/dist/mint-components/p-15f1ff1d.system.js +0 -1
  83. package/dist/mint-components/p-26da31c6.js +0 -1
  84. package/dist/mint-components/p-4056c0ea.system.entry.js +0 -1
  85. package/dist/mint-components/p-4d5b02af.js +0 -1
  86. package/dist/mint-components/p-59970cb1.system.entry.js +0 -1
  87. package/dist/mint-components/p-6b093d8c.entry.js +0 -1
  88. package/dist/mint-components/p-7094012d.system.entry.js +0 -1
  89. package/dist/mint-components/p-87384d9e.system.js +0 -1
  90. package/dist/mint-components/p-ad128614.system.js +0 -1
  91. package/dist/mint-components/p-c5a55554.entry.js +0 -1
  92. package/dist/mint-components/p-de5356d9.system.entry.js +0 -1
  93. package/dist/types/global/android.d.ts +0 -7
  94. package/dist/types/global/demo.d.ts +0 -2
  95. package/dist/types/stories/features.d.ts +0 -4
  96. package/dist/types/stories/templates.d.ts +0 -4
@@ -1,4 +1,4 @@
1
- import { h, c as Host, d as getAssetPath, g as getElement } from './index-91e7729f.js';
1
+ import { h, c as Host, d as getAssetPath, F as Fragment, g as getElement } from './index-91e7729f.js';
2
2
  import { k as useState, b as browser, u as useMemo } from './stencil-hooks.module-4bc38af4.js';
3
3
  import { i as intl } from './global-be1f9992.js';
4
4
  import { d as dist, H, J, F as Fn, w as wn, $ as $e, B, g as getEnvironmentSDK, L } from './index.module-89a79f66.js';
@@ -2842,7 +2842,7 @@ const style$9 = {
2842
2842
  fontSize: "var(--sl-input-help-text-font-size-medium)",
2843
2843
  },
2844
2844
  FieldContainer: {
2845
- "margin-bottom": "var(--sl-spacing-large)",
2845
+ "margin-bottom": "var(--sl-spacing-medium)",
2846
2846
  },
2847
2847
  };
2848
2848
  const vanillaStyle$5 = `
@@ -4045,7 +4045,12 @@ function CouponCodeView(props) {
4045
4045
  }
4046
4046
 
4047
4047
  const style$d = {
4048
- Wrapper: { ...AuthWrapper, "max-width": "600px" },
4048
+ Wrapper: {
4049
+ ...AuthWrapper,
4050
+ "max-width": "600px",
4051
+ border: "none",
4052
+ margin: "0",
4053
+ },
4049
4054
  Column: AuthColumn,
4050
4055
  HostBlock: HostBlock,
4051
4056
  ":host": {
@@ -4055,6 +4060,7 @@ const style$d = {
4055
4060
  NameFieldWrapper: {
4056
4061
  display: "flex",
4057
4062
  gap: "var(--sl-spacing-medium)",
4063
+ marginBottom: "0 !important",
4058
4064
  },
4059
4065
  ContinueButton: { maxWidth: "169px" },
4060
4066
  ButtonsContainer: AuthButtonsContainer,
@@ -4070,6 +4076,10 @@ const style$d = {
4070
4076
  borderTop: "none",
4071
4077
  },
4072
4078
  },
4079
+ NameInput: {
4080
+ marginBottom: "0",
4081
+ width: "50%",
4082
+ },
4073
4083
  ErrorStyle: ErrorStyles,
4074
4084
  };
4075
4085
  const vanillaStyle$8 = `
@@ -4092,7 +4102,6 @@ const styleString$d = sheet$d.toString();
4092
4102
  function LeadFormView(props) {
4093
4103
  var _a, _b, _c, _d;
4094
4104
  const { states, refs, callbacks, content } = props;
4095
- console.log({ states });
4096
4105
  if (states.error) {
4097
4106
  window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
4098
4107
  }
@@ -4102,8 +4111,8 @@ function LeadFormView(props) {
4102
4111
  }, {
4103
4112
  fieldLabel,
4104
4113
  });
4105
- if (states.success) {
4106
- return (h("div", { class: sheet$d.classes.Wrapper, part: "sqm-base" },
4114
+ return (h(Fragment, null,
4115
+ states.success && (h("div", { class: sheet$d.classes.Wrapper, part: "sqm-base" },
4107
4116
  h("style", { type: "text/css" },
4108
4117
  vanillaStyle$8,
4109
4118
  styleString$d),
@@ -4112,51 +4121,108 @@ function LeadFormView(props) {
4112
4121
  h("b", null, content.submitSuccessHeader),
4113
4122
  h("br", null),
4114
4123
  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)));
4120
- }
4121
- return (h("div", { class: sheet$d.classes.Wrapper, part: "sqm-base" },
4124
+ h("sl-button", { class: sheet$d.classes.ContinueButton, onClick: callbacks.resetForm, loading: states.loading, exportparts: "base: primarybutton-base", type: "default" }, content.resubmitFormLabel))),
4125
+ h("div", { class: sheet$d.classes.Wrapper, part: "sqm-base", style: { display: states.success ? "none" : "block" } },
4126
+ h("style", { type: "text/css" },
4127
+ vanillaStyle$8,
4128
+ styleString$d),
4129
+ h(TextSpanView, { type: "h3" }, content.pageLabel),
4130
+ h("sl-form", { class: sheet$d.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
4131
+ states.error && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", class: sheet$d.classes.ErrorAlertContainer, open: true },
4132
+ h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
4133
+ h("b", null, content.submitErrorHeader),
4134
+ h("br", null),
4135
+ intl.formatMessage({
4136
+ id: "submitErrorDescription",
4137
+ defaultMessage: content.submitErrorDescription,
4138
+ }, {
4139
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, content.supportLinkText)),
4140
+ }))),
4141
+ h("div", { class: sheet$d.classes.NameFieldWrapper },
4142
+ h("sqm-lead-input-field", { class: sheet$d.classes.NameInput, "field-label": content.firstNameLabel || "First Name", "field-name": "firstName" }),
4143
+ h("sqm-lead-input-field", { class: sheet$d.classes.NameInput, "field-label": content.lastNameLabel || "Last Name", "field-name": "lastName" })),
4144
+ 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 }) => {
4145
+ if (!value) {
4146
+ return getRequiredFieldErrorMessage({
4147
+ fieldLabel: content.emailLabel || "Email",
4148
+ });
4149
+ }
4150
+ // this matches shoelace validation, but could be better
4151
+ if (!value.includes("@")) {
4152
+ return content.invalidEmailErrorMessage;
4153
+ }
4154
+ } }, (((_b = (_a = states.leadFormState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
4155
+ class: sheet$d.classes.ErrorStyle,
4156
+ helpText: ((_d = (_c = states.leadFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
4157
+ content.requiredFieldErrorMessage,
4158
+ }
4159
+ : []))),
4160
+ h("input", { type: "hidden", hidden: true, name: "/referralCode", value: states.referralCode }),
4161
+ content.formData,
4162
+ h("div", { class: sheet$d.classes.ButtonsContainer },
4163
+ h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"))))));
4164
+ }
4165
+
4166
+ const style$e = {
4167
+ ErrorStyle: {
4168
+ "--sl-input-border-color": "var(--sl-color-danger-500)",
4169
+ "--sl-input-background-color": "var(--sl-color-danger-10)",
4170
+ "--sl-input-border-color-focus": "var(--sl-color-danger-500)",
4171
+ "--sl-input-border-color-hover": "var(--sl-color-danger-500)",
4172
+ },
4173
+ ErrorMessageStyle: {
4174
+ margin: 0,
4175
+ color: "var(--sl-color-danger-500)",
4176
+ fontSize: "var(--sl-input-help-text-font-size-medium)",
4177
+ },
4178
+ FieldContainer: {
4179
+ "margin-bottom": "var(--sl-spacing-large)",
4180
+ },
4181
+ };
4182
+ const vanillaStyle$9 = `
4183
+ :host {
4184
+ margin: 0 auto;
4185
+ width: 100%;
4186
+ display: block;
4187
+ }
4188
+ sl-select::part(label){
4189
+ font-size: var(--sl-input-label-font-size-small);
4190
+ font-weight: var(--sl-font-weight-semibold);
4191
+ }
4192
+ sl-select::part(menu){
4193
+ max-height: 300px;
4194
+ }
4195
+ `;
4196
+ jss.setup(create());
4197
+ const sheet$e = jss.createStyleSheet(style$e);
4198
+ const styleString$e = sheet$e.toString();
4199
+ function LeadDropdownFieldView(props) {
4200
+ var _a, _b, _c, _d, _e;
4201
+ const { states, content } = props;
4202
+ const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.leadFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
4203
+ const getRequiredFieldErrorMessage = ({ dropdownLabel, }) => intl.formatMessage({
4204
+ id: `requiredFieldErrorMessage-${dropdownLabel}`,
4205
+ defaultMessage: content.requiredFieldErrorMessage,
4206
+ }, {
4207
+ dropdownLabel,
4208
+ });
4209
+ return (h("div", { class: sheet$e.classes.FieldContainer, part: "sqm-base" },
4122
4210
  h("style", { type: "text/css" },
4123
- vanillaStyle$8,
4124
- styleString$d),
4125
- h(TextSpanView, { type: "h3" }, content.pageLabel),
4126
- h("sl-form", { class: sheet$d.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
4127
- states.error && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", class: sheet$d.classes.ErrorAlertContainer, open: true },
4128
- h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
4129
- h("b", null, content.submitErrorHeader),
4130
- h("br", null),
4131
- intl.formatMessage({
4132
- id: "submitErrorDescription",
4133
- defaultMessage: content.submitErrorDescription,
4134
- }, {
4135
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, content.supportLink)),
4136
- }))),
4137
- h("div", { class: sheet$d.classes.NameFieldWrapper },
4138
- h("sqm-lead-input-field", { style: { width: "50%" }, "field-label": "First Name", "field-name": "firstName" }),
4139
- h("sqm-lead-input-field", { style: { width: "50%" }, "field-label": "Last Name", "field-name": "lastName" })),
4140
- 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 }) => {
4141
- if (!value) {
4142
- return getRequiredFieldErrorMessage({
4143
- fieldLabel: content.emailLabel || "Email",
4144
- });
4145
- }
4146
- // this matches shoelace validation, but could be better
4147
- if (!value.includes("@")) {
4148
- return content.invalidEmailErrorMessage;
4149
- }
4150
- } }, (((_b = (_a = states.leadFormState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
4151
- class: sheet$d.classes.ErrorStyle,
4152
- helpText: ((_d = (_c = states.leadFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
4153
- content.requiredFieldErrorMessage,
4154
- }
4155
- : []))),
4156
- h("input", { type: "hidden", hidden: true, name: "/rsReferralCode", value: states.referralCode }),
4157
- content.formData,
4158
- h("div", { class: sheet$d.classes.ButtonsContainer },
4159
- h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register")))));
4211
+ vanillaStyle$9,
4212
+ styleString$e),
4213
+ 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 }) => {
4214
+ if (!value && !content.dropdownOptional) {
4215
+ return getRequiredFieldErrorMessage({
4216
+ dropdownLabel: content.dropdownLabel,
4217
+ });
4218
+ }
4219
+ } }, (((_e = (_d = states.leadFormState) === null || _d === void 0 ? void 0 : _d.validationErrors) === null || _e === void 0 ? void 0 : _e[content.dropdownName]) ? {
4220
+ class: sheet$e.classes.ErrorStyle,
4221
+ }
4222
+ : [])), content.selectOptions),
4223
+ (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (h("p", { class: sheet$e.classes.ErrorMessageStyle }, getRequiredFieldErrorMessage({
4224
+ dropdownLabel: content.dropdownLabel,
4225
+ })))));
4160
4226
  }
4161
4227
 
4162
4228
  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))})`}
@@ -4244,4 +4310,4 @@ const ShadowViewAddon = ({ story }, children) => {
4244
4310
  h(TagName, { "stencilbook-shadow-view": randomInt })));
4245
4311
  };
4246
4312
 
4247
- export { loading as A, BigStatView as B, ChangeMarktingView as C, DropdownFieldView as D, EditProfileView as E, empty as F, rewardExchange as G, HeroView as H, InputFieldView as I, CardFeedView as J, CouponCodeView as K, LeaderboardView as L, ProgressBar as M, NameFieldsView as N, LeadFormView as O, PortalFrameView as P, autoColorScaleCss as Q, ReferralIframeView as R, ShareButtonView as S, TaskCardView as T, ShadowViewAddon as U, useBigStat as V, withShadowView as W, demoRewardExchange as X, useShareButton as a, useDemoBigStat as b, StatContainerView as c, PortalChangePasswordView as d, PortalRegisterView as e, ProgressBarView as f, PoweredByImg as g, PortalFooterView as h, CheckboxFieldView as i, RewardExchangeView as j, rewardExchangeLongText as k, rewardExchangeSelected as l, chooseAmountFixed as m, chooseAmountFixedNoDescription as n, chooseAmountVariable as o, chooseAmountVariableNoDescription as p, chooseAmountVariableDisabled as q, rewardExchangeCustomErrorMsg as r, chooseAmountVariableUnavailable as s, confirmFixed as t, useShareLink as u, confirmVariable as v, redemptionError as w, queryError as x, success as y, successVariable as z };
4313
+ export { loading as A, BigStatView as B, ChangeMarktingView as C, DropdownFieldView as D, EditProfileView as E, empty as F, rewardExchange as G, HeroView as H, InputFieldView as I, CardFeedView as J, CouponCodeView as K, LeaderboardView as L, ProgressBar as M, NameFieldsView as N, LeadFormView as O, PortalFrameView as P, LeadDropdownFieldView as Q, ReferralIframeView as R, ShareButtonView as S, TaskCardView as T, autoColorScaleCss as U, ShadowViewAddon as V, useBigStat as W, withShadowView as X, demoRewardExchange as Y, useShareButton as a, useDemoBigStat as b, StatContainerView as c, PortalChangePasswordView as d, PortalRegisterView as e, ProgressBarView as f, PoweredByImg as g, PortalFooterView as h, CheckboxFieldView as i, RewardExchangeView as j, rewardExchangeLongText as k, rewardExchangeSelected as l, chooseAmountFixed as m, chooseAmountFixedNoDescription as n, chooseAmountVariable as o, chooseAmountVariableNoDescription as p, chooseAmountVariableDisabled as q, rewardExchangeCustomErrorMsg as r, chooseAmountVariableUnavailable as s, confirmFixed as t, useShareLink as u, confirmVariable as v, redemptionError as w, queryError as x, success as y, successVariable as z };