@saasquatch/mint-components 1.15.0-67 → 1.15.0-69
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-f06fc674.js → ShadowViewAddon-f04e82d2.js} +17 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +5 -19
- package/dist/cjs/{sqm-big-stat_42.cjs.entry.js → sqm-big-stat_43.cjs.entry.js} +167 -4
- package/dist/cjs/sqm-form-message.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +8 -8
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +4 -4
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +14 -2
- package/dist/collection/components/sqm-big-stat/useBigStat.js +7 -1
- package/dist/collection/components/sqm-brand/sqm-brand.js +4 -3
- package/dist/collection/components/sqm-form-message/sqm-form-message.css +4 -4
- package/dist/collection/components/sqm-hero/Hero.stories.js +11 -0
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +10 -2
- package/dist/collection/components/sqm-hero/sqm-hero.js +25 -0
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +3 -0
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +4 -4
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +4 -4
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +1 -9
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +4 -4
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +0 -3
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +0 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +2 -16
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +3 -3
- package/dist/esm/{ShadowViewAddon-24bda22d.js → ShadowViewAddon-6ca0b821.js} +17 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +5 -19
- package/dist/esm/{sqm-big-stat_42.entry.js → sqm-big-stat_43.entry.js} +168 -6
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-referral-table_11.entry.js +8 -8
- package/dist/esm/sqm-rewards-table_9.entry.js +4 -4
- package/dist/esm/sqm-stencilbook.entry.js +14 -2
- package/dist/esm-es5/ShadowViewAddon-6ca0b821.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-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -0
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.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-36a77b68.entry.js → p-01dc4d20.entry.js} +1 -1
- package/dist/mint-components/{p-cd51d006.entry.js → p-12be33e8.entry.js} +19 -19
- package/dist/mint-components/{p-33668d62.system.entry.js → p-1ee101ea.system.entry.js} +1 -1
- package/dist/mint-components/{p-c67e22cb.entry.js → p-3edaf1e2.entry.js} +1 -1
- package/dist/mint-components/{p-497fa176.js → p-4932fd6f.js} +3 -3
- package/dist/mint-components/p-589d5605.system.js +1 -0
- package/dist/mint-components/p-60ea020f.entry.js +1 -0
- package/dist/mint-components/{p-b7288752.entry.js → p-852078dd.entry.js} +2 -2
- package/dist/mint-components/p-9049b387.entry.js +1 -0
- package/dist/mint-components/p-91ee1967.system.entry.js +1 -0
- package/dist/mint-components/{p-14e772f3.system.entry.js → p-bf1f7b28.system.entry.js} +1 -1
- package/dist/mint-components/p-c0cefb52.system.entry.js +1 -0
- package/dist/mint-components/{p-667b7d4b.system.entry.js → p-c7dadaf5.system.entry.js} +1 -1
- package/dist/mint-components/p-d7f1b1c9.system.js +1 -1
- package/dist/mint-components/p-f0ebccea.system.entry.js +1 -0
- package/dist/types/components/sqm-hero/Hero.stories.d.ts +1 -0
- package/dist/types/components/sqm-hero/sqm-hero-view.d.ts +1 -0
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +4 -0
- package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +3 -0
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +0 -3
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +0 -2
- package/dist/types/components.d.ts +8 -0
- 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-referred-registration.cjs.entry.js +0 -178
- package/dist/esm/sqm-referred-registration.entry.js +0 -174
- package/dist/esm-es5/ShadowViewAddon-24bda22d.js +0 -1
- package/dist/esm-es5/sqm-big-stat_42.entry.js +0 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +0 -1
- package/dist/mint-components/p-0e87150c.entry.js +0 -1
- package/dist/mint-components/p-117ed9d3.system.entry.js +0 -1
- package/dist/mint-components/p-2fd26011.entry.js +0 -1
- package/dist/mint-components/p-32fa454c.entry.js +0 -1
- package/dist/mint-components/p-3e3b02a3.system.entry.js +0 -1
- package/dist/mint-components/p-42b599c7.system.js +0 -1
- package/dist/mint-components/p-b2c04108.system.entry.js +0 -1
- package/dist/mint-components/p-e4246179.system.entry.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-b3a06de8.js';
|
|
2
2
|
import { b as buildFontsCssUrl, i as intl } from './global-d0254726.js';
|
|
3
3
|
import { n as h, f as useEffect, k as useState, i as d, u as useMemo, m as useRef, b as browser, j as useReducer } from './dom-context-hooks.module-63370afd.js';
|
|
4
|
-
import { i as isDemo, _ as _$1, d as dist, J, H, B, $ as $e, w as wn, L, y as yn, j as jn, r as Ue, V as Ve, u as useCallback, Q as Qe, k as kn } from './index.module-38dad6c9.js';
|
|
4
|
+
import { i as isDemo, _ as _$1, d as dist, J, H, B, $ as $e, w as wn, L, y as yn, j as jn, r as Ue, V as Ve, u as useCallback, b as setUserIdentity, Q as Qe, k as kn } from './index.module-38dad6c9.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import { g as getProps, a as getMissingProps } from './utils-03188de2.js';
|
|
@@ -14,12 +14,14 @@ import { u as useChildElements } from './useChildElements-4e70ac0e.js';
|
|
|
14
14
|
import './luxon-bbf75a9d.js';
|
|
15
15
|
import './sqm-text-span-view-4c17b8c9.js';
|
|
16
16
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
17
|
+
import { E as EmailRegistrationView } from './email-registration-view-1f587f8b.js';
|
|
17
18
|
import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-18c2cea7.js';
|
|
19
|
+
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-0f04459e.js';
|
|
18
20
|
import { P as PortalLoginView } from './sqm-portal-login-view-7670cd86.js';
|
|
19
21
|
import { u as usePortalLogin } from './usePortalLogin-d0720c81.js';
|
|
20
22
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
21
23
|
import { i as isEmpty } from './utilities-ad9c2893.js';
|
|
22
|
-
import { u as useDemoBigStat, Q as useBigStat, B as BigStatView, C as CardFeedView, c as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, U as withShadowView, L as LeaderboardView, N as NameFieldsView, f as ChangeMarktingView, P as PortalChangePasswordView, g as PortalFooterView, h as PortalFrameView, d as PortalRegisterView, R as ReferralIframeView, i as RewardExchangeView, V as demoRewardExchange, G as useShareButton, a as ShareButtonView, J as useShareLink, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-
|
|
24
|
+
import { u as useDemoBigStat, Q as useBigStat, B as BigStatView, C as CardFeedView, c as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, U as withShadowView, L as LeaderboardView, N as NameFieldsView, f as ChangeMarktingView, P as PortalChangePasswordView, g as PortalFooterView, h as PortalFrameView, d as PortalRegisterView, R as ReferralIframeView, i as RewardExchangeView, V as demoRewardExchange, G as useShareButton, a as ShareButtonView, J as useShareLink, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-6ca0b821.js';
|
|
23
25
|
import './sqm-portal-container-view-176e92e3.js';
|
|
24
26
|
import { u as usePayoutStatus } from './usePayoutStatus-7eeec61b.js';
|
|
25
27
|
|
|
@@ -462,7 +464,7 @@ const BrandComponent = class {
|
|
|
462
464
|
}
|
|
463
465
|
disconnectedCallback() { }
|
|
464
466
|
render() {
|
|
465
|
-
var _a, _b, _c, _d;
|
|
467
|
+
var _a, _b, _c, _d, _e, _f;
|
|
466
468
|
function getCss(brandColor) {
|
|
467
469
|
if (brandColor) {
|
|
468
470
|
try {
|
|
@@ -473,8 +475,9 @@ const BrandComponent = class {
|
|
|
473
475
|
return undefined;
|
|
474
476
|
}
|
|
475
477
|
const brandingConfigFont = (_b = (_a = window.SquatchBrandingConfig) === null || _a === void 0 ? void 0 : _a.main) === null || _b === void 0 ? void 0 : _b.brandFont;
|
|
476
|
-
const css = (_c =
|
|
477
|
-
|
|
478
|
+
const css = ((_d = (_c = window.SquatchBrandingConfig) === null || _c === void 0 ? void 0 : _c.main) === null || _d === void 0 ? void 0 : _d.brandColor) ? ""
|
|
479
|
+
: (_e = getCss(this.brandColor)) !== null && _e !== void 0 ? _e : "";
|
|
480
|
+
const sanitizedFont = ((_f = this.brandFont) !== null && _f !== void 0 ? _f : "Nunito Sans").trim() || undefined;
|
|
478
481
|
useEffect(() => {
|
|
479
482
|
if (!sanitizedFont || brandingConfigFont) {
|
|
480
483
|
// Nothing required in default case.
|
|
@@ -1552,6 +1555,10 @@ const Hero = class {
|
|
|
1552
1555
|
* @uiEnumNames ["Wrap", "Wrap Reverse"]
|
|
1553
1556
|
*/
|
|
1554
1557
|
this.wrapDirection = "wrap";
|
|
1558
|
+
/**
|
|
1559
|
+
* @uiName Hide the column in mobile view (can only be used when two columns are present)
|
|
1560
|
+
*/
|
|
1561
|
+
this.columnToHideInMobile = null;
|
|
1555
1562
|
h(this);
|
|
1556
1563
|
}
|
|
1557
1564
|
disconnectedCallback() { }
|
|
@@ -4029,6 +4036,161 @@ function useReferralIframeDemo(props) {
|
|
|
4029
4036
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4030
4037
|
}
|
|
4031
4038
|
|
|
4039
|
+
const ReferredRegistration = class {
|
|
4040
|
+
constructor(hostRef) {
|
|
4041
|
+
registerInstance(this, hostRef);
|
|
4042
|
+
this.ignored = true;
|
|
4043
|
+
/**
|
|
4044
|
+
* @uiName Email field label
|
|
4045
|
+
*/
|
|
4046
|
+
this.emailLabel = "Email";
|
|
4047
|
+
/**
|
|
4048
|
+
* @uiName First name field label
|
|
4049
|
+
*/
|
|
4050
|
+
this.firstNameLabel = "First Name";
|
|
4051
|
+
/**
|
|
4052
|
+
* @uiName Last name field label
|
|
4053
|
+
*/
|
|
4054
|
+
this.lastNameLabel = "Last Name";
|
|
4055
|
+
/**
|
|
4056
|
+
* @uiName Register button text
|
|
4057
|
+
*/
|
|
4058
|
+
this.registerLabel = "Start Referring";
|
|
4059
|
+
/**
|
|
4060
|
+
* Require your participants to enter their first and last name.
|
|
4061
|
+
*
|
|
4062
|
+
* @uiName Include name fields
|
|
4063
|
+
*/
|
|
4064
|
+
this.includeName = false;
|
|
4065
|
+
/**
|
|
4066
|
+
* @uiName Hide border
|
|
4067
|
+
* @uiGroup Card style
|
|
4068
|
+
*/
|
|
4069
|
+
this.hideBorder = false;
|
|
4070
|
+
/**
|
|
4071
|
+
* Display this message when a required field has not been filled out.
|
|
4072
|
+
*
|
|
4073
|
+
* @uiName Required field message
|
|
4074
|
+
* @uiWidget textArea
|
|
4075
|
+
* @uiGroup Error messages
|
|
4076
|
+
*/
|
|
4077
|
+
this.requiredFieldErrorMessage = "Cannot be empty";
|
|
4078
|
+
/**
|
|
4079
|
+
* Display this message when the given email is invalid.
|
|
4080
|
+
*
|
|
4081
|
+
* @uiName Invalid email message
|
|
4082
|
+
* @uiWidget textArea
|
|
4083
|
+
* @uiGroup Error messages
|
|
4084
|
+
*/
|
|
4085
|
+
this.invalidEmailErrorMessage = "Please enter a valid email address";
|
|
4086
|
+
/**
|
|
4087
|
+
* Display this message when the form submission unexpectedly fails.
|
|
4088
|
+
*
|
|
4089
|
+
* @uiName Network error message
|
|
4090
|
+
* @uiWidget textArea
|
|
4091
|
+
* @uiGroup Error messages
|
|
4092
|
+
*/
|
|
4093
|
+
this.networkErrorMessage = "There was a problem signing you in. Please wait a moment and try again. If this problem continues, contact Support for help resolving this issue.";
|
|
4094
|
+
/**
|
|
4095
|
+
* Display this message when there is suspected fraud.
|
|
4096
|
+
*
|
|
4097
|
+
* @uiName Fraud error message
|
|
4098
|
+
* @uiWidget textArea
|
|
4099
|
+
* @uiGroup Error messages
|
|
4100
|
+
*/
|
|
4101
|
+
this.fraudErrorMessage = "Our team will review this referral. If approved, you and your friend will receive your rewards. Need help? Reach out to our Support team.";
|
|
4102
|
+
/**
|
|
4103
|
+
* Display this message when there is suspected fraud.
|
|
4104
|
+
*
|
|
4105
|
+
* @uiName Fraud error message title
|
|
4106
|
+
* @uiWidget textArea
|
|
4107
|
+
* @uiGroup Error messages
|
|
4108
|
+
*/
|
|
4109
|
+
this.fraudErrorMessageTitle = "Looks like you tried referring yourself";
|
|
4110
|
+
/**
|
|
4111
|
+
* @uiName Top padding
|
|
4112
|
+
* @uiGroup Card style
|
|
4113
|
+
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
4114
|
+
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
4115
|
+
*/
|
|
4116
|
+
this.paddingTop = "large";
|
|
4117
|
+
/**
|
|
4118
|
+
* @uiName Right padding
|
|
4119
|
+
* @uiGroup Card style
|
|
4120
|
+
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
4121
|
+
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
4122
|
+
*/
|
|
4123
|
+
this.paddingRight = "large";
|
|
4124
|
+
/**
|
|
4125
|
+
* @uiName Bottom padding
|
|
4126
|
+
* @uiGroup Card style
|
|
4127
|
+
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
4128
|
+
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
4129
|
+
*/
|
|
4130
|
+
this.paddingBottom = "large";
|
|
4131
|
+
/**
|
|
4132
|
+
* @uiName Left padding
|
|
4133
|
+
* @uiGroup Card style
|
|
4134
|
+
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
4135
|
+
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
4136
|
+
*/
|
|
4137
|
+
this.paddingLeft = "large";
|
|
4138
|
+
/**
|
|
4139
|
+
* @undocumented
|
|
4140
|
+
* @uiType boolean
|
|
4141
|
+
*/
|
|
4142
|
+
this.includeCookies = true;
|
|
4143
|
+
h(this);
|
|
4144
|
+
}
|
|
4145
|
+
disconnectedCallback() { }
|
|
4146
|
+
render() {
|
|
4147
|
+
const { states, callbacks } = isDemo()
|
|
4148
|
+
? useRegistrationDemo(this)
|
|
4149
|
+
: useInstantAccessRegistration(this);
|
|
4150
|
+
const content = {
|
|
4151
|
+
fraudErrorMessage: this.fraudErrorMessage,
|
|
4152
|
+
fraudErrorMessageTitle: this.fraudErrorMessageTitle,
|
|
4153
|
+
emailLabel: this.emailLabel,
|
|
4154
|
+
registerLabel: this.registerLabel,
|
|
4155
|
+
firstNameLabel: this.firstNameLabel,
|
|
4156
|
+
lastNameLabel: this.lastNameLabel,
|
|
4157
|
+
includeName: this.includeName,
|
|
4158
|
+
hideBorder: this.hideBorder,
|
|
4159
|
+
invalidEmailErrorMessage: this.invalidEmailErrorMessage,
|
|
4160
|
+
requiredFieldErrorMessage: this.requiredFieldErrorMessage,
|
|
4161
|
+
paddingTop: this.paddingTop,
|
|
4162
|
+
paddingBottom: this.paddingBottom,
|
|
4163
|
+
paddingLeft: this.paddingLeft,
|
|
4164
|
+
paddingRight: this.paddingRight,
|
|
4165
|
+
backgroundColor: this.backgroundColor,
|
|
4166
|
+
// slots
|
|
4167
|
+
topSlot: h$1("slot", { name: "top" }),
|
|
4168
|
+
bottomSlot: h$1("slot", { name: "bottom" }),
|
|
4169
|
+
};
|
|
4170
|
+
return (h$1(EmailRegistrationView, { states: states, callbacks: callbacks, content: content }));
|
|
4171
|
+
}
|
|
4172
|
+
};
|
|
4173
|
+
function useRegistrationDemo(props) {
|
|
4174
|
+
const onSubmit = () => {
|
|
4175
|
+
setUserIdentity({
|
|
4176
|
+
id: "referrer@example.com",
|
|
4177
|
+
accountId: "referrer@example.com",
|
|
4178
|
+
jwt: "eyJraWQiOiJlNjI2NzQxNy1jMzZlLTRlM2EtYjM5NS1lYTFmY2YyNmU3YzIiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjbVZtWlhKeVpYSkFaWGhoYlhCc1pTNWpiMjA9OmNtVm1aWEp5WlhKQVpYaGhiWEJzWlM1amIyMD1AdGVzdF9heGJndGF0dzF0Y2NwOnVzZXJzIiwicGFzc3dvcmRsZXNzIjp0cnVlLCJpc3MiOiJodHRwczovL3N0YWdpbmcucmVmZXJyYWxzYWFzcXVhdGNoLmNvbS8iLCJleHAiOjE2ODA4ODU5MTksImlhdCI6MTY4MDc5OTUxOX0.kjmTVVf_BTb-uMNKnadLyNLxMFwpkefsY02O3iAfBVIJJZZfeZMwunPlKsS3Vbp28aYRClBjH5Wj4pYxDn23D0CdZx8KNCqiJ8yF6149O9SPMkRseoJkliqS6LyvMOEDjGDkuLfcC8_hq1AHBXFt5BdCtWOk1gwf_5R9A0w5gXEIvprBzbNDLbuo88bVAlrmFNvfttXXryrpUeruMal7cBKuy02YblBrB4kKoyJiprU5GLEjciBA4A56u8TwQc0kbsPf2YcQaJsY_IvkC7S1u4sPyObpq6iF6Ed8UYHAo6nU5KjZXyVtoUyeIS11mf_6OtDO6LyMNHV2FtEUUDdPCg",
|
|
4179
|
+
});
|
|
4180
|
+
};
|
|
4181
|
+
return cjs({
|
|
4182
|
+
states: {
|
|
4183
|
+
error: "",
|
|
4184
|
+
loading: false,
|
|
4185
|
+
},
|
|
4186
|
+
callbacks: {
|
|
4187
|
+
submit: async (_event) => {
|
|
4188
|
+
onSubmit();
|
|
4189
|
+
},
|
|
4190
|
+
},
|
|
4191
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4192
|
+
}
|
|
4193
|
+
|
|
4032
4194
|
// canvas-confetti v1.4.0 built on 2021-03-10T12:32:33.488Z
|
|
4033
4195
|
var module = {};
|
|
4034
4196
|
|
|
@@ -5825,4 +5987,4 @@ function useUserNameDemo(props) {
|
|
|
5825
5987
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
5826
5988
|
}
|
|
5827
5989
|
|
|
5828
|
-
export { BigStat as sqm_big_stat, BrandComponent as sqm_brand, SqmBrandSelector as sqm_brand_selector, CardFeed as sqm_card_feed, CheckboxField as sqm_checkbox_field, CouponCode as sqm_coupon_code, DividedLayout as sqm_divided_layout, DropdownField as sqm_dropdown_field, EditProfile as sqm_edit_profile, Hero as sqm_hero, HeroImage as sqm_hero_image, SqmHookStoryContainer as sqm_hook_story_container, Image as sqm_image, InputField as sqm_input_field, Leaderboard as sqm_leaderboard, LinkButton as sqm_link_button, MarketingEmailsCheckbox as sqm_marketing_emails_checkbox, NameFields as sqm_name_fields, NavigationMenu as sqm_navigation_menu, PayoutButtonScroll as sqm_payout_button_scroll, PayoutStatusAlert as sqm_payout_status_alert, PortalChangeMarketing as sqm_portal_change_marketing, PortalChangePassword as sqm_portal_change_password, PortalFooter as sqm_portal_footer, PortalFrame as sqm_portal_frame, PortalLogin as sqm_portal_login, PortalRegister as sqm_portal_register, ProgramExplainer as sqm_program_explainer, ProgramExplainerStep as sqm_program_explainer_step, ProgramMenu as sqm_program_menu, ReferralCard as sqm_referral_card, SqmReferralIframe as sqm_referral_iframe, SqmRewardExchangeList as sqm_reward_exchange_list, SqmRouter as sqm_router, ShareButton as sqm_share_button, ShareCode as sqm_share_code, ShareLink as sqm_share_link, StatContainer as sqm_stat_container, TaskCard as sqm_task_card, Timeline as sqm_timeline, TimelineReward as sqm_timeline_entry, UserName as sqm_user_name };
|
|
5990
|
+
export { BigStat as sqm_big_stat, BrandComponent as sqm_brand, SqmBrandSelector as sqm_brand_selector, CardFeed as sqm_card_feed, CheckboxField as sqm_checkbox_field, CouponCode as sqm_coupon_code, DividedLayout as sqm_divided_layout, DropdownField as sqm_dropdown_field, EditProfile as sqm_edit_profile, Hero as sqm_hero, HeroImage as sqm_hero_image, SqmHookStoryContainer as sqm_hook_story_container, Image as sqm_image, InputField as sqm_input_field, Leaderboard as sqm_leaderboard, LinkButton as sqm_link_button, MarketingEmailsCheckbox as sqm_marketing_emails_checkbox, NameFields as sqm_name_fields, NavigationMenu as sqm_navigation_menu, PayoutButtonScroll as sqm_payout_button_scroll, PayoutStatusAlert as sqm_payout_status_alert, PortalChangeMarketing as sqm_portal_change_marketing, PortalChangePassword as sqm_portal_change_password, PortalFooter as sqm_portal_footer, PortalFrame as sqm_portal_frame, PortalLogin as sqm_portal_login, PortalRegister as sqm_portal_register, ProgramExplainer as sqm_program_explainer, ProgramExplainerStep as sqm_program_explainer_step, ProgramMenu as sqm_program_menu, ReferralCard as sqm_referral_card, SqmReferralIframe as sqm_referral_iframe, ReferredRegistration as sqm_referred_registration, SqmRewardExchangeList as sqm_reward_exchange_list, SqmRouter as sqm_router, ShareButton as sqm_share_button, ShareCode as sqm_share_code, ShareLink as sqm_share_link, StatContainer as sqm_stat_container, TaskCard as sqm_task_card, Timeline as sqm_timeline, TimelineReward as sqm_timeline_entry, UserName as sqm_user_name };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-b3a06de8.js';
|
|
2
2
|
import { n as h } from './dom-context-hooks.module-63370afd.js';
|
|
3
3
|
|
|
4
|
-
const sqmFormMessageCss = "sl-alert::part(base){border:var(--sqm-border-thickness) solid;border-radius:var(--sqm-border-radius-normal);font-family:var(--sqm-primary-font)}.Error::part(base){color:var(--sqm-danger-color-text);background-color:var(--sqm-danger-color-background);border-color:var(--sqm-danger-color-border);font-size:14px}.Error::part(icon){color:var(--sqm-danger-color-icon);font-size:24px}.Warning::part(base){color:var(--sqm-warning-color-text);background-color:var(--sqm-warning-color-background);border-color:var(--sqm-warning-color-border)}.Warning::part(icon){color:var(--sqm-warning-color-icon);font-size:24px}.Success::part(base){color:var(--sqm-success-color-text);background-color:var(--sqm-success-color-background);border-color:var(--sqm-success-color-border)}.Success::part(icon){color:var(--sqm-success-color-icon);font-size:24px}.Info::part(base){color:var(--sqm-informative-color-text);background-color:var(--sqm-informative-color-background);border-color:var(--sqm-informative-color-border)}.Info::part(icon){color:var(--sqm-informative-color-icon);font-size:24px}::slotted(*){margin:0}::slotted(*[part=alert-title]){font-size:16px;font-weight:bold}::slotted(*[part=alert-description]),::slotted(*[part=erroralert-text]){font-size:14px}";
|
|
4
|
+
const sqmFormMessageCss = "sl-alert::part(base){border:var(--sqm-border-thickness) solid;border-radius:var(--sqm-border-radius-normal);font-family:var(--sqm-primary-font)}.Error::part(base){color:var(--sqm-danger-color-text);background-color:var(--sqm-danger-color-background);border-color:var(--sqm-danger-color-border);font-size:14px}.Error::part(alert-icon){color:var(--sqm-danger-color-icon);font-size:24px}.Warning::part(base){color:var(--sqm-warning-color-text);background-color:var(--sqm-warning-color-background);border-color:var(--sqm-warning-color-border)}.Warning::part(alert-icon){color:var(--sqm-warning-color-icon);font-size:24px}.Success::part(base){color:var(--sqm-success-color-text);background-color:var(--sqm-success-color-background);border-color:var(--sqm-success-color-border)}.Success::part(alert-icon){color:var(--sqm-success-color-icon);font-size:24px}.Info::part(base){color:var(--sqm-informative-color-text);background-color:var(--sqm-informative-color-background);border-color:var(--sqm-informative-color-border)}.Info::part(alert-icon){color:var(--sqm-informative-color-icon);font-size:24px}::slotted(*){margin:0}::slotted(*[part=alert-title]){font-size:16px;font-weight:bold}::slotted(*[part=alert-description]),::slotted(*[part=erroralert-text]){font-size:14px}";
|
|
5
5
|
|
|
6
6
|
const FormMessage = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -478,7 +478,7 @@ const ReferralTableRewardsCell = class {
|
|
|
478
478
|
maxWidth: "170px",
|
|
479
479
|
whiteSpace: "pre-line",
|
|
480
480
|
background: "var(--sqm-informative-color-icon)",
|
|
481
|
-
color: "var(--
|
|
481
|
+
color: "var(--sl-color-white)",
|
|
482
482
|
},
|
|
483
483
|
},
|
|
484
484
|
DangerBadge: {
|
|
@@ -488,7 +488,7 @@ const ReferralTableRewardsCell = class {
|
|
|
488
488
|
maxWidth: "170px",
|
|
489
489
|
whiteSpace: "pre-line",
|
|
490
490
|
background: "var(--sqm-danger-color-icon)",
|
|
491
|
-
color: "var(--
|
|
491
|
+
color: "var(--sl-color-white)",
|
|
492
492
|
},
|
|
493
493
|
},
|
|
494
494
|
WarningBadge: {
|
|
@@ -498,7 +498,7 @@ const ReferralTableRewardsCell = class {
|
|
|
498
498
|
maxWidth: "170px",
|
|
499
499
|
whiteSpace: "pre-line",
|
|
500
500
|
background: "var(--sqm-warning-color-icon)",
|
|
501
|
-
color: "var(--
|
|
501
|
+
color: "var(--sl-color-white)",
|
|
502
502
|
},
|
|
503
503
|
},
|
|
504
504
|
SuccessBadge: {
|
|
@@ -508,7 +508,7 @@ const ReferralTableRewardsCell = class {
|
|
|
508
508
|
maxWidth: "170px",
|
|
509
509
|
whiteSpace: "pre-line",
|
|
510
510
|
background: "var(--sqm-success-color-icon)",
|
|
511
|
-
color: "var(--
|
|
511
|
+
color: "var(--sl-color-white)",
|
|
512
512
|
},
|
|
513
513
|
},
|
|
514
514
|
};
|
|
@@ -752,7 +752,7 @@ const style = {
|
|
|
752
752
|
maxWidth: "170px",
|
|
753
753
|
whiteSpace: "pre-line",
|
|
754
754
|
background: "var(--sqm-informative-color-icon)",
|
|
755
|
-
color: "var(--
|
|
755
|
+
color: "var(--sl-color-white)",
|
|
756
756
|
},
|
|
757
757
|
},
|
|
758
758
|
DangerBadge: {
|
|
@@ -763,7 +763,7 @@ const style = {
|
|
|
763
763
|
maxWidth: "170px",
|
|
764
764
|
whiteSpace: "pre-line",
|
|
765
765
|
background: "var(--sqm-danger-color-icon)",
|
|
766
|
-
color: "var(--
|
|
766
|
+
color: "var(--sl-color-white)",
|
|
767
767
|
},
|
|
768
768
|
},
|
|
769
769
|
WarningBadge: {
|
|
@@ -774,7 +774,7 @@ const style = {
|
|
|
774
774
|
maxWidth: "170px",
|
|
775
775
|
whiteSpace: "pre-line",
|
|
776
776
|
background: "var(--sqm-warning-color-icon)",
|
|
777
|
-
color: "var(--
|
|
777
|
+
color: "var(--sl-color-white)",
|
|
778
778
|
},
|
|
779
779
|
},
|
|
780
780
|
SuccessBadge: {
|
|
@@ -785,7 +785,7 @@ const style = {
|
|
|
785
785
|
maxWidth: "170px",
|
|
786
786
|
whiteSpace: "pre-line",
|
|
787
787
|
background: "var(--sqm-success-color-icon)",
|
|
788
|
-
color: "var(--
|
|
788
|
+
color: "var(--sl-color-white)",
|
|
789
789
|
},
|
|
790
790
|
},
|
|
791
791
|
};
|
|
@@ -796,7 +796,7 @@ const style$1 = {
|
|
|
796
796
|
textAlign: "center",
|
|
797
797
|
whiteSpace: "pre-line",
|
|
798
798
|
background: "var(--sqm-informative-color-icon)",
|
|
799
|
-
color: "var(--
|
|
799
|
+
color: "var(--sl-color-white)",
|
|
800
800
|
},
|
|
801
801
|
},
|
|
802
802
|
DangerBadge: {
|
|
@@ -806,7 +806,7 @@ const style$1 = {
|
|
|
806
806
|
textAlign: "center",
|
|
807
807
|
whiteSpace: "pre-line",
|
|
808
808
|
background: "var(--sqm-danger-color-icon)",
|
|
809
|
-
color: "var(--
|
|
809
|
+
color: "var(--sl-color-white)",
|
|
810
810
|
},
|
|
811
811
|
},
|
|
812
812
|
WarningBadge: {
|
|
@@ -816,7 +816,7 @@ const style$1 = {
|
|
|
816
816
|
textAlign: "center",
|
|
817
817
|
whiteSpace: "pre-line",
|
|
818
818
|
background: "var(--sqm-warning-color-icon)",
|
|
819
|
-
color: "var(--
|
|
819
|
+
color: "var(--sl-color-white)",
|
|
820
820
|
},
|
|
821
821
|
},
|
|
822
822
|
SuccessBadge: {
|
|
@@ -826,7 +826,7 @@ const style$1 = {
|
|
|
826
826
|
textAlign: "center",
|
|
827
827
|
whiteSpace: "pre-line",
|
|
828
828
|
background: "var(--sqm-success-color-icon)",
|
|
829
|
-
color: "var(--
|
|
829
|
+
color: "var(--sl-color-white)",
|
|
830
830
|
},
|
|
831
831
|
},
|
|
832
832
|
Date: {
|
|
@@ -29,7 +29,7 @@ import './utilities-ad9c2893.js';
|
|
|
29
29
|
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-abef7286.js';
|
|
30
30
|
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-33805220.js';
|
|
31
31
|
import { Q as QrCodeView } from './sqm-qr-code-view-97124a66.js';
|
|
32
|
-
import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, c as CheckboxFieldView, d as PortalRegisterView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, f as ChangeMarktingView, g as PortalFooterView, h as PortalFrameView, R as ReferralIframeView, i as RewardExchangeView, r as rewardExchangeCustomErrorMsg, j as rewardExchangeLongText, k as rewardExchangeSelected, l as chooseAmountFixed, m as chooseAmountFixedNoDescription, n as chooseAmountVariable, o as chooseAmountVariableNoDescription, p as chooseAmountVariableDisabled, q as chooseAmountVariableUnavailable, s as confirmFixed, t as confirmVariable, v as redemptionError, w as queryError, x as success, y as successVariable, z as loading, A as empty$1, F as rewardExchange, G as useShareButton, J as useShareLink, K as ProgressBarView, M as ProgressBar$2, O as ShadowViewAddon } from './ShadowViewAddon-
|
|
32
|
+
import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, c as CheckboxFieldView, d as PortalRegisterView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, f as ChangeMarktingView, g as PortalFooterView, h as PortalFrameView, R as ReferralIframeView, i as RewardExchangeView, r as rewardExchangeCustomErrorMsg, j as rewardExchangeLongText, k as rewardExchangeSelected, l as chooseAmountFixed, m as chooseAmountFixedNoDescription, n as chooseAmountVariable, o as chooseAmountVariableNoDescription, p as chooseAmountVariableDisabled, q as chooseAmountVariableUnavailable, s as confirmFixed, t as confirmVariable, v as redemptionError, w as queryError, x as success, y as successVariable, z as loading, A as empty$1, F as rewardExchange, G as useShareButton, J as useShareLink, K as ProgressBarView, M as ProgressBar$2, O as ShadowViewAddon } from './ShadowViewAddon-6ca0b821.js';
|
|
33
33
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-176e92e3.js';
|
|
34
34
|
import { I as InvoiceTableView, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView } from './IndirectTaxDetailsView-10504666.js';
|
|
35
35
|
import { t as taxTypeToName, L as LoadingView } from './utils-088048b2.js';
|
|
@@ -6711,6 +6711,17 @@ const MinHeight = () => {
|
|
|
6711
6711
|
};
|
|
6712
6712
|
return h(HeroView, Object.assign({}, props));
|
|
6713
6713
|
};
|
|
6714
|
+
const InstantAccessLoggedOutView = () => {
|
|
6715
|
+
return (h("sqm-hero", { background: "https://res.cloudinary.com/saasquatch/image/upload/v1683589933/Portal%20Assets/Screen-Shot-2022-01-06-at-3.23.58-AM.png", columns: 2, "padding-size": "medium", "wrap-direction": "wrap", "secondary-background": "var(--sqm-portal-background)", columnToHideInMobile: "primary" },
|
|
6716
|
+
h("sqm-referred-registration", { slot: "secondary-column", "register-label": "Get $50 off", "padding-bottom": "small", "padding-left": "x-large", "padding-right": "x-large", "padding-top": "small" },
|
|
6717
|
+
h("sqm-titled-section", { "text-align": "center", "label-margin": "small", padding: "none", slot: "top" },
|
|
6718
|
+
h("h1", { slot: "label" }, "You got $50 off thanks to a friend!"),
|
|
6719
|
+
h("p", { slot: "content" },
|
|
6720
|
+
h("span", null, "Use this reward to get $50 off your next purchase."))),
|
|
6721
|
+
h("div", { slot: "bottom" },
|
|
6722
|
+
h("p", { style: { textAlign: "center" } }, "*Valid on purchases of $75 or more"),
|
|
6723
|
+
h("sqm-portal-footer", { slot: "footer", "show-powered-by": "true", "padding-bottom": "none", "padding-left": "none", "padding-right": "none", "padding-top": "none", "hide-support-text": true, "terms-text": "Terms And Conditions", "terms-link": "https://example.com" })))));
|
|
6724
|
+
};
|
|
6714
6725
|
|
|
6715
6726
|
const Hero = /*#__PURE__*/Object.freeze({
|
|
6716
6727
|
__proto__: null,
|
|
@@ -6725,7 +6736,8 @@ const Hero = /*#__PURE__*/Object.freeze({
|
|
|
6725
6736
|
TwoColumnLoginNoPadding: TwoColumnLoginNoPadding,
|
|
6726
6737
|
TwoColumnLoginReverseWrap: TwoColumnLoginReverseWrap,
|
|
6727
6738
|
TwoColumnLoginWithImgElement: TwoColumnLoginWithImgElement,
|
|
6728
|
-
MinHeight: MinHeight
|
|
6739
|
+
MinHeight: MinHeight,
|
|
6740
|
+
InstantAccessLoggedOutView: InstantAccessLoggedOutView
|
|
6729
6741
|
});
|
|
6730
6742
|
|
|
6731
6743
|
const scenario$8 = "@author:kutay\n@owner:kutay\nFeature: Image\n\n\tBackground: A user on the portal is viewing the widget\n\t\tGiven a user viewing the image component\n\n\t@motivating\n\t@ui\n\tScenario: Image is displayed from URL\n\t\tGiven an Image component\n\t\tAnd prop \"image-url\" is provided with a valid image url\n\t\tThen the image is displayed\n\t\tAnd it is centered\n\n\t@motivating\n\t@ui\n\tScenario Outline: Images can be aligned left, center or right\n\t\tGiven an Image component\n\t\tAnd prop \"image-url\" is provided with a valid image url\n\t\tAnd prop \"align\" has <value>\n\t\tThen the image is displayed\n\t\tAnd it is aligned to the <value>\n\t\tExamples:\n\t\t\t| value |\n\t\t\t| left |\n\t\t\t| center |\n\t\t\t| right |\n\n\t@motivating\n\t@ui\n\tScenario: Image background can be assigned a color\n\t\tGiven an Image component\n\t\tAnd prop \"image-url\" is provided with a valid image url\n\t\tAnd prop \"background-color\" is provided a color\n\t\tThen the image is displayed\n\t\tAnd the background is the provided color\n\n\t@motivating\n\t@ui\n\tScenario: Image minimum height can be constrained\n\t\tGiven an Image component\n\t\tAnd prop \"image-url\" is provided\n\t\tAnd prop \"min-height\" is given a minimum value\n\t\tThen the image is displayed\n\t\tAnd the container size changes\n\t\tThen the image does not shrink below its minimum height";
|